/* ==========================================================================
   style.css — mise en page. AUCUNE couleur en dur : tout vient de theme.css.
   Mobile d abord. Aucune librairie, aucun build.
   ========================================================================== */

/* ------------------------------- Polices -------------------------------- */
@font-face{
  font-family:"Geist"; src:url("../fonts/geist-var.woff2") format("woff2");
  font-weight:100 900; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Poppins"; src:url("../fonts/poppins-600.woff2") format("woff2");
  font-weight:600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Poppins"; src:url("../fonts/poppins-700.woff2") format("woff2");
  font-weight:700; font-style:normal; font-display:swap;
}

/* -------------------------------- Socle --------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
body{
  margin:0; background:var(--fond); color:var(--encre);
  font-family:var(--police); font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img,svg,video{max-width:100%; height:auto; display:block}
a{color:var(--lien); text-decoration:none}
a:hover{color:var(--lien-survol); text-decoration:underline}
:focus-visible{outline:3px solid var(--marque); outline-offset:2px; border-radius:4px}
hr{border:0;border-top:1px solid var(--carte-bord);margin:var(--gouttiere) 0}

/* L en-tete est collante : sans cette marge, une ancre amene la cible
   DERRIERE la barre du haut, et le titre vise reste invisible. */
[id]{scroll-margin-top:88px}

h1,h2,h3,h4{
  font-family:var(--police-titre); color:var(--titre);
  line-height:1.15; letter-spacing:-.02em; margin:0 0 .5em;
  text-wrap:balance;
}
h1{font-size:clamp(2rem,6.2vw,3.5rem); font-weight:700}
h2{font-size:clamp(1.6rem,4.4vw,2.5rem); font-weight:700}
h3{font-size:clamp(1.2rem,2.6vw,1.5rem); font-weight:600}
h4{font-size:1.05rem; font-weight:600}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}
strong{font-weight:600; color:var(--titre)}
small{font-size:.86rem}

/* ------------------------------ Structure ------------------------------- */
.contenant{width:100%; max-width:var(--large); margin-inline:auto; padding-inline:var(--gouttiere)}
.etroit{max-width:var(--etroit); margin-inline:auto}
.section{padding-block:var(--section)}
.section--douce{background:var(--fond-doux)}
.centre{text-align:center}
.evite{position:absolute;left:-9999px;top:0}
.evite:focus{position:fixed;left:var(--gouttiere);top:8px;z-index:100;background:var(--accent);
  color:var(--accent-encre);padding:10px 16px;border-radius:var(--rayon-s)}

.oeil{
  display:inline-block; font-size:.78rem; font-weight:600; letter-spacing:.13em;
  text-transform:uppercase; color:var(--accent); margin-bottom:.75rem;
}
.chapo{font-size:clamp(1.03rem,2.1vw,1.2rem); color:var(--encre-douce); max-width:62ch}
.centre .chapo{margin-inline:auto}
.tete-section{margin-bottom:clamp(28px,4vw,48px)}

/* ------------------------------- Boutons -------------------------------- */
.bouton{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  min-height:48px; padding:.75em 1.6em; border-radius:var(--rayon-pill);
  font-family:var(--police); font-size:1rem; font-weight:600; line-height:1.2;
  border:1px solid transparent; cursor:pointer; text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.bouton:hover{text-decoration:none; transform:translateY(-1px)}
.bouton--plein{background:var(--accent); color:var(--accent-encre); box-shadow:var(--ombre)}
.bouton--plein:hover{color:var(--accent-encre); box-shadow:var(--ombre-forte)}
.bouton--ligne{background:transparent; color:var(--accent); border-color:var(--carte-bord)}
.bouton--ligne:hover{color:var(--accent); background:var(--accent-doux); border-color:var(--accent)}
.boutons{display:flex; flex-wrap:wrap; gap:12px}
.centre .boutons{justify-content:center}

/* -------------------------------- En-tete ------------------------------- */
.entete{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb,var(--fond) 88%,transparent);
  backdrop-filter:saturate(1.6) blur(10px);
  border-bottom:1px solid var(--carte-bord);
}
.entete__barre{display:flex; align-items:center; gap:12px; min-height:66px}
.marque{display:flex; align-items:center; gap:10px; flex:0 0 auto}
.marque:hover{text-decoration:none}
.marque__icone{width:32px; height:32px; border-radius:8px}
.marque__mot{height:19px; width:auto}
.nav{display:none; margin-left:auto}
.nav ul{display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0}
.nav a{
  display:block; padding:8px 13px; border-radius:var(--rayon-pill);
  color:var(--encre); font-size:.95rem; font-weight:500;
}
.nav a:hover{background:var(--accent-doux); color:var(--accent); text-decoration:none}
.nav a[aria-current="page"]{color:var(--accent); background:var(--accent-doux)}
.entete__actions{display:none; margin-left:12px}
.entete__actions .bouton{min-height:42px; padding:.5em 1.15em; font-size:.94rem}
.burger{
  margin-left:auto; width:46px; height:46px; display:grid; place-items:center;
  background:transparent; border:1px solid var(--carte-bord); border-radius:var(--rayon-s);
  color:var(--encre); cursor:pointer;
}
.burger span{display:block; width:20px; height:2px; background:currentColor; position:relative}
.burger span::before,.burger span::after{content:""; position:absolute; left:0; width:20px;
  height:2px; background:currentColor}
.burger span::before{top:-6px}
.burger span::after{top:6px}
.menu-mobile{display:none; padding:8px 0 20px; border-top:1px solid var(--carte-bord)}
.menu-mobile.ouvert{display:block}
.menu-mobile ul{list-style:none; margin:0 0 14px; padding:0}
.menu-mobile a{display:block; padding:13px 4px; font-size:1.05rem; font-weight:500; color:var(--encre)}
.menu-mobile a:hover{color:var(--accent); text-decoration:none}
.menu-mobile .bouton{width:100%}
@media (min-width:980px){
  .nav{display:block}
  .entete__actions{display:flex; align-items:center; gap:8px}
  .burger{display:none}
  .menu-mobile{display:none!important}
}

/* --------------------------------- Hero --------------------------------- */
.hero{padding-block:clamp(44px,7vw,86px) var(--section); background:var(--fond-doux)}
.hero__grille{display:grid; gap:36px; align-items:center}
@media (min-width:900px){.hero__grille{grid-template-columns:1.05fr .95fr; gap:52px}}
.hero h1{margin-bottom:.4em}
.hero .chapo{margin-bottom:1.6em}
.hero__visuel{border-radius:var(--rayon); box-shadow:var(--ombre-forte); overflow:hidden}
.hero__visuel img{width:100%}

/* Reponse directe (GEO) : la premiere chose que lit un robot d IA */
.reponse{
  border-left:4px solid var(--marque); background:var(--accent-doux);
  padding:18px 20px; border-radius:var(--rayon-s); margin:0 0 1.6em;
  font-size:1.06rem; color:var(--encre);
}
.reponse p:last-child{margin-bottom:0}

/* -------------------------------- Cartes -------------------------------- */
.grille{display:grid; gap:18px}
.grille--2,.grille--3,.grille--4{grid-template-columns:1fr}
@media (min-width:600px){
  .grille--2,.grille--3,.grille--4{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:900px){
  .grille--3{grid-template-columns:repeat(3,1fr)}
  .grille--4{grid-template-columns:repeat(4,1fr)}
}
.carte{
  background:var(--carte); border:1px solid var(--carte-bord); border-radius:var(--rayon);
  padding:24px; box-shadow:var(--ombre); height:100%;
  display:flex; flex-direction:column; gap:10px;
}
.carte h3,.carte h4{margin-bottom:0}
.carte p{color:var(--encre-douce); font-size:.97rem}
.carte--lien{transition:transform .16s ease, box-shadow .16s ease}
.carte--lien:hover{transform:translateY(-3px); box-shadow:var(--ombre-forte); text-decoration:none}
.carte__media{margin:-24px -24px 4px; border-radius:var(--rayon) var(--rayon) 0 0; overflow:hidden}
.carte__media img{width:100%; aspect-ratio:16/9; object-fit:cover}
.carte__media--carre img{aspect-ratio:1/1}
.carte__pastille{
  width:44px; height:44px; border-radius:12px; background:var(--accent-doux);
  color:var(--accent); display:grid; place-items:center; font-size:1.3rem; flex:0 0 auto;
}

/* Chiffres */
.chiffres{display:grid; gap:18px; grid-template-columns:repeat(2,1fr)}
@media (min-width:800px){.chiffres{grid-template-columns:repeat(3,1fr)}}
.chiffre{text-align:center; padding:22px 14px; background:var(--carte);
  border:1px solid var(--carte-bord); border-radius:var(--rayon)}
.chiffre b{display:block; font-family:var(--police-titre); font-weight:700;
  font-size:clamp(1.9rem,5vw,2.6rem); color:var(--accent); line-height:1.1}
.chiffre span{display:block; margin-top:6px; font-size:.92rem; color:var(--encre-douce)}

/* Liste a puces marquees */
.liste{list-style:none; margin:0; padding:0; display:grid; gap:11px}
.liste li{position:relative; padding-left:30px; color:var(--encre-douce)}
.liste li::before{
  content:""; position:absolute; left:0; top:.52em; width:16px; height:16px;
  border-radius:50%; background:var(--accent-doux);
  box-shadow:inset 0 0 0 4px var(--marque);
}
.liste strong{color:var(--titre)}

/* Etapes numerotees */
.etapes{counter-reset:e; display:grid; gap:16px}
@media (min-width:800px){.etapes{grid-template-columns:repeat(2,1fr)}}
.etape{position:relative; padding:22px 22px 22px 74px; background:var(--carte);
  border:1px solid var(--carte-bord); border-radius:var(--rayon)}
.etape::before{
  counter-increment:e; content:counter(e); position:absolute; left:22px; top:22px;
  width:36px; height:36px; border-radius:50%; background:var(--accent);
  color:var(--accent-encre); display:grid; place-items:center;
  font-family:var(--police-titre); font-weight:700; font-size:1rem;
}
.etape h3{font-size:1.08rem; margin-bottom:.35em}
.etape p{margin:0; color:var(--encre-douce); font-size:.96rem}

/* Tableau comparatif */
.tableau-enveloppe{overflow-x:auto; border:1px solid var(--carte-bord);
  border-radius:var(--rayon); background:var(--carte)}
table{border-collapse:collapse; width:100%; min-width:580px; font-size:.95rem}
th,td{padding:14px 16px; text-align:left; border-bottom:1px solid var(--carte-bord)}
thead th{background:var(--fond-doux); color:var(--titre); font-family:var(--police-titre);
  font-weight:600; font-size:.9rem; white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
td.gain{color:var(--accent); font-weight:600}

/* Temoignages */
.avis{display:grid; gap:18px}
@media (min-width:760px){.avis{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1040px){.avis{grid-template-columns:repeat(3,1fr)}}
.avis__carte{background:var(--carte); border:1px solid var(--carte-bord);
  border-radius:var(--rayon); padding:22px; box-shadow:var(--ombre)}
.avis__note{color:var(--marque); letter-spacing:.12em; font-size:.95rem}
.avis__texte{margin:.7em 0 1.1em; color:var(--encre)}
.avis__qui{display:flex; align-items:center; gap:11px}
.avis__jeton{width:38px; height:38px; border-radius:50%; background:var(--accent-doux);
  color:var(--accent); display:grid; place-items:center;
  font-family:var(--police-titre); font-weight:600; font-size:.9rem; flex:0 0 auto}
.avis__nom{font-weight:600; color:var(--titre); font-size:.95rem; line-height:1.3}
.avis__lieu{font-size:.83rem; color:var(--encre-douce)}

/* Marques */
.marques{display:flex; flex-wrap:wrap; justify-content:center; gap:10px 28px;
  list-style:none; margin:0; padding:0}
.marques li{color:var(--encre-douce); font-family:var(--police-titre);
  font-weight:600; font-size:1.05rem; opacity:.75}

/* FAQ */
.faq{display:grid; gap:12px}
.faq details{background:var(--carte); border:1px solid var(--carte-bord);
  border-radius:var(--rayon); overflow:hidden}
.faq summary{
  list-style:none; cursor:pointer; padding:18px 52px 18px 20px; position:relative;
  font-family:var(--police-titre); font-weight:600; color:var(--titre); font-size:1.03rem;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:""; position:absolute; right:22px; top:50%; width:10px; height:10px;
  margin-top:-6px; border-right:2px solid var(--accent); border-bottom:2px solid var(--accent);
  transform:rotate(45deg); transition:transform .18s ease;
}
.faq details[open] summary::after{transform:rotate(-135deg); margin-top:-2px}
.faq summary:hover{background:var(--accent-doux)}
.faq__corps{padding:0 20px 20px; color:var(--encre-douce)}
.faq__corps ul{margin:.6em 0; padding-left:1.15em}
.faq__corps li{margin-bottom:.35em}
.faq__corps p:not(:last-child){margin-bottom:.8em}

/* Bandeau d appel */
.appel{
  background:var(--carte); border:1px solid var(--carte-bord); border-radius:var(--rayon);
  padding:clamp(28px,5vw,52px); text-align:center; box-shadow:var(--ombre);
}
.appel h2{margin-bottom:.35em}
.appel p{color:var(--encre-douce); max-width:56ch; margin-inline:auto; margin-bottom:1.5em}

/* --------------------------------- Blog --------------------------------- */
.article__meta{display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  font-size:.87rem; color:var(--encre-douce); margin-bottom:1em}
.etiquette{display:inline-block; padding:4px 11px; border-radius:var(--rayon-pill);
  background:var(--accent-doux); color:var(--accent); font-size:.79rem; font-weight:600}
.prose{max-width:70ch}
.prose h2{margin-top:1.8em; font-size:clamp(1.35rem,3.2vw,1.85rem)}
.prose h3{margin-top:1.5em}
.prose ul,.prose ol{padding-left:1.3em; color:var(--encre-douce)}
.prose li{margin-bottom:.45em}
.prose figure{margin:1.8em 0}
.prose figure img{border-radius:var(--rayon); box-shadow:var(--ombre)}
.prose figcaption{margin-top:.6em; font-size:.86rem; color:var(--encre-douce); text-align:center}
.prose blockquote{margin:1.6em 0; padding:16px 20px; border-left:4px solid var(--marque);
  background:var(--fond-doux); border-radius:0 var(--rayon-s) var(--rayon-s) 0}

/* ------------------------------ Formulaire ------------------------------ */
.form{display:grid; gap:16px}
.form__duo{display:grid; gap:16px}
@media (min-width:620px){.form__duo{grid-template-columns:1fr 1fr}}
.champ{display:grid; gap:6px}
.champ label{font-size:.92rem; font-weight:600; color:var(--titre)}
.champ .aide{font-size:.83rem; color:var(--encre-douce)}
input[type=text],input[type=email],input[type=tel],textarea{
  width:100%; min-height:48px; padding:12px 14px; font-family:var(--police);
  font-size:1rem; color:var(--encre); background:var(--carte);
  border:1px solid var(--carte-bord); border-radius:var(--rayon-s);
}
textarea{min-height:130px; resize:vertical; line-height:1.6}
input:focus,textarea:focus{outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-doux)}
input::placeholder,textarea::placeholder{color:var(--encre-douce); opacity:.7}
.pot{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
.message{padding:16px 18px; border-radius:var(--rayon-s); border:1px solid var(--carte-bord);
  background:var(--accent-doux); color:var(--encre); margin-bottom:24px}
.message--ok{border-color:var(--accent)}
.message--ko{border-color:#D14343; background:color-mix(in srgb,#D14343 10%,var(--fond))}
.message strong{display:block; margin-bottom:.2em}

/* --------------------------------- Pied --------------------------------- */
.pied{background:var(--fond-doux); border-top:1px solid var(--carte-bord);
  padding-block:52px 28px; margin-top:var(--section)}
.pied__grille{display:grid; gap:32px}
@media (min-width:780px){.pied__grille{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.pied h4{font-size:.82rem; letter-spacing:.11em; text-transform:uppercase;
  color:var(--encre-douce); margin-bottom:1em; font-weight:600}
.pied ul{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.pied a{color:var(--encre-douce); font-size:.95rem}
.pied a:hover{color:var(--accent)}
.pied__mot{margin-bottom:14px}
.pied__desc{color:var(--encre-douce); font-size:.94rem; max-width:34ch}
.pied__bas{display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center;
  justify-content:space-between; margin-top:38px; padding-top:20px;
  border-top:1px solid var(--carte-bord); font-size:.88rem; color:var(--encre-douce)}
.pied__bas ul{display:flex; flex-wrap:wrap; gap:8px 20px}

/* --------------------------------- 404 ---------------------------------- */
.erreur{text-align:center; padding-block:clamp(60px,12vw,140px)}
.erreur__code{font-family:var(--police-titre); font-weight:700; font-size:clamp(4rem,16vw,8rem);
  color:var(--marque); line-height:1; margin-bottom:.1em}
