/* --- Réglages Généraux & Typographie --- */
body {
  font-family: "Lora", serif;
  margin: 0;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.5;
}

body#programme {

  background-color: #d6d6d6;
}

h1,
h2,
h3,
h4,
h5,
.logo,
.button {
  font-family: "Montserrat", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

strong,
b {
  font-weight: 700; /* Le poids "bold" que nous avons chargé */
}

/* --- Barre de Navigation (Header) --- */
.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  color: #333;
}

.logo-highlight {
  color: #bb051f;
}

/* === NOUVEAU STYLE MENU ORDINATEUR === */
.navbar nav a {
  color: #555;
  text-decoration: none;
  margin-left: 10px;
  padding: 8px 18px; /* Crée l'espace pour le fond */
  border-radius: 20px; /* Arrondit les coins pour l'effet "pastille" */
  font-weight: 600;
  transition: color 0.3s, background-color 0.3s;
}

.navbar nav a:hover {
  background-color: #f0f0f0; /* Fond gris clair au survol */
  color: #000;
}

.navbar nav a.active {
  background-color: #bb051f; /* Fond rouge pour le lien actif */
  color: white; /* Texte blanc pour contraster */
  font-weight: 600;
}

/* --- Section Héros (Accueil) --- */
.hero {
  height: 85vh;
  background-size: cover;
  /* MODIFIEZ CETTE LIGNE */
  background-position: center center; /* de "center top" à "center center" */
  position: relative;
  color: white;
  display: flex;
  padding: 0 5%;
}

/* Le dégradé subtil en bas de l'image */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

.hero-content {
  z-index: 1; /* Place le contenu au-dessus du dégradé */
  max-width: 1200px;
  margin-top: auto; /* Aligne le contenu en bas */
  padding-bottom: 60px; /* Espace par rapport au bas de l'image */
  text-align: left; /* Aligne le texte à gauche */
}

.text-container {
  max-width: 600px; /* Limite la largeur du texte pour une meilleure lisibilité */
}

.quote {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Ajoute une ombre au texte pour le détacher */
}

.quote-author {
  font-size: 1.2em;
  font-family: "Lora", serif;
  font-style: italic;
  color: #e0e0e0;
}

/* --- Section Biographie (Accueil) --- */
.bio-section {
  padding: 80px 0;
  background-color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bio-text h2 {
  font-size: 2.8em;
  color: #bb051f;
  margin-top: 0;
}

.bio-text p {
  font-size: 1.1em;
  margin-bottom: 1.5em;
}

/* --- En-tête de Page (Programme) --- */
.page-header {
  background-color: #BB051F;
  color: white;
  text-align: center;
  padding: 60px 0;
}

.page-header h2 {
  font-size: 3em;
  margin: 0;
}

.subtitle {
  font-size: 1.2em;
  max-width: 700px;
  margin: 10px auto 0;
  opacity: 0.9;
}

/* --- Style pour le sous-titre des événements --- */
.event-subtitle {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 1.2em;
  color: #666;
  margin-top: -15px; /* Rapproche le sous-titre du titre principal */
  margin-bottom: 20px;
}

/* --- Section des Événements (Programme) --- */
.events-section {
  padding: 80px 0;
}

.event-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 10px;
  background-color: #fff;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  align-items: start;
}

/* Nouvelle règle pour l'image */
.event-image img {
  width: 100%;
  height: auto; /* Permet à la hauteur de s'ajuster automatiquement */
  display: block; /* Enlève un petit espace parfois ajouté sous les images */
}

.event-details {
  padding: 40px;
}

.event-type {
  display: inline-block;
  background-color: #bb051f;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8em;
  text-transform: uppercase;
}

.event-details h3 {
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 10px;
}

.event-quote {
  font-style: italic;
  color: #666;
  border-left: 3px solid #ddd;
  padding-left: 20px;
  margin: 20px 0;
}

.event-info {
  margin: 30px 0;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.event-info p {
  margin: 5px 0;
}

/* --- Éléments Communs (Boutons, Pied de page) --- */
.button {
  display: inline-block;
  background-color: #bb051f;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  font-weight: 700;
  transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
  background-color: #9e1e1d;
  transform: translateY(-2px);
}

.site-footer {
  background-color: #29265c;
  color: white;
  padding-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
}

.footer-logo {
  width: 120px;
  height: auto;
}

.contact-info {
  text-align: right;
}

.contact-info h5 {
  margin: 0 0 5px;
  font-size: 1.2em;
}
.contact-info p {
  margin: 0;
  color: #ccc;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
}

.footer-bottom p {
  margin: 0;
}

/* --- Adaptation pour les mobiles --- */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .event-type {
    max-width: 110px;
  }

  .content-grid,
  .event-card {
    grid-template-columns: 1fr;
  }

  .quote {
    font-size: 1.8em;
  }

  .bio-text h2 {
    font-size: 2.2em;
  }

  .event-details {
    padding: 30px;
  }
}

/* --- Style pour le bouton "Lire la suite" --- */
/* Trouvez cette règle */
.read-more-btn {
    background: none;
    border: 1px solid #bb051f;
    color: #bb051f;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    overflow: hidden; /* Ajout pour une belle animation */
    max-height: 40px; /* Hauteur de base pour l'animation */
    transition: all 0.5s ease-in-out; /* <-- MODIFICATION CLÉ */
}

.read-more-btn:hover {
  background-color: #bb051f;
  color: white;
}

.read-more-btn.is-hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
}

/* --- Style pour le contenu caché --- */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

/* --- Menu Hamburger et de Navigation Mobile --- */

.hamburger-menu,
.close-menu {
  display: none; /* Cachés par défaut sur grand écran */
  background: none;
  border: none;
  cursor: pointer;
}

/* On passe en mode mobile sous 768px de largeur */
@media (max-width: 768px) {
  /* Affiche l'icône hamburger */
  .hamburger-menu {
    display: block;
    z-index: 1001; /* Doit être au-dessus du reste */
  }

  .hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s;
  }

  /* Cache les liens de la barre de navigation */
  .navbar nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: #222;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    padding-top: 60px; /* Espace pour le bouton fermer */
    z-index: 1010; /* Assure que le menu est au-dessus de tout */
    gap: 10px;
  }

  /* Style de la navigation quand elle est ouverte */
  .navbar nav.nav-open {
    transform: translateX(0);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  /* === NOUVEAU STYLE POUR LES LIENS DU MENU MOBILE === */
  .navbar nav a {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    padding: 5px 5px;
    width: 85%;
    text-align: center;
    text-decoration: none; /* Garanti sans soulignement */
    border-radius: 8px;
    border-bottom: none; /* Enlève la bordure héritée */
    transition: background-color 0.3s;
  }

  .navbar nav a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Effet de survol subtil */
  }

  .navbar nav a.active {
    background-color: #bb051f; /* Le lien actif a un fond de couleur */
    color: white;
    border-bottom: none;
  }
  /* === FIN DU NOUVEAU STYLE === */

  /* Bouton pour fermer le menu */
  .close-menu {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
  }

  /* --- Ajustements de la grille pour mobile --- */
  .content-grid {
    gap: 30px;
  }

  .bio-image {
    grid-row: 1; /* Met l'image en premier sur mobile */
  }
}

/* --- Style pour l'en-tête d'événement avec date --- */
.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.event-date {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-align: center;
  padding: 6px 12px;
  line-height: 1;
  background-color: #ebebeb;
}

.event-date .day {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.event-date .month {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  color: #bb051f;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* --- Styles pour la page Consultations --- */
.consultation-section {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    color: #333;
    margin-bottom: 40px;
}

.consultation-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 40px;
}

.locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.location-item .city {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #c32222;
    margin-bottom: 5px;
}

.location-item .dates {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
}

.location-item .venue {
    font-size: 0.9em;
    color: #555;
}

.info-block {
    margin-bottom: 25px;
}

.info-block h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.info-block .small-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.important-notice {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

.important-notice h4 {
    color: #c32222;
}

.cta-button-container {
    text-align: center;
    margin-top: 40px;
}

/* Adaptation mobile pour la page consultation */
@media (max-width: 768px) {
    .locations {
        grid-template-columns: 1fr;
    }
    .card-content {
        padding: 30px;
    }
}

.alternative-link {
    text-align: center;
    font-size: 0.9em;
    margin-top: 15px;
    color: #666;
}
.alternative-link a {
    color: #bb051f;
    text-decoration: underline;
}