/* v0latilityy — site public : accueil, compte, pages légales. Sombre (OLED), verre, profondeur, accent menthe. */
:root {
  --bg: #020303;
  --bg-1: #060807;
  --bg-2: #0b0e0c;
  --ink: #f6f7f6;
  --ink-2: #b9bfbb;
  --ink-3: #808783;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --acc: #3df2a2;
  --acc-2: #c8ffe5;
  --acc-3: #129160;
  --acc-ink: #03150d;
  --glow: rgba(61, 242, 162, .3);
  --glass: linear-gradient(150deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035) 46%, rgba(255, 255, 255, .07));
  --r: 26px;
  --pad: clamp(18px, 5vw, 84px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --f: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1240px, 100% - var(--pad) * 2); margin: 0 auto; }

[hidden] { display: none !important; }

/* grain et lumière d'ambiance */
.grain { position: fixed; inset: -4%; z-index: 90; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- barre de navigation ---------- */
.snav { position: fixed; z-index: 80; top: 14px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.snav-pill { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 10, 9, .62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background .4s; }
.snav.scrolled .snav-pill { background: rgba(6, 7, 7, .82); }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 5px; border-radius: 999px; font-weight: 600; letter-spacing: -.03em; font-size: 15px; }
.brand svg { width: 28px; height: 28px; }
.brand .zr { font-style: normal; color: #9a9a9a; }
.snav-links { display: flex; gap: 2px; }
.snav-links a { padding: 8px 13px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: color .25s, background .25s; }
.snav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .25s, background .25s, transform .4s var(--spring); }
.icon-btn:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .08); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-expanded="true"] svg { transform: rotate(60deg); transition: transform .6s var(--spring); }
.snav-cta { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #050505; font-size: 13.5px; font-weight: 600; transition: transform .4s var(--spring), box-shadow .3s; white-space: nowrap; }
.snav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--glow); }

/* panneau des réglages (langue) */
.settings { position: fixed; z-index: 85; top: 72px; right: max(12px, calc(50% - 330px)); width: min(300px, calc(100vw - 24px)); padding: 16px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(10, 12, 11, .9); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); transform-origin: top right; animation: pop .45s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.settings h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg button { padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #050505; font-weight: 600; }
.settings p { margin: 10px 2px 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- boutons ---------- */
.btn { --bg-btn: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border-radius: 999px; border: 0; background: var(--bg-btn); color: #050505; font-size: 15px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .5s var(--spring), box-shadow .4s, opacity .3s; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(61, 242, 162, .55), transparent 70%); opacity: 0; transition: opacity .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px var(--glow); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn.acc { --bg-btn: var(--acc); color: var(--acc-ink); }
.btn.ghost { background: rgba(255, 255, 255, .05); color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost::after { background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 70%); }
.btn[disabled], .btn.busy { opacity: .45; pointer-events: none; }
.btn.busy::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.block { width: 100%; }

/* ---------- apparitions au défilement (avec profondeur) ---------- */
[data-rv] { opacity: 0; transform: translate3d(0, 44px, 0) scale(.975); transition: opacity 1s var(--ease), transform 1.25s var(--ease); transition-delay: calc(var(--i, 0) * .09s); }
[data-rv].in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(90px, 14vh, 170px) 0; }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 7vh, 72px); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.h2 { margin: 0; font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.sec-head p { margin: 0; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--ink-2); max-width: 620px; }

/* cartes de verre avec inclinaison 3D */
.glass { position: relative; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .14); }
.tilt { transform-style: preserve-3d; transition: transform .7s var(--ease), border-color .4s; will-change: transform; }
.tilt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(320px 220px at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .12), transparent 70%); opacity: 0; transition: opacity .4s; }
.tilt:hover { border-color: rgba(61, 242, 162, .35); }
.tilt:hover::before { opacity: 1; }
.tilt > * { transform: translateZ(30px); }
/* une carte inclinable qui apparaît au défilement garde le fondu et le décalage des autres apparitions ;
   l'inclinaison reprend la main une fois la carte arrivée (.rv-done, posé par site.js) */
.tilt[data-rv]:not(.rv-done) { transition: opacity 1s var(--ease), transform 1.25s var(--ease), border-color .4s; transition-delay: calc(var(--i, 0) * .09s); }

.fine { display: grid; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.fine p { margin: 0; display: flex; gap: 10px; }
.fine svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-2); background: rgba(255, 255, 255, .045); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 17px; letter-spacing: -.02em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- pied de page ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-1); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.foot .risk { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); max-width: 520px; line-height: 1.6; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; font-size: 14px; color: var(--ink-2); }
.foot nav a:hover { color: var(--acc); }
.foot .copy { margin-top: 34px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- pages simples : connexion, compte, merci, légal ---------- */
.page { min-height: 100svh; padding: 120px 0 80px; position: relative; isolation: isolate; }
.page::before { content: ''; position: fixed; inset: -20%; z-index: -1; background: radial-gradient(40% 40% at 80% 10%, rgba(61, 242, 162, .12), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(18, 145, 96, .14), transparent 70%); pointer-events: none; }
.card { padding: clamp(24px, 4vw, 40px); }
.narrow { width: min(500px, 100% - 32px); margin: 0 auto; }
.mid { width: min(860px, 100% - 32px); margin: 0 auto; }
.page h1 { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.05em; line-height: 1.02; font-weight: 600; }
.page .sub { margin: 0 0 26px; color: var(--ink-2); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tabs button { padding: 11px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-size: 14.5px; color: var(--ink-2); transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #050505; font-weight: 600; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); font-size: 15.5px; transition: border-color .25s, box-shadow .25s; }
.field input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px rgba(61, 242, 162, .14); }
.field small { font-size: 12px; color: var(--ink-3); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { flex: none; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .3); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--acc); border-color: var(--acc); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--acc-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.msg { min-height: 22px; margin: 4px 0 14px; font-size: 14px; color: var(--ink-2); }
.msg.err { color: #ffd2c2; }
.msg.ok { color: var(--acc); }
.link { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.status { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); margin-bottom: 22px; }
.status .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); }
.status.on .dot { background: var(--acc); box-shadow: 0 0 0 5px rgba(61, 242, 162, .16), 0 0 20px var(--acc); }
.status b { display: block; font-size: 17px; letter-spacing: -.02em; }
.status span { font-size: 13.5px; color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.box h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.02em; font-weight: 600; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal .note { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(61, 242, 162, .3); background: rgba(61, 242, 162, .06); color: var(--ink); font-size: 14.5px; }
.legal a { color: var(--acc); }
.ts-box { display: flex; justify-content: center; }
.ts-box:empty { display: none; }
html[lang="fr"] [data-only="en"], html[lang="en"] [data-only="fr"] { display: none !important; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(61, 242, 162, .2); border-top-color: var(--acc); animation: spin 1s linear infinite; margin: 10px 0 20px; }

/* ---------- écrans moyens et téléphone ---------- */
@media (max-width: 860px) {
  .snav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-rv] { opacity: 1; transform: none; }
}

/* ---------- Fluidité sur téléphone : grain fixe, flous plus légers au-dessus des fonds animés ---------- */
@media (max-width: 760px), (pointer: coarse) {
  .grain { inset: 0; animation: none; }
  /* cartes posées sur le fond noir uni : le flou d'arrière-plan n'y change pas l'image, mais il se recalcule à chaque image du défilement */
  .glass.tilt { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* ---------- écran tactile : pas de souris, donc ni inclinaison ni profondeur à calculer (une couche de moins par élément) ---------- */
@media (pointer: coarse) {
  .tilt { transform-style: flat; will-change: auto; }
  .tilt > * { transform: none; }
  .tilt::before { display: none; }
}
/* ---------- téléphone : sections un peu plus rapprochées ---------- */
@media (max-width: 640px) {
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
}
