/* ==========================================================
   TEEGETHER — feuille de styles du site
   Organisation : polices · variables · base · composants ·
   sections (dans l'ordre de la page) · écrans d'app · mouvement
   ========================================================== */

/* ---------- Polices auto-hébergées ----------
   BN Rigidly (police du logo) : grands titres uniquement (une seule graisse).
   ⚠ Licence web à acquérir avant le déploiement public.
   General Sans (Fontshare, licence libre pour le web) : tout le reste. */
@font-face { font-family: "BN Rigidly"; src: url("/assets/fonts/bn-rigidly.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  /* Couleurs de la charte */
  --sable: #F4EEE3;
  --sable-soutenu: #EAE0CF;
  --blanc-casse: #FFFCF7;
  --vert: #00B368;          /* accent, jamais en texte sur fond clair */
  --vert-profond: #0B7A4B;  /* textes verts et survols */
  --vert-encre: #0C2A1C;    /* texte posé sur le vert */
  --vert-pale: #E3EFE6;
  --gris-fonce: #2A2E33;
  --gris-moyen: #5E6267;
  --gris-clair: #D9D2C5;
  --brique: #B4532A;
  --brique-pale: #F6E3D8;

  /* Typographie */
  --police: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-titre: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-affiche: "BN Rigidly", "General Sans", Georgia, serif; /* grands titres, comme le logo */

  /* Espacements, rayons, ombres */
  --gouttiere: 20px;
  --largeur: 1200px;
  --section: clamp(80px, 11vw, 150px);
  --rayon: 24px;
  --rayon-petit: 14px;
  --ombre: 0 1px 0 rgba(42, 46, 51, .04), 0 24px 60px -28px rgba(70, 54, 26, .28);
  --ombre-forte: 0 2px 0 rgba(42, 46, 51, .05), 0 40px 80px -30px rgba(40, 32, 18, .42);
  --transition: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gouttiere: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0;
  background: var(--sable);
  color: var(--gris-fonce);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(2.05rem, 4.4vw, 3.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
sup { font-size: .6em; line-height: 0; }
a { color: var(--vert-profond); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gris-fonce); }
:focus-visible { outline: 3px solid var(--vert-profond); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.sprite { display: none; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .plein, .ico--plein { fill: currentColor; stroke: none; }
.ico--grand { width: 34px; height: 34px; stroke-width: 1.5; color: var(--vert-profond); }

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gris-fonce); color: var(--blanc-casse); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.lien-evitement:focus { top: 12px; color: var(--blanc-casse); }

.conteneur { width: 100%; max-width: calc(var(--largeur) + var(--gouttiere) * 2); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: var(--section) 0; position: relative; }
/* Rendu différé des sections hors écran : allège fortement le premier affichage sur mobile */
.section, .final, .pied { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
.surtitre { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-profond); margin-bottom: 18px; }
.video .surtitre, .bientot .surtitre, .final .surtitre { color: #096B42; }
.entete-section { max-width: 720px; margin-bottom: clamp(48px, 7vw, 80px); }
.entete-section h2 { margin-bottom: 22px; }
.entete-section p:not(.surtitre) { font-size: 1.15rem; color: var(--gris-moyen); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--transition), box-shadow .25s var(--transition), background-color .2s;
}
.bouton--principal { background: var(--vert); color: var(--vert-encre); box-shadow: 0 10px 24px -12px rgba(0, 120, 70, .7); }
.bouton--principal:hover { background: #00C472; color: var(--vert-encre); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 120, 70, .75); }
.bouton--petit { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.bouton .ico { transition: transform .25s var(--transition); }
.bouton:hover .ico { transform: translateX(3px); }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.lien-fleche:hover .ico { transform: translateX(3px); }
.lien-fleche .ico { transition: transform .25s var(--transition); }

/* ---------- Badges des stores ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.store { position: relative; display: inline-block; border-radius: 10px; transition: transform .25s var(--transition), opacity .2s; }
.store img { height: 54px; width: auto; }
.store[href]:hover { transform: translateY(-2px); }
.store__bientot { display: none; }
/* État « bientôt » : badges atténués, non cliquables */
.store.est-bientot { opacity: .55; filter: grayscale(.3); cursor: default; }
.store.est-bientot .store__bientot {
  display: block; position: absolute; top: -9px; right: -8px;
  background: var(--gris-fonce); color: var(--blanc-casse);
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
/* Mise en avant selon le téléphone détecté */
html[data-os="ios"] .store[data-store="android"],
html[data-os="android"] .store[data-store="ios"] { order: 2; transform: scale(.86); transform-origin: left center; opacity: .8; }
html[data-os="ios"] .store[data-store="android"].est-bientot,
html[data-os="android"] .store[data-store="ios"].est-bientot { opacity: .45; }
.stores__statut { margin: 12px 0 0; font-size: .9375rem; color: var(--gris-moyen); }
.stores__statut:empty { display: none; }

.qr { display: flex; align-items: center; gap: 16px; }
.qr img { width: 96px; height: 96px; border-radius: 12px; box-shadow: var(--ombre); }
.qr p { margin: 0; font-size: .875rem; color: var(--gris-moyen); max-width: 230px; line-height: 1.45; }
html:not([data-os="desktop"]) .qr { display: none; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.entete.est-defile { background: rgba(244, 238, 227, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(42, 46, 51, .08); }
.entete__barre { display: flex; align-items: center; gap: 24px; height: 72px; }
.entete__logo img { height: 30px; width: auto; }
.entete__nav { display: none; gap: 28px; margin-left: auto; }
.entete__nav a, .entete__club { color: var(--gris-fonce); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.entete__nav a:hover, .entete__club:hover { color: var(--vert-profond); }
.entete__club { display: none; color: var(--gris-moyen); }
.entete .bouton { margin-left: auto; }
@media (min-width: 1024px) {
  .entete__nav { display: flex; }
  .entete__club { display: inline; }
  .entete .bouton { margin-left: 0; }
}

/* ---------- 1. Héros ---------- */
.heros { position: relative; padding: 24px 0 56px; margin-top: -72px; padding-top: 112px; overflow: hidden; }
.heros__decor { position: absolute; inset: 0; z-index: -1; }
.heros__decor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244, 238, 227, .0) 0%, rgba(244, 238, 227, 0) 70%, var(--sable) 100%); }
.heros__paysage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; will-change: transform; }
.heros__grille { display: grid; gap: 48px; align-items: center; }
.heros__texte { position: relative; z-index: 2; }
.heros__texte h1 { margin-bottom: 24px; max-width: 13ch; }
.heros__chapeau { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--gris-fonce); }
.heros__garanties { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .9375rem; font-weight: 500; }
.heros__garanties li { display: inline-flex; align-items: center; gap: 6px; }
.heros__garanties .ico { color: var(--vert-profond); stroke-width: 2.4; }
.heros__visuel { position: relative; display: flex; justify-content: center; padding: 20px 0 10px; }
.heros__qr { margin-top: 40px; }
@media (max-width: 767px) {
  /* Sur mobile, le paysage passe derrière le téléphone : on éclaircit le haut pour la lisibilité */
  .heros__decor::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--sable) 0%, rgba(244, 238, 227, .92) 42%, rgba(244, 238, 227, .2) 70%, rgba(244, 238, 227, 0) 100%); }
  .heros__paysage { object-position: 72% 50%; }
}
@media (min-width: 768px) {
  .heros__decor::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(244, 238, 227, .95) 0%, rgba(244, 238, 227, .78) 34%, rgba(244, 238, 227, 0) 56%); }
}
@media (min-width: 1024px) {
  .heros { min-height: min(920px, 100vh); display: flex; flex-direction: column; justify-content: center; padding-bottom: 72px; }
  .heros__grille { grid-template-columns: 1.1fr .9fr; }
  .heros__qr { margin-top: 24px; }
}

/* Bulles flottantes autour du téléphone */
.bulle {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--blanc-casse); border-radius: 999px; padding: 10px 16px;
  font-size: .8125rem; font-weight: 500; box-shadow: var(--ombre-forte); white-space: nowrap;
}
.bulle strong { font-weight: 600; color: var(--vert-profond); }
.bulle .ico { color: var(--vert-profond); }
.bulle--1 { top: 0; left: 0; animation: flotte 6s ease-in-out infinite; }
.bulle--2 { bottom: 0; right: 0; animation: flotte 7s ease-in-out -2s infinite; }
@media (max-width: 1023px) { .heros__visuel { padding: 36px 0 30px; } }
@media (min-width: 1024px) { .bulle--1 { top: 5%; left: -6%; } .bulle--2 { right: -4%; bottom: 7%; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.point-direct { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); animation: pulse 1.8s infinite; flex: none; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); } 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }

/* ---------- 2. Le constat ---------- */
.constat { background: var(--sable); }
.constat__grille { display: grid; gap: 56px; align-items: center; }
.constat__texte h2 { margin-bottom: 24px; }
.constat__texte p:not(.surtitre) { font-size: 1.15rem; color: var(--gris-moyen); max-width: 52ch; }
@media (min-width: 1024px) { .constat__grille { grid-template-columns: 1fr 1fr; gap: 96px; } }

.discussion { background: #EFE8DC; border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; max-width: 460px; width: 100%; justify-self: center; border: 1px solid rgba(42, 46, 51, .06); }
.discussion__tete { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--blanc-casse); border-bottom: 1px solid rgba(42, 46, 51, .07); }
.discussion__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sable-soutenu); display: grid; place-items: center; font-weight: 600; font-size: .8125rem; color: var(--gris-moyen); }
.discussion__nom { margin: 0; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.discussion__sous { margin: 0; font-size: .8125rem; color: var(--gris-moyen); line-height: 1.3; }
.discussion__compteur { margin-left: auto; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #E5484D; color: #fff; font-size: .8125rem; font-weight: 600; display: grid; place-items: center; }
.discussion__fil { padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 380px; }
.message { align-self: flex-start; max-width: 82%; margin: 0; background: var(--blanc-casse); border-radius: 4px 16px 16px 16px; padding: 8px 12px; font-size: .9375rem; line-height: 1.4; box-shadow: 0 1px 0 rgba(42, 46, 51, .06); }
.message__auteur { display: block; font-size: .75rem; font-weight: 600; color: var(--vert-profond); margin-bottom: 2px; }
.message--fichier { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8125rem; }
.message--fichier .message__auteur { flex-basis: 100%; font-family: var(--police); }
.message--moi { align-self: flex-end; background: #D9F2E2; border-radius: 16px 4px 16px 16px; }

.bascule { margin-top: clamp(64px, 9vw, 120px); text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.bascule__titre { font-family: var(--police-titre); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 20px; text-wrap: balance; }
.bascule p:not(.bascule__titre) { font-size: 1.15rem; color: var(--gris-moyen); margin-bottom: 32px; }

/* Ligne d'appel en fin de section */
.cta-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(56px, 7vw, 88px); padding: 22px 22px 22px 28px; border-radius: var(--rayon); background: var(--blanc-casse); box-shadow: var(--ombre); }
.cta-ligne p { margin: 0; font-family: var(--police-titre); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -0.02em; }

/* ---------- 3. Vidéo ---------- */
.video { background: var(--sable-soutenu); }
.lecteur { position: relative; border-radius: calc(var(--rayon) + 4px); overflow: hidden; box-shadow: var(--ombre-forte); aspect-ratio: 16 / 9; background: #1E2A22; }
.lecteur__bouton { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.lecteur__bouton:focus-visible { outline: 3px solid var(--vert); outline-offset: -6px; border-radius: calc(var(--rayon) + 4px); }
.lecteur__apercu { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--transition); }
.lecteur__bouton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 24, 0) 40%, rgba(20, 30, 24, .55) 100%); }
.lecteur__bouton:hover .lecteur__apercu { transform: scale(1.03); }
.lecteur__lecture { position: absolute; left: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 2; width: clamp(56px, 7vw, 76px); height: clamp(56px, 7vw, 76px); border-radius: 50%; background: var(--vert); color: var(--vert-encre); display: grid; place-items: center; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); transition: transform .3s var(--transition); }
.lecteur__lecture .ico { width: 40%; height: 40%; margin-left: 6%; }
.lecteur__bouton:hover .lecteur__lecture { transform: scale(1.07); }
.lecteur__legende { position: absolute; left: calc(clamp(16px, 3vw, 28px) + clamp(56px, 7vw, 76px) + 16px); bottom: calc(clamp(16px, 3vw, 28px) + clamp(56px, 7vw, 76px) / 2 - .7em); z-index: 2; color: #fff; font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.15rem); }
.lecteur.est-indisponible .lecteur__bouton { cursor: default; }
.lecteur.est-indisponible .lecteur__lecture { opacity: .85; transform: none; }
.lecteur video { width: 100%; height: 100%; display: block; background: #000; }

/* ---------- 4. Saison ---------- */
.saison { background: var(--sable); }
.etapes { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(72px, 9vw, 120px); }
.etapes::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 7px; width: 2px; background: repeating-linear-gradient(180deg, var(--gris-clair) 0 8px, transparent 8px 16px); }
.etape { position: relative; display: grid; gap: 32px; padding-left: 40px; }
.etape::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--blanc-casse); border: 3px solid var(--vert); box-shadow: 0 0 0 6px var(--sable); }
.etape__jour { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--vert-profond); margin-bottom: 10px; }
.etape h3 { margin-bottom: 14px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; }
.etape__texte p:not(.etape__jour) { font-size: 1.125rem; color: var(--gris-moyen); max-width: 40ch; }
.etape .telephone { justify-self: start; }
@media (min-width: 900px) {
  .etapes::before { left: 50%; margin-left: -1px; }
  .etape { grid-template-columns: 1fr 1fr; gap: 96px; padding-left: 0; align-items: center; }
  .etape::before { left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
  .etape__texte { text-align: right; justify-self: end; }
  .etape__texte p:not(.etape__jour) { margin-left: auto; }
  .etape .telephone { justify-self: start; }
  .etape:nth-child(even) .etape__texte { order: 2; text-align: left; justify-self: start; }
  .etape:nth-child(even) .etape__texte p:not(.etape__jour) { margin-left: 0; }
  .etape:nth-child(even) .telephone { order: 1; justify-self: end; }
}

/* ---------- 5. Angles ---------- */
.angles { background: var(--blanc-casse); }
.onglets__liste { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--sable); margin-bottom: 40px; max-width: 100%; overflow-x: auto; }
.onglets__bouton { border: 0; background: transparent; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; color: var(--gris-moyen); transition: background-color .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.onglets__bouton:hover { color: var(--gris-fonce); }
.onglets__bouton[aria-selected="true"] { background: var(--blanc-casse); color: var(--gris-fonce); box-shadow: 0 2px 10px -4px rgba(42, 46, 51, .25); }
.onglets__panneau:focus-visible { outline-offset: 8px; }
.onglets__panneau:not([hidden]) { animation: fondu .45s var(--transition); }
@keyframes fondu { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.angle { display: grid; gap: 40px; align-items: center; }
.angle__accroche { font-family: var(--police-titre); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 28px; max-width: 22ch; }
.benefices { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.benefices li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; font-size: 1.0625rem; color: var(--gris-fonce); max-width: 52ch; }
.benefices .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--vert-pale); color: var(--vert-profond); }
@media (min-width: 900px) { .angle { grid-template-columns: 1.1fr .9fr; gap: 80px; } }

.carte-mini { background: var(--sable); border-radius: var(--rayon); padding: 28px; display: grid; gap: 12px; box-shadow: inset 0 0 0 1px rgba(42, 46, 51, .05); }
.carte-mini__titre { margin: 8px 0 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-moyen); }
.carte-mini__titre:first-child { margin-top: 0; }
.carte-mini__legende { margin: 0; font-size: .875rem; color: var(--gris-moyen); }
.carte-mini .app__rangee { background: var(--blanc-casse); border-radius: 12px; padding: 12px 14px; font-size: .9375rem; }
.carte-mini__club { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; margin-bottom: 4px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes span { background: var(--blanc-casse); border-radius: 999px; padding: 7px 14px; font-size: .875rem; font-weight: 500; }
.jauge { height: 12px; border-radius: 999px; background: var(--gris-clair); overflow: hidden; display: flex; }
.jauge i { width: 82%; background: var(--vert); border-radius: 999px; }
.tuiles.tuiles--mini { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tuiles--mini .tuile { background: var(--blanc-casse); padding: 14px 16px; border-radius: 14px; gap: 2px; }
.tuiles--mini .tuile b { font-size: 1.5rem; }
.tuiles--mini .tuile span { font-size: .8125rem; }

/* ---------- 6. Match en direct ---------- */
.direct { background: var(--sable); }
.direct__grille { display: grid; gap: 56px; align-items: center; }
.direct__texte h2 { margin-bottom: 22px; }
.direct__texte > p:not(.surtitre) { font-size: 1.15rem; color: var(--gris-moyen); max-width: 46ch; }
.lexique { margin: 28px 0; display: grid; gap: 12px; }
.lexique div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(42, 46, 51, .1); }
.lexique dt { font-weight: 600; color: var(--vert-profond); }
.lexique dd { margin: 0; color: var(--gris-moyen); font-size: .9375rem; }
.direct__adverse { font-size: 1rem !important; color: var(--gris-fonce) !important; font-weight: 500; }
@media (min-width: 1024px) { .direct__grille { grid-template-columns: .85fr 1.15fr; gap: 80px; } }

.tableau { background: var(--blanc-casse); border-radius: calc(var(--rayon) + 4px); box-shadow: var(--ombre-forte); padding: clamp(18px, 3vw, 32px); position: relative; }
.tableau__tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tableau__statut { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #C2353A; }
.tableau.est-termine .tableau__statut { color: var(--vert-profond); }
.tableau.est-termine .point-direct { background: var(--vert); animation: none; }
.tableau__rejouer { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gris-clair); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: .875rem; font-weight: 500; cursor: pointer; color: var(--gris-moyen); }
.tableau__rejouer:hover { color: var(--gris-fonce); border-color: var(--gris-moyen); }
.tableau__score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 18px 0 22px; border-bottom: 1px solid rgba(42, 46, 51, .08); margin-bottom: 8px; }
.tableau__equipe { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(.9rem, 1.6vw, 1.05rem); }
.tableau__equipe--droite { justify-content: flex-end; text-align: right; }
.tableau__points { margin: 0; font-family: var(--police-titre); font-weight: 600; font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -0.04em; line-height: 1; display: flex; gap: 12px; font-variant-numeric: tabular-nums; }
.tableau__tiret { color: var(--gris-clair); }
.duels { list-style: none; margin: 0; padding: 0; }
.duel { display: grid; grid-template-columns: 28px 1fr auto; grid-template-areas: "num noms etat" "num trous trous"; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(42, 46, 51, .07); }
.duel:last-child { border-bottom: 0; }
.duel__num { grid-area: num; width: 28px; height: 28px; border-radius: 50%; background: var(--sable); display: grid; place-items: center; font-size: .8125rem; font-weight: 600; color: var(--gris-moyen); align-self: start; }
.duel__noms { grid-area: noms; font-size: .9375rem; font-weight: 500; min-width: 0; }
.duel__noms i { font-style: normal; color: var(--gris-moyen); padding: 0 4px; }
.duel__etat { grid-area: etat; font-size: .8125rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--sable); color: var(--gris-fonce); white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.duel__etat--mene, .duel__etat--gagne { background: var(--vert-pale); color: var(--vert-profond); }
.duel__etat--gagne { background: var(--vert); color: var(--vert-encre); }
.duel__etat--perd { background: var(--brique-pale); color: #8E3E1C; }
.duel__etat--perdu { background: #E9D2C4; color: #7A3418; }
.duel__trous { grid-area: trous; display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; }
.duel__trous i { height: 6px; border-radius: 3px; background: rgba(42, 46, 51, .08); transition: background-color .3s; }
.duel__trous i.g { background: var(--vert); }
.duel__trous i.p { background: #D7A58A; }
.duel__trous i.e { background: #BFB8AB; }
.tableau__note { margin: 14px 0 0; font-size: .75rem; color: var(--gris-moyen); text-align: right; }
@media (max-width: 520px) {
  .duel { grid-template-areas: "num noms noms" "num etat etat" "num trous trous"; grid-template-columns: 28px 1fr auto; }
  .duel__etat { justify-self: start; }
  .tableau__equipe { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .85rem; white-space: nowrap; }
  .tableau__equipe--droite { align-items: flex-end; flex-direction: column-reverse; }
}

/* ---------- 7. Bientôt ---------- */
.bientot { background: var(--sable-soutenu); }
.bientot__grille { display: grid; gap: 20px; }
.carte-tee, .carte-bientot { position: relative; background: var(--blanc-casse); border-radius: var(--rayon); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--ombre); }
.carte-tee h3, .carte-bientot h3 { margin: 14px 0 12px; }
.carte-tee > p, .carte-bientot p { color: var(--gris-moyen); }
.carte-bientot .ico--grand { margin-top: 6px; }
.badge-bientot { display: inline-block; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-profond); background: var(--vert-pale); padding: 5px 10px; border-radius: 999px; }
.carte-bientot .badge-bientot { position: absolute; top: 26px; right: 26px; }
.statuts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; font-size: .875rem; font-weight: 600; position: relative; }
.statuts::before { content: ""; position: absolute; top: 21px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--vert-pale), var(--vert)); }
.statuts li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; line-height: 1.2; }
.statuts small { display: block; font-weight: 400; color: var(--gris-moyen); font-size: .75rem; margin-top: 2px; }
.statut { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--blanc-casse); box-shadow: 0 0 0 1px var(--gris-clair); }
.statut--1 { background: #F1F6EE; }
.statut--2 { background: #BFE6CC; }
.statut--3 { background: #5CCB92; }
.statut--4 { background: var(--vert-profond); }
.statut--5 { background: radial-gradient(circle at 35% 30%, #fff 0 18%, #2A2E33 19%); }
.carte-tee__note { font-size: .875rem; margin: 0; padding-top: 16px; border-top: 1px solid rgba(42, 46, 51, .08); }
.carte-tee__sous-titre { margin: 26px 0 12px !important; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-moyen) !important; }
.gains { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gains li { display: flex; align-items: center; gap: 10px; background: var(--sable); border-radius: 14px; padding: 12px 14px; font-size: .9375rem; font-weight: 500; }
.gains .ico { color: var(--vert-profond); }
@media (max-width: 520px) { .gains { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .statuts { font-size: .75rem; } .statut { width: 34px; height: 34px; } .statuts::before { top: 16px; } }
@media (min-width: 768px) { .bientot__grille { grid-template-columns: repeat(3, 1fr); } .carte-tee { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .bientot__grille { grid-template-columns: 1.6fr 1fr; } .carte-tee { grid-column: 1; grid-row: 1 / span 3; } }

/* ---------- 8. Histoire ---------- */
.histoire { background: var(--sable); }
.histoire__grille { display: grid; gap: 48px; align-items: center; }
.histoire__photo { margin: 0; }
.histoire__provisoire { aspect-ratio: 4 / 5; max-height: 70vh; border-radius: var(--rayon); background: linear-gradient(160deg, #DCEBDD, #B9D9C0 60%, #93C4A1); display: grid; place-items: center; box-shadow: var(--ombre); max-width: 440px; }
.histoire__provisoire span { font-family: var(--police-titre); font-weight: 600; font-size: 8rem; color: rgba(255, 252, 247, .8); letter-spacing: -0.05em; }
.histoire__photo img { border-radius: var(--rayon); box-shadow: var(--ombre); max-width: 440px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.histoire__photo figcaption { margin-top: 14px; font-size: .875rem; color: var(--gris-moyen); }
.histoire__texte h2 { margin-bottom: 26px; }
.histoire__texte p:not(.surtitre) { font-size: 1.15rem; color: var(--gris-moyen); max-width: 52ch; }
.histoire__texte .bouton { margin-top: 18px; }
.histoire__texte p.histoire__manifeste { font-family: var(--police-titre); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--gris-fonce); padding-left: 20px; border-left: 3px solid var(--vert); margin: 28px 0; max-width: 32ch; }
.histoire__provisoire span { font-size: 6rem; }
@media (max-width: 899px) { .histoire__provisoire, .histoire__photo img { max-width: 320px; aspect-ratio: 1; } }
@media (min-width: 900px) { .histoire__grille { grid-template-columns: .8fr 1.2fr; gap: 96px; } }

/* ---------- 9. FAQ ---------- */
.faq { background: var(--blanc-casse); }
.faq__grille { display: grid; gap: 24px; }
@media (min-width: 1024px) { .faq__grille { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } .faq .entete-section { position: sticky; top: 110px; } }
.question { border-bottom: 1px solid rgba(42, 46, 51, .1); }
.question summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.125rem; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sable) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2E33' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--transition), background-color .2s; }
.question[open] summary::after { transform: rotate(45deg); background-color: var(--vert-pale); }
.question summary:hover { color: var(--vert-profond); }
.question__reponse { padding: 0 48px 24px 0; color: var(--gris-moyen); }

/* ---------- 10. Appel final ---------- */
.final { padding: var(--section) 0 calc(var(--section) * .8); background: linear-gradient(180deg, var(--sable) 0%, var(--sable-soutenu) 100%); overflow: hidden; }
.final__grille { display: grid; gap: 40px; align-items: center; }
.final__texte h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.04em; margin-bottom: 22px; max-width: 14ch; }
.final__texte > p:not(.surtitre):not(.stores__statut) { font-size: 1.2rem; color: var(--gris-moyen); }
.qr--final { margin-top: 32px; }
.final__icone { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 28px; box-shadow: 0 18px 36px -16px rgba(0, 120, 70, .55); }
.qr--final img { width: 112px; height: 112px; }
.green { position: relative; max-width: 600px; width: 100%; justify-self: center; }
.green__svg { width: 100%; height: auto; }
@media (min-width: 1024px) { .final__grille { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--sable-soutenu); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(42, 46, 51, .08); }
.pied__grille { display: grid; gap: 20px; align-items: center; }
.pied__logo img { height: 26px; width: auto; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied__liens a { color: var(--gris-fonce); font-weight: 500; text-decoration: none; font-size: .9375rem; }
.pied__liens a:hover { color: var(--vert-profond); text-decoration: underline; }
.pied__mentions { margin: 0; font-size: .8125rem; color: var(--gris-moyen); }
@media (min-width: 900px) { .pied__grille { grid-template-columns: auto 1fr; } .pied__liens { justify-content: flex-end; } .pied__mentions { grid-column: 1 / -1; } }

/* ---------- Bouton flottant (mobile) ---------- */
.flottant {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: var(--gris-fonce); color: var(--blanc-casse);
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .45);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .45s var(--transition), opacity .3s;
}
.flottant img { width: 28px; height: 28px; border-radius: 8px; }
.flottant:hover, .flottant:focus-visible { color: var(--blanc-casse); }
.flottant.est-visible { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 1024px) { .flottant { display: none; } }

/* ==========================================================
   ÉCRANS D'APP RECONSTITUÉS (téléphone)
   Tailles en unités de conteneur : l'écran s'adapte au téléphone
   ========================================================== */
.telephone {
  --largeur-tel: clamp(250px, 72vw, 300px);
  width: var(--largeur-tel); aspect-ratio: 9 / 18.2;
  border-radius: calc(var(--largeur-tel) * .15);
  padding: calc(var(--largeur-tel) * .035);
  background: linear-gradient(145deg, #3A3F45, #1B1E22 40%, #2A2E33);
  box-shadow: var(--ombre-forte), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  position: relative; flex: none;
  container-type: inline-size;
}
.telephone::before { content: ""; position: absolute; top: calc(var(--largeur-tel) * .06); left: 50%; width: 30%; height: calc(var(--largeur-tel) * .075); transform: translateX(-50%); background: #0E1012; border-radius: 999px; z-index: 3; }
.telephone--heros { --largeur-tel: clamp(260px, 74vw, 330px); transform: rotate(-3deg); }
@media (min-width: 1024px) { .telephone--heros { --largeur-tel: 340px; } }

.app {
  width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--largeur-tel) * .12);
  background: #F7F4EE;
  font-size: 5.25cqw; line-height: 1.32;
  padding: 15.5cqw 5.5cqw 5.5cqw;
  display: flex; flex-direction: column; gap: 3.4cqw;
  position: relative; color: var(--gris-fonce);
}
.app p { margin: 0; }
.app .ico { width: 1.1em; height: 1.1em; }
.app__statut { position: absolute; top: 4.6cqw; left: 9cqw; right: 9cqw; display: flex; justify-content: space-between; font-size: 3.6cqw; font-weight: 600; }
.app__statut-icones { width: 14cqw; height: 2.6cqw; margin-top: 1cqw; background: linear-gradient(90deg, var(--gris-fonce) 0 30%, transparent 30% 38%, var(--gris-fonce) 38% 60%, transparent 60% 68%, var(--gris-fonce) 68% 100%); border-radius: 2px; opacity: .85; }
.app__tete { display: flex; align-items: center; gap: 3cqw; }
.app__cloche { margin-left: auto; color: var(--gris-moyen); }
.app__club { width: 9.5cqw; height: 9.5cqw; min-width: 30px; min-height: 30px; border-radius: 50%; background: var(--vert-profond); color: #fff; display: inline-grid; place-items: center; font-weight: 600; font-size: .85em; flex: none; }
.tableau .app__club, .carte-mini .app__club { width: 34px; height: 34px; font-size: .9rem; }
.app__club--bleu { background: #1F4E79; }
.app__club--brique { background: var(--brique); }
.app__petit { font-size: .78em; color: var(--gris-moyen); font-weight: 500; }
.app__petit--marge { margin-top: 1cqw !important; }
.app__titre { font-weight: 600; font-size: 1.25em; letter-spacing: -0.02em; line-height: 1.2; }
.app__titre--page { font-size: 1.55em; letter-spacing: -0.03em; margin-top: 1cqw !important; }
.app__grand { font-weight: 600; font-size: 1.2em; letter-spacing: -0.02em; line-height: 1.2; margin: .6cqw 0 1.6cqw !important; }
.app__grand small { font-size: .55em; color: var(--vert-profond); font-weight: 600; margin-left: 1.5cqw; letter-spacing: 0; }
.app__ligne { display: flex; align-items: center; gap: 2cqw; font-size: .88em; margin-top: 1cqw !important; }
.app__ligne .ico { color: var(--vert-profond); }
.app__carte { background: #fff; border-radius: 4.5cqw; padding: 4.2cqw; box-shadow: 0 1px 2px rgba(42, 46, 51, .06); }
.app__carte--verte { background: var(--vert); color: var(--vert-encre); }
.app__carte--verte .app__ligne .ico { color: var(--vert-encre); }
.app__etiquette { display: inline-flex; align-items: center; gap: 1.5cqw; font-size: .75em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .35); padding: 1cqw 2.6cqw; border-radius: 999px; }
.app__question { font-weight: 600; font-size: .9em; margin-top: 3.4cqw !important; }
.app__choix { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; margin-top: 2.4cqw; }
.app__choix--3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.choix { display: flex; align-items: center; justify-content: center; gap: 1.4cqw; padding: 2.6cqw 0; border-radius: 3cqw; background: #EFEBE3; font-weight: 600; font-size: .9em; }
.choix--oui { background: var(--vert); color: var(--vert-encre); }
.app__liste { display: grid; gap: 1.6cqw; }
.app__rangee { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; font-size: .82em; }
.app__liste .app__rangee { background: #fff; border-radius: 3.4cqw; padding: 2.8cqw 3.2cqw; }
.app__carte .app__rangee { padding: 1.6cqw 0; border-top: 1px solid rgba(42, 46, 51, .06); }
.app__carte .app__rangee:first-of-type { border-top: 0; }
.app__rangee b { display: inline-grid; place-items: center; width: 5.5cqw; height: 5.5cqw; border-radius: 50%; background: var(--vert-pale); color: var(--vert-profond); font-size: .8em; margin-right: 1.6cqw; }
.app__rangee span:first-child { display: inline-flex; align-items: center; gap: 1.6cqw; }
.app__discret { color: var(--gris-moyen); font-size: .82em; }
.app__rangee--fort { font-weight: 600; font-size: .9em; padding-top: 1cqw !important; }
.app__centre { text-align: center; margin-top: auto !important; }
.pastille { font-size: .82em; font-weight: 600; padding: .8cqw 2.4cqw; border-radius: 999px; background: #EFEBE3; white-space: nowrap; }
.pastille--oui { background: var(--vert-pale); color: var(--vert-profond); }
.pastille--non { background: var(--brique-pale); color: #8E3E1C; }
.pastille--attente { background: #FBEFD5; color: #7A5A12; }
.app__onglets { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: .7em; color: var(--gris-moyen); background: #fff; border-radius: 4cqw; padding: 2.6cqw 0; }
.app__onglets .actif { color: var(--vert-profond); font-weight: 600; }
.app__bouton { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 2cqw; background: var(--gris-fonce); color: #fff; border-radius: 999px; padding: 3cqw; font-weight: 600; font-size: .9em; }
.app__cloche { width: 1.3em !important; height: 1.3em !important; }

.grille-dispo { display: grid; grid-template-columns: 1fr repeat(4, 8.5cqw); gap: 1.6cqw 1.6cqw; align-items: center; background: #fff; border-radius: 4.5cqw; padding: 3.6cqw; font-size: .8em; }
.grille-dispo__col { text-align: center; font-weight: 600; color: var(--gris-moyen); font-size: .9em; }
.grille-dispo__nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grille-dispo i { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; justify-self: center; display: block; }
.grille-dispo i.o { background: var(--vert); }
.grille-dispo i.n { background: #E3B9A3; }
.grille-dispo i.q { background: #fff; box-shadow: inset 0 0 0 1.5px #D9B65E; }

.app__entete-trou { text-align: center; margin-top: 2cqw; }
.app__entete-trou .app__titre { font-size: 2em; letter-spacing: -0.04em; margin: 1cqw 0 !important; }
.compteur { display: flex; align-items: center; justify-content: center; gap: 7cqw; background: #fff; border-radius: 5cqw; padding: 4cqw; }
.compteur span { display: grid; place-items: center; }
.compteur__moins, .compteur__plus { width: 11cqw; height: 11cqw; border-radius: 50%; background: #EFEBE3; font-size: 1.4em; font-weight: 500; }
.compteur__valeur { font-size: 3.2em; font-weight: 600; letter-spacing: -0.04em; line-height: 1; min-width: 14cqw; }
.app__bascules { background: #fff; border-radius: 4cqw; padding: .8cqw 3.6cqw; }
.app__bascules .app__rangee { padding: 2.2cqw 0; }
.app__bascules .app__rangee + .app__rangee { border-top: 1px solid rgba(42, 46, 51, .06); }
.interrupteur { width: 10cqw; height: 6cqw; border-radius: 999px; background: #DAD4C8; position: relative; flex: none; }
.interrupteur::after { content: ""; position: absolute; top: .7cqw; left: .7cqw; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.interrupteur--on { background: var(--vert); }
.interrupteur--on::after { left: auto; right: .7cqw; }
.trous { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1.2cqw; }
.trous .t { aspect-ratio: 1; display: grid; place-items: center; border-radius: 1.8cqw; background: #fff; font-size: .78em; font-weight: 600; }
.trous .b { background: var(--vert-pale); color: var(--vert-profond); }
.trous .g { background: var(--brique-pale); color: #8E3E1C; }
.trous .actif { background: var(--gris-fonce); color: #fff; }
.app__resultat { text-align: center; font-size: .9em; margin-top: auto !important; }
.app__resultat b { color: var(--vert-profond); }

.app__direct { display: flex; align-items: center; gap: 2cqw; font-size: .8em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C2353A; margin-top: 1cqw !important; }
.app__score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #fff; border-radius: 4.5cqw; padding: 4cqw 3cqw; font-size: .78em; font-weight: 600; text-align: center; }
.app__score b { font-size: 2.6em; letter-spacing: -0.04em; padding: 0 2cqw; line-height: 1; }

.app__victoire { background: var(--vert); color: var(--vert-encre); border-radius: 5cqw; padding: 5cqw 4cqw; text-align: center; display: grid; justify-items: center; gap: 1cqw; background-image: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .5) 0 1.2%, transparent 1.4%), radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .5) 0 1%, transparent 1.2%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .45) 0 1.3%, transparent 1.5%), radial-gradient(circle at 25% 75%, rgba(255, 252, 247, .5) 0 .9%, transparent 1.1%); }
.app__victoire .ico { width: 2em; height: 2em; }
.app__victoire .app__petit { color: var(--vert-encre); }
.app__victoire-score { font-size: 2.4em; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.app__chat { display: flex; flex-direction: column; gap: 2cqw; }
.bulle-app { align-self: flex-start; background: #fff; padding: 2.2cqw 3.2cqw; border-radius: 1.2cqw 4cqw 4cqw 4cqw; font-size: .85em; max-width: 85%; }
.bulle-app span { display: block; font-size: .78em; font-weight: 600; color: var(--vert-profond); }
.bulle-app--moi { align-self: flex-end; background: #D9F2E2; border-radius: 4cqw 1.2cqw 4cqw 4cqw; }
.app__saisie { margin-top: auto; display: flex; align-items: center; gap: 2cqw; background: #fff; border-radius: 999px; padding: 3cqw 4cqw; color: var(--gris-moyen); font-size: .85em; }

.courbe { width: 100%; height: 12cqw; margin-top: 1cqw; overflow: visible; }
.courbe path { fill: none; stroke: var(--vert); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2cqw; }
.tuile { background: #fff; border-radius: 3.8cqw; padding: 3cqw 3.4cqw; display: grid; gap: .4cqw; }
.tuile span { font-size: .72em; color: var(--gris-moyen); font-weight: 500; }
.tuile b { font-size: 1.35em; font-weight: 600; letter-spacing: -0.03em; }
.repartition { display: flex; height: 3cqw; border-radius: 999px; overflow: hidden; gap: .6cqw; }
.repartition .r1 { flex: 1; background: var(--vert-profond); }
.repartition .r2 { flex: 7; background: var(--vert); }
.repartition .r3 { flex: 7; background: #BFE6CC; }
.repartition .r4 { flex: 3; background: #E3B9A3; }
.app__rangee--partage { margin-top: auto; background: #fff; border-radius: 3.4cqw; padding: 2.6cqw 3.2cqw; }
.app__rangee--partage .ico { color: var(--vert-profond); }

/* ==========================================================
   MOUVEMENT — apparitions au défilement, balle sur le green
   ========================================================== */
.js .apparition { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--transition), transform .9s var(--transition); }
.js .apparition.est-visible { opacity: 1; transform: none; }
.js .etape.apparition .telephone { transform: translateY(40px) rotate(1.5deg); transition: transform 1.1s var(--transition) .1s; }
.js .etape.apparition.est-visible .telephone { transform: none; }
.js .discussion.est-visible .message { animation: message-entre .5s var(--transition) both; }
.js .discussion .message { opacity: 0; }
.js .discussion.est-visible .message:nth-child(1) { animation-delay: .2s; }
.js .discussion.est-visible .message:nth-child(2) { animation-delay: .7s; }
.js .discussion.est-visible .message:nth-child(3) { animation-delay: 1.2s; }
.js .discussion.est-visible .message:nth-child(4) { animation-delay: 1.7s; }
.js .discussion.est-visible .message:nth-child(5) { animation-delay: 2.3s; }
.js .discussion.est-visible .message:nth-child(6) { animation-delay: 2.9s; }
.js .discussion.est-visible .message:nth-child(7) { animation-delay: 3.5s; }
@keyframes message-entre { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.js .discussion.est-visible .discussion__compteur { animation: rebond .5s var(--transition) 3.6s both; }
@keyframes rebond { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .apparition, .js .etape.apparition .telephone, .js .discussion .message { opacity: 1; transform: none; }
  .bulle--1, .bulle--2 { animation: none; }
}

/* ---------- Pages simples (/app, 404) ---------- */
.page-simple { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 80% at 80% 0%, #FBE7CF 0%, var(--sable) 55%); }
.page-simple__contenu { max-width: 640px; padding-top: 48px; padding-bottom: 48px; }
.page-simple__logo { display: inline-block; margin-bottom: 48px; }
.page-simple__logo img { height: 32px; width: auto; }
.page-simple h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); margin-bottom: 20px; }
.page-simple p { font-size: 1.15rem; color: var(--gris-moyen); }
.page-simple .bouton { margin-top: 16px; }
.page-simple__retour { margin-top: 32px; font-size: 1rem !important; }

/* ---------- Pages de texte (confidentialité) ---------- */
.texte-legal { max-width: 760px; }
.texte-legal h1 { margin-bottom: 24px; }
.texte-legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.texte-legal p { color: var(--gris-moyen); }
/* Si le bloc points TEE est masqué (attribut hidden), les trois cartes restantes s'alignent */
@media (min-width: 768px) { .bientot__grille:has(> .carte-tee[hidden]) { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Grands titres en BN Rigidly (police du logo) ----------
   Une seule graisse : pas de gras simulé, approche neutre. Les sous-titres (h3) restent en General Sans. */
h1, h2, .bascule__titre, .tableau__points {
  font-family: var(--police-affiche);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.7rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.2rem); }
.final__texte h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: 0; }
.page-simple h1 { font-size: clamp(2.3rem, 6.6vw, 3.6rem); }
