/* Km Zero · page de réservation (s'appuie sur style.css) */

.booking-page { background: var(--blanc); }

/* En-tête simplifié */
.booking-header { background: var(--blanc); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 50; }
.booking-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.booking-header-actions { display: flex; align-items: center; gap: 18px; }
.booking-help {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--sable-clair); color: var(--vert); font-weight: 600; font-size: .88rem; text-decoration: none;
}
.booking-help svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 560px) { .hide-sm, .booking-help span { display: none; } .booking-help { width: 40px; padding: 0; justify-content: center; } }

.booking { padding: 40px 0 96px; }
.booking-intro { max-width: 640px; margin-bottom: 28px; animation: rise .6s ease both; }
.booking-intro h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); margin-bottom: 8px; }
.booking-intro p:last-child { color: var(--texte-doux); margin: 0; }

/* Indicateur d'étapes */
.stepper { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: none; }
.stepper li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--texte-doux); text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--ligne); z-index: 0; transition: background-color .4s; }
.stepper li:first-child::before { display: none; }
.stepper span {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blanc); border: 2px solid var(--ligne);
  font: 600 .95rem var(--f-titre); color: var(--texte-doux);
  transition: background-color .3s, border-color .3s, color .3s, transform .3s;
}
.stepper em { font-style: normal; }
.stepper .is-done span { background: var(--vert); border-color: var(--vert); color: var(--sable-clair); }
.stepper .is-done::before, .stepper .is-current::before { background: var(--vert); }
.stepper .is-current span { border-color: var(--vert); color: var(--vert); transform: scale(1.1); box-shadow: 0 0 0 5px rgba(143, 169, 143, .3); }
.stepper .is-current, .stepper .is-done { color: var(--vert); }
@media (max-width: 560px) { .stepper em { display: none; } .stepper .is-current em { display: block; } }

/* Grille formulaire + récapitulatif */
.booking-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .booking-grid { grid-template-columns: 1fr 360px; gap: 28px; } }

.booking-form {
  padding: 28px 22px; border-radius: var(--r-lg); background: var(--blanc); border: 1px solid var(--ligne);
}
@media (min-width: 768px) { .booking-form { padding: 40px; } }

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
.step[hidden] { display: none; }
.step:not([hidden]) { animation: rise .45s ease both; }
.step legend { padding: 0; margin-bottom: 4px; font: 600 1.6rem/1.2 var(--f-titre); color: var(--vert); }
.step-help { margin: -12px 0 0; color: var(--texte-doux); font-size: .92rem; }
.step-error { margin: 0; min-height: 1.2em; color: #8A1C14; font-weight: 600; font-size: .9rem; }
.step-error:empty { display: none; }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field .label { font-size: .75rem; font-weight: 600; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .06em; }
.field textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--ligne); border-radius: 10px; background: var(--sable-clair);
  font: 400 1rem/1.5 var(--f-texte); color: var(--encre); resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--vert); background: var(--blanc); }
.field-hint { font-size: .8rem; color: var(--texte-doux); }
.field.is-invalid input, .field.is-invalid select { border-color: #B3261E; background: #FDF3F2; }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Choix du service */
.service-choices { display: grid; gap: 12px; }
@media (min-width: 640px) { .service-choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start;
  padding: 18px; border-radius: var(--r-md); border: 1.5px solid var(--ligne); background: var(--blanc);
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s;
}
.choice:hover .choice-body { border-color: var(--sauge); transform: translateY(-2px); }
.choice-ico { grid-row: span 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sable-clair); color: var(--vert); transition: background-color .25s, color .25s; }
.choice-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice strong { font: 600 1.15rem var(--f-titre); color: var(--vert); }
.choice small { font-size: .85rem; line-height: 1.4; color: var(--texte-doux); }
.choice-price { margin-top: 6px; font-weight: 600; color: var(--vert); }
.choice input:checked + .choice-body { border-color: var(--vert); background: #F7FAF7; box-shadow: 0 0 0 3px rgba(143, 169, 143, .35); }
.choice input:checked + .choice-body .choice-ico { background: var(--vert); color: var(--sable); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--sauge); outline-offset: 2px; }

/* Compteurs voyageurs / bagages */
.form-grid-counters { grid-template-columns: 1fr 1fr; }
.counter { display: grid; grid-template-columns: 46px 1fr 46px; border: 1.5px solid var(--ligne); border-radius: 12px; overflow: hidden; background: var(--sable-clair); }
.counter input { border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 600; background: transparent !important; -moz-appearance: textfield; }
.counter input::-webkit-outer-spin-button, .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.counter-btn { border: 0; background: var(--blanc); color: var(--vert); font-size: 1.3rem; cursor: pointer; transition: background-color .2s; }
.counter-btn:hover { background: var(--sable); }
.night-hint { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--sable); color: var(--vert); font-size: .9rem; font-weight: 600; }

/* Destination (boutons radio segmentés) */
.segmented-wide { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--ligne); background: var(--blanc); font-weight: 600; font-size: .9rem; transition: all .2s;
}
.seg input:checked + span { background: var(--vert); border-color: var(--vert); color: var(--sable-clair); }
.seg input:focus-visible + span { outline: 3px solid var(--sauge); outline-offset: 2px; }

/* Cases à cocher */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .93rem; line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--vert); cursor: pointer; }
.check em { font-style: normal; font-size: .75rem; font-weight: 600; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--vert); color: var(--sable-clair); }
.check a { color: var(--vert); font-weight: 600; }
.check-card { padding: 14px 16px; border-radius: 12px; border: 1.5px dashed var(--sauge); background: var(--sable-clair); font-weight: 600; }
.check.is-invalid span { color: #8A1C14; }

.options-pick { display: grid; gap: 16px; padding-top: 8px; border-top: 1px dashed var(--ligne); }
.options-pick h3 { margin: 8px 0 0; font-size: 1.2rem; }
.opt-group { display: grid; gap: 10px; }
.opt-group-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.opt-group .opt-badge { margin: 0; }

/* Récapitulatif (étape 5) */
.review { margin: 0; display: grid; gap: 0; border: 1px solid var(--ligne); border-radius: var(--r-md); overflow: hidden; }
.review div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ligne); }
.review div:last-child { border-bottom: 0; }
.review div:nth-child(odd) { background: var(--sable-clair); }
.review dt { font-size: .8rem; font-weight: 600; color: var(--texte-doux); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review .review-edit { margin-left: 8px; border: 0; background: none; padding: 0; color: var(--vert); font: 600 .78rem var(--f-texte); text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) { .review div { grid-template-columns: 1fr; gap: 2px; } }

.pay-box { padding: 18px 20px; border-radius: var(--r-md); background: var(--vert); color: var(--sable-clair); display: grid; gap: 8px; }
.pay-line { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.pay-line strong { font: 600 1.6rem var(--f-titre); color: var(--sable); }
.pay-line-soft { color: rgba(244, 237, 224, .8); font-size: .92rem; }
.pay-note { margin: 4px 0 0; font-size: .8rem; color: rgba(244, 237, 224, .75); }
.quote-box { margin: 0; padding: 16px 18px; border-radius: var(--r-md); background: var(--sable); color: var(--vert); font-weight: 600; }

/* Navigation entre étapes */
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ligne); }
.step-nav .btn[hidden] { display: none; }
.step-nav #next-btn, .step-nav #submit-btn { margin-left: auto; }

/* Récapitulatif latéral */
.summary { position: sticky; top: 96px; }
.summary-inner { padding: 0; border-radius: var(--r-lg); background: var(--blanc); border: 1px solid var(--ligne); overflow: hidden; }
.summary-inner summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 22px; font: 600 1.15rem var(--f-titre); color: var(--vert); cursor: default;
}
.summary-inner summary::-webkit-details-marker { display: none; }
.summary-total-mobile { display: none; font: 600 1rem var(--f-texte); }
.summary-list { margin: 0; padding: 0 22px; display: grid; gap: 12px; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.summary-list dt { color: var(--texte-doux); }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.summary-total { margin: 18px 0 0; padding: 18px 22px; background: var(--sable-clair); display: grid; gap: 8px; }
.summary-total div { display: flex; justify-content: space-between; }
.summary-total strong { color: var(--vert); }
.summary-deposit strong { font: 600 1.3rem var(--f-titre); }
.summary-trust { list-style: none; margin: 0; padding: 16px 22px 20px; display: grid; gap: 6px; font-size: .82rem; color: var(--texte-doux); }
.summary-trust li { position: relative; padding-left: 22px; }
.summary-trust li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 10px; height: 6px; border: 2px solid var(--sauge); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.flash { animation: flash .6s ease; }
@keyframes flash { 0% { background: rgba(227, 211, 180, .9); } 100% { background: transparent; } }

/* Mobile : récapitulatif repliable en bas de l'écran */
@media (max-width: 999px) {
  .summary { position: sticky; bottom: 12px; top: auto; z-index: 40; order: 2; }
  .summary-inner { box-shadow: 0 -10px 30px -12px rgba(19, 38, 30, .35); }
  .summary-inner summary { cursor: pointer; padding: 16px 20px; }
  .summary-inner summary::after { content: "▴"; font-size: .8rem; margin-left: 8px; transition: transform .2s; }
  .summary-inner[open] summary::after { transform: rotate(180deg); }
  .summary-total-mobile { display: inline; margin-left: auto; }
}

/* Confirmation */
.done {
  max-width: 680px; margin: 0 auto; padding: 48px 28px; border-radius: var(--r-lg);
  background: var(--blanc); border: 1px solid var(--ligne); text-align: center;
  animation: rise .6s ease both;
}
.done:focus { outline: none; }
.done-ico { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--vert); animation: hop .7s cubic-bezier(.2, .7, .2, 1.3) both; }
.done-ico svg { width: 40px; height: 40px; fill: none; stroke: var(--sable); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.done > p { color: var(--texte-doux); }
.done-next { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.done-next li { padding: 14px 16px; border-radius: 12px; background: var(--sable-clair); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.done-demo { margin: 20px 0 0; font-size: .85rem; }

/* Équivalences en euros et FCFA */
.summary-fx { margin: 0; font-size: .78rem; color: var(--texte-doux); text-align: right; }
.summary-fx:empty, .pay-fx:empty { display: none; }
.pay-fx { margin: -4px 0 0; font-size: .82rem; color: rgba(244, 237, 224, .8); text-align: right; }

/* Titre d'étape : plus de chevauchement avec le texte d'aide */
.step legend { display: block; margin-bottom: 10px; }
.step legend:focus { outline: none; }
.step-help { margin: 0; }

/* Étape 1 : les 4 services, comme sur l'accueil */
.service-choices { display: grid; gap: 14px; }
@media (min-width: 680px) { .service-choices { grid-template-columns: 1fr 1fr; } }
.bk-pack { position: relative; display: block; cursor: pointer; }
.bk-pack > input { position: absolute; opacity: 0; pointer-events: none; }
.bk-pack-body {
  height: 100%; display: flex; flex-direction: column;
  padding: 22px 20px 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--ligne); background: var(--blanc);
  transition: border-color .25s, box-shadow .25s, transform .25s, background-color .25s;
}
.bk-pack:hover .bk-pack-body { border-color: var(--sauge); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(19, 38, 30, .45); }
.bk-pack .pack-top { margin-bottom: 14px; min-height: 52px; }
.bk-name { font: 600 1.45rem/1.2 var(--f-titre); color: var(--vert); margin-bottom: 4px; }
.bk-pack .pack-for { min-height: 0; font-size: .86rem; }
.bk-pack .pack-price .price { font-size: 1.9rem; }
.bk-fx { margin: -2px 0 6px; font-size: .78rem; color: var(--texte-doux); }
.bk-pack .pack-deposit { margin-bottom: 14px; padding-bottom: 14px; }
.bk-pack .checks { font-size: .86rem; gap: 8px; margin-bottom: 16px; flex: 1; }
.bk-pack .pack-more { align-self: flex-start; margin-top: auto; border: 0; background: none; cursor: pointer; font-family: var(--f-texte); padding: 4px 0; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px; }
.bk-pack .pack-more:hover { background-size: 100% 1.5px; }
.bk-check {
  display: none; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--vert); color: var(--sable-clair); font-size: .75rem; font-weight: 600;
}
.bk-pack > input:checked + .bk-pack-body { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(143, 169, 143, .4); background: #F8FBF8; }
.bk-pack > input:checked + .bk-pack-body .bk-check { display: inline-flex; animation: hop .4s cubic-bezier(.2, .7, .2, 1.3) both; }
.bk-pack > input:checked + .bk-pack-body .pack-badge { display: none; }
.bk-pack > input:checked + .bk-pack-body .pack-ico { background: var(--vert); color: var(--sable); }
.bk-pack > input:focus-visible + .bk-pack-body { outline: 3px solid var(--sauge); outline-offset: 2px; }

/* Cartes services : bouton radio visible en haut à droite */
.bk-pack-body { position: relative; }
.bk-pack .pack-top { justify-content: flex-start; padding-right: 40px; }
.bk-radio {
  position: absolute; top: 20px; right: 20px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--ligne); background: var(--blanc);
  display: grid; place-items: center;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.bk-radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sable-clair); transform: scale(0); transition: transform .25s cubic-bezier(.2, .7, .2, 1.4);
}
.bk-pack:hover .bk-radio { border-color: var(--sauge); }
.bk-pack > input:checked + .bk-pack-body .bk-radio { border-color: var(--vert); background: var(--vert); box-shadow: 0 0 0 4px rgba(143, 169, 143, .3); }
.bk-pack > input:checked + .bk-pack-body .bk-radio::after { transform: scale(1); }
.bk-pack > input:checked + .bk-pack-body .pack-badge { display: inline-block; }
.bk-pack > input:focus-visible + .bk-pack-body .bk-radio { outline: 3px solid var(--sauge); outline-offset: 2px; }

/* Options : tuiles à cocher */
.options-pick { gap: 22px; }
.options-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.options-pick-head h3 { margin: 0; }
.options-count { margin: 0; font-size: .85rem; font-weight: 600; color: var(--vert); }
.opt-group { gap: 12px; }
.opt-group-head { display: grid; gap: 2px; }
.opt-group-title { margin: 0; font: 300 .8rem/1.4 var(--f-slogan); text-transform: uppercase; letter-spacing: .24em; color: var(--vert); }
.opt-group-sub { margin: 0; font-size: .85rem; color: var(--texte-doux); }

.opt-tiles { display: grid; gap: 10px; }
@media (min-width: 640px) { .opt-tiles { grid-template-columns: 1fr 1fr; } }
.opt-tile { position: relative; display: block; cursor: pointer; }
.opt-tile > input { position: absolute; opacity: 0; pointer-events: none; }
.opt-tile-body {
  position: relative; height: 100%;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: start;
  padding: 16px 48px 16px 16px; border-radius: 16px;
  border: 1.5px solid var(--ligne); background: var(--blanc);
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s;
}
.opt-tile:hover .opt-tile-body { border-color: var(--sauge); transform: translateY(-2px); }
.opt-tile-ico {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--sable-clair); color: var(--vert);
  transition: background-color .2s, color .2s, transform .3s cubic-bezier(.2, .7, .2, 1.3);
}
.opt-tile-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.opt-tile-text strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--encre); }
.opt-tile-text small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.4; color: var(--texte-doux); }
.opt-tile .opt-badge { grid-column: 2; justify-self: start; margin: 0; }

/* Case à cocher personnalisée, en haut à droite */
.opt-tile-check {
  position: absolute; top: 16px; right: 16px;
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--ligne); background: var(--blanc);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.opt-tile-check::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--sable-clair); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transition: transform .2s cubic-bezier(.2, .7, .2, 1.4);
}
.opt-tile > input:checked + .opt-tile-body { border-color: var(--vert); background: #F8FBF8; box-shadow: 0 0 0 3px rgba(143, 169, 143, .3); }
.opt-tile > input:checked + .opt-tile-body .opt-tile-check { background: var(--vert); border-color: var(--vert); }
.opt-tile > input:checked + .opt-tile-body .opt-tile-check::after { transform: rotate(45deg) scale(1); }
.opt-tile > input:checked + .opt-tile-body .opt-tile-ico { background: var(--vert); color: var(--sable); transform: rotate(-6deg); }
.opt-tile > input:focus-visible + .opt-tile-body { outline: 3px solid var(--sauge); outline-offset: 2px; }
