* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f8f8f8;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}


/* --- HEADER & STRUCTURE GLOBALE --- */
.header {
    padding: 10px 0; /* Un peu plus serré pour mobile */
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* --- NAVIGATION DESKTOP --- */
.nav {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Les liens classiques */
.nav > a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.nav a.active {
    background: #000;
    color: #fff;
}

/* --- BOUTON HAMBURGER (Visible par défaut sur mobile,) --- */
.hamburger-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left : 160px;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    display: block; /* On le laisse visible pour le test */
    line-height: 1;
    color: #000;
}

/* --- LE MENU DÉROULANT --- */
.hamburger-menu {
    display: none; /* Caché par défaut */
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #000;
    width: 250px;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.hamburger-menu.open {
    display: block;
}

.hamburger-menu a {
    display: block !important;
    padding: 15px 20px;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.hamburger-menu a:hover {
    background: #000;
    color: #fff;
}

/* --- COMPRESSION MAXIMALE POUR MOBILE --- */
@media screen and (max-width: 768px) {
    
    .header {
        padding: 8px 0; /* Réduit la hauteur du bandeau */
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2px; /* Espace minimum entre logo et nav */
    }

    .logo {
        font-size: 6px; /* Réduit le logo */
        white-space: nowrap;
        flex-shrink: 1; /* Autorise le logo à prendre moins de place si besoin */
    }

    .nav {
        display: flex !important;
        align-items: center;
        gap: 2px; /* Espace très réduit entre les boutons */
    }

    .nav > a {
        display: inline-block !important;
        font-size: 9px; /* Taille minimale lisible */
        padding: 4px 6px; /* Réduit la taille des blocs noirs/gris */
        letter-spacing: -0.2px; /* Serre les lettres */
        white-space: nowrap;
    }

    .hamburger-btn {
        padding: 0 5px;
        font-size: 18px; /* Réduit un peu l'icône hamburger */
    }

    /* Ajustement du menu déroulant pour qu'il reste propre */
    .hamburger-menu {
        top: 45px; /* Calé juste sous la barre plus fine */
    }
}

/* --- OPTIMISATION DESKTOP (Optionnel pour cohérence) --- */
@media screen and (min-width: 769px) {
    .nav {
        gap: 15px;
    }
    .nav a {
        font-size: 12px;
    }
}

/* --- GESTION DU LOGO SUR DEUX LIGNES --- */

/* Sur ordinateur : on cache le saut de ligne */
.mobile-break {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Sur mobile : on active le saut de ligne */
    .mobile-break {
        display: block; /* Force le passage à la ligne */
        content: "";    /* Optionnel : pour nettoyer le tiret si besoin */
    }

    .logo {
        font-size: 8px;
        line-height: 1.2; /* Serre les deux lignes pour que ce soit joli */
        text-align: left;
        flex-shrink: 0;   /* Empêche le logo de disparaître */
    }
}
/* Network Section */
.network-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  overflow: hidden;
  background: #f8f8f8;
}

.network-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 60px;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

/* Clusters */
.cluster {
  position: absolute;
  z-index: 2;
}

/* Made cluster titles clickable with link styles */
.cluster-title-link {
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
  text-align: center;
  margin-bottom: 200px;
}

.cluster-title-link:hover {
  opacity: 0.7;
}



/* Adjusted cluster positions to exactly match image spacing */
/* Cluster Positions - Based on the image layout */
.cluster-racontottes {
  top: 80px;
  left: 100px;
  width: 420px;
  height: 200px;
}

.cluster-ajogan {
  top: 100px;
  right: 180px;
  width: 350px;
  height: 230px;
}

.cluster-restituer {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 320px;
}

.cluster-lumiere {
  bottom: 140px;
  left: 100px;
  width: 400px;
  height: 260px;
}

.cluster-matrimoines {
  bottom: 120px;
  right: 180px;
  width: 250px;
  height: 340px;
}

/* Person Nodes */
.person-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.person-node:hover {
  transform: scale(1.15);
  z-index: 4;
}

.person-node img {
  width: 55px;
  height: 75px;
  border-radius: 40%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}


.person-node:hover img {
  border-color: #0051ff;
  box-shadow: 0 4px 12px rgba(0, 81, 255, 0.25);
}

.person-name {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #333;
  text-align: center;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Search Button */
.search-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border: none;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
}

.search-btn:hover {
  background: #000;
  color: #fff;
  transform: translateX(-50%) scale(1.1);
}

/* Zoom Controls */
.zoom-controls {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.zoom-btn:hover {
  background: #000;
  color: #fff;
}

.zoom-slider {
  width: 180px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0e0;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.zoom-slider::-webkit-slider-thumb:hover,
.zoom-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1200px) {
  .cluster-title {
    font-size: 15px;
  }

  .cluster-racontottes,
  .cluster-ajogan,
  .cluster-lumiere,
  .cluster-matrimoines {
    width: 280px;
  }

  .person-node img {
    width: 48px;
    height: 68px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 11px;
    padding: 6px 12px;
  }

  .logo {
    font-size: 12px;
  }

  .zoom-slider {
    width: 120px;
  }

  .cluster {
    width: 220px !important;
  }

  .person-node img {
    width: 42px;
    height: 62px;
  }

  .person-name {
    font-size: 9px;
  }

  .network-container {
    padding: 30px;
  }
}

.network-section {
  position: relative;
  width: 100%;
  height: 100%;
}

.network-container {
  position: relative;
  width: 1200px;
  height: 800px;
  margin: 0 auto;
}

/* Clusters */
.cluster {
  position: absolute;
  width: 350px;
  height: 250px;
}

.cluster-racontottes { top: 40px; left: 40px; }
.cluster-ajogan { top: 40px; right: 40px; }
.cluster-restituer { top: 150px; left: 50%; transform: translateX(-50%);  }
.cluster-lumiere { bottom: 40px; left: 40px; }
.cluster-matrimoines { bottom: 40px; right: 40px; }

/* Titles */
.cluster-title {
  font-size: 30px;
  font-weight: bold;
  color: #0033aa;
  font-family: "Times New Roman", Times, serif; /* Définit la police */
}

/*.cluster-title {*/
/*  font-size: 17px;*/
/*  font-weight: 700;*/
/*  color: #0051ff;*/
/*  margin-bottom: 100px;*/
/*  line-height: 1.3;*/
/*  cursor: pointer;*/
/*}*/

/* Nodes */
.person-node {
  position: absolute;
  text-align: center;
  text-decoration: none;
  color: #000;
}

.person-node span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
  line-height: 1.1; /* Réduit l'espace vertical */
}



/* Style de base pour la transition */
.axe-img {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

/* Effet au survol (zoom + luminosité) */
.axe-img:hover {
    transform: scale(1.05); /* L'image s'agrandit de 5% */
    filter: brightness(1.1); /* L'image devient un peu plus claire */
}

/* Titre Ressources */
    .resources-title {
      font-family: "Georgia", serif;
      font-weight: 900;
      font-size: 70px;
      text-align: center;
      margin-top: 25px;
      margin-bottom: 10px;
      line-height: 1;
    }

    /* Bloc vidéo */
    .video-preview-wrapper {
      display: flex;
      justify-content: center;
      margin-top: 10px;
      margin-bottom: 35px;
    }

    .video-preview {
      width: 310px;
      height: 170px;
      border-radius: 12px;
      background: #000;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .video-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.9;
    }

    /* Icon lecture à droite */
    .play-icon-right {
      position: absolute;
      right: -70px;
      top: 50%;
      transform: translateY(-50%);
      width: 70px;
      height: 70px;
      background: #000;
      border-radius: 12px;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
    }

    /* Carousel cards */
    .resource-card {
      width: 170px;
      text-align: center;
      margin: auto;
     
    }

    .resource-card img {
      width: 150px;
      height: 85px;
      border-radius: 8px;
      object-fit: cover;
      display: block;
      margin: 0 auto;
    }

    .resource-card h5 {
      font-weight: 800;
      margin-top: 12px;
      font-size: 15px;
      text-align: center; /* ✅ texte aligné à gauche */
    }

    .resource-card h5.blue {
      color: #0d4fa3;
      font-weight: 900;
      text-align: center; /* ✅ texte aligné à gauche */
    }

    .resource-underline {
      width: 35px;
      height: 3px;
      background: #000;
      margin: 10px auto;
      border-radius: 50px;
      text-align: center; /* ✅ texte aligné à gauche */
    }

    .resource-underline.blue {
      background: #0d4fa3;
      text-align: center; /* ✅ texte aligné à gauche */
    }

    .resource-card p {
      font-size: 11px;
      color: #111;
      margin-bottom: 0;
      font-weight: 600;
      text-align: center; /* ✅ texte aligné à gauche */
    }

    /* Carrousel navigation buttons */
    .carousel-control-prev,
    .carousel-control-next {
      width: 50px;
      opacity: 1;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      background-image: none;
      width: auto;
      height: auto;
    }

    .carousel-control-prev-icon::before {
      content: "←";
      font-size: 22px;
      font-weight: 900;
      color: #000;
    }

    .carousel-control-next-icon::before {
      content: "→";
      font-size: 22px;
      font-weight: 900;
      color: #000;
    }

    /* Bouton En savoir plus */
    .btn-know-more {
      background: #0d4fa3;
      color: #fff;
      padding: 8px 22px;
      border-radius: 8px;
      font-weight: 800;
      font-size: 12px;
      border: none;
      margin-top: 25px;
    }

    .btn-know-more:hover {
      background: #0b3f82;
      color: #fff;
    }

    /* Modal YouTube responsive */
    .ratio iframe {
      border-radius: 12px;
    }
    /* ====== WRAPPER CARROUSEL (pour positionner les flèches) ====== */
.resources-carousel-wrapper{
  width: 100%;
  max-width: 720px; /* proche maquette */
  margin: 0 auto;
  position: relative;
}

/* ====== ESPACEMENT EXACT ENTRE RUBRIQUES ====== */
.resources-row{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;               /* ✅ espacement identique à l'image */
  padding: 10px 0;
}


/* ====== LIEN (toute la carte est cliquable) ====== */
.resource-link{
  text-decoration: none;
  display: block;
}

/* ====== CARTE ====== */
.resource-card{
  width: 165px;
  text-align: center;
  cursor: pointer;
}

/* Image */
.resource-card img{
  width: 150px;
  height: 85px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.resource-card img{
  object-position: center;
}


/* Titre par défaut */
.resource-title{
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 900;
  font-size: 15px;
  color: #000; /* ✅ noir par défaut */
}

/* Ligne */
.resource-underline{
  width: 32px;
  height: 3px;
  background: #000; /* ✅ noir par défaut */
  margin: 6px auto 10px auto;
  border-radius: 50px;
  text-align: center; /* ✅ texte aligné à gauche */
}

/* Description */
.resource-desc{
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #000; /* ✅ noir par défaut */
  margin: 0;
  text-align: center; /* ✅ texte aligné à gauche */
}

/* ====== HOVER BLEU (comme sur l'image) ====== */
.resource-link:hover .resource-title,
.resource-link:hover .resource-desc{
  color: #0d4fa3;
  text-align: center; /* ✅ texte aligné à gauche */
}

.resource-link:hover .resource-underline{
  background: #0d4fa3;
  text-align: center; /* ✅ texte aligné à gauche */
}

/* ====== rubrique active (si tu veux podcasts toujours bleu) ====== */
.resource-link.active-blue .resource-title,
.resource-link.active-blue .resource-desc{
  color: #0d4fa3;
}

.resource-link.active-blue .resource-underline{
  background: #0d4fa3;
  text-align: center; /* ✅ texte aligné à gauche */
  
}
/* Ligne sous le titre */
.resource-underline{
  width: 32px;
  height: 3px;
  background: #111;
  margin: 6px 0 10px 0; /* ✅ plus centré */
  border-radius: 50px;
  text-align: center;
  
}

/* ====== FLÈCHES PROPRES COMME IMAGE ====== */
.resources-arrow{
  position: absolute;
  top: 36px; /* ✅ aligné verticalement avec les images */
  border: none;
  background: transparent;
  color: #000;
  font-size: 22px;
  font-weight: 900;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  cursor: pointer;
  transition: 0.2s ease;
}

.resources-arrow:hover{
  color: #0d4fa3; /* petit effet propre */
}

/* Position flèches */
.resources-arrow-left{
  left: -40px;
}

.resources-arrow-right{
  right: -40px;
}

/* Sur mobile : on rapproche tout */
@media (max-width: 768px){
  .resources-carousel-wrapper{
    max-width: 100%;
  }

  .resources-row{
    gap: 20px;
  }

  .resources-arrow-left{
    left: 5px;
  }
  .resources-arrow-right{
    right: 5px;
  }
}
@media (max-width: 768px) {
  .resources-row {
    flex-direction: column; /* 🔥 empile */
    align-items: center;
  }

  .resource-card {
    width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .hamburger-container { margin-left: 0; }
  
  .nav {
    gap: 1px;
  }
  
  .nav > a {
    font-size: 6px;
    padding: 2px 3px;
    white-space: nowrap;
  }
  
  .logo img { height: 30px !important; }

  /* Sélecteur de langue ultra-compact */
  .lang-switcher { margin-left: 2px; }
  
  .lang-btn {
    font-size: 6px;
    padding: 2px 4px;
    gap: 2px;
  }
  
  .lang-btn .arrow { font-size: 5px; }
  
  .lang-dropdown { min-width: 100px; }
  
  .lang-dropdown button {
    font-size: 9px;
    padding: 8px 10px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hamburger-container { margin-left: 20px; }
  .nav { gap: 6px; }
  .nav > a {
    font-size: 11px;
    padding: 6px 10px;
  }
  .logo img { height: 40px !important; }
  .lang-btn { font-size: 9px; padding: 3px 6px; }
  .lang-dropdown { min-width: 120px; }
}