/* ═══════════════════════════════════════════════════════════
   Reserv-O — Frontend form styles
   ═══════════════════════════════════════════════════════════ */

/* ── CSS variables (overridable per preset) ──────────────────── */
.reservo-form {
  --rf-primary:     #9E1F2D;
  --rf-secondary:   #D7AE6A;
  --rf-accent:      #0D1B3D;
  --rf-text:        #2F2C29;
  --rf-muted:       rgba(47,44,41,.52);
  --rf-bg:          #F5F0E3;
  --rf-surface:     #fff;
  --rf-border:      rgba(47,44,41,.13);
  --rf-focus-ring:  rgba(158,31,45,.14);
  --rf-r:           12px;
  --rf-r-sm:        8px;
  --rf-r-lg:        22px;
}

/* ── Reset ───────────────────────────────────────────────────── */
.reservo-form, .reservo-form * { box-sizing: border-box; }
.reservo-form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 44px 36px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--rf-text);
  background: var(--rf-surface);
  border-radius: var(--rf-r-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 6px 32px rgba(0,0,0,.07);
}

/* ── Stepper ─────────────────────────────────────────────────── */
.reservo-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: 8px;
}
.reservo-stepper__track {
  position: absolute;
  top: 15px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--rf-border);
  border-radius: 999px;
}
.reservo-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  flex: 1;
}
.reservo-stepper__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--rf-border);
  background: var(--rf-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.reservo-stepper__num   { font-size: 12px; font-weight: 700; color: var(--rf-muted); line-height: 1; }
.reservo-stepper__check { width: 11px; height: 9px; display: none; color: #fff; }
.reservo-stepper__label { font-size: 11px; font-weight: 500; color: var(--rf-muted); letter-spacing: .02em; text-align: center; white-space: nowrap; }

.reservo-stepper__step.is-active .reservo-stepper__dot   { border-color: var(--rf-primary); background: var(--rf-primary); box-shadow: 0 0 0 4px var(--rf-focus-ring); }
.reservo-stepper__step.is-active .reservo-stepper__num   { color: #fff; }
.reservo-stepper__step.is-active .reservo-stepper__label { color: var(--rf-primary); font-weight: 700; }
.reservo-stepper__step.is-done   .reservo-stepper__dot   { border-color: var(--rf-primary); background: var(--rf-primary); }
.reservo-stepper__step.is-done   .reservo-stepper__num   { display: none; }
.reservo-stepper__step.is-done   .reservo-stepper__check { display: block; }
.reservo-stepper__step.is-done   .reservo-stepper__label { color: var(--rf-primary); }

/* ── Progress bar ────────────────────────────────────────────── */
.reservo-progress { height: 2px; background: var(--rf-border); border-radius: 999px; overflow: hidden; margin: 14px 0 36px; }
.reservo-progress span { display: block; height: 100%; width: 25%; background: var(--rf-primary); transition: width .35s ease; border-radius: 999px; }

/* ── Step visibility + fade-in ───────────────────────────────── */
.reservo-step { display: none; }
@keyframes reservo-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reservo-step.is-active { display: block; animation: reservo-fade-up .28s ease forwards; }

/* ── Step header ─────────────────────────────────────────────── */
.reservo-step-header { margin-bottom: 28px; }
.reservo-step-header p { margin: 0 0 8px; font-size: 13px; color: var(--rf-muted); }
.reservo-step-header h2 {
  margin: 0 0 7px;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--rf-accent);
}

/* ── Choice cards ────────────────────────────────────────────── */
.reservo-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.reservo-choice-card { cursor: pointer; position: relative; height: 100%; }
.reservo-choice-card input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.reservo-choice-card__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
  border: 1.5px solid var(--rf-border);
  border-radius: var(--rf-r);
  background: var(--rf-surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  height: 100%;
}
.reservo-choice-card:hover .reservo-choice-card__inner {
  border-color: rgba(158,31,45,.3);
  box-shadow: 0 4px 16px rgba(158,31,45,.08);
  transform: translateY(-2px);
}
.reservo-choice-card__icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(158,31,45,.07);
  color: var(--rf-primary);
  padding: 7px;
  flex-shrink: 0;
}
.reservo-choice-card__icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.reservo-choice-card__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.reservo-choice-card__title { font-size: 13px; font-weight: 700; color: var(--rf-accent); line-height: 1.25; }
.reservo-choice-card__desc  { font-size: 12px; color: var(--rf-muted); line-height: 1.45; flex: 1; }
.reservo-choice-card__check {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.55) rotate(-10deg);
  transition: opacity .18s ease, transform .18s ease;
}
.reservo-choice-card__check svg { width: 11px; height: 9px; display: block; }

/* Selected state */
.reservo-choice-card:has(input:checked) .reservo-choice-card__inner {
  border-color: var(--rf-primary);
  background: rgba(158,31,45,.04);
  box-shadow: 0 0 0 3px rgba(158,31,45,.12);
  transform: translateY(0);
}
.reservo-choice-card:has(input:checked) .reservo-choice-card__check { opacity: 1; transform: scale(1) rotate(0); }
.reservo-choice-card:has(input:checked) .reservo-choice-card__icon  { background: rgba(158,31,45,.11); }

/* ── Fields ──────────────────────────────────────────────────── */
.reservo-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }

.reservo-field { margin: 0 0 16px; }
.reservo-field--full { grid-column: 1 / -1; margin: 0 0 16px; }

.reservo-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text);
  letter-spacing: .01em;
}
.reservo-field__required { color: var(--rf-primary); margin-left: 1px; }

.reservo-field__input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--rf-text);
  background: rgba(47,44,41,.03);
  border: 1.5px solid var(--rf-border);
  border-radius: var(--rf-r-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.reservo-field__input:focus {
  background: var(--rf-surface);
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px var(--rf-focus-ring);
}
.reservo-field__input::placeholder { color: rgba(47,44,41,.32); }
textarea.reservo-field__input { min-height: 96px; resize: vertical; }
select.reservo-field__input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232F2C29' stroke-opacity='.45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

/* Legacy selector compat (presets.css dark theme etc.) */
.reservo-field label, .reservo-field legend { display: block; }
.reservo-field input, .reservo-field select, .reservo-field textarea { width: 100%; }

/* Neutralise les styles de bordure du thème sur tous les champs du formulaire */
.reservo-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="color"]):not([type="submit"]),
.reservo-form select,
.reservo-form textarea {
  border: 1.5px solid var(--rf-border);
  border-radius: var(--rf-r-sm);
  outline: none;
  box-shadow: none;
}

/* ── Fieldset (logistic needs) ───────────────────────────────── */
.reservo-fieldset {
  border: 1.5px solid var(--rf-border);
  border-radius: var(--rf-r-sm);
  padding: 14px 18px 16px;
  margin: 0 0 16px;
}
.reservo-fieldset__legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text);
}
.reservo-checks-grid { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }

/* ── Custom checkbox ─────────────────────────────────────────── */
.reservo-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rf-text);
}
.reservo-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.reservo-check__box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--rf-border);
  border-radius: 5px;
  background: rgba(47,44,41,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color .14s ease, background .14s ease;
  position: relative;
}
.reservo-check__box::after {
  content: '';
  position: absolute;
  width: 10px; height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
  opacity: 0;
  transition: opacity .14s ease;
}
.reservo-check:has(input:checked) .reservo-check__box { background: var(--rf-primary); border-color: var(--rf-primary); }
.reservo-check:has(input:checked) .reservo-check__box::after { opacity: 1; }
.reservo-check:focus-within .reservo-check__box { box-shadow: 0 0 0 3px var(--rf-focus-ring); }

/* ── Experience cards (sélecteur de séjour) ──────────────────── */
.reservo-exp-select { margin-bottom: 20px; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.reservo-exp-select > .reservo-field__label { margin-bottom: 10px; }

.reservo-exp-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}

.reservo-exp-card { cursor: pointer; height: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.reservo-exp-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.reservo-exp-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 38px 12px 14px; /* right: espace pour le checkmark absolu */
  border: 1.5px solid var(--rf-border);
  border-radius: var(--rf-r-sm);
  background: var(--rf-surface);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  position: relative;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  user-select: none;
}
.reservo-exp-card:hover .reservo-exp-card__inner {
  border-color: rgba(158,31,45,.28);
  box-shadow: 0 3px 12px rgba(158,31,45,.07);
  transform: translateY(-1px);
}

/* Image / placeholder */
.reservo-exp-card__img {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: var(--rf-r-sm);
  overflow: hidden;
  background: rgba(47,44,41,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reservo-exp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reservo-exp-card__img--placeholder { color: var(--rf-muted); }
.reservo-exp-card__img--placeholder svg { width: 28px; height: 28px; opacity: .45; }

/* Body */
.reservo-exp-card__body { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; }
.reservo-exp-card__title { display: block; font-size: 13px; font-weight: 700; color: var(--rf-accent); line-height: 1.3; margin-bottom: 6px; overflow-wrap: anywhere; word-break: break-word; }
.reservo-exp-card__desc  { display: block; font-size: 12px; color: var(--rf-muted); line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }

/* Meta badges */
.reservo-exp-card__meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-width: 0; max-width: 100%; overflow: visible; }
.reservo-exp-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--rf-muted);
  background: rgba(47,44,41,.06);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reservo-exp-card__badge svg { width: 10px; height: 10px; flex-shrink: 0; min-width: 10px; }
.reservo-exp-card__badge--date { background: rgba(215,174,106,.12); color: var(--rf-accent); }
.reservo-exp-card__badge--price {
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
  background: rgba(158,31,45,.08);
  color: var(--rf-primary);
  font-weight: 700;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip;
}

/* Checkmark */
.reservo-exp-card__check {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--rf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.5) rotate(-10deg);
  transition: opacity .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.reservo-exp-card__check svg { width: 9px; height: 8px; }

/* Selected */
.reservo-exp-card:has(input:checked) .reservo-exp-card__inner {
  border-color: var(--rf-primary);
  background: rgba(158,31,45,.04);
  box-shadow: 0 0 0 3px rgba(158,31,45,.1);
  transform: translateY(0);
}
.reservo-exp-card:has(input:checked) .reservo-exp-card__check { opacity: 1; transform: scale(1) rotate(0); }
.reservo-exp-card:has(input:checked) .reservo-exp-card__img { box-shadow: 0 0 0 2px var(--rf-primary); }

/* "Aucun programme" card */
.reservo-exp-card--none .reservo-exp-card__inner {
  align-items: center;
  padding: 14px 16px;
}
.reservo-exp-card__none-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(47,44,41,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-muted);
}
.reservo-exp-card__none-icon svg { width: 18px; height: 18px; }

/* Message vide */
.reservo-exp-empty { font-size: 13px; color: var(--rf-muted); margin-top: 8px; font-style: italic; }

/* Quand la card "Aucun" est cachée (1 seule exp), retirer l'espace dans la grille */
.reservo-exp-card--none[hidden] { display: none; }

/* ── Date planner ────────────────────────────────────────────── */
.reservo-date-planner { margin: 0 0 24px; }

.reservo-fixed-dates {
  padding: 16px 20px;
  border: 1.5px solid rgba(215,174,106,.38);
  border-radius: var(--rf-r);
  background: linear-gradient(135deg, rgba(245,240,227,.9) 0%, rgba(215,174,106,.1) 100%);
}
.reservo-fixed-dates__inner { display: flex; align-items: center; gap: 14px; }
.reservo-fixed-dates__icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(215,174,106,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-accent);
}
.reservo-fixed-dates__icon svg { width: 20px; height: 20px; display: block; }
.reservo-fixed-dates__eyebrow { margin: 0 0 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--rf-muted); }
.reservo-fixed-dates__value   { margin: 0; font-size: 18px; font-weight: 700; color: var(--rf-accent); line-height: 1.2; }

/* Calendar */
.reservo-calendar {
  border: 1.5px solid var(--rf-border);
  border-radius: var(--rf-r);
  background: var(--rf-surface);
  overflow: hidden;
}
.reservo-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(47,44,41,.06);
}
.reservo-calendar__eyebrow { margin: 0 0 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--rf-muted); }
.reservo-calendar__header h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--rf-accent); line-height: 1.2; text-transform: capitalize; }
.reservo-calendar__range { display: block; margin-top: 3px; font-size: 12px; color: var(--rf-muted); }

.reservo-calendar__nav { display: flex; gap: 6px; align-items: center; }
.reservo-calendar__nav-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--rf-border);
  border-radius: 50%;
  background: var(--rf-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
  color: var(--rf-text);
  padding: 0;
  font: inherit;
}
.reservo-calendar__nav-btn:hover { border-color: var(--rf-primary); background: rgba(158,31,45,.05); color: var(--rf-primary); }
.reservo-calendar__nav-btn svg { width: 7px; height: 12px; display: block; }
.reservo-calendar__nav-btn--today { width: auto; border-radius: 999px; padding: 0 13px; font-size: 12px; font-weight: 600; }

.reservo-calendar__legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 20px; background: rgba(47,44,41,.02); border-bottom: 1px solid rgba(47,44,41,.06); }
.reservo-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--rf-muted); }
.reservo-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.reservo-legend-dot.is-free        { background: #7ca58b; }
.reservo-legend-dot.is-booked      { background: #d9906f; }
.reservo-legend-dot.is-out-of-range { background: rgba(47,44,41,.22); }
.reservo-legend-dot.is-selected    { background: var(--rf-primary); }

.reservo-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 10px 14px 2px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rf-muted);
}
.reservo-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  padding: 4px 14px 14px;
}

/* Day cell — compact */
.reservo-calendar-day {
  height: 40px;
  min-height: 0;
  border: none;
  border-radius: var(--rf-r-sm);
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: inherit;
  color: var(--rf-text);
  transition: background .12s ease, color .12s ease;
  padding: 0;
}
.reservo-calendar-day strong { font-size: 13px; font-weight: 500; line-height: 1; pointer-events: none; }
.reservo-calendar-day span   { display: none; }

.reservo-calendar-day:not(:disabled):not(.is-other-month):hover { background: rgba(158,31,45,.07); }
.reservo-calendar-day.is-other-month { opacity: .28; pointer-events: none; }
.reservo-calendar-day.is-booked { cursor: not-allowed; color: rgba(217,144,111,.65); }
.reservo-calendar-day.is-booked strong { text-decoration: line-through; }
/* Jours hors de la plage verrouillée de l'expérience */
.reservo-calendar-day.is-out-of-range { opacity: .18; pointer-events: none; color: var(--rf-muted); }

.reservo-calendar-day.is-selected { background: rgba(158,31,45,.09); color: var(--rf-text); border-radius: 0; }
.reservo-calendar-day.is-selected strong { font-weight: 600; }
.reservo-calendar-day.is-selected-edge { background: var(--rf-primary); color: #fff; border-radius: var(--rf-r-sm); }
.reservo-calendar-day.is-selected-edge strong { font-weight: 700; }

/* ── Date hint (type = fixed, no experience selected) ────────── */
.reservo-date-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1.5px dashed var(--rf-border);
  border-radius: var(--rf-r);
  color: var(--rf-muted);
  font-size: 14px;
}
.reservo-date-hint svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .6; }
.reservo-date-hint p { margin: 0; }

/* ── Summary ─────────────────────────────────────────────────── */
.reservo-summary {
  background: linear-gradient(135deg, var(--rf-bg), rgba(245,240,227,.35));
  border: 1.5px solid rgba(215,174,106,.22);
  border-radius: var(--rf-r);
  padding: 18px 22px;
  margin: 0 0 20px;
}
.reservo-summary p { margin: 0; padding: 8px 0; font-size: 14px; border-bottom: 1px solid rgba(47,44,41,.07); }
.reservo-summary p:first-child { padding-top: 0; }
.reservo-summary p:last-child  { padding-bottom: 0; border-bottom: none; }

/* ── Consents ────────────────────────────────────────────────── */
.reservo-consents { margin-top: 6px; }

/* ── Errors ──────────────────────────────────────────────────── */
.reservo-errors { min-height: 20px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--rf-primary); line-height: 1.4; }

/* ── Actions bar ─────────────────────────────────────────────── */
.reservo-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;   /* étape 1 : seul "Continuer" reste à droite */
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(47,44,41,.07);
}
/* Dès que "Retour" est visible : prev à gauche, action principale à droite */
.reservo-actions:has([data-reservo-prev]:not([hidden])) { justify-content: space-between; }

/* ── Buttons ─────────────────────────────────────────────────── */
.reservo-button {
  border: 0;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease, border-color .15s ease, color .15s ease;
  -webkit-appearance: none;
}
.reservo-button:active { transform: scale(.97) !important; }

.reservo-button.reservo-button-primary,
.reservo-form .reservo-button-primary,
.reservo-modal .reservo-button-primary,
a.reservo-button-primary:visited { background: var(--rf-primary); color: #fff !important; box-shadow: 0 4px 14px rgba(158,31,45,.22); }
.reservo-button.reservo-button-primary:hover:not(:disabled),
.reservo-button.reservo-button-primary:focus:not(:disabled),
.reservo-form .reservo-button-primary:hover:not(:disabled),
.reservo-form .reservo-button-primary:focus:not(:disabled),
.reservo-modal .reservo-button-primary:hover:not(:disabled),
.reservo-modal .reservo-button-primary:focus:not(:disabled) { background: #b5222e; color:#fff !important; box-shadow: 0 6px 20px rgba(158,31,45,.3); transform: translateY(-1px); }
.reservo-button-primary:disabled { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none; }

.reservo-button-secondary,
.reservo-button-ghost { background: transparent; color: var(--rf-muted); border: 1.5px solid var(--rf-border); box-shadow: none; }
.reservo-button-secondary:hover:not(:disabled),
.reservo-button-ghost:hover:not(:disabled) { border-color: rgba(47,44,41,.25); color: var(--rf-text); }

/* ── Success ─────────────────────────────────────────────────── */
.reservo-success {
  padding: 44px 32px;
  text-align: center;
  border-radius: var(--rf-r);
  background: linear-gradient(135deg, rgba(245,240,227,.6), rgba(215,174,106,.12));
  border: 1.5px solid rgba(215,174,106,.28);
  font-size: 16px;
  color: var(--rf-accent);
}

/* ── Honeypot ────────────────────────────────────────────────── */
.reservo-hp { position: absolute; left: -9999px; width: 0; overflow: hidden; }

/* Force les éléments hidden — certains thèmes WP écrasent l'attribut hidden */
.reservo-form [hidden] { display: none !important; }

/* ── Modal ───────────────────────────────────────────────────── */
.reservo-modal[hidden] { display: none; }
.reservo-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(13,27,61,.6);
  padding: 20px;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.reservo-modal__dialog {
  max-width: 980px;
  width: 100%;
  margin: 40px auto;
  background: var(--rf-surface, #fff);
  border-radius: var(--rf-r-lg, 18px);
  position: relative;
  overflow: hidden;
}
.reservo-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--rf-border, rgba(47,44,41,.16));
  background: var(--rf-surface, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--rf-muted, #716d68);
  transition: border-color .14s, color .14s;
  padding: 0;
  font: inherit;
}
.reservo-modal__close:hover { border-color: var(--rf-primary); color: var(--rf-primary); }

/* ── Experiences ─────────────────────────────────────────────── */
.reservo-experiences-widget,
.reservo-experience-modal,
.reservo-booking-modal {
  /* ── Couleurs de base ── */
  --re-primary:           #9e1f2d;
  --re-secondary:         #d7ae6a;
  --re-accent:            #0d1b3d;
  --re-text:              #2f2c29;
  --re-muted:             #716d68;
  --re-surface:           #fff;
  --re-background:        #f5f0e3;
  --re-border:            rgba(47,44,41,.16);
  --re-radius:            8px;
  --re-gap:               20px;

  /* ── Badges ── */
  --re-badge-text:        var(--re-muted);
  --re-badge-bg:          var(--re-background);
  --re-badge-border:      var(--re-border);

  /* ── Boutons (legacy aliases — conservés pour compat) ── */
  --re-button-bg:         var(--re-primary);
  --re-button-text:       #fff;
  --re-button-hover-bg:   #7f1824;
  --re-button-hover-text: #fff;
  --re-secondary-button:  var(--re-primary);

  /* ── Bouton Réserver (primary = filled) ── */
  --re-btn-primary-bg:          var(--re-button-bg);
  --re-btn-primary-text:        var(--re-button-text);
  --re-btn-primary-hover-bg:    var(--re-button-hover-bg);
  --re-btn-primary-hover-text:  var(--re-button-hover-text);
  --re-btn-primary-border-color:var(--re-button-bg);
  --re-btn-primary-radius:      6px;
  --re-btn-primary-min-height:  42px;

  /* ── Bouton Détails (secondary = outline) ── */
  --re-btn-secondary-color:       var(--re-secondary-button);
  --re-btn-secondary-bg:          transparent;
  --re-btn-secondary-border-color:var(--re-secondary-button);
  --re-btn-secondary-hover-bg:    var(--re-secondary-button);
  --re-btn-secondary-hover-text:  #fff;
  --re-btn-secondary-hover-border-color:var(--re-secondary-button);
  --re-btn-secondary-radius:      6px;
  --re-btn-secondary-min-height:  42px;

  /* ── Carte ── */
  --re-card-bg:                 var(--re-surface);
  --re-card-border-color:       var(--re-border);
  --re-card-border-width:       1px;
  --re-card-shadow:             0 2px 12px rgba(0,0,0,.07);
  --re-card-hover-bg:           var(--re-surface);
  --re-card-hover-border-color: var(--re-primary);
  --re-card-hover-shadow:       0 8px 28px rgba(0,0,0,.12);
  --re-card-hover-transform:    translateY(-3px);
  --re-card-image-radius:       0px;

  /* ── Modal ── */
  --re-modal-bg:            var(--re-surface);
  --re-modal-width:         920px;
  --re-modal-height:        90vh;
  --re-modal-border-radius: 20px;
  --re-modal-image-width:   42%;
  --re-modal-close-size:    36px;
  --re-modal-close-color:   var(--re-text);
  --re-modal-close-bg:      rgba(255,255,255,.92);
  --re-modal-close-radius:  50%;

  /* ── Carrousel ── */
  --re-arrow-color:           var(--re-primary);
  --re-arrow-bg:              #fff;
  --re-arrow-size:            38px;
  --re-arrow-radius:          50%;
  --re-pagination-active-color:var(--re-primary);
}
.reservo-modal-open { overflow:hidden; }
.reservo-experiences-widget { color:var(--re-text); }
.reservo-experiences {
  display:grid;
  grid-template-columns:repeat(var(--re-columns-desktop,3),minmax(0,1fr));
  gap:var(--re-gap);
}
.reservo-experiences--list { grid-template-columns:1fr; }
.reservo-experience-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  color:var(--re-text);
  background:var(--re-card-bg);
  border:var(--re-card-border-width) solid var(--re-card-border-color);
  border-radius:var(--re-radius);
  overflow:hidden;
  box-shadow:var(--re-card-shadow);
  transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease,background .2s ease;
}
.reservo-experience-card:hover {
  background:var(--re-card-hover-bg);
  border-color:var(--re-card-hover-border-color);
  box-shadow:var(--re-card-hover-shadow);
  transform:var(--re-card-hover-transform);
}
.reservo-experience-card__media {
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--re-background);
}
.reservo-experience-card__media img { width:100%; height:100%; object-fit:cover; display:block; border-radius:var(--re-card-image-radius); }
.reservo-experience-card__body { display:flex; flex:1; flex-direction:column; gap:10px; padding:14px; }

/* Badges en overlay sur l'image */
.reservo-experience-card__media .reservo-experience-card__badges {
  position:absolute;
  bottom:10px;
  left:10px;
  right:10px;
  flex-wrap:wrap;
  gap:6px;
  padding:0;
}
.reservo-experience-card__badges { display:flex; flex-wrap:wrap; gap:7px; }
.reservo-experience-badge {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 9px;
  border:1px solid var(--re-border);
  border-radius:999px;
  color:var(--re-badge-text);
  background:var(--re-badge-bg);
  font-size:11px;
  font-weight:600;
}
.reservo-experience-badge--complet { color:#8a1c28; background:#fce8eb; border-color:#f1bdc4; }
.reservo-experience-badge--programme { color:var(--re-accent); }
.reservo-experience-card__title { margin:0; color:var(--re-accent); font-size:20px; line-height:1.25; }
.reservo-experience-card__summary { margin:0; color:var(--re-muted); line-height:1.55; }
.reservo-experience-meta { display:grid; gap:7px; margin:0; }
.reservo-experience-meta > div { display:grid; grid-template-columns:minmax(72px,.7fr) minmax(0,1.3fr); gap:10px; }
.reservo-experience-meta dt { color:var(--re-muted); font-size:12px; font-weight:600; }
.reservo-experience-meta dd { margin:0; color:var(--re-text); font-size:13px; overflow-wrap:anywhere; }
.reservo-experience-card__actions,
.reservo-experience-detail__actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:auto; }
.reservo-experience-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 16px;
  border:1px solid transparent;
  border-radius:6px;
  cursor:pointer;
  font:inherit;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}
.reservo-experience-button.reservo-experience-button--primary,
a.reservo-experience-button--primary:visited {
  color:var(--re-btn-primary-text) !important;
  background:var(--re-btn-primary-bg);
  border-color:var(--re-btn-primary-border-color);
  border-radius:var(--re-btn-primary-radius);
  min-height:var(--re-btn-primary-min-height);
}
.reservo-experience-button.reservo-experience-button--primary:hover,
.reservo-experience-button.reservo-experience-button--primary:focus {
  color:var(--re-btn-primary-hover-text) !important;
  background:var(--re-btn-primary-hover-bg);
}
.reservo-experience-button.reservo-experience-button--secondary,
a.reservo-experience-button--secondary:visited {
  color:var(--re-btn-secondary-color) !important;
  background:var(--re-btn-secondary-bg);
  border-color:var(--re-btn-secondary-border-color);
  border-radius:var(--re-btn-secondary-radius);
  min-height:var(--re-btn-secondary-min-height);
}
.reservo-experience-button.reservo-experience-button--secondary:hover,
.reservo-experience-button.reservo-experience-button--secondary:focus {
  color:var(--re-btn-secondary-hover-text) !important;
  background:var(--re-btn-secondary-hover-bg);
  border-color:var(--re-btn-secondary-hover-border-color);
}
.reservo-experience-button:disabled { opacity:.55; cursor:wait; }
.reservo-experiences__more { display:flex; justify-content:center; margin-top:28px; }
.reservo-experiences-empty { color:var(--re-muted); }
/* ── Experience detail modal ─────────────────────────────────── */
.reservo-experience-modal { color:var(--re-text); align-items:center; }

.reservo-experience-modal__dialog {
  position:relative;
  width:calc(100% - 40px);
  max-width:var(--re-modal-width, 920px);
  max-height:var(--re-modal-height, 90vh);
  margin:auto;
  background:var(--re-modal-bg,#fff);
  border-radius:var(--re-modal-border-radius, 20px);
  overflow:hidden;
  box-shadow:0 8px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1);
}
.reservo-experience-modal__dialog--no-image .reservo-experience-detail { grid-template-columns:1fr; }

/* Close button — flottant en haut à droite */
.reservo-experience-modal__close {
  position:absolute;
  top:14px; right:14px;
  z-index:10;
  width:var(--re-modal-close-size, 36px);
  height:var(--re-modal-close-size, 36px);
  border-radius:var(--re-modal-close-radius, 50%);
  border:none;
  background:var(--re-modal-close-bg, rgba(255,255,255,.92));
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--re-modal-close-color, var(--re-text, #2f2c29));
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  transition:opacity .15s, transform .15s;
}
.reservo-experience-modal__close:hover { opacity:.85; transform:scale(1.08); }
.reservo-experience-modal__close svg { width:13px; height:13px; display:block; }

/* ── Detail layout : image | contenu ────────────────────────── */
.reservo-experience-detail {
  display:grid;
  grid-template-columns:var(--re-modal-image-width, 42%) 1fr;
  max-height:var(--re-modal-height, 90vh);
  color:var(--re-text);
  background:var(--re-modal-bg,#fff);
}
.reservo-experience-detail--no-image { grid-template-columns:1fr; }
.reservo-experience-detail--inline {
  max-height:none;
  border:1px solid var(--re-border);
  border-radius:var(--re-radius);
  overflow:hidden;
}

/* Visuel (image côté gauche) */
.reservo-experience-detail__visual {
  position:relative;
  overflow:hidden;
  min-height:380px;
}
.reservo-experience-detail__visual img {
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

/* Panneau droit : contenu scrollable + footer sticky */
.reservo-experience-detail__panel {
  display:flex;
  flex-direction:column;
  max-height:90vh;
  overflow:hidden;
}
.reservo-experience-detail__scroll {
  flex:1;
  overflow-y:auto;
  padding:32px 30px 16px;
  scrollbar-width:thin;
}
.reservo-experience-detail__footer {
  padding:14px 30px 22px;
  border-top:1px solid rgba(0,0,0,.07);
  background:var(--re-modal-bg,#fff);
}
.reservo-experience-detail__footer .reservo-experience-button--primary { width:100%; }

/* Titre */
.reservo-experience-detail__title {
  margin:10px 0 20px;
  color:var(--re-accent);
  font-size:clamp(20px,2.5vw,26px);
  font-weight:700;
  line-height:1.22;
  letter-spacing:-.02em;
}

/* Lead */
.reservo-experience-detail__lead {
  color:var(--re-muted);
  font-size:14px;
  line-height:1.65;
  margin:16px 0 0;
  padding-top:16px;
  border-top:1px solid rgba(0,0,0,.07);
}

/* Description riche */
.reservo-experience-detail__description {
  margin-top:14px;
  font-size:14px;
  line-height:1.7;
  color:var(--re-text);
}
.reservo-experience-detail__description p { margin:0 0 10px; }
.reservo-experience-detail__description p:last-child { margin:0; }

/* ── Meta items (grille avec icônes) ─────────────────────────── */
.reservo-experience-meta {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin:0;
  padding:0;
}
.reservo-experience-meta__item {
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(0,0,0,.04);
  border-radius:10px;
  padding:10px 12px;
  min-width:0;
}
.reservo-experience-meta__icon {
  flex-shrink:0;
  width:28px; height:28px;
  border-radius:7px;
  background:rgba(158,31,45,.09);
  color:var(--re-primary,#9e1f2d);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px;
}
.reservo-experience-meta__icon svg { width:100%; height:100%; display:block; }
.reservo-experience-meta dt {
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:var(--re-muted);
  margin:0 0 2px;
}
.reservo-experience-meta dd {
  margin:0;
  font-size:13px;
  font-weight:600;
  color:var(--re-accent);
  line-height:1.3;
  overflow-wrap:anywhere;
}

/* Les cartes utilisent une liste compacte. La grille detail reste reservee a la modale. */
.reservo-experience-card .reservo-experience-meta {
  grid-template-columns:1fr;
  gap:5px;
}
.reservo-experience-card .reservo-experience-meta__item {
  gap:8px;
  min-height:34px;
  padding:6px 8px;
  border-radius:7px;
}
.reservo-experience-card .reservo-experience-meta__icon {
  width:24px;
  height:24px;
  padding:4px;
  border-radius:6px;
}
.reservo-experience-card .reservo-experience-meta__item > div {
  display:grid;
  grid-template-columns:minmax(72px,.6fr) minmax(0,1.4fr);
  align-items:center;
  gap:8px;
  width:100%;
  min-width:0;
}
.reservo-experience-card .reservo-experience-meta dt {
  margin:0;
  font-size:9px;
}
.reservo-experience-card .reservo-experience-meta dd {
  font-size:12px;
  line-height:1.25;
}

/* ── Listes inclus / non inclus ──────────────────────────────── */
.reservo-experience-detail__lists {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid rgba(0,0,0,.07);
}
.reservo-experience-detail__list h3 {
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--re-muted);
  margin:0 0 10px;
}
.reservo-experience-detail__list ul {
  list-style:none;
  margin:0; padding:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.reservo-experience-detail__list li {
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:13px;
  color:var(--re-text);
  line-height:1.4;
}
.reservo-experience-detail__list-icon {
  flex-shrink:0;
  width:18px; height:18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:1px;
}
.reservo-experience-detail__list-icon svg { width:8px; height:8px; display:block; }
.reservo-experience-detail__list--included .reservo-experience-detail__list-icon {
  background:rgba(19,95,51,.12);
  color:#135f33;
}
.reservo-experience-detail__list--not-included .reservo-experience-detail__list-icon {
  background:rgba(158,31,45,.1);
  color:var(--re-primary,#9e1f2d);
}
.reservo-carousel-wrap { position:relative; padding:0 38px 32px; }
.reservo-carousel { overflow:hidden; }
.reservo-carousel .swiper-slide { height:auto; }
.reservo-carousel .reservo-experience-card { height:100%; }
.reservo-carousel-arrow {
  position:absolute;
  top:50%;
  z-index:2;
  width:var(--re-arrow-size, 38px);
  height:var(--re-arrow-size, 38px);
  margin-top:-36px;
  border:1px solid var(--re-border);
  border-radius:var(--re-arrow-radius, 50%);
  color:var(--re-arrow-color, var(--re-primary));
  background:var(--re-arrow-bg, #fff);
  cursor:pointer;
  font-size:25px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.reservo-carousel-arrow:hover {
  border-color:var(--re-arrow-color, var(--re-primary));
  box-shadow:0 4px 14px rgba(0,0,0,.1);
}
.reservo-carousel-prev { left:0; }
.reservo-carousel-next { right:0; }
.reservo-carousel-pagination { bottom:0!important; }
.reservo-carousel-pagination .swiper-pagination-bullet-active { background:var(--re-pagination-active-color, var(--re-primary)); }
.reservo-elementor-placeholder { padding:24px; border:1px dashed #bbb; text-align:center; color:#666; }
.reservo-booking-widget { display:flex; }
.reservo-booking-widget .reservo-booking-widget__button,
a.reservo-booking-widget__button:visited {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  padding:12px 22px;
  background:var(--rf-primary,#9e1f2d);
  color:#fff !important;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .2s,color .2s,border-color .2s,transform .2s;
}
.reservo-booking-widget .reservo-booking-widget__button:hover,
.reservo-booking-widget .reservo-booking-widget__button:focus { color:#fff !important; }
.reservo-booking-widget__icon { display:inline-flex; align-items:center; justify-content:center; }
.reservo-booking-widget__icon svg { display:block; width:1em; height:1em; fill:currentColor; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width:1024px) {
  .reservo-experiences { grid-template-columns:repeat(var(--re-columns-tablet,2),minmax(0,1fr)); }
  .reservo-exp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .reservo-form { padding: 20px 16px 18px; border-radius: var(--rf-r); }
  .reservo-stepper__label { display: none; }
  .reservo-fields-grid { grid-template-columns: 1fr; gap: 12px; }
  .reservo-exp-card__img { width: 56px; height: 56px; }
  .reservo-exp-card__inner { padding: 10px 34px 10px 10px; gap: 10px; }
  .reservo-exp-card__title { font-size: 12px; }
  .reservo-exp-card__badge { font-size: 10px; padding: 2px 6px; }

  .reservo-actions { flex-direction: column-reverse; align-items: stretch; justify-content: flex-end; }
  .reservo-actions:has([data-reservo-prev]:not([hidden])) { justify-content: flex-end; }
  .reservo-button { width: 100%; justify-content: center; min-height: 50px; }
  .reservo-calendar__header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .reservo-calendar__header h3 { font-size: 17px; }
  .reservo-calendar-day { height: 34px; border-radius: 6px; }
  .reservo-calendar-day strong { font-size: 11px; }
  .reservo-calendar__weekdays { font-size: 9px; padding: 8px 10px 2px; }
  .reservo-calendar__grid { gap: 1px; padding: 4px 10px 10px; }
  .reservo-experiences { grid-template-columns:repeat(var(--re-columns-mobile,1),minmax(0,1fr)); }
  /* Modal detail — empilement vertical sur mobile */
  .reservo-experience-modal__dialog { max-height:96vh; border-radius:16px; }
  .reservo-experience-detail { grid-template-columns:1fr; max-height:96vh; }
  .reservo-experience-detail__visual { min-height:220px; max-height:280px; }
  .reservo-experience-detail__panel { max-height:none; }
  .reservo-experience-detail__scroll { padding:20px 18px 12px; }
  .reservo-experience-detail__footer { padding:12px 18px 18px; }
  .reservo-experience-detail__title { font-size:20px; }
  .reservo-experience-meta { grid-template-columns:1fr; }
  .reservo-experience-detail__lists { grid-template-columns:1fr; }
  .reservo-carousel-wrap { padding-inline:0; }
  .reservo-carousel-arrow { display:none; }
}
@media (max-width: 480px) {
  .reservo-choice-grid { grid-template-columns: 1fr; }
  .reservo-form { padding: 18px 14px 16px; }
  .reservo-exp-card__img { width: 48px; height: 48px; }
  .reservo-exp-card__inner { padding: 10px 32px 10px 10px; gap: 8px; }
  .reservo-exp-card__title { font-size: 12px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .reservo-exp-card__badge { font-size: 10px; }
  /* "Aucun programme" card compacte */
  .reservo-exp-card--none .reservo-exp-card__inner { padding: 10px 32px 10px 10px; }
  .reservo-exp-card__none-icon { width: 30px; height: 30px; }
}
