@import url("https://fonts.cdnfonts.com/css/futura-std-4");
@import url("fonts.css");

/* Réinitialisation basique */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f9fa;
  color: #111;
  line-height: 1.6;
}

/* Fond en grille avec masque radial */
.grid-wrapper {
  min-height: 100vh; /* occupe toute la hauteur */
  width: 100%;
  position: relative;
  background-color: #f8fafc;
  overflow: hidden; /* évite débordements */
}

.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1000px; /* fixe la hauteur du pattern */
  z-index: 0;
  background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px),
    linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
  background-size: 40px 60px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 60%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 60%,
    transparent 100%
  );
}

/* Mets tout le contenu au-dessus du pattern */
/* Mets tout le contenu au-dessus du pattern */
.grid-wrapper header,
.grid-wrapper section {
  position: relative;
  z-index: 1;
}

/* La nav garde bien son fixed */
.grid-wrapper nav {
  z-index: 1000;
}

/* ----- NAVIGATION ----- */
nav {
  position: fixed; /* reste collée en haut */
  top: 0;
  left: 0;
  width: 100%; /* prend toute la largeur */
  background: #f8f9fa;
  padding: 15px 30px;
  z-index: 1000; /* reste au-dessus des autres sections */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo à gauche, liens à droite */
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img {
  height: 50px; /* adapte la taille */
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-family: "Avenir", sans-serif;
  font-weight: 100;
  font-size: 1rem;
  transition: color 0.3s;
}
.nav-links li a.active {
  color: #2ecc71; /* vert actif */
  font-weight: bold;
  border-bottom: 2px solid #2ecc71;
  padding-bottom: 4px;
}

nav ul li a:hover {
  color: #2ecc71; /* vert au survol */
}

/* ----- TITRES ----- */

/*.big-image {
  position: absolute;
  width: 744px;
  height: 996px;
  top: 20px;
  left: -300px;
  right: -20px;
  aspect-ratio: 1.04;
  object-fit: contain;
}*/
header {
  text-align: center;
  margin: 70px 0 30px 0;
}

header h1 {
  font-size: 10rem;
  letter-spacing: -14px;
  color: #0b0b28;
  font-family: "Avenir", sans-serif;
  font-weight: 100;
  padding-top: 10px;
}

header h1 span {
  letter-spacing: -40px;
}

header h2 {
  font-size: 10rem;
  font-weight: 900;
  letter-spacing: -14px;
  font-family: "Avenir", sans-serif;
  color: #0b0b28;
  margin-top: -120px;
}

.certif-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #37b058;
  color: white;
  width: 40px; /* rond parfait */
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
  cursor: pointer;
  margin: -40px auto -30px auto;
  transition: all 0.4s ease;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

/* Texte caché au départ */
.certif-badge .text {
  max-width: 0;
  opacity: 0;
  transition: all 0.4s ease;
  overflow: hidden;
  font-size: 1rem;
  font-family: "Avenir", sans-serif;
}

/* Icône centrée */
.certif-badge .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: margin 0.4s ease;
}

/* Quand on survole → expansion */
.certif-badge:hover {
  width: 350px;
  min-width: 220px; /* largeur mini pour garder la pastille jolie */
  padding: 0 20px;
  border-radius: 50px; /* devient pastille */
}

.certif-badge:hover .text {
  max-width: 300px;
  opacity: 1;
  margin-left: 10px;
}

/* ----- SECTION IMAGE ----- */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 60px auto;
  height: 600px; /* espace vertical */
  padding-bottom: 100px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* image uniquement */
.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 820px; /* même largeur */
  height: 480px; /* même hauteur */
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.2;
  transition: all 0.8s ease;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* conserve proportions sans déformation */
  border-radius: 30px;
}

/* gauche */
.carousel-item.left {
  transform: translate(-150%, -50%) scale(0.85);
  opacity: 0.5;
  z-index: 1;
}

/* centre */
.carousel-item.center {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.6); /* halo vert */
  border-radius: 30px;
}

/* droite */
.carousel-item.right {
  transform: translate(50%, -50%) scale(0.85);
  opacity: 0.5;
  z-index: 1;
}

/* texte sous l’image centrale */
.caption {
  display: none;
  margin-top: 20px;
  font-size: 3rem;
  color: #7b7b7b;
  line-height: 0.3;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  font-family: "Avenir-Roman", Helvetica;
  line-height: 1.2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-item.center .caption {
  display: block;
}

/* ----- STAT ----- */
.stats {
  background: #17823e; /* vert */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 20px 20px;
}

.stat {
  display: flex;
  align-items: center; /* aligne verticalement le nombre et le texte */
  gap: 12px;
  font-family: "Avenir", sans-serif;
  max-width: 200px; /* limite la largeur du label → oblige le retour à la ligne */
}

.stat .number {
  font-size: 4.8rem;
  font-weight: 700;
  white-space: nowrap;
  font-family: "Futura-CondensedExtraBold", Helvetica;
  letter-spacing: -3px;
}

.stat .label {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: -28px;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  white-space: normal; /* autorise retour à la ligne */
}

.stat-1 {
  display: flex;
  align-items: center; /* aligne verticalement le nombre et le texte */
  gap: 12px;
  font-family: "Avenir", sans-serif;
  max-width: 200px; /* limite la largeur du label → oblige le retour à la ligne */
}

.stat-1 .number {
  margin-left: 20px;
  font-size: 4.8rem;
  font-weight: 700;
  white-space: nowrap;
  font-family: "Futura-CondensedExtraBold", Helvetica;
  letter-spacing: -3px;
}

.stat-1 .label {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: -28px;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  white-space: normal; /* autorise retour à la ligne */
}

/* séparateurs */
.divider {
  width: 2px;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
}




.divider {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
}

/* Taille du slide */
.causerie-swiper {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

/* Media Queries pour la responsivité */

/* Pour les écrans jusqu'à 1200px */
@media (max-width: 1200px) {
  header h1,
  header h2 {
    font-size: 8rem;
    margin-top: -90px;
  }

  .carousel {
    height: 500px;
  }

  .carousel-item {
    width: 700px;
    height: 400px;
  }
}

/* Pour les écrans jusqu'à 992px (tablettes) */
@media (max-width: 992px) {
  header h1,
  header h2 {
    font-size: 6rem;
    letter-spacing: -8px;
  }

  header h1 {
    padding-top: 70px;
    margin-top: 70px;
  }

  header h1 span {
    letter-spacing: -20px;
  }
  .certif-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #37b058;
    color: white;
    width: 40px; /* rond parfait */
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    cursor: pointer;
    margin: 5px auto 5px auto;
    transition: all 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
  }

  .carousel {
    height: 400px;
    margin: 40px auto;
  }

  .carousel-item {
    width: 550px;
    height: 320px;
  }

  .caption {
    font-size: 2.2rem;
  }

  .stat .number,
  .stat-1 .number {
    font-size: 3.5rem;
  }

  .stat .label,
  .stat-1 .label {
    font-size: 1rem;
    margin-bottom: -20px;
  }
}

/* Pour les écrans jusqu'à 768px (mobiles paysage) */
@media (max-width: 768px) {
  .certif-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #37b058;
    color: white;
    width: 40px; /* rond parfait */
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    cursor: pointer;
    margin: 5px auto 5px auto;
    transition: all 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
  }
  .carousel {
    height: 350px;
    margin: 30px auto;
  }

  .carousel-item {
    width: 450px;
    height: 260px;
  }

  .caption {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .stats {
    gap: 30px;
    padding: 15px 10px;
  }

  .stat,
  .stat-1 {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .stat .number,
  .stat-1 .number {
    font-size: 2.8rem;
    margin-left: 0;
  }

  .stat .label,
  .stat-1 .label {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .divider {
    height: 40px;
  }

  nav ul {
    gap: 15px;
  }

  nav ul li a {
    font-size: 0.9rem;
  }
}

/* Pour les écrans jusqu'à 576px (mobiles portrait) */
@media (max-width: 576px) {
  header h1,
  header h2 {
    font-size: 3rem;
    letter-spacing: -3px;
    margin-top: -30px;
  }

  header h1 span {
    letter-spacing: -10px;
  }

  .certif-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #37b058;
    color: white;
    width: 40px; /* rond parfait */
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    cursor: pointer;
    margin: 5px auto 5px auto;
    transition: all 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
  }

  .carousel {
    height: 300px;
    margin: 20px auto;
  }

  .carousel-item {
    width: 320px;
    height: 200px;
  }

  .caption {
    font-size: 1.4rem;
    margin-top: 15px;
  }

  .stats {
    flex-direction: column;
    gap: 15px;
    padding: 20px 10px;
  }

  .divider {
    width: 50px;
    height: 2px;
  }

  .certif-badge:hover {
    width: 280px;
  }

  nav {
    padding: 10px 15px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px 15px;
  }

  nav ul li a {
    font-size: 0.85rem;
  }

  .grid-background {
    height: 800px;
    background-size: 30px 45px;
  }
}

/* Pour les très petits écrans (moins de 400px) */
@media (max-width: 400px) {
  header h1,
  header h2 {
    font-size: 2.5rem;
    letter-spacing: -2px;
  }

  header h1 span {
    letter-spacing: -8px;
  }

  .certif-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #37b058;
    color: white;
    width: 40px; /* rond parfait */
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    cursor: pointer;
    margin: 5px auto 5px auto;
    transition: all 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
  }

  .carousel {
    height: 250px;
  }

  .carousel-item {
    width: 280px;
    height: 170px;
  }

  .caption {
    font-size: 1.2rem;
  }

  .certif-badge:hover {
    width: 250px;
    padding: 0 15px;
  }

  .certif-badge .icon svg {
    width: 16px;
    height: 16px;
  }

  .certif-badge .text {
    font-size: 0.9rem;
  }
}
/* --- BURGER --- */
.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
}

/* Menu mobile par défaut caché */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px; /* sous la nav */
    right: 0;
    width: 220px;
    height: 100vh;
    background: #0b0b28;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 20px;
    gap: 20px;
    color: #fff;
    padding-bottom: 350px;

    transform: translateX(100%); /* caché par défaut */
  }

  .nav-links.open {
    transform: translateX(0); /* slide-in */
  }

  .nav-links li a {
    font-size: 1.2rem;
    color: #fff;
  }
}
