:root {
  --bg: #0a0a12;
  --bg-2: #10101a;
  --surface: #161622;
  --surface-2: #1e1e2c;
  --border: #2a2a3b;
  --text: #ececf3;
  --text-2: #b2b2c6;
  --text-3: #8b8ba0;
  --accent: #6d63ff;
  --accent-2: #a855f7;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c026d3 100%);
  --ok: #4ade80;

  --intro: #a78bfa;
  --couplet: #4f8cff;
  --prerefrain: #22d3ee;
  --refrain: #ff5d8f;
  --pont: #facc15;
  --solo: #ff9f43;
  --outro: #2ecc71;

  --radius: 18px;
  --max: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 640px; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links .btn, .nav-links .btn[aria-current="page"] { margin-left: 8px; color: #fff; background: var(--grad); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Choix de la langue */
.nav-links { order: 1; }
.lang { order: 2; position: relative; }
.nav-toggle { order: 3; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-2);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; font: 600 .82rem var(--font); letter-spacing: .04em;
  transition: color .2s, background .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); background: rgba(255,255,255,.12); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.9);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text-2);
  padding: 9px 12px; border-radius: 9px; font: 500 .95rem var(--font); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.lang-menu button:hover { background: rgba(255,255,255,.07); color: var(--text); }
.lang-menu button[aria-checked="true"] { color: var(--text); }
.lang-menu button[aria-checked="true"]::after { content: "✓"; color: var(--accent-2); font-weight: 700; }

@media (max-width: 1040px) {
  .lang { margin-left: auto; }
  .nav-toggle { display: block; margin-left: -12px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .7);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(124, 58, 237, .85); filter: brightness(1.08); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { padding: 9px 18px; font-size: .92rem; }
.btn.ghost { background: rgba(255,255,255,.07); box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.heart { background: linear-gradient(135deg, #ff5d8f, #ff9f43); box-shadow: 0 10px 30px -10px rgba(255, 93, 143, .6); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(124, 58, 237, .35), transparent 60%),
    linear-gradient(90deg, rgba(10,10,18,.97) 0%, rgba(10,10,18,.88) 45%, rgba(10,10,18,.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 500; color: var(--text-2); padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

@media (max-width: 920px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero::before { background: radial-gradient(800px 400px at 80% 0%, rgba(124,58,237,.35), transparent 60%), linear-gradient(0deg, rgba(10,10,18,.98) 25%, rgba(10,10,18,.8) 100%); }
}

/* ---------- Maquette de téléphone ---------- */
.phone {
  width: min(330px, 100%); margin: 0 auto;
  background: #07070c; border-radius: 44px; padding: 12px;
  border: 1px solid #2f2f40;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.8), 0 0 0 6px rgba(255,255,255,.03), 0 0 120px -30px rgba(124,58,237,.6);
  transform: rotate(2deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
.screen { background: #0b0c11; border-radius: 34px; padding: 18px 16px 20px; overflow: hidden; position: relative; }
.notch { width: 92px; height: 24px; background: #000; border-radius: 0 0 14px 14px; margin: -18px auto 12px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--text-3); margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(74,222,128,.14); color: var(--ok); font-weight: 600; font-size: .66rem; }
.ph-title { font-family: var(--display); font-weight: 700; font-size: 1.02rem; margin: 2px 0 12px; }
.chord-now { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.chord-now b { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.chord-now span { color: var(--text-3); font-size: 1.1rem; }
.chord-now em { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--text-3); text-align: right; line-height: 1.3; }
.chords-row { display: flex; gap: 4px; margin-bottom: 6px; font-size: .64rem; color: var(--text-2); }
.chords-row span { flex: 1; padding: 3px 0; text-align: center; background: rgba(255,255,255,.05); border-radius: 5px; }
.chords-row span.on { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.parts { display: flex; gap: 3px; height: 54px; margin-bottom: 4px; position: relative; }
.part { border-radius: 7px; position: relative; display: flex; align-items: flex-end; padding: 4px 5px; font-size: .58rem; font-weight: 700; color: rgba(0,0,0,.72); overflow: hidden; }
.part::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,.08) 6px 7px); }
.part small { position: absolute; top: 3px; left: 5px; font-size: .55rem; opacity: .7; }
.playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; left: 38%; animation: play 9s linear infinite; }
@keyframes play { from { left: 2%; } to { left: 98%; } }
.part-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .6rem; color: var(--text-3); margin: 6px 0 14px; }
.part-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.wave { display: flex; align-items: center; gap: 2px; height: 34px; margin-bottom: 14px; }
.wave i { flex: 1; background: linear-gradient(var(--accent-2), var(--accent)); border-radius: 2px; opacity: .85; animation: wv 1.4s ease-in-out infinite; }
@keyframes wv { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.ph-ctrl { display: flex; justify-content: space-between; align-items: center; }
.ph-ctrl .tempo { font-size: .7rem; color: var(--text-2); background: rgba(255,255,255,.06); padding: 6px 10px; border-radius: 10px; }
.ph-ctrl .tempo b { color: #fff; }
.ph-play { width: 50px; height: 50px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(124,58,237,.8); }
.ph-play svg { width: 20px; height: 20px; fill: #fff; }
.ph-ctrl .loop { font-size: .7rem; color: var(--solo); background: rgba(255,159,67,.12); padding: 6px 10px; border-radius: 10px; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { section { padding: 70px 0; } }

/* Problème / solution */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.vs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.vs-card h3 { display: flex; align-items: center; gap: 10px; }
.vs-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.vs-card li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.08); color: var(--text-2); }
.vs-card li:last-child { border: 0; }
.vs-card li b { color: var(--text); white-space: nowrap; }
.vs-card.bad li b { color: #ff8fa3; }
.vs-card.good { border-color: rgba(124,58,237,.5); background: linear-gradient(180deg, rgba(124,58,237,.12), var(--surface) 60%); }
.vs-card.good li b { color: var(--ok); }
.vs-total { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.vs-arrow { display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--text-3); font-size: 1.4rem; }
@media (max-width: 860px) { .versus { grid-template-columns: 1fr; } .vs-arrow { transform: rotate(90deg); } }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.pillar:hover { transform: translateY(-4px); border-color: rgba(124,58,237,.55); }
.pillar .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.pillar .ico svg { width: 26px; height: 26px; }
.pillar p { color: var(--text-2); margin: 0; }
.pillar ul { margin: 16px 0 0; padding-left: 18px; color: var(--text-2); font-size: .95rem; }
.pillar li { margin: 4px 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Vitrines : photo + texte */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip .media { order: 2; }
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.feature p { color: var(--text-2); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text-2); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(124,58,237,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks li b { color: var(--text); font-weight: 600; }
.media { position: relative; }
.photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 70px -25px rgba(0,0,0,.9); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.media:hover .photo img { transform: scale(1.04); }
.photo.tall { aspect-ratio: 4 / 5; }
.overlay-card {
  position: absolute; right: -18px; bottom: -28px; width: min(300px, 78%);
  background: rgba(22, 22, 34, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9);
}
.overlay-card.left { right: auto; left: -18px; }
.overlay-card h4 { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 56px; }
  .feature.flip .media { order: 0; }
  .feature + .feature { margin-top: 90px; }
  .overlay-card { right: 12px; }
  .overlay-card.left { left: 12px; }
}

/* Mini table de mixage */
.mixer { display: flex; gap: 10px; justify-content: space-between; }
.strip { flex: 1; text-align: center; font-size: .66rem; color: var(--text-2); }
.fader { height: 92px; width: 8px; margin: 6px auto 8px; background: rgba(255,255,255,.08); border-radius: 4px; position: relative; }
.fader i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px; }
.fader b { position: absolute; left: 50%; width: 24px; height: 12px; margin-left: -12px; border-radius: 4px; background: #e5e5ee; box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.ms { display: flex; gap: 3px; justify-content: center; margin-top: 4px; }
.ms span { font-size: .56rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.08); }
.ms span.m { background: #dc2626; color: #fff; }
.ms span.s { background: var(--pont); color: #000; }

/* Grille d'enregistrement */
.grid-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-bottom: 8px; }
.grid-bars span { height: 30px; border-radius: 4px; background: rgba(255,255,255,.06); position: relative; }
.grid-bars span.rec { background: linear-gradient(180deg, rgba(255,93,143,.75), rgba(255,93,143,.35)); }
.grid-bars span::before { content: attr(data-n); position: absolute; top: 2px; left: 4px; font-size: .55rem; color: var(--text-3); }
.rec-line { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-2); }
.rec-line b { color: var(--refrain); }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; }
.stat span { color: var(--text-2); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Comparatif */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-2); }
.compare thead th { font-family: var(--display); font-size: .95rem; color: var(--text); background: var(--surface-2); }
.compare thead th.us { background: var(--grad); color: #fff; }
.compare td.us { background: rgba(124,58,237,.1); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #4a4a5e; }

/* Cibles */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aud { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.aud .emoji { font-size: 2rem; margin-bottom: 10px; }
.aud h3 { font-size: 1.08rem; }
.aud p { color: var(--text-2); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px 26px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }
.step p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(124,58,237,.5); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; }

/* Bandeau d'appel final */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; isolation: isolate; border: 1px solid rgba(255,255,255,.1); }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(79,70,229,.93), rgba(124,58,237,.9) 55%, rgba(192,38,211,.85)); }
.cta-band .lead { color: rgba(255,255,255,.88); margin: 0 auto 30px; }
.cta-band .btns { justify-content: center; }
.cta-band .btn { background: #fff; color: #3b2a9b; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.cta-band .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 600px) { .cta-band { padding: 48px 22px; } }

/* En-tête des pages internes */
.page-hero { position: relative; padding: 80px 0 60px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 380px at 70% -10%, rgba(124,58,237,.38), transparent 65%), radial-gradient(600px 300px at 0% 0%, rgba(79,70,229,.25), transparent 60%); }
.page-hero .lead { margin-bottom: 0; }

/* Cartes de téléchargement */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; }
.dl-card.main { border-color: rgba(124,58,237,.55); background: linear-gradient(180deg, rgba(124,58,237,.14), var(--surface) 55%); }
.dl-card .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text-2); margin-bottom: 18px; }
.dl-card.main .tag { background: var(--grad); color: #fff; }
.dl-card p { color: var(--text-2); }
.dl-card ul { color: var(--text-2); padding-left: 18px; margin: 0 0 26px; }
.dl-card li { margin: 5px 0; }
.dl-card .btn { align-self: flex-start; margin-top: auto; }
.dl-meta { font-size: .85rem; color: var(--text-3); margin-top: 12px; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }

.note { display: flex; gap: 14px; background: rgba(250, 204, 21, .07); border: 1px solid rgba(250, 204, 21, .3); border-radius: 16px; padding: 20px 22px; color: var(--text-2); }
.note b { color: var(--text); }
.note .i { font-size: 1.3rem; }
.note.info { background: rgba(79,140,255,.07); border-color: rgba(79,140,255,.3); }

.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.req div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.req h3 { font-size: 1rem; }
.req p { color: var(--text-2); margin: 0; font-size: .95rem; }
@media (max-width: 820px) { .req { grid-template-columns: 1fr; } }

/* Forum */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: transform .2s, border-color .2s; display: block; }
.cat:hover { transform: translateY(-3px); border-color: rgba(124,58,237,.55); }
.cat .emoji { font-size: 1.8rem; }
.cat h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.cat p { color: var(--text-2); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }
.giscus-box { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }

/* Dons */
.don-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.don-card { background: linear-gradient(180deg, rgba(255,93,143,.12), var(--surface) 55%); border: 1px solid rgba(255,93,143,.4); border-radius: 24px; padding: 34px; position: sticky; top: 92px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.amount { padding: 14px 0; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 700 1.1rem var(--display); cursor: pointer; transition: border-color .2s, background .2s; }
.amount:hover { border-color: rgba(255,93,143,.6); }
.amount.on { border-color: #ff5d8f; background: rgba(255,93,143,.16); }
.don-card .btn { width: 100%; justify-content: center; }
.don-msg { font-size: .88rem; color: var(--text-3); margin: 14px 0 0; text-align: center; }
.uses { display: grid; gap: 16px; }
.use { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.use .emoji { font-size: 1.8rem; flex: none; }
.use h3 { font-size: 1.05rem; margin-bottom: 4px; }
.use p { margin: 0; color: var(--text-2); font-size: .95rem; }
@media (max-width: 900px) { .don-layout { grid-template-columns: 1fr; } .don-card { position: static; } }

/* Pied de page */
footer { border-top: 1px solid rgba(255,255,255,.06); padding: 56px 0 40px; margin-top: 40px; color: var(--text-3); font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot h4 { color: var(--text); font-size: .95rem; margin: 0 0 12px; }
.foot a { display: block; text-decoration: none; color: var(--text-3); padding: 3px 0; }
.foot a:hover { color: var(--text); }
.credits { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.05); font-size: .8rem; }
.credits a { display: inline; text-decoration: underline; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .playhead, .wave i { animation: none; }
}

/* ---------- Vraies captures de l'appli ---------- */
.phone.shot { padding: 9px; border-radius: 40px; width: min(300px, 100%); }
.phone.shot img { width: 100%; height: auto; border-radius: 31px; background: #f6f6f9; }
.overlay-phone {
  position: absolute; right: -26px; bottom: -48px; width: 172px !important;
  padding: 6px !important; border-radius: 28px !important; animation: none; transform: rotate(3deg);
}
.overlay-phone img { border-radius: 22px !important; }
.overlay-phone.left { right: auto; left: -26px; transform: rotate(-3deg); }
@media (max-width: 900px) {
  .overlay-phone { right: 8px; width: 132px !important; bottom: -36px; }
  .overlay-phone.left { left: 8px; }
}
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .phone.shot { width: 100%; animation: none; transform: none; box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), 0 0 0 5px rgba(255,255,255,.03); }
.gallery .phone.shot img { border-radius: 26px; }
.gallery figcaption { margin-top: 14px; text-align: center; color: var(--text-2); font-size: .92rem; line-height: 1.4; }
@media (min-width: 1100px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; overflow: visible; } }

/* ---------- Configuration requise ---------- */
.req-block { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; margin-bottom: 22px; }
.req-block h3 { font-size: 1.2rem; }
.req-block p { color: var(--text-2); }
.req-block p b { color: var(--text); }
.req-block .table-wrap { background: var(--bg-2); margin: 6px 0 14px; }
.req-block .small { font-size: .9rem; margin: 0; }
table.spec { width: 100%; border-collapse: collapse; min-width: 560px; }
.spec th, .spec td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; font-size: .95rem; }
.spec thead th { font-family: var(--display); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--surface-2); }
.spec tbody th { color: var(--text); font-weight: 600; width: 26%; }
.spec td { color: var(--text-2); }
.spec td b { color: var(--text); white-space: nowrap; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.req-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .req-2 { grid-template-columns: 1fr; } .req-block { padding: 20px; } }

/* ---------- Mode d'emploi ---------- */
.guide-layout { display: grid; grid-template-columns: 270px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; font-size: .9rem; }
.toc input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc > ol > li { counter-increment: toc; margin: 2px 0; }
.toc a { display: block; text-decoration: none; color: var(--text-2); padding: 5px 8px; border-radius: 8px; line-height: 1.35; }
.toc > ol > li > a::before { content: counter(toc) ". "; color: var(--text-3); }
.toc a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.toc a.on { color: var(--text); background: rgba(124,58,237,.18); }
.toc ol ol { padding-left: 14px; margin-bottom: 6px; }
.toc ol ol a { font-size: .85rem; padding: 3px 8px; }
.toc details > summary { display: none; }
.guide { min-width: 0; }
.guide > section { padding: 0 0 56px; border: 0; background: none; }
.guide h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); scroll-margin-top: 90px; padding-top: 8px; }
.guide h3 { font-size: 1.2rem; margin-top: 30px; scroll-margin-top: 90px; }
.guide h4 { font-size: 1rem; margin: 22px 0 8px; color: var(--text); }
.guide p, .guide li { color: var(--text-2); }
.guide b, .guide strong { color: var(--text); }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 5px 0; }
.ui { display: inline-block; padding: 0 7px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--text); font-weight: 600; font-size: .92em; white-space: nowrap; }
ol.how { counter-reset: how; list-style: none; padding-left: 0; }
ol.how > li { counter-increment: how; position: relative; padding-left: 40px; margin: 10px 0; }
ol.how > li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font: 700 .85rem/26px var(--display); text-align: center; }
.callout { display: flex; gap: 12px; border-radius: 14px; padding: 14px 16px; margin: 16px 0; background: rgba(79,140,255,.08); border: 1px solid rgba(79,140,255,.28); color: var(--text-2); }
.callout.tip { background: rgba(46,204,113,.07); border-color: rgba(46,204,113,.3); }
.callout.warn { background: rgba(250,204,21,.07); border-color: rgba(250,204,21,.32); }
.callout.admin { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.35); }
.callout > span:first-child { font-size: 1.1rem; }
.callout p { margin: 0; }
.guide .table-wrap { margin: 14px 0; }
.guide table.spec { min-width: 480px; }
.guide figure { margin: 18px 0; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.guide figure .phone.shot { width: 200px; animation: none; transform: none; }
.guide figure figcaption { flex: 1; min-width: 200px; color: var(--text-3); font-size: .9rem; }
.guide-lang-note { margin-bottom: 26px; }
.badge-admin { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(168,85,247,.2); color: #d8b4fe; vertical-align: middle; margin-left: 6px; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; }
  .toc details > summary { display: block; cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
  .toc details:not([open]) > :not(summary) { display: none; }
}
.guide-lang-note:has(p:empty) { display: none; }

/* ---------- Réponse aux data centers ---------- */
.dc-cards { grid-template-columns: repeat(4, 1fr); }
.dc-cards h3 { font-size: 1.1rem; }
@media (max-width: 1000px) { .dc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dc-cards { grid-template-columns: 1fr; } }
.why { max-width: 900px; }
.why-block { margin-bottom: 64px; }
.why-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.why-block > p { color: var(--text-2); font-size: 1.05rem; }
.why-block p b { color: var(--text); }
.why-table td, .why-table th { text-align: left !important; }
.why-table td.us { font-weight: 600; color: var(--text); }
.why-stats { margin: 26px 0 14px; }
.why-stats .stat b { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.why-flip { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 18px; }
.why-flip li { background: rgba(250,204,21,.06); border: 1px solid rgba(250,204,21,.25); border-radius: 14px; padding: 16px 18px; color: var(--text-2); }
.why-flip li b { color: var(--text); }
.why .callout ul { margin: 8px 0 0; padding-left: 18px; }
.why .callout li { color: var(--text-2); }
.small { font-size: .88rem; }
.stat b span { font-size: inherit; color: inherit; }
@media (max-width: 640px) {
  table.stack-sm { min-width: 0; }
  table.stack-sm thead { display: none; }
  table.stack-sm tr { display: block; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  table.stack-sm th, table.stack-sm td { display: block; padding: 4px 0; border: 0; background: none; }
  table.stack-sm tbody th { font-size: 1.02rem; margin-bottom: 4px; width: auto; }
  table.stack-sm td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
  table.stack-sm td.us::before { color: var(--accent-2); }
}

/* ---------- De la répète à l'arrangement ---------- */
.journey { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.journey-steps { list-style: none; margin: 0; padding: 0; counter-reset: js; position: relative; }
.journey-steps::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--refrain)); opacity: .5; }
.journey-steps > li { counter-increment: js; position: relative; padding: 0 0 30px 66px; }
.journey-steps > li::before { content: counter(js); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font: 800 1.2rem var(--display); color: #fff; box-shadow: 0 10px 24px -10px rgba(124,58,237,.8); }
.journey-steps h3 { margin: 8px 0 8px; }
.journey-steps p { color: var(--text-2); margin: 0 0 10px; }
.journey-steps p b { color: var(--text); }
.journey-steps .checks { margin-top: 12px; }
.journey-note { font-size: .95rem; color: var(--ok) !important; }
.journey-shots { position: sticky; top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.journey-shots figure { margin: 0; }
.journey-shots .phone.shot { width: 100%; padding: 6px; border-radius: 26px; animation: none; transform: none; }
.journey-shots .phone.shot img { border-radius: 21px; }
.journey-shots figcaption { text-align: center; color: var(--text-3); font-size: .85rem; margin-top: 10px; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; } .journey-shots { position: static; max-width: 420px; margin: 0 auto; } }

/* ---------- Mur de photos du groupe ---------- */
.photo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 34px; }
.photo-wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 16px 40px -20px rgba(0,0,0,.9); transition: transform .4s; }
.photo-wall img:hover { transform: scale(1.04); }
@media (max-width: 860px) { .photo-wall { grid-template-columns: repeat(3, 1fr); } }

/* Page « Accès depuis l'extérieur » : schémas */
.net-diagram { margin: 22px 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.net-diagram svg { display: block; width: 100%; height: auto; }
.net-diagram figcaption { margin-top: 14px; color: var(--text-2); font-size: .95rem; }
.net-diagram figcaption p { margin: 8px 0; }
.nd-home { fill: rgba(46,204,113,.05); stroke: rgba(46,204,113,.35); stroke-width: 2; stroke-dasharray: 8 6; }
.nd-zone { fill: var(--text-2); font: 600 18px var(--body, Inter, sans-serif); }
.nd-node { fill: var(--bg-2); stroke: var(--border); stroke-width: 2; }
.nd-server { stroke: rgba(124,58,237,.7); }
.nd-box { stroke: rgba(168,85,247,.8); }
.nd-relay { stroke: rgba(148,163,184,.8); }
.nd-phone { stroke: rgba(79,140,255,.7); }
.nd-cloud { fill: rgba(79,140,255,.07); stroke: rgba(79,140,255,.4); stroke-width: 2; }
.nd-name { fill: var(--text); font: 700 20px var(--display, sans-serif); }
.nd-small { fill: var(--text-2); font: 500 15px var(--body, Inter, sans-serif); }
.nd-tslabel { fill: #94a3b8; font-style: italic; }
.nd-path { fill: none; stroke-width: 4; stroke-linecap: round; }
.nd-local { stroke: #2ecc71; }
.nd-direct { stroke: #a855f7; }
.nd-ts { stroke: #94a3b8; stroke-dasharray: 3 9; }
.nd-num { stroke: none; }
.nd-num-local { fill: #2ecc71; } .nd-num-direct { fill: #a855f7; } .nd-num-ts { fill: #64748b; }
.nd-numtxt { fill: #fff; font: 800 16px var(--display, sans-serif); }
.nd-key { display: inline-block; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 800 .8rem/22px var(--display); text-align: center; margin-right: 4px; }
.nd-key-local { background: #2ecc71; } .nd-key-direct { background: #a855f7; } .nd-key-ts { background: #64748b; }
.rule-mock { max-width: 640px; }
.rm-win { fill: var(--bg-2); stroke: var(--border); stroke-width: 2; }
.rm-bar { fill: rgba(255,255,255,.05); }
.rm-dot { fill: rgba(255,255,255,.18); }
.rm-head { fill: var(--text-2); font: 600 14px var(--body, Inter, sans-serif); }
.rm-lab { fill: var(--text-2); font: 500 15px var(--body, Inter, sans-serif); }
.rm-field { fill: rgba(255,255,255,.04); stroke: var(--border); stroke-width: 1.5; }
.rm-hl { stroke: rgba(168,85,247,.8); }
.rm-val { fill: var(--text); font: 600 15px ui-monospace, Consolas, monospace; }
.guide details.more { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.guide details.more summary { cursor: pointer; font-weight: 600; color: var(--text); }

/* Vidéos de démonstration */
.video-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.video-gallery figure { margin: 0; }
@media (max-width: 560px) { .video-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } .video-gallery video { border-radius: 16px; } .video-gallery figcaption { font-size: .82rem; } }
.video-gallery video { display: block; width: 100%; height: auto; border-radius: 26px; background: #0e0c1e; box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), 0 0 0 1px var(--border); }
.video-gallery figcaption { margin-top: 14px; text-align: center; color: var(--text-2); font-size: .92rem; line-height: 1.4; }
.video-theme { margin: 44px 0 18px; font-size: 1.25rem; color: var(--text); }
.video-theme:first-of-type { margin-top: 10px; }
