/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    font-family: "Changa", system-ui, sans-serif;
    background: #f9f9f9;
    color: #333;
    scroll-behavior: smooth;
  }
  
  /* ===== VARIABLES ===== */
  :root {
    --c1: #334666; /* bleu primaire */
    --c2: #9620ba; /* violet secondaire */
    --grad: linear-gradient(135deg, var(--c1), var(--c2));
    --shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  
  /* ===== HEADER INTÉGRÉ ===== */
  .main-header.in-banner {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 0;
    background: transparent;
    z-index: 10;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
  }
  
  .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .nav-links a {
    text-decoration: none;
    margin-left: 32px;
    color: #fff;
    font-weight: 600;
    transition: color .3s;
  }
  
  .nav-links a:hover {
    color: var(--c2);
  }
  
  /* ===== BANNIÈRE ===== */
  .banner-rge {
    height: 61vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--c1);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .banner-content {
    position: relative;
    z-index: 2;
    margin-top: 60px;
  }
  
  .banner-rge h1 {
    font-size: 3.2rem;
    margin-bottom: 16px;
    color: #fff;
  }
  
  .banner-rge p {
    font-size: 1.3rem;
    color: #fff;
  }
  
  /* ===== Effet hover violet ===== */
  .hover-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(150,32,186,0.6), transparent 70%);
    transition: background .15s ease-out;
    pointer-events: none;
    z-index: 1;
  }
  
  /* ===== BLOC STATS ===== */
  .stats-block {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
    padding: 60px 0;
    margin-top: 0;
  }
  
  .stats-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: #f9f9f9;
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 40px 60px;
    max-width: 1100px;
    width: 90%;
  }
  
  .stat-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
  }
  
  .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .stat-item h3 {
    color: var(--c1);
    margin: 6px 0;
    font-size: 1.3rem;
  }
  
  .stat-item p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.4;
  }
  
  /* Ligne séparatrice */
  .divider {
    width: 2px;
    background: #cdd2dc;
    margin: 0 20px;
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    .stats-container {
      flex-direction: column;
      align-items: center;
      padding: 30px;
    }
  
    .divider {
      width: 60%;
      height: 2px;
      background: #cdd2dc;
      margin: 20px 0;
    }
  
    .stat-item {
      padding: 10px 0;
    }
  
    .banner-rge h1 { font-size: 2.5rem; }
    .banner-rge p { font-size: 1.1rem; }
  }

  
  /* ===== SECTION HAYDRA ===== */
.section-haydra {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    background: #f9f9f9;
  }
  
  .haydra-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
  }
  
  /* === Partie gauche : 2 carrés superposés === */
  .haydra-left {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
  }
  
  /* Carré de base */
  .haydra-square {
    width: 240px;
    height: 240px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    position: absolute;
    transition: transform 0.4s ease;
  }
  
  /* Premier carré (dégradé) — centré */
  .haydra-square.grad {
    background: var(--grad);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  /* Second carré (image) — décalé sud-est */
  .haydra-square.img {
    background: url("assets/img/haydra/pv.webp") center/cover no-repeat;
    top: 58%;
    left: 56%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  
  /* Effet léger au survol */
  .haydra-left:hover .haydra-square.img {
    transform: translate(-50%, -50%) scale(1.03);
  }
  
  /* === Partie droite : texte === */
  .haydra-right {
    flex: 1;
  }
  
  .haydra-right h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .haydra-right .subtitle {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--c1);
    margin-bottom: 18px;
  }
  
  .haydra-right p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
  }
  
  /* Bouton Haydra */
  .btn-haydra {
    display: inline-block;
    background: var(--grad);
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .btn-haydra:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }
  /* ===== SECTION HAYDRA – VERSION MOBILE ===== */
@media (max-width: 900px) {
    /* Structure de la section */
    .haydra-container {
      flex-direction: column;
      text-align: center;
      gap: 40px;
    }
  
    /* Partie gauche (les deux carrés) */
    .haydra-left {
      position: relative;
      min-height: 260px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    .haydra-square {
      position: absolute;
      width: 160px;
      height: 160px;
      border-radius: 30px;
      box-shadow: var(--shadow);
      transition: transform 0.4s ease;
    }
  
    /* Carré dégradé centré */
    .haydra-square.grad {
      background: var(--grad);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1;
    }
  
    /* Carré image légèrement décalé vers le sud-est */
    .haydra-square.img {
      background: url("assets/img/haydra/pv.webp") center/cover no-repeat;
      top: 58%;
      left: 56%;
      transform: translate(-50%, -50%);
      z-index: 2;
    }
  
    /* Effet subtil au survol (agrandissement léger) */
    .haydra-left:hover .haydra-square.img {
      transform: translate(-50%, -50%) scale(1.05);
    }
  
    /* Partie droite (texte) */
    .haydra-right {
      width: 90%;
      margin: 0 auto;
    }
  
    .haydra-right h2 {
      font-size: 2rem;
      margin-bottom: 10px;
      background: var(--grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  
    .haydra-right .subtitle {
      font-size: 1.05rem;
      color: var(--c1);
      font-weight: 600;
      margin-bottom: 14px;
    }
  
    .haydra-right p {
      font-size: 0.95rem;
      line-height: 1.6;
      color: #555;
      margin-bottom: 26px;
    }
  
    .btn-haydra {
      display: inline-block;
      background: var(--grad);
      color: #fff;
      text-decoration: none;
      padding: 12px 28px;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.3s ease;
    }
  
    .btn-haydra:hover {
      opacity: 0.9;
      transform: translateY(-2px);
    }
  }
  
  
  

  /* ===== SECTION DOMAINES RGE ===== */
.section-domaines {
    padding: 100px 20px;
    background: #fff;
    text-align: center;
  }
  
  .section-domaines .section-title {
    font-size: 2.4rem;
    margin-bottom: 60px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  /* Grille 5 desktop, 3 mobile */
  .domaines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .domaine-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 26px 18px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    cursor: pointer;
  }
  
  .domaine-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c1);
    text-align: center;
    line-height: 1.3;
  }
  
  .domaine-card:hover {
    background: var(--grad);
    transform: translateY(-4px);
  }
  
  .domaine-card:hover h3 {
    color: #fff;
  }
/* =========================================================
   SECTION DOMAINES RGE — VERSION MOBILE (≤ 768px)
   ========================================================= */
   @media (max-width: 768px) {

    /* Grille mobile : 3 colonnes */
    .domaines-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      padding: 0 10px;
    }
  
    /* Cartes */
    .domaine-card {
      position: relative;
      overflow: hidden;
      background: #fff;
      border-radius: 24px;
      box-shadow: var(--shadow);
      min-height: 100px;
      padding: 14px 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      cursor: default;
      transition:
        background 1.4s ease-in-out,
        color 1.4s ease-in-out,
        transform 0.5s ease,
        box-shadow 0.4s ease;
    }
  
    .domaine-card h3 {
        font-size: 0.8rem;
        line-height: 1.2;
        color: var(--c1);
        font-weight: 600;
        text-align: center;
        margin: 0;
        word-break: break-word;
      
        transition: none;
      }
      
      /* Texte blanc immédiat quand actif */
      .domaine-card.active h3 {
        color: #fff;
      }
      
  
    /* Dégradé (appliqué par JS sur 3 cartes) */
    .domaine-card.active {
      background: var(--grad);
      transform: translateY(-3px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
  
    .domaine-card.active h3 {
      color: #fff;
    }
  
    /* Désactivation du hover mobile */
    .domaine-card:hover {
      background: #fff;
      transform: none;
    }
  
    .domaine-card:hover h3 {
      color: var(--c1);
    }
  }


  /* =========================================================
   SECTION EXPERTISE
   ========================================================= */
.section-expertise {
    background: #f9f9f9;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
  }
  
  .expertise-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
  }
  
  /* ===== Texte gauche : grille 2x2 ===== */
  .expertise-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 40px 50px;
    align-items: start;
  }
  
  /* Petit carré dégradé */
  .square {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 30%;
    background: var(--grad);
    margin-bottom: 8px;
    box-shadow: 0 0 10px rgba(150, 32, 186, 0.25);
  }
  
  /* Bloc individuel */
  .expertise-block {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Titre h2 compact et dégradé */
  .expertise-block h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    line-height: 1.25;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  /* Paragraphe */
  .expertise-block p {
    font-size: 1rem;
    color: #555;
    line-height: 1.45;
    margin-top: 4px;
  }
  
  /* ===== Carte tournante droite ===== */
  .expertise-right {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .card-container {
    perspective: 1000px;
  }
  
  .expertise-card {
    width: 300px;
    height: 420px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.9s ease;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }
  
  .expertise-card:hover {
    transform: rotateY(180deg);
  }
  
  .card-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 24px;
  }
  
  .card-front {
    background-image: url("https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=800&q=80");
  }
  
  .card-back {
    background-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80");
    transform: rotateY(180deg);
  }
  
  .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 70, 102, 0.7), rgba(150, 32, 186, 0.7));
    z-index: 1;
  }
  
  .card-content {
    position: relative;
    z-index: 2;
  }
  
  .card-content h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  .card-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  /* ===== Bouton transparent ===== */
  .btn-transparent {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .btn-transparent:hover {
    background: #fff;
    color: var(--c2);
    transform: scale(1.05);
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 968px) {
    .expertise-container {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .expertise-left {
      grid-template-columns: 1fr;
      gap: 30px;
      order: 2;
      align-items: center;
    }
  
    .expertise-block {
      align-items: center;
    }
  
    .square {
      margin-bottom: 6px;
    }
  
    .expertise-right {
      order: 1;
      margin-bottom: 40px;
    }
  
    .expertise-block h2 {
      font-size: 1.2rem;
    }
  
    .expertise-block p {
      font-size: 0.95rem;
    }
  }

  
  /* ===== SECTION ===== */
.section-simu {
    background: #fff;
    padding: 70px 20px; /* 🔹 Hauteur réduite */
    display: flex;
    justify-content: center;
  }
  
  /* Container principal */
  .simu-wrap {
    background: var(--c1);
    color: #fff;
    max-width: 1200px;
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: visible;
    margin: 0 auto;
    min-height: 300px; /* 🔹 Hauteur plus basse */
  }
  
  /* ===== Texte ===== */
  .simu-left {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .simu-left h2 {
    font-size: 2.4rem; /* 🔹 plus grand */
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--c2), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .simu-left h3 {
    font-size: 1.3rem;
    color: #fff; /* 🔹 blanc */
    margin-bottom: 16px;
  }
  
  .simu-left p {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff; /* 🔹 blanc pur */
    max-width: 440px;
  }
  
  /* ===== Mosaïque ===== */
  .simu-right {
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 30px;
  }
  
  .simu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    align-items: start;
    justify-items: center;
  }
  
  .simu-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  
  .simu-col.center {
    transform: translateY(-10px);
  }
  
  .simu-col:nth-child(1) { transform: translateY(20px); }
  .simu-col:nth-child(3) { transform: translateY(10px); }
  
  /* Images */
  .simu-col img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }
  
  /* Zoom hover */
  .simu-col img:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 992px) {
    .simu-wrap {
      grid-template-columns: 1fr;
      border-radius: 20px;
      min-height: auto;
    }
  
    .simu-left {
      text-align: center;
      padding: 50px 20px;
    }
  
    .simu-left h2 {
      font-size: 2rem; /* 🔹 légèrement réduit sur mobile */
    }
  
    .simu-right {
      display: none; /* 🔹 supprime complètement la mosaïque */
    }
  }

  /* ===== SECTION HAYDRA FOOTER ===== */
.section-haydra-footer {
    background: #fff;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
  }
  
  /* Container principal */
  .haydra-footer-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: 320px; /* 🔹 hauteur modérée */
    border-radius: 24px;
    overflow: hidden;
    background: url("assets/img/enr/37.webp") center/cover no-repeat;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
  }
  
  /* Superposition violette transparente */
  .haydra-footer-overlay {
    position: absolute;
    inset: 0;
    background: var(--c2);
    opacity: 0.45;
    z-index: 1;
  }
  
  /* Contenu */
  .haydra-footer-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px 60px;
    text-align: left;
    max-width: 700px;
  }
  
  .haydra-footer-content h4 {
    font-size: 1.4rem; /* 🔹 plus grand */
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .haydra-footer-content h1 {
    font-size: 3rem; /* 🔹 très grand et gras */
    font-weight: 900;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: 1px;
  }
  
  .haydra-footer-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 500;
  }
  
  /* Lien blanc pur */
  .haydra-footer-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .haydra-footer-link:hover {
    opacity: 0.85;
    transform: translateX(4px);
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 992px) {
    .haydra-footer-container {
      height: auto;
      padding: 60px 20px;
    }
  
    .haydra-footer-content {
      text-align: center;
      padding: 40px 20px;
      margin: 0 auto;
    }
  
    .haydra-footer-content h4 {
      font-size: 1.2rem;
    }
  
    .haydra-footer-content h1 {
      font-size: 2.4rem;
    }
  
    .haydra-footer-content p {
      font-size: 1.05rem;
    }
  
    .haydra-footer-link {
      font-size: 1.1rem;
    }
  }
  
  