:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0D4565;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #0D4565;
  --blue-dark: #3f6ae2;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Liens (global) */
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus{ left: 10px; }

/* Header */
.header{
  background: rgba(246,248,251,0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

/* Logo */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
.brand-text{
  font-family: system-ui, -apple-system, "Segoe UI", Nunito, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0D4565;
  letter-spacing: 0.2px;
}

/* Nav */
.nav{
  display: flex;
  gap: 60px;
  color: #111827;
  font-weight: 600;
}
.nav a{ text-decoration: none; }
.nav a:hover{ text-decoration: none; opacity: .78; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn-primary:active{ transform: translateY(1px); }

.btn-primary{
  background: #F87000;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(248,112,0,0.25);
}
.btn-primary:hover{
  background: #e56700;
  text-decoration: none;
}

.btn-lg{ padding: 14px 18px; border-radius: 14px; }

/* Burger */
.burger{
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu{
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.mobile-inner{
  display: grid;
  gap: 12px;
  padding: 14px 0 18px;
}
.m-link{
  padding: 10px 0;
  color: #111827;
  font-weight: 650;
}
.m-cta{ width: fit-content; }

/* Hero */
.hero{ padding: 52px 0 10px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Left hero */
.partner{
  color: #45C1C3;
  font-weight: 700;
  margin: 0 0 12px;
}
.partner-card{
  width: fit-content;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.partner-img{
  width: 100px;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.hero h1{
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.lead{
  color: #4b5563;
  max-width: 640px;
  margin: 0 0 26px;
  font-size: 16px;
}

/* Zone CTA hero (si tu as le texte ✅ Gratuit • 3 min • ...) */
.hero-actions{
  margin-bottom: 46px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-meta{
  margin-left: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  white-space: nowrap;
}

.social-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 48px;
}
.social-text{ margin: 0; color: #111827; }
.social-text strong{ font-weight: 800; }

/* Avatars */
.avatars{ display: flex; align-items: center; }
.avatar{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 3px solid var(--bg);
  margin-left: -10px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}
.avatars .avatar:first-child{ margin-left: 0; }

/* Images des avatars */
.avatar.a1 { background-image: url("./avis1.png"); }
.avatar.a2 { background-image: url("./avis3.png"); }
.avatar.a3 { background-image: url("./avis6.png"); }

.avatar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Right hero portrait */
.hero-right{ display: grid; place-items: center; }
.portrait{
  width: min(420px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
  box-shadow: 0 18px 50px rgba(15,23,42,0.12);
}
.portrait-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
}

/* Sections */
.section{ padding: 60px 0; }
.section.alt{
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2{ margin: 0 0 12px; }
.muted{ color: var(--muted); margin: 0; }

/* Header sticky offset */
section[id]{ scroll-margin-top: 110px; }

/* ===== SERVICES ===== */
.services{ padding: 90px 0; }

.services-header{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}
.services-kicker{
  color: #45C1C3;
  font-weight: 700;
  font-size: 24px;
  display: inline-block;
  margin-bottom: 10px;
}
.services-header h2{
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0;
}
.services-intro{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  border-left: 2px solid var(--line);
  padding-left: 24px;
}

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Carte service */
.service-card{
  background: #f9fafb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;

  /* interaction si c’est un <a> */
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}
.service-card h3,
.service-card p,
.service-card .service-check{
  text-decoration: none;
}

.service-card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
}
.service-card h3{
  margin: 6px 0 0;
  font-size: 18px;
}
.service-card p{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.service-check{
  margin-top: auto;
  color: #45C1C3;
  font-weight: 600;
  font-size: 14px;
}

/* CTA + phrase sous CTA */
.services-cta{
  text-align: center;
  margin-top: 56px;
}
.services-next{
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.services-next-title{
  color: #45C1C3;
  font-weight: 700;
}

/* Responsive Services */
@media (max-width: 980px){
  .services-header{ grid-template-columns: 1fr; }
  .services-intro{ border-left: none; padding-left: 0; }
  .services-grid{ grid-template-columns: 1fr; }
}

/* ===== AVANTAGES ===== */
.advantages{ padding: 90px 0; }

.adv-head{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}
.adv-kicker{
  display: inline-block;
  font-weight: 700;
  color: #45C1C3;
  font-size: 24px;
  margin-bottom: 10px;
}
.adv-title{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.adv-sub{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Top grid */
.adv-grid-top{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 26px;
}

/* Image bloc */
.adv-stat{
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
  background: #e5e7eb;
  box-shadow: var(--shadow);
}
.adv-stat-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.adv-stat-overlay{
  position: absolute;
  left: 26px;
  bottom: 26px;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.adv-stat-number{
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 900;
  line-height: 1;
}
.adv-stat-label{
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

/* Cards avantages */
.adv-card{
  background: #f9fafb;
  border-radius: 22px;
  padding: 22px 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.adv-card h3{
  margin: 2px 0 8px;
  font-size: 18px;
}
.adv-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Icônes avantages */
.adv-ic{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
  background: #e5e7eb;
  color: #111827;
}
.adv-ic.blue{ background: rgba(37,99,235,0.12); color: #2563eb; }
.adv-ic.purple{ background: rgba(124,58,237,0.12); color: #7c3aed; }
.adv-ic.orange{ background: rgba(248,112,0,0.14); color: #F87000; }
.adv-ic.green{ background: rgba(22,163,74,0.14); color: #16a34a; }

/* Bottom grid */
.adv-grid-bottom{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* CTA */
.adv-cta{
  text-align: center;
  margin-top: 44px;
}

/* Responsive avantages */
@media (max-width: 980px){
  .adv-grid-top{ grid-template-columns: 1fr; }
  .adv-grid-bottom{ grid-template-columns: 1fr; }
  .adv-stat{ min-height: 260px; }
  .adv-stat-overlay{ left: 18px; bottom: 18px; }
}

/* ===== AVIS ===== */
.avis-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}
.kicker{
  color: #45C1C3;
  font-weight: 700;
  margin: 0 0 8px;
}
.avis-score{ text-align: right; }
.avis-score strong{
  font-size: 32px;
  color: #45C1C3;
}
.avis-score span{
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* Carrousel avis */
.avis-carousel{ overflow: hidden; position: relative; }
.avis-track{
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollAvis 40s linear infinite;
}
.avis-carousel:hover .avis-track{ animation-play-state: paused; }

.avis-card{
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  width: 300px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.avis-card p{
  font-size: 15px;
  color: #374151;
  margin: 12px 0 18px;
}
.stars{
  color: #45C1C3;
  font-size: 14px;
  letter-spacing: 2px;
}
.author{
  display: flex;
  align-items: center;
  gap: 10px;
}
.author img{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}
.author span{
  color: var(--muted);
  font-size: 13px;
}

@keyframes scrollAvis{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===== FONCTIONNEMENT ===== */
.how{ padding: 90px 0; }

.how-head{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 46px;
}
.how-kicker{
  display: inline-block;
  color: #45C1C3;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
}
.how-title{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.how-sub{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.how-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.how-card{
  background: #f9fafb;
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.how-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.how-card h3{ margin: 0; font-size: 18px; }
.how-card p{ margin: 0; color: #374151; line-height: 1.7; }

.how-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}
.i-blue{ background: rgba(37,99,235,0.12); color: #2563eb; }
.i-orange{ background: rgba(248,112,0,0.14); color: #F87000; }
.i-purple{ background: rgba(124,58,237,0.12); color: #7c3aed; }

.how-cta{ text-align: center; margin-top: 44px; }

@media (max-width: 980px){
  .how-grid{ grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.section.alt.faq{ padding: 90px 0; }

.faq-head{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.faq-kicker{
  display: inline-block;
  color: #45C1C3;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
}
.faq-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}
.faq-sub{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item{ background: transparent; }

.faq-q{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;

  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 16px 18px;

  font: inherit;
  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.faq-q span:first-child{ line-height: 1.3; }
.faq-q:focus-visible{
  outline: 3px solid rgba(37,99,235,0.25);
  outline-offset: 2px;
}

.faq-plus{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;

  background: #45C1C3;
  color: #fff;
  flex: 0 0 auto;
  transition: transform .18s ease, background .18s ease;
}
.faq-q[aria-expanded="true"] .faq-plus{
  transform: rotate(45deg);
  background: #45C1C3;
}

.faq-a{
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 0 18px;

  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.faq-a p{
  margin: 12px 0 16px;
  color: #374151;
  line-height: 1.65;
  font-size: 14px;
}

.faq-footer{
  text-align: center;
  margin-top: 56px;
}
.faq-footer h3{ margin: 0 0 18px; }

@media (max-width: 980px){
  .faq-grid{ grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer{
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.footer-brand img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-nav{
  display: flex;
  justify-content: center;
  gap: 40px;
  font-weight: 600;
}
.footer-nav a{
  text-decoration: none;
  color: #111827;
}
.footer-nav a:hover{ opacity: 0.7; }
.footer-copy{
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 900px){
  .footer-inner{ grid-template-columns: 1fr; text-align: center; }
  .footer-nav{ flex-wrap: wrap; gap: 16px; }
  .footer-copy{ margin-top: 8px; }
}

/* Floating chat button */
.chat-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(79,125,243,0.30);
  cursor: pointer;
}
.chat-fab:hover{ background: var(--blue-dark); }

/* Chat box */
.chat-box{
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: min(340px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-close{
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.chat-body{ padding: 12px 14px; }
.chat-msg{
  margin: 0;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 10px 12px;
}
.chat-hint{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.chat-form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.chat-form input{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

/* Responsive global */
@media (max-width: 980px){
  .nav{ display: none; }
  .burger{ display: inline-flex; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-right{ order: -1; }
  .header-inner{ padding: 14px 0; }
}
