/* ============================================================
   FLY HORIZONS — reservation-perso.css
   ============================================================ */

:root {
  --navy:    #113356; --gold: #F2B705; --gold-s: rgba(242,183,5,.12);
  --white:   #ffffff; --bg: #f6f8fc;   --border: #e0e5ef;
  --text:    #1e2535; --muted: #64748b;
  --success: #22c55e; --danger: #ef4444;
  --r-sm:    10px;    --r-md:  18px;   --r-lg: 24px;
  --sh-sm:   0 2px 14px rgba(17,51,86,.07);
  --sh-md:   0 8px 32px rgba(17,51,86,.11);
  --ease:    cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
body { font-family:'Poppins',sans-serif; color:var(--text); background:var(--white); -webkit-font-smoothing:antialiased; }
img  { display:block; max-width:100%; }
a    { text-decoration:none; }

/* ── Hero — même style que reservation.html (fond blanc, texte centré) ── */
.rp-hero {
  padding: 120px 6vw 0px;
  background: var(--white);
  position: relative; overflow: hidden;
  text-align: center;
}
.rp-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .45; pointer-events: none;
}
.rp-hero-inner { position:relative; z-index:1; max-width:680px; margin:0 auto; }
.rp-label {
  display:inline-flex; align-items:center; gap:7px;
  font-size:.72em; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:var(--gold); margin-bottom:14px;
}
.rp-hero h1 {
  font-size: clamp(2.4em, 5vw, 3.8em);
  font-weight:700; color:var(--navy);
  line-height:1.08; letter-spacing:-1.5px; margin-bottom:0;
}
.rp-hero h1 span { color:var(--gold); }
.rp-hero-sub { font-size:.95em; color:var(--muted); line-height:1.7; max-width:480px; margin:20px auto 0; }

/* ── Main — max 1400px sur desktop ── */
.rp-main { max-width:1100px; margin:0 auto; padding:40px 5vw 80px; }

/* ── Card interne (infos / carte) ── */
.rp-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--sh-sm);
}

/* ── Steps bar ── */
.rp-steps-bar {
  display:flex; align-items:center; gap:0;
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:16px 24px;
  margin-bottom:28px; box-shadow:var(--sh-sm);
}
.rp-step { display:flex; align-items:center; gap:10px; flex:1; }
.rp-step-dot {
  width:32px; height:32px; border-radius:50%;
  background:var(--bg); border:2px solid var(--border);
  color:var(--muted); font-size:.84em; font-weight:700;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition:all .25s;
}
.rp-step span { font-size:.78em; font-weight:600; color:var(--muted); white-space:nowrap; }
.rp-step.active .rp-step-dot { background:var(--navy); border-color:var(--navy); color:var(--white); }
.rp-step.active span { color:var(--navy); }
.rp-step.done .rp-step-dot { background:var(--success); border-color:var(--success); color:var(--white); }
.rp-step-line { flex:1; height:2px; background:var(--border); margin:0 8px; }

/* ── Step sections — les cards sont maintenant à l'intérieur ── */
.rp-step-section { display:none; }
.rp-step-section.active { display:block; animation:rpFadeIn .25s var(--ease); }
@keyframes rpFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

.rp-step-header {
  display:flex; align-items:flex-start; gap:16px;
  padding-bottom:20px; margin-bottom:24px;
  border-bottom:1.5px solid var(--border);
}
.rp-step-icon {
  width:44px; height:44px; border-radius:12px;
  background:var(--navy); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1em; flex-shrink:0;
}
.rp-step-header h2 { font-size:1.15em; font-weight:700; color:var(--navy); margin-bottom:4px; }
.rp-step-header p  { font-size:.84em; color:var(--muted); }

/* ── Formulaire ── */
.rp-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:4px; }
.rp-field-group { display:flex; flex-direction:column; gap:6px; }
.rp-field-group.rp-full { grid-column:1/-1; }
.rp-field-grid.three-col { grid-template-columns:1fr 1fr 1fr; }
.rp-field-group label { font-size:.82em; font-weight:600; color:var(--navy); }
.rp-req { color:var(--gold); }
.rp-opt { font-size:.88em; color:var(--muted); font-weight:400; }

.rp-field-group input[type="text"],
.rp-field-group input[type="email"],
.rp-field-group input[type="tel"],
.rp-field-group input[type="number"],
.rp-field-group textarea {
  padding:11px 14px; border:1.5px solid var(--border);
  border-radius:var(--r-sm); font-family:'Poppins',sans-serif;
  font-size:.88em; color:var(--text); background:var(--white);
  transition:border-color .2s, box-shadow .2s;
}
.rp-field-group input:focus,
.rp-field-group textarea:focus {
  outline:none; border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(17,51,86,.08);
}
.rp-field-group input.error { border-color:var(--danger); box-shadow:0 0 0 3px rgba(239,68,68,.1); }
.rp-field-group textarea    { resize:vertical; min-height:88px; }
.rp-field-error { font-size:.72em; color:var(--danger); min-height:16px; }
.rp-hint {
  display:flex; align-items:flex-start; gap:6px;
  font-size:.75em; color:var(--muted); line-height:1.5;
}
.rp-hint i { color:var(--gold); flex-shrink:0; margin-top:2px; }

.rp-select-wrap { position:relative; }
.rp-select-wrap select {
  width:100%; padding:11px 40px 11px 14px;
  border:1.5px solid var(--border); border-radius:var(--r-sm);
  font-family:'Poppins',sans-serif; font-size:.88em;
  color:var(--text); background:var(--white); appearance:none; cursor:pointer;
}
.rp-select-wrap select:focus { outline:none; border-color:var(--navy); }
.rp-select-arrow {
  position:absolute; right:14px; top:50%; transform:translateY(-50%);
  color:var(--muted); font-size:.8em; pointer-events:none;
}

/* ── Section carte ── */
.rp-map-section {
  margin-top:32px;
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:24px;
  box-shadow:var(--sh-sm);
}
.rp-map-header {
  display:flex; align-items:flex-start; gap:16px;
  margin-bottom:20px;
}

/* Barre estimation */
.rp-estimate-bar {
  display:flex; align-items:center; gap:0;
  background:var(--navy); border-radius:var(--r-md);
  padding:14px 20px; margin-bottom:16px; flex-wrap:wrap; gap:0;
}
.rp-est-item {
  display:flex; align-items:center; gap:10px; flex:1; min-width:80px;
}
.rp-est-item i { color:var(--gold); font-size:1.1em; flex-shrink:0; }
.rp-est-val { font-size:1.3em; font-weight:700; color:var(--white); display:block; line-height:1; }
.rp-est-lbl { font-size:.68em; color:rgba(255,255,255,.5); display:block; margin-top:2px; }
.rp-est-sep { width:1px; height:36px; background:rgba(255,255,255,.12); margin:0 16px; flex-shrink:0; }

/* Carte */
.rp-map {
  width:100%; height:420px;
  border-radius:var(--r-md); overflow:hidden;
  border:1.5px solid var(--border); cursor:crosshair;
  margin-bottom:16px;
}
.rp-map .leaflet-pane   { z-index:1 !important; }
.rp-map .leaflet-top,
.rp-map .leaflet-bottom { z-index:2 !important; }

/* Marqueurs carte */
.rp-marker {
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:.8em; font-weight:700;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  border:2px solid var(--white);
}
.rp-marker-dep { background:var(--navy); color:var(--white); font-size:.75em; }
.rp-marker-pt  { background:var(--gold); color:var(--navy); }

/* Liste waypoints */
.rp-waypoints-list {
  border:1.5px solid var(--border); border-radius:var(--r-md); overflow:hidden;
  margin-bottom:12px;
}
.rp-wpt-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px; background:var(--bg);
  font-size:.8em; font-weight:700; color:var(--navy);
  border-bottom:1px solid var(--border);
}
.rp-btn-clear {
  display:flex; align-items:center; gap:6px;
  padding:5px 10px; background:transparent;
  border:1px solid var(--border); border-radius:6px;
  color:var(--muted); font-size:.78em; font-family:'Poppins',sans-serif;
  cursor:pointer; transition:all .2s;
}
.rp-btn-clear:hover { border-color:var(--danger); color:var(--danger); }

.rp-wpt-empty { padding:16px; text-align:center; font-size:.82em; color:var(--muted); }
.rp-wpt-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 16px; border-bottom:1px solid var(--border); font-size:.84em;
}
.rp-wpt-item:last-child { border-bottom:none; }
.rp-wpt-dep { background:rgba(17,51,86,.04); font-style:italic; color:var(--muted); }
.rp-wpt-num {
  width:24px; height:24px; border-radius:50%;
  background:var(--gold); color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  font-size:.74em; font-weight:700; flex-shrink:0;
}
.rp-wpt-dep .rp-wpt-num { background:var(--navy); color:var(--white); font-size:.8em; }
.rp-wpt-name  { flex:1; font-weight:600; color:var(--navy); }
.rp-wpt-coords { font-size:.74em; color:var(--muted); }
.rp-wpt-del {
  width:24px; height:24px; border-radius:50%;
  background:transparent; border:1px solid var(--border);
  color:var(--muted); cursor:pointer; font-size:.72em;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s; flex-shrink:0;
}
.rp-wpt-del:hover { background:var(--danger); border-color:var(--danger); color:var(--white); }

.rp-map-hint {
  display:flex; align-items:flex-start; gap:7px;
  font-size:.76em; color:var(--muted); line-height:1.5;
}
.rp-map-hint i { color:var(--gold); flex-shrink:0; margin-top:2px; }

/* ── Calendrier ── */
.rp-calendar-wrapper {
  border:1.5px solid var(--border); border-radius:var(--r-md);
  box-shadow:var(--sh-sm); margin-bottom:8px; overflow:visible;
}
.rp-calendar-nav {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; background:var(--navy);
  border-radius:var(--r-md) var(--r-md) 0 0;
}
#rp-cal-label { font-size:.92em; font-weight:600; color:var(--white); text-transform:capitalize; }
.rp-cal-btn {
  width:32px; height:32px; background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.15); border-radius:var(--r-sm);
  color:var(--white); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s;
}
.rp-cal-btn:hover { background:rgba(255,255,255,.2); }
.rp-calendar-grid {
  display:grid; grid-template-columns:repeat(7,1fr);
  background:var(--bg); padding:10px; gap:3px;
  border-radius:0 0 var(--r-md) var(--r-md);
}
/* CRITIQUE — sans ça, tous les jours s'empilent dans un seul div */
#rp-cal-days { display:contents; }
.rp-day-name { text-align:center; font-size:.65em; font-weight:700; color:var(--muted); padding:6px 0; }
.rp-day {
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  border-radius:var(--r-sm); font-size:.84em; font-weight:500;
  cursor:pointer; border:1.5px solid transparent; color:var(--navy);
  transition:all .2s; position:relative; flex-direction:column; gap:2px;
}
.rp-day.today    { font-weight:700; color:var(--gold); }
.rp-day.past, .rp-day.empty { color:rgba(100,116,139,.3); cursor:default; }
.rp-day.empty    { cursor:default; }
.rp-day.dispo    { background:#f0fdf4; border-color:#86efac; color:#15803d; font-weight:600; }
.rp-day.dispo:hover { background:#dcfce7; border-color:#4ade80; transform:scale(1.06); }
.rp-day.unavailable { color:rgba(100,116,139,.35); cursor:not-allowed; background:#fafafa; position:relative; }
.rp-day.unavailable::after { content:""; position:absolute; top:50%; left:15%; right:15%; height:1.5px; background:rgba(100,116,139,.25); }
.rp-day.selected { background:var(--navy) !important; color:var(--white) !important; border-color:var(--navy); box-shadow:0 4px 12px rgba(17,51,86,.2); }
.rp-dispo-dot { width:4px; height:4px; border-radius:50%; background:#22c55e; display:block; }
.rp-day.selected .rp-dispo-dot { background:rgba(255,255,255,.5); }

.rp-cal-legend {
  display:flex; gap:14px; flex-wrap:wrap;
  margin-top:10px; padding-top:10px; margin-bottom:20px;
  border-top:1px solid var(--border);
  font-size:.75em; color:var(--text); font-weight:500;
}
.rp-leg-item { display:flex; align-items:center; gap:6px; }
.rp-leg-dot  { width:12px; height:12px; border-radius:4px; flex-shrink:0; }
.rld-green { background:#f0fdf4; border:1.5px solid #86efac; }
.rld-grey  { background:#fafafa; border:1.5px solid #cbd5e1; }
.rld-navy  { background:var(--navy); border:1.5px solid var(--navy); }

/* ── Récapitulatif ── */
.rp-summary { margin-bottom:20px; }
.rp-sum-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.rp-sum-item { background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-sm); padding:12px 14px; }
.rp-sum-item.rp-sum-full { grid-column:1/-1; }
.rp-sum-lbl { font-size:.72em; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.rp-sum-val { font-size:.92em; font-weight:600; color:var(--navy); }
.rp-sum-route { background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-md); padding:16px; }
.rp-route-list { display:flex; flex-direction:column; gap:4px; }
.rp-route-item { display:flex; align-items:center; gap:8px; font-size:.84em; padding:6px 8px; border-radius:6px; }
.rp-route-dep  { background:rgba(17,51,86,.05); color:var(--navy); font-style:italic; }
.rp-ri-num { width:22px; height:22px; border-radius:50%; background:var(--gold); color:var(--navy); display:flex; align-items:center; justify-content:center; font-size:.72em; font-weight:700; flex-shrink:0; }
.rp-ri-coords { font-size:.78em; color:var(--muted); margin-left:auto; }

/* ── Legal / Checkboxes ── */
.rp-legal { background:var(--bg); border-radius:var(--r-md); padding:18px 20px; margin-bottom:20px; font-size:.84em; color:var(--muted); line-height:1.7; }
.rp-legal p + p { margin-top:6px; }
.rp-legal a     { color:var(--navy); text-decoration:underline; }
.rp-checkboxes  { display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.rp-check-label { display:flex; align-items:flex-start; gap:12px; cursor:pointer; font-size:.86em; color:var(--text); line-height:1.5; }
.rp-check-label input { display:none; }
.rp-check-box {
  width:20px; height:20px; border-radius:5px;
  border:2px solid var(--border); background:var(--white);
  flex-shrink:0; margin-top:1px; position:relative;
  transition:all .2s;
}
.rp-check-label input:checked ~ .rp-check-box { background:var(--navy); border-color:var(--navy); }
.rp-check-label input:checked ~ .rp-check-box::after {
  content:""; position:absolute; top:3px; left:6px;
  width:5px; height:9px; border:2px solid var(--white);
  border-top:none; border-left:none; transform:rotate(40deg);
}
.rp-check-label a { color:var(--navy); text-decoration:underline; }

/* ── Boutons ── */
.rp-btn-next {
  display:inline-flex; align-items:center; gap:9px;
  padding:14px 28px; background:var(--navy); color:var(--white);
  border-radius:var(--r-sm); font-weight:700; font-size:.95em;
  font-family:'Poppins',sans-serif; border:none; cursor:pointer;
  transition:background .2s, transform .2s; margin-top:24px;
}
.rp-btn-next:hover { background:var(--gold); color:var(--navy); transform:translateY(-2px); }
.rp-btn-back {
  display:inline-flex; align-items:center; gap:9px;
  padding:13px 22px; background:var(--bg); color:var(--navy);
  border:1.5px solid var(--border); border-radius:var(--r-sm);
  font-weight:600; font-size:.9em; font-family:'Poppins',sans-serif;
  cursor:pointer; transition:all .2s;
}
.rp-btn-back:hover { background:var(--gold-s); border-color:var(--gold); }
.rp-btn-submit {
  display:inline-flex; align-items:center; gap:9px;
  padding:14px 28px; background:var(--gold); color:var(--navy);
  border-radius:var(--r-sm); font-weight:700; font-size:.95em;
  font-family:'Poppins',sans-serif; border:none; cursor:pointer;
  transition:background .2s, transform .2s;
}
.rp-btn-submit:hover { background:#f0c300; transform:translateY(-2px); }
.rp-btn-submit:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.rp-step-nav { display:flex; align-items:center; justify-content:space-between; margin-top:24px; }

/* ── Popup succès ── */
.rp-popup-overlay {
  position:fixed; inset:0; background:rgba(11,34,56,.6);
  backdrop-filter:blur(6px); z-index:9999;
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.rp-popup-box {
  background:var(--white); border-radius:var(--r-lg);
  padding:44px 36px; max-width:440px; width:100%; text-align:center;
  box-shadow:0 24px 64px rgba(17,51,86,.2);
}
.rp-popup-icon { font-size:3em; color:var(--success); margin-bottom:16px; }
.rp-popup-box h2 { font-size:1.5em; color:var(--navy); margin-bottom:12px; }
.rp-popup-box p  { font-size:.9em; color:var(--muted); line-height:1.7; }
.rp-popup-sub    { margin-top:8px; margin-bottom:28px; }
.rp-popup-btn {
  display:inline-flex; align-items:center; gap:9px;
  padding:13px 26px; background:var(--navy); color:var(--white);
  border-radius:var(--r-sm); font-weight:700; font-size:.92em;
  transition:background .2s;
}
.rp-popup-btn:hover { background:var(--gold); color:var(--navy); }

/* ── Spinner ── */
.spinner {
  width:20px; height:20px; border-radius:50%;
  border:2.5px solid rgba(255,255,255,.3); border-top-color:#fff;
  animation:spin .7s linear infinite; display:inline-block;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Responsive ── */
@media (max-width:768px) {
  .rp-hero { padding:90px 5vw 50px; }
  .rp-hero h1 { font-size:2.2em; letter-spacing:-.5px; }
  .rp-main { padding:24px 4vw 60px; }
  .rp-steps-bar { padding:12px 14px; }
  .rp-step span { display:none; }
  .rp-field-grid { grid-template-columns:1fr; }
  .rp-sum-grid   { grid-template-columns:1fr; }
  .rp-map { height:300px; }
  .rp-estimate-bar { gap:0; }
  .rp-est-sep { margin:0 8px; }
  .rp-ri-coords { display:none; }
}
@media (max-width:480px) {
  .rp-estimate-bar { flex-wrap:wrap; gap:10px; }
  .rp-est-sep { display:none; }
  .rp-est-item { flex:1 1 40%; }
}

/* ── Slots créneaux ── */
.rp-slots-section {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
  margin-top: 16px; box-shadow: var(--sh-sm);
}
.rp-slots-header {
  display: flex; align-items: center; gap: 10px;
  font-size: .9em; font-weight: 700; color: var(--navy);
  margin-bottom: 14px;
}
.rp-slots-header i { color: var(--gold); }
.rp-slots-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; color: var(--muted); font-size: .85em;
}
.rp-slots-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.rp-slot-btn {
  padding: 10px 18px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--navy); font-family: 'Poppins', sans-serif;
  font-size: .88em; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.rp-slot-btn:hover  { border-color: var(--gold); background: var(--gold-s); }
.rp-slot-btn.selected { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 4px 12px rgba(17,51,86,.15); }
.rp-slot-empty { font-size: .84em; color: var(--muted); padding: 8px 0; }

/* ── Modal sans points ── */
.rp-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11,34,56,.6); backdrop-filter: blur(6px);
  z-index: 9998; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.rp-modal-box {
  background: var(--white); border-radius: var(--r-lg);
  padding: 36px 32px; max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(17,51,86,.2);
}
.rp-modal-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold-s); border: 1.5px solid rgba(242,183,5,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4em; color: var(--gold); margin-bottom: 16px;
}
.rp-modal-box h3  { font-size: 1.2em; color: var(--navy); margin-bottom: 8px; }
.rp-modal-box > p { font-size: .88em; color: var(--muted); margin-bottom: 20px; }

.rp-modal-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.rp-modal-option {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--bg);
}
.rp-modal-option-alt { border-color: rgba(242,183,5,.4); background: var(--gold-s); }
.rp-modal-option i    { color: var(--navy); font-size: 1.1em; flex-shrink: 0; margin-top: 2px; }
.rp-modal-option-alt i { color: var(--gold); }
.rp-modal-option strong { display: block; font-size: .88em; color: var(--navy); margin-bottom: 3px; }
.rp-modal-option span   { font-size: .78em; color: var(--muted); line-height: 1.5; }

.rp-modal-footer {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: space-between;
}
.rp-modal-footer .rp-btn-next { margin-top: 0; }