*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1a2a4a;
  --navy-dark: #152038;
  --border: #e5e5e5;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: #222; background: #fff; line-height: 1.6; }

/* ======= NAVBAR ======= */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: #f5f5f3; z-index: 200;
  height: 56px; display: flex; align-items: center;
  padding: 0 40px; border-bottom: 1px solid #e0e0e0;
}
.nav-logo { font-weight: 700; font-size: 17px; color: var(--navy-dark); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin-left: auto; margin-right: 32px; }
.nav-links a { font-size: 14.5px; color: #333; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; margin-left: auto; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #333; border-radius: 2px; }

/* ======= BUTTONS ======= */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: none; border-radius: 100px;
  padding: 10px 20px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .2s; white-space: nowrap;
}
.btn-cta:hover { background: var(--navy-dark); }
.btn-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: none; border-radius: 100px;
  padding: 13px 26px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-hero-cta:hover { background: var(--navy-dark); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 100px;
  padding: 13px 26px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.28); }
.btn-cta-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border: none; border-radius: 100px;
  padding: 15px 30px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-cta-lg:hover { background: var(--navy-dark); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; transition: gap .2s; }
.link-arrow:hover { gap: 10px; }
.about-toggle { color: var(--navy); font-weight: 600; text-decoration: none; }
.about-toggle:hover { text-decoration: underline; }

/* ======= MOBILE MENU ======= */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: #f5f5f3; z-index: 300;
  flex-direction: column; padding: 0 28px 100px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e0e0e0; margin: 0 -28px; padding: 0 28px; flex-shrink: 0;
}
.mobile-menu-close {
  width: 34px; height: 34px; border-radius: 50%; background: #e0e0e0;
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 17px; color: #444;
}
.mobile-menu-links { list-style: none; margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-links a { display: block; font-size: 26px; font-weight: 700; color: var(--navy-dark); text-decoration: none; padding: 10px 0; }
.mobile-menu-cta { margin-top: 36px; }
.mobile-menu-cta .btn-cta { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }
.mobile-menu-info { margin-top: 20px; font-size: 14px; color: #999; }

/* ======= STICKY BOTTOM (mobile) ======= */
.sticky-bottom { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); padding: 12px 20px; z-index: 150; }
.sticky-bottom .btn-cta { width: 100%; justify-content: center; font-size: 15px; padding: 14px; }

/* ======= HERO ======= */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; margin-top: 56px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,.52),rgba(0,0,0,.52)),
    url('hero.webp') center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 100px;
  padding: 6px 18px; color: #fff; font-size: 11px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7dc97a; }
.hero-title { font-size: clamp(28px, 5.5vw, 62px); font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -1px; margin-bottom: 18px; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-discover {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: rgba(255,255,255,.7); font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.hero-discover svg { animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ======= SECTIONS ======= */
section { padding: 100px 40px; }
.section-label { font-size: 11.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.5vw, 46px); font-weight: 800; color: var(--navy-dark); letter-spacing: -.8px; line-height: 1.1; }
.section-divider { width: 36px; height: 3px; background: var(--navy); margin-top: 14px; }
.centered { text-align: center; }
.centered .section-divider { margin: 14px auto 0; }

/* ======= ABOUT ======= */
#about { background: #fff; }
.about-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 100px; padding: 5px 14px; font-size: 13px; font-weight: 500; color: #333; }
.badge::before { content: '✓'; font-size: 11px; color: var(--navy); }
.about-text { font-size: 15.5px; line-height: 1.75; color: #444; margin-bottom: 32px; }
.about-text a { color: var(--navy); font-weight: 600; text-decoration: none; }
.about-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.about-img { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; display: block; }

/* ======= STATS ======= */
#stats { background: var(--navy); padding: 70px 40px; }
.stats-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { text-align: center; padding: 0 30px; border-right: 1px solid rgba(255,255,255,.18); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: #fff; line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 10.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ======= SERVICES ======= */
#services { background: #fff; }
.services-header { margin-bottom: 52px; }
.services-grid { max-width: 1100px; margin: 0 auto 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.service-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.service-card-body { padding: 22px 24px; }
.service-card-title { font-size: 17px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; }
.service-card-text { font-size: 14px; color: #555; line-height: 1.7; }
.services-cta { text-align: center; }
.carousel-dots { display: none; justify-content: center; gap: 8px; margin: 20px 0 32px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s; }
.dot.active { background: var(--navy); }

/* ======= GALERIE ======= */
#galerie { background: #fff; }
.galerie-header { margin-bottom: 44px; }
.galerie-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.galerie-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 14px; display: block; }

/* ======= FAQ ======= */
#faq { background: #fff; }
.faq-header { margin-bottom: 52px; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 0; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--navy-dark); cursor: pointer; text-align: left; }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #ccc; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #666; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; font-size: 14.5px; color: #555; line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }

/* ======= CONTACT ======= */
#contact { background: #fff; text-align: center; }
.contact-title { font-size: clamp(28px, 4vw, 50px); font-weight: 800; color: var(--navy-dark); letter-spacing: -1px; margin-bottom: 12px; line-height: 1.1; }
.contact-sub { font-size: 16px; color: #666; margin-bottom: 34px; }

/* ======= FOOTER ======= */
footer { background: #1e1e1e; color: rgba(255,255,255,.6); padding: 60px 40px 30px; }
.footer-inner { max-width: 1100px; margin: 0 auto 48px; display: grid; grid-template-columns: 2fr 1.2fr 1.5fr; gap: 60px; }
.footer-brand-name { font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 10px; }
.footer-brand-desc { font-size: 14px; line-height: 1.65; }
.footer-col-title { font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 14px; }
.footer-bottom { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }

/* ============================================================
   LANDING PAGES SERVICE — composants additionnels
   (mêmes variables / radius / esprit que le reste du site)
============================================================ */

/* Fil d'ariane */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 22px 40px 0; font-size: 13px; color: #888; }
.breadcrumb a { color: var(--navy); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* Hero service : 2 boutons (tel + devis) déjà couverts par .btn-hero-cta / .btn-outline */

/* Bandeau réassurance sous le hero */
.reassure { background: #f5f5f3; padding: 26px 40px; }
.reassure-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px 28px; flex-wrap: wrap; }
.reassure-inner .badge { background: #fff; }
.reassure-rating { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #333; font-weight: 500; }

/* Bénéfices */
#benefices { background: #fff; }
.benefices-header { margin-bottom: 52px; }
.benefices-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit-card { border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; }
.benefit-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(26,42,74,.07); display: flex; align-items: center; justify-content: center; color: var(--navy); margin-bottom: 16px; }
.benefit-title { font-size: 16px; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.benefit-text { font-size: 14px; color: #555; line-height: 1.7; }

/* Bloc aides financières */
#aides { background: var(--navy); color: #fff; }
.aides-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.aides-inner .section-label { color: rgba(255,255,255,.7); }
.aides-inner .section-title { color: #fff; }
.aides-inner .section-divider { background: rgba(255,255,255,.6); }
.aides-text { font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,.82); margin: 22px 0 30px; }
.aides-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.aides-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,.92); }
.aides-list li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.aides-list strong { color: #fff; }
.aides-cta { margin-top: 32px; }
.aides-cta .btn-cta { background: #fff; color: var(--navy-dark); }
.aides-cta .btn-cta:hover { background: #eee; }

/* Étapes "comment ça marche" */
#process { background: #fff; }
.process-header { margin-bottom: 52px; }
.process-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { padding: 4px; }
.process-num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.process-step-title { font-size: 16px; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.process-step-text { font-size: 14px; color: #555; line-height: 1.7; }

/* Formulaire de devis */
#devis { background: #f5f5f3; }
.devis-inner { max-width: 640px; margin: 0 auto; }
.devis-form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.devis-form .full { grid-column: 1 / -1; }
.devis-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-dark); margin-bottom: 6px; }
.devis-form input, .devis-form textarea {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 15px; color: #222;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px;
  transition: border-color .2s;
}
.devis-form input:focus, .devis-form textarea:focus { outline: none; border-color: var(--navy); }
.devis-form textarea { resize: vertical; min-height: 110px; }
.devis-form .btn-cta-lg { width: 100%; justify-content: center; }
.devis-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.devis-note { font-size: 12.5px; color: #888; margin-top: 14px; text-align: center; }

/* Maillage interne — autres services */
#maillage { background: #fff; }
.maillage-header { margin-bottom: 40px; }
.maillage-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Carte service cliquable (home + maillage) */
a.service-card { display: block; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26,42,74,.10); }
a.service-card .service-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--navy); font-weight: 600; font-size: 14px; }

/* ============================================================
   RESPONSIVE MOBILE
============================================================ */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }

  .sticky-bottom { display: block; }
  body { padding-bottom: 70px; }

  section { padding: 60px 20px; }

  /* Hero */
  #hero { padding: 0 20px; }
  .hero-title { font-size: clamp(26px, 8vw, 38px); }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-hero-cta, .btn-outline { justify-content: center; padding: 15px 20px; font-size: 14.5px; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-img { height: 260px; }
  .about-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .about-actions .btn-cta { width: 100%; justify-content: center; padding: 15px; font-size: 14.5px; }

  /* Stats */
  #stats { padding: 44px 16px; }
  .stat-item { padding: 0 10px; }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 9px; letter-spacing: .8px; }

  /* Services carousel */
  .services-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; max-width: 100%; margin-bottom: 0; padding-bottom: 2px; scrollbar-width: none; }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 86%; scroll-snap-align: start; }
  .carousel-dots { display: flex; }
  .services-cta .btn-cta { width: 100%; justify-content: center; padding: 15px; font-size: 14.5px; }

  /* Galerie carousel */
  .galerie-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .galerie-grid::-webkit-scrollbar { display: none; }
  .galerie-grid img { flex: 0 0 84%; scroll-snap-align: start; height: 210px; }
  .galerie-carousel-dots { display: flex; }

  /* Contact */
  #contact { padding: 60px 20px; }
  .contact-title { font-size: 28px; }
  .btn-cta-lg { width: 100%; justify-content: center; font-size: 15px; padding: 15px 20px; }

  /* Footer */
  footer { padding: 40px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* --- Landing services --- */
  .breadcrumb { padding: 18px 20px 0; }
  .reassure { padding: 22px 20px; }
  .benefices-grid { grid-template-columns: 1fr; gap: 14px; }
  .aides-inner { grid-template-columns: 1fr; gap: 30px; }
  .process-grid { grid-template-columns: 1fr; gap: 18px; }
  .devis-form { grid-template-columns: 1fr; }
  .maillage-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .maillage-grid::-webkit-scrollbar { display: none; }
  .maillage-grid .service-card { flex: 0 0 86%; scroll-snap-align: start; }
}
@media (max-width: 768px) { html { zoom: 0.9; } }
