:root {
  --encre: #08101D;
  --encre-2: #0E1420;
  --encre-3: #0D1727;
  --ligne-sombre: #26344B;
  --laiton: #E9A845;
  --laiton-texte: #93640F;
  --laiton-pale: #FBF4E6;
  --bleu: #1F6FD0;
  --bleu-clair: #7EB5F0;
  --papier: #F4F6F9;
  --blanc: #FFFFFF;
  --texte: #0E1420;
  --texte-2: #506278;
  --texte-3: #71849A;
  --sur-encre: #C3D0DF;
  --sur-encre-2: #8FA4BD;
  --ligne: #D6E0EB;
  --champ: #C9D4E1;
  --erreur: #B42318;
  --erreur-pale: #FEF3F2;
  --titre: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --corps: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --rayon: 6px;
  --gouttiere: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font: 400 16px/1.6 var(--corps);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
abbr[title] { text-decoration: none; color: var(--laiton-texte); }
[hidden] { display: none !important; }

.cadre { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 var(--gouttiere); }

.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--laiton); color: var(--encre); padding: 10px 14px; border-radius: var(--rayon);
  font-weight: 600; text-decoration: none;
}
.evitement:focus { top: 12px; }

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

/* ---------- Manchette ---------- */
.manchette { background: var(--encre); border-bottom: 1px solid var(--ligne-sombre); }
.manchette__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marque img { border-radius: 50%; }
.marque__txt { display: flex; flex-direction: column; line-height: 1.1; }
.marque__txt strong { font: 700 18px/1 var(--titre); letter-spacing: 3px; color: var(--blanc); }
.marque__txt small { margin-top: 4px; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sur-encre-2); }
.saison { margin: 0; text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.saison small { font-size: 9.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--sur-encre-2); }
.saison strong { margin-top: 4px; font: 700 17px/1 var(--titre); letter-spacing: 3px; color: var(--laiton); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: var(--encre); color: var(--sur-encre); padding: 28px 0 60px; border-top: 3px solid var(--bleu); }
.surtitre {
  margin: 0 0 10px; font: 700 11.5px/1.3 var(--titre); letter-spacing: 3px; text-transform: uppercase; color: var(--bleu-clair);
}
.surtitre--sombre { color: var(--bleu); }
.hero h1 {
  margin: 0 0 10px; font: 700 clamp(30px, 7vw, 44px)/1.02 var(--titre); text-transform: uppercase; letter-spacing: 0.3px; color: var(--blanc);
}
.hero h1 span { color: var(--laiton); }
.hero__intro { margin: 0; max-width: 640px; font-size: 15.5px; line-height: 1.6; color: var(--sur-encre); }
.echeances { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13.5px; color: var(--sur-encre-2); }
.echeances li { display: inline-flex; align-items: baseline; gap: 5px; }
.echeances li + li::before { content: ""; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: var(--ligne-sombre); align-self: center; }
.echeances strong { font-weight: 600; color: var(--laiton); }
.echeances strong.blanc { color: var(--blanc); }
@media (max-width: 559px) {
  .echeances { flex-direction: column; gap: 3px; font-size: 14px; }
  .echeances li + li::before { display: none; }
}

/* ---------- Corps ---------- */
.corps { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 56px; }
.colonne { min-width: 0; }

.fiche, .merci {
  background: var(--blanc); border-radius: 10px; box-shadow: 0 1px 2px rgba(8, 16, 29, 0.06), 0 12px 40px rgba(8, 16, 29, 0.08);
}
.fiche { margin-top: -40px; position: relative; }

.bloc { border: 0; margin: 0; padding: 26px 18px 28px; min-width: 0; }
.bloc + .bloc { border-top: 1px solid var(--ligne); }
.bloc__titre { float: left; width: 100%; padding: 0; margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; font: 700 26px/1.1 var(--titre); text-transform: uppercase; color: var(--texte); }
.bloc__titre + * { clear: both; }
.num { font: 700 14px/1 var(--titre); letter-spacing: 2px; color: var(--laiton-texte); }
.aide { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--texte-3); }
.bloc__titre + .aide { margin: 0 0 18px; padding-top: 2px; }

.reprise { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0; padding: 12px 18px; background: var(--laiton-pale); border-bottom: 1px solid #F1D9A8; border-radius: 10px 10px 0 0; font-size: 14px; }
.reprise p { margin: 0; color: var(--texte); }
.reprise .lien-bouton { margin: 0; }
@media (min-width: 560px) { .reprise { padding: 12px 28px; } }
@media (min-width: 960px) { .reprise { padding: 12px 40px; } }

/* ---------- Cartes d'offre ---------- */
.offres { display: grid; gap: 10px; }
.offre {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 44px 10px 10px;
  border: 1px solid var(--champ); border-radius: 8px; background: var(--blanc); cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.offre input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.offre img, .offre__icone { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.offre__icone { display: grid; place-items: center; background: var(--papier); color: var(--texte-2); border: 1px dashed var(--champ); }
.offre__txt { display: flex; flex-direction: column; min-width: 0; }
.offre__txt strong { font: 700 19px/1.15 var(--titre); text-transform: uppercase; letter-spacing: 0.3px; }
.offre__txt small { margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--texte-2); }
.offre__coche {
  position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 1.5px solid var(--champ); background: var(--blanc);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.offre__coche::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid var(--encre); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.6); opacity: 0;
  transition: transform 180ms var(--ease-out), opacity 120ms ease;
}
.offre:active { transform: scale(0.985); }
.offre:has(input:checked) { border-color: var(--laiton); background: var(--laiton-pale); box-shadow: inset 0 0 0 1px var(--laiton); }
.offre:has(input:checked) .offre__coche { border-color: var(--laiton); background: var(--laiton); }
.offre:has(input:checked) .offre__coche::after { opacity: 1; transform: rotate(45deg) scale(1); }
.offre:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .offre:hover { border-color: #9DB0C6; }
}

/* ---------- Précisions ---------- */
.precisions { margin-top: 18px; padding: 16px; border-radius: 8px; background: var(--papier); border-left: 3px solid var(--laiton); }
.precisions.entre { animation: entree 220ms var(--ease-out); }
.precisions__titre, .etiquette { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--texte); }
.precisions__titre + .puces + .precisions__titre { margin-top: 16px; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Puces ---------- */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.puce span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--champ); border-radius: 999px; background: var(--blanc);
  font-size: 14.5px; font-weight: 500; color: var(--texte); line-height: 1.2;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}
.puce:active span { transform: scale(0.97); }
.puce input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.puce input[type="checkbox"]:checked + span::before {
  content: ""; width: 4px; height: 8px; margin: -2px 2px 0 0; border: solid var(--laiton); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.puce input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .puce:hover input:not(:checked) + span { border-color: #9DB0C6; }
}

/* ---------- Champs ---------- */
.grille { display: grid; gap: 0 16px; }
.champ { margin-top: 18px; min-width: 0; }
.champ label, .champ .etiquette { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--champ); border-radius: var(--rayon);
  background: var(--blanc); color: var(--texte); font: 400 16px/1.4 var(--corps);
  transition: border-color 140ms ease, box-shadow 140ms ease;
  -webkit-appearance: none; appearance: none;
}
input[type="date"] { min-width: 0; display: block; }
input::-webkit-date-and-time-value { text-align: left; }
textarea { resize: vertical; min-height: 112px; }
input::placeholder, textarea::placeholder { color: #94A3B4; }
input:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(31, 111, 208, 0.18); }
.invalide input, .invalide textarea, input.invalide { border-color: var(--erreur); }
.invalide input:focus, input.invalide:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }
.erreur { margin: 7px 0 0; font-size: 13.5px; font-weight: 500; color: var(--erreur); }
.erreur::before { content: "! "; font-weight: 700; }

.compteur { display: grid; grid-template-columns: 48px 1fr 48px; }
.compteur input { border-radius: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; border-left: 0; border-right: 0; }
.compteur input::-webkit-outer-spin-button, .compteur input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.compteur__btn {
  border: 1px solid var(--champ); background: var(--papier); color: var(--texte); font: 500 20px/1 var(--corps); cursor: pointer;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
}
.compteur__btn:first-child { border-radius: var(--rayon) 0 0 var(--rayon); }
.compteur__btn:last-child { border-radius: 0 var(--rayon) var(--rayon) 0; }
.compteur__btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .compteur__btn:hover { background: #E8EEF5; } }

.case { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; font-size: 15px; }
.case input {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--champ); border-radius: 4px; background: var(--blanc);
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.case input::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid var(--encre); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.6); opacity: 0; transition: transform 160ms var(--ease-out), opacity 120ms ease; }
.case input:checked { background: var(--laiton); border-color: var(--laiton); }
.case input:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }
.case--consentement { margin-top: 24px; font-size: 13.5px; line-height: 1.55; color: var(--texte-2); }
.case--consentement a { color: var(--texte); font-weight: 600; }
.case.invalide input { border-color: var(--erreur); }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.verif { height: 0; overflow: hidden; display: flex; justify-content: center; }
.verif.visible { height: auto; overflow: visible; margin-top: 18px; }

.alerte {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--rayon); background: var(--erreur-pale); border: 1px solid #FECDCA;
  color: #7A271A; font-size: 14.5px; line-height: 1.5;
}
.alerte a { color: #7A271A; font-weight: 700; }

/* ---------- Bouton d'envoi ---------- */
.envoyer {
  position: relative; margin-top: 22px; width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: var(--rayon); background: var(--laiton); color: var(--encre); cursor: pointer;
  font: 700 17px/1 var(--corps); letter-spacing: 0.2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 18px rgba(233, 168, 69, 0.28);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.envoyer:active { transform: scale(0.98); }
.envoyer__fleche { font-size: 20px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .envoyer:hover { background: #EDB45C; }
  .envoyer:hover .envoyer__fleche { transform: translateX(3px); }
}
.envoyer__txt, .envoyer__fleche { transition: opacity 180ms ease, filter 180ms ease, transform 200ms var(--ease-out); }
.envoyer__roue {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2.5px solid rgba(8, 16, 29, 0.25); border-top-color: var(--encre); opacity: 0;
  transition: opacity 180ms ease;
}
.envoyer[aria-busy="true"] { cursor: progress; }
.envoyer[aria-busy="true"] .envoyer__txt, .envoyer[aria-busy="true"] .envoyer__fleche { opacity: 0; filter: blur(2px); }
.envoyer[aria-busy="true"] .envoyer__roue { opacity: 1; animation: tourne 700ms linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.sous-envoi { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--texte-3); }

/* ---------- Merci ---------- */
.merci { margin-top: -40px; position: relative; padding: 36px 20px 32px; outline: none; }
.merci.entre { animation: entree 320ms var(--ease-out); }
.merci__coche { color: var(--laiton-texte); margin-bottom: 18px; }
.merci__coche circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: trace 520ms var(--ease-out) 80ms forwards; }
.merci__coche path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: trace 360ms var(--ease-out) 420ms forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.merci h2 { margin: 0 0 10px; font: 700 clamp(28px, 6vw, 38px)/1.05 var(--titre); text-transform: uppercase; }
.merci__txt { margin: 0; max-width: 560px; color: var(--texte-2); font-size: 16px; }
.merci__ref { display: inline-block; margin: 18px 0 0; padding: 8px 12px; border-radius: var(--rayon); background: var(--laiton-pale); border: 1px solid #F1D9A8; font-size: 14px; color: var(--texte-2); }
.merci__ref strong { font: 700 17px/1 var(--titre); letter-spacing: 1.4px; color: var(--texte); margin-left: 4px; }
.merci__differe { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--rayon); background: var(--papier); border-left: 3px solid var(--laiton); font-size: 14.5px; color: var(--texte); }
.merci__differe a { font-weight: 700; color: var(--texte); }
.recap { margin: 22px 0 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ligne); }
.recap div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.recap dt { font: 700 12px/1.6 var(--titre); letter-spacing: 1.6px; text-transform: uppercase; color: var(--texte-3); }
.recap dd { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.merci__urgence { margin: 22px 0 0; font-size: 15px; color: var(--texte-2); }
.merci__urgence a { color: var(--texte); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--laiton); }
.lien-bouton { margin-top: 18px; padding: 0; border: 0; background: none; font: 600 14.5px/1.4 var(--corps); color: var(--bleu); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Côté ---------- */
.cote { display: grid; gap: 16px; align-content: start; }
.carte-contact { background: var(--encre); color: var(--sur-encre); border-radius: 10px; padding: 22px 20px; border-bottom: 4px solid var(--laiton); }
.contact__nom { margin: 0; font: 700 28px/1 var(--titre); text-transform: uppercase; color: var(--blanc); }
.contact__role { margin: 6px 0 16px; font-size: 13.5px; color: var(--sur-encre-2); }
.contact__tel { display: block; font: 700 26px/1.1 var(--titre); letter-spacing: 1px; color: var(--laiton); text-decoration: none; }
.contact__mail { display: inline-block; margin-top: 8px; font-size: 14.5px; color: var(--blanc); text-decoration: none; border-bottom: 1px solid var(--ligne-sombre); }
.ensuite { background: var(--blanc); border-radius: 10px; padding: 22px 20px; border: 1px solid var(--ligne); }
.ensuite ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ensuite li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.55; color: var(--texte-2); }
.ensuite li span { font: 700 15px/1.5 var(--titre); letter-spacing: 1px; color: var(--laiton-texte); }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: var(--sur-encre-2); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 12.5px; line-height: 1.7; }
.pied p { margin: 0; }
.pied strong { color: var(--blanc); letter-spacing: 1.5px; }
.pied a { color: var(--sur-encre); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pied a:hover { text-decoration: underline; } }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 560px) {
  .offres { grid-template-columns: 1fr 1fr; }
  .grille { grid-template-columns: 1fr 1fr; }
  .grille--dates { grid-template-columns: 1fr 1fr 1fr; }
  .champ--large { grid-column: 1 / -1; }
  .bloc { padding: 30px 28px 32px; }
  .merci { padding: 44px 36px 38px; }
}
@media (min-width: 720px) {
  .cote { grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
  .corps { gap: 28px; }
}
@media (min-width: 960px) {
  :root { --gouttiere: 32px; }
  .hero { padding: 36px 0 68px; }
  .bloc { padding: 34px 40px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .envoyer[aria-busy="true"] .envoyer__roue { animation: tourne 1.4s linear infinite !important; }
  .merci__coche circle, .merci__coche path { stroke-dashoffset: 0; }
}
