/* ==============================================
   RESET DE BASE
   ============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Arial', sans-serif;
  color: #ffffff;
  height: 100%;
  background-color: #0a0f1c; /* fond gris très foncé en cas d’absence de Hero */
}

/* ==============================================
   VARIABLES DE COULEURS
   ============================================== */
:root {
  --couleur-primaire: #00c3a3;
  --couleur-secondaire: #0072a3;
  --blanc: #ffffff;
  --gris-fonce: #0a0f1c;
  --gris-medium: #1e2635;
}

/* ==============================================
   CONTENEURS RÉUTILISABLES
   ============================================== */
.container-nav,
.container-footer,
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================================
   BARRE DE NAVIGATION FIXE
   ============================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--gris-fonce);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo réduit à 50px de hauteur */
.logo img {
  height: 50px;
  width: auto;
}

/* Menu principal (desktop) */
.menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu ul li a {
  text-decoration: none;
  color: var(--blanc);
  font-weight: 500;
  transition: color 0.3s;
}

.menu ul li a:hover,
.menu ul li a.active {
  color: var(--couleur-primaire);
}

/* Bouton hamburger (mobile) masqué en desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--blanc);
  cursor: pointer;
}

/* ==============================================
   SECTION HERO (hauteur réduite et overlay)
   ============================================== */
.hero {
  position: relative;                   /* pour overlay */
  margin-top: 80px;                     /* pour ne pas être masqué par la navbar */
  height: 60vh;                         /* 60% de la hauteur du viewport */
  background: no-repeat center center / cover;
  display: flex;
  align-items: center;                  /* centre verticalement .hero-content */
  justify-content: center;              /* centre horizontalement .hero-content */
  text-align: center;
  overflow: hidden;                     /* pour que l’overlay ne déborde pas */
}

/* Superposition sombre (overlay) */
.hero::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 15, 28, 0.6);
  z-index: 1;  /* placé juste au-dessus du fond, en dessous du contenu */
}

.hero-content {
  position: relative;     /* pour que le contenu soit au-dessus de l’overlay */
  z-index: 2;             
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;          
  color: #ffffff;           /* toujours blanc sur l’overlay sombre */
  margin-bottom: 1rem;      
  line-height: 1.1;
}

.hero-content h1 span.highlight {
  color: var(--couleur-primaire);  
}

.hero-content p {
  font-size: 1.2rem;        
  color: #ffffff;           
  margin-bottom: 1.5rem;   
  line-height: 1.5;
}

/* Bouton d’appel à l’action (ex. “Voir nos projets”) */
.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--couleur-primaire);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-cta:hover {
  background-color: var(--couleur-secondaire);
}

/* ==============================================
   SECTIONS DE CONTENU (fond gris moyen, espace réduit)
   ============================================== */
.section-content,
.intro {
  background-color: var(--gris-medium);
  padding: 2rem 0;   /* espace vertical réduit */
}

.section-content h2,
.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--couleur-primaire);
  text-align: center;
}

.section-content p,
.intro p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ---------------------------------------
   Annuler le fond sombre si nécessaire
   (utile pour section “Qui sommes-nous ?” sur Hero)
   --------------------------------------- */
.section-content.no-background {
  background-color: transparent;
  padding-top: 2rem;    /* ajustez si besoin d’un petit espacement vertical */
  padding-bottom: 2rem;
}

/* ==============================================
   SECTION “QUI SOMMES-NOUS ?”
   ============================================== */
.about-text {
  max-width: 800px;        
  margin: 0 auto;          
  padding: 2rem 1rem;      
  text-align: center;      
}

.about-text h1 {
  font-size: 2.25rem;         
  margin-bottom: 1rem;        
  color: var(--couleur-primaire); 
  line-height: 1.2;
}

.about-text p {
  font-size: 1rem;            
  line-height: 1.6;           
  color: #ffffff;             
  margin-bottom: 1.5rem;      
}

/* ==============================================
   SECTION “NOS PROJETS” – VIGNETTES DE PROJET
   ============================================== */
.services-section {
  background-color: var(--gris-medium);
  padding: 2rem 0;
}

.services-section h2 {
  color: var(--couleur-primaire);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.services-accroche {
  color: #f0f0f0;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Grille principale pour disposer les cartes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; 
  margin-top: 1rem;
}

/* Structure de chaque carte de projet */
.service-card {
  background-color: var(--gris-fonce);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 180px;        
  object-fit: cover;    
}

.service-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.service-card-content h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.service-card-content .tagline {
  font-size: 0.95rem;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 1rem;
  text-align: center;
}

.service-card-content .btn-cta {
  align-self: center;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* ==============================================
   SECTION “NOTRE ÉQUIPE” – VIGNETTES DE MEMBRES
   ============================================== */
.equipe-section {
  background-color: var(--gris-fonce);
  padding: 2rem 0;
}

.equipe-section h2 {
  color: var(--couleur-primaire);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Grille pour contenir les cartes de l’équipe */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.equipe-card {
  background-color: var(--gris-medium);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
}

.equipe-card:hover {
  transform: translateY(-4px);
}

.equipe-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--blanc);
  text-align: center;
}

.equipe-card .compétences,
.equipe-card .role {
  font-size: 0.95rem;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

.equipe-card .compétences strong,
.equipe-card .role strong {
  color: var(--couleur-primaire);
}

/* ==============================================
   PIED DE PAGE FIXE
   ============================================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--gris-fonce);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  flex-wrap: wrap;
}

.container-footer p {
  font-size: 0.9rem;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.social-links li a {
  color: var(--blanc);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.social-links li a:hover {
  color: var(--couleur-primaire);
}

/* ==============================================
   RESPONSIVE (mobile ≤ 768px)
   ============================================== */
@media screen and (max-width: 768px) {
  .menu ul {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: var(--gris-fonce);
    width: 200px;
    height: calc(100vh - 70px);
    padding-top: 1rem;
    transition: right 0.3s;
    z-index: 999;
  }

  .menu ul.show {
    right: 0;
  }

  .menu ul li {
    margin-bottom: 1rem;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 50vh; /* hauteurs réduites sur mobile */
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .about-text h1 {
    font-size: 1.75rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }
}

/* ==============================================
   RESPONSIVE (mobile ≤ 600px spécifiques à grid)
   ============================================== */
@media screen and (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* une seule colonne */
  }
  .service-card img {
    height: 150px; /* hauteur d’image réduite */
  }
  .service-card-content h3 {
    font-size: 1.1rem;
  }
  .service-card-content .tagline {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  .service-card-content .btn-cta {
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
  }

  .equipe-grid {
    grid-template-columns: 1fr; /* une seule colonne */
  }
  .equipe-card {
    padding: 0.75rem;
  }
  .equipe-card h3 {
    font-size: 1.1rem;
  }
  .equipe-card .compétences,
  .equipe-card .role {
    font-size: 0.9rem;
  }
}
/* … vos autres règles … */

main {
  margin-bottom: 4rem; /* Laisse 4 rem d’espace avant le footer */
  padding-bottom: 80px
}

/* ==============================================
   STYLES POUR FORMULAIRE (CONTACT)
   ============================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--couleur-primaire);
}

@media screen and (max-width: 600px) {
  .btn-cta {
    width: 100%;
    text-align: center;
  }
}
/* ==============================================
   MISSION – Animation des statistiques
   ============================================== */
.mission-section {
  padding: 4rem 0;
  background-color: var(--gris-medium);
}

.mission-stats {
  font-size: 6rem;             /* taille très grande */
  font-weight: bold;
  color: var(--couleur-primaire);
  text-align: center;
  margin-bottom: 1rem;         /* espace sous l’animation */
  min-height: 1.2em;           /* pour éviter saut de layout */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.mission-stats.visible {
  opacity: 1;
}

/* Titre “Notre mission” plus petit que l’animation */
.mission-section h2 {
  font-size: 2.5rem;           /* plus petit que 6rem */
  color: var(--couleur-primaire);
  text-align: center;
  margin-bottom: 1rem;
}

/* Texte description standard */
.mission-section p + p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Responsive : adapter sur mobile */
@media screen and (max-width: 768px) {
  .mission-stats {
    font-size: 4rem;
  }
  .mission-section h2 {
    font-size: 2rem;
  }
}
@media screen and (max-width: 600px) {
  .mission-stats {
    font-size: 3rem;
  }
  .mission-section h2 {
    font-size: 1.75rem;
  }
}
																												/* -----------------------------------
   NAVBAR COMMUNE (desktop + mobile)
   ----------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--gris-fonce);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  z-index: 1000;
}

.container-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo img {
  height: 50px;
}

/* Liens desktop */
.menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

.menu ul li a:hover,
.menu ul li a.active {
  color: var(--couleur-primaire);
}

/* Hamburger (mobile) caché par défaut */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--blanc);
  cursor: pointer;
  z-index: 1001; /* au-dessus du menu fixe */
}

/* -----------------------------------
   MOBILE ≤ 768px
   ----------------------------------- */
@media screen and (max-width: 768px) {
  /* Montre le bouton ☰ */
  .menu-toggle {
    display: block;
  }

  /* Cache temporairement les liens desktop */
  .menu ul {
    flex-direction: column;
    position: fixed;
    top: 70px;               /* juste sous la navbar */
    left: 0;                 /* glisse depuis la gauche */
    width: 200px;
    height: calc(100vh - 70px);
    background-color: var(--gris-fonce);
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    z-index: 1000;           /* sous le toggle */
  }

  /* Quand on clique : menu visible */
  .menu ul.show {
    transform: translateX(0);
  }

  /* Espacement des liens mobile */
  .menu ul li {
    margin: 1rem 0;
    text-align: center;
  }

  /* Le reste de votre CSS mobile… */
}

