/* ========================
   Reset de base
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f5f6fa;
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-weight: 700;
  color: #222;
}

h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }

/* PARAGRAPHES */
p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}
pre {
  text-align: left;
  background: #ffe0e0;
  padding: 10px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9em;
  color: #222;
}
/* ========================
   Conteneur général
======================== */
.container {
  width: 100%;
  margin: 15px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.register-container {
  width: 60%;
  max-width: 900px;
  margin: 15px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.full-container {
  width: 100%;              /* prend toute la largeur de la fenêtre */
  max-width: 1700px;
  padding: 15px;            /* un peu d'air à l'intérieur */
  margin: 0 auto;
}
.error-container {
  background: #fffbe6;
  border: 5px dashed #ff4747;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 8px 8px 0px #ffadad;
  max-width: 600px;
  width: 90%;
  animation: bounce 1s infinite alternate;
  justify-content: center; 
}
.floating-div {
  position: fixed;
  top: 60px;      /* au lieu de bottom */
  right: 20px;    /* en haut à droite */
  z-index: 900;
  cursor: move;
  min-width: 250px;
}
/* =======================
 * gestion password
 * =====================*/
.password-field {
  position: relative;
  margin-bottom: 10px;
}
.password-field input {
  width: 100%;
  padding-right: 40px;
}
.eye-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

.password-rules {
  list-style: none;
  padding: 0;
  font-size: 14px;
}
.password-rules li {
  color: red;
}
.password-rules li.valid {
  color: green;
}

.progress {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin: 10px 0;
}
#strengthBar {
  height: 100%;
  width: 0%;
  background: red;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
}
  .login-actions {
    display: flex;
    justify-content: space-between; /* bouton à gauche, lien à droite */
    align-items: center;
    margin-top: 10px;
  }

  .login-actions button {
    margin: 0; /* supprime marge par défaut si besoin */
  }

  .login-actions .forgot-link {
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
  }

  .login-actions .forgot-link:hover {
    text-decoration: underline;
  }

/* =======================
   tableau
========================*/
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 1em;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.styled-table thead tr {
  background: linear-gradient(135deg, #0077ff, #00b4d8);
  color: #fff;
  text-align: left;
}

.styled-table th, .styled-table td {
  padding: 14px 18px;
}

.styled-table tbody tr {
  transition: all 0.3s ease;
}

.styled-table tbody tr:hover {
  background: #f0f7ff;
  transform: scale(1.01);
}
  .photo-thumb {
    width: 100px;
    height: auto;   /* ⚡ garde le ratio */
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s;
  }
  .photo-thumb:hover {
    transform: scale(1.1);
  }
.modal-img {
  width: 100%;
  height: auto;
}


/* ========================
   Navigation de base
======================== */
nav {
    #background-color: #007BFF;
    background-color: #075E6F;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* ========================
   Navbar Premium
======================== */
.navbar {
  display: flex;
   height: 60px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 25px;
  background: #075E6F;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.navbar:hover {
  background: #075E6F;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  margin-right: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffeb3b;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #ffeb3b;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}
/*=======================
  modale recapitulative billet et pass festival
=======================*/
#recapDetailModal .modal-dialog.auto-size {
  max-width: fit-content;
  width: auto;
}

#recapDetailModal .modal-body {
  max-height: calc(100vh - 200px); /* évite de dépasser l’écran */
  overflow-y: auto;
}
/*========================
  tableau de gestion utilisateur
==========================*/
.table-responsive {
  width: 98%;       /* presque toute la largeur */
  margin: 0 auto;   /* centré horizontalement */
  overflow-x: auto; /* scroll horizontal si nécessaire */
  padding: 10px 0;
}

/* Tableau */
#adhesionTable {
  width: 100%;             /* prend tout l'espace du conteneur */
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* En-têtes */
#adhesionTable thead {
  background-color: #343a40;
  color: #fff;
}
#adhesionTable thead th {
  position: sticky;
  top: 0;
  background: #fff;   /* fond blanc pour recouvrir les lignes en dessous */
  z-index: 10;        /* s’assurer que ça reste au-dessus */
}
/* Lignes et cellules */
#adhesionTable tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Cellules input */
.table-input {
  width: 100%;   /* occupe toute la cellule */
  box-sizing: border-box;
}
.table-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 3px rgba(0,123,255,0.5);
}

/* Changement de valeur */
.table-input.changed {
  background-color: #fff3cd; /* jaune clair */
}

/* Sélecteurs et dates */
.table-input[type="date"], .table-input[type="number"], select.table-input {
  text-align: center;
}

/* Boutons */
.btn-add-row, #saveChanges {
  font-weight: 600;
  border-radius: 5px;
}

/* Feedback */
#feedback {
  font-size: 1rem;
  font-weight: 500;
}
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }

/* Scroll horizontal */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background-color: #adb5bd;
  border-radius: 4px;
}
/* =======================
   container pour map leaftleft
=========================*/
.map-container {
  position: absolute;
  bottom: 5%;
  right: 2%;
  width: 30%;
  max-width: 250px;
  aspect-ratio: 1/1;
  border: 3px solid white;
  border-radius: 8%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}
#map {
  width: 100%;
  height: 100%;
}

/* Version mobile */
@media (max-width: 768px) {
  .map-container {
    width: 35%;
    max-width: 160px;
    bottom: 3%;
    right: 3%;
  }
}  
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .custom-marker:hover {
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
  }

  .bayers { background-color: #007BFF; }
  .chenomet { background-color: #28a745; }
  .moutonneau { background-color: #ffc107; color: #333; }
  .aunac { background-color: #dc3545; }
/* ========================
   Badges rôle premium
======================== */
.badge {
  display: inline-block;
  padding: 3px 8px;
  margin-left: 5px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s ease;
}

.admin-badge {
  background-color: #e74c3c;
}

.admin-badge:hover {
  background-color: #c0392b;
  transform: scale(1.1);
}

.user-badge {
  background-color: #3498db;
}

.user-badge:hover {
  background-color: #2980b9;
  transform: scale(1.1);
}

/* ========================
   Drapeaux Premium
======================== */
.flag-link {
  margin-left: 10px;
}

.flag {
  width: 28px;
  height: 18px;
  vertical-align: middle;
  border: 1px solid #fff;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flag:hover {
  transform: scale(1.3) rotate(5deg);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* ========================
   Hamburger menu premium
======================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}
/*=========================
  photos galeries public
=========================*/
.blurred {
  filter: blur(0px);
  transition: filter 0.3s ease;
}
/* ========================
   Responsive pour petits écrans
======================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-left, .nav-right {
    margin-top: 5px;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-left.active, .nav-right.active {
    display: flex;
  }
  .nav-link {
    margin-right: 0;
    margin-bottom: 12px;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ========================
   Modales
=========================*/
/* ========================
   Modales maison
=========================*/

/* Fond de la modale (overlay) */
.modal {
  display: none; /* cachée par défaut */
  position: center;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  animation: fadeIn 0.3s;
}

/* Contenu de la modale */
.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 1400px;
  /*max-height: 80vh;  éviter de dépasser l'écran */
  overflow-y: auto;
  overflow-x: auto;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  animation: slideIn 0.3s;
}

/* Conteneur boutons */
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Scrollbar moderne */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 123, 255, 0.5);
  border-radius: 3px;
}
.modal-content::-webkit-scrollbar-track {
  background-color: rgba(0,0,0,0.05);
}

/* Classe pour afficher la modale */
.modal.show {
  display: flex;
}
/*=====================
  Social cards
=====================*/
.social-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  border-radius: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  min-width: 140px;
  flex: 1 1 150px;
  font-weight: 500;
  color: #1E1E1E;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.social-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.15);
}

.social-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 18px 36px rgba(0,0,0,0.15);
}

.social-card svg {
  transition: transform 0.35s ease, fill 0.35s ease;
}

.social-card:hover svg {
  transform: scale(1.15) rotate(5deg);
}
.social-card span {
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.35s ease;
}

.social-card:hover span {
  color: #111;
}

/* Bord supérieur selon réseau */
.youtube-card { background-color: #fff5f5; }   /* léger rouge pastel */
.instagram-card { background-color: #fff0f6; } /* léger rose pastel */
.charente-card { background-color: #f5f5ff; }  /* léger bleu pastel */

/*=====================
 Image accueil
=====================*/
.accueil-image-container {
  text-align: center;
  margin: 20px 0;
  position: relative; /* ✅ référence pour les enfants absolus */
  display: inline-block;
}

.accueil-image {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  width: 95%;
  height: auto;
}
.accueil-image,
.card img,
.accueil-image:hover {
  transform: scale(1.03);
}
/* Légende */
.accueil-image-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 6px;
  font-style: italic;
}
/*=====================
  card activities public
=====================*/
/* GALERIE PREMIUM */
.row-cols-1, .row-cols-sm-2, .row-cols-md-3, .row-cols-lg-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.card {
  background-color: #fefefe; /* léger gris/blanc */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  object-fit: cover;
  max-height: 220px; /* limite raisonnable */
  transition: transform 0.35s ease, filter 0.35s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0,0,0,0.15);
}

.card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  color: #6c6c6c;
}
.activities-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.activity-card {
  background: var(--bg-url) center/cover no-repeat;
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  position: relative;
  min-height: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* Effet de zoom et ombre accentuée */
.activity-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Pour créer l’effet de zoom du fond */
.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.6s ease;
  filter: blur(2px) brightness(0.9);
}

/* Zoom sur le background au hover */
.activity-card:hover::before {
  transform: scale(1.1);
}

/* Contenu de la carte au-dessus du background */
.activity-card > * {
  position: relative;
  z-index: 1;
}

.card-type {
  color: #fdfdfd;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  margin-bottom: 15px;
}

.activity-link {
  color: #f9f9f9;
  text-decoration: none;
  margin: 5px 0;
  display: block;
  transition: color 0.2s, transform 0.2s;
}

.activity-link:hover {
  color: #ffeb99;
  transform: translateX(5px);
}
.activity-card h3 {
  color: #fdfdfd;              /* blanc très clair */
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* ombre pour contraste */
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, color 0.3s ease;
}

.activity-card h3:hover {
  color: #ffeb99;              /* la même couleur hover que les liens */
  transform: scale(1.05);
}
.future-event {
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0,0,0,0.7);
}
/*=====================
=====================*/
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 1.4em;
  color: #2c3e50;
}

.modal-content form label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #555;
}

.modal-content form input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: border 0.2s, box-shadow 0.2s;
}

.modal-content form input:focus {
  border: 1px solid #6faefc;
  box-shadow: 0 0 6px rgba(111,174,252,0.4);
  outline: none;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.modal-content form input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border 0.2s;
}

.modal-content form input:focus {
  border: 1px solid #007bff;
  outline: none;
}

/* ========================
   Formulaires
======================== */
form {
    margin-top: 10px;
}

input[type="text"], input[type="password"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

button:hover {
    background-color: #0056b3;
}
/* --- Bouton Sauvegarder --- */
.btn-save {
  background: linear-gradient(135deg, #0077ff, #0056b3);
  color: #fff;
  margin-top: 10px;
}
.btn-save:hover {
  background: linear-gradient(135deg, #0056b3, #004080);
}
.btn-detail {
  background: linear-gradient(135deg, #6f42c1, #5a2d91);
  color: #fff;
}
.btn-detail:hover {
  background: linear-gradient(135deg, #5a2d91, #482070);
  transform: scale(1.05);
}
/*=========================
 tuiles admin-dashboard
=========================*/
 .tile {
      background: white;
      border-radius: 15px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
      padding: 30px;
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer;
      text-align: center;
      height: 100%;
    }

    .tile:hover {
      transform: translateY(-5px);
      box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    }

    .tile h3 {
      font-size: 1.4rem;
      margin-bottom: 15px;
    }

    .tile p {
      font-size: 0.95rem;
      color: #666;
    }
    .tile-blue { background: #d6eaff; }
    .tile-green { background: #d7f5e5; }
    .tile-pink { background: #ffe1ec; }
    .tile-yellow { background: #fff6d9; }
    .tile-purple { background: #ede1ff; }
    .tile-turquoise { background: #d9faff; }

    .row {
      row-gap: 30px;
    }
/* ========================
   Tableaux (Admin)
======================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007BFF;
    color: #fff;
}

/* ========================
   Messages d'erreur / succès
======================== */
.error {
    color: red;
    margin-bottom: 15px;
}

.success {
    color: green;
    margin-bottom: 15px;
}

/* ========================
   Footer
======================== */
footer {
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    background-color: #ffffff;
    border-radius: 8px;
}
.galleries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}
.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none; /* clics passent à travers */
}
/* force max 5 colonnes */
@media (min-width: 1200px) {
  .galleries {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery-item {
  width: 200px;
  height: 260px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.gallery-photo {
  height: 160px;
  width: 100%;
  object-fit: cover;
}
/* =======================
   timeline
========================*/
.page-title {
  text-align: center;
  color: #007BFF;
  font-size: 2.4rem;
  margin-bottom: 30px;
  animation: fadeSlideDown 0.8s ease forwards;
}
.timeline-page {
  width: 90%;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  color: #007BFF;
  font-size: 2.4rem;
  margin-bottom: 30px;
}
.timeline-page {
  width: 90%;
  margin: 0 auto;
  padding: 40px 20px;
}

.filter-years {
  text-align: center;
  margin-bottom: 40px;
}

.filter-years a {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 5px;
  background-color: #88B24C;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all 0.3s;
}

.filter-years a:hover,
.filter-years a.active {
  background: #658736;
  color: #fff;
  transform: scale(1.1);
}
.year-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.year-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  width: 100%; /* occupe toute la largeur disponible */
  justify-content: center;
}

/* Slider tuiles */
.slider-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 10px 0;
  width: 100%;
}

.activity-tile {
  flex: 0 0 auto;
  width: 200px;
  padding: 15px;
  background: linear-gradient(145deg, #ffffff, #f0f8ff);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.activity-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.activity-dot {
  width: 12px;
  height: 12px;
  background-color: #88B24C;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.activity-header {
  font-weight: bold;
  margin-bottom: 10px;
  color: #0056b3;
}

.activity-desc {
  color: #333;
  font-size: 0.9rem;
}

/* Flèches */
.slide-btn {
  background: #e0e0e0;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s;
}
.slide-btn:hover {
  background: linear-gradient(45deg, #007BFF, #00CFFF);
  color: #fff;
}

.left-btn { margin-right: 10px; }
.right-btn { margin-left: 10px; }
.nav-left,
.nav-right {
  display: flex;
  gap: 15px;
}
/* Bouton menu hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001; /* au-dessus du menu */
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation en croix */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Animations */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Animations page erreur */
@keyframes shake {
  from { transform: rotate(-3deg); }
  to { transform: rotate(3deg); }
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes wiggleBackground {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(30deg); }
}
/* ========================
   Responsive général
======================== */
@media (max-width: 768px) { 
nav { display: flex; flex-direction: column; align-items: flex-start; } 
nav a { margin-bottom: 10px; } 
#mainNavbar {
    position: relative;
    z-index: 1050; /* plus haut que le contenu */
  }
    .navbar-collapse {
    background-color: #cfe2ff; /* bleu clair */
    border: 2px solid #0d6efd; /* bleu foncé */
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.5rem;
  }
  #mainNavbar .nav-link {
    color: #0d6efd !important; /* texte bleu foncé */
    font-weight: 500;
  }

  #mainNavbar .nav-link:hover {
    color: #084298 !important; /* bleu encore plus foncé au survol */
  }
.container { padding: 15px; margin: 10px; } 
.timeline { padding-left: 15px; } 
.timeline-dot { left: -9px; } table, th, td { font-size: 0.85rem; } 
.gallery-card img { height: 160px; } 
.map-container { width: 40%; max-width: 150px; bottom: 3%; right: 3%; } 
.nav-left, .nav-right { display: none; flex-direction: column; background: #007BFF; position: absolute; top: 60px; right: 0; left: 0; padding: 15px; border-radius: 0 0 12px 12px; z-index: 999; } 
.nav-left.active, .nav-right.active { display: flex; } 
.nav-toggle { display: flex; } 
.nav-toggle span { background: white; /* ← lignes du hamburger blanches */ } }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  p  { font-size: 0.9rem; }

  .map-container {
    width: 45%;
    max-width: 120px;
  }

  .card img {
    max-height: 160px;
  }
}
