/* Méhariviera Booking — charte : navy #00002E, teal #7ED0DC, Cormorant Garamond + Inter */
.mhv {
  --navy: #00002E;
  --navy-2: #1a1a48;
  --teal: #7ED0DC;
  --teal-deep: #2f8f9c;
  --sand: #f6f4ef;
  --line: #d9dbe4;
  --muted: #5b5d78;
  --danger: #a3262a;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--sans);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  scroll-margin-top: 150px;
  container-type: inline-size;
  text-align: left;
}
/* Le module prend toute la largeur, même dans un conteneur Elementor en ligne */
.elementor-widget-shortcode:has(.mhv), .elementor-shortcode:has(.mhv) { width: 100%; max-width: 100%; flex: 1 1 100%; }
.mhv *, .mhv *::before, .mhv *::after { box-sizing: border-box; }
.mhv h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1; margin: 0 0 8px; color: var(--navy); outline: none; letter-spacing: -0.01em;
}
.mhv p { margin: 0 0 16px; }

/* Étapes */
.mhv .mhv-steps { display: flex; gap: 4px; list-style: none; margin: 0 0 28px; padding: 0; }
.mhv .mhv-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--line); font-size: 14px; color: var(--muted); }
.mhv .mhv-steps li.is-done { border-color: var(--teal); }
.mhv .mhv-steps li.is-current { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.mhv .mhv-steps__n { font-family: var(--serif); font-size: 20px; line-height: 1; }
@container (max-width: 560px) { .mhv .mhv-steps li:not(.is-current) .mhv-steps__l { display: none; } }

/* Mise en page */
.mhv .mhv-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.mhv .mhv-shell--single { grid-template-columns: minmax(0, 640px); }
@container (max-width: 780px) { .mhv .mhv-shell { grid-template-columns: 1fr; gap: 24px; } .mhv .mhv-ticket { order: -1; } }

/* Le ticket récapitulatif : l'élément signature */
.mhv .mhv-ticket {
  position: sticky; top: 100px; color: #fff; padding: 24px 24px 20px;
  border-radius: 4px; background-image: radial-gradient(circle at 0 70%, transparent 10px, var(--navy) 11px), radial-gradient(circle at 100% 70%, transparent 10px, var(--navy) 11px);
  background-size: 51% 100%; background-position: left, right; background-repeat: no-repeat;
}
.mhv .mhv-ticket__title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 14px; color: var(--teal); }
.mhv .mhv-ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.mhv .mhv-ticket dt { color: rgba(255,255,255,.62); }
.mhv .mhv-ticket dd { margin: 0; }
.mhv .mhv-ticket__empty { font-size: 14px; color: rgba(255,255,255,.75); margin: 0; }
.mhv .mhv-ticket__total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 8px; padding-top: 16px; border-top: 1px dashed rgba(126,208,220,.55); }
.mhv .mhv-ticket__total strong { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; color: #fff; }
.mhv .mhv-ticket__note { font-size: 12.5px; color: rgba(255,255,255,.7); margin: 0; }
@container (max-width: 780px) { .mhv .mhv-ticket { position: static; background: var(--navy); padding: 18px 20px; } }

/* Champs */
.mhv .mhv-field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.mhv .mhv-field > label, .mhv legend { display: block; font-weight: 600; font-size: 14px; margin: 0 0 8px; padding: 0; }
.mhv .mhv-opt { font-weight: 400; color: var(--muted); }
.mhv input[type=text], .mhv input[type=email], .mhv input[type=tel], .mhv input[type=date], .mhv textarea {
  width: 100%; font: inherit; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.mhv input[type=date] { max-width: 260px; }
.mhv input:focus-visible, .mhv textarea:focus-visible, .mhv button:focus-visible, .mhv a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.mhv .mhv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@container (max-width: 560px) { .mhv .mhv-row { grid-template-columns: 1fr; } }
.mhv .mhv-hint { color: var(--muted); max-width: 62ch; }
.mhv .mhv-empty a { color: var(--navy); font-weight: 600; }
.mhv .mhv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Choix de prestation (accueil) */
.mhv .mhv-shell--wide { grid-template-columns: 1fr; }
.mhv .mhv-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.mhv .mhv-kind {
  display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer; font: inherit; color: #fff;
  background: var(--navy); border: 0; border-radius: 4px; padding: 32px 28px 30px; min-height: 190px; justify-content: flex-end;
  transition: background .15s;
}
.mhv .mhv-kind:hover { background: var(--navy-2); }
/* Neutralise les styles de bouton du thème (texte sur une ligne, majuscules…) */
.mhv button.mhv-kind { white-space: normal; text-transform: none; letter-spacing: normal; line-height: 1.35; height: auto; width: auto; overflow: visible; box-shadow: none; }
.mhv button.mhv-kind:hover, .mhv button.mhv-kind:focus { color: #fff; }
.mhv .mhv-kind:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.mhv .mhv-kind__name { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; color: var(--teal); }
.mhv .mhv-kind__desc { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); max-width: 42ch; white-space: normal; overflow-wrap: break-word; }

/* Formules, circuits, options */
.mhv .mhv-formulas { display: grid; gap: 10px; }
.mhv .mhv-formula {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px; cursor: pointer;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.mhv .mhv-formula.has-photo { grid-template-columns: 96px 1fr auto; padding: 10px 18px 10px 10px; }
.mhv .mhv-formula input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mhv .mhv-formula__img { width: 96px; height: 80px; border-radius: 3px; overflow: hidden; background: var(--sand); }
.mhv .mhv-formula__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhv .mhv-formula__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mhv .mhv-formula__name { font-weight: 600; }
.mhv .mhv-formula__desc { font-size: 14px; color: var(--muted); }
.mhv .mhv-formula__meta { font-size: 13px; color: var(--teal-deep); font-weight: 500; }
.mhv .mhv-formula__price { font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.mhv .mhv-formula:has(input:checked) { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--teal); }
.mhv .mhv-formula:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
@container (max-width: 560px) {
  .mhv .mhv-formula.has-photo { grid-template-columns: 72px 1fr; }
  .mhv .mhv-formula__img { width: 72px; height: 72px; }
  .mhv .mhv-formula.has-photo .mhv-formula__price { grid-column: 2; font-size: 20px; }
}

.mhv .mhv-pill input, .mhv .mhv-car input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mhv .mhv-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mhv .mhv-pill { position: relative; }
.mhv .mhv-pill.is-off span { opacity: .4; text-decoration: line-through; }
.mhv .mhv-pill small, .mhv .mhv-car__price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--teal-deep); }
.mhv .mhv-pill input:checked + span small { color: var(--teal); }
.mhv .mhv-pill span { display: block; text-align: center; min-width: 64px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; }
.mhv .mhv-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.mhv .mhv-pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Véhicules */
.mhv .mhv-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.mhv .mhv-car { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; cursor: pointer; }
.mhv .mhv-car:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.mhv .mhv-car:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.mhv .mhv-car.is-off { cursor: not-allowed; opacity: .5; }
.mhv .mhv-car__img { aspect-ratio: 3 / 2; background: var(--sand); display: block; }
.mhv .mhv-car__img--any { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy); color: #fff; }
.mhv .mhv-car__img--any span { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--teal); }
.mhv .mhv-car__img--any small { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; }
.mhv .mhv-car.is-off .mhv-car__price { font-weight: 500; color: var(--muted); }
.mhv .mhv-car__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhv .mhv-car__ph { height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--serif); font-size: 22px; color: var(--teal-deep); }
.mhv .mhv-car__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.mhv .mhv-car__name { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.mhv .mhv-car__meta { font-size: 13.5px; color: var(--muted); }
.mhv .mhv-car__price { margin-top: 8px; font-weight: 600; }

/* Cases à cocher */
.mhv .mhv-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 14.5px; cursor: pointer; }
.mhv .mhv-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.mhv .mhv-check a { color: var(--navy); }

/* Boutons */
.mhv .mhv-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.mhv .mhv-btn { white-space: normal; text-transform: none;

  font: 600 16px/1 var(--sans); min-height: 52px; padding: 0 28px; border-radius: 4px; cursor: pointer;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); transition: background .15s;
}
.mhv .mhv-btn:hover:not(:disabled) { background: var(--navy-2); }
.mhv .mhv-btn:disabled { opacity: .4; cursor: not-allowed; }
.mhv .mhv-btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); margin-right: auto; }
.mhv .mhv-btn--ghost:hover:not(:disabled) { background: var(--sand); }
@container (max-width: 560px) { .mhv .mhv-actions { flex-direction: column-reverse; } .mhv .mhv-btn { width: 100%; } }

.mhv .mhv-paybox { min-height: 420px; border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: #fff; }
.mhv .mhv-error { background: #fbeeee; border-left: 4px solid var(--danger); color: var(--danger); padding: 12px 16px; }
.mhv .mhv-range { background: var(--sand); border-left: 3px solid var(--teal); padding: 14px 18px; border-radius: 0 4px 4px 0; }
.mhv .mhv-empty { background: var(--sand); padding: 18px 20px; border-radius: 4px; }
.mhv .mhv-secure { font-size: 13px; color: var(--muted); text-align: right; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { .mhv * { transition: none !important; } }
