* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

header {
  background: #fff;
  padding: 20px 0;
  text-align: center;
}

h1,
h2,
h3 {
  margin-bottom: 0px;
  font-family: quicksand;
}

h2 {
  color: #03556b;
  font-family: quicksand;
  font-size: 32px;
}

h3 {
  margin-top: 32px;
  color: #03556b;
  font-family: quicksand;
  font-size: 20px;
  font-weight: 400;
}

p {
  font-size: 16px;
  margin-bottom: 15px;
  font-family: quicksand;
}

ul {
  padding-left: 40px;
  margin: 0px 0px 0px 0px;
  text-align: left;
  display: inline-block;
}

li {
  font-size: 16px;
  font-family: quicksand;
}

footer {
  background: #f4f4f4;
  padding: 20px;
  text-align: center;
}

.logo {
  width: 200px;
  display: block;
  margin: 20px auto;
}

.nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* petite ombre pour la lisibilité */
}
nav {
  background: #fff;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

nav ul li {
  padding: 0 14px;
  border-right: 1px solid #ff5353;
}

nav ul li:last-child {
  border-right: none;
}

nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centre horizontalement les deux lignes */
  text-decoration: none;
}

nav ul li a span {
  display: block;
}

nav ul li a .line1 {
  color: #03556b;
  font-size: clamp(12px, 1.4vw, 16px);
  transition: font-size 0.2s ease;
  white-space: nowrap;
}

/* NAVBAR GLOBALE */
.navbar {
  background: #fff;

  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

/* GROUPE UL + BOUTONS */
.menu-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

/* BOUTONS À DROITE EN DESKTOP */
.boutons-store {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}
.boutons-store img {
  width: 100px;
  height: auto;
}

.bouton_telecharger {
  width: 200px;
  height: 60px;
  margin: 10px 0;
  cursor: pointer;
}
.bouton_telecharger_max {
  width: 250px;
  height: auto;
  margin: 10px 0;
  cursor: pointer;
}

section {
  padding: 60px 20px;
  text-align: center;
  scroll-margin-top: 80px;
}

.hero {
  background: #fff;
  padding: 40px 20px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.cadre {
  position: relative;
  width: 100%;
  height: 800px;
  /* Hauteur mise à jour à 390px */
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  border: none;
  /* Optionnel, pour visualiser le cadre */
  border-radius: 0;
  /* Suppression des coins arrondis */
  margin: 0 auto;
}
.encart {
  position: absolute;
  top: 30%;
  left: clamp(10%, 45%, calc(100% - 700px)); /* dynamique */
  transform: none; /* plus besoin de translate */
  background: rgba(255, 255, 255, 0.85);
  padding: 24px;
  color: #333;
  text-align: justify;
  width: clamp(650px, 50vw, 720px); /* Rétrécit jusqu’à 300px max */
  max-width: 720px;
}

.encart .temoignage-carte {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 400px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 240px; /* autorise le bloc à rétrécir si nécessaire */
}

.cadre-carroussel {
  position: relative;
  width: 100%;
  height: auto;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.encart-carroussel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.756);
  padding: 10px;
  max-width: 95%;
  width: 100%;
  height: auto;
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  text-align: center;
}

.encart-carroussel img {
  height: 600px;
  width: auto;
  padding: 10px;
  margin-bottom: 20px;
}

.bouton {
  display: block;
  margin: 0 auto;
  background: #03556b;
  border-radius: 20px;
  padding: 8px 16px;
  color: #fff;
  box-shadow: none;
  border: none;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.encart-mobile {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  font-size: 24px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #03556b;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
}

nav ul {
  transition: max-height 0.3s ease;
}

.boutons-store {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 20px;
}

.boutons-store img {
  width: 100px;
  height: auto;
  cursor: pointer;
}

.carrousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 20px 40px;
  /* pour ne pas coller aux bords */
  display: flex;
  align-items: center;
  justify-content: center;
}

.capture {
  border-radius: 30px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border: #333 solid 4px;
}

.carrousel-images {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease-in-out;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 32px;
  /* 👈 ajoute cet espace pour décoller la scrollbar */
}

.carrousel-images img {
  height: 400px;
  flex-shrink: 0;
  border-radius: 10px;
}

.carrousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.carrousel-btn.left {
  left: 0;
}

.carrousel-btn.right {
  right: 0;
}

.section-decalee {
  background: none;
  padding: 0;
}

.contenu-fonctionnalites {
  display: flex;
  flex-direction: row;
  height: 600px;
  width: 100%;
}

.photo-fonctionnalites {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.texte-fonctionnalites {
  flex: 1;
  padding: 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.texte-fonctionnalites ul {
  padding-left: 20px;
}

.encart,
.encart-carroussel,
.formulaire-contact,
.texte-fonctionnalites {
  border-radius: 12px;
}

.temoignages-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.temoignage-carte {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 300px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.temoignage-carte .etoiles {
  font-size: 20px;
  color: #ffc107; /* jaune étoile */
  margin-bottom: 10px;
}

.temoignage-carte .avis {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 10px;
}

.temoignage-carte .signature {
  font-size: 14px;
  color: #666;
  text-align: right;
}

.bloc-install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.capture {
  height: 300px;
  width: auto;
  border-radius: 12px;
  border: 5px solid #333;
}

.boutons-install {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-horizontale-wrapper {
  overflow-x: auto;
  padding: 20px 10px;
  display: flex;
  justify-content: center; /* 👈 centre horizontalement si y'a la place */
}

.timeline-horizontale {
  display: inline-flex; /* 👈 clé pour que le centrage fonctionne dans le wrapper flex */
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 30px;
  position: relative;

  min-width: max-content; /* 👈 permet le scroll si trop large */
}

.timeline-horizontale .capture {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-top: 10px;
  border-radius: 12px;
  border: 3px solid #333;
}

.etape {
  position: relative;
  text-align: center;
  width: 250px;
  flex-shrink: 0;
}

.pastille {
  background: #03556b;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-family: quicksand;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 0 4px white;
}

.contenu-etape {
  height: 720px; /* Ajuste cette valeur si nécessaire */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-horizontale::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  height: 3px;
  width: 100%;
  background: #ff5353;
  z-index: 1;
}

.section-decalee {
  background: none;
  padding: 0;
}

.contenu-contact {
  display: flex;
  flex-direction: row;
  height: auto;
  min-height: 600px;
  width: 100%;
}

.formulaire-contact {
  flex: 1;
  padding: 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.formulaire-contact form {
  max-width: 600px;
  margin-top: 20px;
}

.formulaire-contact input,
.formulaire-contact textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  font-family: quicksand;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.formulaire-contact textarea {
  height: 200px;
}
.ligne-bouton-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-contact {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.footer {
  background: #f8f8f8;
  color: #333;
  font-family: 'Quicksand', sans-serif;
  padding: 40px 20px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #03556b;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #ff5353;
}

.footer-badge {
  width: 140px;
  margin-bottom: 10px;
}

.social-links {
  padding: 0;
}

.social-links li a {
  text-decoration: none;
  color: #03556b;
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

@media only screen and (max-width: 768px) {
  /*VERSION MOBILE*/

  section {
    padding: 60px 20px;
    text-align: center;
    scroll-margin-top: 0px;
  }

  .cadre {
    width: 100%;
    height: 180px;
    background-position: left top;
    background-size: cover;
    position: relative;
    margin-bottom: 0;
  }

  .encart {
    display: none;
    /* cache l'encart intégré dans .cadre */
  }

  .encart-mobile {
    display: block;
    margin: 0 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    padding: 20px 0px 0px 0px;
    text-align: justify;
  }

  .ancre-fix {
    height: 80px;
    margin-top: -80px;
  }

  h2 {
    font-size: 1.2em;
  }

  p,
  li {
    font-size: 14px;
  }

  h3 {
    font-size: 18px;
    padding: 0 10px;
  }

  .burger {
    display: block;
    margin: 0 auto;
    padding-right: 10px;
  }

  nav ul {
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
  }

  nav ul.show {
    max-height: 500px;
    /* Assez grand pour contenir tous les éléments */
  }

  nav ul li {
    border: none;
    padding: 10px 0;
  }

  .texte {
    flex: 0 0 auto;
    width: 90%;
    margin: 0 auto;
  }

  .timeline-horizontale-wrapper {
    padding: 0;
    padding-left: 20px;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100vw;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .ghost-start {
    flex: 0 0 0px;
    scroll-snap-align: start;
  }

  .timeline-horizontale {
    position: relative;
  }

  .timeline-horizontale::before {
    display: none;
  }

  .timeline-horizontale {
    display: inline-flex;
    flex-direction: row;
    gap: 16px;
    min-width: max-content;
    padding-left: 0px; /* ✅ rétabli */
    scroll-padding-left: 20px;
  }

  .etape {
    flex: 0 0 85vw; /* 👈 prend 85% de l'écran : on en voit 1 pleine + un bout */
    max-width: 85vw;
    scroll-snap-align: start;

    scroll-margin-left: 20px;
  }

  .pastille {
    width: 24px;
    height: 24px;
    font-size: 16px;
    margin-top: 20px;
    flex-shrink: 0;
  }

  .contenu-etape {
    flex: 0 0 80vw; /* 👈 prend 85% de l'écran : on en voit 1 pleine + un bout */
    max-width: 80vw;
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .contenu-etape h3 {
    white-space: normal;
    text-align: left; /* ou center selon ton design */
    font-size: 18px;
    margin-top: 0px;
    padding-top: 0px;
  }
  .contenu-etape .capture {
    display: block; /* pour que margin auto fonctionne */
    margin: 10px auto 0;
    width: 250px;
    height: auto;

    border-radius: 12px;
  }

  .bouton {
    display: block;
    width: 300px;
    height: 60px;
    font-size: 25px;
    margin: 0 auto;
    background: #03556b;
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    box-shadow: none;
    border: none;
  }

  .carrousel-wrapper {
    padding: 0; /* 👈 Supprime les marges internes */
    width: 100vw; /* 👈 Prend toute la largeur de la fenêtre */
    margin: 0; /* 👈 Supprime toute marge résiduelle */
    overflow-x: auto;
  }

  .carrousel-images {
    padding: 10px 0 20px 0; /* 👈 Optionnel : garde un peu d'air autour des images */
    gap: 10px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-badge {
    width: 160px;
  }
  .temoignages-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .timeline-horizontale {
    gap: 20px;
  }

  .contenu-etape {
    font-size: 13px;
  }

  .pastille {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .bloc-install {
    flex-direction: column;
    align-items: center;
  }

  .contenu-fonctionnalites {
    flex-direction: column;
    height: auto;
  }

  .photo-fonctionnalites {
    height: 300px;
  }

  .texte-fonctionnalites {
    padding: 20px;
    text-align: justify;
  }
  .photo-contact {
    display: none;
  }
  .contenu-contact {
    flex-direction: column-reverse;
  }

  .formulaire-contact {
    padding: 20px;
    text-align: justify;
  }

  .photo-contact {
    height: 300px;
  }

  .ligne-bouton-captcha {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo {
    width: 200px;
    display: block;
    margin: 0 auto;
  }
  .menu-group {
    flex-direction: column;
    align-items: center;
  }

  .boutons-store {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-left: 0px;
  }
  .boutons-store img {
    width: 110px;
    height: 34px;
  }
}
