/* ==================================================
   🎨 VARIABLES GLOBALES
================================================== */
:root {
  --color-primary: #031f48;         /* Bleu foncé */
  --color-secondary: #0e0e0e;       /* Presque noir */
  --color-accent: #ffff66;          /* Jaune vif */
  --color-text: #333333;
  --color-light: #ffffff;
  --color-muted: #666666;
  --color-bg-light: #f4f4f4;
  --color-green-hover: #2ecc71; /* Vert personnalisé */

  --border-radius: 5px;
  --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

#menu {
  height: 1px;
  scroll-margin-top: 100px; /* Ajuste selon la hauteur de ton header */
}




body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================================================
   📦 LAYOUT & CONTAINERS
================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================================================
   🔠 TITRES ET TEXTES
================================================== */
.section-title {
  text-align: center;
  margin-bottom: 100px;
  font-size: 2.5rem;
  color: var(--color-secondary);
  position: relative;
  padding-bottom: 15px;
}



a h2.section-title {
  text-decoration: none;
  color: inherit;
}

a h2.section-title:hover {
  color: green;
  text-decoration: none;
}





.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-primary);
}

.highlight {
  font-weight: bold;
  /*color: var(--color-primary);*/
  color: #32CD32
}

/* ==================================================
   🔘 BOUTONS
================================================== */
.btn {
  display: inline-block;
  width: 200px;
  padding: 12px 0;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-green-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #333;
  transform: translateY(-3px);
}

/* ==================================================
   🧭 HEADER ET NAVIGATION
================================================== */

/* === HEADER GENERAL === */
header {
  background-color: rgba(34, 34, 34, 0.85);
  color: #fff;
  padding: 10px 0; /* Réduit le padding vertical */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* === CONTAINER FLEX === */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* === LOGO / TITRE === */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo h1 {
  font-size: 20px; /* Taille réduite du titre */
  margin: 0;
}

/* === NUMÉRO DE TÉLÉPHONE === */
.logo .phone-number {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-accent); /* Attention : assure-toi que cette variable est définie */
  margin-top: 5px;
}

/* Style du lien à l'intérieur pour qu'il hérite bien des couleurs et apparences */
.logo .phone-number a {
  color: inherit; /* Hérite de la couleur de .phone-number */
  text-decoration: none; /* Pas de soulignement par défaut */
  cursor: pointer;
}

.logo .phone-number a:hover {
  text-decoration: underline; /* Soulignement au survol pour indiquer que c'est cliquable */
}




/* === MENU DE NAVIGATION === */
nav ul {
  display: flex;
  gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-size: 14px;
  text-decoration: none;
  color: #fff;
}




/* ==================================================
  *  Traitement lien etoile *
================================================== */
 

/* Style du lien Étoile Verte */

.etoile-verte {
  color: #fff;                /* texte blanc */
  text-decoration: none;      /* jamais de soulignement */
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease; /* transition fluide sur la couleur */
}

.etoile-verte:hover {
  color: #32CD32;             /* texte devient vert au survol */
  text-decoration: none;      /* on s'assure qu'il reste sans soulignement */
}

/* Style des étoiles autour du texte */
.etoile-verte .etoile {
  color: #32CD32;             /* étoiles vertes */
  font-weight: bold;
  margin: 0 4px;
}

.etoile-verte:hover .etoile { /* zoom des étoiles au survol */
  transform: scale(1.2);
  transition: transform 0.3s ease;
}


/*================================================== */



/* === BOUTON MENU (HAMBURGER) === */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff; /* Corrigé : utilisait var(--color-light) qui ne va pas avec un fond clair */
}


/* ==================================================
   🦸 SECTION HERO
================================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
  z-index: 0;
}

.bg1 {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ==================================================
   🛠️ SERVICES
================================================== */
.services {
  padding: 100px 0;
  background-color: var(--color-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr)); /* colonnes plus larges */
  gap: 30px; /* un peu plus d’espace entre les blocs */
  justify-items: center;
  align-items: start;
  max-width: 5000px; /* 🔥 élargit la grille globale */
  margin: 0 auto; /* centre la grille dans la page */
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 250px; /* 👉 augmente la taille individuelle des cartes */
}


/* --------- effet animation -----------*/
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* classe ajoutée quand la carte est visible */
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.3s; }
.service-card:nth-child(3) { transition-delay: 0.5s; }
.service-card:nth-child(4) { transition-delay: 0.7s; }
.service-card:nth-child(5) { transition-delay: 0.9s; }

/* -----------------------------------*/

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* ==================================================
   🧑‍💼 ABOUT
================================================== */
.about {
  padding: 100px 0;
  background-color: var(--color-bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
  flex: 1 1 30%;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  color: var(--color-muted);
  font-size: 1rem;
}

.about-image {
  height: 400px;
  background: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}



/* section a propos */

.section-title {
  font-size: 2rem;
  /*color: #007BFF;  bleu principal */
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Texte vert */
.texte-vert {
  color: #00cc44; /* vert vif */
}

/* Lien cliquable “Étoile Verte” */
.lien-etoile {
  text-decoration: none;   /* pas de soulignement */
  font-weight: bold;
  transition: color 0.3s ease;
}

/* Couleur au survol */
.lien-etoile:hover {
  color: #28a745; /* vert plus foncé au survol */
  text-decoration: none;   /* pas de soulignement même au survol */
}



/* ==================================================
   💬 TÉMOIGNAGES
================================================== */
.testimonials {
  padding: 100px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.testimonial-content {
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ddd;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--color-muted);
  font-size: 0.9rem;
}







/* ==================================================
   ✉️ CONTACTEZ-NOUS
================================================== */

.contact {
  padding: 100px 0;
  background-color: var(--gray-color);
}


.contact-wrapper {
  display: flex;
  align-items: center; /* centre verticalement */
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement le contenu dans la colonne */
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center; /* centré */
  color: #333;
}


.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 24px;
  color: #2ecc71;
  margin-right: 15px;
}

.contact-item h3 {
  margin: 0;
  font-size: 1.1rem;
}

.contact-item p {
  margin: 5px 0 0;
}

.contact-map {
  flex: 2;
  min-width: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
}



.contact-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333; /* couleur par défaut du texte */
  transition: color 0.3s ease;
}

.contact-link i {
  font-size: 24px;
  color: #2ecc71; /* icône verte */
  margin-right: 15px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #2ecc71; /* texte devient vert au survol */
  text-decoration: none;
}

.contact-link:hover i {
  color: #2ecc71; /* tu peux laisser cette ligne si tu veux que l’icône garde ou reprenne le vert */
}


/* ================MAP================================== */

/* Carte (Map) */
.contact-map {
  flex: 1 1 300px;
  max-width: 600px;
  text-align: center;
}

.contact-map img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-map {
    margin-top: 20px;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
  }
}

/* ==================================================
   🦶 FOOTER GLOBAL 
================================================== */

      /* ----------------------------------------
         SECTION : Footer global
      ---------------------------------------- */
      footer {
        background-color: var(--color-secondary); /* Couleur de fond du footer */
        color: var(--color-light);               /* Couleur du texte par défaut */
        padding: 70px 20px 20px;                 /* Espacement intérieur */
        text-align: center;                      /* Centrage du contenu */
      }

      /* ----------------------------------------
         SECTION : Grille du contenu principal
      ---------------------------------------- */
      .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Grille responsive */
        gap: 40px;                         /* Espace entre les colonnes */
        margin-bottom: 40px;
        justify-items: center;            /* Centrage horizontal des colonnes */
        align-items: start;               /* Alignement en haut des colonnes */
      }

      .footer-links-group h3,
      .footer-social h3 { 
          color: var(--color-accent);       /* Couleur du titre du logo */

      }


      /* ----------------------------------------
         SECTION : Logo et slogan
      ---------------------------------------- */

      .footer-logo h3 {
        color: #fff; /* texte blanc */
      }

      .footer-logo .etoile {
        color: #32CD32;  /* couleur étoile verte */
        font-weight: bold;
        margin: 0 5px;
      }



      /* ----------------------------------------
         SECTION : Titres partagés (avec soulignement décoratif)
      ---------------------------------------- */
      .footer-links h3,
      .footer-social h3,
      .shared-title {
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
      }

      .footer-links h3::after,
      .footer-social h3::after,
      .shared-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background-color: var(--color-primary); /* Barre décorative */
      }

      /* ----------------------------------------
         SECTION : Groupes de liens rapides
      ---------------------------------------- */
      .footer-links-group {
        text-align: center;
      }

      .footer-links-columns {
        display: flex;
        gap: 40px;
        justify-content: center;
        flex-wrap: wrap;
      }

      .footer-links-columns .footer-links ul {
        text-align: left;
      }

      /* Liste des liens */
      .footer-links ul li {
        margin-bottom: 10px;
      }

      .footer-links ul li a {
        color: var(--color-light);
        transition: var(--transition);   /* Transition fluide */
      }

      .footer-links ul li a:hover,
      .footer-links ul li a:focus {
        color: var(--color-accent);      /* Changement de couleur au survol */
        padding-left: 5px;               /* Décalage visuel vers la droite */
      }

/* ----------------------------------------
   SECTION : Icônes sociales (Facebook, Twitter, etc.)
---------------------------------------- */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Liens vers les réseaux sociaux */
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.1); /* Fond semi-transparent */
  border-radius: 50%;                         /* Forme ronde */
  color: var(--color-light);                  /* Couleur des icônes par défaut */
  text-decoration: none;
  transition: var(--transition);

  /* Animation à l’apparition */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

/* Animation décalée pour chaque icône */
.social-icons a:nth-child(1) { animation-delay: 0.1s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.3s; }
.social-icons a:nth-child(4) { animation-delay: 0.4s; }

/* Définition de l'animation "fadeInUp" */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet au survol des boutons sociaux */
.social-icons a:hover,
.social-icons a:focus {
  background-color: var(--color-primary);   /* Fond coloré au survol */
  color: var(--color-secondary);            /* Contraste au survol */
  transform: translateY(-5px);              /* Légère élévation */
}

/* Styles des icônes Font Awesome à l’intérieur */
.footer-social .social-icons a i {
  padding: 10px;
  border-radius: 50%;
  background-color: #fff;                   /* Fond blanc des icônes */
}

/* Couleurs spécifiques des marques */
.fa-facebook { color: #3b5998; }
.fa-twitter  { color: #1da1f2; }
.fa-instagram { color: #e1306c; }
.fa-linkedin { color: #0077b5; }

/* Survol des icônes : zoom et transparence */
.footer-social .social-icons a:hover i {
  opacity: 0.7;
  transform: scale(1.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ----------------------------------------
   SECTION : Bas de page
---------------------------------------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Ligne de séparation */
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--color-muted);                     /* Couleur atténuée */
}










/* ==================================================
   📱 RESPONSIVE (GLOBAL)
================================================== */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 300px;
    order: -1;
  }

  .stats {
    justify-content: center;
  }

  .stat-item {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }

    nav {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      background-color: var(--color-secondary);
      padding: 20px 0;
      transition: var(--transition);
      box-shadow: 0 5px 10px rgba(0,0,0,0.1);
      z-index: 1001;
    }

    nav.active {
      left: 0;
    }

    nav ul {
      flex-direction: column;
      align-items: center;
    }

    nav ul li {
      width: 100%;
      text-align: center;
    }

    nav ul li a {
      display: block;
      padding: 15px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

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

    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }

    .section-title {
      font-size: 2rem;
    }

    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .footer-logo h2 {
      justify-content: center;
    }

    .social-icons {
      justify-content: center;
    }
}

