/* Paxy — page d'accueil (refonte lumineuse) et page du manifeste.
   Couleurs, rayons et typographie repris de style.css / tokens.js de l'app. */

@font-face { font-family: "DM Sans"; src: url("./fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("./fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("./fonts/DMSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("./fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("./fonts/DMSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --brand: #5f3cef;
  --brand-strong: #5416ff;
  --brand-deep: #4e2bcd;
  --brand-light: #8a5dfa;
  --ink: #05081c;          /* encre de l'app (on-white) */
  --text: #2c3050;
  --muted: #6b7194;
  --line: #e4e6f4;
  --bg: #f8f8fd;
  --radius-2xl: 16px;
  --radius-4xl: 24px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: radial-gradient(70% 40% at 85% 0%, #e8e4ff 0%, transparent 70%), radial-gradient(60% 35% at 5% 55%, #f1e9ff 0%, transparent 70%), var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* Langue : le script en tête de page pose data-lang avant l'affichage. */
html[data-lang="fr"] [lang="en"], html[data-lang="en"] [lang="fr"] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248,248,253,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { height: 34px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.lang-switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.lang-btn { background: none; border: 0; padding: 10px 2px; min-height: 44px; color: var(--ink); opacity: .55; cursor: pointer; }
.lang-btn[aria-pressed="true"] { opacity: 1; }
.lang-sep { color: var(--ink); opacity: .6; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: 17px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .lang-btn:focus-visible, .link-underline:focus-visible, .foot a:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; }
.btn-outline { background: #fff; color: var(--brand-strong); border-color: var(--brand-strong); min-height: 44px; padding: 0 22px; font-size: 16px; }
.btn-outline:hover { background: #edeeff; }
.btn-primary { background: linear-gradient(180deg, #7a55f5, #4e2bcd); color: #fff; box-shadow: 0 10px 24px rgba(95,60,239,.30); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(95,60,239,.40); }
.btn-lg { min-height: 64px; padding: 0 44px; font-size: 22px; border-radius: 14px; }
.btn-white { background: #fff; color: var(--brand-strong); font-weight: 700; min-height: 56px; padding: 0 28px; font-size: 20px; box-shadow: 0 8px 22px rgba(5,8,28,.30); }
.link-underline { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; font-weight: 600; font-size: 20px; }

/* ---------- Bandeau de Noël ---------- */
.noel { margin-top: 24px; position: relative; overflow: hidden; border-radius: var(--radius-4xl); color: #fff;
  background:
    radial-gradient(55% 80% at 90% 15%, rgba(255,200,130,.38), transparent 70%),
    radial-gradient(50% 80% at 10% 105%, rgba(138,93,250,.45), transparent 70%),
    linear-gradient(125deg, #14103f 0%, #392986 52%, #5f3cef 100%);
  box-shadow: 0 18px 40px rgba(57,41,134,.28);
}
.noel-inner { position: relative; z-index: 2; padding: 26px 36px 22px; max-width: 640px; }
.noel-eyebrow { margin: 0 0 8px; font-weight: 600; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.noel h1 { margin: 0; font-weight: 700; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -.02em; }
.noel-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 32px; margin-top: 20px; }
.noel-primary { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.noel-actions .link-underline { min-height: 56px; display: inline-flex; align-items: center; } /* aligné sur le bouton */
.noel-note { margin: 0; font-size: 16px; opacity: .88; text-align: center; }
.noel-decor { position: absolute; z-index: 1; top: 0; right: 0; width: min(46%, 440px); height: 100%; pointer-events: none; }
.noel-decor svg { width: 100%; height: 100%; }

/* Neige : flocons créés par home.js, animation 100 % CSS. */
.snow { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.flake { position: absolute; top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.7); opacity: 0; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate3d(0,0,0); opacity: 0; }
  10% { opacity: var(--o, .8); }
  90% { opacity: var(--o, .8); }
  100% { transform: translate3d(var(--drift, 20px), var(--h, 420px), 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .snow { display: none; } }

/* ---------- Voyageurs ---------- */
.travelers { padding: 72px 0 56px; }
.travelers .wrap { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 56px; row-gap: 0; align-items: center; }
.travelers h2 { margin: 0 0 36px; max-width: 14em; color: var(--ink); font-weight: 800; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border-radius: 20px; padding: 16px 10px 14px; text-align: center; box-shadow: 0 6px 24px rgba(57,41,134,.10), 0 1px 3px rgba(5,8,28,.06); }
.card img { width: 100%; height: auto; max-width: 116px; aspect-ratio: 1; margin: 0 auto 8px; border-radius: 50%; object-fit: cover; }
.card b { display: block; color: var(--ink); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card .btn { min-height: 44px; width: 100%; max-width: 128px; padding: 0 8px; font-size: 15px; border-radius: 8px; box-shadow: none; }
.card .btn:disabled { cursor: default; pointer-events: none; }
/* Mention discrète, collée sous les cartes (pas de grand vide autour). */
.fictive { grid-column: 2; margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--ink); opacity: .55; }

/* ---------- Voyagez comme vous êtes ---------- */
.spirit { border-top: 1px solid var(--line); margin: 0 auto; max-width: 1112px; text-align: center; padding: 48px 24px 56px; }
.spirit h2 { margin: 0 0 8px; font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(90deg, #5416ff, #a35cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spirit p { margin: 0; font-size: 22px; }
.spirit .link-underline { display: inline-block; margin-top: 14px; color: var(--brand-strong); min-height: 44px; padding-top: 6px; }
.spirit h3 { margin: 26px 0 6px; color: var(--ink); font-size: 26px; font-weight: 700; }
.spirit .where { font-size: 19px; color: var(--text); }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--line); max-width: 1112px; margin: 0 auto; padding: 8px 24px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.foot .brand img { height: 28px; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; font-size: 14px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a:hover { color: var(--brand-strong); }
.foot .social { display: inline-flex; gap: 2px; padding-left: 16px; border-left: 2px solid var(--brand-strong); }
.foot .social a { width: 44px; justify-content: center; color: var(--brand-strong); }
.foot .social svg { width: 24px; height: 24px; }

/* ---------- Fenêtre de téléchargement ---------- */
dialog.dl { border: 0; padding: 0; border-radius: 24px; width: min(520px, calc(100vw - 32px)); color: var(--text); box-shadow: 0 30px 80px rgba(5,8,28,.40); }
dialog.dl::backdrop { background: rgba(5,8,28,.55); backdrop-filter: blur(3px); }
.dl-body { padding: 36px 32px 30px; text-align: center; position: relative; }
.dl h2 { margin: 0 0 6px; color: var(--ink); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.dl p { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.dl-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; }
.dl-close:hover { background: #edeeff; }
.dl-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl-store { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 16px; }
.dl-store img { width: 132px; height: 132px; }
.dl-store .btn { min-height: 44px; font-size: 15px; padding: 0 16px; width: 100%; }

/* ---------- Manifeste ---------- */
.manifesto { max-width: 680px; margin: 0 auto; padding: 56px 24px 72px; }
.manifesto .back { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-strong); font-weight: 600; }
.manifesto header { text-align: center; margin: 24px 0 44px; }
.manifesto header img { width: 56px; height: 56px; margin: 0 auto 18px; }
.manifesto h1 { margin: 0; color: var(--ink); font-weight: 800; font-size: clamp(32px, 6vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.manifesto p { margin: 0 0 28px; font-size: 20px; line-height: 1.6; color: var(--text); }
.manifesto p.em { color: var(--brand-strong); font-weight: 600; }
.manifesto.legal h2 { margin: 36px 0 8px; color: var(--ink); font-size: 22px; font-weight: 700; }
.manifesto.legal p { font-size: 17px; margin-bottom: 14px; }
.manifesto.legal a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.manifesto p.last { color: var(--ink); font-weight: 700; margin-top: 8px; }

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
  .travelers .wrap { grid-template-columns: 1fr; gap: 36px; }
    .fictive { grid-column: 1; margin-top: -26px; }
  .noel-decor { width: 42%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 64px; }
    .header-actions { gap: 14px; }
  .btn-outline { padding: 0 14px; font-size: 14px; min-height: 40px; }
  .lang-switch { gap: 8px; font-size: 14px; }

  .noel { margin-top: 16px; border-radius: 20px; }
  .noel-inner { padding: 18px 22px 16px; }
  .noel-eyebrow { font-size: 17px; margin-bottom: 4px; }
  .noel h1 { font-size: 36px; max-width: 5.6em; }
  .noel-actions { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; margin-top: 16px; }
  .noel-primary { align-items: stretch; gap: 8px; }
  .noel-actions .link-underline { justify-content: center; min-height: 44px; }
  .noel-actions .btn-white { width: 100%; font-size: 19px; min-height: 52px; }
  .link-underline { font-size: 18px; display: inline-flex; justify-content: center; min-height: 44px; align-items: center; }
  .noel-note { font-size: 15px; }
  .noel-decor { width: 46%; height: 58%; opacity: .95; }

  .travelers { padding: 40px 0 36px; }
  .travelers h2 { font-size: 30px; margin-bottom: 28px; max-width: none; }
    .travelers .btn-lg { width: 100%; min-height: 56px; font-size: 20px; padding: 0 16px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card img { max-width: 100px; }
  .card b { font-size: 18px; }

  .spirit { padding: 36px 16px 44px; }
  .spirit p { font-size: 19px; }
  .spirit h3 { font-size: 24px; }
  .foot { padding: 6px 16px 10px; }
  .foot nav { gap: 0 16px; width: 100%; }
  .foot .social { padding-left: 0; border-left: 0; margin-left: auto; }
  .manifesto { padding: 32px 20px 56px; }
  .manifesto p { font-size: 18px; }
  .dl-body { padding: 32px 18px 22px; }
  .dl-store img { width: 112px; height: 112px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
