/* Police hébergée sur le site (licence SIL OFL, voir fonts/OFL.txt) : aucun appel à Google. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f4ee;
  --bg-2: #efe9df;
  --surface: #ffffff;
  --ink: #14232a;
  --muted: #5b6a70;
  --line: #e3dccf;
  --brand: #0b5d50;
  --brand-2: #138a74;
  --brand-ink: #ffffff;
  --accent: #ef7a45;
  --accent-ink: #ffffff;
  --accent-soft: #fdebe0;
  --good: #11845b;
  --good-soft: #def4ea;
  --sky-1: #d9f0f3;
  --sky-2: #a8d8de;
  --land: #f6efe2;
  --error: #b42318;
  --error-soft: #fdecea;
  --shadow: 0 1px 2px rgba(20, 35, 42, .06), 0 10px 30px -12px rgba(20, 35, 42, .18);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1719;
    --bg-2: #142023;
    --surface: #18252a;
    --ink: #edf3f3;
    --muted: #9db0b4;
    --line: #2a3b40;
    --brand: #2ea98f;
    --brand-2: #46c3a8;
    --brand-ink: #06221c;
    --accent: #f48a58;
    --accent-ink: #2a1206;
    --accent-soft: #3a2519;
    --good: #5fd3a0;
    --good-soft: #173328;
    --sky-1: #1d3b44;
    --sky-2: #12282e;
    --land: #2a3d3b;
    --error: #ff8a80;
    --error-soft: #3a1d1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Halo coloré derrière le haut de page */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 85% 10%, color-mix(in srgb, var(--sky-2) 55%, transparent), transparent 70%),
    radial-gradient(520px 320px at 5% 0%, color-mix(in srgb, var(--accent-soft) 90%, transparent), transparent 70%);
}

a { color: var(--brand); }
h1, h2, h3 { letter-spacing: -0.025em; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 56px; }

/* --- En-tête --- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top-in { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; }
.logo { width: 30px; height: 30px; }
.logo rect { fill: var(--brand); }
.logo path { fill: #ffb38a; }
.nav { display: flex; align-items: center; gap: 14px; }
.lang { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.lang:hover { color: var(--ink); }

/* --- Boutons --- */
.cta, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); padding: 14px 24px;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.cta:hover, button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.cta:active, button:active { transform: translateY(0); }
.cta-sm { padding: 8px 16px; font-size: 14px; box-shadow: none; }
@media (max-width: 420px) { .cta-sm { display: none; } }

/* --- Accroche --- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding: 48px 0 24px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; margin: 0 0 18px; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%2311845b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.hero-art { position: relative; margin: 0; }
.globe { width: 100%; height: auto; display: block; overflow: visible; }
.globe .grid { fill: none; stroke: color-mix(in srgb, var(--brand) 18%, transparent); stroke-width: 1; }
.globe .land { fill: var(--land); opacity: .9; }
.globe .route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; animation: dash 1.6s linear infinite; }
.globe .pin { fill: var(--surface); stroke: var(--brand); stroke-width: 3; }
.globe .pin-to { stroke: var(--accent); }
.globe .pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.globe .plane { fill: var(--brand); }
.globe .plane-wrap { animation: float 4s ease-in-out infinite; }
.globe .cloud { fill: var(--surface); opacity: .92; filter: drop-shadow(0 6px 10px rgba(20, 35, 42, .08)); }
.globe .c1 { animation: drift 9s ease-in-out infinite; }
.globe .c2 { animation: drift 11s ease-in-out infinite reverse; }

.alert-card {
  position: absolute; left: -4%; bottom: 6%; width: min(260px, 64%);
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; color: var(--ink); text-decoration: none; overflow: hidden;
  animation: rise .9s var(--ease) .3s both;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .25s var(--ease);
}
a.alert-card:hover { box-shadow: 0 2px 4px rgba(20, 35, 42, .06), 0 18px 36px -16px rgba(20, 35, 42, .35); }
.ticker-body { display: grid; gap: 4px; transition: opacity .32s var(--ease), transform .45s var(--ease), filter .32s var(--ease); }
.ticker-body.leave { opacity: 0; transform: translateY(-10px); filter: blur(3px); }
.ticker-body.enter { opacity: 0; transform: translateY(10px); filter: blur(3px); transition: none; }
.ticker-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.alert-card.ticking .ticker-bar { animation: tick 4.5s linear infinite; }
.alert-card.paused .ticker-bar { animation-play-state: paused; }
.alert-head { display: flex; justify-content: space-between; align-items: center; }
.badge { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.alert-route { font-size: 15px; margin-top: 4px; }
.alert-price { font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.alert-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.alert-drop { color: var(--good); font-weight: 700; }
.hero-art figcaption { position: absolute; left: -4%; bottom: 0; font-size: 12px; color: var(--muted); }

@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes drift { 50% { transform: translateX(14px); } }
@keyframes tick { to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* --- Sections --- */
section { margin: 40px 0; }
h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; margin: 0 0 6px; font-weight: 800; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin: 0; }
.note, .muted { color: var(--muted); font-size: 14px; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- Onglets --- */
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { background: transparent; color: var(--muted); box-shadow: none; padding: 9px 16px; font-size: 14px; }
.tabs button:hover { transform: none; filter: none; color: var(--ink); box-shadow: none; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(20, 35, 42, .18); }

/* --- Cartes d'embarquement --- */
.passes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.passes[hidden] { display: none; }
.pass {
  --tone: var(--brand);
  position: relative; display: grid; grid-template-columns: 1fr auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: rise .5s var(--ease) both;
}
.pass:nth-child(2) { animation-delay: .05s; } .pass:nth-child(3) { animation-delay: .1s; }
.pass:nth-child(4) { animation-delay: .15s; } .pass:nth-child(5) { animation-delay: .2s; } .pass:nth-child(6) { animation-delay: .25s; }
.pass:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 35, 42, .06), 0 18px 36px -16px rgba(20, 35, 42, .28); }
.pass::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--tone); }
.r-afrique { --tone: #e0782f; }
.r-maghreb { --tone: #c2482f; }
.r-soleil { --tone: #13a3a8; }
.r-ameriques { --tone: #7a5bd1; }
.r-europe { --tone: #2f62c9; }
.r-asie { --tone: #c23b6e; }

.pass-main { padding: 16px 16px 16px 22px; min-width: 0; }
.pass-codes { display: flex; align-items: center; gap: 8px; }
.iata { font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.pass-plane { flex: 1; min-width: 40px; height: 16px; }
.pass-plane .dash { stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 5; }
.pass-plane .jet { fill: var(--tone); }
.pass-cities { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.pass-cities span:last-child { text-align: right; color: var(--ink); font-weight: 600; }
.pass-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }

.pass-stub {
  position: relative; display: grid; align-content: center; justify-items: end; gap: 2px;
  padding: 16px 18px; min-width: 120px; border-left: 2px dashed var(--line);
  background: color-mix(in srgb, var(--tone) 6%, var(--surface));
}
/* encoches de la carte d'embarquement */
.pass-stub::before, .pass-stub::after {
  content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.pass-stub::before { top: -11px; }
.pass-stub::after { bottom: -11px; }
.price { font-weight: 800; font-size: 24px; color: var(--ink); line-height: 1.1; white-space: nowrap; }
.rt { font-size: 12px; color: var(--muted); }
.pass-link { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--tone); text-decoration: none; white-space: nowrap; }
.pass-link::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.pass-link:hover { text-decoration: underline; }
.deals .note { margin-top: 14px; }

/* --- Comment ça marche --- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 17px; margin: 14px 0 6px; }
.features p { margin: 0; font-size: 15px; color: var(--muted); }

/* --- Formulaire --- */
.signup {
  position: relative; max-width: 820px; margin: 48px auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); overflow: hidden;
}
.signup::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); }
.signup-head { margin-bottom: 8px; }
form { display: grid; gap: 22px; margin-top: 16px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: start; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label.small { font-weight: 500; font-size: 14px; margin-top: 12px; }
input[type="email"], input[name="first_name"], input[name="other_destination"], .copy input {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input[type="email"]:focus, input[name="first_name"]:focus, input[name="other_destination"]:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
button:focus-visible, .cta:focus-visible, .chip input:focus-visible + span, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
legend .muted { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font-weight: 500; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); cursor: pointer; user-select: none; font-size: 15px;
  transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease);
}
.chip span:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.chip span:active { transform: scale(.97); }
.chip input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip input:checked + span::before { content: "✓"; font-weight: 800; font-size: 13px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
form button[type="submit"] { justify-self: start; padding: 15px 28px; font-size: 17px; }
@media (max-width: 560px) { form button[type="submit"] { justify-self: stretch; } }

.errors { background: var(--error-soft); color: var(--error); border-radius: 12px; padding: 12px 16px; margin: 14px 0 0; }
.errors ul { margin: 0; padding-left: 18px; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Page de remerciement --- */
.thanks { text-align: left; }
.thanks-art { width: 120px; height: auto; display: block; margin: 0 0 8px; }
.thanks-art .route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; animation: dash 1.6s linear infinite; }
.thanks-art .plane { fill: var(--brand); }
.thanks h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 10px; font-weight: 800; }
.reward { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.copy { display: flex; gap: 8px; margin: 8px 0 18px; }
.copy input { flex: 1; min-width: 0; }
.copy button { flex: none; background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.share .cta { box-shadow: none; color: #fff; }
.whatsapp { background: #1f9d55; }
.facebook { background: #2d5fc9; }

/* --- Pied de page --- */
.foot { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }
.foot-route { width: 100%; height: 40px; display: block; }
.foot-route path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.foot p { margin: 8px 0 0; }

/* --- Téléphone --- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 8px; }
  .hero-art { max-width: 420px; width: 100%; justify-self: center; }
  .alert-card { position: relative; left: auto; bottom: auto; width: min(300px, 90%); margin: -56px auto 0; }
  .hero-art figcaption { position: static; text-align: center; margin-top: 8px; }
}
@media (max-width: 420px) {
  .passes { grid-template-columns: 1fr; }
  .iata { font-size: 22px; }
  .pass-stub { min-width: 104px; padding: 14px; }
  .price { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Politique de confidentialité --- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 4px; font-weight: 800; }
.legal h2 { font-size: 19px; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.consent-privacy { display: block; margin-top: 4px; }
