/* Wazochat — site vitrine. Couleurs unies uniquement (aucun dégradé).
   Mode sombre et mode clair : <html data-theme="dark|light"> (choix mémorisé, sinon celui du système). */
:root, :root[data-theme="dark"] {
  --bg: #070b14;
  --bg-2: #0d1422;
  --surface: #111a2b;
  --surface-2: #172236;
  --line: #222f45;
  --text: #eef3f7;
  --muted: #9aa9ba;
  --faint: #66778b;
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-ink: #032018;
  --accent-text: #34d399;
  --accent-soft: #0f2b26;
  --accent-line: #1d5c4b;
  --warn: #fbbf24;
  --warn-soft: #2b2410;
  --warn-line: #6b5414;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.3' cy='1.3' r='1.3' fill='%23182234'/%3E%3C/svg%3E");
  --nav-bg: #070b14;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  /* Téléphone (style WhatsApp sombre) */
  --ph-frame: #1c2533;
  --ph-screen: #0b141a;
  --ph-head: #1f2c34;
  --ph-in: #202c33;
  --ph-out: #005c4b;
  --ph-text: #e9edef;
  --ph-meta: #8696a0;
  --ph-field: #2a3942;
  --ph-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23121c22'/%3E%3C/svg%3E");
  --home: #0e5b57;
  --home-app: #2a7672;
  --home-dock: #1d6966;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --line: #dfe5eb;
  --text: #0f1b26;
  --muted: #526273;
  --faint: #7d8b99;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-ink: #ffffff;
  --accent-text: #047857;
  --accent-soft: #e3f6ee;
  --accent-line: #a7e3c9;
  --warn: #b45309;
  --warn-soft: #fdf3e1;
  --warn-line: #f0c98a;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.3' cy='1.3' r='1.3' fill='%23dde3ea'/%3E%3C/svg%3E");
  --nav-bg: #f6f8fa;
  --shadow: 0 24px 50px -24px rgba(15, 27, 38, .28);
  --ph-frame: #d9dee4;
  --ph-screen: #efeae2;
  --ph-head: #f0f2f5;
  --ph-in: #ffffff;
  --ph-out: #d9fdd3;
  --ph-text: #111b21;
  --ph-meta: #667781;
  --ph-field: #ffffff;
  --ph-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e0d8cb'/%3E%3C/svg%3E");
  --home: #2f8f86;
  --home-app: #5aa9a1;
  --home-dock: #4c9e96;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; line-height: 1.12; letter-spacing: -.02em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.hl { color: var(--accent-text); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Fond : trame de points discrète ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--dots); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.3em; border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}
.btn svg { font-size: 1.15em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.scrolled, .nav.open { background: var(--nav-bg); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Sora, sans-serif; font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 30px; font-size: .95rem; color: var(--muted); }
.links a { position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.links a:hover { color: var(--text); }
.links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.sub-pill { font-size: .8rem; padding: .35em .8em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.theme-btn, .burger { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; transition: background-color .2s; }
.theme-btn:hover, .burger:hover { background: var(--accent-soft); }
.theme-btn svg { font-size: 1.15rem; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; min-height: 100vh; padding: 120px 0 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; color: var(--accent-text); padding: .4em .9em; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.5); } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 22px 0 22px; font-weight: 800; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.lead b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { color: var(--accent); font-size: 1.1em; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 620px; }
.ring { position: absolute; width: 470px; height: 470px; border-radius: 50%; border: 1px dashed var(--accent-line); animation: spin 40s linear infinite; }
.ring::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ring.r2 { width: 380px; height: 380px; border-style: solid; border-color: var(--line); animation-duration: 28s; animation-direction: reverse; }
.ring.r2::before { background: var(--warn); }
@keyframes spin { to { transform: rotate(360deg); } }

.phone {
  position: relative; width: 310px; height: 630px; border-radius: 48px; padding: 12px;
  background: var(--ph-frame); box-shadow: var(--shadow); animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 3; }
.screen { height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; background: var(--ph-screen); position: relative; color: var(--ph-text); }
.screen::before { content: ""; position: absolute; inset: 0; background-image: var(--ph-dots); }
.chat-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 56px 14px 12px; background: var(--ph-head); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; background: #e0793b; }
.who { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.who b { font-size: .95rem; }
.who small { font-size: .74rem; color: var(--ph-meta); }
.clone-badge { font-size: .66rem; padding: .3em .6em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); white-space: nowrap; }
.chat-body { position: relative; flex: 1; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.msg { max-width: 82%; padding: 7px 10px 6px; border-radius: 10px; font-size: .84rem; line-height: 1.38; box-shadow: 0 1px .5px rgba(0,0,0,.18); animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.msg small { display: block; text-align: right; font-size: .62rem; color: var(--ph-meta); margin-top: 2px; }
.msg.in { align-self: flex-start; background: var(--ph-in); border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: var(--ph-out); border-top-right-radius: 2px; }
.msg.out small::after { content: " ✓✓"; color: #53bdeb; }
.msg.alert { align-self: center; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn); font-size: .74rem; text-align: center; max-width: 92%; box-shadow: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.typing { align-self: flex-end; background: var(--ph-out); padding: 10px 13px; border-radius: 10px; border-top-right-radius: 2px; display: flex; gap: 4px; animation: pop .3s both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ph-meta); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input { position: relative; margin: 8px 10px 16px; display: flex; align-items: center; gap: 8px; }
.chat-input span { flex: 1; background: var(--ph-field); border-radius: 999px; padding: 9px 14px; font-size: .8rem; color: var(--ph-meta); }
.chat-input i { width: 38px; height: 38px; border-radius: 50%; background: #00a884; flex: none; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .86rem; line-height: 1.3; animation: float 8s ease-in-out infinite; z-index: 2;
}
.float-card small { display: block; color: var(--muted); font-size: .76rem; }
.fc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 1.15rem; flex: none; }
.fc-ic.warn { background: var(--warn-soft); color: var(--warn); }
.fc1 { top: 150px; left: -60px; animation-delay: -2s; }
.fc2 { bottom: 150px; right: -60px; animation-delay: -4s; }
.fc3 { bottom: 20px; left: -10px; animation-delay: -6s; }

/* ---------- Bandeau défilant ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.track { display: flex; gap: 34px; width: max-content; animation: scroll 38s linear infinite; font-family: Sora, sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--muted); }
.track i { font-style: normal; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 80px 0 20px; }
.stat { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: Sora, sans-serif; font-size: 2.3rem; font-weight: 800; color: var(--accent-text); }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0 20px; scroll-margin-top: 40px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 18px 0 14px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { position: relative; padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .2s; will-change: transform; }
.feat:hover { border-color: var(--accent); }
.f-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.45rem; color: var(--accent-ink); background: var(--accent); margin-bottom: 20px; transition: transform .3s; }
.feat:hover .f-ic { transform: rotate(-8deg) scale(1.08); }
.feat h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: .97rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; gap: 16px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.step:hover { border-color: var(--accent); }
.step .n { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: Sora, sans-serif; font-weight: 700; border: 1px solid var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .93rem; }

.connect { margin-top: 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 36px; border-radius: 28px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.connect h3 { font-size: 1.5rem; margin-bottom: 12px; }
.connect p { color: var(--muted); margin-bottom: 10px; }
.connect p b { color: var(--text); }
.code-box { text-align: center; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.code-box small { color: var(--muted); }
.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: .14em; margin: 8px 0 16px; color: var(--accent-text); }
.code-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.code-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: shrink 6s linear infinite; }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 26px; justify-content: center; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.plan:hover { transform: translateY(-6px); border-color: var(--accent); }
.plan h3 { font-size: 1.5rem; }
.plan-sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.price { display: flex; align-items: flex-start; gap: 4px; margin: 26px 0 10px; }
.price .cur { font-size: 1.4rem; font-weight: 700; margin-top: 8px; color: var(--muted); }
.price b { font-family: Sora, sans-serif; font-size: 3.6rem; font-weight: 800; line-height: 1; }
.price .per { align-self: flex-end; color: var(--muted); margin-bottom: 8px; }
.cap { display: inline-flex; align-self: flex-start; gap: 6px; align-items: baseline; padding: .45em .9em; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: .92rem; margin-bottom: 24px; }
.cap b { font-size: 1.15rem; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: .96rem; }
.plan li::before { content: "✓"; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--accent-soft); color: var(--accent-text); }
.plan li b { color: var(--text); }
.plan.featured { border: 2px solid var(--accent); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
.ribbon { position: absolute; top: -14px; right: 26px; padding: .35em 1em; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.plan.current { outline: 2px dashed var(--accent); outline-offset: 5px; }
.small-note { text-align: center; color: var(--faint); font-size: .85rem; margin-top: 22px; }

/* ---------- Installer ---------- */
.install { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.install h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 18px 0 14px; }
.install-text > p { color: var(--muted); margin-bottom: 26px; }
.lock { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 20px; border-radius: 18px; background: var(--warn-soft); border: 1px dashed var(--warn-line); }
.lock .btn { grid-column: 1 / -1; justify-self: start; }
.lock-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: var(--warn); background: var(--surface); }
.lock p { color: var(--muted); font-size: .92rem; }
.ok-line { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.ok-line b { color: var(--text); }
.ok-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: ping 2s infinite; }
.os-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 26px 0 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.os { padding: .45em 1em; border-radius: 999px; font-size: .88rem; color: var(--muted); transition: background-color .2s, color .2s; }
.os.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.os-steps { padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.os-steps b { color: var(--text); }
.kbd { display: inline-block; padding: 0 .4em; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); }

.install-visual { display: grid; place-items: center; }
.home { width: 250px; height: 440px; border-radius: 40px; padding: 26px 22px; background: var(--home); border: 8px solid var(--ph-frame); box-shadow: var(--shadow); display: flex; flex-direction: column; color: #fff; }
.home-time { text-align: center; font-family: Sora, sans-serif; font-weight: 700; font-size: 2.2rem; margin: 10px 0 22px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
.apps > i, .dock i { aspect-ratio: 1; border-radius: 13px; background: var(--home-app); }
.app-wazo { display: flex; flex-direction: column; align-items: center; gap: 4px; filter: grayscale(1); opacity: .45; transition: filter .5s, opacity .5s; }
.app-wazo img { width: 100%; border-radius: 13px; }
.app-wazo small { font-size: .55rem; }
.install.ready .app-wazo { filter: none; opacity: 1; animation: bounce 2.2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 10% { transform: translateY(-8px); } 20% { transform: translateY(0); } }
.dock { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px; border-radius: 22px; background: var(--home-dock); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent-text); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA final + pied ---------- */
.final { margin: 110px 0 80px; text-align: center; padding: 70px 30px; border-radius: 34px; background: var(--accent); color: var(--accent-ink); }
.final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.final p { opacity: .85; margin-bottom: 30px; font-size: 1.08rem; }
.final .btn-primary { background: var(--accent-ink); color: var(--accent); }
.final .btn-primary:hover { background: var(--bg-2); }
.foot { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.foot .muted { color: var(--faint); width: 100%; font-size: .8rem; }

/* ---------- Fenêtre de paiement ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(2, 5, 12, .6); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(440px, 100%); padding: 34px 30px 28px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; color: var(--muted); }
.x:hover { background: var(--surface-2); color: var(--text); }
.modal-card h3 { font-size: 1.6rem; margin: 14px 0 16px; }
.co-sum { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.co-sum b { color: var(--text); }
.co-price b { color: var(--accent-text); }
#coForm { display: grid; gap: 14px; }
#coForm label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
#coForm input { padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
#coForm input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.co-note { font-size: .8rem; color: var(--faint); text-align: center; }
.success { display: grid; place-items: center; margin: 4px 0 6px; }
.success svg { width: 84px; height: 84px; stroke: var(--accent); stroke-width: 3; }
.success circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s ease forwards; }
.success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
[data-step="done"] { text-align: center; }
[data-step="done"] p { color: var(--muted); margin-bottom: 24px; }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 120; padding: 12px 20px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: .92rem; animation: rise .3s; max-width: calc(100% - 32px); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 30px; }
  .lead { margin-inline: auto; }
  .hero-cta, .trust { justify-content: center; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .install, .connect { grid-template-columns: 1fr; }
  .fc1 { left: 0; } .fc2 { right: 0; } .fc3 { left: 10px; }
}
@media (max-width: 760px) {
  .links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--nav-bg); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s; z-index: -1; }
  .links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .nav.open .links { transform: none; }
  .burger { display: flex; }
  .sub-pill { display: none; }
  .features, .steps, .plans { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; }
  .ring { width: 340px; height: 340px; } .ring.r2 { width: 280px; height: 280px; }
  .phone { width: 270px; height: 560px; }
  .float-card { font-size: .78rem; padding: 10px 12px; }
  .fc-ic { width: 32px; height: 32px; }
  .fc1 { top: 30px; } .fc2 { bottom: 110px; } .fc3 { bottom: 10px; }
  .install, .connect { padding: 26px 20px; }
  .section { padding-top: 80px; }
  .stat b { font-size: 1.8rem; }
  .stat { padding: 20px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .nav-cta .btn { display: none; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Pages Conditions / Confidentialité ---------- */
.legal { max-width: 820px; padding: 120px 0 60px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 18px 0 8px; }
.legal-date { color: var(--faint); font-size: .9rem; margin-bottom: 34px; }
.legal section { margin-bottom: 40px; scroll-margin-top: 90px; }
.legal section > h2 { font-size: 1.4rem; margin-bottom: 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 12px; }
.legal b { color: var(--text); }
.legal a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin-bottom: 12px; }
.tldr { padding: 26px 28px; border-radius: 22px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tldr.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.tldr h2 { font-size: 1.25rem !important; }
.tldr li { color: var(--text) !important; }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; padding: 22px 26px; margin-bottom: 44px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.toc a { color: var(--muted) !important; text-decoration: none !important; font-size: .95rem; }
.toc a:hover { color: var(--accent-text) !important; }
.data-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .94rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--surface-2); font-weight: 600; }
.data-table td { color: var(--muted); background: var(--surface); }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr:last-child td { border-bottom: 0; }
.todo { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn-line); border-radius: 6px; padding: 0 .35em; font-weight: 600; }
.legal-links { padding-top: 10px; border-top: 1px solid var(--line); }
.foot-links a { color: var(--text); }
.foot-links a:hover { color: var(--accent-text); }

/* Case « J'accepte » dans la fenêtre de paiement */
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 0 !important; accent-color: var(--accent); }
.consent a { color: var(--accent-text); text-decoration: underline; }

/* Encadré transparence (accueil) */
.honest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.honest-item { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.honest-item h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.honest-item p { color: var(--muted); font-size: .94rem; }
.honest-item .f-ic { width: 42px; height: 42px; font-size: 1.15rem; margin: 0; }
.honest-item.risk .f-ic { background: var(--warn); color: var(--bg); }
.honest-more { text-align: center; margin-top: 22px; color: var(--muted); }
.honest-more a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .honest { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .toc { grid-template-columns: 1fr; }
  .tldr { padding: 20px; }
  .legal { padding-top: 100px; }
  .data-table { font-size: .86rem; }
  .data-table th, .data-table td { padding: 10px; }
  .legal-page .nav-cta .btn { display: inline-flex; }
}

/* Mission DMB Group */
.mission { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.mission h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 18px 0 16px; }
.mission-text p { color: var(--muted); margin-bottom: 14px; }
.mission-text p b { color: var(--text); }
.mission-text .btn { margin-top: 10px; }
.mission-list { list-style: none; display: grid; gap: 14px; }
.mission-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.mission-list .f-ic { width: 44px; height: 44px; font-size: 1.2rem; margin: 0; flex: none; }
.mission-list b { display: block; margin-bottom: 2px; }
.mission-list span { color: var(--muted); font-size: .94rem; }
.foot-org { color: var(--accent-text); font-weight: 600; }
@media (max-width: 900px) { .mission { grid-template-columns: 1fr; padding: 26px 20px; } }

/* ===== Photos : pour qui ===== */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.person { margin: 0; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.person img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; height: auto; }
.person figcaption { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.person figcaption b { color: var(--text); font-size: 1.05rem; }
.person figcaption span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .people { grid-template-columns: 1fr; }
  .person img { aspect-ratio: 4 / 3; }
}

/* Bandeau final : le mot en couleur doit rester lisible sur le fond vert */
.final .hl { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* ---------- Compte Google ---------- */
.acct-btn { height: 42px; min-width: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; font-weight: 600; transition: border-color .2s; }
.acct-btn:hover { border-color: var(--accent); }
.acct-btn .g { width: 18px; height: 18px; }
.acct-btn.in { padding: 0; width: 36px; height: 36px; min-width: 36px; overflow: hidden; border: 0; background: transparent; }
.acct-btn.in:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; }
.acct-initial { font-weight: 700; color: var(--accent-text); }
.btn-google { background: #ffffff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover { background: #f4f6f8; transform: translateY(-2px); }
.btn-google .g { width: 22px; height: 22px; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
[data-step="login"] { text-align: center; }
.login-logo { margin: 0 auto 6px; border-radius: 16px; }
.login-why { color: var(--muted); margin: -6px 0 22px; }
[data-step="login"] .co-note { margin-top: 16px; line-height: 1.5; }
.co-note a { color: var(--accent-text); text-decoration: underline; }
#coForm input[readonly] { color: var(--muted); background: var(--surface-2); }
.acc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.acc-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.acc-head h3 { margin: 0 0 2px !important; font-size: 1.3rem !important; }
.acc-head small { color: var(--muted); word-break: break-all; }
.acc-list { display: grid; gap: 1px; margin: 0 0 20px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.acc-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--surface); }
.acc-list dt { color: var(--muted); font-size: .9rem; }
.acc-list dd { text-align: right; font-size: .92rem; }
.acc-list dd small { color: var(--muted); }
[data-step="account"] .btn { margin-bottom: 10px; }
.link-danger { display: block; margin: 8px auto 0; color: #dc2626; font-size: .88rem; text-decoration: underline; }
.acc-confirm { margin-top: 12px; padding: 16px; border-radius: 14px; border: 1px solid #dc2626; background: var(--surface); }
.acc-confirm p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.acc-confirm-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.acc-confirm-btns .btn { margin: 0 !important; }
@media (max-width: 760px) {
  .acct-btn span { display: none; }
  .acct-btn { padding: 0; width: 40px; min-width: 40px; border: 0; background: transparent; }
  .acct-btn:hover { background: var(--accent-soft); }
  .nav-cta { gap: 4px; }
}

/* Choix de la formule dans la fenêtre de paiement */
.pick-hint { color: var(--muted); font-size: .9rem; margin: -6px 0 12px; }
.plan-pick { display: grid; gap: 10px; margin-bottom: 20px; }
.pick { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "dot name price" "dot cap price"; align-items: center; gap: 2px 12px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); text-align: left; transition: border-color .2s, background-color .2s; }
.pick:hover { border-color: var(--accent-line); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick-dot { grid-area: dot; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; }
.pick.on .pick-dot { border-color: var(--accent); }
.pick.on .pick-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pick-name { grid-area: name; font-weight: 700; }
.pick-cap { grid-area: cap; color: var(--muted); font-size: .85rem; }
.pick-price { grid-area: price; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pick-price b { color: var(--accent-text); font-size: 1.05rem; }

/* La fenêtre défile si l écran est trop petit (téléphones) */
.modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; }
