/* StockNShip — feuille de style principale
   Direction : « l'étiquette d'expédition ». Béton, encre, kraft, orange signal. */

@font-face {
  font-family: "Heros Cn";
  src: url("polices/texgyreheroscn-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heros";
  src: url("polices/texgyreheros-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heros";
  src: url("polices/texgyreheros-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --beton: #ECEEF0;
  --beton-2: #E2E5E9;
  --encre: #121826;
  --encre-2: #4A5163;
  --trait: #CDD1D7;
  --kraft: #C99B5F;
  --kraft-clair: #E7D3B6;
  --orange: #F26B1D;
  --orange-fonce: #C9500C;
  --blanc: #FFFFFF;
  --vert: #1F9D55;
  --vert-fonce: #157A41;
  --rouge: #B42318;

  --titre: "Heros Cn", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --texte: "Heros", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --largeur: 1160px;
  --gouttiere: 20px;
  --rayon: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--beton);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: 10px 14px; border-radius: var(--rayon);
}
.lien-evitement:focus { top: 12px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--texte); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: var(--rayon); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.bouton-principal { background: var(--orange); color: var(--encre); }
.bouton-principal:hover { background: #F7853F; }
.bouton-secondaire { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-secondaire:hover { background: var(--encre); color: var(--blanc); }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 238, 240, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--trait);
}
.entete-interieur { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-size: 1.45rem; letter-spacing: 0; }
.logo-marque {
  width: 34px; height: 34px; border-radius: 7px; background: var(--orange); color: var(--encre);
  display: grid; place-items: center; font-family: var(--titre); font-size: 1rem; letter-spacing: 0.02em;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.bouton) { text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:not(.bouton):hover { color: var(--orange-fonce); }
.nav .bouton { min-height: 42px; padding: 9px 16px; white-space: nowrap; }
@media (max-width: 420px) {
  .logo { font-size: 1.25rem; gap: 8px; }
  .logo-marque { width: 30px; height: 30px; }
  .nav .bouton { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
}
@media (max-width: 860px) {
  .nav a:not(.bouton) { display: none; }
}
.nav a.langue {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 40px; padding: 0 9px;
  border: 1.5px solid var(--trait); border-radius: 7px; font-size: .82rem; letter-spacing: .06em;
}
.nav a.langue:hover { border-color: var(--orange-fonce); }
@media (max-width: 860px) { .nav { gap: 12px; } }
@media (max-width: 380px) { .nav a.langue { min-width: 34px; padding: 0 6px; } .logo span:last-child { font-size: 1.1rem; } }

/* ---------- Accueil ---------- */
.accueil { padding: 64px 0 88px; }
.accueil-grille { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.accueil h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); }
.accueil h1 .ligne { display: block; }
.accueil-intro { font-size: 1.2rem; color: var(--encre-2); max-width: 34rem; margin: 22px 0 30px; }
.accueil-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.points li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; }
.points li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (max-width: 900px) {
  .accueil { padding: 40px 0 64px; }
  .accueil-grille { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Étiquette d'expédition (élément signature) ---------- */
.etiquette-zone { position: relative; padding: 18px 8px 0; }
.etiquette {
  position: relative; background: var(--blanc); border-radius: 4px;
  box-shadow: 0 1px 0 var(--trait), 0 22px 40px -22px rgba(18, 24, 38, .45);
  transform: rotate(-1.6deg);
  padding: 22px 24px 20px; max-width: 470px; margin: 0 auto;
}
.etiquette::before { /* bande de scotch kraft */
  content: ""; position: absolute; top: -16px; left: 50%; width: 130px; height: 32px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(201, 155, 95, .82);
  clip-path: polygon(3% 0, 97% 4%, 100% 100%, 0 96%);
}
.etq-haut { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--encre); padding-bottom: 10px; }
.etq-marque { font-family: var(--titre); font-size: 1.6rem; }
.etq-colis { font-weight: 700; font-size: .8rem; color: var(--encre-2); }
.etq-adresses { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--encre); }
.etq-adresses > div { padding: 12px 0; }
.etq-adresses > div + div { border-left: 1px solid var(--encre); padding-left: 14px; }
.etq-libelle { display: block; font-size: .72rem; font-weight: 700; color: var(--encre-2); margin-bottom: 2px; }
.etq-adresses strong { display: block; font-size: 1rem; line-height: 1.25; }
.etq-adresses span.ville { font-size: .9rem; color: var(--encre-2); }
.etq-code { padding: 14px 0 6px; border-bottom: 1px solid var(--encre); }
.etq-code svg { width: 100%; height: 58px; }
.etq-numero { font-family: var(--mono); font-size: .92rem; letter-spacing: .14em; text-align: center; margin: 6px 0 8px; }
.suivi { list-style: none; margin: 14px 0 0; padding: 0; }
.suivi li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 7px 0; }
.suivi li + li::before { /* trait entre les étapes */
  content: ""; position: absolute; left: 10px; top: -9px; width: 2px; height: 18px; background: var(--trait);
}
.suivi .pastille {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--trait); background: var(--blanc);
  display: grid; place-items: center;
}
.suivi .pastille svg { width: 12px; height: 12px; opacity: 0; }
.suivi .libelle { font-weight: 700; font-size: .97rem; }
.suivi time { font-family: var(--mono); font-size: .85rem; color: var(--encre-2); }

.suivi li { animation: etape-on .35s ease-out both; }
.suivi li .pastille { animation: pastille-on .35s ease-out both; }
.suivi li .pastille svg { animation: coche-on .2s ease-out both; }
.suivi li:nth-child(1), .suivi li:nth-child(1) .pastille, .suivi li:nth-child(1) .pastille svg { animation-delay: .5s; }
.suivi li:nth-child(2), .suivi li:nth-child(2) .pastille, .suivi li:nth-child(2) .pastille svg { animation-delay: 1.2s; }
.suivi li:nth-child(3), .suivi li:nth-child(3) .pastille, .suivi li:nth-child(3) .pastille svg { animation-delay: 1.9s; }
.suivi li:nth-child(4), .suivi li:nth-child(4) .pastille, .suivi li:nth-child(4) .pastille svg { animation-delay: 2.6s; }
.suivi li:nth-child(4) .pastille { animation-name: pastille-livre; }
.suivi li:nth-child(4) .libelle { color: var(--vert-fonce); }

@keyframes etape-on { from { opacity: .35; } to { opacity: 1; } }
@keyframes pastille-on { to { background: var(--encre); border-color: var(--encre); } }
@keyframes pastille-livre { to { background: var(--vert); border-color: var(--vert); } }
@keyframes coche-on { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .suivi li, .suivi li .pastille, .suivi li .pastille svg { animation-duration: 0s !important; animation-delay: 0s !important; }
}
.etiquette-note { text-align: center; font-size: .82rem; color: var(--encre-2); margin: 26px auto 0; max-width: 34rem; }

@media (max-width: 480px) {
  .etiquette { padding: 20px 16px 16px; transform: rotate(-1deg); }
  .etq-adresses { grid-template-columns: 1fr; }
  .etq-adresses > div + div { border-left: 0; border-top: 1px solid var(--encre); padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tete { max-width: 44rem; margin-bottom: 48px; }
.section-tete p { font-size: 1.12rem; color: var(--encre-2); margin-top: 16px; }
@media (max-width: 700px) { .section { padding: 68px 0; } .section-tete { margin-bottom: 34px; } }

.section-blanche { background: var(--blanc); }
.section-sombre { background: var(--encre); color: var(--beton); }
.section-sombre .section-tete p { color: #B9BFCB; }

/* ---------- Globe ---------- */
.globe-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.globe-cadre { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-left: auto; }
.globe-cadre canvas { width: 100%; height: 100%; border-radius: 6px; }
.globe-aide { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: .8rem; color: #8D94A3; white-space: nowrap; }
.distances-titre { font-family: var(--texte); font-size: .85rem; font-weight: 700; color: var(--kraft); margin: 4px 0 6px; }
.distances { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.distances li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #2B3243; }
.distances .km { font-family: var(--titre); font-size: 1.15rem; color: var(--blanc); }
.destinations-note { font-size: .85rem; color: #8D94A3; margin-top: 22px; }
@media (max-width: 900px) {
  .globe-grille { grid-template-columns: 1fr; }
  .globe-cadre { margin: 0 auto; max-width: 440px; }
}
@media (max-width: 420px) { .distances { column-gap: 20px; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service { padding: 28px 0 30px; border-top: 3px solid var(--encre); }
.service h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.85rem; margin-bottom: 10px; }
.service p { color: var(--encre-2); margin: 0; max-width: 32rem; }
.service-bientot { border-top-color: var(--kraft); }
.badge {
  display: inline-block; font-family: var(--texte); font-size: .78rem; font-weight: 700;
  padding: 4px 9px; border-radius: 3px; background: var(--kraft-clair); color: var(--encre); letter-spacing: 0;
}
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ---------- Comment ça marche ---------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: etape; }
.etapes::before { /* le trajet du colis */
  content: ""; position: absolute; top: 25px; left: 26px; right: calc((100% - 84px) / 4 - 26px); height: 0;
  border-top: 3px dashed var(--kraft);
}
.etape { position: relative; counter-increment: etape; }
.etape::before {
  content: counter(etape); position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 50%; background: var(--encre); color: var(--beton);
  font-family: var(--titre); font-size: 1.5rem;
}
.etape:last-child::before { background: var(--vert); color: var(--blanc); }
.etape h3 { font-size: 1.45rem; margin-bottom: 8px; }
.etape p { color: var(--encre-2); margin: 0; }
@media (max-width: 900px) {
  .etapes { grid-template-columns: 1fr; gap: 26px; }
  .etapes::before { top: 26px; bottom: 26px; left: 24px; right: auto; height: auto; border-top: 0; border-left: 3px dashed var(--kraft); }
  .etape { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; }
  .etape::before { grid-row: span 2; margin: 0; }
}

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin: 0; }
.atout dt { font-family: var(--titre); font-size: 1.5rem; line-height: 1.1; padding-top: 16px; border-top: 1px solid var(--trait); margin-bottom: 8px; }
.atout dd { margin: 0; color: var(--encre-2); }
@media (max-width: 900px) { .atouts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .atouts { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Tarifs (bon de livraison) ---------- */
.tarifs-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ticket { background: var(--blanc); border-radius: 4px; padding: 30px 30px 26px; box-shadow: 0 1px 0 var(--trait); position: relative; }
.ticket::after { /* bord dentelé du ticket */
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: radial-gradient(circle at 8px 0, transparent 7px, var(--blanc) 7.5px) -8px 0/16px 8px repeat-x;
}
.ticket-titre { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--encre); padding-bottom: 12px; margin-bottom: 6px; }
.ticket-titre h3 { font-size: 1.6rem; }
.ticket-titre span { font-size: .85rem; color: var(--encre-2); font-weight: 700; }
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--trait); }
.lignes .quoi { font-weight: 700; }
.lignes .quoi small { display: block; font-weight: 400; color: var(--encre-2); font-size: .88rem; }
.lignes .points-suite { flex: 1; border-bottom: 2px dotted var(--trait); transform: translateY(-5px); min-width: 20px; }
.lignes .prix { font-family: var(--titre); font-size: 1.55rem; white-space: nowrap; text-align: right; }
.lignes .prix small { font-family: var(--texte); font-size: .82rem; color: var(--encre-2); margin-left: 2px; }
.lignes .prix.devis { font-family: var(--texte); font-weight: 700; font-size: 1rem; }
.ticket-mention { font-size: .85rem; color: var(--encre-2); margin: 16px 0 0; }
.offre {
  margin-top: 30px; background: var(--kraft); color: var(--encre); border-radius: 4px; padding: 20px 22px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 7px);
}
.offre strong { display: block; font-family: var(--titre); font-size: 1.5rem; margin-bottom: 4px; }
.offre p { margin: 0; }

/* Simulateur */
.simulateur { background: var(--encre); color: var(--beton); border-radius: 4px; padding: 30px; }
.simulateur h3 { font-size: 1.6rem; margin-bottom: 6px; }
.simulateur > p { color: #B9BFCB; margin-bottom: 22px; }
.sim-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sim-champs label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.sim-champs input {
  width: 100%; min-height: 52px; padding: 10px 12px; border-radius: var(--rayon);
  border: 2px solid #3A4152; background: #1B2233; color: var(--blanc);
  font-family: var(--titre); font-size: 1.5rem;
}
.sim-champs input:focus { border-color: var(--orange); outline: none; }
.sim-resultat { margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid #3A4152; }
.sim-resultat .montant { font-family: var(--titre); font-size: clamp(2.6rem, 6vw, 3.4rem); color: var(--blanc); line-height: 1; }
.sim-resultat .montant small { font-family: var(--texte); font-size: 1rem; color: #B9BFCB; }
.sim-detail { font-size: .88rem; color: #B9BFCB; margin: 10px 0 22px; }
@media (max-width: 900px) { .tarifs-grille { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .ticket, .simulateur { padding: 24px 18px; }
  .sim-champs { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--titre); font-size: 1.35rem; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 3px solid var(--encre); border-bottom: 3px solid var(--encre); transform: rotate(45deg);
  transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--encre-2); margin: 0 0 22px; max-width: 44rem; }

/* ---------- Formulaire de devis ---------- */
.devis-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.devis-aside p { color: var(--encre-2); }
.devis-aside h2 { margin-bottom: 18px; }
.devis-aside .contact-direct { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--trait); }
.devis-aside .contact-direct a { font-weight: 700; }
.formulaire { background: var(--blanc); border-radius: 4px; padding: 32px; box-shadow: 0 1px 0 var(--trait); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ label, .champ legend { font-weight: 700; font-size: .93rem; }
.champ .aide { font-weight: 400; color: var(--encre-2); font-size: .85rem; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ input[type="url"],
.champ input[type="number"], .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 11px 13px;
  border: 2px solid var(--trait); border-radius: var(--rayon); background: var(--blanc);
  color: var(--encre); font: inherit; font-size: 1rem;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--encre); outline: none; box-shadow: 0 0 0 3px rgba(242, 107, 29, .35); }
.champ [aria-invalid="true"] { border-color: var(--rouge); }
fieldset.champ { border: 0; padding: 0; margin: 0; }
.cases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.case { position: relative; }
.case input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.case span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px;
  border: 2px solid var(--trait); border-radius: 999px; font-size: .95rem; cursor: pointer; user-select: none;
}
.case input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.case input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--encre-2); font-weight: 400 !important; }
.consentement input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--encre); }
.pot-de-miel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton { width: 100%; margin-top: 8px; }
.message-form { margin-top: 16px; padding: 14px 16px; border-radius: var(--rayon); font-weight: 700; }
.message-form[hidden] { display: none; }
.message-form.ok { background: #E3F4EA; color: var(--vert-fonce); }
.message-form.erreur { background: #FDECEA; color: var(--rouge); }
@media (max-width: 900px) { .devis-grille { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) {
  .formulaire { padding: 22px 16px; }
  .champs { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #B9BFCB; padding: 56px 0 40px; font-size: .95rem; }
.pied-grille { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
.pied .logo { color: var(--beton); }
.pied p { margin: 12px 0 0; max-width: 26rem; }
.pied nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: var(--beton); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .pied-bas { max-width: none; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2B3243; font-size: .85rem; }

/* ---------- Pages légales ---------- */
.page-legale { padding: 64px 0 96px; }
.page-legale .conteneur { max-width: 820px; }
.page-legale h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page-legale h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.page-legale p, .page-legale li { color: var(--encre-2); }
.page-legale strong { color: var(--encre); }
.a-completer { background: #FFF1D6; color: #7A4B00; padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.retour { display: inline-block; margin-bottom: 28px; font-weight: 700; text-decoration: none; }
.retour:hover { color: var(--orange-fonce); }

/* ---------- Pages services (référencement local) ---------- */
.page-service .page-intro { font-size: 1.2rem; color: var(--encre-2); margin-bottom: 8px; }
.page-service ul { padding-left: 1.2em; }
.page-service li { margin-bottom: 8px; }
.page-service .faq { margin-top: 8px; }
.appel { background: var(--blanc); border-left: 6px solid var(--orange); border-radius: 4px; padding: 26px 26px 22px; margin: 40px 0 8px; box-shadow: 0 1px 0 var(--trait); }
.appel strong { display: block; font-family: var(--titre); font-size: 1.6rem; margin-bottom: 6px; }
.appel .bouton { margin: 6px 10px 0 0; }
.services-liens { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.services-liens a { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 14px; border: 2px solid var(--encre); border-radius: 999px; font-weight: 700; text-decoration: none; }
.services-liens a:hover { background: var(--encre); color: var(--blanc); }
@media (max-width: 480px) { .appel { padding: 22px 16px; } .appel .bouton { width: 100%; margin-right: 0; } }

/* ===== Bloc devis (remplace le simulateur) et WhatsApp ===== */
.trois-questions { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: q; }
.trois-questions li { counter-increment: q; display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid #3A4152; font-weight: 700; color: var(--blanc); }
.trois-questions li::before { content: counter(q); font-family: var(--titre); color: var(--orange); font-size: 1.3rem; min-width: 1ch; }
.bloc-devis-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton-whatsapp { background: var(--vert); color: var(--blanc); }
.bouton-whatsapp:hover { background: var(--vert-fonce); }
.wa-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--vert); color: var(--blanc); font-weight: 700; text-decoration: none;
  padding: 12px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(18, 24, 38, .25);
}
.wa-flottant:hover { background: var(--vert-fonce); }
.wa-flottant svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 560px) { .wa-flottant span { display: none; } .wa-flottant { padding: 14px; } .bloc-devis-actions .bouton { width: 100%; text-align: center; } }
@media print { .wa-flottant { display: none; } }

/* =====================================================================
   Thème sombre — activé par theme.js (data-theme="dark" sur <html>).
   Principe : on change les couleurs de base, puis
   - les objets « papier » (étiquette, ticket) restent clairs, comme de vrais papiers ;
   - les zones déjà sombres gardent leurs couleurs d'origine.
   ===================================================================== */
.bouton-theme {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 34px; padding: 0; border: 1.5px solid var(--trait); border-radius: 7px;
  background: transparent; color: var(--encre); cursor: pointer;
}
.bouton-theme:hover { border-color: var(--orange-fonce); color: var(--orange-fonce); }
.bouton-theme svg { width: 18px; height: 18px; }
.bouton-theme .icone-soleil { display: none; }
[data-theme="dark"] .bouton-theme .icone-lune { display: none; }
[data-theme="dark"] .bouton-theme .icone-soleil { display: block; }
@media (max-width: 380px) { .bouton-theme { width: 34px; } }

.theme-transition, .theme-transition *, .theme-transition *::before, .theme-transition *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease !important;
}

[data-theme="dark"] {
  --beton: #0B0F17;
  --beton-2: #141A25;
  --encre: #ECEEF0;
  --encre-2: #A3ABBA;
  --trait: #2A3243;
  --blanc: #151B27;
  --kraft-clair: #2E2619;
  --orange-fonce: #FF8A4C;
  color-scheme: dark;
}
[data-theme="dark"] body { color: var(--encre); }
[data-theme="dark"] .entete { background: rgba(11, 15, 23, 0.9); }

/* Objets papier : on remet les couleurs claires d'origine */
[data-theme="dark"] .etiquette,
[data-theme="dark"] .ticket,
[data-theme="dark"] .offre,
[data-theme="dark"] .badge,
[data-theme="dark"] .a-completer {
  --encre: #121826; --encre-2: #4A5163; --trait: #CDD1D7; --blanc: #F4F2EE; --orange-fonce: #C9500C; --kraft-clair: #E7D3B6;
  color: var(--encre);
}
[data-theme="dark"] .etiquette, [data-theme="dark"] .ticket { box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 22px 40px -22px rgba(0, 0, 0, .8); }

/* Zones sombres d'origine : elles gardent leur palette */
[data-theme="dark"] .section-sombre,
[data-theme="dark"] .simulateur,
[data-theme="dark"] .pied,
[data-theme="dark"] .lien-evitement {
  --encre: #121826; --blanc: #FFFFFF; --beton: #ECEEF0;
}
[data-theme="dark"] .simulateur { box-shadow: 0 0 0 1px #263043; }
[data-theme="dark"] .pied { border-top: 1px solid #1E2533; }

/* Texte foncé sur fond orange ou vert, blanc sur vert */
[data-theme="dark"] .bouton-principal,
[data-theme="dark"] .logo-marque { color: #121826; }
[data-theme="dark"] .bouton-whatsapp,
[data-theme="dark"] .wa-flottant,
[data-theme="dark"] .etape:last-child::before { color: #FFFFFF; }
[data-theme="dark"] .wa-flottant { box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }

/* Formulaire et messages */
[data-theme="dark"] .champ input, [data-theme="dark"] .champ select, [data-theme="dark"] .champ textarea { background: #0F141E; }
[data-theme="dark"] .champ input:focus, [data-theme="dark"] .champ select:focus, [data-theme="dark"] .champ textarea:focus { border-color: var(--orange); }
[data-theme="dark"] .case input:checked + span { background: var(--orange); border-color: var(--orange); color: #121826; }
[data-theme="dark"] .consentement input { accent-color: var(--orange); }
[data-theme="dark"] .message-form.ok { background: #12301F; color: #6FD39B; }
[data-theme="dark"] .message-form.erreur { background: #3A1512; color: #FF9B91; }
[data-theme="dark"] .appel { box-shadow: 0 0 0 1px var(--trait); }

/* En-tête sur petit écran : bouton devis raccourci pour laisser la place au thème et à la langue */
.txt-court { display: none; }
@media (max-width: 480px) {
  .nav .txt-long { display: none; }
  .nav .txt-court { display: inline; }
  .nav { gap: 8px; }
  .bouton-theme, .nav a.langue { width: 36px; min-width: 36px; padding: 0; }
}

/* Anti-robot Turnstile (invisible le plus souvent, s'affiche seulement si une vérification est nécessaire) */
.anti-robot { margin: 4px 0 14px; }
.anti-robot:empty { margin: 0; }
