/* Glace Carbonique France. Direction : fiche technique de fournisseur, papier, encre, étiquette de colis. */
:root {
  --papier: #f3efe6;
  --papier-2: #e9e3d6;
  --carton: #d8cfbd;
  --encre: #1c1f22;
  --encre-2: #4a4f54;
  --trait: #1c1f22;
  --givre: #3c6178;
  --givre-pale: #dfe7ea;
  --signal: #d9531e;
  --signal-fonce: #b5410f;
  --vert: #2f6b4f;
  --titre: "Archivo", "Arial Narrow", sans-serif;
  --texte: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --large: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 18px/1.6 var(--texte); }
img, svg { max-width: 100%; display: block; }
a { color: var(--givre); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-fonce); }
.c { max-width: var(--large); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .t { font-family: var(--titre); font-stretch: 85%; letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.mono, .etq { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }

/* Bandeau haut */
.bandeau { background: var(--encre); color: var(--papier); font-family: var(--mono); font-size: .75rem; letter-spacing: .03em; }
.bandeau .c { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.bandeau span:last-child { opacity: .75; }
@media (max-width: 640px) { .bandeau span:last-child { display: none; } }

/* En-tête */
.tete { border-bottom: 2px solid var(--trait); background: var(--papier); position: sticky; top: 0; z-index: 20; }
.tete .c { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.logo b { font-family: var(--titre); font-stretch: 80%; font-size: 1.32rem; font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.logo b i { font-style: normal; color: var(--givre); display: block; font-size: .8rem; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.menu { display: flex; gap: 22px; margin-left: auto; font-family: var(--titre); font-weight: 600; font-size: .98rem; }
.menu a { color: var(--encre); text-decoration: none; }
.menu a:hover { color: var(--signal-fonce); text-decoration: underline; }
.tete .btn { padding: 10px 16px; font-size: .95rem; }
@media (max-width: 900px) { .menu { display: none; } .tete .btn { margin-left: auto; } }

/* Boutons */
.btn { display: inline-block; background: var(--signal); color: #fff; border: 2px solid var(--encre); font-family: var(--titre); font-weight: 700; font-size: 1.05rem; padding: 14px 22px; text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--encre); transition: transform .08s, box-shadow .08s; }
.btn:hover { color: #fff; background: var(--signal-fonce); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sec { background: var(--papier); color: var(--encre); }
.btn-sec:hover { background: var(--papier-2); color: var(--encre); }

/* Accueil : en-tête éditorial */
.une { border-bottom: 2px solid var(--trait); }
.une .c { display: grid; grid-template-columns: 1.25fr .95fr; gap: 48px; padding-top: 48px; padding-bottom: 56px; align-items: start; }
.une h1 em { font-style: normal; color: var(--givre); }
.une .chapo { font-size: 1.2rem; color: var(--encre-2); max-width: 36em; }
.une .rangs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .82rem; }
.une .rangs li::before { content: "✓ "; color: var(--vert); font-weight: 700; }
@media (max-width: 900px) { .une .c { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; } }

/* Étiquette de colis (devis rapide) */
.colis { background: #fffdf8; border: 2px solid var(--trait); position: relative; box-shadow: 8px 8px 0 var(--carton); }
.colis .haut { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--trait); padding: 10px 16px; }
.colis .haut .etq { font-weight: 600; }
.classe9 { flex: none; }
.colis .interieur { padding: 18px 18px 20px; }
.colis h2 { margin: 0 0 4px; font-size: 1.45rem; }
.colis p.etq { color: var(--encre-2); margin-bottom: 14px; }
.kg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--trait); margin-bottom: 14px; }
.kg a { text-align: center; padding: 12px 4px 10px; text-decoration: none; color: var(--encre); border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); font-family: var(--titre); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.kg a small { display: block; font-family: var(--mono); font-weight: 400; font-size: .66rem; color: var(--encre-2); margin-top: 3px; text-transform: uppercase; }
.kg a:nth-child(4n) { border-right: 0; }
.kg a:nth-last-child(-n+4) { border-bottom: 0; }
.kg a:hover { background: var(--givre-pale); }
.colis .pied { border-top: 2px dashed var(--trait); padding: 10px 16px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; }

/* Sections */
.bloc { padding: 64px 0; border-bottom: 1px solid var(--carton); }
.bloc.sombre { background: var(--encre); color: var(--papier); border: 0; }
.bloc.sombre a { color: #b7d3e0; }
.bloc.pale { background: var(--papier-2); }
.surtitre { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--givre); margin-bottom: 10px; display: block; }
.sombre .surtitre { color: #b7d3e0; }
.bloc h2:first-child, .surtitre + h2 { margin-top: 0; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--trait); }
.trois > div { padding: 22px 24px 8px 0; border-right: 1px solid var(--carton); }
.trois > div + div { padding-left: 24px; }
.trois > div:last-child { border-right: 0; }
.num { font-family: var(--titre); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--givre); font-stretch: 75%; }
@media (max-width: 860px) { .deux, .trois { grid-template-columns: 1fr; gap: 28px; } .trois > div, .trois > div + div { padding: 18px 0 0; border-right: 0; } }

/* Tableau des quantités : façon fiche technique */
.fiche { width: 100%; border-collapse: collapse; border: 2px solid var(--trait); background: #fffdf8; font-size: 1rem; }
.fiche th, .fiche td { border-bottom: 1px solid var(--carton); padding: 13px 14px; text-align: left; vertical-align: top; }
.fiche thead th { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--trait); background: var(--papier-2); }
.fiche td:first-child { font-family: var(--titre); font-weight: 750; font-size: 1.15rem; white-space: nowrap; }
.fiche tr:hover td { background: var(--givre-pale); }
.fiche td a { font-family: var(--titre); font-weight: 600; white-space: nowrap; }
.defile { overflow-x: auto; }
@media (max-width: 700px) { .fiche .opt { display: none; } }

/* Liste d'index (usages, villes) */
.index { columns: 3; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.index li { break-inside: avoid; border-bottom: 1px solid var(--carton); }
.index a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; text-decoration: none; color: var(--encre); font-family: var(--titre); font-weight: 600; font-size: 1.05rem; }
.index a::after { content: "→"; color: var(--givre); }
.index a:hover { color: var(--signal-fonce); }
.sombre .index li { border-color: #3a3f44; }
.sombre .index a { color: var(--papier); }
@media (max-width: 860px) { .index { columns: 2; } }
@media (max-width: 520px) { .index { columns: 1; } }

/* Note manuscrite */
.note { font-family: var(--texte); font-style: italic; border-left: 3px solid var(--signal); padding: 4px 0 4px 16px; color: var(--encre-2); margin: 24px 0; }

/* Avertissement */
.alerte { border: 2px solid var(--trait); background: #fff6d6; padding: 16px 18px 6px; margin: 28px 0; position: relative; }
.alerte .etq { display: inline-block; background: var(--encre); color: #fff6d6; padding: 3px 8px; margin-bottom: 10px; }

/* Pages de contenu */
.fil { font-family: var(--mono); font-size: .75rem; padding: 18px 0 0; color: var(--encre-2); }
.fil a { color: var(--encre-2); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 18px; padding-bottom: 72px; }
.article header { border-bottom: 2px solid var(--trait); padding-bottom: 20px; margin-bottom: 8px; }
.article .chapo { font-size: 1.22rem; color: var(--encre-2); }
.article .chapo p { margin: 0 0 .5em; }
.corps h2 { padding-top: 6px; border-top: 1px solid var(--carton); }
.corps ul, .corps ol { padding-left: 1.2em; }
.corps li { margin-bottom: .4em; }
.corps table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; border: 2px solid var(--trait); background: #fffdf8; }
.corps th, .corps td { border-bottom: 1px solid var(--carton); padding: 9px 11px; text-align: left; vertical-align: top; }
.corps th { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; background: var(--papier-2); }
.corps .tableau { overflow-x: auto; }
.cote { position: sticky; top: 96px; align-self: start; }
.cote .colis .interieur { padding: 16px; }
.cote .colis h2 { border: 0; padding: 0; }
.voir { margin-top: 26px; font-size: .95rem; }
.voir h3 { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.voir ul { list-style: none; padding: 0; margin: 0; }
.voir li { border-bottom: 1px solid var(--carton); }
.voir a { display: block; padding: 7px 0; text-decoration: none; color: var(--encre); }
.voir a:hover { color: var(--signal-fonce); }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; gap: 24px; } .cote { position: static; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--carton); }
.faq details:first-of-type { border-top: 2px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-family: var(--titre); font-weight: 700; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--givre); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 8px; }

/* Bande d'appel */
.appel { background: var(--givre); color: #fff; border-top: 2px solid var(--trait); border-bottom: 2px solid var(--trait); }
.appel .c { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.appel h2 { margin: 0; color: #fff; }
.appel p { margin: 6px 0 0; opacity: .9; }

/* Pied de page */
.pied-site { background: var(--encre); color: #cfd3d6; font-size: .92rem; padding: 48px 0 28px; }
.pied-site a { color: #e8ebed; text-decoration: none; }
.pied-site a:hover { text-decoration: underline; color: #fff; }
.pied-site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied-site h3 { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8f979d; font-weight: 500; }
.pied-site ul { list-style: none; padding: 0; margin: 0; }
.pied-site li { margin-bottom: 6px; }
.pied-site .bas { border-top: 1px solid #3a3f44; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; color: #8f979d; }
@media (max-width: 860px) { .pied-site .cols { grid-template-columns: 1fr 1fr; } }

/* Formulaire */
.formulaire { background: #fffdf8; border: 2px solid var(--trait); box-shadow: 8px 8px 0 var(--carton); }
.formulaire .haut { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--trait); padding: 12px 18px; gap: 12px; }
.progression { height: 6px; background: var(--papier-2); border-bottom: 1px solid var(--trait); }
.progression span { display: block; height: 100%; width: 10%; background: var(--signal); transition: width .25s; }
.etape { padding: 22px 22px 6px; }
.etape h2 { font-size: 1.5rem; margin: 0 0 14px; border: 0; padding: 0; }
.etape h2 + .aide { margin-top: -8px; }
.aide { color: var(--encre-2); font-size: .95rem; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.choix.un { grid-template-columns: 1fr; }
.choix.quatre { grid-template-columns: repeat(4, 1fr); }
.choix label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--encre); padding: 11px 12px; cursor: pointer; background: var(--papier); font-size: 1rem; line-height: 1.3; }
.choix label:hover { background: var(--givre-pale); }
.choix input { accent-color: var(--signal); margin-top: 3px; flex: none; }
.choix label:has(input:checked) { background: var(--encre); color: var(--papier); }
.choix label small { display: block; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.choix.quatre label { flex-direction: column; align-items: center; text-align: center; font-family: var(--titre); font-weight: 700; }
.choix.quatre input { position: absolute; opacity: 0; }
@media (max-width: 640px) { .choix { grid-template-columns: 1fr; } .choix.quatre { grid-template-columns: 1fr 1fr; } }
.champ { display: block; margin-bottom: 14px; font-family: var(--titre); font-weight: 600; font-size: .98rem; }
.champ input, .champ textarea, .champ select { display: block; width: 100%; margin-top: 5px; font: 1rem var(--texte); padding: 11px 12px; border: 1.5px solid var(--encre); background: #fff; border-radius: 0; }
.champ input:focus, .champ textarea:focus, .champ select:focus, .choix label:focus-within { outline: 3px solid var(--signal); outline-offset: 1px; }
.ligne { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; font-size: .9rem; color: var(--encre-2); line-height: 1.4; margin: 6px 0 14px; }
.consent input { accent-color: var(--signal); margin-top: 3px; flex: none; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 22px; gap: 12px; }
.nav .btn { margin-left: auto; }
.lien-retour { background: none; border: 0; font: 600 1rem var(--titre); color: var(--encre-2); text-decoration: underline; cursor: pointer; padding: 0; }
.pas { font-family: var(--mono); font-size: .72rem; margin: 0; }
.err { margin: 0 22px; background: #fbe1d6; border: 1.5px solid var(--signal-fonce); padding: 9px 12px; font-size: .95rem; }
.hp { position: absolute; left: -9999px; }
.sugg { list-style: none; margin: -8px 0 12px; padding: 0; border: 1.5px solid var(--encre); border-top: 0; background: #fff; }
.sugg:empty { display: none; }
.sugg li { padding: 8px 12px; cursor: pointer; font-size: .92rem; border-top: 1px solid var(--carton); }
.sugg li:hover { background: var(--givre-pale); }
.pro-only[hidden] { display: none; }

/* Calculateur */
.calc { background: #fffdf8; border: 2px solid var(--trait); padding: 22px; box-shadow: 8px 8px 0 var(--carton); }
.calc output { display: block; font-family: var(--titre); font-weight: 800; font-size: 3.2rem; font-stretch: 75%; line-height: 1; color: var(--givre); }
.calc .res { border-top: 2px solid var(--trait); margin-top: 16px; padding-top: 16px; }

/* Bandeau mobile */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px; background: var(--papier); border-top: 2px solid var(--trait); }
  .mobile-cta .btn { display: block; text-align: center; box-shadow: none; }
  body.a-cta { padding-bottom: 76px; }
}
.merci { padding: 80px 0; max-width: 720px; }

/* Correctifs */
[hidden] { display: none !important; }
.article > *, .une .c > *, .deux > * { min-width: 0; }
@media (max-width: 980px) { .article { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  body { font-size: 17px; }
  .tete .c { gap: 12px; min-height: 60px; }
  .logo svg { width: 34px; height: 34px; }
  .logo b { font-size: 1.1rem; }
  .tete .btn { padding: 8px 11px; font-size: .85rem; box-shadow: 3px 3px 0 var(--encre); }
  .etape { padding: 18px 16px 4px; }
  .nav { padding: 10px 16px 18px; }
  .err { margin: 0 16px; }
  .ligne { grid-template-columns: 1fr !important; gap: 0; }
  .formulaire, .colis, .calc { box-shadow: 5px 5px 0 var(--carton); }
  .colis .pied { flex-direction: column; gap: 2px; }
}
.cote .kg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cote .kg a { font-size: .95rem; padding: 10px 2px 8px; }
@media (max-width: 520px) { .bandeau { font-size: .66rem; } .article .chapo, .une .chapo { font-size: 1.06rem; } .fil { font-size: .66rem; } .surtitre { font-size: .7rem; } }
