/* Masque TOUTES les iframes internes du widget */
.gt_float_switcher iframe,
.gt_float_switcher > div > iframe,
.gt_float_switcher * iframe {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  border-radius: 16px !important;

}




.gt_float_switcher {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  z-index: 99999 !important;

  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;

  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;

  padding: 10px 10px !important;
  cursor: pointer !important;

  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  transition: all 0.25s ease !important;

  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.gt_float_switcher .gt-selected {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}

.gt_float_switcher img {
  width: 22px !important;
  height: auto !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}




















/* ----------------------------------------------------
   SECTION : La Ville d'Agde (palette bleue)
---------------------------------------------------- */
.agde-image-flottante {
  float: left;
  width: 260px;          /* ajuste selon ton design */
  max-width: 50%;
  height: auto;
  margin: 20px;
  border-radius: 10px;
  object-fit: cover;
}

/* Pour éviter les soucis de float avec ce qui suit la section */
.section-agde::after {
  content: "";
  display: block;
  clear: both;
}

/* Option : sur mobile, on casse le float pour garder la lisibilité */
@media (max-width: 768px) {
  .agde-image-flottante {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
    max-width: 100%;
  }
}










.section-agde {
 background: rgba(0,0,50,0.6); /* bleu foncé semi-transparent */
      color: #f5f5f5;  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  margin-bottom: 60px;
}

/* Titre */
.section-agde h2 {
  text-align: center;
  font-size: 2.6em;
  margin-bottom: 25px;
  color: #4fc3f7; /* bleu turquoise lumineux */
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* Paragraphe introductif */
.section-agde .intro {
  text-align: justify;
  line-height: 1.7;
  font-size: 1.1em;
  color: #e8f2ff; /* bleu très clair */
  margin-bottom: 20px;
  padding: 20px;
 background: rgba(0,0,50,0.6); /* bleu foncé semi-transparent */
      color: #f5f5f5;  border-left: 4px solid #4fc3f7;
  border-radius: 8px;
}

/* Deux colonnes */
.section-agde .columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Cartes */
.section-agde .card {
 background: rgba(0,0,50,0.6); /* bleu foncé semi-transparent */
      color: #f5f5f5;  border-left: 4px solid #4fc3f7;
  padding: 25px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Effet hover subtil */
.section-agde .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}

/* Titres des cartes */
.section-agde .card h3 {
  text-align: center;
  color: #cfe8ff;
  font-size: 1.6em;
  margin-bottom: 15px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Texte des cartes */
.section-agde .card p {
  text-align: justify;
  line-height: 1.6;
  color: #e8f2ff;
  font-size: 1em;
}

/* Responsive */
@media (max-width: 900px) {
  .section-agde .columns {
    grid-template-columns: 1fr;
  }
}






/* ----------------------------------------------------
   EFFETS SPÉCIAUX
---------------------------------------------------- */
.text-3d {
  font-family: Garamond, serif;
  line-height: 1em;
  color: #fff9d6;
  font-weight: bold;
  font-size: 60px;
  text-shadow: 0px 0px 0 rgb(243,243,243),
               0px 7px 6px rgba(0,0,0,0.6);
}

.image-sous-trad {
  margin: 10px auto;
  width: 100%;
  max-width: 300px;
}

.logo img {
  height: 150px;
}
@media (max-width: 768px) {
  .logo img {
    height: 50px;
  }
}



/* --- Header général --- */
header {
      background: rgba(0,0,50,0.8); /* bleu foncé semi-transparent */
      color: #f5f5f5;
      padding: 30px 20px;
      text-align: center;
      border-bottom: 4px solid #1976d2;
 
  width: 100%;
  color: #fff;
  padding: 5px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo trad nav"
    "title title title"
    "timeline-nav timeline-nav timeline-nav";
  margin-top: 0;
}

.logo {
  grid-area: logo;
}


.gtranslate_wrapper {
  grid-area: trad;
  text-align: center;
  justify-self: center;
}

h1 {
  grid-area: title;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  margin: 10px 0;
  word-wrap: break-word;
  padding: 0 10px;
}

nav.timeline-nav {
  grid-area: timeline-nav;
  justify-self: center;
  text-align: center;
  padding: 0 10px;
  margin: 10px 0;
  width: 100%;
}

.timeline-nav h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.image-bas-header {
  grid-column: 1/-1;
  justify-self: center;
  margin-top: 10px;
}

.image-bas-header img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Bouton hamburger --- */
.menu-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 60px; /* un peu plus large pour le texte */
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2000;
  color: #f7f283; /* couleur du soleil et du texte */
  flex-direction: column;
}

.sun-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-sun {
  animation: scintille 1.5s infinite;
}

.menu-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fdd496;
}

/* Animation scintillante */
@keyframes scintille {
  0%, 100% { 
    opacity: 1; 
    filter: drop-shadow(0 0 4px #ffd966);
  }
  50% { 
    opacity: 0.7; 
    filter: drop-shadow(0 0 12px #ffea80);
  }
}

/* --- Menu coulissant --- */
/* --- Menu coulissant --- */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 300px; /* ta hauteur ajustée */
  overflow-y: auto;          /* scroll vertical si nécessaire */
  overflow-x: hidden;        /* empêche le scroll horizontal */
 background: rgba(255,255,255,0.25) !important;
        backdrop-filter: blur(14px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255,255,255,0.35) !important;
        padding: 8px !important;
        margin: 0 !important;  backdrop-filter: blur(6px);
  box-shadow: -4px 0 8px rgba(0,0,0,0.5),
              0 6px 12px rgba(0,0,0,0.3); /* ombre supplémentaire en bas */
  border-bottom-left-radius: 12px; /* arrondi en bas à gauche */
  border-bottom-right-radius: 12px; /* arrondi en bas à droite */
  transition: right 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 1500;


 

}


.main-nav.open {
  right: 0;
  opacity: 1;
}

/* Pour éviter que le dernier élément soit collé au bord */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 50px 0 40px 0; /* ajoute une marge en bas */
}

/* --- Croix intégrée --- */
.menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.menu-close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fdd496;
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.menu-close span:first-child {
  transform: rotate(45deg);
}
.menu-close span:last-child {
  transform: rotate(-45deg);
}
.menu-close:hover span:first-child,
.menu-close:hover span:last-child {
  transform: scale(1.2) rotate(45deg);
}

/* --- Liens du menu --- */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0; /* espace sous la croix */
}
.main-nav ul li {
  margin: 6px 0; /* réduit l’espace vertical */
}
.main-nav ul li a {
  color: #fdd496;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 8px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}




.main-nav ul li a:hover {
  background: #555;
  color: #fff;
  transform: translateX(5px);
}

/* --- Sous-menus avec animation --- */
.main-nav ul li ul {
  max-height: 0;
  overflow: hidden;
  margin-left: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  transition: max-height 0.3s ease;
}
.main-nav ul li ul.open {
  max-height: 400px; /* assez grand pour contenir le sous-menu */
}

/* --- Overlay --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1001;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}




















/* ----------------------------------------------------
   BASE GLOBALE
---------------------------------------------------- */
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-image: url("../images/pexels-photo-273886.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #f5f5f5;
}

section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
   background: rgba(0,0,50,0.6); /* bleu foncé semi-transparent */
      color: #f5f5f5;  padding: 40px;
  border-radius: 14px;

box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
color: #f5f5f5;

}


h2 {
  text-align: center;
  font-size: 2.4em;
  margin-bottom: 20px;
  color: #bbdefb;
}


/* MENU STICKY INVISIBLE AU DÉPART */
#stickyMenu {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 99%;
  max-width: 1000px;
  z-index: 9999;
  display: flex;
  gap: 15px;
  padding: 12px 20px;
  backdrop-filter: blur(10px);
  background: rgba(169, 211, 253, 0.05);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease;
}




/* ----------------------------------------------------
   MENU STICKY PREMIUM — propre et sans doublons
---------------------------------------------------- */

/* MENU STICKY PREMIUM — dégradé bleu clair → transparent */
#stickyMenu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 15px;

  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(173, 216, 230, 0.9) 0%,   /* bleu clair opaque en haut */
    rgba(173, 216, 230, 0.5) 50%,  /* semi transparent au milieu */
    rgba(173, 216, 230, 0.0) 100%  /* totalement transparent en bas */
  );
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 6px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

/* Apparition */
#stickyMenu.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Après scroll : dégradé plus marqué */
#stickyMenu.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(173, 216, 230, 0.95) 0%,
    rgba(173, 216, 230, 0.7) 50%,
    rgba(173, 216, 230, 0.2) 100%
  );
  border-bottom: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border-radius: 6px;

}

/* Liens */
#stickyMenu .sticky-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

#stickyMenu a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

#stickyMenu.scrolled a {
  color: #0078ff;
}

#stickyMenu.scrolled a:hover {
  background: #0078ff;
  color: white;
}

/* Filtres */
#stickyMenu #filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  padding: 0 10px;
}

/* Responsive */
@media (max-width: 600px) {
  #stickyMenu {
    left: 0;
    transform: none;
    max-width: 100%;
    border-radius: 0;
  }
}

/* RESPONSIVE : sur mobile, le sticky prend toute la largeur */
@media (max-width: 600px) {
  #stickyMenu {
    left: 0;
    transform: none;
    max-width: 100%;
    border-radius: 0;
  }
}









/* Recherche */
#search {
  max-width: 500px;
  width: 100%;
  margin: 20px auto;
  display: block;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Filtres */
#filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

/* Style général des boutons */
.filter-btn {
  background: rgba(0, 123, 255, 0.2); /* bleu transparent */
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 12px;
  backdrop-filter: blur(10px); /* effet verre */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Effet au survol */
.filter-btn:hover {
  background: rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Bouton actif */
.filter-btn.active {
  background: rgba(0, 123, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.8);
}










/* Carte principale */

#mapFrame {
  width: 100%;
  max-width: 500px;          /* largeur max de la carte */
  height: 300px;             /* hauteur fixe */
  border: 0;
  border-radius: 12px;       /* coins arrondis */
  box-shadow: 0 6px 16px rgba(0,0,0,0.25); /* ombre douce */
}

/* ----------------------------------------------------
   MASONRY GENERAL
---------------------------------------------------- */
.grid {
  column-count: 4;
  column-gap: 30px;
  padding: 20px;

}

@media (max-width: 1200px) {
  .grid { column-count: 3; }
}
@media (max-width: 900px) {
  .grid { column-count: 2; }
}
@media (max-width: 600px) {
  .grid { column-count: 1; }
}

.grid .card {
  display: inline-block;
  width: 100%;
  margin: 0 0 30px;
background: rgba(0,0,50,0.6); /* bleu foncé semi-transparent */
      color: #f5f5f5;  border-left: 4px solid #4fc3f7;
  border-radius: 14px;
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
text-align: justify;
  padding: 10px;
color: #f5f5f5;

  transform: perspective(800px) translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.grid .card:hover {
  transform: perspective(800px) translateY(-6px) translateZ(20px) rotateX(3deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}

.grid .card img {
  width: 100%;
  display: block;
 border: 2px solid grey;
  border-radius: 10px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;

}

.grid .card h3 {
  margin: 12px;
  font-size: 1.3em;
  color: #e3f2fd;
}

.grid .card p {
  margin: 12px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #000080;
text-align: center;
}

.grid .card .note {
  font-weight: bold;
  margin: 12px;
  color: #ffeb3b;

}

.section{
 background: rgba(0,0,50,0.6); /* bleu foncé semi-transparent */
      color: #000080;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  margin-bottom: 60px;
 max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  
}




/* POPUP */
.popup {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  cursor: pointer;
}

.popup-map {
  width: 100%;
  height: 400px;
  border: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- Header général --- */
header {
      background: rgba(0,0,50,0.8); /* bleu foncé semi-transparent */
      color: #f5f5f5;
      padding: 30px 20px;
      text-align: center;
      border-bottom: 4px solid #1976d2;
position: relative; z-index: 10000;
 
  width: 100%;
  color: #fff;
  padding: 5px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo trad nav"
    "title title title"
    "timeline-nav timeline-nav timeline-nav";
  margin-top: 0;
}

.logo {
  grid-area: logo;
}


.gtranslate_wrapper {
  grid-area: trad;
  text-align: center;
  justify-self: center;
}

h1 {
  grid-area: title;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  margin: 10px 0;
  word-wrap: break-word;
  padding: 0 10px;
}

nav.timeline-nav {
  grid-area: timeline-nav;
  justify-self: center;
  text-align: center;
  padding: 0 10px;
  margin: 10px 0;
  width: 100%;
}

.timeline-nav h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.image-bas-header {
  grid-column: 1/-1;
  justify-self: center;
  margin-top: 10px;
}

.image-bas-header img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Bouton hamburger --- */
.menu-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 60px; /* un peu plus large pour le texte */
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2000;
  color: #f7f283; /* couleur du soleil et du texte */
  flex-direction: column;
}

.sun-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-sun {
  animation: scintille 1.5s infinite;
}

.menu-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fdd496;
}

/* Animation scintillante */
@keyframes scintille {
  0%, 100% { 
    opacity: 1; 
    filter: drop-shadow(0 0 4px #ffd966);
  }
  50% { 
    opacity: 0.7; 
    filter: drop-shadow(0 0 12px #ffea80);
  }
}

/* --- Menu coulissant --- */
/* --- Menu coulissant --- */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 90vh; /* ta hauteur ajustée */
  overflow-y: auto;          /* scroll vertical si nécessaire */
  overflow-x: hidden;        /* empêche le scroll horizontal */
      background: rgba(0,0,50,0.5); /* bleu foncé semi-transparent */
  backdrop-filter: blur(6px);
  box-shadow: -4px 0 8px rgba(0,0,0,0.5),
              0 6px 12px rgba(0,0,0,0.3); /* ombre supplémentaire en bas */
  border-bottom-left-radius: 12px; /* arrondi en bas à gauche */
  border-bottom-right-radius: 12px; /* arrondi en bas à droite */
  transition: right 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 1500;

}


.main-nav.open {
  right: 0;
  opacity: 1;
}

/* Pour éviter que le dernier élément soit collé au bord */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 50px 0 40px 0; /* ajoute une marge en bas */
}

/* --- Croix intégrée --- */
.menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.menu-close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fdd496;
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.menu-close span:first-child {
  transform: rotate(45deg);
}
.menu-close span:last-child {
  transform: rotate(-45deg);
}
.menu-close:hover span:first-child,
.menu-close:hover span:last-child {
  transform: scale(1.2) rotate(45deg);
}

/* --- Liens du menu --- */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0; /* espace sous la croix */
}
.main-nav ul li {
  margin: 6px 0; /* réduit l’espace vertical */
}
.main-nav ul li a {
  color: #fdd496;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 8px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}




.main-nav ul li a:hover {
  background: #555;
  color: #fff;
  transform: translateX(5px);
}

/* --- Sous-menus avec animation --- */
.main-nav ul li ul {
  max-height: 0;
  overflow: hidden;
  margin-left: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  transition: max-height 0.3s ease;
}
.main-nav ul li ul.open {
  max-height: 400px; /* assez grand pour contenir le sous-menu */
}

/* --- Overlay --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1001;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}















 footer {
      background: rgba(0,0,50,0.8); /* bleu foncé semi-transparent */
      color: #f5f5f5;
      padding: 30px 20px;
      text-align: center;
      border-top: 4px solid #1976d2;
    }

    .image-haut-footer img {
      max-width: 100%;
      height: auto;
      margin-bottom: 15px;
    }

    .footer-links {
      margin-bottom: 20px;
    }

    .footer-links a {
      color: #bbdefb;
      margin: 0 12px;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: #42a5f5;
    }

    .footer-bottom {
      font-size: 0.9em;
      color: #e0e0e0;
      margin-top: 10px;
    }




/* ---------				------------
		MUSEE PHOTOS 
------------				------------*/


/* Colonnes fluides */
.u-gallery-inner-1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 17px;
}

/* Items */
.u-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: rgba(0,0,0,0.4) 5px 5px 20px 0px;
}

/* Ratio carré */
.u-back-slide {
  position: relative;
  width: 100%;
  padding-top: 100%; /* carré */
  overflow: hidden;
  border-radius: 12px;
}

/* Image */
.u-back-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 12px;
      color: #f5f5f5;  border-left: 4px solid #4fc3f7;
 transform: perspective(800px) translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);




}

/* Zoom + assombrissement au survol */
.u-gallery-item:hover .u-back-image {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* Overlay */
.u-over-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.u-gallery-item:hover .u-over-slide {
  opacity: 1;
}

/* ----------------------------------------------------
   BLOC RSS — GRILLE & CARTES
---------------------------------------------------- */

.rss-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.rss-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.rss-box {
  position: relative;
  border: 2px solid #52796f; /* vert grisé */
  border-radius: 10px;
  padding: 10px;
  background-color: rgba(237, 242, 244, 0.85); /* gris glacier transparent */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rss-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 24px;
  text-decoration: none;
  background-color: white;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 10;
}

.rss-item img {
  display: block;
  margin: 10px auto;
  width: calc(100% - 20px);
  max-height: 150px;
  height: auto;
  object-fit: contain;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.rss-content {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

.rss-content::-webkit-scrollbar {
  width: 6px;
}

.rss-content::-webkit-scrollbar-thumb {
  background-color: #52796f;
  border-radius: 3px;
}

.rss-content::-webkit-scrollbar-track {
  background-color: #e0e4e7;
}

.rss-content h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #354f52;
}

.rss-content p {
  font-size: 13px;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #2f3e46;
}

.rss-content a {
  color: #52796f;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
}

/* ----------------------------------------------------
   BOUTONS RSS
---------------------------------------------------- */

#next-group, #show-all {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  background-color: #52796f;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#next-group:hover, #show-all:hover {
  transform: scale(1.05);
  background-color: #354f52;
}
