/* Theme general (lot B) : hero clair au format de l'accueil, pastilles "Sur cette page" arrondies,
   cartes a ombres, espacements genereux. Charge apres le theme et les feuilles propres a chaque page.
   Ne modifie ni l'en-tete, ni le menu, ni le pied, ni le CTA final. */

/* ---------- hero ---------- */
html body main.tb header.top.hero-b{padding-block:clamp(64px,8vw,112px) clamp(28px,3.5vw,48px)!important;border:0!important;background:none!important}
html body main.tb header.top.hero-b .wrap{max-width:var(--wrap-max,1184px)!important}
html body main.tb header.top.hero-b .eyebrow{line-height:1.65!important;margin:0 0 16px!important}
html body main.tb header.top.hero-b h1{margin:0!important;font-size:clamp(2.2rem,5vw,4rem)!important;line-height:1.03!important;max-width:18ch!important}
html body main.tb header.top.hero-b h1 .it{font-family:var(--f-didone)!important;font-style:italic!important;font-weight:500!important;font-stretch:normal!important;color:var(--prune-texte,var(--magenta-texte))!important}
html body main.tb header.top.hero-b .lead{margin:1.5rem 0 0!important;max-width:52ch!important;font-size:clamp(1rem,1.15vw,1.15rem)!important;line-height:1.65!important}
html body main.tb header.top.hero-b .hero-note{margin:1rem 0 0!important;max-width:62ch!important;font-size:.95rem!important;line-height:1.6!important;color:var(--muted,var(--gris))!important}
html body main.tb header.top.hero-b .dl-row{display:flex!important;flex-wrap:wrap!important;gap:14px!important;margin:2.25rem 0 0!important;align-items:center!important}
html body main.tb header.top.hero-b .dl-row .btn svg{width:17px!important;height:17px!important}

/* ---------- pastilles "Sur cette page" ---------- */
html body main.tb .pills-b{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:10px;margin:clamp(32px,4vw,52px) 0 0!important;padding-top:22px!important;border-top:1px solid var(--c-hair,var(--filet))!important}
html body main.tb .pills-b .label{grid-column:1/-1;margin:0 0 2px;font-family:var(--f-mono);font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--gris)}
html body main.tb .pills-b a{display:flex;align-items:center;gap:9px;padding:9px 16px;border:1px solid var(--c-hair-2,var(--filet));border-radius:999px;background:var(--surface);color:var(--encre);text-decoration:none!important;font-size:14.5px;line-height:1.25;transition:border-color .18s,color .18s,background .18s}
html body main.tb .pills-b a b{font:500 12px var(--f-mono);color:var(--muted,var(--gris));letter-spacing:.04em}
html body main.tb .pills-b a:hover{border-color:var(--magenta);color:var(--magenta-ink);background:color-mix(in srgb,var(--magenta) 6%,var(--surface))}
@media (max-width:860px){
  html body main.tb .pills-b{display:flex!important;flex-wrap:nowrap;overflow-x:auto;align-items:center;scrollbar-width:none;margin-inline:0}
  html body main.tb .pills-b::-webkit-scrollbar{display:none}
  html body main.tb .pills-b .label{flex:none;margin:0 6px 0 0}
  html body main.tb .pills-b a{flex:none;white-space:nowrap;padding:8px 14px}
}

/* ---------- sections de contenu : cartes a ombres ---------- */
html body main.tb.lab section.svc{padding-block:clamp(14px,2vw,26px)!important;border:0!important}
html body main.tb.lab header.top.hero-b + section.svc{padding-top:clamp(20px,3vw,40px)!important}
html body main.tb.lab section.svc>.wrap{background:var(--surface)!important;border-radius:var(--rayon-carte,22px)!important;padding:clamp(28px,4vw,56px)!important;box-shadow:var(--ombre-carte,0 18px 44px -22px rgba(60,20,70,.28),0 2px 8px rgba(60,20,70,.06))!important;border:0!important}
html body main.tb.lab section.svc>.wrap>.eyebrow{grid-column:1!important;grid-row:1!important;margin:0 0 10px!important}
html body main.tb.lab section.svc>.wrap>h2{grid-row:1/span 12!important}
html body main.tb.lab section.svc>.wrap>.eyebrow+h2{padding-top:30px!important}
html body main.tb.lab section.svc>.wrap>.eyebrow{align-self:start!important;position:relative;z-index:1}
html body main.tb.lab section.svc .svc-list{border-top:0!important;display:grid!important;gap:10px!important}
html body main.tb.lab section.svc .svc-list li{border-bottom:0!important;margin:0!important;padding:.85rem 1.1rem .85rem 2.6rem!important;border-radius:14px!important;background:color-mix(in srgb,var(--magenta) 4%,var(--surface))!important}
html body main.tb.lab section.svc .svc-list li::before{left:1.05rem!important;top:1.3rem!important}
html body main.tb.lab section.svc .sub a{font-weight:500}
@media (max-width:820px){
  html body main.tb.lab section.svc>.wrap{padding:24px 20px!important;display:block!important}
  html body main.tb.lab section.svc>.wrap>h2{position:static!important}
}

/* pas de filets entre les sections */
html body main.tb section.block,html body main.tb section.block+section.block,html body main.tb.lab section.block.guide-glow,html body main.tb.lab section.block.svc.guide-glow{border-top:0!important;border-bottom:0!important}

/* ---------- etapes, FAQ, cartes de confiance (lab) ---------- */
html body main.tb.lab .steps{border-top:0!important;display:grid!important;gap:22px!important}
html body main.tb.lab .steps .step{background:var(--surface)!important;border:0!important;border-radius:var(--rayon-carte,22px)!important;padding:clamp(24px,3.5vw,44px)!important;box-shadow:0 1px 2px rgba(40,16,48,.06),0 18px 44px -20px rgba(60,20,70,.28)!important}
html body main.tb.lab .step__badge{border-color:transparent!important;background:color-mix(in srgb,var(--magenta) 7%,transparent)!important}
html body main.tb.lab .faq{border-top:0!important;display:grid!important;gap:12px!important}
html body main.tb.lab .faq details{background:var(--surface)!important;border:0!important;border-radius:16px!important;padding:1.15rem 1.5rem!important;box-shadow:0 1px 2px rgba(40,16,48,.06),0 12px 30px -18px rgba(60,20,70,.26)!important}
html body main.tb.lab .trust{border:0!important;border-radius:18px!important;box-shadow:0 1px 2px rgba(40,16,48,.06),0 12px 30px -18px rgba(60,20,70,.26)!important}
html body main.tb.lab section.block:not(.svc){padding-block:clamp(28px,4vw,56px)!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) html body main.tb.lab .steps .step{box-shadow:0 1px 2px rgba(0,0,0,.35),0 14px 36px -14px rgba(0,0,0,.65)!important}}
html body main.tb .wrap>span[id]:empty{position:absolute!important;width:0;height:0;overflow:hidden}

/* ---------- pages de reference (consignes) : sections en cartes ---------- */
html body main.tb.lab section.block.guide-glow:not(.svc){padding-block:clamp(14px,2vw,26px)!important}
html body main.tb.lab header.top.hero-b + section.block.guide-glow:not(.svc){padding-top:clamp(20px,3vw,40px)!important}
html body main.tb.lab section.block.guide-glow:not(.svc)>.wrap{background:var(--surface)!important;border-radius:var(--rayon-carte,22px)!important;padding:clamp(28px,4vw,56px)!important;box-shadow:0 1px 2px rgba(40,16,48,.06),0 18px 44px -20px rgba(60,20,70,.28)!important;border:0!important}
html body main.tb.lab section.block.guide-glow:not(.svc)>.wrap+.wrap{margin-top:22px!important}
html body main.tb.lab section.block.guide-glow:not(.svc) .sample-card{border:0!important}
@media (max-width:820px){html body main.tb.lab section.block.guide-glow:not(.svc)>.wrap{padding:24px 18px!important}}
html body main.tb.tb.lab section.block.guide-glow:not(.zz):not(.zy),html body main.tb.tb.lab section.block:not(.zz):not(.zy):not(.zx){border-top:0!important;border-bottom:0!important;border-image:none!important}
html body main#contenu.tb.lab section.block,html body main#contenu.tb.lab section.block+section.block{border-top:0!important;border-bottom:0!important}

/* hero seul (formulaire imprimable : reste de la page inchange) */
/* ---------- hero ---------- */
html body main.tbh header.top.hero-b{padding-block:clamp(64px,8vw,112px) clamp(28px,3.5vw,48px)!important;border:0!important;background:none!important}
html body main.tbh header.top.hero-b .wrap{max-width:var(--wrap-max,1184px)!important}
html body main.tbh header.top.hero-b .eyebrow{line-height:1.65!important;margin:0 0 16px!important}
html body main.tbh header.top.hero-b h1{margin:0!important;font-size:clamp(2.2rem,5vw,4rem)!important;line-height:1.03!important;max-width:18ch!important}
html body main.tbh header.top.hero-b h1 .it{font-family:var(--f-didone)!important;font-style:italic!important;font-weight:500!important;font-stretch:normal!important;color:var(--prune-texte,var(--magenta-texte))!important}
html body main.tbh header.top.hero-b .lead{margin:1.5rem 0 0!important;max-width:52ch!important;font-size:clamp(1rem,1.15vw,1.15rem)!important;line-height:1.65!important}
html body main.tbh header.top.hero-b .hero-note{margin:1rem 0 0!important;max-width:62ch!important;font-size:.95rem!important;line-height:1.6!important;color:var(--muted,var(--gris))!important}
html body main.tbh header.top.hero-b .dl-row{display:flex!important;flex-wrap:wrap!important;gap:14px!important;margin:2.25rem 0 0!important;align-items:center!important}
html body main.tbh header.top.hero-b .dl-row .btn svg{width:17px!important;height:17px!important}


/* ---------- FAQ en cartes (pages hors laboratoire) ---------- */
html body main.tb:not(.lab) .faq{border-top:0!important;display:grid!important;gap:12px!important}
html body main.tb:not(.lab) .faq details{background:var(--surface)!important;border:0!important;border-radius:16px!important;padding:1.15rem 1.5rem!important;box-shadow:0 1px 2px rgba(40,16,48,.06),0 12px 30px -18px rgba(60,20,70,.26)!important}

/* titres longs (etudes de cas) */
html body main.tb header.top.hero-b.hero-b--long h1{max-width:26ch!important;font-size:clamp(1.9rem,4vw,3.1rem)!important;line-height:1.08!important}
html body main.tb header.top.hero-b.hero-b--long .lead{max-width:62ch!important}

/* ---------- etudes de cas : colonne alignee sur le logo, sections en cartes ---------- */
html body main.tbc .wrap{width:min(1184px,100% - 4rem)!important;max-width:none!important}
html body main.tbc header.top.hero-b .wrap>*:not(.pills-b):not(h1){max-width:62rem}
html body main.tbc section.block{padding-block:clamp(14px,2vw,26px)!important;border:0!important}
html body main.tbc section.block>.wrap{background:var(--surface)!important;border-radius:var(--rayon-carte,22px)!important;padding:clamp(24px,4vw,56px)!important;box-shadow:0 1px 2px rgba(40,16,48,.06),0 18px 44px -20px rgba(60,20,70,.28)!important}
html body main.tbc section.block>.wrap>*{max-width:62rem}
html body main.tbc section.block>.wrap>figure{max-width:62rem}
html body main.tbc .cs-glance,html body main.tbc .cs-callout{box-shadow:none!important}
@media (max-width:700px){html body main.tbc .wrap{width:calc(100% - 2rem)!important}html body main.tbc section.block>.wrap{padding:22px 16px!important}}

/* hero avec visuel (R&D) : le visuel couvre texte + boutons, les pastilles prennent toute la largeur */
html body main.tb header.top.hero-b .wrap>.rdfig{grid-row:1/span 4!important}
html body main.tb header.top.hero-b .wrap>.pills-b{grid-column:1/-1}
html body main.tb header.top.hero-b .wrap>.dl-row{grid-column:1}

/* confort de lecture (pages hors laboratoire) */
html body main.tb:not(.lab):not(.tbc) section.block>.wrap>p{line-height:1.7!important;max-width:72ch}

/* formulaire de contact en carte (mise en forme seule) */
html body main.tb section#contact-form form[name="genxmap-contact"]{background:var(--surface)!important;border-radius:var(--rayon-carte,22px)!important;padding:clamp(22px,3.5vw,44px)!important;box-shadow:0 1px 2px rgba(40,16,48,.06),0 18px 44px -20px rgba(60,20,70,.28)!important}

/* sous-titres dans une section fusionnee (lab) */
html body main.tb.lab section.svc .wrap h3{font-size:1.2rem!important;margin:1.8rem 0 .6rem!important;font-weight:600}
/* formulaire : le titre de la feuille ne repete pas le h1 a l'ecran (il reste a l'impression) */
@media screen{html body main.tbh .ssf-top .doc h2{display:none!important}}

/* contact : un seul bloc "Prefer to write directly" visible (le bloc mini doublonnait sur mobile) */
html body main.tb .direct.direct--mini{display:none!important}
