:root {
  /* Charte Vopla (AppColors) */
  --green: #48B732;
  --green-dark: #369926;
  --gold: #EFC514;
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --text: #121212;
  --muted: #6B6B6B;
  --border: #E0E0E0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .brand img { height: 30px; display: block; }
.nav .cta { background: var(--green); color: #fff; padding: 10px 20px; border-radius: 22px; font-weight: 700; font-size: 14px; transition: background .15s; }
.nav .cta:hover { background: var(--green-dark); }

/* Hero (2 colonnes : texte + téléphone) */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 48px;
  padding: 72px 24px 64px;
}
.hero-text h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.03;
}
.hero-text .sub { font-size: clamp(18px, 2.6vw, 23px); font-weight: 600; margin-top: 20px; }
.hero-text .lead { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 480px; }

/* Store buttons */
.stores { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: #fff;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 16px;
  transition: transform .15s, opacity .15s;
}
.store:hover { transform: translateY(-1px); opacity: .92; }
.store .store-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store .store-txt small { color: rgba(255,255,255,.66); font-weight: 500; font-size: 11px; }
.store .soon { color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; align-self: center; }

/* Téléphone (mockup animé) */
.hero-visual { display: flex; justify-content: center; }
.device {
  width: 288px; max-width: 78vw; aspect-ratio: 9 / 19.3;
  background: #121212; border-radius: 46px; padding: 11px;
  box-shadow: 0 30px 70px rgba(18,18,18,.30), 0 8px 22px rgba(18,18,18,.18);
  position: relative;
  isolation: isolate;
}
.device::before {
  content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #121212; border-radius: 0 0 16px 16px; z-index: 2;
}
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.device-screen::after { content: ""; position: absolute; inset: 0; border-radius: 36px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.20); pointer-events: none; z-index: 20; }

/* Maquette de l'app (feed sombre qui défile dans le tel) */
.app { position: relative; width: 100%; height: 100%; background: #121212; overflow: hidden; }
.app-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: center; gap: 18px;
  padding: 48px 0 12px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55);
  background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
}
.app-top .tab.on { color: #fff; }
.app-top .tab.on::after { content: ""; display: block; height: 2px; background: var(--green); border-radius: 2px; margin-top: 4px; }

.feed { width: 100%; height: 300%; animation: feedSwipe 12s cubic-bezier(.72,0,.28,1) infinite; }
.slide { position: relative; width: 100%; height: 33.3333%; overflow: hidden; }
.slide .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.15) 46%, transparent 70%); }

.rail { position: absolute; right: 12px; bottom: 96px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; }
.rail .act { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rail .act svg { width: 25px; height: 25px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.rail .act b { font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

.info { position: absolute; left: 16px; right: 62px; bottom: 24px; z-index: 3; color: #fff; }
.info .plate { font-size: 16px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.info .resto { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 3px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.info .note { display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.20); padding: 3px 10px; border-radius: 20px; }
.info .note b { color: #7BE05E; }
.info .who { display: flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 12.5px; font-weight: 600; }
.info .who .ava { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--gold)); border: 1.5px solid #fff; flex: 0 0 auto; }
.info .who .v { height: 15px; }

@keyframes feedSwipe {
  0%, 30%   { transform: translateY(0); }
  36%, 63%  { transform: translateY(-33.3333%); }
  69%, 100% { transform: translateY(-66.6666%); }
}

/* Eyebrow */
.eyebrow {
  color: var(--green); font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: .10em; text-align: center;
}

/* Étapes (comment ça marche) */
.steps { padding: 48px 24px 96px; }
.step { display: flex; gap: 24px; align-items: flex-start; max-width: 680px; margin: 40px auto 0; }
.step .num {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 900;
  color: var(--green); border: 1.5px solid var(--green);
}
.step .step-body h3 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.01em; }
.step .step-body p { color: var(--muted); font-size: 16px; margin-top: 8px; }

/* Bande finale */
.closing {
  text-align: center; margin: 0 auto 96px; background: var(--surface);
  border-radius: 28px; padding: 64px 24px; max-width: 1040px;
}
.closing h2 { font-size: clamp(26px, 5vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.closing p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.closing .stores { margin-top: 28px; justify-content: center; }

/* Section Capture (2e téléphone : caméra animée) */
.capture { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 48px; padding: 24px 24px 96px; }
.capture .eyebrow { text-align: left; }
.capture-text h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -0.02em; margin-top: 6px; }
.capture-text p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 440px; }

.cam { position: absolute; inset: 0; }
.cam .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-top { position: absolute; top: 22px; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cam-top .rec { width: 8px; height: 8px; border-radius: 50%; background: #E42313; animation: recBlink 1.4s steps(1) infinite; }
@keyframes recBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: .2; } }
.cam-focus { position: absolute; top: 47%; left: 50%; transform: translate(-50%, -50%); width: 58%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.85); border-radius: 14px; z-index: 3; animation: focusPulse 3s ease-in-out infinite; }
@keyframes focusPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; } 50% { transform: translate(-50%, -50%) scale(.92); opacity: 1; } }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 4; pointer-events: none; animation: camFlash 6s ease-out infinite; }
@keyframes camFlash { 0%, 47% { opacity: 0; } 50% { opacity: .9; } 57%, 100% { opacity: 0; } }
.cam-hint { position: absolute; left: 50%; bottom: 114px; transform: translateX(-50%); z-index: 5; background: rgba(0,0,0,.45); color: rgba(255,255,255,.85); font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.cam-bottom { position: absolute; bottom: 24px; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 40px; }
.cam-side { color: rgba(255,255,255,.92); display: flex; }
.cam-side.flash { color: var(--gold); }
.cam-side svg { width: 25px; height: 25px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.shutter-wrap { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.shutter-wrap .ring { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.ring circle { fill: none; stroke-width: 4; }
.ring .ring-bg { stroke: rgba(255,255,255,.30); }
.ring .ring-fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 257.6; stroke-dashoffset: 257.6; transform: rotate(-90deg); transform-origin: 50% 50%; animation: recFill 5s ease-in-out infinite; }
@keyframes recFill { 0%, 12% { stroke-dashoffset: 257.6; } 82%, 100% { stroke-dashoffset: 0; } }
.shutter { width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.10); animation: shutterPulse 5s ease-in-out infinite; }
@keyframes shutterPulse { 0%, 12%, 100% { transform: scale(1); } 45% { transform: scale(.9); } }

/* Section Contact (formulaire) */
.contact { max-width: 720px; padding: 32px 24px 96px; text-align: center; }
.contact h2 { font-size: clamp(26px, 5vw, 40px); font-weight: 900; letter-spacing: -0.02em; margin-top: 6px; }
.cform { margin-top: 28px; text-align: left; display: grid; gap: 16px; position: relative; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text); }
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform input, .cform select, .cform textarea { font: inherit; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.cform textarea { resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(72,183,50,.16); }
.cform .consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 500; color: var(--muted); font-size: 13px; }
.cform .consent input { width: auto; margin-top: 2px; }
.cform .consent a { color: var(--green); }
.cform button { justify-self: start; background: var(--green); color: #fff; border: 0; font: inherit; font-weight: 800; font-size: 16px; padding: 14px 30px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.cform button:hover { background: var(--green-dark); }
.cform button:disabled { opacity: .6; cursor: default; }
.cform-status { font-size: 14px; font-weight: 700; margin: 2px 0 0; }
.cform-status.ok { color: var(--green-dark); }
.cform-status.err { color: #E42313; }
.contact-direct { margin-top: 22px; color: var(--muted); font-size: 14px; }
.contact-direct a { color: var(--text); font-weight: 600; }
.contact-direct a:hover { color: var(--green); }
.cform-rgpd { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; font-weight: 400; }
.cform-rgpd a { color: var(--green); }
.cform label .opt { font-weight: 500; color: var(--muted); font-size: 12px; }

/* Ancrages : compenser le header sticky lors du défilement */
#telecharger { scroll-margin-top: 92px; }
#contact { scroll-margin-top: 84px; }

/* Page de partage */
.share { max-width: 560px; margin: 0 auto; padding: 40px 24px 72px; text-align: center; }
.share .media { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.share h1 { font-size: 30px; margin-top: 22px; font-weight: 900; }
.share .resto { color: var(--muted); font-size: 16px; margin-top: 4px; }
.share .note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: var(--surface); border: 1px solid var(--border); padding: 10px 18px; border-radius: 30px; font-weight: 800; }
.share .note b { color: var(--green); }
.btn-primary { display: block; background: var(--green); color: #fff; font-weight: 800; font-size: 17px; padding: 16px; border-radius: 16px; margin-top: 28px; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { display: block; color: var(--muted); margin-top: 14px; font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 24px; color: var(--muted); font-size: 14px; }
footer .wrap { padding: 0; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
footer .links a:hover { color: var(--text); }
footer .bottom { margin-top: 18px; opacity: .8; text-align: center; }

/* Responsive */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-top: 56px; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .hero-visual { order: 2; }
  .capture { grid-template-columns: 1fr; text-align: center; }
  .capture .eyebrow { text-align: center; }
  .capture-text p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .capture .hero-visual { order: 0; }
  .cform .two { grid-template-columns: 1fr; }
  .cform button { justify-self: center; }
}
