/* Consignes de soumission des échantillons : page allégée (v48).
   Portée : main.cg uniquement. Jetons du thème (clair et sombre), aucune animation en boucle.
   Sections .svc : titre à gauche figé, contenu à droite (grille du thème, >= 980 px). */

/* ---- rythme et lecture ---- */
html body main.cg section.cg-s{padding-block:clamp(28px,4vw,48px)!important;border-top:1px solid var(--filet)}
html body main.cg section.cg-s:first-of-type{border-top:0}
html body main.cg section.cg-s>.wrap>h2{font-size:clamp(1.35rem,1rem + 1vw,1.85rem)!important;line-height:1.15!important;letter-spacing:-.02em;font-weight:400}
html body main.cg section.cg-s .sub{max-width:62ch!important;margin-block:0 1.1rem!important;line-height:1.65!important}
html body main.cg .cg-ic,html body main.cg .cg-i{width:22px;height:22px;flex:none}
html body main.cg a{text-underline-offset:3px}
html body main.cg .cg-pdf{white-space:nowrap;text-decoration:underline}
html body main.cg .hero-note{display:block}

/* le thème pose une grande carte pleine autour de chaque section : ici, aucune */
html body main.tb.lab.cg section.svc.cg-s>.wrap{background:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important;width:min(1184px,100% - 4rem)!important}
@media (max-width:700px){html body main.tb.lab.cg section.svc.cg-s>.wrap{width:calc(100% - 2rem)!important}}
html body main.tb.lab.cg section.svc.cg-s>.wrap>h2{padding-top:0!important}

/* ---- à retenir : trois lignes, pas de cartes pleines ---- */
html body main.cg .cg-keys{list-style:none;margin:0;padding:0;display:grid;gap:0;border-top:1px solid var(--filet)}
html body main.cg .cg-keys li{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;padding:.95rem 0;border-bottom:1px solid var(--filet)}
html body main.cg .cg-keys .cg-i{color:var(--magenta-texte);margin-top:2px}
html body main.cg .cg-keys b{display:block;font-weight:600;color:var(--encre);margin-bottom:.15rem}
html body main.cg .cg-keys span{display:block;color:var(--gris);line-height:1.55;max-width:62ch}

/* ---- étapes numérotées ---- */
html body main.cg .cg-steps{list-style:none;margin:0;padding:0;display:grid;gap:0}
html body main.cg .cg-step{display:grid;grid-template-columns:56px minmax(0,1fr);gap:18px;padding:1.4rem 0;border-top:1px solid var(--filet)}
html body main.cg .cg-step:first-child{border-top:0;padding-top:0}
html body main.cg .cg-n{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--magenta-texte)}
html body main.cg .cg-n b{font:500 .8rem/1 var(--f-mono);letter-spacing:.08em;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--filet-2);color:var(--encre);background:var(--papier)}
html body main.cg .cg-n .cg-i{width:20px;height:20px}
html body main.cg .cg-sb{min-width:0}
html body main.cg .cg-sb h3{margin:.15rem 0 .6rem;font-size:1.2rem;font-weight:500;line-height:1.25;color:var(--encre)}
html body main.cg .cg-ul{list-style:none;margin:0 0 .5rem;padding:0;display:grid;gap:.45rem;max-width:66ch}
html body main.cg .cg-ul li{position:relative;padding-left:1.1rem;line-height:1.6;color:var(--texte);font-size:.97rem}
html body main.cg .cg-ul li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--magenta);opacity:.7}
html body main.cg .cg-ul b,html body main.cg .cg-def dt{color:var(--encre)}
html body main.cg .cg-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:.9rem 0 .6rem;border-top:1px solid var(--filet)}
html body main.cg .cg-two>div{padding:.8rem 0}
html body main.cg .cg-two h4{margin:0 0 .3rem;font:500 .74rem/1.3 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--gris)}
html body main.cg .cg-two p{margin:0;font-size:.95rem;line-height:1.6;color:var(--texte)}
html body main.cg .cg-aside,html body main.cg .cg-note{margin:.9rem 0 0;max-width:66ch;font-size:.92rem;line-height:1.6;color:var(--gris)}
html body main.cg .cg-note{margin:0 0 1rem;padding-left:.9rem;border-left:2px solid var(--magenta)}
html body main.cg .cg-aside a,html body main.cg .cg-note a,html body main.cg .cg-ul a,html body main.cg .cg-def a,html body main.cg .cg-box a,html body main.cg .sub a{color:var(--magenta-texte);text-decoration:underline}
html body main.cg .cg-addr{display:flex;gap:12px;align-items:flex-start;margin:0 0 .8rem;color:var(--encre)}
html body main.cg .cg-addr .cg-i{color:var(--magenta-texte);margin-top:2px}
html body main.cg .cg-addr address{font-style:normal;line-height:1.55}

/* ---- tableaux compacts ---- */
html body main.cg .cg-tw{overflow-x:auto;margin:.2rem 0 .4rem;-webkit-overflow-scrolling:touch}
html body main.cg table.cg-t{width:100%;border-collapse:collapse;font-size:.9rem;line-height:1.35;background:none;border:0}
html body main.cg table.cg-t :is(th,td){padding:.5rem .7rem .5rem 0!important;line-height:1.35!important;border:0;border-bottom:1px solid var(--filet);text-align:left;vertical-align:top;color:var(--texte);background:none}
html body main.cg table.cg-t thead th{font:500 .7rem/1.3 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--gris);border-bottom:1px solid var(--filet-2);padding-bottom:.45rem!important;white-space:nowrap}
html body main.cg table.cg-t tbody th{font-weight:500;color:var(--encre)}
html body main.cg table.cg-t .cg-svc{min-width:11rem;padding-right:1rem!important}
html body main.cg table.cg-t td.n{white-space:nowrap;font-variant-numeric:tabular-nums}
html body main.cg table.cg-t td.n.l{white-space:normal;min-width:11rem}
html body main.cg table.cg-t td.m{color:var(--gris);opacity:.6}
html body main.cg table.cg-t tbody tr:hover td,html body main.cg table.cg-t tbody tr:hover th{background:var(--magenta-voile)}
html body main.cg table.cg-tt tbody th{white-space:normal;min-width:12rem}
html body main.cg table.cg-ts tbody td:first-of-type{min-width:9rem}
html body main.cg table.cg-ts td.n{white-space:normal}

/* ---- pastilles de température (picto discret) ---- */
html body main.cg .cg-p{display:inline-flex;align-items:center;gap:.4rem;padding:.12rem .6rem .12rem .5rem;border-radius:999px;font-size:.82rem;line-height:1.5;color:var(--encre);border:1px solid color-mix(in srgb,var(--c) 40%,var(--filet));background:color-mix(in srgb,var(--c) 9%,transparent);white-space:nowrap}
html body main.cg .cg-p i{width:7px;height:7px;border-radius:50%;background:var(--c);flex:none}
html body main.cg .cg-p--dry{--c:var(--sp-2)}
html body main.cg .cg-p--ice{--c:var(--d-cyan)}
html body main.cg .cg-p--amb{--c:var(--d-or)}
html body main.cg .cg-or{color:var(--gris);margin-inline:.2rem}
html body main.cg .cg-tx{display:inline-block;margin-left:.4rem;color:var(--gris);font-size:.88rem}

/* ---- exigences : fiches à filets ---- */
html body main.cg .cg-chips,html body main.cg .cg-def{margin:0 0 1rem;display:grid;gap:0;border-top:1px solid var(--filet);max-width:72ch}
html body main.cg .cg-chips>div,html body main.cg .cg-def>div{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:16px;padding:.5rem 0;border-bottom:1px solid var(--filet)}
html body main.cg .cg-chips dt,html body main.cg .cg-def dt{font:500 .74rem/1.6 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--gris);padding-top:.12rem}
html body main.cg .cg-chips dd,html body main.cg .cg-def dd{margin:0;line-height:1.55;font-size:.95rem;color:var(--texte)}
html body main.cg .cg-def dt{color:var(--gris)}
html body main.cg .cg-box{margin:1.4rem 0 0;padding:1rem 1.15rem;border:1px solid var(--filet);border-left:3px solid var(--magenta);border-radius:10px;background:color-mix(in srgb,var(--papier) 70%,transparent);max-width:72ch}
html body main.cg .cg-box h3{margin:0 0 .45rem;font-size:1.02rem;font-weight:600;color:var(--encre)}
html body main.cg .cg-box p{margin:.4rem 0;font-size:.93rem;line-height:1.6;color:var(--texte)}
html body main.cg .cg-dv{list-style:none;margin:.6rem 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html body main.cg .cg-dv li{padding:.55rem .7rem;border:1px solid var(--filet);border-radius:8px;display:grid;gap:.2rem;font-size:.84rem;line-height:1.4;color:var(--gris);align-content:start}
html body main.cg .cg-dv b{font:500 1rem/1.2 var(--f-mono);color:var(--encre)}

/* ---- protocoles : accordéon fin ---- */
html body main.cg .cg-prot{border-top:1px solid var(--filet);max-width:72ch}
html body main.cg .cg-prot details{border-bottom:1px solid var(--filet);background:none;border-radius:0;box-shadow:none;margin:0;padding:0}
html body main.cg .cg-prot summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:.8rem 0;font-weight:500;font-size:1rem;color:var(--encre);line-height:1.4}
html body main.cg .cg-prot summary::-webkit-details-marker{display:none}
html body main.cg .cg-prot summary::marker{content:""}
html body main.cg .cg-prot summary::after{content:"";flex:none;width:8px;height:8px;margin-right:4px;border-right:1.5px solid var(--gris);border-bottom:1.5px solid var(--gris);transform:rotate(45deg) translateY(-2px);transition:transform .2s ease}
html body main.cg .cg-prot details[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
html body main.cg .cg-prot summary:hover{color:var(--magenta-texte)}
html body main.cg .cg-prot summary:focus-visible{outline:2px solid var(--magenta-texte);outline-offset:2px;border-radius:3px}
html body main.cg .cg-prot ol{margin:0 0 1rem;padding-left:1.3rem;display:grid;gap:.4rem;color:var(--texte);font-size:.95rem;line-height:1.6}
html body main.cg .cg-prot ol li::marker{color:var(--magenta-texte);font-family:var(--f-mono);font-size:.85em}

/* ---- FAQ : même titre à gauche, le panneau (style B) à droite ---- */
@media (min-width:980px){
  html body main.cg section#faq>.wrap{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(32px,5vw,80px);align-items:start}
  html body main.cg section#faq>.wrap>h2{position:sticky;top:112px;margin:0}
}
html body main.cg section#faq{padding-block:clamp(28px,4vw,48px)!important;border-top:1px solid var(--filet)}
html body main.cg section#faq>.wrap>h2{font-size:clamp(1.35rem,1rem + 1vw,1.85rem);line-height:1.15;letter-spacing:-.02em;font-weight:400}

/* ---- bandeau final : sans canevas animé ---- */
html body main.cg .cg-fin{padding:clamp(36px,5vw,64px) 0;border-top:1px solid var(--filet)}
html body main.cg .cg-fin h2{max-width:34ch;font-size:clamp(1.3rem,1rem + 1vw,1.8rem);font-weight:400;line-height:1.2;margin:.2rem 0 1.4rem}
html body main.cg .cg-fin .final-actions{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}

/* ---- tablette et mobile ---- */
@media (max-width:979px){
  html body main.cg section.cg-s>.wrap>h2{margin:0 0 1rem!important}
}
@media (max-width:700px){
  html body main.cg .cg-step{grid-template-columns:36px minmax(0,1fr);gap:12px}
  html body main.cg .cg-n b{width:28px;height:28px}
  html body main.cg .cg-two{grid-template-columns:minmax(0,1fr)}
  html body main.cg .cg-chips>div,html body main.cg .cg-def>div{grid-template-columns:minmax(0,1fr);gap:2px}
  html body main.cg .cg-dv{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body main.cg table.cg-t{font-size:.86rem}
  html body main.cg table.cg-t td.n{white-space:normal}
  html body main.cg table.cg-t thead th{white-space:normal}
  html body main.cg .cg-p{white-space:normal}
}
@media (prefers-reduced-motion:reduce){html body main.cg .cg-prot summary::after{transition:none}}
html body main.cg table.cg-ts td:last-child{white-space:nowrap}
@media (max-width:700px){html body main.cg table.cg-ts td:last-child{white-space:normal}html body main.cg .cg-or{display:none}html body main.cg table.cg-ts td:last-child .cg-p{margin:0 .3rem .3rem 0}}
@media (max-width:700px){
  html body main.cg table.cg-tt thead{display:none}
  html body main.cg table.cg-tt :is(tbody,tr,th,td){display:block;width:auto}
  html body main.cg table.cg-tt tr{padding:.55rem 0;border-bottom:1px solid var(--filet)}
  html body main.cg table.cg-tt :is(th,td){border:0;padding:.1rem 0!important;min-width:0!important}
  html body main.cg .cg-tx{display:block;margin:.3rem 0 0}
}

/* lot 1 (25/10) : indice de défilement des tableaux ADN/ARN sur mobile (comme le formulaire de soumission) */
html body main.cg .cg-tw-hint{display:none;margin:.4rem 0 6px;font-size:.85rem;color:var(--gris)}
@media (max-width:900px){html body main.cg .cg-tw-hint{display:block}}
