body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background-color: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 10px;
}

nav a {
  margin: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hero {
  background: url('images/team.png') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #fff;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: left;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero button {
  padding: 12px 24px;
  border: none;
  background-color: #4b6cb7;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  font-size: 18px;
}

.section {
  padding: 60px 40px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* début footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px 40px;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  margin: 0 8px;
  position: relative;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: #4b6cb7;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-link:hover::after {
  width: 100%;
}
/* fin footer */

@media (max-width: 768px) {
  .hero {
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  header {
    display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  }

  nav {
    justify-content: flex-start;
  }
}

/* Bloc interactif de "à propos" */
.content-block {
  margin-bottom: 2rem;
}

.content-block h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  text-align: justify;
}

/* Responsive disposition des deux blocs */
.a-propos-texte {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sur écran large, les deux blocs côte à côte */
@media screen and (min-width: 768px) {
  .a-propos-texte {
    flex-direction: row;
    justify-content: space-between;
  }

  .content-block {
    flex: 1;
  }
}
/* Fin bloc interactif de "à propos" */


/* Début de la Services Section */
.services-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: #4b6cb7;
  margin: 10px auto 0;
  border-radius: 2px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.service-card p {
  font-size: 14px;
  color: #666;
}

@media (max-width: 500px) {
  .section-title {
    font-size: 24px;
  }

  .service-card {
    padding: 20px 15px;
  }

  .icon {
    font-size: 30px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 13px;
  }
}
/** fin services section **/

/** header **/
/* ====== (base) ====== */
.navbar {
  /* hauteur standard de barre */
  --bar-h: 64px;

  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 10px 20px;
  min-height: var(--bar-h);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Marque : logo + nom, homogène */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

/* Liens (desktop) */
.navbar-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.navbar-nav a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 6px 2px;
  transition: color .25s ease;
}

.navbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: #4b6cb7;
  transition: width .25s ease;
}

.navbar-nav a:hover {
  color: #4b6cb7;
}

.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-nav a.active-link {
  color: #4b6cb7;
}

.navbar-nav a.active-link::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: 0;
  color: #333;
  cursor: pointer;
  line-height: 0;

  /* clé : au-dessus du panneau */
  position: relative;
  z-index: 1101;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .navbar-nav {
    /* au lieu de display:none;  ==> on le laisse présent pour animer */
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--bar-h) + 8px);
    width: min(92vw, 420px);

    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

    z-index: 1100;

    /* --- Animation (état fermé) --- */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px) scale(0.98);
    /* slide léger + légère réduction */
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
  }

  /* --- Animation (état ouvert) --- */
  .navbar-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }

  /* Stagger léger sur les liens (facultatif) */
  .navbar-nav a {
    opacity: .0;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s ease;
  }

  .navbar-nav.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-nav.active a:nth-child(1) {
    transition-delay: .04s;
  }

  .navbar-nav.active a:nth-child(2) {
    transition-delay: .08s;
  }

  .navbar-nav.active a:nth-child(3) {
    transition-delay: .12s;
  }

  .navbar-nav.active a:nth-child(4) {
    transition-delay: .16s;
  }

  .navbar-nav.active a:nth-child(5) {
    transition-delay: .20s;
  }
}

/** fin header **/

/* ===== Apparitions au scroll (révélations) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Variantes directionnelles */
.reveal-up {
  transform: translateY(24px);
}

.reveal-left {
  transform: translateX(-24px);
}

.reveal-right {
  transform: translateX(24px);
}

.reveal-zoom {
  transform: scale(.98);
}

/* Stagger (décalage progressif) via variable CSS */
.reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Optionnel : petits raffinements sur certains blocs */
.services-container .service-card {
  will-change: transform, opacity;
}

/* ===========================
   Responsive Design
   =========================== */

/* Petits écrans : smartphones (portrait ≤ 768px) */
@media (max-width: 768px) {
  header {
    display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  }

  .hero {
    align-items: center;
    text-align: center;
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    width: 100%;
    padding-top: 10px;
  }

  nav a {
    margin: 10px 0;
  }

  .section {
    padding: 40px 20px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services-container {
    flex-direction: column;
  }

  .contact-form {
    flex-direction: column;
  }

  footer {
    padding: 20px 10px;
  }
}

/* Tablettes moyennes : entre 768px et 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 50px 30px;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Modal Glassmorphism --- */
/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

/* Popup content */
.popup-content {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px 20px;
  width: 90%;
  max-width: 500px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.4s ease;
  position: relative;
  text-align: left;
}

/* Bouton de fermeture */
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: white;
}

/* Responsive mobile */
@media (max-width: 480px) {
  .popup-content {
    padding: 20px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GESTION DES POPUP "NOS EXPERTISES" */
/* Style Glassmorphism pour la popup */
.glass-popup {
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Style responsive pour les cartes */
.service-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.03);
}
/* FIN DE LA GESTION DES POPUP "NOS EXPERTISES" */


