/* PearlTCG — site d'annonce. Mêmes jetons que l'appli (css/pearl.css) : nacre claire, encre bleu nuit,
   écrans rayés à double cadre marine, perle irisée. Pixelify Sans seulement pour des mots, jamais pour des chiffres. */

:root {
  --fond: #F5F4F1;
  --surface: #FFFFFF;
  --surface-2: #F1F0EC;
  --texte: #151829;
  --texte-2: #4E5361;
  --texte-3: #6B7080;
  --ligne: rgba(17, 19, 28, .08);
  --ligne-forte: rgba(17, 19, 28, .16);
  --encre: #1D2347;
  --encre-survol: #2B3263;
  --sur-encre: #FFFFFF;
  --ds-marine: #2B3A67;
  --ds-ciel: #B9C9EE;
  --ds-fond: #F3F6FD;
  --ds-raie: #E9EFFB;
  --ds-doux: #5C6B97;
  --rouge: #D33A42;
  --vert: #11845A;
  --vert-pale: #E3F4EC;
  --nuit: #0D0F1E;
  --sur-nuit: #EDEFF9;
  --sur-nuit-2: #A9AFCB;
  --nacre: linear-gradient(135deg, #FFE3EE 0%, #E9E4FF 34%, #DBF5F0 66%, #FFF0D6 100%);
  --nacre-vive: conic-gradient(from 200deg, #FFB8D9, #C9BBFF, #9FE7DA, #FFE0A3, #FFB8D9);
  --bille: radial-gradient(circle at 38% 32%, #FFFFFF 0%, #FAF6FF 32%, #EAE4F6 68%, #D3CCE8 100%);
  --police: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Pixelify Sans", "Figtree", monospace;
  --ombre: 0 1px 2px rgba(17, 19, 28, .05), 0 10px 30px -14px rgba(17, 19, 28, .22);
  --ombre-haute: 0 2px 6px rgba(17, 19, 28, .05), 0 34px 70px -34px rgba(29, 35, 71, .38);
  --doux: cubic-bezier(.2, .8, .2, 1);
  --large: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; background: var(--fond); color: var(--texte);
  font-family: var(--police); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--encre); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--encre); color: var(--sur-encre); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.evitement:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Halos nacrés du fond ---------- */
.halos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.halos i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0; animation: halo 18s ease-in-out infinite; }
.halos i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: 30vh; background: #FFD6E7; }
.halos i:nth-child(2) { width: 40vmax; height: 40vmax; right: -10vmax; top: 60vh; background: #D9D2FF; animation-delay: -6s; }
.halos i:nth-child(3) { width: 34vmax; height: 34vmax; left: 30vw; top: 120vh; background: #CFF3EA; animation-delay: -11s; }
.halos i:nth-child(4) { width: 30vmax; height: 30vmax; right: 18vw; top: 10vh; background: #FFEBCC; animation-delay: -3s; }
@keyframes halo { 0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(.9); } 40%, 60% { opacity: .5; } 50% { transform: translate3d(3vmax, -2vmax, 0) scale(1.05); } }

/* ---------- Perle (logo) ---------- */
.perle {
  width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; display: inline-block;
  background: var(--bille); overflow: hidden; isolation: isolate;
  box-shadow: inset -3px -4px 7px rgba(43, 58, 103, .22), 0 2px 6px rgba(17, 19, 28, .15);
}
.perle::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; background: var(--nacre-vive); opacity: .45; filter: blur(5px);
  animation: perle-tourne 14s linear infinite;
  -webkit-clip-path: circle(31.25% at 50% 50%); clip-path: circle(31.25% at 50% 50%);
}
.perle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 33% 27%, rgba(255, 255, 255, .98) 0 7%, rgba(255, 255, 255, .5) 14%, transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .4), transparent 34%);
}
.perle--mini { width: 16px; height: 16px; box-shadow: inset -1.5px -2px 4px rgba(43, 58, 103, .25); }
@keyframes perle-tourne { to { transform: rotate(360deg); } }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); }
.logo-texte { font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.logo-texte b {
  font-family: var(--pixel); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--ds-marine);
  background: var(--ds-fond); border: 1.5px solid var(--ds-ciel); border-radius: 6px; padding: 2px 5px 1px; margin-left: 4px; vertical-align: 3px;
}

/* ---------- Intro : la perle se forme couche après couche, brille, puis rejoint le logo ---------- */
.nav, .heros-texte, .telephones { transition: opacity .7s var(--doux), transform .9s var(--doux); }
.telephones { transition-delay: .12s; }
.intro-a-jouer .nav, .intro-a-jouer .heros-texte, .intro-a-jouer .telephones { opacity: 0; }
.intro-a-jouer .heros-texte { transform: translateY(18px); }
.intro-a-jouer .telephones { transform: translateY(48px); }
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: var(--fond); transition: background-color .6s var(--doux);
}
.intro::before, .intro::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .85; transition: opacity .5s; }
.intro::before { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: #E6DEFF; }
.intro::after { width: 54vmax; height: 54vmax; right: -16vmax; bottom: -22vmax; background: #FFE0EC; }
.intro-scene { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.intro-perle { position: relative; width: 132px; height: 132px; transform-origin: 50% 50%; }
.intro-couche { position: absolute; inset: 0; border-radius: 50%; transform: scale(0); animation: couche .8s cubic-bezier(.3, 1.35, .5, 1) forwards; }
.intro-couche:nth-child(1) { background: radial-gradient(circle at 40% 35%, #FFFFFF, #FFD6E7 72%); opacity: .6; animation-delay: .05s; }
.intro-couche:nth-child(2) { inset: 9%; background: radial-gradient(circle at 40% 35%, #FFFFFF, #DCD3FF 72%); opacity: .65; animation-delay: .2s; }
.intro-couche:nth-child(3) { inset: 18%; background: radial-gradient(circle at 40% 35%, #FFFFFF, #CBF2EA 72%); opacity: .7; animation-delay: .35s; }
.intro-couche:nth-child(4) { inset: 27%; background: radial-gradient(circle at 40% 35%, #FFFFFF, #FFE9C4 72%); opacity: .75; animation-delay: .5s; }
@keyframes couche { to { transform: scale(1); } }
.intro-bille {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate; opacity: 0; transform: scale(.7);
  background: var(--bille); box-shadow: inset -12px -16px 28px rgba(43, 58, 103, .22), 0 30px 50px -26px rgba(29, 35, 71, .5);
  animation: bille .7s .8s var(--doux) forwards;
}
.intro-bille::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: var(--nacre-vive); opacity: .6; filter: blur(14px); animation: perle-tourne 2.6s linear infinite; clip-path: circle(31.25% at 50% 50%); }
.intro-bille::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 33% 27%, rgba(255, 255, 255, .98) 0 7%, rgba(255, 255, 255, .5) 14%, transparent 30%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .45), transparent 34%); }
@keyframes bille { to { opacity: 1; transform: scale(1); } }
.intro-reflet { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.intro-reflet::before { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%); transform: translateX(-120%); animation: reflet .9s 1.25s ease-in-out forwards; }
@keyframes reflet { to { transform: translateX(120%); } }
.intro-eclat { position: absolute; left: 20%; top: 14%; width: 36px; height: 36px; opacity: 0; animation: eclat .8s 1.45s ease-out forwards; }
.intro-eclat::before, .intro-eclat::after { content: ""; position: absolute; left: 50%; top: 50%; background: #FFFFFF; border-radius: 99px; box-shadow: 0 0 12px rgba(255, 255, 255, .95); }
.intro-eclat::before { width: 3px; height: 36px; margin: -18px 0 0 -1.5px; }
.intro-eclat::after { width: 36px; height: 3px; margin: -1.5px 0 0 -18px; }
@keyframes eclat { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 40% { opacity: 1; transform: scale(1) rotate(45deg); } 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
.intro-mot { display: flex; align-items: center; font-weight: 800; font-size: 36px; letter-spacing: -.03em; color: var(--texte); }
.intro-mot span { display: inline-block; opacity: 0; transform: translateY(12px); animation: lettre .5s var(--doux) forwards; animation-delay: calc(1.2s + var(--i) * 50ms); }
.intro-mot b { font-family: var(--pixel); font-weight: 600; font-size: 20px; letter-spacing: .06em; color: var(--ds-marine); background: var(--ds-fond); border: 2px solid var(--ds-ciel); border-radius: 8px; padding: 3px 7px 2px; margin-left: 10px; opacity: 0; transform: translateY(12px); animation: lettre .5s 1.5s var(--doux) forwards; }
@keyframes lettre { to { opacity: 1; transform: none; } }
.intro.envol { background-color: rgba(245, 244, 241, 0); pointer-events: none; }
.intro.envol::before, .intro.envol::after, .intro.envol .intro-mot { opacity: 0; transition: opacity .35s; }
.intro.envol .intro-perle { transition: transform .9s cubic-bezier(.65, 0, .25, 1), opacity .3s .8s; }
.intro.fini .intro-perle { opacity: 0; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 0; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, transform .2s var(--doux), box-shadow .2s;
}
.bouton:active { transform: scale(.97); }
.bouton--encre { background: var(--encre); color: var(--sur-encre); box-shadow: 0 6px 18px -8px rgba(29, 35, 71, .6); }
.bouton--encre:hover { background: var(--encre-survol); }
.bouton--clair { background: var(--surface); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--ligne-forte); }
.bouton--clair:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
.bouton--petit { min-height: 42px; padding: 0 18px; font-size: 15px; }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* ---------- Héros ---------- */
.heros {
  position: relative; isolation: isolate; overflow: hidden; margin: 12px; margin-bottom: 0; border-radius: 36px;
  background: linear-gradient(180deg, #FBFAFF 0%, #FCFBF9 60%, #FFFFFF 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--ombre-haute);
}
@media (min-width: 1300px) { .heros { max-width: 1340px; margin-inline: auto; margin-top: 14px; } }
.heros-halos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.heros-halos i { position: absolute; border-radius: 50%; filter: blur(70px); animation: halo-heros 16s ease-in-out infinite; }
.heros-halos i:nth-child(1) { width: 560px; height: 560px; left: -140px; top: -180px; background: #E3DBFF; }
.heros-halos i:nth-child(2) { width: 520px; height: 520px; right: -160px; top: -120px; background: #CDEFF0; animation-delay: -5s; animation-duration: 15s; }
.heros-halos i:nth-child(3) { width: 460px; height: 460px; left: 20%; top: 260px; background: #FFE0EC; animation-delay: -9s; animation-duration: 17s; }
.heros-halos i:nth-child(4) { width: 420px; height: 420px; right: 14%; top: 420px; background: #FFF0D2; animation-delay: -2s; animation-duration: 19s; }
@keyframes halo-heros { 0%, 100% { opacity: .55; transform: translate3d(0, 0, 0); } 50% { opacity: .95; transform: translate3d(40px, 24px, 0); } }

.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 2.6vw, 30px); }
.nav-liens { display: flex; gap: 6px; }
.nav-liens a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--texte-2); transition: background-color .2s, color .2s; }
.nav-liens a:hover { color: var(--texte); background: rgba(255, 255, 255, .7); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-menu { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); color: var(--texte); place-items: center; cursor: pointer; box-shadow: var(--ombre); }
.menu-mobile { position: absolute; left: 12px; right: 12px; top: calc(100% - 4px); display: grid; gap: 2px; padding: 8px; background: var(--surface); border-radius: 22px; box-shadow: var(--ombre-haute); }
.menu-mobile a { padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 17px; }
.menu-mobile a:hover { background: var(--surface-2); }
@media (max-width: 900px) { .nav-liens { display: none; } .nav-menu { display: grid; } }
@media (max-width: 420px) { .nav-actions .bouton { display: none; } }

.heros-texte { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; padding: clamp(18px, 4vw, 40px) var(--gouttiere) 0; }
.pastille {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px var(--ligne), 0 4px 14px -8px rgba(29, 35, 71, .35);
  font-weight: 600; font-size: 14.5px; color: var(--texte-2);
}
.heros h1 { margin-top: 22px; font-size: clamp(40px, 6.4vw, 82px); line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
.frappe { display: block; min-height: 1em; margin-top: .06em; font-family: var(--pixel); font-weight: 600; letter-spacing: -.01em; color: var(--ds-marine); }
.frappe-texte::after { content: "▼"; display: inline-block; margin-left: .12em; font-family: var(--police); font-size: .32em; vertical-align: .25em; color: var(--rouge); animation: rebond .9s steps(2) infinite; }
.frappe.tape:not(.fini) .frappe-texte::after { opacity: 0; }
.frappe.tape .frappe-texte { border-right: .06em solid var(--ds-marine); }
.frappe.tape:not(.fini) .frappe-texte { animation: curseur 1s steps(2) infinite; }
@keyframes curseur { 50% { border-right-color: transparent; } }
.frappe.fini .frappe-texte { border-right: 0; }
@keyframes rebond { 50% { transform: translateY(.12em); } }
.heros-chapo { margin-top: 20px; max-width: 44ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--texte-2); }
.heros-garanties { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--texte-3); }
.heros-garanties span { display: inline-flex; align-items: center; gap: 7px; }
.heros-garanties span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nacre-vive); box-shadow: inset -1px -1px 2px rgba(43, 58, 103, .3); }

/* ---------- Inscription ---------- */
.inscription { width: 100%; max-width: 520px; margin-top: 26px; display: grid; gap: 10px; justify-items: center; }
.inscription-champ {
  width: 100%; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ligne-forte), 0 10px 30px -18px rgba(29, 35, 71, .5); transition: box-shadow .2s;
}
.inscription-champ:focus-within { box-shadow: inset 0 0 0 2px var(--encre), 0 10px 30px -18px rgba(29, 35, 71, .5); }
.inscription input[type="email"] { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16.5px; color: var(--texte); padding: 0 8px 0 18px; outline: none; }
.inscription input::placeholder { color: var(--texte-3); }
.inscription .bouton { flex: none; }
.inscription-message { font-size: 15px; font-weight: 600; }
.inscription-message:empty { display: none; }
.inscription-message[data-etat="ok"] { color: var(--vert); }
.inscription-message[data-etat="erreur"] { color: var(--rouge); }
.inscription-message[data-etat="attente"] { color: var(--texte-3); }
.inscription-note { font-size: 13.5px; color: var(--texte-3); }
.inscription-note a { color: var(--texte-2); }
.inscription.inscrit .inscription-champ { box-shadow: inset 0 0 0 2px var(--vert); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) {
  .inscription-champ { flex-direction: column; border-radius: 22px; }
  .inscription input[type="email"] { min-height: 48px; padding: 0 14px; }
  .inscription .bouton { width: 100%; }
}

/* ---------- Téléphones : de vraies captures de l'appli dans un cadre (tout en em) ---------- */
.telephones { position: relative; height: 33em; margin-top: 3em; font-size: clamp(9.8px, 1.24vw, 16.5px); }
.tel {
  position: absolute; width: 19em; padding: .5em; border-radius: 3em;
  background: linear-gradient(145deg, #3A3F55, #14161F 40%, #2A2E40 70%, #0E1017);
  box-shadow: inset 0 0 0 .12em rgba(255, 255, 255, .14), 0 2.6em 4em -2em rgba(29, 35, 71, .55);
}
.tel-ecran { position: relative; display: block; overflow: hidden; border-radius: 2.55em; background: var(--barre, var(--fond)); }
.tel-statut { position: relative; display: flex; align-items: center; justify-content: space-between; height: 2.55em; padding: 0 1.75em 0 2.1em; background: var(--barre, var(--fond)); color: var(--barre-texte, var(--texte)); }
.tel-statut b { font-size: .78em; font-weight: 700; letter-spacing: .01em; }
.tel-statut::before { content: ""; position: absolute; left: 50%; top: .55em; width: 5.4em; height: 1.55em; margin-left: -2.7em; border-radius: 1em; background: #050608; }
.tel-statut i {
  display: block; width: 3.3em; height: .72em; opacity: .9;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / .2em 40% no-repeat,
    linear-gradient(currentColor, currentColor) .3em 100% / .2em 60% no-repeat,
    linear-gradient(currentColor, currentColor) .6em 100% / .2em 80% no-repeat,
    linear-gradient(currentColor, currentColor) .9em 100% / .2em 100% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 50% / 1.5em 100% no-repeat;
}
.tel-capture { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; background: var(--barre, var(--fond)); }
.tel--centre { left: 50%; top: 0; margin-left: -9.5em; z-index: 3; }
.tel--gauche, .tel--droite { left: 50%; top: 5em; margin-left: -9.5em; z-index: 2; }
.tel--gauche { transform: translateX(-17.5em) rotate(-6deg) scale(.9); }
.tel--droite { transform: translateX(17.5em) rotate(6deg) scale(.9); }
.legende-maquettes { max-width: var(--large); margin: 14px auto 0; padding: 0 var(--gouttiere); text-align: center; font-size: 13px; color: var(--texte-3); }

/* ---------- Sections ---------- */
main { display: block; }
.section { max-width: calc(var(--large) + 2 * var(--gouttiere)); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gouttiere) 0; }
.section-tete { display: grid; gap: 12px; max-width: 620px; margin-bottom: clamp(30px, 4vw, 46px); }
.section-tete h2 { font-size: clamp(34px, 4.8vw, 56px); letter-spacing: -.045em; }
.section-tete p { font-size: clamp(17px, 1.5vw, 19px); color: var(--texte-2); max-width: 52ch; }
.section-tete a { color: var(--encre); font-weight: 700; }
.section-tete--centre { margin-inline: auto; text-align: center; justify-items: center; }

/* Fonctions : une tuile, une phrase, un vrai bout d'écran */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tuile { position: relative; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 26px 26px 0; border-radius: 26px; background: var(--surface); box-shadow: var(--ombre); }
.tuile h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.15; margin-top: 8px; }
.tuile p { font-size: 15.5px; line-height: 1.5; color: var(--texte-2); }
.tuile-icone { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--nacre); color: var(--encre); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(43, 58, 103, .08); }
.tuile-icone .ic { width: 22px; height: 22px; }
.ecran { display: block; margin-top: 18px; aspect-ratio: 390 / 460; overflow: hidden; border-radius: 20px 20px 0 0; box-shadow: 0 0 0 1px var(--ligne), 0 -12px 30px -22px rgba(29, 35, 71, .5); }
.ecran img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y, 0%); transition: transform .6s var(--doux); }
.tuile:hover .ecran img { transform: scale(1.025); }
@media (max-width: 980px) { .tuiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tuiles { grid-template-columns: 1fr; } .ecran { aspect-ratio: 390 / 400; } }

/* Trois gestes : l'écran rayé à double cadre marine de l'appli */
.panneau-ds {
  position: relative; padding: clamp(40px, 6vw, 68px) clamp(18px, 4vw, 56px); border-radius: 32px;
  background: repeating-linear-gradient(180deg, var(--ds-fond) 0 3px, var(--ds-raie) 3px 6px);
  border: 3px solid var(--ds-marine); box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px var(--ds-ciel), var(--ombre-haute);
}
.panneau-ds .section-tete h2 { color: var(--ds-marine); }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.etape { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--ombre); }
.etape-tete { display: flex; align-items: center; justify-content: space-between; }
.etape-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ds-marine); color: #FFFFFF; font-weight: 800; font-size: 17px; }
.etape h3 { font-size: 21px; letter-spacing: -.025em; margin-top: 8px; }
.etape p { font-size: 15.5px; color: var(--texte-2); }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

/* Une appli à votre image : la galerie des thèmes et des décors */
.section--large { max-width: none; padding-inline: 0; }
.section--large > .section-tete { max-width: calc(var(--large) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.section--large > .section-tete > * { max-width: 620px; }
.galerie-piste {
  display: flex; gap: clamp(16px, 2vw, 26px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(var(--gouttiere), calc((100vw - var(--large)) / 2)) 28px; scroll-padding-inline: max(var(--gouttiere), calc((100vw - var(--large)) / 2));
}
.galerie-piste::-webkit-scrollbar { display: none; }
.galerie-piste:focus-visible { outline-offset: -4px; }
.galerie-el { flex: none; display: grid; justify-items: center; gap: 14px; font-size: clamp(10.6px, 1.12vw, 13.6px); scroll-snap-align: start; }
.tel--galerie { position: relative; display: block; transition: transform .4s var(--doux); }
.galerie-el:hover .tel--galerie { transform: translateY(-6px); }
.galerie-el figcaption { font-size: 15px; font-weight: 700; color: var(--texte-2); }
.galerie-commandes { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.galerie-fleche { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--encre); cursor: pointer; box-shadow: var(--ombre); transition: transform .2s var(--doux), opacity .2s; }
.galerie-fleche:hover { transform: scale(1.06); }
.galerie-fleche[disabled] { opacity: .35; cursor: default; transform: none; }
.galerie-fleche--suivante .ic { transform: rotate(180deg); }

/* Tarifs */
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 18px; }
.offre { position: relative; display: grid; align-content: start; gap: 6px; padding: 30px; border-radius: 28px; background: var(--surface); box-shadow: var(--ombre); }
.offre h3 { font-size: 20px; letter-spacing: -.02em; }
.offre-prix { margin-top: 6px; font-size: 54px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.offre-duree { font-size: 15px; color: var(--texte-3); font-weight: 600; }
.offre ul { display: grid; gap: 10px; margin: 20px 0 24px; }
.offre li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.offre li .ic { width: 20px; height: 20px; color: var(--vert); margin-top: 1px; }
.offre--abonnement { background: linear-gradient(180deg, #F6F2FF 0%, #FFFFFF 55%); box-shadow: inset 0 0 0 2px var(--encre), var(--ombre-haute); }
.offre-badge { position: absolute; right: 22px; top: 22px; padding: 5px 12px; border-radius: 999px; background: var(--nacre); color: var(--encre); font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
@media (max-width: 760px) { .offres { grid-template-columns: 1fr; } }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-liste { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); box-shadow: var(--ombre); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--texte-2); border-bottom: 2px solid var(--texte-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--doux); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 22px 20px; font-size: 16px; color: var(--texte-2); max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Appel final */
.appel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px;
  padding: clamp(32px, 5vw, 64px); border-radius: 32px; color: var(--ds-marine);
  background: repeating-linear-gradient(180deg, var(--ds-fond) 0 3px, var(--ds-raie) 3px 6px);
  border: 3px solid var(--ds-marine); box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px var(--ds-ciel), var(--ombre-haute);
}
.appel h2 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.045em; }
.appel-texte > p { margin-top: 12px; font-size: 18px; color: var(--texte-2); }
.appel .inscription { justify-items: start; }
.appel-plateformes { display: flex; gap: 8px; margin-top: 18px; }
.appel-plateformes span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1.5px var(--ds-ciel); font-weight: 700; font-size: 14px; color: var(--ds-marine); }
.appel-plateformes span::after { content: "bientôt"; font-family: var(--pixel); font-weight: 500; font-size: 12.5px; color: var(--ds-doux); }
.appel-perle { display: grid; place-items: center; min-height: 260px; }
.grande-perle {
  position: relative; width: clamp(180px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: var(--bille); box-shadow: inset -18px -24px 40px rgba(43, 58, 103, .22), 0 40px 60px -30px rgba(29, 35, 71, .55);
  animation: respire 6s ease-in-out infinite;
}
.grande-perle::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: var(--nacre-vive); opacity: .55; filter: blur(26px); animation: perle-tourne 16s linear infinite; -webkit-clip-path: circle(31.25% at 50% 50%); clip-path: circle(31.25% at 50% 50%); }
.grande-perle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 33% 27%, rgba(255, 255, 255, .98) 0 7%, rgba(255, 255, 255, .5) 14%, transparent 30%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .45), transparent 34%); }
@keyframes respire { 50% { transform: translateY(-8px) scale(1.02); } }
@media (max-width: 820px) { .appel { grid-template-columns: 1fr; } .appel-perle { order: -1; min-height: 0; } .grande-perle { width: 120px; } }

/* Boîte de dialogue façon console (page introuvable) */
.ds-dialogue {
  position: relative; padding: 14px 40px 16px 56px; border-radius: 14px; background: #FFFFFF;
  border: 3px solid var(--ds-marine); box-shadow: inset 0 0 0 2px #FFFFFF, inset 0 0 0 4px var(--ds-ciel);
  font-family: var(--pixel); font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--ds-marine);
}
.ds-dialogue::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: radial-gradient(circle at 33% 27%, #FFFFFF 0 9%, rgba(255, 255, 255, .5) 17%, transparent 34%), var(--nacre-vive);
  box-shadow: inset -3px -4px 7px rgba(43, 58, 103, .25), 0 0 0 2px #FFFFFF, 0 0 0 3.5px var(--ds-ciel);
}
.ds-dialogue::after { content: "▼"; position: absolute; right: 16px; bottom: 10px; font-family: var(--police); font-size: 12px; color: var(--rouge); animation: rebond .9s steps(2) infinite; }

/* ---------- Pied de page ---------- */
.pied { margin-top: clamp(80px, 10vw, 128px); background: var(--nuit); color: var(--sur-nuit-2); border-radius: 36px 36px 0 0; overflow: hidden; }
.pied-interieur { max-width: calc(var(--large) + 2 * var(--gouttiere)); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gouttiere) calc(28px + env(safe-area-inset-bottom, 0px)); }
.pied-marque {
  font-weight: 800; font-size: clamp(64px, 17vw, 236px); letter-spacing: -.06em; line-height: .9; margin-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(237, 239, 249, .16), rgba(237, 239, 249, .02)); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; user-select: none;
}
.pied-colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied h2 { font-size: 15px; letter-spacing: 0; color: var(--sur-nuit); margin-bottom: 14px; }
.pied ul { display: grid; gap: 10px; }
.pied a { color: var(--sur-nuit-2); text-decoration: none; font-size: 15px; }
.pied a:hover { color: var(--sur-nuit); text-decoration: underline; text-underline-offset: 3px; }
.pied-intro p { margin-top: 14px; font-size: 15px; max-width: 34ch; }
.logo--nuit .logo-texte { color: var(--sur-nuit); }
.logo--nuit .logo-texte b { background: #141A38; border-color: #3B4785; color: #C3D0F5; }
.pied-bas { display: grid; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.pied-avertissement { max-width: 90ch; color: #858BA8; }
@media (max-width: 860px) { .pied-colonnes { grid-template-columns: 1fr 1fr; } .pied-intro { grid-column: 1 / -1; } }
@media (max-width: 460px) { .pied-colonnes { grid-template-columns: 1fr; } }

/* ---------- Pages de texte (informations légales) ---------- */
.entete-texte { position: sticky; top: 0; z-index: 10; padding: 12px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.entete-texte-barre {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 10px 12px 10px 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--ombre);
}
.entete-texte-liens { display: flex; align-items: center; gap: 6px; }
.lien-retour { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--texte-2); }
.lien-retour:hover { background: var(--surface-2); color: var(--texte); }
@media (max-width: 420px) { .lien-retour { display: none; } }
.texte { max-width: calc(1100px + 2 * var(--gouttiere)); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gouttiere) 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.texte-tete { grid-column: 1 / -1; display: grid; gap: 12px; max-width: 760px; }
.texte-tete h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; }
.texte-maj { font-size: 15px; color: var(--texte-3); font-weight: 600; }
.texte-chapo { font-size: 18.5px; color: var(--texte-2); max-width: 60ch; }
.sommaire { position: sticky; top: 96px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--ligne); }
.sommaire p { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.sommaire ol { display: grid; gap: 2px; }
.sommaire a { display: block; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1.35; color: var(--texte-2); }
.sommaire a:hover { background: var(--surface); color: var(--texte); }
.texte-corps { max-width: 72ch; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--surface); box-shadow: var(--ombre); }
.texte-corps h2 { font-size: 24px; letter-spacing: -.03em; line-height: 1.2; margin: 40px 0 12px; scroll-margin-top: 100px; }
.texte-corps h2:first-child { margin-top: 0; }
.texte-corps h3 { font-size: 18px; letter-spacing: -.02em; margin: 24px 0 8px; }
.texte-corps p, .texte-corps li { font-size: 16.5px; line-height: 1.7; color: var(--texte-2); }
.texte-corps p + p { margin-top: 12px; }
.texte-corps ul { display: grid; gap: 6px; margin: 10px 0 12px; }
.texte-corps ul li { position: relative; padding-left: 20px; }
.texte-corps ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--nacre-vive); box-shadow: inset -1px -1px 2px rgba(43, 58, 103, .3); }
.texte-corps strong { color: var(--texte); font-weight: 700; }
.texte-corps a { color: var(--encre); font-weight: 600; text-underline-offset: 3px; }
.fiche-identite { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 14px 0; padding: 18px 20px; border-radius: 18px; background: repeating-linear-gradient(180deg, var(--ds-fond) 0 3px, var(--ds-raie) 3px 6px); box-shadow: inset 0 0 0 1.5px var(--ds-ciel); }
.fiche-identite dt { font-family: var(--pixel); font-weight: 600; font-size: 14px; color: var(--ds-doux); letter-spacing: .02em; padding-top: 2px; }
.fiche-identite dd { margin: 0; font-size: 16px; color: var(--texte); font-weight: 600; }
.tableau-donnees { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 15px; }
.tableau-donnees-boite { overflow-x: auto; }
.tableau-donnees th, .tableau-donnees td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ligne); color: var(--texte-2); line-height: 1.5; }
.tableau-donnees th { color: var(--texte); font-weight: 700; background: var(--surface-2); }
@media (max-width: 900px) {
  .texte { grid-template-columns: 1fr; }
  .sommaire { position: static; }
  .fiche-identite { grid-template-columns: 1fr; gap: 2px; }
  .fiche-identite dd { margin-bottom: 8px; }
}

/* Page introuvable */
.introuvable { max-width: 640px; margin: 0 auto; padding: clamp(60px, 10vw, 120px) var(--gouttiere) 0; display: grid; justify-items: center; gap: 18px; text-align: center; }
.introuvable h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -.045em; }
.introuvable .ds-dialogue { text-align: left; width: 100%; }
.perle--grande-404 { width: 76px; height: 76px; box-shadow: inset -7px -9px 16px rgba(43, 58, 103, .22), 0 18px 30px -16px rgba(29, 35, 71, .5); animation: respire 6s ease-in-out infinite; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .halos i { opacity: .4; }
}
