/* Nuit GEO : un seul thème sombre. Lecture en colonne de 68ch, titres Newsreader, une seule couleur vive (ambre) réservée aux actions et aux citations. */
@font-face{font-family:"Newsreader";src:url("/fonts/newsreader.woff2") format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"Figtree";src:url("/fonts/figtree.woff2") format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --night:#0D1B2A;
  --panel:#16283B;
  --panel-2:#1C3149;
  --line:#24384E;
  --text:#E7EDF3;
  --muted:#A9B8C8;
  --amber:#F2B544;
  --amber-ink:#1A1405;
  --sky:#8CC0EC;
  --ok:#7DD3A8;
  --display:"Newsreader",Georgia,"Times New Roman",serif;
  --body:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --radius:12px;
  --gutter:clamp(16px,4vw,32px);
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:84px;scroll-padding-bottom:80px}
a,button,summary,input,select,textarea{touch-action:manipulation;-webkit-tap-highlight-color:rgba(242,181,68,.25)}
body{margin:0;background:var(--night);color:var(--text);font-family:var(--body);font-size:1.0625rem;line-height:1.7;text-rendering:optimizeLegibility}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--sky);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:4px}
h1,h2,h3{font-family:var(--display);font-weight:500;line-height:1.12;letter-spacing:-.012em;text-wrap:balance;margin:0}
h1{font-size:clamp(2.1rem,1.4rem + 3vw,3.6rem)}
h2{font-size:clamp(1.65rem,1.25rem + 1.6vw,2.35rem)}
h3{font-size:1.35rem;line-height:1.25}
p{margin:0}
.container{width:100%;max-width:1240px;margin-inline:auto;padding-inline:var(--gutter)}
.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--amber);color:var(--amber-ink);padding:8px 14px;border-radius:8px;font-weight:600}
.skip:focus{left:8px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Boutons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:10px;font:600 1rem/1.2 var(--body);text-decoration:none;cursor:pointer;border:0;transition:background-color .15s,box-shadow .15s}
.btn-primary{background:var(--amber);color:var(--amber-ink)}
.btn-primary:hover{background:#F6C565}
.btn-ghost{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1px var(--muted)}
.btn-ghost:hover{box-shadow:inset 0 0 0 2px var(--text)}
.ctas{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- En-tête et méga-menu ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(13,27,42,.94);backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:24px;min-height:68px}
.logo{display:flex;flex-direction:column;text-decoration:none;color:var(--text);line-height:1.1;flex:none}
.logo-name{font:500 1.35rem/1 var(--display)}
.logo-tag{font-size:.78rem;color:var(--muted);margin-top:3px}
.nav{flex:1;display:flex;align-items:center;gap:20px}
.nav-list{display:flex;align-items:center;gap:4px;margin:0;padding:0;list-style:none;flex:1}
.nav-list>li{position:relative;display:flex;align-items:center}
.nav-list>li>a{color:var(--text);text-decoration:none;font-size:.93rem;font-weight:500;padding:10px 8px;border-radius:8px;white-space:nowrap}

.nav-cta{white-space:nowrap}
.nav-list>li>a:hover,.nav-list>li>a[aria-current="page"]{color:var(--amber)}
.sub-toggle{background:none;border:0;color:var(--muted);width:28px;height:36px;margin-left:-8px;cursor:pointer;display:grid;place-items:center}
.sub-toggle:hover{color:var(--amber)}
.sub-toggle::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.mega{position:absolute;top:100%;left:-12px;min-width:520px;display:none;grid-template-columns:1fr 1.3fr;gap:28px;padding:22px 24px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 24px 48px -20px rgba(0,0,0,.6)}
.mega-title{font-size:.82rem;color:var(--muted);font-weight:600;margin-bottom:8px}
.mega ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mega ul.cols{grid-template-columns:1fr 1fr;column-gap:16px}
.mega a{display:block;color:var(--text);text-decoration:none;padding:6px 0;font-size:.95rem}
.mega a:hover{color:var(--amber)}
.nav-toggle{display:none}
@media (min-width:1181px){
  .has-mega:hover>.mega,.has-mega:focus-within>.mega,.has-mega.open>.mega{display:grid}
}
@media (max-width:1180px){
  .nav-toggle:hover{border-color:var(--muted)}
  .nav-toggle{display:inline-flex;margin-left:auto;align-items:center;gap:10px;background:none;border:1px solid var(--line);color:var(--text);border-radius:10px;padding:10px 14px;font:600 .95rem var(--body);cursor:pointer;min-height:44px}
  .nav{display:none;position:fixed;inset:68px 0 0 0;background:var(--night);flex-direction:column;align-items:stretch;padding:12px var(--gutter) 120px;overflow-y:auto}
  .nav.open{display:flex;overscroll-behavior:contain}
  .nav-list{flex-direction:column;align-items:stretch;gap:0}
  .nav-list>li{flex-wrap:wrap;border-bottom:1px solid var(--line)}
  .nav-list>li>a{flex:1;padding:14px 0;font-size:1.05rem}
  .sub-toggle{width:48px;height:48px;margin:0}
  .mega{position:static;display:none;min-width:0;width:100%;grid-template-columns:1fr;gap:14px;padding:4px 0 16px;background:none;border:0;box-shadow:none}
  .has-mega.open>.mega{display:grid}
  .has-mega.open>.sub-toggle:hover{color:var(--amber)}
.sub-toggle::after{transform:rotate(-135deg) translateY(-2px)}
  .nav-cta{margin-top:18px}
}

/* ---------- Hero ---------- */
.hero{padding:clamp(36px,6vw,72px) 0 clamp(40px,6vw,72px);border-bottom:1px solid var(--line)}
.hero-grid{display:grid;gap:40px;align-items:center}
@media (min-width:920px){.hero-grid{grid-template-columns:1.08fr 1fr;gap:56px}}
.hero-text{display:flex;flex-direction:column;gap:20px}
.lead{color:var(--muted);font-size:1.12rem;max-width:58ch}
.lead strong{color:var(--text);font-weight:600}
.reassure{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:0;list-style:none;font-size:.92rem;color:var(--muted)}
.reassure li{display:flex;align-items:center;gap:8px}
.reassure li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--ok);flex:none}
.crumbs{font-size:.88rem;color:var(--muted)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;padding:0;list-style:none}
.crumbs li+li::before{content:"/";margin-right:8px;color:var(--line)}
.crumbs a{color:var(--muted)}
.crumbs [aria-current]{color:var(--text)}

/* Conversation IA : élément signature */
.chat{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:clamp(16px,2.4vw,24px);display:grid;gap:16px;box-shadow:0 30px 60px -36px rgba(0,0,0,.7)}
.chat-q{justify-self:end;max-width:88%;background:#234466;border-radius:16px 16px 4px 16px;padding:12px 16px;font-size:1rem}
.chat-a{display:grid;gap:10px;font-size:1rem;line-height:1.65}
.chat-a p+p{margin-top:2px}
.cite{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:5px;background:var(--amber);color:var(--amber-ink);font:700 .72rem/1 var(--body);vertical-align:2px;margin-left:2px}
.caret{display:inline-block;width:8px;height:1.05em;background:var(--sky);vertical-align:-3px;margin-left:3px;animation:blink 1.1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.caret{animation:none}}
.chat-src{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.85rem;color:var(--muted)}
.chat-src .src{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--amber);color:var(--text);border-radius:8px;padding:4px 10px}
.chat-note{font-size:.8rem;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}

/* En-tête de page simple (sans conversation) */
.page-head{padding:clamp(32px,5vw,60px) 0 clamp(28px,4vw,44px);border-bottom:1px solid var(--line)}
.page-head .container{display:flex;flex-direction:column;gap:18px;max-width:900px;margin-left:max(0px,calc((100% - 1240px)/2))}

/* ---------- Preuves ---------- */
.proof{border-bottom:1px solid var(--line)}
.proof-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin:0;padding:0;list-style:none}
.proof-list li{padding:26px 22px 26px 0;display:flex;flex-direction:column;gap:6px}
@media (min-width:700px){.proof-list li+li{padding-left:22px;border-left:1px solid var(--line)}}
.proof-num{font:500 clamp(1.9rem,1.5rem + 1.2vw,2.5rem)/1 var(--display);font-variant-numeric:lining-nums tabular-nums;color:var(--text)}
.proof-label{font-size:.92rem;color:var(--muted);max-width:30ch}
.proof-foot{font-size:.85rem;color:var(--muted);padding:0 0 22px}

/* ---------- Blocs de contenu ---------- */
.block{padding:clamp(48px,7vw,88px) 0;border-bottom:1px solid var(--line)}
.split{display:grid;gap:22px 56px}
@media (min-width:960px){.split{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}.split>h2{position:sticky;top:96px;align-self:start}}
.block-head{display:flex;flex-direction:column;gap:14px;max-width:68ch;margin-bottom:34px}
.block-head p{color:var(--muted)}
.prose{max-width:68ch;display:flex;flex-direction:column;gap:18px}
.prose h3{margin-top:14px}
.prose ul,.prose ol{margin:0;padding-left:1.2em;display:grid;gap:8px}
.prose .steps,.prose .rows{padding-left:0}
.prose li::marker{color:var(--amber)}
.prose strong{color:#fff;font-weight:600}
.prose .answer{font-size:1.12rem;color:var(--text);border-left:3px solid var(--amber);padding-left:16px}
.prose table,.table-wrap table{width:100%;border-collapse:collapse;font-size:.95rem}
.prose th,.prose td,.table-wrap th,.table-wrap td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.prose thead th,.table-wrap thead th{color:var(--muted);font-weight:600;font-size:.88rem}
.table-wrap tbody th{font-weight:600;color:var(--text)}
code{font-size:.9em;background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:1px 5px}
.table-wrap{overflow-x:auto}
.note{font-size:.92rem;color:var(--muted)}

/* Deux colonnes séparées par un filet (Google / IA, avant / après…) */
.duo{display:grid;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
@media (min-width:760px){.duo{grid-template-columns:1fr 1fr}.duo>div+div{border-left:1px solid var(--line)}}
@media (max-width:759px){.duo>div+div{border-top:1px solid var(--line)}}
.duo>div{padding:26px 26px 28px;display:flex;flex-direction:column;gap:12px}
.duo h3{font-size:1.45rem}
.duo ul{margin:0;padding-left:1.1em;color:var(--muted);display:grid;gap:6px}
.duo li::marker{color:var(--amber)}

/* Liste de services : lignes, pas de cartes */
.rows{display:grid;margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.rows>li{display:grid;gap:6px 32px;padding:22px 0;border-bottom:1px solid var(--line)}
@media (min-width:860px){.rows>li{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) auto;align-items:baseline}}
.rows h3 a{color:var(--text);text-decoration:none}
.rows h3 a:hover{color:var(--amber)}
.rows p{color:var(--muted)}
.rows .more{font-size:.95rem;white-space:nowrap}

/* Étapes (vraie séquence) */
.steps{counter-reset:step;display:grid;gap:0;margin:0;padding:0;list-style:none}
@media (min-width:860px){.steps{grid-template-columns:repeat(4,1fr)}}
.steps li{counter-increment:step;padding:22px 24px 6px 0;border-top:2px solid var(--line);display:flex;flex-direction:column;gap:8px}
.steps li::before{content:counter(step);font:500 2.2rem/1 var(--display);color:var(--amber)}
.steps strong{font-size:1.08rem}
.steps p{color:var(--muted);font-size:.98rem}

/* Études de cas : seules cartes du site */
.cases{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.case{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:14px}
.case h3{font-size:1.3rem}
.case p{color:var(--muted);font-size:.98rem}
.case-kpi{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.case-kpi b{font:500 2rem/1 var(--display);color:var(--text)}
.case-kpi span{color:var(--muted);font-size:.92rem}
.bars{display:flex;align-items:flex-end;gap:8px;height:120px;padding-top:10px;border-bottom:1px solid var(--line)}
.bars div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;height:100%;font-size:.75rem;color:var(--muted)}
.bars i{display:block;width:100%;background:var(--sky);border-radius:4px 4px 0 0;min-height:3px}
.bars div:last-child i{background:var(--amber)}
.bars-legend{display:flex;gap:8px;font-size:.78rem;color:var(--muted)}
.bars-legend span{flex:1;text-align:center}

/* FAQ */
.faq-list{display:grid;border-top:1px solid var(--line);max-width:860px}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";font:400 1.6rem/1 var(--display);color:var(--amber);flex:none}
.faq-list details[open] summary::after{content:"−"}
.faq-list summary h3{font-size:1.2rem;font-family:var(--body);font-weight:600;letter-spacing:0}
.faq-a{padding:0 0 22px;color:var(--muted);max-width:68ch;display:grid;gap:12px}

/* Maillage */
.link-groups{display:grid;gap:32px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.link-groups h3{font-family:var(--body);font-size:.95rem;font-weight:600;color:var(--muted);margin-bottom:10px}
.link-groups ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.link-groups a{color:var(--text);text-decoration:none;border-bottom:1px solid var(--line)}
.link-groups a:hover{color:var(--amber);border-color:var(--amber)}

/* Appel intermédiaire */
.inline-cta{background:var(--panel);border-bottom:1px solid var(--line)}
.inline-cta .container{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-block:22px}
.inline-cta p{color:var(--muted);max-width:62ch}
.inline-cta strong{color:var(--text)}

/* Bandeau d'appel final */
.cta-band{padding:clamp(56px,8vw,96px) 0;background:linear-gradient(180deg,var(--night),var(--panel))}
.cta-band .container{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.cta-band p{color:var(--muted);max-width:60ch}

/* Tarifs */
.price-table{width:100%;border-collapse:collapse}
.price-table th,.price-table td{padding:18px 16px 18px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.price-table thead th{font-size:.88rem;color:var(--muted);font-weight:600}
.price-table td:last-child{white-space:nowrap;font:500 1.25rem var(--display)}
@media (max-width:640px){
  .price-table thead{display:none}
  .price-table,.price-table tbody,.price-table tr,.price-table th,.price-table td{display:block;width:100%}
  .price-table tr{padding:18px 0;border-bottom:1px solid var(--line)}
  .price-table th,.price-table td{border:0;padding:4px 0}
  .price-table td:last-child{margin-top:6px}
}

/* Formulaire */
.form{display:grid;gap:18px;max-width:640px}
.field{display:grid;gap:6px}
.field label{font-weight:600;font-size:.95rem}
.field .hint{font-size:.85rem;color:var(--muted)}
.field input,.field select,.field textarea{width:100%;font:inherit;color:var(--text);background:var(--panel);border:1px solid #3A5272;border-radius:10px;padding:12px 14px;min-height:48px}
.field textarea{min-height:140px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--amber);outline-offset:1px;border-color:transparent}
.hp{position:absolute;left:-9999px}
.form-status{min-height:1.5em;font-weight:600}
.form-status.ok{color:var(--ok)}
.form-status.err{color:#FF9B8F}
.target-msg{display:none}
.target-msg:target{display:block;margin-bottom:12px}

/* Auteur */
.author{display:flex;gap:18px;align-items:center;padding:22px;border:1px solid var(--line);border-radius:var(--radius);max-width:68ch}
.avatar{width:64px;height:64px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--panel-2);color:var(--amber);font:500 1.5rem var(--display)}
.author p{color:var(--muted);font-size:.95rem}
.author strong{color:var(--text)}

/* Blog (cartes injectées par le CMS) */
.post-list{display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.post{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;text-decoration:none;color:var(--text)}
.post img{aspect-ratio:16/9;object-fit:cover;width:100%}
.post-body{padding:18px 20px 22px;display:grid;gap:8px}
.post-tag{font-size:.82rem;color:var(--amber)}
.post h3{font-size:1.25rem}
.post p{color:var(--muted);font-size:.95rem}
.post:hover h3{color:var(--amber)}
.empty{color:var(--muted);border:1px dashed var(--line);border-radius:var(--radius);padding:28px;max-width:68ch}

/* ---------- Pied de page ---------- */
.site-footer{padding:56px 0 120px;border-top:1px solid var(--line);font-size:.95rem}
@media (min-width:1181px){.site-footer{padding-bottom:40px}}
.footer-grid{display:grid;gap:32px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.footer-brand p{color:var(--muted);margin-top:10px;max-width:34ch}
.site-footer h2{font:600 .95rem var(--body);color:var(--text);margin-bottom:12px}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.site-footer a{color:var(--muted);text-decoration:none}
.site-footer a:hover{color:var(--amber)}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:40px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:.88rem}

/* Barre d'action mobile */
.mobile-cta{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;gap:10px;padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom));background:rgba(13,27,42,.96);border-top:1px solid var(--line)}
.mobile-cta .btn{flex:1;min-height:46px;padding:10px 12px;font-size:.95rem}
@media (min-width:1181px){.mobile-cta{display:none}}

/* Contenu publié par le CMS (articles) */
.article-title{max-width:24ch;margin:18px 0 26px}
.article-author{margin-top:44px}
.article .article-hero,.article .article-body-img{margin:10px 0}
.article .article-hero img,.article .article-body-img img{width:100%;border-radius:var(--radius);border:1px solid var(--line)}
.article{padding:clamp(32px,5vw,56px) 0}
.article-body{max-width:72ch;display:flex;flex-direction:column;gap:18px}
.article-body h2{margin-top:22px}
.article-body h3{margin-top:12px}
.article-body img{border-radius:var(--radius);border:1px solid var(--line)}
.article-body figure{margin:8px 0}
.article-body figcaption{font-size:.88rem;color:var(--muted);margin-top:8px}
.article-body blockquote{margin:0;border-left:3px solid var(--amber);padding:4px 0 4px 18px;color:var(--text)}
.article-body table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.article-body th,.article-body td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.article-body ul,.article-body ol{padding-left:1.2em;display:grid;gap:6px}
.article-body li::marker{color:var(--amber)}
