/* ═══════════════════════════════════════════════════════
   800-ANS-SAINT-FRANCOIS.CSS — chargé uniquement par
   html/zones/evenements/romandie/800-ans-saint-francois.html
   Fichier autonome : reset, polices, header/nav (aligné sur le
   header standard du site, avec menu mobile et skip-link) et la
   page de détail d'un événement sont tous regroupés ici. Pas de
   footer : cette page n'en utilise pas.
   ═══════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");

/* ───── Réinitialisation ───── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ───── Défilement fluide vers les ancres du sommaire ───── */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ───── Polices ───── */
@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather/static/Merriweather_36pt-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* ───── Liens (par défaut blancs : pensés pour l'en-tête brun) ───── */
a:link {
  color: white;
  text-decoration: none;
}

a:visited {
  color: white;
}

a:active {
  color: black;
}

body {
  font-family: "Georgia", serif;
  background-color: #fffcf3;
}

/* ───── En-tête / navigation ───── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #daaa67;
  padding: 10px 80px;
  box-sizing: border-box;
  box-shadow: 0px 3px 10px -2px #573e23;
  overflow: visible; /* permet à l'image de dépasser */
  z-index: 1500;
  transition: all 0.3s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
  white-space: nowrap;
  margin-left: auto;
}

.nav-bar a {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.nav-bar img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin-bottom: -40px; /* pousse l'image vers le bas pour qu'elle dépasse */
}

/* Menu mobile (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #573e23;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ───── Utilitaire d'accessibilité : lien d'évitement ───── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #573e23;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 3000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 900px) {
  header {
    padding: 10px 20px;
  }

  .nav-bar {
    position: relative;
    justify-content: space-between;
  }

  .nav-bar img {
    height: 70px;
    margin-bottom: -20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #daaa67;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 480px;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* ───── Page de détail d'un événement ───── */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ───── Hero bannière en tête de page (image + dégradé + titre) ─────
   Remplace l'ancien h1 centré + image "posée" au-dessus du contenu :
   l'image devient le fond d'une bannière pleine largeur, avec un
   dégradé pour garder le titre lisible quel que soit le visuel. */
.event-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(35, 26, 15, 0.35) 0%,
    rgba(35, 26, 15, 0.25) 40%,
    rgba(35, 26, 15, 0.9) 100%
  );
}

.event-hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 150px 24px 32px;
  text-align: center;
}

.event-hero-kicker {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  color: #f0d9ae;
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.event-hero h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 5vw, 40px);
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 700px) {
  .event-hero {
    min-height: 260px;
  }

  .event-hero-overlay {
    padding: 118px 20px 28px;
  }
}

.content-page > p > a {
  color: #573e23;
  font-weight: bold;
}

.content-section {
  background: #6b5a42;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  scroll-margin-top: 106px; /* hauteur du header fixe (86px) + un peu d'air */
}

.content-section p {
  font-family: "Merriweather", serif;
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 16px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* ───── Titre de chaque jour de neuvaine ───── */
.content-section h2 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

/* ───── Sous-titres internes (Vie de François, Méditation, Intention…) ───── */
.content-section h3 {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0d9ae;
  margin: 20px 0 8px;
}

.content-section h3:first-of-type {
  margin-top: 0;
}

/* ───── Référence de citation (ex: Testament 1-3, 2 Celano 10) ───── */
.content-section .source {
  font-size: 14px;
  font-style: italic;
  color: #e2c396;
  margin-top: -8px;
}

/* ───── Sommaire cliquable des 9 jours ───── */
.content-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 32px;
  padding: 0;
}

.content-toc a {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #573e23 !important;
  background: #f0e3c8;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.content-toc a:hover,
.content-toc a:focus-visible {
  background: #daaa67;
  transform: translateY(-2px);
}

/* ───── Image d'illustration en tête de page ───── */
/* ───── Programme détaillé par jour/lieu ───── */
.content-section h2 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.content-section ul {
  margin: 0 0 16px 20px;
}

.content-section li {
  margin-bottom: 8px;
  font-family: "Merriweather", serif;
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
}

.content-section li:last-child {
  margin-bottom: 0;
}

/* ───── Bloc "Informations pratiques" (icône + libellé + valeur) ───── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px 28px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-item .section-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #f0d9ae;
}

.info-item .info-label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f0d9ae;
  margin-bottom: 3px;
}

.info-item .info-value {
  font-family: "Merriweather", serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
}

/* ───── Bouton d'action (inscription / contact) ───── */
.cta-wrap {
  text-align: center;
  margin: 8px 0 48px;
}

.cta-button {
  display: inline-block;
  background: #daaa67;
  color: #573e23 !important;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -6px rgba(87, 62, 35, 0.6);
}

/* ───── Section "Autres événements" ───── */
.other-events h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #573e23;
  text-align: center;
  margin-bottom: 24px;
}

.other-events-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.other-event-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: #573e23 !important;
  box-shadow: 0 4px 14px -4px rgba(87, 62, 35, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.other-event-card:hover,
.other-event-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px -6px rgba(87, 62, 35, 0.35);
}

.other-event-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.other-event-card .oec-body {
  padding: 14px 16px 18px;
}

.other-event-card .oec-date {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #a9834f;
  margin-bottom: 4px;
}

.other-event-card .oec-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .content-page {
    padding: 32px 16px 60px;
  }

  .content-section {
    padding: 24px 20px;
    scroll-margin-top: 96px; /* header un peu moins haut sous 900px */
  }

  .other-events-grid {
    flex-direction: column;
    align-items: center;
  }

  .other-event-card {
    width: 100%;
    max-width: 320px;
  }
}

