/* Une prairie la nuit : le pissenlit en volume au centre, les graines qui partent avec le vent, un vrai globe qui tourne. */
:root {
  --nuit: #0b1618;
  --nuit-2: #132427;
  --brume: #e3eae6;
  --brume-douce: #9fb3ad;
  --or: #e9c46a;
  --or-vif: #f4d58d;
  --ligne: rgba(227, 234, 230, 0.14);
  --panneau: rgba(15, 28, 30, 0.9);
  --display: "Gloock", "Georgia", serif;
  --corps: "Karla", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html, body { height: 100%; }
/* Pas de flash au toucher sur téléphone (Ernesto, 14/10/2026 : « quand tu
   tapotes sur l'écran, ça clignote ») : ni surlignage, ni sélection. */
html { -webkit-tap-highlight-color: transparent; }
#ciel, .scene, .globe { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body {
  background: radial-gradient(ellipse at 50% 120%, #1b3133 0%, var(--nuit-2) 35%, var(--nuit) 75%);
  color: var(--brume);
  font-family: var(--corps);
  overflow: hidden;
}
#ciel { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.scene {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding-inline: 16px; padding-block: 26px 30px; pointer-events: none; box-sizing: border-box;
}
.tete { text-align: center; pointer-events: auto; }
.tete h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 52px); margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
.tete p { margin: 8px 0 0; color: var(--brume-douce); font-size: 15px; }
.tete .kana { margin-top: 2px; font-size: 13px; letter-spacing: 0.2em; opacity: 0.8; }
/* Le choix de la langue : discret, en haut à droite */
.langue { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 4; }
.langue select {
  appearance: none; -webkit-appearance: none; font: 500 12.5px var(--corps); color: var(--brume-douce);
  background: rgba(11, 22, 24, 0.55); border: 1px solid var(--ligne); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.langue select:focus-visible { outline: 2px solid var(--or-vif); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .langue { right: auto; left: 12px; }
.compteur { margin-top: 16px; display: inline-flex; flex-direction: column; align-items: center; }
.compteur b { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7vw, 56px); color: var(--or); font-variant-numeric: tabular-nums; line-height: 1; }
.compteur span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brume-douce); margin-top: 6px; }
.pied { text-align: center; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bouton {
  font-family: var(--corps); font-weight: 700; font-size: 17px; cursor: pointer;
  padding: 15px 30px; border-radius: 999px; border: 1px solid var(--or);
  background: var(--or); color: var(--nuit);
  box-shadow: 0 0 40px rgba(233, 196, 106, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 0 56px rgba(233, 196, 106, 0.4); }
.bouton:focus-visible, .globe:focus-visible, .fermer:focus-visible { outline: 2px solid var(--or-vif); outline-offset: 3px; }
.bouton[disabled] { opacity: 0.5; cursor: default; transform: none; }
.pied small { color: var(--brume-douce); font-size: 12.5px; }

/* Le petit globe qui tourne, en bas à droite */
.globe {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 3;
  width: 72px; height: 72px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--ligne); background: var(--nuit); overflow: hidden;
  box-shadow: 0 0 0 6px rgba(233, 196, 106, 0.06), 0 8px 28px rgba(0, 0, 0, 0.5);
}
.globe canvas { width: 100%; height: 100%; display: block; }

/* Le vœu */
.voile { position: fixed; inset: 0; z-index: 5; background: rgba(5, 10, 11, 0.6); display: grid; place-items: center; padding-inline: 16px; overflow-y: auto; }
.fiche {
  width: min(100%, 410px); background: var(--panneau); border: 1px solid var(--ligne); border-radius: 18px;
  padding: 22px; box-sizing: border-box; display: grid; gap: 14px; margin-block: 16px;
}
.fiche h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0; }
.fiche p { margin: 0; color: var(--brume-douce); font-size: 14.5px; line-height: 1.5; }
.fiche label.champ { font-size: 13px; color: var(--brume-douce); display: grid; gap: 6px; }
.fiche textarea, .fiche input[type=email] {
  font-family: var(--corps); font-size: 15px; color: var(--brume); background: var(--nuit);
  border: 1px solid var(--ligne); border-radius: 12px; padding: 11px 12px;
}
.fiche textarea { resize: none; min-height: 64px; }
.combien { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0; }
.combien legend { font-size: 13px; color: var(--brume-douce); margin-bottom: 6px; }
.combien input { position: absolute; opacity: 0; pointer-events: none; }
.combien label { display: grid; place-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--ligne); cursor: pointer; }
.combien label b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.combien label span { font-size: 12.5px; color: var(--brume-douce); }
.combien input:checked + label { border-color: var(--or); background: rgba(233, 196, 106, 0.12); }
.combien input:checked + label b { color: var(--or); }
.combien input:focus-visible + label { outline: 2px solid var(--or-vif); outline-offset: 2px; }
.ligne-pays { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.ligne-pays select { font-family: var(--corps); font-size: 14px; color: var(--brume); background: var(--nuit); border: 1px solid var(--ligne); border-radius: 8px; padding: 7px 8px; max-width: 60%; }
.rappel { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--ligne); }
.rappel label.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.rappel label.case input { margin-top: 2px; accent-color: var(--or); width: 17px; height: 17px; }
.rappel small { color: var(--brume-douce); font-size: 12px; line-height: 1.45; }
.moyens { display: flex; gap: 6px; flex-wrap: wrap; }
.moyens span { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--ligne); color: var(--brume-douce); }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.secondaire { font-family: var(--corps); font-size: 15px; background: none; border: none; color: var(--brume-douce); cursor: pointer; padding: 12px 10px; }
.note-demo { font-size: 12px !important; border-top: 1px dashed var(--ligne); padding-top: 10px; }

/* Le panneau du monde */
.monde {
  position: fixed; z-index: 6; right: 0; top: 0; bottom: 0;
  /* Proportions d'or (14/10/2026) : la page principale est φ = 1,618 fois
     plus large que ce cadre. Le cadre prend donc 38,2 % de l'écran (au moins
     30 rem), la page 61,8 % ; marges et espaces en Fibonacci (13, 21, 34). */
  width: min(100%, max(30rem, 38.2vw));
  -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px);
  background: var(--panneau); border-left: 1px solid var(--ligne); box-sizing: border-box;
  padding: calc(21px + env(safe-area-inset-top, 0px)) 21px calc(21px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 13px; overflow-y: auto; overflow-x: hidden;
}
.monde-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.monde-tete h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; }
.fermer { background: none; border: 1px solid var(--ligne); color: var(--brume); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 18px; flex-shrink: 0; }
.grand-globe { position: relative; width: min(100%, 61.8vh); aspect-ratio: 1; justify-self: center; cursor: grab; touch-action: none; }

.grand-globe:active { cursor: grabbing; }
.grand-globe canvas { width: 100%; height: 100%; display: block; }
.infobulle { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: var(--nuit); border: 1px solid var(--ligne); border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; pointer-events: none; }
.aide-globe { text-align: center; font-size: 12px; color: var(--brume-douce); margin: 0; }
.legende { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--brume-douce); }
.legende i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2b4144, #8a8f6a, var(--or), #f7e3a8); }
.classement { list-style: none; margin: 0; padding: 0; display: grid; }
.classement li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--ligne); font-size: 15px; }
.classement li .rang { color: var(--brume-douce); font-variant-numeric: tabular-nums; text-align: right; }
.classement li .nb { color: var(--or); font-weight: 700; font-variant-numeric: tabular-nums; }
.classement li.moi { background: rgba(233, 196, 106, 0.08); }
.exemple { font-size: 12px; color: var(--brume-douce); margin: 0; }
@media (max-width: 560px) { .pied small { max-width: 210px; } }
@media (prefers-reduced-motion: reduce) { .bouton { transition: none; } }

/* ── Le globe et les cartes (14/10/2026) ───────────────────────────────── */
.globe { opacity: 0; transform: scale(0.85); transition: opacity 0.8s ease, transform 0.8s ease; }
.globe.pret { opacity: 1; transform: none; }
[dir="rtl"] .globe { right: auto; left: 16px; }
.monde .total { margin: 2px 0 0; color: var(--or); font-size: 15px; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.monde .vide { margin: 0; color: var(--brume-douce); font-size: 14px; line-height: 1.5; text-align: center; }
.monde h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 8px 0 0; }
.monde .nom-pays { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 4px 0 0; }
.retour { background: none; border: 1px solid var(--ligne); color: var(--brume); border-radius: 999px; padding: 8px 14px; font: 500 14px var(--corps); cursor: pointer; }
.retour:focus-visible { outline: 2px solid var(--or-vif); outline-offset: 2px; }
.zone-carte { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #0e1d20; border: 1px solid var(--ligne); touch-action: pan-y; }
.zone-carte canvas { width: 100%; height: 100%; display: block; }
.classement li[role="button"] { cursor: pointer; }
.classement li[role="button"]:hover, .classement li[role="button"]:focus-visible { background: rgba(233, 196, 106, 0.06); outline: none; }
.classement li .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vueMonde, #vuePays { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
#vueMonde[hidden], #vuePays[hidden] { display: none; }

/* ── Le vœu (14/10/2026) ─────────────────────────────────────────────────── */
/* La phrase en or, comme le logo ; tanpopo reste blanc (14/10/2026). */
.tete #accroche { color: var(--or); font-size: 16px; }
.tete .sous { color: var(--or); opacity: 0.8; font-size: 13.5px; margin-top: 4px; }
.message { margin: 13px auto 0; max-width: 34ch; color: var(--or) !important; font-size: 16px !important; line-height: 1.45; }
.pied .liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 13px; margin-top: 2px; }
.pied .liens a, .pied .liens button { font: 400 11.5px var(--corps); color: var(--brume-douce); opacity: 0.75; background: none; border: 0; padding: 3px 0; cursor: pointer; text-decoration: none; }
.pied .liens a:hover, .pied .liens button:hover { opacity: 1; text-decoration: underline; }
.pied .liens #fond { color: var(--or); opacity: 0.9; }
.apres { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.secondaire-or { font: 600 14px var(--corps); color: var(--or); background: rgba(233, 196, 106, 0.08); border: 1px solid rgba(233, 196, 106, 0.45); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.fiche .lieu { display: grid; gap: 8px; position: relative; }
.fiche .etiquette { font-size: 14px; }
.fiche .champ { display: grid; gap: 5px; font-size: 13px; color: var(--brume-douce); }
.fiche select, .fiche input[type=text] { font: 15px var(--corps); color: var(--brume); background: var(--nuit); border: 1px solid var(--ligne); border-radius: 12px; padding: 11px 12px; width: 100%; box-sizing: border-box; }
.fiche small { color: var(--brume-douce); font-size: 12px; line-height: 1.45; }
.villes { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--nuit); display: grid; max-height: 220px; overflow-y: auto; }
.villes button { width: 100%; text-align: start; font: 14px var(--corps); color: var(--brume); background: none; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.villes button:hover, .villes button:focus-visible { background: rgba(233, 196, 106, 0.12); outline: none; }
.fiche .case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; color: var(--brume); }
.fiche .case input { margin-top: 2px; accent-color: var(--or); width: 17px; height: 17px; flex-shrink: 0; }
.fiche .accord { font-size: 13px; color: var(--brume-douce); }
.fiche .erreur { color: #f2a7a0 !important; font-size: 14px !important; }
.fiche .petit { font-size: 12px !important; text-align: center; }
.fiche .petit a { color: var(--brume-douce); }
.voile { z-index: 7; }

/* Le cadre du globe garde tout ce qui n'est pas le prix (14/10/2026). */
.monde .infos { display: grid; gap: 13px; justify-items: center; text-align: center; padding: 21px 0 8px; border-top: 1px solid var(--ligne); margin-top: 8px; }
.monde .infos p { margin: 0; color: var(--brume-douce); font-size: 14px; }
/* Les liens légaux : en petit, tout en bas du cadre (14/10/2026). */
.monde .liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 13px; margin-top: 34px; opacity: 0.6; }
.monde .liens a { color: var(--brume-douce); font-size: 11px; text-decoration: none; }
.monde .liens a:hover { text-decoration: underline; opacity: 1; }
.tete .apres { margin-top: 13px; pointer-events: auto; }
