/* Tripetia — feuille de style principale */

/* ============ Design tokens ============ */
:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  /* Nuit de voyage — indigo profond + accent corail/chaleur */
  --bg: #131a2e;
  --surface: #1a2340;
  --surface-2: #212c50;
  --surface-offset: #161e38;
  --border: rgba(255,255,255,.09);
  --text: #eef1fa;
  --text-muted: #9aa3c7;
  --text-faint: #6b739a;
  --primary: #ff7a59;
  --primary-hover: #ff9478;
  --primary-ink: #1c1030;
  --accent: #5eead4;
  --gold: #ffd166;
  --danger: #ff6b81;
  --success: #4ade80;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(2,6,20,.55);
  --ease: cubic-bezier(.22,1,.36,1);
  --t: 240ms var(--ease);

  --content: 1080px;
}

[data-theme='light'] {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #f0eee6;
  --surface-offset: #eae7dd;
  --border: rgba(28,20,60,.12);
  --text: #221f33;
  --text-muted: #5d5a75;
  --text-faint: #9491a8;
  --primary: #e4572e;
  --primary-hover: #c9431d;
  --primary-ink: #fff8f2;
  --accent: #0d9488;
  --gold: #b98500;
  --shadow: 0 24px 60px -28px rgba(40,30,10,.25);
}

/* Thèmes saisonniers (appliqués par data-season) — couleurs complètes */
[data-season='halloween'] {
  --primary:#ff8c2e; --primary-hover:#ffa552; --accent:#a78bfa; --gold:#ffb703;
  --bg:#16101f; --surface:#201530; --surface-2:#2a1a40; --surface-offset:#1b1229; --primary-ink:#1c1004;
}
[data-season='christmas'] {
  --primary:#e05252; --primary-hover:#f06a6a; --accent:#7ee2a8; --gold:#ffd166;
  --bg:#101a17; --surface:#152422; --surface-2:#1c2f2b; --surface-offset:#122019; --primary-ink:#fff5f2;
}
[data-season='newyear'] {
  --primary:#ffd166; --primary-hover:#ffe09a; --accent:#8b9dff; --gold:#ffd166;
  --bg:#131631; --surface:#1a1e42; --surface-2:#232854; --surface-offset:#171a3a; --primary-ink:#241a00;
}
[data-season='valentine'] {
  --primary:#ff5d8f; --primary-hover:#ff7ba6; --accent:#ffb3c6; --gold:#ffd166;
  --bg:#1d1120; --surface:#2a162f; --surface-2:#381d3f; --surface-offset:#231427; --primary-ink:#2b0716;
}
[data-season='spring'] {
  --primary:#ff7a59; --primary-hover:#ff9478; --accent:#f9a8d4; --gold:#ffd166;
  --bg:#141a26; --surface:#1d2436; --surface-2:#262f45; --surface-offset:#192031;
}
[data-season='summer'] {
  --primary:#2ec4b6; --primary-hover:#4fd6c9; --accent:#ffd166; --gold:#ffd166;
  --bg:#0f1e22; --surface:#142a2f; --surface-2:#1a363c; --surface-offset:#122529; --primary-ink:#03211d;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: none; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background 500ms var(--ease), color 500ms var(--ease);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--primary); color: var(--primary-ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============ Décor de fond ============ */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 26s var(--ease) infinite alternate; }
.blob-a { width: 46vw; height: 46vw; background: var(--primary); top: -12vw; right: -10vw; }
.blob-b { width: 38vw; height: 38vw; background: var(--accent); bottom: -14vw; left: -8vw; opacity: .12; animation-delay: -13s; }
@keyframes drift { to { transform: translate(-6vw, 5vw) scale(1.08); } }
.flight-path { position: absolute; inset: 0; width: 100%; height: 100%; }
#fp-curve { stroke: var(--text-faint); stroke-width: 1.2; stroke-dasharray: 5 9; opacity: .3; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -420; } }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.brand-tag { display: block; font-size: 12px; color: var(--text-muted); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); white-space: nowrap; flex-shrink: 0; transition: var(--t);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer;
}

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 26px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: var(--t); text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: var(--primary-ink); border: none; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* ============ Cartes & champs ============ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform var(--t), border-color var(--t);
}
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; letter-spacing: .02em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.field textarea { min-height: 90px; resize: vertical; }

/* ============ Layout des pages ============ */
.app-main { max-width: var(--content); margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 90px; min-height: 70dvh; }
.page-enter { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }

.section-title { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); margin-bottom: 32px; max-width: 62ch; }

/* ============ Hero ============ */
.hero { text-align: center; padding: clamp(40px, 9vw, 110px) 0 20px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
  animation: fadeUp .7s var(--ease) both;
}
.hero-kicker::before, .hero-kicker::after { content: ''; width: 26px; height: 1.5px; background: var(--accent); opacity: .6; }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 72px); max-width: 20ch; margin: 0 auto 24px;
  letter-spacing: -.02em; animation: fadeUp .7s var(--ease) .08s both;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-sub { max-width: 62ch; margin: 0 auto 36px; color: var(--text-muted); font-size: clamp(16px, 2vw, 19px); animation: fadeUp .7s var(--ease) .16s both; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .7s var(--ease) .24s both; }
.hero-trust { display: flex; gap: clamp(14px, 3vw, 34px); justify-content: center; flex-wrap: wrap; margin-top: 44px; color: var(--text-muted); font-size: 14px; animation: fadeUp .7s var(--ease) .32s both; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--success); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ============ Étapes ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 60px 0; }
.step { padding: 28px; position: relative; overflow: hidden; }
.step:hover { transform: translateY(-4px); }
.step-num { font-family: var(--font-display); font-size: 52px; font-weight: 700; color: color-mix(in srgb, var(--primary) 30%, transparent); line-height: 1; }
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { color: var(--text-muted); font-size: 15px; }
.step p + p { margin-top: 6px; color: var(--text-faint); font-size: 14px; }

/* ============ Formulaire plan ============ */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-grid .field-wide { grid-column: 1 / -1; }
.plan-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.login-hint { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); font-size: 14px; margin-bottom: 20px; }

/* ============ Résultats ============ */
.result-wrap { animation: pageIn .6s var(--ease) both; }
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.budget-box { padding: 24px; margin-bottom: 24px; }
.budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.budget-item { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; }
.budget-item .b-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.budget-item .b-value { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 4px; }
.budget-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; }
.budget-total .b-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--primary); }
.demo-banner { font-size: 14px; color: var(--text); background: var(--surface-offset); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 22px; }
.days { display: grid; gap: 14px; }
.day-card { padding: 20px 22px; }
.day-card h4 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.day-card h4 .day-badge { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--primary-ink); background: var(--primary); border-radius: 999px; padding: 3px 11px; letter-spacing: .04em; }
.day-card ul { margin: 10px 0 0; padding: 0; list-style: none; }
.day-card li { padding: 7px 0 7px 26px; position: relative; color: var(--text); }
.day-card li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.gem-card { border-left: 4px solid var(--gold); }
.gem-card .gem-tip { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.gem-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 6px; }
.result-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ============ Voyages sauvegardés ============ */
.trips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.trip-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.trip-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.trip-card .trip-dest { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.trip-card .trip-meta { color: var(--text-muted); font-size: 14px; }
.trip-card .trip-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-state .big { font-size: 44px; margin-bottom: 12px; }

/* ============ Clés IA ============ */
.provider-list { display: grid; gap: 16px; }
.provider-card { padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; }
.provider-card .p-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.provider-card .p-note { color: var(--text-muted); font-size: 14px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; }
.badge-free { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.badge-paid { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.provider-card .p-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.key-input { flex: 1; min-width: 220px; padding: 11px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.booster-box { padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); margin: 24px 0; }
.booster-box h3 { font-size: 18px; margin-bottom: 8px; }
.privacy-note { display: flex; gap: 10px; align-items: center; color: var(--text-muted); font-size: 14px; margin-top: 20px; }
.privacy-note svg { color: var(--success); flex-shrink: 0; }
.howto { background: var(--surface-offset); border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 12px; font-size: 14px; color: var(--text-muted); display: none; }
.howto.open { display: block; animation: pageIn .35s var(--ease) both; }

/* ============ Tarifs ============ */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price-card { padding: 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.price-card.featured { border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.price-card .plan-name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 4px; flex-wrap: wrap; }
.price-now { font-family: var(--font-display); font-size: 46px; font-weight: 700; }
.price-was { font-size: 22px; color: var(--text-faint); text-decoration: line-through; }
.discount-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--danger), var(--gold)); color: #fff;
  font-weight: 800; font-size: 15px; border-radius: 999px; padding: 6px 15px;
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 50% { transform: scale(1.05); box-shadow: 0 0 0 12px transparent; } }
.promo-row { display: flex; gap: 10px; margin: 18px 0; }
.promo-row input { flex: 1; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-transform: uppercase; }
.promo-ok { color: var(--success); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.promo-ko { color: var(--danger); font-size: 14px; }
.price-desc { color: var(--text-muted); margin: 12px 0 22px; flex: 1; }
.pay-note { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 14px; }
.big-percent { font-family: var(--font-display); font-size: 120px; font-weight: 800; line-height: 1; text-align: center; color: var(--danger); margin: 6px 0; }

/* ============ Paramètres / Admin ============ */
.settings-grid { display: grid; gap: 18px; max-width: 640px; }
.setting-card { padding: 24px; }
.setting-card h3 { font-size: 18px; margin-bottom: 14px; }
.theme-options { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; transition: var(--t); }
.theme-chip:hover { transform: translateY(-2px); }
.theme-chip.active { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.admin-lock { max-width: 460px; padding: 30px; text-align: center; }
.admin-lock .big { font-size: 40px; margin-bottom: 10px; }
.admin-panel { display: grid; gap: 18px; }

/* ============ Modales & toast ============ */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(8,10,24,.66); backdrop-filter: blur(6px); animation: pageIn .25s var(--ease) both; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(440px, 100%); padding: 32px; max-height: calc(100dvh - 36px); overflow-y: auto; animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.modal-title { font-size: 26px; margin-bottom: 20px; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 26px; color: var(--text-faint); line-height: 1; }
.modal-close:hover { color: var(--text); }
.auth-modal .password-wrap { position: relative; display: block; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-faint); padding: 6px; border-radius: 8px; }
.pw-toggle:hover { color: var(--text); }
.form-error { color: var(--danger); font-size: 14px; margin-bottom: 12px; }
.secure-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; font-size: 12.5px; color: var(--text-faint); line-height: 1.5; }
.secure-note svg { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 12px 24px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); animation: pop .3s var(--ease) both; max-width: min(90vw, 480px); text-align: center;
}

/* ============ Chargement ============ */
.loading { text-align: center; padding: 60px 20px; }
.loading .plane { font-size: 40px; animation: fly 2.2s var(--ease) infinite; }
@keyframes fly { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(6deg); } }
.loading p { color: var(--text-muted); margin-top: 14px; }

/* ============ Sélecteur de pays ============ */
.country-picker { position: relative; display: block; }
.country-picker input { width: 100%; padding: 13px 46px 13px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: var(--t); }
.country-picker input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.cp-arrow {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px; color: var(--text-muted);
  font-size: 14px; transition: var(--t); z-index: 2;
}
.cp-arrow:hover { color: var(--text); background: var(--surface-offset); }
.cp-arrow::after { content: ''; }
.country-picker.open .cp-arrow { transform: translateY(-50%) rotate(180deg); color: var(--primary); }
.cp-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; display: none;
}
.country-picker.open .cp-menu { display: block; animation: pop .22s var(--ease) both; }
.cp-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 10px; font-size: 15px; transition: var(--t);
}
.cp-item:hover, .cp-item.sel { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.cp-flag { font-size: 20px; line-height: 1; }
.cp-name { flex: 1; }
.cp-en { color: var(--text-faint); font-size: 13px; }
.cp-empty { padding: 14px; color: var(--text-muted); font-size: 14px; text-align: center; }

/* ============ Animation de génération ============ */
.gen-overlay {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(10px);
  animation: pageIn .3s var(--ease) both; padding: 20px;
}
.gen-overlay.gen-out { animation: genOut .38s var(--ease) both; }
@keyframes genOut { to { opacity: 0; } }
.gen-box {
  width: min(430px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 32px; text-align: center;
}
.gen-orbit { position: relative; width: 130px; height: 130px; margin: 0 auto 18px; }
.gen-globe { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; animation: globePulse 3s var(--ease) infinite; filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--primary) 40%, transparent)); }
@keyframes globePulse { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.06) rotate(8deg); } }
.gen-orbit-ring {
  position: absolute; inset: 0; border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%; animation: spin 7s linear infinite;
}
.gen-plane { position: absolute; top: -14px; left: 50%; font-size: 24px; transform: translateX(-50%) rotate(90deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-title { font-size: 22px; margin-bottom: 18px; }
.gen-steps { list-style: none; text-align: left; margin: 0 auto 20px; padding: 0; max-width: 320px; }
.gen-step {
  display: flex; align-items: center; gap: 12px; padding: 7px 4px;
  font-size: 15px; color: var(--text-faint); transition: color .4s var(--ease);
}
.gen-step .gs-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--text-faint); transition: var(--t); position: relative;
}
.gen-step .gs-dot::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--primary-ink); opacity: 0; }
.gen-step.done { color: var(--text); }
.gen-step.done .gs-dot { background: var(--primary); border-color: var(--primary); }
.gen-step.done .gs-dot::after { opacity: 1; animation: pop .3s var(--ease) both; }
.gen-step:not(.done) .gs-dot { animation: gsPulse 1.4s var(--ease) infinite; }
@keyframes gsPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.gen-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gen-bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: genBar 3.6s var(--ease) forwards; }
@keyframes genBar { 0% { width: 4%; } 80% { width: 88%; } 100% { width: 100%; } }

/* ============ Confettis ============ */
.confetti-wrap { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
.confetti-wrap i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: .95;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }

/* ============ Cartes de trajet cliquables ============ */
.tr-seg-list { display: grid; gap: 8px; margin: 12px 0 4px; }
.tr-seg {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  transition: var(--t); cursor: pointer; position: relative; overflow: hidden;
}
.tr-seg:hover {
  transform: translateY(-2px); border-style: solid;
  border-color: var(--accent); box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, var(--surface-2));
}
.tr-seg .tr-ico { font-size: 22px; flex-shrink: 0; }
.tr-seg .tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-seg .tr-route { font-weight: 600; font-size: 15px; }
.tr-seg .tr-meta { font-size: 13px; color: var(--text-muted); }
.tr-seg .tr-price { font-weight: 700; color: var(--accent); font-size: 14px; white-space: nowrap; }
.tr-seg .tr-chev { color: var(--text-faint); font-size: 18px; transition: var(--t); }
.tr-seg:hover .tr-chev { transform: translateX(3px); color: var(--accent); }

/* Fenêtre détails trajet */
.tr-box { width: min(520px, 100%); max-height: min(86vh, 720px); overflow-y: auto; }
.tr-head { display: flex; gap: 16px; align-items: flex-start; padding-right: 30px; }
.tr-big-ico { font-size: 42px; line-height: 1; }
.tr-type { font-size: 20px; margin-bottom: 14px; }
.tr-journey { display: flex; align-items: stretch; gap: 10px; }
.tr-end { display: flex; flex-direction: column; gap: 1px; min-width: 90px; }
.tr-end .tr-time { font-weight: 700; color: var(--accent); font-size: 15px; }
.tr-end .tr-city { font-weight: 600; }
.tr-end .tr-lbl { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.tr-line { flex: 1; position: relative; margin-top: 26px; min-width: 40px; }
.tr-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.tr-dot { position: absolute; left: 0; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: trDot 2.4s var(--ease) infinite; }
@keyframes trDot { 0% { left: 0%; } 55% { left: 100%; } 100% { left: 0%; } }
.tr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 6px; }
.tr-fact { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tr-fact span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.tr-fact strong { font-size: 15px; }
.tr-section { margin-top: 16px; }
.tr-section h4 { font-size: 15px; margin-bottom: 7px; }
.tr-section p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; }
.tr-book { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.tr-book-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }

/* Note liens pré-remplis */
.prefilled-note {
  color: var(--accent); font-size: 14.5px; margin: -6px 0 12px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-sm); padding: 10px 16px;
}

/* ============ Effets : reveal + ripple ============ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1 !important; transform: none !important; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.btn, .theme-chip, .cp-item, .tr-seg, .nav a { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 35%, transparent) 0%, transparent 65%); transform: scale(0); animation: rippleAnim .6s var(--ease) forwards; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(1); opacity: 0; } }

/* Bouton son topbar */
.icon-btn { padding: 7px 11px; font-size: 16px; line-height: 1; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-offset) 60%, transparent); }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 30px clamp(16px, 4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-footer { display: flex; align-items: center; gap: 14px; }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--primary); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .plan-grid, .pricing-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; flex: 0 0 100%; mask-image: linear-gradient(to right, #000 92%, transparent); }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .tr-journey { flex-wrap: wrap; }
  .tr-facts { grid-template-columns: 1fr 1fr; }
  .tr-fact:last-child { grid-column: 1 / -1; }
  .cp-menu { max-height: 260px; }
}
@media (max-width: 480px) {
  .nav a { font-size: 12.5px; padding: 7px 11px; }
  .nav { mask-image: linear-gradient(to right, #000 84%, transparent); }
  .tr-seg { padding: 10px 10px; gap: 8px; }
  .tr-seg .tr-meta { font-size: 12px; }
  .gen-box { padding: 26px 20px; }
}
