/* ============================================================
   SFOG — Homepage
   ============================================================ */

:root {
  --navy:        #0a0d2e;
  --navy-2:      #12173f;
  --navy-3:      #1a2154;
  --green:       #8bc540;
  --green-dark:  #6faa2e;
  --green-teal:  #45bd94;
  --green-soft:  #b7d98c;
  --cream:       #f6f2e9;
  --ink:         #14173a;
  --ink-soft:    #5c5f77;
  --white:       #ffffff;

  --radius:      16px;
  --radius-lg:   22px;
  --maxw:        1180px;
  --shadow:      0 18px 40px rgba(10, 13, 46, .12);
  --shadow-card: 0 24px 48px rgba(10, 13, 46, .28);
}

* { box-sizing: border-box; }

/* L'attribut [hidden] doit toujours masquer, même sur les éléments en display:flex/inline-flex. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Footer collé en bas de fenêtre quand la page est courte */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > * { flex-shrink: 0; }            /* pas d'écrasement des sections */
.site-footer, .c-footer, .inf-footer { margin-top: auto; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 197, 64, .35);
}
.btn--green:hover { background: var(--green-dark); }

.btn--navy {
  background: var(--navy-2);
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
}
.btn--navy:hover { background: var(--navy-3); }

.btn--ghost-green {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}
.btn--ghost-green:hover { background: var(--green); color: #fff; }

.btn--ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.btn--ghost-white:hover { background: #fff; color: var(--green-dark); }

.btn.is-disabled {
  opacity: .45;
  pointer-events: none;
  box-shadow: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: linear-gradient(180deg, #0c1036 0%, var(--navy) 100%);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--green-teal), var(--green)) 1;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__logo { position: relative; display: inline-flex; align-items: center; }
.site-header__logo img { height: 26px; width: auto; }
.site-header__logo img.is-broken { display: none; }
.site-header__logo-fallback {
  display: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 22px;
}
.site-header__logo img.is-broken + .site-header__logo-fallback { display: inline; }

.partner-btns { display: flex; align-items: center; gap: 12px; }
.partner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.partner-btn img {
  max-height: 20px;
  width: auto;
  opacity: .4;
  transition: opacity .3s ease;
}
.partner-btn:hover { transform: translateY(-2px); border-color: transparent; }
.partner-btn:hover img { opacity: 1; }
.partner-btn--campus:hover { background: linear-gradient(120deg, #34a04e, #8ac53f); box-shadow: 0 10px 24px rgba(90, 180, 70, .35); }
.partner-btn--inf:hover    { background: linear-gradient(120deg, #0f9a8d, #45bd94); box-shadow: 0 10px 24px rgba(30, 170, 150, .35); }
.partner-btn--cnccg:hover  { background: linear-gradient(120deg, #58c0c1, #79cecb); box-shadow: 0 10px 24px rgba(95, 195, 195, .35); }

/* ---------- Menu principal (à côté du logo) ---------- */
.site-header__left { display: flex; align-items: center; gap: 32px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  transform: translateX(-50%) scale(0);
  transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--green); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: translateX(-50%) scale(1); }

/* ---------- Bouton hamburger (masqué en desktop) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Les ancres s'arrêtent sous le header collant */
#apropos, #evenements { scroll-margin-top: 90px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 46, .55), rgba(10, 13, 46, .25) 40%, rgba(10, 13, 46, .65));
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 40px 24px; }
.hero__logo {
  width: min(360px, 72vw);
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5));
}

/* ============================================================
   PROCHAINS ÉVÉNEMENTS
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 32px;
}
.section-title__icon { height: 26px; width: auto; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  position: relative;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
/* Carte mise en avant : occupe 2 colonnes (2/3 de la largeur) */
.event-card--wide { grid-column: span 2; }
/* Tablette : 2 colonnes égales (la carte large redevient normale, 1/2) */
@media (max-width: 1023px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card--wide { grid-column: auto; }
}
.event-card--nobg {
  background-image: linear-gradient(160deg, #1f2a63 0%, #2e6d4f 55%, #4f9a4a 100%);
}
/* Événement passé : visuel grisé */
.event-card--past { filter: grayscale(100%); }
.event-past-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .9);
  color: #3a3a3a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.event-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 46, 0) 35%, rgba(10, 13, 46, .82) 100%);
  z-index: 1;
}
.event-card__body {
  position: relative;
  z-index: 2;
  padding: 22px;
  width: 100%;
  color: #fff;
}
.event-card__title { margin: 0 0 14px; font-size: 26px; font-weight: 600; line-height: 1.15; }

.event-meta {
  margin: 5px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .92);
}
.event-meta::before {
  content: '';
  width: 17px; height: 17px;
  flex: 0 0 17px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .9;
}
.event-meta--date::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.event-meta--place::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.4 7-11a7 7 0 1 0-14 0c0 4.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

/* Compte à rebours — pilule blanche en haut de la carte */
.countdown--hidden { display: none; }
.countdown--pill {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(10, 13, 46, .22);
  white-space: nowrap;
}
.countdown__seg {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}
.countdown__seg b {
  color: #171b2e;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}
.countdown__done {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

.event-actions { display: flex; gap: 10px; margin-top: 6px; }
.event-actions .btn { flex: 1; padding-top: 8px; padding-bottom: 8px; }

.events-empty { text-align: center; color: var(--ink-soft); }

/* ============================================================
   PRÉSENTATION SFOG
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-bottom: 26px; }
.about-logos img { height: 34px; width: auto; }
.about-logos img:first-child { height: 40px; }
.about-title { font-size: 24px; font-weight: 600; margin: 0 0 18px; color: var(--ink); }
.about-text { color: var(--ink-soft); max-width: 420px; margin: 0 0 26px; }

.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 360px; object-fit: cover; }
.about-badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  background: rgba(10, 13, 46, .25);
  backdrop-filter: blur(2px);
}
.about-badge span { font-size: 14px; line-height: 1.25; }
.about-badge strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: 1px; }

/* ============================================================
   BANDEAU ADHÉSION
   ============================================================ */
.join-band {
  background:
    linear-gradient(90deg, var(--green-dark) 0%, var(--green) 12%, var(--green-soft) 30%, var(--green-soft) 70%, var(--green) 88%, var(--green-dark) 100%);
  padding: 30px 0;
  /* la carte déborde volontairement en haut et en bas de la bande */
  overflow: visible;
}
.join-band__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
}
/* Le PNG porte déjà sa forme et son ombre : ni fond, ni radius, ni ombre CSS
   (sinon une plaque claire apparaît dans la marge transparente de l'image). */
.join-band__card {
  width: 340px;
  margin: -56px 0;
  transform: rotate(-7deg);
}
.join-band__text { color: #16391a; max-width: 460px; }
.join-band__text h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.join-band__text p { margin: 0 0 18px; color: rgba(22, 57, 26, .85); }

/* ============================================================
   WEBINAR
   ============================================================ */
.webinar-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: stretch;
}
.webinar-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  background:
    radial-gradient(120% 120% at 50% 0%, #2a1f5c 0%, #141338 55%, #0b0b26 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
}
.webinar-video__badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
}
.webinar-video__play {
  align-self: center;
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 8px 20px rgba(255, 0, 0, .4));
}
.webinar-video:hover .webinar-video__play { transform: scale(1.08); }
.webinar-video__footer {
  align-self: center;
  font-weight: 600;
  font-size: 15px;
}

/* Lecture intégrée (embed) du webinar */
.webinar-video--playing { padding: 0; cursor: default; }
.webinar-iframe {
  flex: 1;
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.webinar-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Logo Webinar SFOG Campus (image) */
.webinar-info__logo-img { height: 62px; width: auto; margin-bottom: 18px; }

.webinar-info__logo {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--green-teal);
  line-height: 1;
  margin-bottom: 18px;
}
.webinar-info__logo span {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 4px;
}
.webinar-info p { color: var(--ink-soft); margin: 0 0 22px; }

/* ============================================================
   X / TWITTER
   ============================================================ */
.x-section .section-title { justify-content: center; }
.x-embed { max-width: 600px; margin: 0 auto; }
.x-embed iframe { border-radius: 14px !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #06081f 100%);
  padding: 28px 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer__logo { height: 24px; width: auto; }
.social { display: flex; gap: 12px; }
.social__link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.social__link--li { background: #0a66c2; }
.social__link--fb { background: #1877f2; }
.social__link--x  { background: #000; border: 1px solid rgba(255,255,255,.25); }
.social__link--yt { background: #ff0000; }
.social__link:hover { transform: translateY(-3px); }

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-title { font-size: 28px; font-weight: 600; margin: 0 0 16px; color: var(--ink); }
.contact-intro p { color: var(--ink-soft); margin: 0 0 14px; max-width: 420px; }
.contact-intro .contact-note { font-size: 13px; color: #8b8fa6; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { margin-bottom: 16px; }
.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #2a2d55;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6d9e6;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(139, 197, 64, .18);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* Honeypot : masqué aux humains, visible pour les bots */
.contact-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.contact-actions { margin-top: 6px; }
.contact-actions .btn { width: 100%; padding: 14px; font-size: 15px; }

.contact-feedback {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.contact-feedback.is-ok { background: #eef7e3; color: var(--green-dark); }
.contact-feedback.is-ko { background: #fdecea; color: #c0392b; }

/* Liens de navigation du pied de page */
.footer-nav { display: flex; gap: 22px; }
.footer-nav a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}
.footer-nav a:hover { color: #fff; }

/* ============================================================
   ACTUALITÉS (accueil, liste, article)
   ============================================================ */
.page-title { font-size: 28px; font-weight: 600; margin: 0 0 32px; color: var(--ink); }

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.news-head .section-title { margin: 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* chaque carte = 1/4 de la largeur */
  gap: 24px;
}
@media (max-width: 1023px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
.news-empty { text-align: center; color: var(--ink-soft); padding: 20px; }

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px rgba(10, 13, 46, .16); }
.news-card__media { height: 170px; background-size: cover; background-position: center; }
.news-card__media--nobg { background: linear-gradient(160deg, #1f2a63 0%, #2e6d4f 60%, #4f9a4a 100%); }
.news-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__date { font-size: 12px; color: var(--green-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.news-card__title { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; }
.news-card__excerpt { font-size: 14px; color: var(--ink-soft); margin: 0; flex: 1; }
.news-card__more { font-size: 14px; font-weight: 600; color: var(--green-dark); margin-top: 4px; }

/* Article (single) */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-block; color: var(--green-dark); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 24px; }
.article-back:hover { text-decoration: underline; }
.article__cover { width: 100%; height: 360px; border-radius: var(--radius); background-size: cover; background-position: center; margin-bottom: 26px; }
.article__date { font-size: 13px; color: var(--green-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.article__title { font-size: 30px; font-weight: 600; line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
.article__excerpt { font-size: 18px; color: var(--ink-soft); font-weight: 500; margin: 0 0 24px; line-height: 1.6; }
.article__content { font-size: 16px; color: #2c2f45; line-height: 1.75; }
.article__content p { margin: 0 0 18px; }
.article-loading { color: var(--ink-soft); text-align: center; padding: 40px; }

/* ============================================================
   PAGE À PROPOS
   ============================================================ */
.about-page { max-width: 820px; margin: 0 auto; }
.about-page__title { font-size: 30px; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0 0 24px; }
.about-page__lead { font-size: 18px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px; }
.about-page h2 {
  font-size: 22px; font-weight: 600; color: var(--ink);
  margin: 42px 0 16px; padding-left: 14px;
  border-left: 4px solid var(--green);
}
.about-page p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 16px; }
.about-page strong { color: var(--ink); font-weight: 600; }
.about-page ul { list-style: none; padding: 0; margin: 0 0 16px; }
.about-page li { position: relative; padding-left: 26px; margin-bottom: 14px; color: var(--ink-soft); line-height: 1.7; }
.about-page li::before {
  content: ''; position: absolute; left: 3px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
/* Titre de section porté par un logo (SFOG Campus, SFOG INF+) */
.about-page__brand { display: flex; align-items: center; }
.about-page__brand img { height: 38px; width: auto; display: block; }

.about-page__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-dark); text-decoration: none; }
.about-page__more:hover { text-decoration: underline; }
@media (max-width: 640px) { .about-page__title { font-size: 26px; } }


/* Texte réservé aux lecteurs d'écran et aux moteurs de recherche : présent dans
   le document, invisible à l'écran (les H1 des pages dont le titre est un logo). */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Les H1 portés par un logo ne doivent rien changer à la mise en page. */
.hero__title, .c-hero__title { margin: 0; font-size: inherit; font-weight: inherit; line-height: 0; }
.c-hero__title { position: relative; z-index: 2; }

/* ============================================================
   ANIMATIONS — parallax / tilt / apparition (voir js/parallax.js)
   Les classes masquantes ne sont posées que par le JS : sans JS ou en
   prefers-reduced-motion, tout reste visible et statique.
   ============================================================ */
[data-parallax] { will-change: transform; }
[data-tilt] { transform-style: preserve-3d; backface-visibility: hidden; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .webinar-grid { grid-template-columns: 1fr; }
  .join-band__inner { flex-direction: column; text-align: center; }
  .about-text { max-width: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
  .contact-intro p { max-width: none; }

  /* ----- Header : menu hamburger ----- */
  .nav-toggle { display: flex; order: 2; }
  .site-header__left { display: contents; }
  .site-header__bar { flex-wrap: wrap; column-gap: 16px; row-gap: 0; }
  .site-header__logo { order: 1; }
  .main-nav, .partner-btns { order: 3; flex-basis: 100%; display: none; }

  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 2px 4px;
  }
  .site-header.is-open .main-nav a { padding: 11px 2px; font-size: 16px; }
  .site-header.is-open .main-nav a::after { display: none; }
  .site-header.is-open .partner-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 4px;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .partner-btns { gap: 8px; }
  .partner-btn { padding: 7px 10px; }
  .hero { min-height: 320px; }
  .events-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .event-card--wide { grid-column: auto; }
  .about-badge strong { font-size: 28px; }
  .site-footer__inner { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-head { flex-direction: column; align-items: flex-start; }
  .article__cover { height: 220px; }
  .article__title { font-size: 24px; }
}
