:root {
  --navy: #002961; --navy-2: #0b3d8a; --blue: #1e88e5; --sky: #e8f3ff; --ink: #0d1b2a; --muted: #5b6b7b;
  --bg: #ffffff; --bg-alt: #f4f8fc; --line: #dde6f0; --red: #e74c3c; --radius: 16px; --shadow: 0 10px 30px rgba(0, 41, 97, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: #2b3a4a; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--blue); margin-bottom: .4em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
.bars { top: 19px; } .bars::before { top: -6px; left: 0; } .bars::after { top: 6px; left: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy-2)); color: #fff; box-shadow: 0 8px 20px rgba(30, 136, 229, .3); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }
.pill { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 600; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 12px; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #dbeeff 0%, transparent 60%), linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%); padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-logo { width: 240px; margin-bottom: 12px; }
.hero-phone { display: flex; justify-content: center; }

/* Téléphone */
.phone { width: 300px; aspect-ratio: 9 / 19.4; border-radius: 40px; background: #0d1117; padding: 11px; box-shadow: var(--shadow), inset 0 0 0 2px #2a3340; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone.small { width: 230px; border-radius: 32px; padding: 9px; }
.phone.small img { border-radius: 24px; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { text-align: center; margin-bottom: 36px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: 0 4px 14px rgba(0, 41, 97, .05); }
.card p { margin: 0; color: #2b3a4a; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); margin-bottom: 16px; position: relative; }
.icon::after { content: ""; position: absolute; inset: 11px; border-radius: 6px; background: var(--blue); }
.icon-map::after { clip-path: polygon(0 100%, 30% 20%, 55% 60%, 70% 35%, 100% 100%); border-radius: 0; }
.icon-qr::after { background: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 9px), repeating-linear-gradient(0deg, var(--blue) 0 5px, transparent 5px 9px); background-blend-mode: multiply; }
.icon-hat::after { background: var(--red); border-radius: 50% 50% 8px 8px; }
.icon-lock::after { border-radius: 4px; inset: 16px 13px 11px; box-shadow: 0 -8px 0 -3px var(--blue); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); }
.steps .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: #2b3a4a; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gallery figcaption { color: var(--muted); font-size: .92rem; text-align: center; }
.chips { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; display: inline-flex; gap: 8px; align-items: baseline; }
.chip span { color: var(--muted); font-size: .85rem; }
.download { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 100%); color: #fff; }
.download h2, .download .lead, .download .fine { color: #fff; }
.download .lead { opacity: .9; }
.download .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* Page d'invitation */
.join .code-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--sky); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.join .label { color: var(--muted); font-weight: 600; }
.join .code { font-size: 2rem; font-weight: 800; letter-spacing: .25em; color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Textes légaux */
.prose h2 { text-align: left; font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-title { font-size: 1rem; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.by { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.by img { width: 140px; }
.copyright { margin-top: 28px; color: var(--muted); font-size: .85rem; }

@media (max-width: 980px) {
  .features, .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 6px; }
  .nav a { padding: 10px 6px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .features, .steps, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .phone { width: 250px; }
}
