/* Ergreg — site vitrine. Même univers que l'application : fond sombre, vert-jaune du logo, bleu clair. */
:root {
  --bg: #0b1220; --bg2: #111a2c; --card: #16213a; --line: rgba(255,255,255,.08);
  --text: #eef2f8; --muted: #9aa4b1; --accent: #4fc3f7; --lime: #c7d300; --ok: #66bb6a; --hr: #ef5350;
  --radius: 16px; --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }
section { padding: 4rem 0; }
section.alt { background: var(--bg2); }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Langue : on affiche .fr ou .en selon la classe sur <html> */
html[lang="fr"] .en, html[lang="en"] .fr { display: none !important; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11,18,32,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.logo { display: inline-flex; align-items: center; background: #0a0a0a; border-radius: 10px; padding: .35rem .6rem; }
.logo img { height: 30px; width: auto; display: block; }
nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--accent); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--muted); padding: .3rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }
.lang-switch button.on { background: var(--accent); color: #062033; }
@media (max-width: 720px) {
  nav a:not(.cta) { display: none; }
  .top .wrap, nav { flex-wrap: nowrap; }
  nav { gap: .5rem; }
  nav .cta { padding: .45rem .7rem; font-size: .85rem; white-space: nowrap; }
  .logo img { height: 24px; }
}

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #062033; border-color: transparent; }
.btn.lime { background: var(--lime); color: #0a0a0a; border-color: transparent; }
.btn.small { padding: .5rem .9rem; font-size: .9rem; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0; }
.soon { font-size: .75rem; background: rgba(255,255,255,.12); border-radius: 999px; padding: .1rem .5rem; margin-inline-start: .2rem; }

/* ---------- héros ---------- */
.hero { padding: 4.5rem 0 3rem; background: radial-gradient(1200px 600px at 20% -10%, rgba(79,195,247,.18), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(199,211,0,.14), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
/* Vidéo de présentation en tête de page */
.hero-video { margin: 0; position: relative; }
.hero-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(79,195,247,.15); cursor: pointer; object-fit: cover; }
.hero-video .vid-full { position: absolute; right: .8rem; top: .8rem; background: rgba(11,18,32,.75); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.hero-video:hover .vid-full, .hero-video:focus-within .vid-full { opacity: 1; }
.hero-video figcaption { color: var(--muted); font-size: .9rem; margin-top: .7rem; text-align: center; }
.hero-video.paused::after { content: "▶"; position: absolute; left: 50%; top: calc(50% - 1.2rem); transform: translate(-50%, -50%); width: 4.2rem; height: 4.2rem; border-radius: 50%; background: rgba(79,195,247,.9); color: #062033; display: grid; place-items: center; font-size: 1.6rem; pointer-events: none; }
@media (max-width: 860px) { .hero-video .vid-full { opacity: 1; } }
.hero .kicker { color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.hero ul.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; color: var(--muted); }
.hero ul.checks li::before { content: "✔"; color: var(--ok); margin-inline-end: .6rem; font-weight: 700; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Téléphone */
.phone { position: relative; width: min(300px, 80vw); margin: 0 auto; border-radius: 36px; padding: 12px; background: #0a0a0a; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 2px #2a2f3a; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0a0a0a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone img { display: block; border-radius: 26px; width: 100%; }
.phone.small { width: 220px; padding: 8px; border-radius: 28px; }
.phone.small img { border-radius: 20px; }
.phone.small::before { width: 80px; height: 16px; }

/* ---------- cartes ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card .ico { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.card p { color: var(--muted); margin: 0; }
.card.g1 { background: linear-gradient(135deg, #16213a, #1d3157); }
.card.g2 { background: linear-gradient(135deg, #16213a, #17384a); }
.card.g3 { background: linear-gradient(135deg, #1f2238, #3a2f1c); }
.card.g4 { background: linear-gradient(135deg, #1c2140, #2e2454); }
.card.g5 { background: linear-gradient(135deg, #1b2238, #3b1f2c); }
.card.g6 { background: linear-gradient(135deg, #15263a, #13413d); }

.promises { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.promise { border-inline-start: 4px solid var(--lime); padding: .2rem 1.2rem; }
.promise h3 { color: var(--lime); }
.promise p { color: var(--muted); margin: 0; }

/* ---------- galerie ---------- */
.gallery { display: flex; gap: 1.5rem; overflow-x: auto; padding: 1rem .5rem 1.5rem; scroll-snap-type: x mandatory; }
.gallery figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; text-align: center; }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* ---------- zones ---------- */
.zone-strip { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 1rem 0; }
.zone-strip span { flex: 1; }

/* ---------- deux colonnes ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- étapes ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.2rem 3.4rem; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 1rem; top: 1.1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--lime); color: #0a0a0a; font-weight: 800; display: grid; place-items: center; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- compatibilité ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .95rem; }
.badge.yes { border-color: rgba(102,187,106,.5); }
.flags { color: var(--muted); font-size: .95rem; line-height: 1.9; }

/* ---------- FAQ ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: .7rem 0 0; }

/* ---------- pied ---------- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
