/* ==========================================================================
   Hiko — feuille de style
   Palette alignee sur PALETTE dans src/style.js : c'est la meme identite pour
   les visuels generes et pour le site. Deux couleurs, celles du logo.
   ========================================================================== */

:root {
  --nuit: #131f38;
  --nuit-fonce: #0b1220;
  --accent: #1a5cff;
  --accent-sombre: #1247cc;

  --blanc: #ffffff;
  --fond: #f7f8fb;
  --trait: #e4e8f0;
  --gris: #5b6577;
  --gris-clair: #8d95a5;

  --rayon: 14px;
  --rayon-s: 9px;
  --ombre: 0 1px 2px rgba(19, 31, 56, .06), 0 8px 24px rgba(19, 31, 56, .06);
  --ombre-forte: 0 2px 4px rgba(19, 31, 56, .08), 0 18px 40px rgba(19, 31, 56, .12);

  --largeur: 1180px;
  --gouttiere: clamp(1.1rem, 4vw, 2rem);

  --titre: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --texte: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* L'en-tete est collant : sans cette marge, cliquer « Produits » amene le
   titre de section juste derriere lui. */
section[id], div[id] { scroll-margin-top: 84px; }

/* Filet de securite : rien ne doit provoquer de defilement horizontal sur un
   telephone. `clip` plutot que `hidden`, qui casserait le `position: sticky`. */
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.65;
  color: var(--nuit);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--titre); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.contenu { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* --- boutons ------------------------------------------------------------ */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--accent);
  color: var(--blanc);
  font-family: var(--texte);
  font-weight: 600;
  font-size: .97rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.bouton:hover { background: var(--accent-sombre); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 92, 255, .28); }
.bouton svg { width: 18px; height: 18px; flex: none; }

.bouton.fantome { background: transparent; color: var(--nuit); border-color: var(--trait); }
.bouton.fantome:hover { background: var(--fond); border-color: var(--gris-clair); box-shadow: none; }

.bouton.clair { background: var(--blanc); color: var(--nuit); }
.bouton.clair:hover { background: #eef1f7; box-shadow: none; }

.bouton.large { width: 100%; justify-content: center; padding: 1.05rem 1.5rem; font-size: 1.02rem; }

/* --- bandeau et en-tete ------------------------------------------------- */

.bandeau {
  background: var(--nuit-fonce);
  color: #c3d4f5;
  font-size: .8rem;
  letter-spacing: .03em;
  text-align: center;
  padding: .6rem 1rem;
}

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete .barre {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}

.marque { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.marque:hover { text-decoration: none; }
.marque img { width: 38px; height: 38px; border-radius: 9px; }
.marque .mot { font-family: var(--titre); font-weight: 700; font-size: 1.32rem; letter-spacing: .1em; color: var(--nuit); line-height: 1; }
.marque .sous { display: block; font-family: var(--texte); font-size: .58rem; letter-spacing: .26em; color: var(--gris-clair); font-weight: 500; margin-top: 3px; }

.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--nuit); font-size: .93rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: none; }

.tel { display: inline-flex; align-items: center; gap: .4rem; color: var(--nuit); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--accent); text-decoration: none; }
.tel svg { width: 17px; height: 17px; }

/* --- telephone ----------------------------------------------------------
   La navigation ne disparait pas : elle passe sur une seconde ligne qui
   defile horizontalement. Un visiteur arrive souvent sur une fiche produit
   depuis Facebook — sans nav, il n'a aucun moyen de voir le reste. */

@media (max-width: 900px) {
  .entete .barre { flex-wrap: wrap; row-gap: 0; padding-bottom: .45rem; min-height: 0; padding-top: .7rem; }
  .marque { margin-right: auto; }
  /* « Électronique » est plus large que « HIKO » a cause de l'interlettrage :
     c'est elle qui faisait passer l'en-tete sur trois lignes. */
  .marque .sous { display: none; }
  .tel { font-size: 0; gap: 0; padding: .5rem; }      /* icone seule */
  .tel svg { width: 22px; height: 22px; }
  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 1.35rem;
    padding: .55rem 0 .15rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: .2rem 0; }

  .bouton { padding: .72rem 1.1rem; font-size: .92rem; }
  .hero .actions .bouton { flex: 1 1 auto; justify-content: center; }

  /* Cibles tactiles : 44 px est le minimum confortable au pouce. */
  .vignettes button { width: 64px; height: 64px; }
  .carte .texte { padding: 1rem 1.05rem 1.2rem; }
  .rassurance .grille { padding: 1.6rem 0; gap: 1.15rem; }
  .etape { padding: 1.3rem 1.15rem; }
  section { padding: 2.6rem 0; }
}

@media (max-width: 420px) {
  .bandeau { font-size: .72rem; padding: .5rem .8rem; }
  .marque img { width: 34px; height: 34px; }
  .marque .mot { font-size: 1.15rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .bouton { width: 100%; }
  .achat .actions .bouton { padding: .95rem 1rem; }
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--nuit-fonce);
  color: var(--blanc);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(26, 92, 255, .38) 0%, rgba(26, 92, 255, 0) 62%);
  z-index: -1;
}
.hero .contenu { padding: clamp(3.5rem, 9vw, 6.5rem) var(--gouttiere); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); white-space: pre-line; margin-bottom: 1.1rem; }
.hero p { color: #a9c2ee; font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 46ch; margin-bottom: 2.1rem; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* --- bandeau de rassurance ---------------------------------------------- */

.rassurance {
  border-bottom: 1px solid var(--trait);
  background: var(--blanc);
}
.rassurance .grille {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 2.2rem 0;
}
.rassurance .item { display: flex; gap: .85rem; align-items: flex-start; }
.rassurance svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.rassurance strong { display: block; font-size: .95rem; font-weight: 600; }
.rassurance span { color: var(--gris); font-size: .87rem; line-height: 1.5; }

/* --- sections ------------------------------------------------------------ */

section { padding: clamp(3rem, 7vw, 4.75rem) 0; }
section.gris { background: var(--fond); }

.titre-section { margin-bottom: 2.25rem; }
.titre-section h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); }
.titre-section p { color: var(--gris); margin-top: .5rem; }

/* --- grille produits ----------------------------------------------------- */

.produits { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.carte {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: transparent; text-decoration: none; }
.carte .vue { position: relative; aspect-ratio: 1; background: var(--blanc); overflow: hidden; }
.carte .vue img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.carte:hover .vue img { transform: scale(1.05); }
.carte .texte { padding: 1.15rem 1.25rem 1.35rem; border-top: 1px solid var(--trait); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.carte h3 { font-size: 1.06rem; }
.carte .resume { color: var(--gris); font-size: .88rem; line-height: 1.5; flex: 1; }
.carte .prix { font-family: var(--titre); font-weight: 700; font-size: 1.22rem; color: var(--nuit); }
.carte .voir { color: var(--accent); font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.carte:hover .voir svg { transform: translateX(3px); }
.carte .voir svg { width: 15px; height: 15px; transition: transform .2s ease; }

/* --- etapes -------------------------------------------------------------- */

.etapes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: etape; }
.etape { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.6rem 1.4rem; position: relative; }
.etape .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--blanc);
  font-family: var(--titre);
  font-weight: 700;
  font-size: .9rem;
  display: grid; place-items: center;
  margin-bottom: .95rem;
}
/* Sans cette regle, une icone posee directement dans une etape s'etire a la
   largeur du bloc : c'est ce qui arrivait aux avions de la section Livraison. */
.etape > svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: .85rem; }
.etape h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.etape p { color: var(--gris); font-size: .9rem; line-height: 1.55; }

/* --- fiche produit -------------------------------------------------------- */

.fiche { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .fiche { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.galerie .principale {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.galerie .principale img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.vignettes { display: flex; gap: .7rem; margin-top: .75rem; flex-wrap: wrap; }
.vignettes button {
  width: 76px; height: 76px;
  padding: 6px;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-s);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.vignettes button img { width: 100%; height: 100%; object-fit: contain; }
.vignettes button:hover { border-color: var(--gris-clair); }
.vignettes button[aria-current='true'] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(26, 92, 255, .18); }

.achat .fil { color: var(--gris-clair); font-size: .85rem; margin-bottom: .9rem; }
.achat .fil a { color: var(--gris); }
.achat h1 { font-size: clamp(1.6rem, 3.6vw, 2.15rem); margin-bottom: .7rem; }
.achat .prix { font-family: var(--titre); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--nuit); margin-bottom: .3rem; }
.achat .mention { color: var(--gris-clair); font-size: .85rem; margin-bottom: 1.4rem; }
.achat .resume { color: var(--gris); margin-bottom: 1.5rem; }

.cles { list-style: none; padding: 0; margin: 0 0 1.9rem; display: grid; gap: .55rem; }
.cles li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.cles svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 5px; }

.achat .actions { display: grid; gap: .7rem; margin-bottom: 1.5rem; }

.encart {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: .6rem;
}
.encart div { display: flex; gap: .6rem; align-items: flex-start; font-size: .89rem; color: var(--gris); }
.encart svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.encart strong { color: var(--nuit); font-weight: 600; }

.caracteristiques { border-top: 1px solid var(--trait); margin-top: 1.9rem; padding-top: 1.6rem; }
.caracteristiques h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.caracteristiques ul { margin: 0; padding-left: 1.15rem; color: var(--gris); }
.caracteristiques li { margin-bottom: .45rem; }

/* --- appel final ---------------------------------------------------------- */

.final { background: var(--nuit-fonce); color: var(--blanc); text-align: center; }
.final h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin-bottom: .7rem; }
.final p { color: #a9c2ee; margin-bottom: 1.9rem; }
.final .actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* --- pied ----------------------------------------------------------------- */

.pied { background: var(--nuit); color: #9aa6bd; padding: 3rem 0 2rem; font-size: .9rem; }
.pied a { color: #cfe0ff; }
.pied .colonnes { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pied h3 { color: var(--blanc); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .85rem; font-family: var(--texte); font-weight: 600; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pied .bas { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: var(--gris-clair); }
