:root {
  --bg: #f1f1f1;
  --bgh: #f1f1f1;
  --card: #ffffff;
  --text: #2c2c2c;
  --muted: #5a5a5a;
  --primary: #3d3b8e;
  --primary-dark: #2a2870;
  --accent: #ffd166;
  --accent-dark: #e6b800;
  --outline: #d1d1d1;
  --outline-dark: #b0b0b0;
}

* { box-sizing: border-box; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
html, body { height: 100%; margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bgh);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-name {
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.nav a:hover,
.nav a:focus {
  background: var(--outline);
  outline: none;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-small { padding: 8px 12px; font-size: 14px; }
.btn-large { padding: 14px 18px; font-size: 16px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover,
.btn-primary:focus { background: var(--primary-dark); }

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--outline);
}
.btn-secondary:hover,
.btn-secondary:focus { background: #e8e8e8; border-color: var(--outline-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 24px;
}
.btn-outline:hover,
.btn-outline:focus { background: var(--primary); color: #fff; }

.btn-text { color: var(--primary); font-weight: 600; }
.btn-text:hover,
.btn-text:focus { text-decoration: underline; color: var(--primary-dark); }

.center { text-align: center; }

/* === Sections === */
.section { padding: 48px 0; }
.section h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: left;
}
.subtitle { color: var(--muted); font-size: 18px; margin: 8px 0 24px; }
.muted { color: var(--muted); }

/* === Hero === */
.hero { padding-top: 56px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-content .badge {
  display: inline-block;
  background: var(--accent);
  color: #292929;
  border: 1px solid #292929;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .3px;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero h1 { margin: 0; font-size: 36px; line-height: 1.15; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual img { width: 80%; height: auto; border-radius: 6px; }

/* === Témoignages === */
.testimonials {
  padding: 56px 0;
  background: var(--bg); /* Fond identique au reste du site */
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 40px;
}

.trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  /* margin-bottom: 10px; */
}

/* Conteneur principal avec masque */
.testimonials-scroll-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* Dégradés gauche et droite */
.fade-left,
.fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 10;
}

.fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* Zone de scroll horizontal */
.testimonials-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

/* Snap pour un effet carousel */
.testimonials-scroll {
  scroll-snap-type: x mandatory;
}

.testimonial {
  flex: 0 0 320px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 0.2s ease;
}

.testimonial:hover {
  transform: translateY(-6px);
}

.testimonial .stars {
  color: var(--accent);
  font-size: 24px;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.testimonial blockquote {
  font-size: 16px;
  font-style: italic;
  margin: 12px 0;
  flex-grow: 1;
  line-height: 1.5;
}

.testimonial figcaption {
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}

/* Responsive mobile */
@media (max-width: 720px) {
  .testimonials {
    padding: 40px 0;
  }

  .testimonials-scroll {
    gap: 16px;
    padding: 16px 8px;
  }

  .testimonial {
    flex: 0 0 85%;
    padding: 24px 20px;
  }

  .fade-left,
  .fade-right {
    width: 40px;
  }
}


/* === Services === */
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, transform .2s;
  text-align: center;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.card .icon { font-size: 28px; color: var(--primary); }
.card h3 { margin: 8px 0; font-size: 18px; }
.card p { margin: 0 0 8px; color: var(--muted); }

/* === Tarifs === */
.table-wrapper {
  overflow: auto;
  border: 1px solid var(--outline);
  border-radius: 6px;
}
.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.pricing-table th,
.pricing-table td { padding: 14px 16px; text-align: left; }
.pricing-table thead { background: var(--primary); color: #fff; }
.pricing-table tbody tr:nth-child(odd) { background: #f8f8f8; }
.pricing-table tbody tr:hover { background: #f0f0f0; }

/* === Zone === */
.map-embed {
  margin-top: 16px;
  border: 1px solid var(--outline);
  border-radius: 6px;
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 380px; display: block; }

/* === À propos === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: center;
}


.about-text {
  
  max-width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
}
.about-photo img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--outline);
}
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chip {
  background: var(--accent);
  color: #292929;
  border: 1px solid #292929;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  text-align: center;
}
.contact-info .contact-availability { color: var(--muted); }

/* === Contact & Logos Carousel (Desktop) === */
.contact-and-logos-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 128px;
}
.contact-info {
  flex: 1;
  text-align: left;
}

.contact-address {
  
  max-width: 100%; 
}

.logos-carousel {
  flex: 1;
  overflow: hidden;
  padding: 12px 0;
}
.carousel-track {
  display: flex;
  gap: 48px;
  animation: carousel-marquee 20s linear infinite;
  margin-top: 36px;
}
.carousel-track:hover {
  animation-play-state: paused;
}
.carousel-item {
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes carousel-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Responsive: Mobile === */
@media (max-width: 720px) {
  .contact-and-logos-container {
    flex-direction: column;
    gap: 24px;
  }
  .logos-carousel {
    width: 100%;
  }
  .carousel-item {
    height: 50px;
  }
}

/* === Footer === */
.site-footer {
  padding-top: 16px;
  background: rgba(0,0,0,0.05);
  border-top: 1px solid var(--outline);
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}
.footer-brand {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.footer-links,
.footer-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.gmb {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid var(--outline);
  padding: 8px 0;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* === Smooth Scroll === */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-play-state: paused !important; }
}

/* ==================================================================
   MOBILE (≤720px) – Tout optimisé, centré, harmonisé
   ================================================================== */
@media (max-width: 720px) {
  /* === Navigation === */
  /* Header : logo à gauche, nav à droite, mais nav peut passer à la ligne */
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
  }

  .brand {
    order: 0;
    flex-shrink: 0;
  }

  .nav {
    order: 2;
    width: 100%;
    justify-content: center; /* centré pour belle apparence */
    gap: 12px;
    flex-wrap: wrap; /* les liens passent à la ligne si besoin */
    padding: 8px 0;
    backdrop-filter: blur(4px);
    border-radius: 6px;
  }

  .nav a {
    font-size: 14px; /* un peu plus petit sur mobile */
    text-align: center;
  }

  /* Optionnel : si vous voulez que la nav reste collée en haut quand on scroll */
  .site-header {
    padding-bottom: 4px;
  }

  /* === Rythme vertical : 64px entre sections === */
  .hero,
  .testimonials,
  .services,
  .pricing,
  .zone,
  .about,
  .contact {
    padding: 40px 0;
  }
  .hero { padding-top: 32px; }
  .contact { padding-bottom: 32px; }

  /* === H2 : Uniforme partout === */
  .section h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
  }

  /* === Header : Centré === */
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    gap: 8px;
  }
  .brand { order: -1; }
  .brand-name { font-size: 16px; }
  .logo { width: 32px; height: 32px; }

  /* === Hero === */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual {
    display: block;
    margin: 32px auto 0;
    text-align: center;
  }
  .hero-visual img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 6px;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .hero-content .badge { margin: 0 auto 12px; }
  .hero h1 {
    font-size: 26px;
    line-height: 1.25;
    text-align: left;
   
    margin: 0 auto;
    hyphens: auto;
    text-wrap: balance;
  }
  .subtitle { font-size: 16.5px; text-align: left; margin: 0; }
  .hero-ctas {
    margin-top: 24px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }
  .hero-ctas .btn-large { width: 100%; justify-content: center; padding: 15px 18px; font-size: 16px; }



  /* === Services === */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px 16px; }
  .card .icon { font-size: 32px; margin-bottom: 8px; }
  .card p { font-size: 15px; }
  .center .btn-outline { display: inline-flex; margin: 20px auto 0; }

  /* === Tarifs === */
  .pricing-table { font-size: 14px; }
  .pricing-table th,
  .pricing-table td { padding: 10px 8px; }
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* === Zone === */
  .zone h2,
  .zone p { text-align: left; }
  .map-embed iframe { height: 300px; }

  /* === À propos === */
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-photo {
    display: block;
    margin-bottom: 24px;
    text-align: center;
  }
  .about-photo img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--outline);
  }
  .trust-logos { justify-content: center; }
  .chip { font-size: 11.5px; padding: 5px 9px; }

  /* === Contact === */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info .btn-primary {
    display: flex;
    margin: 16px auto 0;
    width: 100%;
    max-width: 300px;
    align-items: center;
    justify-content: center;
  }
  .contact-availability,
  .contact-address { text-align: left; }

  /* === Footer : Compact & organisé === */
  .site-footer {
    margin-top: 0;
    padding: 14px 0 10px;
    font-size: 13px;
    background: rgba(0,0,0,0.03);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px;
    text-align: center;
  }
  .footer-brand { font-size: 15px; margin: 0 0 6px; }
  .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 10px;
    font-size: 12.5px;
  }
  .footer-links a { white-space: nowrap; }
  .footer-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 12px;
    color: var(--muted);
  }
  .footer-meta li { text-align: left; }
  .gmb {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 8px 0 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
  }
  .footer-bottom {
    padding: 8px 0;
    margin-top: 10px;
    font-size: 11px;
  }

  /* === Animation === */
 
}

/* css blog */

.about-grid.alternate {
  margin-bottom: 48px;
}
.about-grid.reverse {
  direction: rtl; /* Inverse l'ordre visuel */
}
.about-grid.reverse > * {
  direction: ltr; /* Remet le texte dans le bon sens */
}

/* Sur mobile : toujours image au-dessus, texte en-dessous */
@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid.reverse {
    direction: ltr;
  }
  .about-photo {
    order: -1; /* Image toujours en haut sur mobile */
    margin-bottom: 16px;
  }
  .about-photo img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--outline);
  }

}