/* ==========================================================================
   Mosquée de Montgeron — feuille de style
   Couleurs issues de couleurs.txt + teinte « arche » du logo
   ========================================================================== */

:root {
  --primary: #30afb8;        /* Principal */
  --primary-dark: #238a92;
  --primary-soft: #e6f5f6;
  --navy: #313b48;           /* Secondaire (liens) */
  --navy-deep: #262e39;
  --text: #666666;           /* Secondaire 2 */
  --sand: #ffd59a;           /* arche du logo */
  --sand-soft: #fff7ec;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --border: #e3e8eb;

  --font-title: "Josefin Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px -12px rgba(49, 59, 72, .22);
  --shadow-sm: 0 2px 10px -4px rgba(49, 59, 72, .18);
  --container: 1160px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-color: var(--primary); text-underline-offset: 3px; }
a, button, .btn, label { touch-action: manipulation; }
@media (hover: hover) { a:hover { color: var(--primary-dark); } }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn-primary { background: var(--primary); color: #fff; }
@media (hover: hover) { .btn-primary:hover { background: var(--primary-dark); color: #fff; } }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
@media (hover: hover) { .btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); } }
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; }
@media (hover: hover) { .btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; } }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 50px; width: auto; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .5em .85em; border-radius: 999px;
  font-weight: 500; font-size: .96rem; color: var(--navy); text-decoration: none;
}
@media (hover: hover) { .main-nav a:hover { background: var(--primary-soft); color: var(--navy); } }
.main-nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-soft); }
.main-nav .nav-cta a { background: var(--primary); color: #fff; margin-left: 8px; padding-inline: 1.2em; }
@media (hover: hover) { .main-nav .nav-cta a:hover { background: var(--primary-dark); } }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: .8em 1em; font-size: 1.05rem; }
  .main-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(48,175,184,.35), transparent 60%), var(--navy);
  color: #dfe5ea;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px);
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--sand); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-lead { font-size: 1.2rem; max-width: 36em; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { justify-self: center; width: min(340px, 80%); }
.hero-mark svg { width: 100%; height: auto; }
.hero-pattern { position: absolute; inset: 0; opacity: .07; pointer-events: none; }
.eyebrow {
  display: inline-block; font-family: var(--font-title); letter-spacing: .14em; text-transform: uppercase;
  font-size: .85rem; font-weight: 600; color: var(--primary); margin-bottom: 1em;
}
.hero .eyebrow { color: var(--sand); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* En-tête de page interne */
.page-hero {
  background: radial-gradient(900px 400px at 90% -20%, rgba(48,175,184,.35), transparent 60%), var(--navy);
  color: #dfe5ea; padding: 48px 0 40px;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { max-width: 44em; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1em; }
.breadcrumb a { color: var(--sand); }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-alt); }
.section-sand { background: var(--sand-soft); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Aperçu des cours de l'accueil : autant de colonnes que la largeur le permet, quel que soit le nombre de cours */
.grid-cours { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Mêmes seuils que .split : en une colonne, le widget Mawaqit de l'accueil laisse place à un bouton */
.mobile-only { display: none; }
@media (max-width: 860px) {
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none; }
}

/* ---------- Cartes ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: none; color: var(--primary-dark); }
.card .card-link::after { content: " →"; }

.icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
  margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }
.icon.sand { background: var(--sand-soft); color: #b47a1f; }

.tag {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  padding: .25em .8em; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark);
  margin-bottom: 12px; align-self: flex-start;
}

.meta { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.meta li { display: flex; gap: 10px; align-items: flex-start; }
.meta svg { width: 18px; height: 18px; flex: none; margin-top: .3em; color: var(--primary); }

/* ---------- Horaires (Mawaqit) ---------- */
.prayer-frame {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.prayer-frame iframe { display: block; width: 100%; height: 600px; border: 0; }

.info-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.info-list .icon svg { width: 22px; height: 22px; }
.info-list strong { color: var(--navy); display: block; }

.notice {
  border-left: 4px solid var(--sand); background: var(--sand-soft);
  padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .97rem;
}

/* ---------- Projet LIAM ---------- */
.liam {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dfe5ea; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.liam h2, .liam h3 { color: #fff; }
.liam-acronym { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.liam-acronym span {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: .4em .9em; border-radius: 10px; font-size: .95rem;
}
.liam-acronym b { color: var(--sand); font-family: var(--font-title); font-size: 1.15em; }

.progress-box { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 24px; }
.progress-figures { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.progress-amount { font-family: var(--font-title); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: #fff; }
.progress-goal { font-size: .95rem; }
.progress-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress-bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--sand));
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
}
.progress-caption { display: flex; justify-content: space-between; font-size: .88rem; margin-top: 10px; }
.progress-caption .pct { color: var(--sand); font-weight: 600; }

/* ---------- Dons ---------- */
.don-card { text-align: left; }
.don-card .btn { margin-top: auto; align-self: flex-start; }
.don-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }

/* ---------- Pôle éducatif ---------- */
.course { position: relative; }
.course-level { font-size: .9rem; color: var(--primary-dark); font-weight: 600; margin-bottom: .6em; }

/* ---------- Galerie / images ---------- */
.figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: #fff; margin: 0; }
.figure figcaption { padding: 12px 18px; font-size: .9rem; }
.figure.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-row { margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.media-row > :only-child { max-width: 560px; }
.media-row .figure.photo img { aspect-ratio: 16 / 9; }

/* Vidéo YouTube : miniature, le lecteur n'est chargé qu'au clic */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); }
.video iframe,
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { padding: 0; cursor: pointer; background: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: var(--shadow); transition: transform .2s, background-color .2s;
}
.video-play:focus-visible::after { transform: scale(1.08); background-color: var(--primary-dark); }
@media (hover: hover) { .video-play:hover::after { transform: scale(1.08); background-color: var(--primary-dark); } }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before {
  content: counter(step); flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-title);
}

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; }
.form label { font-weight: 600; color: var(--navy); font-size: .95rem; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; color: var(--navy);
  padding: .8em 1em; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .88rem; }
.choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { font-weight: 600; color: var(--navy); font-size: .95rem; padding: 0; margin-bottom: 6px; }
.form .choices label { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0 0 8px; cursor: pointer; }
.form .choices input { width: auto; padding: 0; box-shadow: none; accent-color: var(--primary); }
.mail-fallback { margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--sand-soft); display: grid; gap: 12px; }
.mail-fallback p { margin: 0; font-size: .95rem; }
.mail-fallback textarea { width: 100%; font: inherit; font-size: .9rem; padding: 12px; border: 1px solid var(--border); border-radius: 10px; resize: vertical; }
.mail-fallback .btn { justify-self: start; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #eafafb; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
@media (hover: hover) { .cta-band .btn-primary:hover { background: var(--navy); color: #fff; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: #b8c2cc; padding: 48px 0 24px; font-size: .97rem; }
.site-footer a { color: #e3e9ee; text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { color: var(--primary); } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 52px; width: auto; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .2s;
}
@media (hover: hover) { .socials a:hover { background: var(--primary); color: #fff; } }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Contenus gérés depuis le back-office ---------- */
.annonce {
  background: var(--primary); color: #fff;
  font-size: .95rem; font-weight: 500; text-align: center;
  padding: 10px 0;
}
.annonce .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.annonce a { color: #fff; font-weight: 700; }
@media (hover: hover) { .annonce a:hover { color: var(--sand); } }
.annonce.important { background: var(--sand); color: var(--navy); }
.annonce.important a { color: var(--navy); }

.inscription {
  margin: 14px 0 0; align-self: flex-start;
  font-size: .82rem; font-weight: 600; padding: .3em .9em; border-radius: 999px;
}
.inscription.ouverte { background: #e5f6ec; color: #1e7a45; }
.inscription.complet { background: #f1f1f1; color: #777; }

/* ---------- Retour en haut (mobile) ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  display: none; place-items: center; cursor: pointer;
  background: var(--primary); color: #fff; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s, background-color .2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:focus-visible { background: var(--primary-dark); }
@media (hover: hover) { .to-top:hover { background: var(--primary-dark); } }
@media (max-width: 860px) { .to-top { display: grid; } }

/* ---------- Prochains événements ---------- */
.date-tuile {
  flex: none; width: 58px; height: 62px; border-radius: 12px;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--primary); color: #fff;
}
.date-tuile .jour { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; }
.date-tuile .mois { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.date-tuile.regulier svg { width: 26px; height: 26px; }

/* Accueil : bande agenda au-dessus de la bannière */
.agenda { background: var(--primary-soft); border-bottom: 1px solid #cfeaec; padding: 18px 0; }
.agenda-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.agenda-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: .02em; }
.agenda-head a { font-size: .9rem; font-weight: 600; color: var(--primary-dark); text-decoration: none; white-space: nowrap; }
.agenda-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.agenda-item {
  display: flex; align-items: center; gap: 14px; padding: 10px; padding-right: 14px;
  background: #fff; border: 1px solid #cfeaec; border-radius: 16px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.agenda-texte { display: grid; gap: 2px; min-width: 0; flex: 1; font-size: .92rem; }
.agenda-texte strong { color: var(--navy); font-size: 1.02rem; line-height: 1.3; }
.agenda-visuel { flex: none; width: 88px; height: 62px; object-fit: cover; border-radius: 10px; }
@media (hover: hover) { .agenda-item:hover { border-color: var(--primary); } }

/* Page Activités : bloc agenda (activités régulières + événements ponctuels) */
.agenda-bloc + .agenda-bloc { margin-top: 36px; }
.agenda-sous-titre {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
}
.agenda-sous-titre::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.grid-evenements { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 20px; }
.card.evenement { padding: 0; overflow: hidden; flex-direction: row; align-items: stretch; }
.evenement-visuel {
  flex: none; width: 42%; max-width: 260px; align-self: stretch;
  object-fit: cover; background: var(--navy-deep); min-height: 150px;
}
.evenement-corps { display: flex; gap: 16px; align-items: flex-start; padding: 20px; flex: 1; min-width: 0; }
.evenement h3 { margin: 0 0 .2em; font-size: 1.12rem; }
.evenement-date { margin: 0 0 .4em; font-size: .9rem; font-weight: 600; color: var(--primary-dark); }
.evenement-desc { margin: 0; font-size: .95rem; }
@media (max-width: 560px) {
  .card.evenement { flex-direction: column; }
  .evenement-visuel { width: 100%; max-width: none; height: auto; min-height: 0; object-fit: contain; }
}

/* Vidéos du projet : s'adapte au nombre de vidéos (1, 2, 3…) et reste centré */
.grid-videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.grid-videos > * { flex: 1 1 300px; max-width: 520px; }

/* Mobile : la bande agenda défile horizontalement (carrousel) au lieu d'empiler les événements */
@media (max-width: 700px) {
  .agenda-liste {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
  }
  .agenda-liste::-webkit-scrollbar { display: none; }
  .agenda-item { flex: 0 0 88%; scroll-snap-align: start; }
  .agenda-visuel { width: 60px; height: 48px; }
  .agenda-liste > :only-child { flex-basis: 100%; }
  .agenda-points { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .agenda-points span { width: 7px; height: 7px; border-radius: 50%; background: #b9e0e3; transition: background .2s; }
  .agenda-points span.actif { background: var(--primary); }
}
@media (min-width: 701px) { .agenda-points { display: none; } }
.agenda-vide { max-width: 640px; }
.agenda-vide p:last-child { margin-bottom: 0; }

/* ---------- Mobile : en-têtes plus compacts pour laisser la place au contenu ---------- */
@media (max-width: 700px) {
  :root { --header-h: 62px; }
  .brand img { height: 40px; }
  .annonce { font-size: .85rem; padding: 7px 0; line-height: 1.4; }
  .page-hero { padding: 20px 0 22px; }
  .page-hero .breadcrumb { display: none; } /* le logo et le menu suffisent pour revenir */
  .page-hero h1 { font-size: 1.9rem; margin-bottom: .2em; }
  .page-hero p { font-size: .98rem; line-height: 1.5; }
  .section { padding: 32px 0; }
  .section-head { margin-bottom: 20px; }
  .agenda-sous-titre { margin-bottom: 12px; }
}
