@font-face {
  font-family: "DM Sans";
  src: url("./font/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./font/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./font/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./font/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #5E86FF;
  --white: #FFFFFF;
  --black: #0B0C0E;
  --grey: #747A8B;
  --stroke: rgba(94, 134, 255, 0.35);
  --backbutton: rgba(94, 134, 255, 0.07);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--black);
  color: var(--white);
  letter-spacing: -0.01em;
}

html, body { width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Containers width */
.site-wrap {
  width: 80vw;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.site-wrap-60 {
  width: 60vw;
  margin: 0 auto;
  padding: 0;
  padding-left: 20px;
  padding-right: 20px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { 
    opacity: 0;
    transform: translateY(-20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from { transform: scale(0.98); }
  to { transform: scale(1); }
}

/* HERO plein écran */
.hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
}
.gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeIn 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, #0B0C0E 0%, rgba(11,12,14,0.8) 15%, rgba(11,12,14,0) 30%); z-index: 2; }
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.8s;
}
.hero-content {
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.6s;
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
}
.hero-content {
  display: flex;
  flex-direction: column;
}
.hero-cta {
  width: fit-content;
  margin: 0 auto;
}

.hero-image-wrapper {
  order: -1;
  position: relative;
  z-index: 0;
}
.hero-content > h1,
.hero-content > p,
.hero-content > .app-stores,
.hero-content > .btn { position: relative; z-index: 1; }

.hero-image {
  width: 260px;
  height: auto;
  margin: 0 auto;
  margin-bottom: -4rem;
  display: block;
  filter: 
    drop-shadow(0 0 2px rgba(94, 134, 255, 0.4))
    drop-shadow(0 0 4px rgba(94, 134, 255, 0.3))
    drop-shadow(0 0 8px rgba(94, 134, 255, 0.2))
    drop-shadow(0 0 16px rgba(94, 134, 255, 0.1));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

h1 { 
  color: var(--white); 
  font-size: 2.75rem; 
  font-weight: 700; 
  line-height: 2.5rem; 
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
h2 { color: var(--white); font-size: 2.25rem; font-weight: 700; line-height: 2.5rem; }
h3 { color: var(--white); font-size: 1.875rem; font-weight: 700; line-height: 2.25rem; }
p {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.625rem; /* 26px */
  color: var(--white);
}
.subtitle {
  font-size: 0.9375rem;
  line-height: 1.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.hero-description {
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1.625rem;
  margin: 0 auto 1rem;
  max-width: 620px;
}
.app-stores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.store-link img { width: 100px; height: auto; transition: opacity 0.3s ease; }
.store-link:hover img { opacity: 0.8; }

/* Boutons */
.btn {
  display: inline-block;
  background-color: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 40px;
  border: 1px solid var(--blue);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  transition: all 0.25s ease;
}
.btn:hover { background-color: transparent; color: var(--blue); }
.btn-inverse { background-color: var(--white); color: var(--black); border-color: var(--white); }
.btn-inverse:hover { background-color: var(--blue); color: var(--white); border-color: var(--blue); }

/* Header CTA */
.header-cta { display: inline-flex; align-items: center; gap: 8px; }
.header-cta .icon-phone { width: 16px; height: 16px; filter: invert(1); display: none; }
.header-cta .label-mobile { display: none; }
.header-cta .label-desktop { display: inline; }

/* Header */
.site-header { 
  position: fixed;
  width: 100%;
  height: 24px; 
  top: 0; 
  z-index: 10; 
  background: transparent; 
  padding: calc(12px + var(--safe-top)) 0 12px 0; 
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.6s ease forwards 1.8s;
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; width: 80vw; margin-left: auto; margin-right: auto; }
.site-logo { height: 24px; }

/* SECTION 2 - Bénéfices */
.benefits { margin-top: 80px;padding: 72px 0; min-height: 60vh; display: none; align-items: center; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 180px)); gap: 24px; justify-content: center; }
.about .benefits-grid { margin-top: 48px; width: 100%; margin-left: auto; margin-right: auto; gap: 12px; justify-content: center; }
.benefit-card { background: var(--backbutton); border: 1px solid var(--stroke); border-radius: 14px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; width: 100%; max-width: 180px; margin: 0 auto; }
.benefit-card img { width: 40px; height: 40px; }
.benefit-card span { color: var(--white); font-weight: 600; }

/* SECTION 3 - Intro */
.about { position: relative; padding: 96px 0 64px; display: flex; align-items: center; min-height: 100svh; overflow: visible; }
.about .site-wrap { text-align: center; }
.about .lead { margin: 12px auto 0; max-width: 900px; color: var(--white); font-size: 0.9375rem; line-height: 1.7; }
.about::before { content: none; }
.accent { color: var(--blue); }

/* SECTION 4 - Scrollytelling */
.scrolly { position: relative; padding: 0; }
.scrolly-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0px; align-items: start; }
.scrolly-steps { position: relative; }
.step { 
  min-height: 100svh;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  gap: 12px; 
  opacity: 1;
  padding: 0 20px;
  position: relative;
}
.step .actions { margin-top: 12px; }
.scrolly-visual { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; z-index: 2; }
.scrolly-visual .sticky { position: static; height: 100%; display: flex; align-items: center; }
.scrolly-visual .frame {
  position: relative;
  width: 50vw;
  height: 70vh;
  margin-left: 0;
  border-radius: 24px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrolly-visual .image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 40px rgba(94,134,255,0.35)) drop-shadow(0 0 32px rgba(94,134,255,0.2));
}

.scrolly-visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.22s ease; /* switch plus vif */
  pointer-events: none;
}

.scrolly-visual img.active {
  opacity: 1;
}

/* SECTION 5 - Études carrousel */
.studies { padding: 72px 0; position: relative; }
.studies h2 { text-align: center; }
.studies h2 .accent { color: var(--blue); }
.carousel { margin-top: 24px; width: 100vw; margin-left: calc(50% - 50vw); display: flex; gap: 48px; overflow: hidden; padding-bottom: 8px; scrollbar-width: none; position: relative; }
.carousel::-webkit-scrollbar { display: none; }
.study-card { 
  background: var(--backbutton); 
  border: 1px solid var(--stroke); 
  border-radius: 14px; 
  padding: 20px; 
  flex: 0 0 calc((100vw - 48px) / 2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.study-card .subtitle { 
  order: 1;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 400;
}
.study-card .quote { 
  color: var(--white); 
  font-weight: 300;
  font-size: 0.8rem;
  order: 0;
}
.study-card a { 
  color: var(--grey); 
  text-decoration: underline;
  order: 2;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  /* Boutons généraux plus grands (sauf header & pricing) */
  .btn { padding: 10px 18px; font-size: 1rem; }
  .pricing .btn { padding: 8px 14px; font-size: 0.9rem; }
  .site-wrap, .site-wrap-60 { width: 94%; padding-left: 20px; padding-right: 20px; margin-left: auto; margin-right: auto; }
  .about .benefits-grid { width: 100%; }
  h1 { font-size: 1.7rem; line-height: 1.8rem; }
  h2 { font-size: 1.5rem; line-height: 1.6rem; }
  h3 { font-size: 1.3rem; line-height: 1.4rem; }
  .hero-image { width: 22vh; }
  .store-link img { width: 100px; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .site-logo { height: 20px; }
  .site-header .btn { padding: 6px 12px; font-size: 0.82rem; border-radius: 32px; }
  .site-header .btn-inverse { background: var(--white); color: var(--black); border-color: var(--white); }
  .header-cta .icon-phone { display: inline; filter: none; }
  .header-cta .label-mobile { display: inline; }
  .header-cta .label-desktop { display: none; }
  .site-header { position: fixed; top: 0; left: 0; right: 0; margin-bottom: 0; z-index: 100; }
  .benefit-card { width: 100%; max-width: none; padding: 24px; }
  .about .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scrolly { overflow: visible; }
  .scrolly-inner { display: block; width: 100%; margin: 0; }
  .scrolly-visual { 
    position: sticky; 
    top: 0%; 
    transform: translateY(-10%); 
    height: 50vh; 
    width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 5; 
  }
  .scrolly-visual .sticky { 
    position: static;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .scrolly-visual .frame { width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
  .scrolly-visual .image-container { filter: drop-shadow(0 0 24px rgba(94,134,255,0.25)); height: 100%; width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; position: relative; }
  .scrolly-visual img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center center; }
  .scrolly-visual .sticky { width: 100%; min-width: 100%; display: flex; align-items: center; justify-content: center; }
  .scrolly-visual .image-container img:first-child { opacity: 1; }
  .scrolly-steps { display: flex; flex-direction: row; gap: 12px; will-change: transform; }
  .step { min-height: 50svh; min-width: 94vw; justify-content: center; scroll-margin-top: 18vh; padding-top: 8vh; }
  .step .subtitle { margin-top: 8px; }
  /* Testimonials carrousel: plein écran et auto-scroll opérationnel */
  .carousel { width: 100vw; margin-left: calc(50% - 50vw); gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .study-card { flex: 0 0 94%; }
  .pricing .site-wrap { width: 94%; max-width: none; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .price-card { max-width: none; width: 100%; }
  /* Pages annexes: largeur 92% */
  .site-wrap-60.legal-content { width: 94%; max-width: none; }
}

@media (max-width: 768px) {
  .pricing .site-wrap { width: 94%; }
}

/* SECTION 6 - Pricing */
.pricing { padding: 160px 0 72px; position: relative; }
.pricing::before { content: ""; position: absolute; inset: -10% 0 0 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(94,134,255,0.35) 0%, rgba(94,134,255,0.18) 20%, rgba(94,134,255,0.08) 40%, rgba(94,134,255,0.0) 60%); filter: blur(24px); z-index: -1; }
.pricing h2 { text-align: center; margin-bottom: 6px; }
.pricing-sub { text-align: center; color: var(--white); max-width: 800px; margin: 0 auto 28px; }
.pricing .site-wrap { width: 70vw; max-width: 1200px; margin-left: auto; margin-right: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); width:100%; align-items: start; justify-content: center; margin-top: 32px; gap: 24px; }

.price-card { border-radius: 18px; padding: 24px; border: 1px solid var(--stroke); background: var(--backbutton); display: flex; flex-direction: column; gap: 16px; margin: 0 auto; width: 100%; max-width: 360px; }
.price-card hr { border: none; border-top: 1px solid var(--stroke); opacity: 1; margin: 8px 0 12px; }
.price-card .badge-subtitle { font-size: 0.875rem; color: var(--white); opacity: 0.9; margin-bottom: -8px; }
.price-card h3 { font-size: 1.5rem; line-height: 1.9rem; margin-bottom: -4px; }
.price-card .platform { color: var(--white); font-size: 0.875rem; opacity: 0.9; }
.price-card .features { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.price-card .features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.price-card .features img { width: 18px; height: 18px; opacity: 0.9; }
.check-white { filter: invert(1); }
.check-black { filter: none; }
.price-card .price { font-size: 1.375rem; font-weight: 600; }
.price-card .full { width: 100%; text-align: center; }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); border-color: var(--white); }

.price-annual { background: var(--stroke); border-color: var(--blue); position: relative; overflow: hidden; }
.price-annual hr { border-top-color: rgba(255,255,255,0.9); }
.price-annual .popular { background: var(--white); color: var(--black); font-weight: 700; font-size: 0.95rem; text-align: center; padding: 8px 14px; border-radius: 12px; align-self: stretch; width: 100%; margin-bottom: 14px; }
.price-annual .features li { color: var(--white); }
.price-annual .features img { filter: hue-rotate(195deg) saturate(3); }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* SECTION 7 - Download */
.download h2 { text-align: center; margin-top: 80px; margin-bottom: 0px; }
.download-title { text-align: center; margin-top: 80px; margin-bottom: 24px; }

/* Footer */
.site-footer { padding: 80px 0 24px; border-top: 1px solid var(--stroke); margin-top: 200px; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; justify-content: center; }
.footer-logo { height: 24px; }
.footer-tagline { color: var(--white); opacity: 0.9;font-size: 16px; max-width: 720px; }
.footer-links { display: flex; gap: 28px; justify-content: center; padding: 24px 0 80px; }
.footer-links a { color: var(--grey); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { text-align: center; }
.footer-bottom .copyright { color: var(--blue); font-size: 12px; font-weight: 400; }
 
/* === PAGE TÉLÉCHARGER === */
.download-page .site-header { background: transparent; }
.dl-hero { position: relative; padding: 80px 0; min-height: 100svh; display: flex; align-items: center; }
.dl-wrap { position: relative; z-index: 2; }
.dl-cols { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.dl-left { display: flex; flex-direction: column; gap: 16px; }
.dl-badge { color: var(--white); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 10px 16px; width: fit-content; font-weight: 600; }
.dl-left h1 { text-align: left; margin-left: 0; margin-right: 0; }
.dl-lead { color: var(--white); opacity: 0.9; max-width: 720px; }
.dl-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.dl-bullets li { display: flex; align-items: center; gap: 10px; color: var(--white); }
.dl-bullets img { width: 18px; height: 18px; filter: hue-rotate(195deg) saturate(3); }
.dl-right { position: relative; display: flex; align-items: center; justify-content: center; }
.dl-halo { position: absolute; inset: -10% -10% -10% -10%; z-index: 0; background: radial-gradient(ellipse at 50% 60%, rgba(94,134,255,0.35) 0%, rgba(94,134,255,0.18) 20%, rgba(94,134,255,0.08) 40%, rgba(94,134,255,0.0) 60%); filter: blur(24px); }
.dl-image { position: relative; z-index: 1; max-width: 1000px; width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(94,134,255,0.25)); }
.download-page .app-stores-white { justify-content: flex-start; margin-top: 20px; }
.download-page .store-link img { width: 140px; }

@media (max-width: 1024px) {
  .dl-cols { grid-template-columns: 1fr; gap: 24px; }
  .dl-right { order: -1; }
  .download-page .app-stores-white { justify-content: flex-start; }
}

/* === PAGES GÉNÉRIQUES (contact & légales) === */
.page-section { position: relative; padding: 120px 0 64px; min-height: 80svh; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-cols h1 { margin-bottom: 8px; }
.col-left .lead { margin-top: 8px; }

/* Formulaire contact */
.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--backbutton); border: 1px solid var(--stroke); border-radius: 14px; padding: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: block; font-size: 0.85rem; color: var(--white); margin-bottom: 6px; }
.contact-form input,
.contact-form textarea { width: 100%; background: rgba(255,255,255,0.05); color: var(--white); border: 1px solid var(--stroke); border-radius: 10px; padding: 10px 12px; outline: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.6); }
.contact-form .form-actions { margin-top: 6px; }

/* Légales */
.site-wrap-60.legal-content { padding: 0; width: 100%; max-width: 80%; }
.legal-content { text-align: left; width: 100%; max-width: 100%; }
.legal-content h1 { font-size: 2rem; line-height: 2.4rem; margin-bottom: 2px; text-align: left; padding: 0; width: 100%; max-width: 100%; }
.legal-updated { color: var(--grey); margin-bottom: 16px; }
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose ul { padding-left: 18px; }
.prose li { margin-left: 10px; }
.legal-table { width: 100%; border-collapse: collapse; border: 1px solid var(--stroke); }
.legal-table th, .legal-table td { border: 1px solid var(--stroke); padding: 10px; text-align: left; }

@media (max-width: 1024px) {
  .two-cols { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* Désactiver fond animé sur page contact */
.contact-page .gradient-canvas,
.contact-page .particles-canvas { display: none !important; }

/* === BLOG INDEX === */
.blog-index { padding: 120px 0 64px; }
.blog-hero { text-align: center; margin-bottom: 24px; }
.blog-hero h1 { margin-bottom: 8px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.post-card { background: var(--backbutton); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.post-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.post-link { color: inherit; text-decoration: none; display: grid; grid-template-rows: auto 1fr; height: 100%; }
.post-banner { width: 100%; height: 180px; object-fit: cover; display: block; filter: saturate(0.95) contrast(1.05); }
.post-content { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.post-title { font-size: 1.05rem; line-height: 1.4rem; }
.post-excerpt { color: var(--white); opacity: 0.9; font-size: 0.9rem; line-height: 1.4rem; }
.post-meta { color: var(--grey); font-size: 0.8rem; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-index { padding: 96px 0 48px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-banner { height: 160px; }
}

/* === BLOG ARTICLE === */
.article { padding: 120px 0 64px; }
.article-header { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
.article-banner { width: 100%; height: 320px; object-fit: cover; border-radius: 14px; border: 1px solid var(--stroke); }
.article-title { margin-top: 8px; margin-left: 0; margin-right: 0; text-align: left; }
.article-meta { color: var(--grey); font-size: 0.9rem; margin-top: 6px; }
.article-prose { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.article-prose h2 { margin-top: 8px; font-size: 1.3rem; line-height: 1.6rem; }
.article-prose h3 { margin-top: 8px; font-size: 1.1rem; line-height: 1.4rem; }
.article-prose ul { padding-left: 18px; }
.article-prose li { margin-left: 10px; }
.article-cta { margin-top: 18px; display: flex; gap: 10px; }
.article-cta .btn { padding: 10px 16px; }

@media (max-width: 768px) {
  .article { padding: 96px 0 48px; }
  .article-banner { height: 220px; }
}