/* ============ Tokens (repris de lib/design/tokens.dart) ============ */
:root{
  --orange:        #FF922B;
  --orange-light:  #FFC078;
  --orange-pale:   #FFF4E6;
  --orange-dark:   #E8590C;

  --blue:          #1C7ED6;
  --blue-light:    #4DABF7;
  --blue-pale:     #E7F5FF;
  --blue-dark:     #1864AB;

  --green:         #2F9E44;
  --red:           #E03131;

  --g0:  #F8F9FA;
  --g1:  #F1F3F5;
  --g2:  #E9ECEF;
  --g3:  #DEE2E6;
  --g5:  #ADB5BD;
  --g7:  #495057;
  --g9:  #212529;

  --bg: #FBFBFC;
  --surface: #FFFFFF;
  --text: var(--g9);
  --text-dim: var(--g7);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 10px rgba(33,37,41,.06);
  --shadow-md: 0 12px 32px rgba(33,37,41,.10);
  --shadow-lg: 0 24px 60px rgba(33,37,41,.14);

  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:'Poppins',Inter,sans-serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
p{ margin:0 0 1em; color:var(--text-dim); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
.accent{ color:var(--orange); }

/* subtle grain to keep flat colors from feeling cheap */
.noise-veil{
  position:fixed; inset:0; pointer-events:none; z-index:1; opacity:.5;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--orange-pale) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 20%, var(--blue-pale) 0%, transparent 55%);
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:15px;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space:nowrap;
}
.btn-sm{ padding:9px 18px; font-size:14px; }
.btn-primary{
  background:linear-gradient(135deg,var(--orange),var(--orange-dark));
  color:#fff;
  box-shadow:0 10px 24px -8px rgba(232,89,12,.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -8px rgba(232,89,12,.6); }
.btn-primary:active{ transform:translateY(0); }
.btn-ghost{
  background:var(--surface); color:var(--text);
  border:1px solid var(--g3);
}
.btn-ghost:hover{ border-color:var(--orange); color:var(--orange-dark); transform:translateY(-2px); }
button.btn{ font-family:inherit; cursor:pointer; border:none; }
button.btn.btn-ghost{ border:1px solid var(--g3); }

/* ============ Scroll reveal — slides in brusquement from left/right ============ */
.reveal{
  opacity:0;
  transition:opacity .5s cubic-bezier(.19,1,.22,1), transform .5s cubic-bezier(.19,1,.22,1);
}
.reveal-left{ transform:translateX(-64px); }
.reveal-right{ transform:translateX(64px); }
.reveal-in{ opacity:1; transform:translateX(0); }

/* ============ Nav ============ */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(14px) saturate(160%);
  background:rgba(251,251,252,.75);
  border-bottom:1px solid transparent;
  transition:border-color .3s, box-shadow .3s;
}
.nav.scrolled{ border-color:var(--g2); box-shadow:0 6px 24px rgba(33,37,41,.05); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:32px; height:32px; border-radius:9px; }
.brand-word{ font-family:'Poppins',sans-serif; font-weight:700; font-size:19px; color:var(--g9); }
.brand-word em{ font-style:normal; color:var(--orange); }
.nav-links{ display:flex; gap:32px; }
.nav-links a{ font-size:14.5px; font-weight:500; color:var(--text-dim); transition:color .2s; }
.nav-links a:hover{ color:var(--orange-dark); }

/* ============ Hero ============ */
.hero{ padding:64px 0 40px; position:relative; z-index:2; overflow:hidden; }
.hero-video-bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero-video-bg video{ width:100%; height:100%; object-fit:cover; opacity:.28; }
.hero-video-bg::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(251,251,252,.35) 0%, var(--bg) 96%);
}
.hero-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;
}
.eyebrow{
  display:inline-block; font-size:13px; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--orange-dark);
  background:var(--orange-pale); padding:6px 14px; border-radius:999px; margin-bottom:18px;
}
.hero-copy h1{ font-size:clamp(34px,4.6vw,54px); color:var(--g9); }
.lede{ font-size:17px; max-width:46ch; }
.hero-actions{ display:flex; gap:14px; margin:26px 0 34px; flex-wrap:wrap; }
.hero-actions.center{ justify-content:center; }
.hero-stats{ display:flex; gap:34px; }
.hero-stats div{ display:flex; flex-direction:column; }
.hero-stats strong{ font-family:'Poppins',sans-serif; font-size:24px; color:var(--g9); }
.hero-stats span{ font-size:12.5px; color:var(--g5); }

/* phone mockup carousel — "book page" slide, center slide sharp, sides faded */
.hero-visual{ position:relative; display:flex; justify-content:center; animation:float 6s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-14px) } }
.phone-carousel{
  position:relative; width:270px; height:552px; perspective:1600px;
}
.phone-slide{
  position:absolute; top:0; left:50%; width:270px; height:552px;
  border-radius:44px; background:var(--g9); padding:12px; box-shadow:var(--shadow-lg);
  transform-style:preserve-3d; will-change:transform, opacity, filter;
  transition:transform .85s var(--ease), opacity .85s var(--ease), filter .85s var(--ease);
  transform:translate(-50%,0) scale(.55) rotateY(0deg); opacity:0; z-index:1; pointer-events:none;
}
.phone-slide.is-current{
  transform:translate(-50%,0) scale(1) rotateY(0deg);
  opacity:1; z-index:5; filter:none;
}
.phone-slide.is-prev{
  transform:translate(-142%,0) scale(.74) rotateY(32deg);
  opacity:.4; z-index:3; filter:blur(1px) brightness(.85);
}
.phone-slide.is-next{
  transform:translate(42%,0) scale(.74) rotateY(-32deg);
  opacity:.4; z-index:3; filter:blur(1px) brightness(.85);
}
.phone-notch{
  position:absolute; top:12px; left:50%; transform:translateX(-50%);
  width:90px; height:22px; background:var(--g9); border-radius:0 0 14px 14px; z-index:2;
}
.phone-screen{
  width:100%; height:100%; border-radius:34px; overflow:hidden; background:var(--g0); position:relative;
}
.phone-screen img{ width:100%; height:100%; object-fit:cover; object-position:top center; }

.dots{ display:flex; gap:6px; justify-content:center; margin-top:18px; }
.dots span{ width:6px; height:6px; border-radius:50%; background:var(--g3); transition:all .3s; }
.dots span.on{ background:var(--orange); width:18px; border-radius:3px; }

.float-chip{
  position:absolute; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); background:var(--surface);
}
.chip-mic{
  background:linear-gradient(135deg,var(--orange),var(--orange-dark));
  right:-6px; bottom:70px; animation:float 6s ease-in-out infinite; animation-delay:-2s;
}
.chip-mic svg{ width:24px; height:24px; }
.mic-pulse{
  position:absolute; inset:-8px; border-radius:50%; border:2px solid var(--orange-light);
  animation:pulse 2.2s ease-out infinite;
}
@keyframes pulse{ 0%{ transform:scale(.8); opacity:.9 } 100%{ transform:scale(1.5); opacity:0 } }
.chip-check{ left:-14px; top:60px; animation:float 5s ease-in-out infinite; animation-delay:-1s; }
.chip-check svg{ width:22px; height:22px; }

/* ============ Logos strip ============ */
.logos-strip{ border-top:1px solid var(--g2); border-bottom:1px solid var(--g2); padding:18px 0; position:relative; z-index:2; }
.logos-strip p{ margin:0; text-align:center; font-size:13px; color:var(--g5); letter-spacing:.02em; }

/* ============ Features ============ */
.features{ padding:96px 0; position:relative; z-index:2; }
.features h2{ text-align:center; font-size:clamp(26px,3vw,36px); margin-bottom:48px; color:var(--g9); }
.feature-grid{
  display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:1fr; gap:20px;
}
.fcard{
  background:var(--surface); border:1px solid var(--g2); border-radius:var(--radius-md);
  padding:26px; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.fcard:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.fcard-lg{ grid-column:span 2; grid-row:span 2; background:linear-gradient(160deg,var(--orange-pale),var(--surface) 60%); display:flex; flex-direction:column; justify-content:flex-end; }
.fcard-lg h3{ font-size:22px; }
.fcard-lg p{ font-size:15px; }
.ficon{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.fcard-lg .ficon{ width:56px; height:56px; border-radius:16px; }
.ficon svg{ width:22px; height:22px; }
.fcard-lg .ficon svg{ width:26px; height:26px; }
.fi-orange{ background:var(--orange-pale); color:var(--orange-dark); }
.fi-blue{ background:var(--blue-pale); color:var(--blue-dark); }
.fi-green{ background:#EBFBEE; color:var(--green); }
.fi-red{ background:#FFF0F0; color:var(--red); }
.fcard h3{ font-size:16.5px; margin-bottom:4px; color:var(--g9); }
.fcard p{ font-size:13.5px; margin-bottom:0; }

/* ============ Showcase / slideshow reel ============ */
.showcase{ padding:20px 0 100px; position:relative; z-index:2; }
.showcase-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.showcase-head h2{ font-size:clamp(26px,3vw,36px); color:var(--g9); }
.showcase-nav{ display:flex; gap:10px; }
.snav{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--g3); background:var(--surface);
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.25s;
}
.snav svg{ width:18px; height:18px; }
.snav:hover{ background:var(--orange); border-color:var(--orange); color:#fff; }

.reel{ overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding-bottom:6px; }
.reel::-webkit-scrollbar{ display:none; }
.reel-track{ display:flex; gap:22px; width:max-content; }
.reel-item{
  scroll-snap-align:start; width:230px; margin:0; background:var(--surface);
  border:1px solid var(--g2); border-radius:var(--radius-md); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reel-item:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.reel-item img{ width:100%; display:block; }
.reel-item figcaption{ padding:12px 16px; font-size:13.5px; font-weight:600; color:var(--g9); }

/* ============ Steps ============ */
.steps{ padding:20px 0 100px; position:relative; z-index:2; }
.steps-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.step{ padding:30px 26px; border-radius:var(--radius-md); background:var(--surface); border:1px solid var(--g2); }
.step-no{ font-family:'Poppins',sans-serif; font-weight:700; font-size:13px; color:var(--orange); letter-spacing:.05em; }
.step h3{ margin-top:10px; font-size:19px; color:var(--g9); }
.step p{ font-size:14px; margin-bottom:0; }

/* ============ CTA ============ */
.cta{
  padding:100px 0; text-align:center; position:relative; z-index:2;
  background:linear-gradient(180deg,var(--surface),var(--orange-pale) 140%);
  border-top:1px solid var(--g2);
}
.cta-mark{ width:56px; height:56px; margin:0 auto 22px; border-radius:16px; }
.cta h2{ font-size:clamp(28px,3.4vw,40px); color:var(--g9); }
.cta p{ font-size:15px; }

/* ============ Buy / acheter le projet complet ============ */
.buy{
  padding:100px 0; position:relative; z-index:2;
  background:linear-gradient(180deg,var(--g0),var(--surface));
  border-top:1px solid var(--g2);
}
.buy-head{ max-width:640px; margin:0 auto 40px; text-align:center; }
.buy-head h2{ font-size:clamp(26px,3vw,36px); color:var(--g9); }
.buy-form{
  max-width:680px; margin:0 auto; background:var(--surface); border:1px solid var(--g2);
  border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; gap:18px;
}
.buy-form label{
  display:flex; flex-direction:column; gap:7px; font-size:13.5px; font-weight:600; color:var(--g7);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.buy-form input, .buy-form select, .buy-form textarea{
  font-family:'Inter',sans-serif; font-size:14.5px; font-weight:400; color:var(--text);
  border:1px solid var(--g3); border-radius:var(--radius-sm); padding:12px 14px;
  background:var(--g0); transition:border-color .2s, box-shadow .2s;
}
.buy-form input:focus, .buy-form select:focus, .buy-form textarea:focus{
  outline:none; border-color:var(--orange); box-shadow:0 0 0 3px var(--orange-pale);
}
.buy-form textarea{ resize:vertical; min-height:96px; }
.buy-form button[type="submit"]{ align-self:flex-start; margin-top:6px; }
.form-status{ margin:0; font-size:13.5px; min-height:1.2em; }
.form-status.is-success{ color:var(--green); }
.form-status.is-error{ color:var(--red); }

/* ============ Footer ============ */
.footer{ padding:36px 0; position:relative; z-index:2; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.footer-logo{ height:26px; width:auto; }
.footer p{ margin:0; font-size:13px; color:var(--g5); }
.footer-link{ color:var(--orange-dark); font-weight:600; text-decoration:none; transition:color .2s; }
.footer-link:hover{ color:var(--orange); text-decoration:underline; }

/* ============ "En savoir plus" modal ============ */
.modal-overlay{
  position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center;
  background:rgba(20,22,24,.55); backdrop-filter:blur(4px); padding:24px;
  opacity:0; transition:opacity .25s var(--ease);
}
.modal-overlay[hidden]{ display:none; }
.modal-overlay.open{ opacity:1; }
.modal{
  position:relative; width:100%; max-width:640px; max-height:85vh; overflow-y:auto;
  background:var(--surface); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
  padding:40px 36px; transform:translateY(24px) scale(.98); transition:transform .3s var(--ease);
}
.modal-overlay.open .modal{ transform:translateY(0) scale(1); }
.modal-close{
  position:absolute; top:18px; right:18px; width:36px; height:36px; border-radius:50%;
  border:1px solid var(--g3); background:var(--surface); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--g7); transition:.2s;
}
.modal-close svg{ width:16px; height:16px; }
.modal-close:hover{ background:var(--orange); border-color:var(--orange); color:#fff; }
.modal-head{ margin-bottom:28px; padding-right:36px; }
.modal-head h2{ font-size:clamp(21px,2.6vw,27px); color:var(--g9); }
.modal-body{ display:flex; flex-direction:column; gap:28px; }
.modal-item{
  display:grid; grid-template-columns:auto 84px 1fr; gap:16px; align-items:center;
  padding-bottom:24px; border-bottom:1px solid var(--g2);
}
.modal-item:last-child{ border-bottom:none; padding-bottom:0; }
.modal-item-no{ font-family:'Poppins',sans-serif; font-weight:700; font-size:13px; color:var(--orange); }
.modal-item-media{ width:84px; height:150px; border-radius:14px; overflow:hidden; border:1px solid var(--g2); box-shadow:var(--shadow-sm); }
.modal-item-media img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
.modal-item-text h3{ font-size:16px; margin-bottom:4px; color:var(--g9); }
.modal-item-text p{ font-size:13.5px; margin-bottom:0; }

/* ============ Responsive ============ */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; margin-bottom:20px; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .fcard-lg{ grid-column:span 2; grid-row:span 1; }
  .steps-grid{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .form-row{ grid-template-columns:1fr; }
}
@media (max-width:520px){
  .hero{ padding:36px 0 24px; }
  .phone-carousel, .phone-slide{ width:230px; height:470px; }
  .phone-slide.is-prev{ transform:translate(-128%,0) scale(.7) rotateY(32deg); }
  .phone-slide.is-next{ transform:translate(28%,0) scale(.7) rotateY(-32deg); }
  .feature-grid{ grid-template-columns:1fr; }
  .fcard-lg{ grid-column:span 1; }
  .hero-stats{ gap:22px; }
  .reel-item{ width:190px; }
  .buy-form{ padding:26px; }
  .modal{ padding:28px 22px; }
  .modal-item{ grid-template-columns:auto 64px 1fr; }
  .modal-item-media{ width:64px; height:114px; }
}
