/*
Theme Name: 	MFM Digital
Theme URI: 		http://themes.muffingroup.com/betheme
Author: 		MFM Digital
Author URI: 	http://mfmdigital.com.com
Description:	MFM Digital Child Theme
Template:		betheme
Version: 		1.0.0
*/

/* Theme customization starts here
-------------------------------------------------------------- */
/* Styles pour les cartes de livres */
#books .book-card {
  background: white !important;
  border-radius: 8px !important;
  padding: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 20px !important;
}
/* Style du titre de livre - sélecteur très spécifique */
#books .book-card h3.book-title {
  color: #6f0f42 !important;
  font-size: 1.2em !important;
  margin-bottom: 10px !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
}
/* Style des informations du livre */
#books .book-card .book-pages,
#books .book-card .book-isbn,
#books .book-card .book-author {
  color: #666 !important;
  font-size: 0.9em !important;
  margin: 5px 0 !important;
}
/* Style des genres - positionnés en haut à gauche */
#books .book-card .book-genres {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 2 !important;
}

#books .book-card .book-genre {
  background: #6f0f42 !important;
  color: white !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 0.8em !important;
  margin-right: 5px !important;
}

/* Il faut que la carte soit en position relative */
#books .book-card {
  position: relative !important;
}
/* Style spécifique pour l'auteur - plus en évidence */
#books .book-card .book-author {
  color: #2c5282 !important;
  font-weight: 600 !important;
  font-size: 1em !important;
  margin: 8px 0 !important;
}
/* Style pour le nom de l'auteur uniquement */
#books .book-card .author-name {
  color: #2c5282 !important;
  font-weight: 600 !important;
}

/* Le texte "Par" reste discret - SANS bold */
#books .book-card .book-author {
  color: #666 !important;
  font-size: 0.9em !important;
  margin: 5px 0 !important;
  font-weight: normal !important;
}
/* Animation et effet hover sur les cartes */
#books .book-card {
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

#books .book-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}
/* Dégradé subtil sur les cartes */
#books .book-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}
/* Conteneur principal - centré avec marges */
#books {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

/* Cartes plus petites */
#books .book-card {
  max-width: 300px !important;
  margin: 0 auto !important;
}

/* Images plus petites aussi */
#books .book-card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
}
/* Style du résumé - sélecteur ultra spécifique */
div#books .book-card p.book-resume {
  color: #777 !important;
  font-size: 0.65em !important;
  font-style: italic !important;
  margin: 8px 0 !important;
  line-height: 1.1 !important;
}
/* Style spécifique pour "Résumé:" */
div#books .book-card .resume-label {
  font-weight: bold !important;
  color: #555 !important;
  font-style: normal !important;
}
/* Style du titre de page */
h1.page-title {
  color: #333 !important;
  font-size: 2.5em !important;
  text-align: center !important;
  margin: 40px auto !important;
  font-weight: bold !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
  padding: 0 20px !important;
  max-width: 1000px !important;
}
/* Layout deux colonnes pour single book */
.single-book-layout {
  display: flex !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.book-content-left {
  flex: 1 !important;
  padding-right: 20px !important;
}

.book-cta-right {
  position: fixed !important;
  right: 20px !important;
  top: 200px !important;
  width: 250px !important;
  z-index: 999 !important;
}

.cta-box {
  background: #f8f9fa !important;
  padding: 25px !important;
  border-radius: 10px !important;
  text-align: center !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.cta-box h4 {
  margin-bottom: 20px !important;
  color: #333 !important;
}

.cta-button {
  background: #28a745 !important;
  color: white !important;
  padding: 15px 25px !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  display: inline-block !important;
}

.cta-button:hover {
  background: #218838 !important;
}
/* Élargir le conteneur principal des livres SEULEMENT pour single-book */
.single-book #books {
  max-width: 1200px !important;
  grid-template-columns: 1fr !important;
}

/* Garder la grille normale pour archive-book */
#books {
  max-width: 1200px !important;
}

/* Élargir la carte du livre individuel */
.single-book {
  max-width: none !important;
  width: 100% !important;
}

/* Élargir encore plus la colonne de contenu */
.book-content-left {
  flex: 1 !important;
  padding-right: 320px !important;
  max-width: none !important;
}
/* Cibler uniquement les images de contenu (pas le logo) */
.book-content-left .wp-post-image,
.book-content-left .attachment-post-thumbnail {
  max-width: 400px !important;
  width: auto !important;
  height: auto !important;
}
/* Style pour le nom d'auteur cliquable */
.author-clickable {
  cursor: pointer !important;
  text-decoration: underline !important;
  color: #6f0f42 !important;
}

.author-clickable:hover {
  color: #8b1355 !important;
}

/* Styles du pop-up */
.author-popup {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.7) !important;
  z-index: 9999 !important;
  display: none !important;
}

.popup-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: white !important;
  padding: 30px !important;
  border-radius: 10px !important;
  max-width: 500px !important;
  width: 90% !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.popup-close {
  position: absolute !important;
  top: 10px !important;
  right: 15px !important;
  font-size: 24px !important;
  cursor: pointer !important;
  color: #999 !important;
}

.popup-close:hover {
  color: #333 !important;
}
/* Style du modal bio - avec fond légèrement mauve */
.bio-modal {
  border: none !important;
  border-radius: 12px !important;
  padding: 0 !important;
  max-width: 500px !important;
  width: 90% !important;
  box-shadow: 0 12px 35px rgba(111, 15, 66, 0.15) !important;
  border: 2px solid #6f0f42 !important;
}

.bio-modal::backdrop {
  background: rgba(0, 0, 0, 0.7) !important;
}

.bio-content {
  background: #faf9fc !important;
  padding: 30px !important;
  position: relative !important;
}

.bio-content h3 {
  color: #6f0f42 !important;
  margin: 0 0 15px 0 !important;
  font-size: 1.3em !important;
  border-bottom: 2px solid #f0edf5 !important;
  padding-bottom: 10px !important;
}

.bio-content p {
  margin: 0 !important;
  line-height: 1.6 !important;
  color: #555 !important;
}

.bio-content .close {
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  font-size: 24px !important;
  cursor: pointer !important;
  color: #999 !important;
  background: #f0edf5 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.bio-content .close:hover {
  background: #28a745 !important;
  color: white !important;
}
/* Styles pour le carrousel de cartes */

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8f8f8;
  padding: 40px 0;
  margin: 40px 0;
}

/* Carousel Wrapper */
.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  padding: 0 60px; /* Espace pour les flèches */
}

/* Card Individuelle */
.carousel-card {
  min-width: 300px;
  max-width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(34, 139, 34, 0.2);
}

/* Image de la card */
.carousel-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #228b22;
}

/* Contenu de la card */
.carousel-card .card-content {
  padding: 25px;
}

/* Titre de la card */
.carousel-card .card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #228b22;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* Description */
.carousel-card .card-description {
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  max-height: 80px;
  overflow: hidden;
}

/* Adresse */
.carousel-card .card-address {
  color: #333;
  font-size: 0.9em;
  font-weight: 500;
  background: #f0f8f0;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 4px solid #228b22;
}

/* Flèches de Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #228b22;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: #1e7a1e;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 0 50px;
  }

  .carousel-card {
    min-width: 280px;
    max-width: 320px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    padding: 0 40px;
  }

  .carousel-card {
    min-width: 260px;
    max-width: 300px;
  }

  .carousel-card .card-content {
    padding: 20px;
  }
}
/* Force le carousel à prendre toute la largeur */
.carousel-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.carousel-card {
  min-width: 350px; /* Plus large */
  max-width: 450px; /* Plus large */
}

/* Pour forcer la colonne Beaver Builder */
.fl-col-content {
  width: 100% !important;
}

/* Responsive - plus de cards visibles */
@media (min-width: 1200px) {
  .carousel-wrapper {
    justify-content: center;
  }

  .carousel-card {
    min-width: 400px;
    max-width: 500px;
  }
}
/* Élargit toute la rangée pour le carousel */
.fl-row-content-wrap {
  max-width: 1400px !important;
  width: 95% !important;
  margin: 0 auto !important;
}

/* Assure que les colonnes prennent la place */
.fl-col {
  max-width: none !important;
}
/* Personnalisation des flèches du carousel */
/*.swiper-button-next,
.swiper-button-prev {
  color: #27ae60 !important;
}

/* Couleur au survol (un peu plus foncée) 
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #1e8449 !important;
}

/* Optionnel : ajuster la taille si tu veux 
.swiper-button-next,
.swiper-button-prev {
  width: 44px !important;
  height: 44px !important;
}*/
/* === CSS MINIMAL SINGLE PLAT === */

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Article du plat */
.plat-single {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

/* Titre du plat */
.plat-single h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* Description */
.plat-description {
  margin-bottom: 30px;
}

.plat-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* Meta informations (prix, temps) */
.plat-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.prix {
  background: #27ae60;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
}

.temps {
  background: #3498db;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
}

.type-service {
  background: #9b59b6;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
}

/* Description courte */
.description-courte {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  border-left: 4px solid #27ae60;
}

.description-courte p {
  margin: 0;
  font-weight: 500;
  color: #2c3e50;
}

/* Ingrédients */
.ingredients {
  margin-bottom: 25px;
}

.ingredients h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.ingredients ul {
  list-style: none;
  padding: 0;
}

.ingredients li {
  background: #f8f9fa;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.ingredients strong {
  color: #2c3e50;
}

/* Allergènes */
.allergenes {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 25px;
}

.allergenes h3 {
  color: #856404;
  margin-bottom: 10px;
}

.allergenes p {
  color: #856404;
  margin: 0;
  font-weight: 500;
}

/* === VINS CONSEILLÉS SIMPLE === */
.vins-conseilles {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  border-left: 4px solid #e74c3c;
}

.vins-conseilles h2 {
  color: #e74c3c;
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
}

.liste-vins {
  display: grid;
  gap: 20px;
}

.vin-item {
  background: white;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.vin-item:hover {
  border-color: #e74c3c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vin-item h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.vin-item p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #555;
}

.vin-item strong {
  color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .plat-single {
    padding: 20px;
  }

  .plat-single h1 {
    font-size: 2rem;
  }

  .plat-meta {
    flex-direction: column;
    gap: 10px;
  }

  .vins-conseilles {
    padding: 20px;
  }
}
/* ==========================================================================
   ARCHIVE PLATS - GRILLE RESPONSIVE (à ajouter à ton CSS existant)
   ========================================================================== */

/* Section filtres */
.filtres-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.filtres-section h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.3rem;
}

.filtres-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
}

.filtre-groupe {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filtre-groupe label {
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.9rem;
}

.filtre-select {
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
  min-width: 160px;
}

.btn-reset {
  padding: 0.5rem 1rem;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-reset:hover {
  background: #4b5563;
}

.resultats-count {
  margin-top: 1rem;
  color: #666;
  font-weight: 500;
}

/* ==========================================================================
   GRILLE DE PLATS
   ========================================================================== */

.plats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Responsive */
@media (min-width: 768px) {
  .plats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   CARTE DE PLAT (adaptation de tes styles existants)
   ========================================================================== */

.plat-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image du plat */
.plat-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.plat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.plat-card:hover .plat-img {
  transform: scale(1.05);
}

/* Contenu de la carte */
.plat-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Badges (réutilise tes styles existants avec des classes cohérentes) */
.plat-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.plat-card .prix,
.plat-card .temps,
.plat-card .type {
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Titre */
.plat-card h2 {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.plat-card h2 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.plat-card h2 a:hover {
  color: #27ae60;
}

/* Description */
.plat-card .description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* Taxonomies */
.plat-taxonomies {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.plat-taxonomies .categorie,
.plat-taxonomies .saisons {
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: capitalize;
}

/* Actions */
.plat-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-allergenes {
  padding: 0.5rem 1rem;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-allergenes:hover {
  background: #fde68a;
  border-color: #f59e0b;
}

.btn-details {
  padding: 0.5rem 1rem;
  background: #27ae60;
  color: white;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  flex-grow: 1;
  text-align: center;
}

.btn-details:hover {
  background: #219a52;
  color: white;
}

.allergenes-icon {
  font-size: 1rem;
}

/* ==========================================================================
   MODAL ALLERGÈNES (pour la future fonctionnalité AJAX)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #374151;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.loading {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

/* ==========================================================================
   RESPONSIVE MOBILE POUR ARCHIVE
   ========================================================================== */

@media (max-width: 767px) {
  .filtres-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filtre-select {
    min-width: auto;
  }

  .plats-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .plat-content {
    padding: 1.75rem;
  }

  .plat-actions {
    flex-direction: column;
  }

  .btn-allergenes,
  .btn-details {
    justify-content: center;
  }
}

/* ==========================================================================
   NO PLATS FOUND
   ========================================================================== */

.no-plats {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}
/* ==========================================================================
   BOUTON ALLERGÈNES EN BAS À DROITE (à ajouter à ton CSS)
   ========================================================================== */

/* La carte doit être en position relative pour le bouton absolu */
.plat-card {
  position: relative;
  /* ... le reste de tes styles existants ... */
}

/* Bouton allergènes en bas à droite */
.btn-allergenes-corner {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-allergenes-corner:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Animation pulse subtile pour attirer l'attention */
.btn-allergenes-corner::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #dc3545;
  border-radius: 17px;
  opacity: 0;
  animation: pulse-allergenes 2s infinite;
  z-index: -1;
}

@keyframes pulse-allergenes {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* Responsive mobile */
@media (max-width: 767px) {
  .btn-allergenes-corner {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }
}
/* Galerie d'images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
/* Menu de filtres */
.filter-menu {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s ease;
}

.filter-btn:hover {
    color: #333;
}

.filter-btn.active {
    color: #333;
    font-weight: 500;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* Trains */

.train-info{
  display: flex;
  flex-direction: row;
  gap: 50px;
}
.train-galerie{
  display: flex;
  flex-direction: row;
  gap: 10px;
}
/* Swiper - Trains */
.mySwiper {
  position: relative;
  width: 100%;
  height: 400px; 
  max-width:600px;
  overflow: visible;
}
.mySwiper .swiper-slide {
  position:relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.mySwiper .slide-image{
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mySwiper .swiper-slide img {
  display:block;
  transform: scale(0.8);
  height: auto;
  max-width: 100%;
  aspect-ratio:4/3;
  object-fit: cover;
  transition: all .3s ease;
}
.mySwiper .swiper-slide-active img {
  transform-origin: 60%;
}
.mySwiper .swiper-caption{
  margin-top: 10px;
}
.mySwiper .swiper-caption .slide-title {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #000;
}
.mySwiper .swiper-nav{
  position: absolute;
  top:20px;
  left:40%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color:#000;
  color:#fff;
  height:40px;
  width:160px;
}
.mySwiper .swiper-nav .swiper-button-prev,
.mySwiper .swiper-nav .swiper-button-next{
  bottom:20px;
}
.mySwiper .swiper-nav .swiper-button-prev {
  right: initial;
}
.mySwiper .swiper-nav .swiper-button-next {
  left: initial;  
}
.mySwiper .swiper-nav .swiper-pagination {
  top: 12px;
  left: 50%;
  transform: translate(-10%);
  display: flex;
  gap: 4px;
  position: absolute;
}
.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
  font-size: 20px;
  color: #fff;
  display: block;
}
/* Popup - Trains */
.train-popup {
  width: 90%;
  max-width: 1000px;
  height: auto;
  border: none;
  border-radius: 20px;
  padding: 0;
  align-items: center;
  background-color: #000;
  position: relative;
}
.train-popup::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.popup-image{
  height: 100%;
  display:grid;
  place-items: center;
}
.train-popup img {
  width: auto;
  max-width: 100%;
  height: auto; 
  max-height: 100%;
  border-radius: 8px;
  display: block;
}
.train-popup .close{
  position: absolute;
  top: 10px;
  right: 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 20%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.freq-icon {
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: black;
    border: 1px solid #eba817;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px; /* espace entre les blocs */
  margin-bottom: 15px;
  flex-wrap: wrap; /* pour qu’ils passent à la ligne sur petit écran */
}

.gare-filter label,
.search-container label {
  margin-right: 6px;
  font-weight: 500;
}

.gare-filter select,
.search-container input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#btnRecherche {
  padding: 6px 12px;
  border: none;
  background: #eba817;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#btnRecherche:hover {
  background: #d69a13;
}

