/* ==========================================================================
   ME RECOVERY — Styles globaux
   Identité, typographie, header, footer, boutons, formulaires,
   écran de chargement, transition encre, curseur baguette.
   ========================================================================== */

/* ---------- Polices auto-hébergées ---------- */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/jost-latin-500-normal.woff2') format('woff2'); }

/* ---------- Jetons de design ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #111211;
  --anthracite: #2b2b2b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(242, 241, 236, 0.1);
  --line-strong: rgba(242, 241, 236, 0.2);
  --ink: #f2f1ec;
  --muted: #a3a49b;
  --dim: #6d6e67;
  --green: #7ED957;
  --glow: #9CFF5A;
  --green-a: rgba(126, 217, 87, 0.14);
  --glow-a: rgba(156, 255, 90, 0.35);
  --danger: #ff6b5a;
  --warning: #ffc857;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 44px);
  --wrap: 1240px;
  --radius: 22px;
  --radius-s: 12px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--green); color: #0a0a0a; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
#contenu:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
em, .it { font-style: italic; font-family: var(--serif); color: var(--green); }

[hidden] { display: none !important; }
.error { color: var(--danger); font-size: .85rem; margin: 10px 0 0; }
.error:empty { display: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain de pellicule sur tout le site */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 50; pointer-events: none;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* Masquage initial des textes animés (évite le flash avant découpage) */
html.js [data-split], html.js [data-intro] { visibility: hidden; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page { position: relative; z-index: 2; min-height: 100vh; }
main { display: block; }
.section { position: relative; padding: clamp(90px, 14vw, 180px) 0; }
.section--tight { padding: clamp(60px, 9vw, 110px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 400; font-size: 0.74rem;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--green);
  margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; box-shadow: 0 0 10px var(--glow-a); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 34px; height: 1px; background: currentColor; }

.h-display { font-size: clamp(3rem, 10vw, 9rem); line-height: .95; }
.h-1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; }
.h-2 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.05; }
.h-3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 44ch; line-height: 1.7; }
.muted { color: var(--muted); }
.spaced { letter-spacing: .38em; text-transform: uppercase; font-weight: 400; font-size: .78rem; }
.glow-text { color: var(--green); text-shadow: 0 0 24px var(--glow-a); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 30px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: box-shadow .4s var(--ease), border-color .3s, color .3s, background .3s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--green); color: #0a0a0a; box-shadow: 0 0 0 0 var(--glow-a); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { box-shadow: 0 10px 40px -8px var(--glow-a), 0 0 0 1px var(--glow); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(10,10,10,.3); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 30px -10px var(--glow-a) inset; }
.btn--sm { --h: 42px; padding: 0 20px; font-size: .7rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-line { position: relative; display: inline-block; }
.link-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(10, 10, 10, .72); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { height: 40px; width: auto; overflow: visible; }
.brand__word { font-size: .62rem; letter-spacing: .5em; color: var(--ink); font-weight: 400; line-height: 1; }
.brand:hover svg { filter: drop-shadow(0 0 10px var(--glow-a)); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a { position: relative; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; transition: color .3s; padding: 6px 0; }
.nav a::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--green);
  box-shadow: 0 0 8px var(--glow); transition: left .45s var(--ease), right .45s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; }
.account-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--glow); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Menu mobile plein écran */
/* Menu mobile : panneau qui glisse depuis la droite, la page s'assombrit derrière */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; visibility: hidden; pointer-events: none;
  background: rgba(0, 0, 0, 0); transition: background .5s var(--ease), visibility 0s .6s;
}
.menu-open .mobile-menu { visibility: visible; pointer-events: auto; background: rgba(0, 0, 0, .6); transition: background .5s var(--ease); }
body.menu-open { overflow: hidden; }
.mm-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px);
  display: flex; flex-direction: column; gap: 26px;
  padding: calc(var(--header-h) + 14px) var(--gutter) max(26px, env(safe-area-inset-bottom));
  background: radial-gradient(90% 45% at 100% 0%, rgba(126, 217, 87, .11), transparent 70%), #0d0e0d;
  border-left: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .6s var(--ease);
}
.menu-open .mm-panel { transform: none; }
/* Apparition en cascade */
.mm-panel > *, .mm-link { opacity: 0; transform: translateX(26px); transition: opacity .45s, transform .65s var(--ease); }
.menu-open .mm-panel > *, .menu-open .mm-link { opacity: 1; transform: none; transition-delay: calc(.14s + var(--i, 0) * .05s); }

/* Rubriques : grandes, nettes, avec chevron */
.mm-nav { display: flex; flex-direction: column; }
.mm-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0;
  font-family: var(--sans); font-weight: 500; font-size: clamp(1.55rem, 6.8vw, 1.95rem); letter-spacing: -.01em; line-height: 1.2;
  color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.mm-link svg { flex: none; width: 22px; height: 22px; color: var(--dim); transition: transform .35s var(--ease), color .3s; }
.mm-link.is-active, .mm-link.is-active svg { color: var(--green); }
.mm-link:active svg { transform: translateX(5px); color: var(--green); }

/* Carte « séance d'essai » */
.mm-card { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.mm-card img { flex: none; width: 78px; height: 96px; object-fit: cover; border-radius: 12px; }
.mm-card__body { display: flex; flex-direction: column; gap: 4px; }
.mm-card__kicker { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--green); }
.mm-card strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.mm-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-size: .82rem; color: var(--muted); }
.mm-card__cta svg { width: 16px; height: 16px; }

/* Espace client */
.mm-member p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.mm-member strong { color: var(--ink); font-weight: 500; }
.mm-member__btns { display: flex; gap: 10px; }
.mm-member__btns .btn { flex: 1; padding: 0 14px; }

/* Contacts */
.mm-rows { display: flex; flex-direction: column; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.mm-rows__title { margin: 0 0 6px; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.mm-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: .98rem; color: var(--ink); }
.mm-row svg { flex: none; width: 20px; height: 20px; color: var(--muted); }

@media (max-width: 960px) {
  .nav, .header-actions .hide-m { display: none; }
  .burger { display: block; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 90px 0 36px; background: linear-gradient(to bottom, transparent, rgba(126,217,87,.04)); overflow: hidden; }
.footer-big {
  font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 7.5rem); line-height: 1; margin-bottom: 70px;
}
.footer-big em { display: inline-block; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: .7rem; letter-spacing: .38em; text-transform: uppercase; color: var(--green); font-weight: 400; margin-bottom: 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid li, .footer-grid a { color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand svg { height: 70px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 30ch; font-size: .95rem; }
.placeholder { color: var(--dim); font-style: italic; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink); overflow: hidden; isolation: isolate;
  transition: border-color .4s, color .4s, transform .5s var(--ease), box-shadow .4s;
}
.social::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--green);
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.social svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.social:hover { color: #0a0a0a; border-color: var(--green); transform: translateY(-4px); box-shadow: 0 10px 30px -10px var(--glow-a); }
.social:hover::before { transform: translateY(0); }
.social:hover svg { animation: icon-pop .6s var(--ease); }
.social.is-empty { opacity: .35; pointer-events: none; }
@keyframes icon-pop { 0% { transform: translateY(0) } 40% { transform: translateY(-120%) } 41% { transform: translateY(120%) } 100% { transform: translateY(0) } }

.footer-bottom { margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--dim); font-size: .82rem; }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FORMULAIRES
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 54px; padding: 0 18px; border-radius: var(--radius-s);
  background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-weight: 400; font-size: 1rem; outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { height: auto; min-height: 120px; padding: 14px 18px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); background: rgba(126,217,87,.04); box-shadow: 0 0 0 4px var(--green-a); }
.field input::placeholder { color: var(--dim); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .82rem; min-height: 0; }
/* Mot de passe : bouton « œil » pour afficher / masquer */
.pw-wrap { position: relative; display: block; }
.field .pw-wrap input { padding-right: 56px; }
.pw-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); transition: color .25s, background .25s;
}
.pw-eye:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.pw-eye:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pw-eye[aria-pressed="true"] { color: var(--green); }
.pw-eye .pw-slash { opacity: 0; transition: opacity .2s; }
.pw-eye[aria-pressed="true"] .pw-slash { opacity: 1; }
input::-ms-reveal, input::-ms-clear { display: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237ED957' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field select option { background: #151515; }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-strong); margin-top: 1px;
  display: grid; place-items: center; transition: background .3s, border-color .3s, box-shadow .3s;
}
.check .box svg { width: 14px; height: 14px; stroke: #0a0a0a; stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .4s var(--ease) .05s; }
.check input:checked + .box { background: var(--green); border-color: var(--green); box-shadow: 0 0 16px var(--glow-a); }
.check input:checked + .box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .box { outline: 2px solid var(--glow); outline-offset: 3px; }
.check a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid .box { border-color: var(--danger); }

.notice { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); padding: 16px 20px; font-size: .95rem; color: var(--muted); }
.notice--green { border-color: rgba(126,217,87,.35); background: var(--green-a); color: var(--ink); }
.notice--warn { border-color: rgba(255,200,87,.35); background: rgba(255,200,87,.07); color: var(--ink); }
.notice strong { color: var(--ink); font-weight: 500; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 400; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--green { color: var(--green); border-color: rgba(126,217,87,.4); }
.chip--warn { color: var(--warning); border-color: rgba(255,200,87,.4); }
.chip--red { color: var(--danger); border-color: rgba(255,107,90,.4); }

/* Panneaux vitrés */
.glass {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  backdrop-filter: blur(10px);
}

/* Fenêtre modale (js/modules/dialog.js) — sous le curseur baguette (z-index 9998+) */
.xdlg { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; }
.xdlg__backdrop { position: absolute; inset: 0; background: rgba(5,6,5,.74); backdrop-filter: blur(6px); }
.xdlg__box {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(20px, 4vw, 30px); background: linear-gradient(160deg, #1a1c19, #111311); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.xdlg__box--wide { width: min(900px, 100%); }
.xdlg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.xdlg__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.15; }
.xdlg__x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 1.3rem; line-height: 1; transition: border-color .3s, color .3s; }
.xdlg__x:hover { border-color: var(--green); color: var(--green); }
.xdlg__body { color: var(--muted); }
.xdlg__body p + p { margin-top: 10px; }
.xdlg__err { color: var(--danger); font-size: .9rem; margin: 14px 0 0; }
.xdlg__err:empty { display: none; }
.xdlg__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.btn--danger { border: 1px solid rgba(255,107,90,.55); color: var(--danger); background: rgba(255,107,90,.06); }
.btn--danger:hover { background: rgba(255,107,90,.14); box-shadow: 0 0 30px -10px rgba(255,107,90,.5); }

/* ==========================================================================
   FOND PARTICULES (Three.js)
   ========================================================================== */
.bg-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.bg-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.7) 100%); }

/* ==========================================================================
   ÉCRAN DE CHARGEMENT
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center;
  background: radial-gradient(70% 60% at 50% 45%, #2b2b2b 0%, #161616 55%, #0a0a0a 100%);
}
.loader__logo { width: min(620px, 86vw); overflow: visible; }
.loader__logo .l-letter { fill: transparent; stroke: var(--green); stroke-width: .9; stroke-linejoin: round; }
.loader__logo .l-band { fill: #262626; }
.loader__logo .l-line { stroke: #f2f1ec; stroke-width: 1.1; }
.loader__logo .l-diamond, .loader__logo .l-rec, .loader__logo .l-slogan { fill: var(--green); }
.loader__logo .l-diamond { fill: #f2f1ec; }
.loader__logo .l-spark { fill: #eaffd9; }
.loader__progress { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .5em; color: var(--dim); }

/* ==========================================================================
   TRANSITION ENTRE PAGES (logo + encre)
   ========================================================================== */
.transition { position: fixed; inset: 0; z-index: 8000; pointer-events: none; visibility: hidden; }
.transition.is-active { visibility: visible; pointer-events: all; }
.transition canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.transition__css {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #0f170c, #020302 60%);
  box-shadow: 0 0 40px 10px rgba(156,255,90,.35), inset 0 0 60px rgba(156,255,90,.25);
  transform: scale(0); display: none;
}
.transition.no-webgl .transition__css { display: block; }
.transition__logo {
  position: absolute; left: 50%; top: 50%; width: min(260px, 46vw);
  will-change: transform, filter; opacity: 0;
  filter: drop-shadow(0 0 22px rgba(156,255,90,.45));
}
.transition__logo svg { width: 100%; height: auto; overflow: visible; }

/* ==========================================================================
   CURSEUR BAGUETTE MAGIQUE (desktop)
   ========================================================================== */
html.has-wand, html.has-wand * { cursor: none !important; }
.cursor-fx { position: fixed; inset: 0; z-index: 9998; pointer-events: none; width: 100%; height: 100%; }
.wand {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 92px; height: 92px; margin: -6px 0 0 -6px; /* pointe de la baguette = position du pointeur */
  transform-origin: 6px 6px; will-change: transform; opacity: 0; transition: opacity .3s;
}
.wand.is-visible { opacity: 1; }
.wand svg { width: 100%; height: 100%; overflow: visible; }
.wand .tip-glow { transition: r .3s var(--ease), opacity .3s; }
.wand.is-hover .tip-core { filter: drop-shadow(0 0 8px #9CFF5A) drop-shadow(0 0 16px #9CFF5A); }

/* ==========================================================================
   ACCESSIBILITÉ : mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  body::after { animation: none; }
}
