/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f9f9f9;
}
:root {
  --blue-400: #4DA6FF;
  --blue-500: #3399FF;
}

/* HEADER GLOBAL */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 2000px;
  margin-inline: 5%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  max-height: 48px;
  display: block;
}

/* NAVIGATION */
.nav-bar .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-bar .nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-bar .nav-links a:hover {
  color: var(--blue-400);
}

/* CTA */
.cta-button {
  background-color: var(--blue-400);
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background-color 0.3s ease !important;
}

.cta-button:hover {
  background-color: var(--blue-500);
}

/* MENU BURGER (MOBILE) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background: #111;
  border-radius: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-bar {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 240px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-bar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-bar .nav-links {
    flex-direction: column;
    padding: 20px;
    gap: 18px;
  }

  .menu-toggle {
    display: flex;
  }
}


/*hero*/
:root{
  --blue-100:#eaf3ff;
  --blue-400:#4DA6FF;
  --blue-500:#3399FF;
  --text-900:#0b1020;
}

/* conteneur */
.container{
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* HERO */
.hero{
  position: relative;
  overflow: clip;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-100) 100%);
  padding: clamp(48px, 7vw, 96px) 0;
  background-image: url('images/arcs_fond.png');
  background-repeat: no-repeat;
  background-position: left center, right center; /* si tu dupliques le motif */
  background-size: 100% ;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy h1{
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  color: var(--text-900);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-copy p{
  font-size: clamp(16px, 2.4vw, 20px);
  color: #3a4256;
  max-width: 48ch;
  margin-bottom: 28px;
}

/* Boutons */
.btn{
  display:inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-primary{
  background: var(--blue-400);
  color:#fff;
  box-shadow: 0 10px 24px rgba(77,166,255,.35);
}
.btn-primary:hover{ background: var(--blue-500); transform: translateY(-1px); }

.btn-outline{
  margin-left: 12px;
  color: var(--text-900);
  background: #fff;
  border-color: #e5ecf6;
}
.btn-outline:hover{ border-color: #cfe0f7; transform: translateY(-1px); }

/* Visuel à droite */
.hero-art{
  position: relative;
  min-height: 420px;
}
/* Taille normale (par défaut) */
.phones {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 520px;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(20,40,90,.18));
  animation: float 6s ease-in-out infinite;
}


.bg-swirl{
  position: absolute;
  right: -18%;
  top: -12%;
  width: 720px;              /* taille de la forme décorative */
  opacity: .12;              /* discrète comme un watermark */
  pointer-events: none;
}

/* animation légère */
@keyframes float{
  0%,100%{ transform: translateY(0) }
  50%{ transform: translateY(-8px) }
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy p{ margin-inline: auto; }
  .btn-outline{ margin-left: 8px; }
  .hero-art{
    order: -1;
    min-height: 360px;
  }
  .bg-swirl{
    right: 50%;
    transform: translateX(50%);
    width: 580px;
    top: -8%;
  }
}

@media (max-width: 520px){
  .hero{ padding: 48px 0 32px; }
  .hero-art{ min-height: 300px; }
  .btn{ width: 100%; text-align: center; }
  .btn-outline{ margin-left: 0; margin-top: 10px; }
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #3a4256;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background-color: var(--blue-400);
  border-radius: 50%;
}
/*comment ça marche */
:root{
  --primary:#2f6feb;        /* bleu bouton */
  --accent:#4a90e2;         /* bleu motifs */
  --text:#0f172a;           /* titre */
  --muted:#4b5563;          /* paragraphe */
  --line:#e8eef7;           /* bordure cartes */
  --card:#ffffff;           /* fond cartes */
}

.steps{
  position: relative;
  padding: 80px 0;
  /* halos légers rappelant tes arcs */
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(74,144,226,.06), transparent 60%),
    radial-gradient(1200px 400px at 90% 100%, rgba(74,144,226,.06), transparent 60%);
}
.steps__container{ max-width:1100px; margin:0 auto; padding:0 24px; }

.steps__title{ font-size:2rem; line-height:1.2; color:var(--text); margin:0 0 8px; }
.steps__subtitle{ color:var(--muted); margin:0 0 32px; }

.steps__grid{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}


.step{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  box-shadow: 0 8px 30px rgba(16,24,40,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(16,24,40,.10);
}
.step__badge{
  width:40px; height:40px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:#e8f2ff; color:#1f4fbf; font-weight:700; margin-bottom:12px;
}
.step__title{ margin:0 0 6px; font-size:1.125rem; color:var(--text); }
.step__text{ margin:0; color:var(--muted); }

.steps__cta{ margin-top:28px; display:flex; gap:12px; flex-wrap:wrap; }

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
}
.btn--primary{ background:var(--primary); color:#fff; }
.btn--primary:hover{ filter:brightness(0.95); }
.btn--ghost{ background:#fff; border:1px solid var(--line); color:var(--text); }
.btn--ghost:hover{ background:#f8fafc; }

/* Responsive */
@media (max-width: 900px){
  .steps{ padding:60px 0; }
  .steps__grid{ grid-template-columns:1fr; }
}
/* benefices */
.benefits{
  padding:80px 0;
  background:
    radial-gradient(900px 300px at 15% 100%, rgba(74,144,226,.05), transparent 60%),
    radial-gradient(900px 300px at 85% 0%, rgba(74,144,226,.05), transparent 60%);
}
.benefits__container{ max-width:1100px; margin:0 auto; padding:0 24px; }
.benefits__title{ font-size:2rem; margin:0 0 8px; color:var(--text); }
.benefits__subtitle{ color:var(--muted); margin:0 0 28px; }

.benefits__grid{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom:24px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform:translateY(-2px); box-shadow:0 12px 40px rgba(16,24,40,.1); }
.card__icon{ font-size:28px; line-height:1; margin-bottom:10px; }
.card__title{ margin:0 0 6px; font-size:1.1rem; color:var(--text); }
.card__text{ margin:0; color:var(--muted); }

.benefits__strip{
  margin-top:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 16px;
  display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap;
}
.strip__item{ display:flex; flex-direction:column; align-items:center; font-size:.95rem; }
.strip__item strong{ color:var(--text); }
.strip__item span{ color:var(--muted); font-size:.9rem; }
.strip__dot{ width:6px; height:6px; border-radius:999px; background:#dbe3ef; }

@media (max-width:900px){
  .benefits{ padding:60px 0; }
  .benefits__strip{ gap:10px; }
  .strip__dot{ display:none; }
}


/*prix*/
.pricing{
  padding:80px 0;
  background:
    radial-gradient(1100px 360px at 12% 0%, rgba(74,144,226,.05), transparent 60%),
    radial-gradient(1100px 360px at 88% 100%, rgba(74,144,226,.05), transparent 60%);
}
.pricing__container{ max-width:800px; margin:0 auto; padding:0 24px; text-align:center; }
.pricing__title{ font-size:2rem; margin:0 0 8px; color:var(--text); }
.pricing__subtitle{ color:var(--muted); margin:0 0 28px; }

.pricing__single{ display:flex; justify-content:center; }

.plan{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:30px;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
  text-align:left;
  max-width:400px;
  position:relative;
}
.plan--highlight{
  border:1px solid #cfe0ff;
  box-shadow:0 14px 40px rgba(47,111,235,.18);
}

.plan__badge{
  position:absolute;
  top:-12px;
  left:50%;
  transform:translateX(-50%);
  background:#ffcc00;
  color:#000;
  font-weight:700;
  padding:6px 14px;
  border-radius:999px;
  font-size:.9rem;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}

.plan__head{ margin-bottom:8px; }
.plan__name{ margin:0 0 6px; font-size:1.25rem; color:var(--text); }

.plan__price{
  margin:4px 0;
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
}
.plan__price--free{
  font-size:2rem;
  color:#1f4fbf;
}
.plan__price span{ font-size:1rem; font-weight:500; color:var(--muted); }

.plan__note{ margin:6px 0 12px; color:var(--muted); }

.plan__features{
  list-style:none; padding:0; margin:0 0 16px;
  color:#334155; display:grid; gap:8px;
}

.plan__cta{ display:block; text-align:center; }

@media (max-width:900px){
  .pricing{ padding:60px 0; }
  .plan__price--free{ font-size:1.8rem; }
}
/*why*/
.why{
  padding:80px 0;
  background:
    radial-gradient(900px 300px at 15% 100%, rgba(74,144,226,.05), transparent 60%),
    radial-gradient(900px 300px at 85% 0%, rgba(74,144,226,.05), transparent 60%);
}
.why__container{ max-width:1100px; margin:0 auto; padding:0 24px; text-align:center; }
.why__title{ font-size:2rem; margin:0 0 8px; color:var(--text); }
.why__subtitle{ color:var(--muted); margin:0 0 32px; font-style:italic; }

.why__grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:24px;
}
.reason{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
}
.reason__icon{
  font-size:28px;
  margin-bottom:10px;
}
.reason__title{
  margin:0 0 6px;
  font-size:1.125rem;
  color:var(--text);
}
.reason__text{
  margin:0;
  color:var(--muted);
}

.why__note{
  margin-top:28px;
  background:#fff8e5;
  color:#5f370e;
  padding:14px 18px;
  border-radius:10px;
  font-size:.95rem;
  display:inline-block;
  border:1px solid #ffe299;
}
/*cta final*/
.cta-final{
  background:linear-gradient(135deg, #1f4fbf, #4a90e2);
  padding:60px 24px;
  text-align:center;
  color:#fff;
}
.cta-final__container{ max-width:800px; margin:0 auto; }
.cta-final__title{ font-size:1.8rem; margin:0 0 12px; }
.cta-final__subtitle{ font-size:1.1rem; margin:0 0 20px; opacity:0.9; }

.btn--big{
  padding:16px 28px;
  font-size:1.1rem;
  border-radius:12px;
}
/*footer*/
.footer{
  background:#0f172a;
  color:#fff;
  padding-top:40px;
  font-size:.95rem;
}
.footer__container{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:28px;
}
.footer__logo{
  width:140px;
  margin-bottom:10px;
}
.footer__tagline{
  color:#cbd5e1;
  font-size:.9rem;
  line-height:1.4;
}

.footer__title{
  font-size:1rem;
  margin-bottom:10px;
  font-weight:600;
}
.footer ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:6px;
}
.footer a{
  color:#cbd5e1;
  text-decoration:none;
}
.footer a:hover{
  color:#ffcc00;
}

.footer__bottom{
  border-top:1px solid rgba(255,255,255,.1);
  margin-top:30px;
  padding:12px 0;
  text-align:center;
  font-size:.85rem;
  color:#94a3b8;
}

/* --- Contact --- */
.contact { background:#f8fafc; }
.contact__container { max-width:900px; margin:0 auto; padding:64px 16px; }
.contact__title { font-size:2rem; margin-bottom:8px; }
.contact__subtitle { color:#64748b; margin-bottom:24px; }
.contact__form { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:20px; }
.contact__honeypot { position:absolute; left:-9999px; }

.form__row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form__field { display:flex; flex-direction:column; gap:6px; }
.form__field input, .form__field textarea { padding:12px; border:1px solid #e5e7eb; border-radius:10px; font-size:16px; }
.form__field input:focus, .form__field textarea:focus { outline:none; border-color:#0a84ff; box-shadow:0 0 0 3px rgba(10,132,255,.15); }
.form__error { color:#b91c1c; font-size:.9rem; min-height:1em; }

.form__consent { margin-top:8px; }
.checkbox { display:flex; align-items:flex-start; gap:8px; }

.form__actions { display:flex; align-items:center; gap:12px; margin-top:16px; }
.form__status { font-size:.95rem; }
.form__status--success { color:#166534; }
.form__status--error { color:#b91c1c; }
.checkbox {
  display: flex;
  align-items: center; /* au lieu de flex-start */
  gap: 8px;
}


@media (max-width:768px) {
  .form__row { grid-template-columns:1fr; }
}
/* ==== Burger menu : CTA multi-ligne sans "couper" le bouton ==== */
@media (max-width: 768px){
  /* largeur un peu plus souple du panneau */
  .nav-bar{ width: min(92vw, 320px); }

  /* le CTA occupe toute la ligne et gère bien le retour à la ligne */
  .nav-bar .nav-links .cta-button{
    display: block;          /* bouton = bloc complet */
    width: 100%;             /* prend toute la largeur */
    text-align: center;      /* centrage du texte */
    white-space: normal;     /* autorise les retours à la ligne */
    overflow-wrap: anywhere; /* évite tout débordement moche */
    line-height: 1.3;        /* meilleure hauteur de ligne */
    padding: 12px 16px !important; /* un peu plus d’air */
  }
}
/* style un peu différent pour distinguer */
.cta-login{
  background-color: transparent !important;
  color: #111 !important;
  border: 1px solid #e5ecf6 !important;
}
.cta-login:hover{ border-color:#cfe0f7 !important; }
/* Cache le modal par défaut */
.modal[aria-hidden="true"] { display: none !important; }

/* Overlay + centrage */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  z-index: 9999;
}

/* Boîte du contenu */
.modal__dialog {
  background: #fff;
  /* hauteur du lecteur = 80% de la fenêtre */
  height: 90vh;

  /* largeur calculée automatiquement pour respecter le ratio 9:16 */
  aspect-ratio: 9 / 16;

  /* centrage + style */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);

  /* limite sur petits écrans */
  max-height: 90vh;
  max-width: 95vw;
  z-index : 10;
}


/* Bouton fermer */
.modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  line-height: 1;
  z-index: 20;
}

/* Vidéo responsive */
#tuto-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: none;
  display: block;
}

/* Curseur "main" sur le bouton */
#open-tuto { cursor: pointer; }

/* Utilitaire accessibilité (optionnel) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}


/* ==== HERO: mobile tweaks pour voir le CTA et le tuto ==== */
@media (max-width: 520px){
  /* moins de marge en haut/bas pour libérer de la place */
  .hero{
    padding: 28px 0 16px;
  }

  /* grille compacte + centrée */
  .hero-inner{
    gap: 16px;
    text-align: center;
  }
  .hero-copy p{ margin-bottom: 16px; } /* resserre avant les boutons */

  /* visuel plus petit et plus haut */
  .hero-art{
    order: -1;           /* déjà dans ton CSS, je le garde */
    min-height: 220px;   /* réduit la hauteur occupée */
  }

  /* On sort du centrage "inset:0;margin:auto" pour remonter l'image,
     on la rend plus petite et on coupe l'animation (sinon elle écrase le transform) */
  .phones{
    inset: unset;                 /* annule le centrage global */
    left: 50%; top: -8px;         /* remonte le visuel */
    transform: translateX(-50%);  /* re-centre horizontalement */
    width: clamp(220px, 70vw, 320px);  /* réduit la taille sur mobile */
    max-width: none;
    animation: none;              /* évite le conflit avec transform */
    filter: drop-shadow(0 18px 28px rgba(20,40,90,.16)); /* ombre un peu plus courte */
  }

  /* boutons full width pour booster la visibilité/tap */
  .btn{
    width: 100%;
    text-align: center;
  }
  .btn-outline{
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Option: si tu veux garder une légère "flotte" sans casser le translateX,
   utilise une animation spéciale mobile qui inclut le translateX */
@media (max-width: 520px){
  .phones.float-mobile{
    animation: floatMobile 6s ease-in-out infinite;
  }
  @keyframes floatMobile{
    0%,100%{ transform: translateX(-50%) translateY(0) }
    50%    { transform: translateX(-50%) translateY(-6px) }
  }
}
