/* ==========================================================================
   ALUMNI ESPI Aix-en-Provence — feuille de style du site
   Direction 2a (Claude Design). Les valeurs reprennent le mini design system.
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  /* Couleurs */
  --navy: #01224C;          /* Marine ESPI : couleur dominante */
  --navy-deep: #00183A;     /* Pied de page, voiles sur photo */
  --navy-hover: #0A3266;    /* Survol des boutons marine */
  --accent: #2B9FDB;        /* Bleu ALUMNI : accent */
  --accent-soft: #7CC6EE;   /* Surtitres sur fond marine, survol */
  --pink: #F7768F;          /* Événements, catégorie « Parcours d'alumni » */
  --orange: #F9B868;        /* Événements, catégorie « Opportunités » */
  --white: #FFFFFF;
  --gray-50: #F6F7F9;       /* Sections alternées */
  --gray-100: #E7EAEF;
  --gray-200: #E2E5EA;      /* Bordures, séparateurs */
  --gray-300: #C9D0DA;
  --gray-400: #9AA4B2;
  --text: #3A4250;          /* Paragraphes sur fond clair */
  --muted: #5B6472;         /* Dates, légendes, libellés */
  --on-navy: #DCE3EE;       /* Texte courant sur fond marine */
  --on-navy-2: #CBD4E2;
  --on-navy-3: #B9C3D3;

  /* Polices */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Mise en page */
  --pad-x: clamp(20px, 4.5vw, 64px);   /* marges latérales */
  --sec-y: clamp(56px, 8vw, 112px);    /* espacement vertical des sections */
  --max-w: 1440px;                     /* largeur maximale du contenu */

  /* Mouvement */
  --ease-out: cubic-bezier(.2, .8, .2, 1);           /* départ vif, arrivée douce */
  --lift: 0 22px 44px -28px rgba(1, 34, 76, .45);    /* ombre des cartes soulevées */
}

/* Couleurs d'accent par carte (piliers, valeurs, catégories…) */
.c-blue   { --c: var(--accent); --tint: #E1F1FA; --on: var(--navy); }
.c-orange { --c: var(--orange); --tint: #FEF0DC; --on: var(--navy); }
.c-pink   { --c: var(--pink);   --tint: #FDE5EA; --on: var(--navy); }
.c-navy   { --c: var(--navy);   --tint: var(--gray-100); --on: #fff; }
.c-gray   { --c: var(--gray-100); --tint: var(--gray-50); --on: var(--navy); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: #6B7483; opacity: 1; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Bloque le défilement de la page quand une fenêtre (menu, album) est ouverte */
html:has(dialog[open]) { overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--navy); }

/* ---------- 3. Mise en page ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--sec-y); }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: #fff; }
.section--flush-bottom { padding-bottom: 0; }
.section--values { padding-top: clamp(48px, 6vw, 80px); }
.section--news { padding-top: clamp(40px, 6vw, 80px); }
.section--contact { padding-top: clamp(40px, 6vw, 96px); }

.stack { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.stack--tight { gap: clamp(24px, 3vw, 36px); }
.stack--partners { gap: 32px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 20px;
}
.section-head__text { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 4. Typographie ---------- */
.h-page,
.h-section,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}
.h-page { font-size: clamp(52px, 7.4vw, 112px); line-height: .94; }
.h-section { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--line::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow--light { color: var(--accent-soft); }

.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }
.text { font-size: 17px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.text-intro { font-size: 17px; line-height: 1.55; color: var(--text); max-width: 640px; }

/* ---------- 5. Boutons, liens, badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 32px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease,
    transform .15s ease, translate .4s var(--ease-out);
}
.btn:not(.btn--disabled):active { transform: scale(.97); }
/* Fond sombre */
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-soft); color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, .85); color: #fff; font-weight: 600; padding: 0 30px; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
/* Fond clair */
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-hover); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); padding: 0 30px; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--disabled {
  border-color: var(--gray-300);
  color: var(--muted);
  font-size: 16px;
  min-height: 52px;
  padding: 0 26px;
  cursor: default;
}
.btn[disabled] { opacity: .7; cursor: progress; }

.link-arrow {
  align-self: flex-start;
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 2px solid var(--navy);
  padding: 6px 0;
}
.link-arrow--accent { border-bottom-color: var(--accent); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}
.badge--pink { background: var(--pink); }
.badge--orange { background: var(--orange); }

.dots { display: flex; gap: 8px; }
.dots span { width: 12px; height: 12px; border-radius: 999px; background: var(--c); display: block; }
.dots--lg span { width: 14px; height: 14px; }

.num {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--c);
  color: var(--on, var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.li-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
}
.li-icon {
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  transition: background-color .25s ease, color .25s ease;
}

/* Emplacement d'image en attente : motif rayé (« visuel à venir ») */
.ph {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: repeating-linear-gradient(135deg, #E4E8EE 0 12px, #EDF0F4 12px 24px);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.ph--dark {
  background: repeating-linear-gradient(135deg, #0A2D5E 0 12px, #062550 12px 24px);
  color: var(--on-navy-3);
}

/* ---------- 6. En-tête et menu mobile ---------- */
.site-header { position: relative; z-index: 20; background: var(--navy); color: #fff; }
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(14px, 2vw, 26px);
}

.brand { display: block; flex-shrink: 0; }
.brand img { width: clamp(68px, 7.5vw, 108px); height: auto; }

.nav { display: flex; gap: clamp(18px, 2.5vw, 36px); font-size: 16px; font-weight: 600; }
/* Soulignement qui se dessine au survol, et reste affiché sur la page en cours */
.nav a {
  padding: 4px 0 6px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  white-space: nowrap;
  transition: background-size .35s var(--ease-out), color .2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { background-size: 100% 2px; }

.header-cta { font-size: 15px; min-height: 0; padding: 14px 24px; }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--navy); display: block; }

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 16px 20px 32px;
  background: var(--navy);
  color: #fff;
  overflow: auto;
}
.menu[open] { display: flex; flex-direction: column; gap: 32px; }
.menu::backdrop { background: var(--navy); }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { width: 52px; height: auto; }
.icon-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { border-color: #fff; }
.icon-btn--dark { border-color: var(--navy); background: #fff; color: var(--navy); font-size: 20px; }
.icon-btn--dark:hover { background: var(--navy); color: #fff; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.2;
  text-transform: uppercase;
}
.menu__nav a[aria-current="page"] { color: var(--accent); }
.menu .btn { width: 100%; }
.menu__mail { font-size: 16px; color: var(--on-navy-2); }

/* ---------- 7. Pied de page ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); font-size: 15px; }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 32px;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 36px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; flex: 1 1 380px; }
.footer-brand img { width: clamp(72px, 7vw, 96px); height: auto; }
.footer-brand p {
  max-width: 440px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(28px, 4.5vw, 64px); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col__title { color: #fff; font-weight: 700; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 24px;
  font-size: 14px;
  color: var(--on-navy-3);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-espi { display: flex; align-items: center; gap: 12px; }
.footer-espi img { height: 44px; width: auto; }

/* ---------- 8. Bandeaux de titre des pages intérieures ---------- */
.band {
  position: relative;
  isolation: isolate;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(124, 198, 238, .13) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: #fff;
}
.band__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(48px, 7vw, 104px);
}
.band .lead { color: var(--on-navy); max-width: 760px; }

/* Variante « L'association » : titre à gauche, texte à droite, cartes qui chevauchent */
.band--asso .band__inner {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(120px, 12vw, 168px);
}
.band--asso .band__title { display: flex; flex-direction: column; gap: 14px; flex: 1 1 520px; min-width: 0; }
.band--asso h1 { font-size: clamp(42px, 5.4vw, 80px); line-height: .95; }
.band--asso .band__aside {
  flex: 0 1 440px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--on-navy);
}

/* Variante « Partenaires » : titre + carte brochure */
.band--split .band__inner {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.band--split .band__title { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.band--split h1 { font-size: clamp(50px, 6.6vw, 100px); }
.band--split .lead { max-width: 620px; }

/* ---------- 9. Accueil ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 880px;
  min-height: min(880px, 100svh);
  background: var(--navy);
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 34, 76, .75) 0%, rgba(1, 34, 76, .35) 28%, rgba(1, 34, 76, .7) 55%, rgba(0, 24, 58, .97) 100%);
}
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 140px;
  padding-bottom: clamp(28px, 5vw, 72px);
}
.hero__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); }
.hero .eyebrow { color: #fff; font-size: clamp(12px, 1.2vw, 14px); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 8.6vw, 128px);
  line-height: .93;
  text-transform: uppercase;
}
.hero__sub {
  max-width: 820px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__quote { max-width: 640px; font-size: clamp(16px, 1.7vw, 23px); line-height: 1.45; color: #E3E9F2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 auto; max-width: 320px; }

.hero-event {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: rgba(0, 24, 58, .82);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  transition: border-color .15s ease;
}
.hero-event:hover { color: #fff; border-color: var(--accent); }
.hero-event .badge { align-self: flex-start; letter-spacing: .14em; padding: 6px 10px; }
.hero-event__date { font-family: var(--font-display); font-size: 32px; line-height: 1; text-transform: uppercase; }
.hero-event__title { font-size: 16px; line-height: 1.4; color: var(--on-navy); }

/* Chiffres clés */
.stats { border-bottom: 1px solid var(--gray-200); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 3.5vw, 52px) 20px clamp(20px, 3.5vw, 48px) 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: -1px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 84px);
  line-height: .95;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label { font-size: clamp(14px, 1.2vw, 16px); line-height: 1.35; color: var(--muted); }

/* Bloc mission (aplat marine) */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
.split__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.split__media { flex: 1 1 420px; aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.section--navy .text { color: var(--on-navy); max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); }
.section--navy .h-section { line-height: .98; }

/* Piliers */
.piliers-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.piliers-head .eyebrow { white-space: nowrap; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.pilier {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-top: 6px solid var(--c);
}
.pilier__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pilier__title {
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--tint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Logos partenaires */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logos--big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.logo-slot {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border: 1px dashed var(--gray-300);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.logos--big .logo-slot { height: 170px; border-color: var(--gray-400); }
.logo-slot.is-filled { border: 1px solid var(--gray-200); padding: 24px; font-family: var(--font); font-size: 16px; font-weight: 800; color: var(--navy); }
.logo-slot img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
a.logo-slot:hover { border-color: var(--navy); }
/* Emplacement libre : « Votre logo ici » laisse place à « Devenir partenaire » au survol */
.logo-slot--empty { position: relative; overflow: hidden; transition: border-color .25s ease; }
.logo-slot__ph,
.logo-slot__cta { transition: opacity .3s var(--ease-out), transform .35s var(--ease-out); }
.logo-slot__cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--navy);
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
}
a.logo-slot--empty:focus-visible .logo-slot__ph { opacity: 0; transform: translateY(-10px); }
a.logo-slot--empty:focus-visible .logo-slot__cta { opacity: 1; transform: none; }

/* Bloc « Vous en êtes ? » sur photo */
.join {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding-block: clamp(56px, 8vw, 120px);
}
/* Photo plus haute que le bloc : marge pour la parallaxe */
.join__bg {
  position: absolute;
  top: -12%;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center 80%;
  will-change: transform;
}
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 24, 58, .86); }
.join__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 40px); }
.join__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.join__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 6.6vw, 96px);
  line-height: .95;
  text-transform: uppercase;
}
.join__head p { max-width: 640px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: var(--on-navy); }
.join__card { width: 100%; max-width: 960px; padding: clamp(20px, 2.6vw, 36px); background: #fff; color: var(--navy); }

/* ---------- 10. Cartes ---------- */

/* Événement */
.events { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.event { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--gray-200); }
.event__visual {
  position: relative;
  overflow: hidden;
  flex: 0 1 420px;
  min-width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  align-self: flex-start;
  background-color: #0A3266;
}
.event__visual img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease-out); }
/* Reflet qui suit le curseur sur l'affiche */
.event__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .18), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
}
.event__visual.is-glare::after { opacity: 1; }
.event__visual.is-glare img { transform: scale(1.03); }
.event__visual.ph { aspect-ratio: auto; min-height: 260px; align-self: stretch; }
.event__body {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 56px) clamp(20px, 4.5vw, 64px);
}
.event__date { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 64px); line-height: 1; text-transform: uppercase; }
.event__title { font-size: clamp(21px, 2.2vw, 32px); line-height: 1.15; font-weight: 700; }
.event__heading { display: flex; flex-direction: column; gap: 4px; }
.event__sub { font-size: 18px; color: var(--text); }
.event__desc { max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--text); }
.event__place { font-size: 16px; color: var(--muted); }
.event .btn { align-self: flex-start; }
/* Variante de la page Événements, un peu plus compacte */
.event--list .event__visual { flex-basis: 380px; }
.event--list .event__body { gap: 16px; padding: clamp(22px, 4vw, 52px) clamp(20px, 4.5vw, 60px); }
.event--list .event__date { font-size: clamp(32px, 4vw, 56px); }
.event--list .event__title { font-size: clamp(21px, 2vw, 30px); }
.event--list .event__desc { max-width: 680px; }
.event--empty .event__body { flex-basis: 100%; }

/* Actualité */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 2.5vw, 32px);
}
.news-grid--home { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.news { display: flex; flex-direction: column; gap: 16px; color: var(--navy); }
a.news:hover { color: var(--navy); }
.news__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E4E8EE; }
.news__media img,
.news__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.news__media img { object-fit: cover; transition: transform .6s var(--ease-out); }
a.news:hover .news__media img { transform: scale(1.03); }
a.news:hover .news__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cat {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: var(--c);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(1, 34, 76, .18);
}
.cat::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--navy); }
.news__title { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.22; font-weight: 800; text-wrap: pretty; }
.news__resume { font-size: 16px; line-height: 1.55; color: var(--text); }
.news__date { font-size: 14px; color: var(--muted); }

.empty { font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Filtres des actualités */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px; }
.chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 0 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--navy); }
.chip:active { transform: scale(.97); }
.chip__dot { width: 10px; height: 10px; border-radius: 999px; background: var(--c); box-shadow: 0 0 0 2px transparent; }
.chip__count {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #F0F2F5;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); }
.chip[aria-pressed="true"] .chip__dot { box-shadow: 0 0 0 2px #fff; }
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, .6); }
.chip.c-navy[aria-pressed="true"] { color: #fff; }
.chip.c-navy[aria-pressed="true"] .chip__dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.chip.c-navy[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, .2); color: #fff; }

/* Membre du bureau */
.team { position: relative; margin-top: calc(-1 * clamp(96px, 10vw, 136px)); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.member { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); }
.member__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1); background: #E4E8EE; transition: filter .5s var(--ease-out); }
.member__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(12px, 1.4vw, 18px); }
.member__id { display: flex; flex-direction: column; gap: 4px; }
.member__name { font-size: clamp(17px, 1.4vw, 20px); font-weight: 800; line-height: 1.2; }
.member__role { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.member .li-link { margin-top: auto; align-self: flex-start; }
.member--invite {
  justify-content: center;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  border: 1.5px dashed var(--gray-400);
}
.member--invite h3 { font-size: 19px; font-weight: 800; }
.member--invite p { font-size: 15px; line-height: 1.55; color: var(--text); }
.member--invite .link-arrow { font-size: 15px; padding: 4px 0; }

/* Valeurs */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.value {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: clamp(260px, 22vw, 320px);
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--gray-50);
  border-bottom: 4px solid var(--c);
}
.value .num { width: 60px; height: 60px; font-size: 24px; }
.value__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 3vw, 44px); line-height: 1; text-transform: uppercase; }
.value p { font-size: 16px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

/* Albums souvenirs */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.album-card {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--navy);
  cursor: pointer;
  transition: border-color .15s ease, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.album-card:hover { border-color: var(--navy); }
.album-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.album-card__cover { display: flex; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; padding: 14px; }
img.album-card__cover { padding: 0; }
.album-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.album-card__date { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.album-card__title { font-size: 24px; font-weight: 800; }
.album-card__text { font-size: 16px; line-height: 1.55; color: var(--text); }
.album-card__more { margin-top: 4px; font-size: 15px; font-weight: 700; }

.album-dialog {
  width: min(1100px, calc(100% - 2 * clamp(12px, 4vw, 56px)));
  max-width: none;
  max-height: calc(100% - 2 * clamp(12px, 4vw, 56px));
  margin: auto;
  padding: clamp(20px, 3vw, 40px);
  border: 0;
  background: #fff;
  color: var(--navy);
  overflow: auto;
}
.album-dialog::backdrop { background: rgba(0, 24, 58, .92); }
.album-dialog[open] { display: flex; flex-direction: column; gap: 24px; }
.album-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.album-dialog__head > div { display: flex; flex-direction: column; gap: 6px; }
.album-dialog__date { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.album-dialog__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; text-transform: uppercase; }
.album-dialog__text { max-width: 720px; margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text); }
.album-dialog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.photo { display: flex; flex-direction: column; gap: 8px; }
.photo__img { display: flex; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; padding: 12px; font-size: 11px; }
img.photo__img { padding: 0; }
.photo figcaption { font-size: 14px; color: var(--text); }

/* Avantages partenaires */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.benefit {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.8vw, 40px);
  background: var(--gray-50);
  border-top: 6px solid var(--c);
}
.benefit .num { width: 52px; height: 52px; font-size: 21px; }
.benefit__head { display: flex; flex-direction: column; gap: 10px; }
.benefit__verb {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 7px solid var(--c);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 3.8vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.benefit__rest { font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; line-height: 1.2; }
.benefit__fact { margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; }
.benefit__fact::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--c); flex-shrink: 0; }
.benefit__fact p { display: flex; flex-direction: column; gap: 2px; }
.benefit__fact strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; }
.benefit__fact span { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); }

/* Formules de partenariat */
.formules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  align-items: stretch;
}
.formule {
  --sub: var(--text);
  --line: var(--gray-200);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--gray-200);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.formule--featured { --sub: var(--on-navy); --line: rgba(255, 255, 255, .2); background: var(--navy); color: #fff; }
.formule__flag {
  position: absolute;
  top: -14px;
  right: clamp(20px, 2.4vw, 32px);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.formule__name { font-size: 22px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.formule__pricebox { display: flex; flex-direction: column; gap: 10px; }
.formule__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.formule__price strong { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1; }
.formule__price span { font-size: 17px; color: var(--sub); white-space: nowrap; }
.formule__bar { width: 56px; height: 4px; border-radius: 999px; background: var(--c); display: block; }
.formule__hook { font-size: 17px; line-height: 1.5; font-weight: 600; }
.formule__list { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.formule__list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--sub); }
.check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--c);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}
.formule .btn { font-size: 16px; min-height: 52px; }

/* Groupes de partenaires */
.partner-group { display: flex; flex-direction: column; gap: 14px; }

/* Bandeau d'appel à l'action foncé */
.cta-band { background: var(--navy-deep); color: #fff; }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
  padding-block: clamp(48px, 6vw, 88px);
}
.cta-band__text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 10px; }
.cta-band__text h2 { font-size: clamp(36px, 4.2vw, 60px); }
.cta-band__text p { font-size: 17px; line-height: 1.55; color: var(--on-navy-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { padding: 0 28px; }

/* ---------- 11. Formulaires ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.form--contact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form--stack { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.form--stack .field { gap: 6px; }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 400;
  outline-color: var(--accent);
  transition: border-color .2s ease;
}
.form--stack .field input { height: 52px; padding: 0 14px; }
.field input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.form .btn { align-self: end; height: 56px; }
.form--contact .btn,
.form__full { grid-column: 1 / -1; }
.form--stack .btn { margin-top: 4px; }
.form__note { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form__error { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; color: #B3261E; }
.form__error a { font-weight: 700; text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { display: flex; flex-direction: column; gap: 10px; padding: 12px 4px; }
.form-done--center { align-items: center; text-align: center; }
.form-done__title { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.05; text-transform: uppercase; color: var(--navy); }
.form-done > p:not(.form-done__title) { max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--text); }
.form-done a { font-weight: 700; text-decoration: underline; }
.form-done__title:focus { outline: none; }

/* Carte brochure (page Partenaires) */
.brochure {
  flex: 1 1 380px;
  max-width: 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 36px);
  background: #fff;
  color: var(--navy);
  scroll-margin-top: 24px;
}
.brochure__head { display: flex; flex-direction: column; gap: 6px; }
.brochure__kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brochure__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; }
.brochure__head p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text); }
.brochure__alt { font-size: 14px; color: var(--muted); }
.brochure__alt a { font-weight: 700; color: var(--navy); }
.brochure__alt a:hover { color: var(--accent); }
.brochure .form-done__title { line-height: 1; }
.brochure .form-done > p:not(.form-done__title) { font-size: 16px; }

/* Page Rejoindre */
.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 5vw, 72px); }
.contact__form { flex: 1 1 520px; min-width: 0; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--gray-200); }
.contact__form .form-done { padding: 24px 0; gap: 12px; }
.contact__form .form-done__title { font-size: 44px; line-height: 1; }
.contact__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__item { display: flex; flex-direction: column; gap: 8px; }
.contact__item address { font-style: normal; font-size: 18px; line-height: 1.5; }
.contact__mail { font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; word-break: break-all; }
.contact__item .li-link { font-size: 17px; }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--gray-200); }

/* ---------- 12. Pages L'association, mentions légales ---------- */
.two-cols { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 80px); }
.two-cols > * { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.two-cols .text { font-size: clamp(16px, 1.4vw, 19px); }

.espi-link .split__main { flex-basis: 460px; gap: 20px; }
.espi-link h2 { font-size: clamp(36px, 4.2vw, 60px); }
.espi-link .text { max-width: 620px; line-height: 1.65; }
.espi-link__logo { flex: 0 1 380px; display: flex; align-items: center; justify-content: center; }
.espi-link__logo img { width: 100%; max-width: clamp(110px, 13vw, 180px); }

.legal { display: flex; flex-direction: column; gap: 40px; }
.legal section { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--text); }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal a { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }

/* ---------- 13. Animations et micro-interactions ----------
   Discrètes et au service de la lecture. Elles s'effacent toutes quand le
   visiteur demande à réduire les animations (voir la fin du fichier). */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes settle { from { scale: 1.06; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.98); } }

/* Apparition au défilement : classes posées par site.js */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* Flèches des liens (→ et ↗), isolées par site.js pour pouvoir avancer au survol */
.arr { display: inline-block; transition: transform .3s var(--ease-out); }

/* Bandeaux de titre : les points du motif s'éclairent autour du curseur */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(124, 198, 238, .95) 1.5px, transparent 1.7px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
  mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.band.is-lit::after { opacity: 1; }

/* Survol : seulement sur les appareils qui en ont un (souris, pavé tactile) */
@media (hover: hover) {
  a:hover .arr,
  button:hover .arr { transform: translateX(4px); }
  a:hover .arr--ne,
  button:hover .arr--ne { transform: translate(3px, -3px); }
  .li-link:hover .li-icon { background: var(--accent); color: var(--navy); }
  .member:hover .member__photo { filter: grayscale(0); }
  .album-card:hover,
  .formule:hover { transform: translateY(-4px); box-shadow: var(--lift); }
  a.logo-slot--empty:hover .logo-slot__ph { opacity: 0; transform: translateY(-10px); }
  a.logo-slot--empty:hover .logo-slot__cta { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrée de page : accroche de l'accueil et bandeaux de titre, en cascade */
  .hero__text > *,
  .hero-event,
  .band__inner > :not(.band__title),
  .band__title > * { animation: rise .9s var(--ease-out) backwards; }
  .hero__text > :nth-child(2), .band__inner > :nth-child(2), .band__title > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3), .band__inner > :nth-child(3), .band__title > :nth-child(3) { animation-delay: .16s; }
  .hero__text > :nth-child(4), .band__inner > :nth-child(4) { animation-delay: .24s; }
  .hero__text > :nth-child(5), .band__inner > :nth-child(5) { animation-delay: .32s; }
  .hero-event,
  .band__inner > .band__aside,
  .band__inner > .brochure { animation-delay: .4s; }
  .hero__bg { animation: settle 1.8s var(--ease-out) backwards; }

  /* Cartes du bureau, visibles dès l'arrivée sur la page */
  .team__grid > * { animation: rise .8s var(--ease-out) backwards; animation-delay: .2s; }
  .team__grid > :nth-child(2) { animation-delay: .27s; }
  .team__grid > :nth-child(3) { animation-delay: .34s; }
  .team__grid > :nth-child(4) { animation-delay: .41s; }
  .team__grid > :nth-child(5) { animation-delay: .48s; }
  .team__grid > :nth-child(n + 6) { animation-delay: .55s; }

  /* Menu mobile et album photo */
  .menu[open] { animation: fade-in .25s ease-out; }
  .menu[open] .menu__nav a,
  .menu[open] > .btn,
  .menu[open] > .menu__mail { animation: rise .55s var(--ease-out) backwards; }
  .menu[open] .menu__nav a:nth-child(2) { animation-delay: .04s; }
  .menu[open] .menu__nav a:nth-child(3) { animation-delay: .08s; }
  .menu[open] .menu__nav a:nth-child(4) { animation-delay: .12s; }
  .menu[open] .menu__nav a:nth-child(5) { animation-delay: .16s; }
  .menu[open] > .btn { animation-delay: .2s; }
  .menu[open] > .menu__mail { animation-delay: .24s; }
  .album-dialog[open] { animation: pop .35s var(--ease-out); }
  .album-dialog[open]::backdrop { animation: fade-in .3s ease-out; }

  /* Actualités : les cartes se recomposent quand on change de filtre */
  .news.is-entering { animation: rise .5s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }

  /* Fondu entre les pages (navigateurs compatibles) */
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .25s; }

/* ---------- 14. Adaptations écran ---------- */
@media (max-width: 959.98px) {
  .header-cta { display: none; }
}

@media (max-width: 819.98px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero { min-height: 780px; }
  .hero-event { flex: 1 1 100%; }
  /* Sur mobile, les boutons d'action passent en pleine largeur */
  .hero__actions .btn { max-width: none; }
  .event .btn,
  .section-head .btn,
  .cta-band__actions,
  .cta-band__actions .btn { width: 100%; }
  .event .btn { white-space: normal; }
}

/* Visiteur ayant demandé à réduire les animations : tout s'affiche directement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
  }
}
