/* =========================================================
   BDE aivancity — feuille de style principale

   Direction : « fête de campus ». Des panneaux arrondis posés
   sur un fond crème, les pastels des affiches de l'équipe,
   une serif douce (Fraunces) pour les titres et des notes
   manuscrites (Gochi Hand) pour la touche perso.
   ========================================================= */

:root {
  /* Marque */
  --violet: #4F3CC9;
  --violet-deep: #3B2BA6;
  --violet-soft: #ECE8FF;
  --coral: #FF7A59;

  /* Pastels festifs (repris des affiches de l'équipe) */
  --butter: #FFE08A;
  --leaf: #BDEBA6;
  --sky: #B8CCFB;
  --rose: #FFC9E1;
  --peach: #FFD2B3;
  --lilac: #DCD3FF;
  --mint: #B4EAD6;

  /* Neutres */
  --cream: #FFF8F0;
  --cream-deep: #FCEEDD;
  --white: #FFF8F0;       /* surfaces (cartes, panneaux) : jamais de blanc pur */
  /* Fond de page : une famille de pêches qui varie le long de la page */
  --page: #FFD2B3;        /* pêche de référence */
  --page-light: #FFE2CF;  /* pêche clair, haut de page */
  --page-rose: #FFD3C4;   /* pêche rosé */
  --page-warm: #FFC6A2;   /* pêche abricot, plus chaud */
  --ink: #221B3A;
  --ink-2: #3D3554;
  --ink-soft: #5A5371;
  --line: rgba(34, 27, 58, 0.12);

  /* Typo */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Gochi Hand', 'Segoe Print', 'Comic Sans MS', cursive;

  /* Formes */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 44px;
  --r-pill: 999px;
  --blob: 58% 42% 52% 48% / 46% 54% 46% 54%;
  --blob-2: 42% 58% 46% 54% / 56% 44% 56% 44%;

  /* Ombres douces */
  --shadow-sm: 0 1px 2px rgba(34, 27, 58, 0.05), 0 4px 12px -4px rgba(34, 27, 58, 0.08);
  --shadow-md: 0 16px 34px -16px rgba(34, 27, 58, 0.26);
  --shadow-lg: 0 32px 60px -26px rgba(34, 27, 58, 0.38);
  --shadow-violet: 0 14px 28px -12px rgba(79, 60, 201, 0.55);

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-width: 1180px;
  --gutter: 24px;
  --panel-inset: 16px;

  /* Décors réutilisés */
  --confetti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='none' stroke-linecap='round' stroke-width='3'%3E%3Cpath d='M30 52q7-9 14 0t14 0' stroke='%23FF8F73'/%3E%3Cpath d='M196 226q7-9 14 0t14 0' stroke='%2391AAF2'/%3E%3Cpath d='M250 112l0 12M244 118l12 0' stroke='%23A08DF0'/%3E%3C/g%3E%3Ccircle cx='226' cy='54' r='5' fill='%23FFCF4D'/%3E%3Ccircle cx='76' cy='212' r='4' fill='%23FF9FCB'/%3E%3Ccircle cx='150' cy='140' r='3' fill='%2382CC8F'/%3E%3Crect x='112' y='262' width='9' height='9' rx='2' transform='rotate(24 116 266)' fill='%23FFB286'/%3E%3C/svg%3E");
  --squiggle-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16' fill='none' stroke='%23FF7A59' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9c6-6 10 4 16-1s9-3 15 0'/%3E%3Cpath d='M28 4.5l5.5 4L27 11'/%3E%3C/svg%3E");
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16C70 6 130 21 190 11s82-5 106 2' stroke='%23FF7A59' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --doodles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 280' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M262 38l8 21 22 3-17 14 6 22-19-12-19 11 5-21-17-15 22-2z'/%3E%3Cpath d='M78 92c14-34 64-20 46 10-14 22-50 8-30-16 18-22 66-14 62 24'/%3E%3Cpath d='M36 222q15-18 30 0t30 0 30 0 30 0'/%3E%3Cpath d='M310 186l4 11 11 4-11 4-4 11-4-11-11-4 11-4z'/%3E%3Ccircle cx='196' cy='150' r='6'/%3E%3Cpath d='M236 250c10-4 22-4 32 2'/%3E%3C/svg%3E");

  /* Alias historiques (styles inline existants) */
  --color-primary: var(--violet);
  --color-primary-dark: var(--violet-deep);
  --color-accent: var(--coral);
  --color-accent-dark: var(--violet);
  --color-bg: var(--page);
  --color-bg-alt: var(--cream-deep);
  --color-dark: var(--ink);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-border: var(--line);
}

/* ---------- Tons (réutilisés par tous les composants) ---------- */
.tone-butter { --tone: var(--butter); }
.tone-leaf   { --tone: var(--leaf); }
.tone-sky    { --tone: var(--sky); }
.tone-rose   { --tone: var(--rose); }
.tone-peach  { --tone: var(--peach); }
.tone-lilac  { --tone: var(--lilac); }
.tone-mint   { --tone: var(--mint); }
.tone-coral  { --tone: #FFA48C; }
.tone-violet { --tone: var(--violet); --tone-ink: #fff; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--page);
  background-image: linear-gradient(180deg, var(--page-light) 0, var(--page) 1100px, var(--page-rose) 45%, var(--page) 70%, var(--page-warm) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 600;
  color: var(--violet);
}
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 104px 0; }
@media (max-width: 768px) {
  :root { --gutter: 20px; --panel-inset: 8px; --r-xl: 32px; }
  section { padding: 72px 0; }
}

/* Panneau arrondi posé sur la crème */
.panel {
  margin: 0 var(--panel-inset);
  border-radius: var(--r-xl);
  background: var(--white);
}
.panel + .panel,
.page-hero + .panel { margin-top: var(--panel-inset); }
.panel--violet { background: var(--violet); color: #fff; }
.panel--warm { background: var(--page-warm); }
.panel--rose { background: var(--page-rose); }
.panel--violet h2, .panel--violet h3 { color: #fff; }
.panel--violet h2 em { color: var(--butter); }
.panel--violet p { color: rgba(255, 255, 255, 0.84); }
.panel--violet .eyebrow { color: var(--butter); }

/* ---------- Titres de section ---------- */
.section-header { max-width: 680px; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.section-header p { color: var(--ink-soft); font-size: 1.12rem; max-width: 560px; margin: 0; }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center p { margin-inline: auto; }
.section-header--center .eyebrow { transform-origin: center; }
.section-header--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px 64px;
  align-items: end;
}
.section-header--split h2 { margin-bottom: 0; }
@media (max-width: 860px) {
  .section-header--split { grid-template-columns: 1fr; }
}

/* Kicker manuscrit, façon annotation sur une affiche */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--violet);
  margin-bottom: 12px;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.eyebrow::after {
  content: "";
  width: 36px;
  height: 15px;
  background: var(--squiggle-arrow) no-repeat center / contain;
  transform: translateY(3px);
}

/* Surligneur pastel qui se dessine à l'apparition */
.hl {
  --hl: var(--butter);
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 88% / 100% 0.36em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.06em;
  border-radius: 0.12em;
  transition: background-size 0.9s var(--ease-out) 0.25s;
}
.hl--leaf { --hl: var(--leaf); }
.hl--sky { --hl: var(--sky); }
.hl--rose { --hl: var(--rose); }
.hl--butter { --hl: var(--butter); }
.js .reveal:not(.is-visible) .hl { background-size: 0% 0.36em; }

/* Soulignement « coup de feutre » */
.scribble {
  background: var(--scribble) no-repeat 0 100% / 100% 0.26em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.1em;
}
.js .scribble {
  background-size: 0% 0.26em;
  animation: scribble-in 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes scribble-in { to { background-size: 100% 0.26em; } }

/* Note manuscrite libre */
.hand-note {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--violet);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn .btn-arrow { transition: transform 0.35s var(--ease-spring); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-violet); }
.btn-primary:hover { background: var(--violet-deep); box-shadow: 0 20px 34px -14px rgba(79, 60, 201, 0.65); }

.btn-secondary,
.btn-outline {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
}
.btn-secondary:hover,
.btn-outline:hover { color: var(--violet); box-shadow: inset 0 0 0 1.5px rgba(79, 60, 201, 0.4), var(--shadow-md); }

.btn-light { background: var(--white); color: var(--violet); box-shadow: var(--shadow-md); }
.btn-light:hover { background: var(--butter); color: var(--ink); }

.btn-block { width: 100%; }

/* Boutons stores */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-spring), background-color 0.2s ease;
}
.btn-store:hover { transform: translateY(-3px); background: #322a52; }
.btn-store:active { transform: scale(0.97); }
.btn-store svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-store .store-text { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store .store-text small { font-size: 0.7rem; opacity: 0.75; }
.btn-store .store-text strong { font-size: 1.02rem; }

.store-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--violet);
}
.panel--violet .store-note,
.page-hero--violet .store-note { color: var(--butter); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 226, 207, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 24px -20px rgba(34, 27, 58, 0.45);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
}
.brand .logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-spring);
}
.brand:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand .brand-name span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2px;
}
.nav-links > li { display: flex; align-items: center; position: relative; }
.nav-links > li > a,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links > li > a:hover,
.nav-dropdown-toggle:hover { background: var(--cream-deep); color: var(--ink); }
.nav-links > li > a.active,
.nav-dropdown-toggle.active { background: var(--violet-soft); color: var(--violet); }
.nav-links > li > a.active::after,
.nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--coral);
}
.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}
.has-dropdown.is-open > .nav-dropdown-toggle svg,
.has-dropdown:hover > .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-cta { margin-left: 8px; }
.nav-links > li.nav-cta > a.btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(79, 60, 201, 0.7);
}
.nav-links > li.nav-cta > a.btn:hover { background: var(--violet-deep); color: #fff; }
.nav-links > li.nav-cta > a.active::after { display: none; }
.cta-label-short { display: none; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 290px;
  padding: 10px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out), visibility 0.2s ease;
  z-index: 1100;
}
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-label {
  display: block;
  padding: 4px 10px 8px;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--violet);
}
.nav-dropdown-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background-color 0.2s ease;
}
.nav-dropdown-card:hover { background: var(--cream-deep); }
.nav-dropdown-card img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring);
}
.nav-dropdown-card:hover img { transform: rotate(-8deg); }
.nav-dropdown-card strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 1px; }
.nav-dropdown-card small { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.nav-dropdown-all {
  display: block;
  margin-top: 6px;
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--violet);
  text-align: center;
  background: var(--violet-soft);
  transition: background-color 0.2s ease;
}
.nav-dropdown-all:hover { background: var(--lilac); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.nav-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-links > li > a,
  .nav-dropdown-toggle { padding: 8px 10px; font-size: 0.86rem; }
  .nav-links > li.nav-cta > a.btn { padding: 9px 15px; font-size: 0.86rem; }
  .cta-label-full { display: none; }
  .cta-label-short { display: inline; }
  .brand .brand-name span { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    left: var(--panel-inset);
    right: var(--panel-inset);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 12px;
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav-links > li { width: 100%; display: block; }
  .nav-links > li > a,
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 16px;
    font-size: 1rem;
  }
  .nav-links > li > a.active::after,
  .nav-dropdown-toggle.active::after { left: auto; right: 18px; top: 50%; bottom: auto; margin-top: -2.5px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-links > li.nav-cta > a.btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 1rem; }
  .cta-label-full { display: inline; }
  .cta-label-short { display: none; }
  .brand .brand-name span { display: block; }

  .nav-dropdown {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: var(--cream-deep);
  }
  .has-dropdown:hover > .nav-dropdown,
  .has-dropdown:focus-within > .nav-dropdown { display: none; }
  .has-dropdown.is-open > .nav-dropdown,
  .has-dropdown.is-open:hover > .nav-dropdown,
  .has-dropdown.is-open:focus-within > .nav-dropdown { display: block; }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding: 150px 0 64px;
  background: radial-gradient(ellipse 42% 60% at 76% 52%, rgba(255, 240, 228, 0.9), transparent 70%);
}
/* Confettis concentrés sur les bords, le texte reste au calme */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--confetti) repeat 40px 60px / 380px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 28% 58%, transparent 50%, #000 82%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 70% 80% at 28% 58%, transparent 50%, #000 82%), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
}
.garland-string { fill: none; stroke: var(--ink-soft); stroke-width: 2; opacity: 0.45; }
.flag { transform-box: fill-box; transform-origin: 50% 0; }
.flag--coral { fill: var(--coral); }
.flag--butter { fill: #FFD25E; }
.flag--sky { fill: #9FB8F7; }
.flag--rose { fill: #FFA9CF; }
.flag--leaf { fill: #A6DE8C; }
.flag--lilac { fill: #BCADFF; }
.flag--peach { fill: #FF9C66; }
.flag--mint { fill: #8FDDBE; }
.js .flag {
  animation: flag-in 1s var(--ease-spring) both;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}
@keyframes flag-in {
  from { rotate: -70deg; opacity: 0; }
  to { rotate: 0deg; opacity: 1; }
}

.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 0.4em;
}
.hero h1 em { color: var(--violet); }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 52px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  background: linear-gradient(var(--tone), var(--tone)) no-repeat 0 90% / 100% 0.32em;
}
.hero-stats span { font-size: 0.92rem; color: var(--ink-soft); }

/* Apparition au chargement du hero */
.js .hero-copy > * {
  animation: reveal-up 0.9s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 90ms + 120ms);
}
.hero-copy > :nth-child(2) { --d: 1; }
.hero-copy > :nth-child(3) { --d: 2; }
.hero-copy > :nth-child(4) { --d: 3; }
.hero-copy > :nth-child(5) { --d: 4; }

/* Collage de polaroïds de l'équipe */
.polaroid {
  position: relative;
  margin: 0;
  padding: 10px 10px 0;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}
.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-2);
  padding: 8px 4px 12px;
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 86px;
  height: 26px;
  margin-left: -43px;
  transform: rotate(-4deg);
  background: rgba(255, 224, 138, 0.82);
  box-shadow: 0 1px 2px rgba(34, 27, 58, 0.08);
  z-index: 1;
}

.collage {
  position: relative;
  display: block;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1.1;
  margin-left: auto;
  border-radius: var(--r-lg);
}
.collage .polaroid {
  position: absolute;
  width: 50%;
  padding-bottom: 36px;
  transition: transform 0.55s var(--ease-spring), rotate 0.55s var(--ease-spring), box-shadow 0.3s ease;
}
.collage .polaroid--a { left: 0; top: 5%; rotate: -7deg; z-index: 1; }
.collage .polaroid--b { right: 4%; top: 0; rotate: 6deg; z-index: 2; }
.collage .polaroid--b::before { background: rgba(184, 204, 251, 0.85); transform: rotate(5deg); }
.collage .polaroid--c { left: 21%; bottom: 0; rotate: -2deg; z-index: 3; }
.collage .polaroid--c::before { background: rgba(255, 201, 225, 0.88); }
.collage:hover .polaroid--a { transform: translate(-14px, -6px); rotate: -11deg; }
.collage:hover .polaroid--b { transform: translate(14px, -10px); rotate: 9deg; }
.collage:hover .polaroid--c { transform: translateY(10px); rotate: 0deg; }
.collage-note {
  position: absolute;
  right: 0;
  bottom: 4%;
  z-index: 4;
  max-width: 150px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--violet);
  transform: rotate(-6deg);
  transition: transform 0.4s var(--ease-spring);
}
.collage-note svg { width: 54px; height: 40px; margin: 0 0 4px -10px; color: var(--coral); }
.collage:hover .collage-note { transform: rotate(-3deg) translateY(-4px); }
.js .collage .polaroid { animation: pop-in 0.9s var(--ease-spring) both; }
.js .collage .polaroid--a { animation-delay: 0.35s; }
.js .collage .polaroid--b { animation-delay: 0.5s; }
.js .collage .polaroid--c { animation-delay: 0.65s; }
.js .collage-note { animation: reveal-up 0.8s var(--ease-out) 1s both; }
@keyframes pop-in {
  from { opacity: 0; scale: 0.85; }
  to { opacity: 1; scale: 1; }
}

@media (max-width: 900px) {
  .hero { padding: 120px 0 72px; }
  .hero::before {
    -webkit-mask-image: linear-gradient(#000, transparent 220px);
    mask-image: linear-gradient(#000, transparent 220px);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .collage { margin: 0 auto; max-width: 420px; }
}
@media (max-width: 480px) {
  .collage-note { right: -2px; font-size: 1.15rem; max-width: 120px; }
  .hero-stats { gap: 18px 28px; }
  .hero-stats strong { font-size: 2rem; }
}

/* ---------- Bandeau des pages internes ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin: 8px var(--panel-inset) 0;
  padding: 100px 0 92px;
  border-radius: var(--r-xl);
  background: var(--tone, var(--lilac));
  color: var(--ink);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 50%;
  width: min(360px, 34vw);
  aspect-ratio: 360 / 280;
  transform: translateY(-50%);
  background: var(--doodles) no-repeat center / contain;
  opacity: 0.95;
  z-index: -1;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin-bottom: 0.35em;
}
.page-hero p { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; margin: 0; }
.page-hero .eyebrow { color: var(--ink-2); }
.page-hero .eyebrow::after { filter: saturate(0) brightness(0.3); }
.js .page-hero .container > * {
  animation: reveal-up 0.8s var(--ease-out) both;
}
.js .page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.js .page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.js .page-hero .container > :nth-child(4) { animation-delay: 0.24s; }

.page-hero--compact { padding: 72px 0 64px; }
.page-hero--compact h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 22ch; }
.page-hero--compact::after { width: min(280px, 26vw); opacity: 0.8; }
.page-hero--legal { --tone: var(--cream-deep); }
.page-hero--legal::after { filter: invert(0.75) sepia(0.4); opacity: 0.35; }

.page-hero--violet { --tone: var(--violet); color: #fff; }
.page-hero--violet h1 { color: #fff; }
.page-hero--violet h1 em { color: var(--butter); }
.page-hero--violet p { color: rgba(255, 255, 255, 0.86); }
.page-hero--violet .eyebrow { color: var(--butter); }
.page-hero--violet .eyebrow::after { filter: none; }
.page-hero--violet::after { opacity: 0.35; }

.page-hero--split .container {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.page-hero--split::after { display: none; }
.page-hero--split h1 { max-width: 12ch; }
.page-hero--split .store-buttons { margin-top: 32px; }

@media (max-width: 900px) {
  .page-hero--split .container { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero { padding: 72px 0 64px; }
  .page-hero::after { width: 130px; right: -24px; top: 14px; transform: none; opacity: 0.4; }
}

/* ---------- Accueil : missions ---------- */
.missions-statement {
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  line-height: 1.12;
  max-width: 1000px;
  margin-bottom: 0.45em;
}
.missions-intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 580px; margin: 0; }
.missions-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 36px;
  margin-top: 64px;
}
.mission h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
.mission p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }
.mission-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: var(--blob);
  background: var(--tone);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  transition: border-radius 0.6s var(--ease-out), transform 0.5s var(--ease-spring);
}
.mission:hover .mission-num { border-radius: var(--blob-2); transform: rotate(-10deg) scale(1.06); }
/* Survoler une mission fait grossir le surligneur du verbe correspondant */
.missions:has(.mission.tone-butter:hover) .hl--butter,
.missions:has(.mission.tone-leaf:hover) .hl--leaf,
.missions:has(.mission.tone-sky:hover) .hl--sky,
.missions:has(.mission.tone-rose:hover) .hl--rose {
  background-size: 100% 0.95em;
  transition-delay: 0s;
  transition-duration: 0.45s;
}
@media (max-width: 960px) { .missions-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .missions-list { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Étiquettes ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--tone, var(--violet-soft));
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ---------- Événements ---------- */
.event-media {
  position: relative;
  border-radius: var(--r-lg);
}
.event-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.7s var(--ease-out);
}
.event-media-frame { overflow: hidden; border-radius: inherit; }

/* Pastille de date en forme de bulle */
.event-date {
  position: absolute;
  left: 20px;
  bottom: -30px;
  display: grid;
  place-content: center;
  width: 96px;
  height: 96px;
  border-radius: var(--blob);
  background: var(--butter);
  text-align: center;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transform: rotate(-6deg);
  transition: transform 0.45s var(--ease-spring), border-radius 0.6s var(--ease-out);
}
.event-date strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; }
.event-date span { font-size: 0.85rem; font-weight: 700; margin-top: 4px; }
.event-date--pending { background: var(--white); color: var(--violet); }
.event-date--pending strong { font-family: var(--font-hand); font-weight: 400; font-size: 1.45rem; }
.event-date--pending span { font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; }

.event-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); margin-top: 16px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 17px; height: 17px; }

/* Accueil : un événement à la une + la liste */
.agenda {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.event-feature { display: block; }
.event-feature .event-info { padding: 52px 8px 0; }
.event-feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 12px 0 0.35em; }
.event-feature p { color: var(--ink-soft); margin: 0; max-width: 520px; }
.event-feature:hover .event-media img,
.event-card:hover .event-media img { transform: scale(1.04); }
.event-feature:hover .event-date { transform: rotate(3deg) scale(1.05); border-radius: var(--blob-2); }

.agenda-list { display: grid; gap: 6px; }
.event-row {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-lg);
  transition: background-color 0.25s ease, transform 0.35s var(--ease-spring);
}
.event-row:hover { background: var(--cream-deep); transform: translateX(4px); }
.event-thumb {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--r-md);
  transition: transform 0.45s var(--ease-spring), border-radius 0.5s var(--ease-out);
}
.event-row:hover .event-thumb { transform: rotate(-4deg); border-radius: var(--blob); }
.event-row h3 { font-size: 1.25rem; margin: 8px 0 2px; }
.event-when { font-family: var(--font-hand); font-size: 1.15rem; color: var(--violet); }
.row-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-spring);
}
.row-arrow svg { width: 18px; height: 18px; }
.event-row:hover .row-arrow { background: var(--violet); color: #fff; transform: translateX(3px); }
.agenda-more { margin-top: 28px; padding-left: 14px; }

@media (max-width: 960px) {
  .agenda { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .event-row { grid-template-columns: 76px 1fr; gap: 16px; padding: 10px; }
  .event-thumb { width: 76px; height: 76px; }
  .row-arrow { display: none; }
}

/* Page Événements */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}
.event-card { display: flex; flex-direction: column; }
.event-card .event-body { padding: 50px 6px 0; }
.event-card h3 { font-size: 1.5rem; margin: 12px 0 0.35em; }
.event-card p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }
.event-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border-radius: calc(var(--r-lg) + 12px);
  box-shadow: var(--shadow-sm);
}
.event-card--featured .event-body { padding: 0 24px 0 0; }
.event-card--featured h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.event-card--featured .event-date { left: auto; right: -24px; bottom: auto; top: -24px; width: 112px; height: 112px; }
.event-card--featured .event-date strong { font-size: 1.8rem; }
.event-card:hover .event-date { transform: rotate(4deg) scale(1.05); border-radius: var(--blob-2); }

@media (max-width: 960px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card--featured { grid-template-columns: 1fr; gap: 32px; }
  .event-card--featured .event-body { padding: 0 8px 12px; }
  .event-card--featured .event-date { right: 16px; top: -18px; width: 96px; height: 96px; }
}
@media (max-width: 620px) {
  .events-grid { grid-template-columns: 1fr; }
}

/* À venir / déjà passés */
.events-section + .events-section--past { margin-top: 0; }
.events-section--past .events-grid { grid-template-columns: repeat(3, 1fr); }
.events-empty { margin: 8px 0 0; }
.events-empty a { border-bottom: 2px solid rgba(79, 60, 201, 0.3); }

/* Un événement passé reste lisible mais passe au second plan : photo désaturée,
   pastille grisée et mention « Terminé ». */
.is-past .event-media img,
.event-row.is-past .event-thumb { filter: saturate(0.25) contrast(0.95); transition: filter 0.5s ease, transform 0.7s var(--ease-out); }
.event-card.is-past:hover .event-media img,
.event-row.is-past:hover .event-thumb { filter: none; }
.is-past .event-date { background: var(--cream-deep); color: var(--ink-soft); }
.event-card.is-past .event-media::after {
  content: "Terminé";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(34, 27, 58, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.event-card.is-past h3 { color: var(--ink-2); }
.event-row.is-past .event-when { color: var(--ink-soft); }
.event-row.is-past h3 { color: var(--ink-2); }
@media (max-width: 960px) {
  .events-section--past .events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .events-section--past .events-grid { grid-template-columns: 1fr; }
}

.event-media { display: block; }
.event-recap-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.35s var(--ease-spring);
}
.event-recap-link svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease-spring); }
.event-recap-link:hover { background: var(--violet); color: #fff; box-shadow: none; transform: translateY(-2px); }
.event-recap-link:hover svg { transform: translateX(4px); }
.events-section--past .event-recap-link { background: var(--cream-deep); }
.events-section--past .event-recap-link:hover { background: var(--violet); }

/* ---------- Pages souvenir ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 248, 240, 0.6);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.2s ease, transform 0.35s var(--ease-spring);
}
.back-link:hover { background: var(--white); transform: translateX(-3px); }
.recap-hero .container > div > .eyebrow { display: flex; width: max-content; }
.recap-hero h1 { max-width: 14ch; }
.recap-facts { display: grid; gap: 8px; margin: 22px 0 18px; }
.recap-facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.recap-facts svg { width: 20px; height: 20px; flex-shrink: 0; }
.recap-tag { background: rgba(255, 248, 240, 0.7); }
.recap-cover {
  width: min(360px, 100%);
  justify-self: center;
  rotate: 3deg;
  transition: rotate 0.5s var(--ease-spring);
}
.recap-cover:hover { rotate: 0deg; }
.recap-cover img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Couverture paysage (photo de groupe) : deux scotchs, pastille et note manuscrite */
.recap-cover-wrap {
  position: relative;
  justify-self: center;
  width: min(560px, 100%);
  margin: 20px 0 44px;
}
.recap-cover--wide { width: 100%; rotate: -2.5deg; }
.recap-cover--wide img { aspect-ratio: 3 / 2; }
.recap-cover--wide::before { left: 16%; transform: rotate(-8deg); }
.recap-cover--wide::after {
  content: "";
  position: absolute;
  top: -12px;
  right: 12%;
  width: 86px;
  height: 26px;
  transform: rotate(6deg);
  background: rgba(184, 204, 251, 0.85);
  box-shadow: 0 1px 2px rgba(34, 27, 58, 0.08);
  z-index: 1;
}
.recap-sticker {
  position: absolute;
  top: -30px;
  right: -26px;
  z-index: 2;
  display: grid;
  place-content: center;
  width: 108px;
  height: 108px;
  border-radius: var(--blob);
  background: var(--butter);
  box-shadow: var(--shadow-md);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  rotate: 12deg;
  transition: rotate 0.5s var(--ease-spring), scale 0.5s var(--ease-spring);
}
.recap-sticker strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 0.95;
}
.recap-sticker:hover { rotate: -4deg; scale: 1.06; }
.js .recap-sticker { animation: pop-in 0.9s var(--ease-spring) 0.45s both; }
.recap-scribble {
  position: absolute;
  left: -6px;
  bottom: -46px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--violet);
  rotate: -5deg;
}
.recap-scribble svg { width: 40px; height: 34px; transform: scaleY(-1) translateY(14px); }

.recap-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px 72px;
  align-items: start;
}
.recap-intro h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.recap-lead { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.recap-text { font-size: 1.1rem; line-height: 1.75; color: var(--ink-2); }
.recap-text h3 { font-size: 1.45rem; margin-top: 1.4em; }
.recap-soon {
  padding: 28px 32px;
  border: 2px dashed rgba(79, 60, 201, 0.3);
  border-radius: var(--r-lg);
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--violet);
}
@media (max-width: 900px) {
  .recap-layout { grid-template-columns: 1fr; }
  .recap-cover { width: min(280px, 80%); margin-top: 8px; }
  .recap-cover-wrap { width: min(440px, 92%); margin-top: 28px; }
  .recap-cover--wide { width: 100%; margin-top: 0; }
  .recap-sticker { width: 86px; height: 86px; top: -26px; right: -14px; font-size: 1.05rem; }
  .recap-sticker strong { font-size: 1.7rem; }
}

/* Galerie en mosaïque : les photos gardent leur format */
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery:not(:has(.gallery-item)) { display: none; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; }
.gallery-item a {
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--cream-deep);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; transition: transform 0.6s var(--ease-out); }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption { padding: 8px 4px 0; font-size: 0.9rem; color: var(--ink-soft); }
.gallery-empty {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--cream-deep);
}
.gallery-empty strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 650; }
.gallery-empty p { margin: 2px 0 0; color: var(--ink-soft); }
.gallery-empty a { color: var(--violet); font-weight: 700; border-bottom: 2px solid rgba(79, 60, 201, 0.3); }
.gallery:has(.gallery-item) + .gallery-empty { display: none; }

/* Visionneuse */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 56px 72px;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(26, 20, 46, 0.9); }
.lightbox[open], .lightbox[open]::backdrop { animation: lightbox-in 0.3s var(--ease-out); }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100%; }
.lightbox-figure img {
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - 160px);
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-figure figcaption { font-size: 0.98rem; color: rgba(255, 255, 255, 0.85); text-align: center; }
.lightbox-count { position: fixed; top: 22px; left: 24px; font-family: var(--font-hand); font-size: 1.3rem; color: var(--butter); }
.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.14);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.35s var(--ease-spring);
}
.lightbox-btn:hover { background: rgba(255, 248, 240, 0.28); transform: scale(1.08); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next,
.lightbox.is-single .lightbox-count { display: none; }
.lightbox :focus-visible { outline-color: var(--butter); }
@media (max-width: 640px) {
  .lightbox { padding: 64px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; margin-top: 0; }
}

/* ---------- Icône dans une bulle ---------- */
.blob-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--blob);
  background: var(--tone, var(--butter));
  color: var(--ink);
  transition: border-radius 0.6s var(--ease-out), transform 0.5s var(--ease-spring);
}
.blob-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Accueil : bloc application ---------- */
.app-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.app-showcase h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.app-features { display: grid; gap: 22px; margin: 36px 0; }
.app-feature { display: flex; gap: 18px; align-items: flex-start; }
.app-feature h3 { font-size: 1.2rem; margin: 4px 0 2px; }
.app-feature p { margin: 0; font-size: 0.98rem; }
.app-feature:hover .blob-icon { border-radius: var(--blob-2); transform: rotate(-8deg); }
.app-showcase-visual img { width: 100%; height: auto; }
.js .app-showcase-visual.reveal.is-visible { animation-name: float-in; animation-duration: 1.1s; }
@keyframes float-in {
  from { opacity: 0; translate: 0 40px; rotate: 3deg; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}
@media (max-width: 900px) {
  .app-showcase { grid-template-columns: 1fr; }
}

/* ---------- Le BDE : mission ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.split p { color: var(--ink-soft); }
.split .btn { margin-top: 12px; }
.photo-frame { position: relative; margin: 0; }
.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.photo-frame::before {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: 58%;
  aspect-ratio: 1;
  border-radius: var(--blob);
  background: var(--butter);
}
.photo-frame figcaption {
  position: absolute;
  right: 20px;
  bottom: -18px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--violet);
  transform: rotate(-3deg);
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 56px; }
  .photo-frame::before { left: -10px; bottom: -16px; }
}

/* ---------- Le BDE : valeurs ---------- */
.values {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.values-intro { position: sticky; top: 120px; }
.values-intro h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.values-intro p { color: var(--ink-soft); }
.value {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: 2px dashed var(--line);
}
.value:first-child { border-top: 0; padding-top: 4px; }
.value h3 { font-size: 1.55rem; margin: 6px 0 4px; }
.value p { color: var(--ink-soft); margin: 0; }
.value:hover .blob-icon { border-radius: var(--blob-2); transform: rotate(-8deg) scale(1.05); }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; gap: 24px; }
  .values-intro { position: static; }
}

/* ---------- Le BDE : pôles (mur coloré) ---------- */
.poles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.pole {
  --pole-ink: var(--tone-ink, var(--ink));
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 24px 24px 26px;
  border-radius: var(--r-lg);
  background: var(--tone);
  color: var(--pole-ink);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.poles > .pole:nth-child(even) { margin-top: 36px; }
.pole-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.pole-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--blob);
  background: rgba(255, 248, 240, 0.72);
  color: var(--ink);
  transition: border-radius 0.6s var(--ease-out), transform 0.5s var(--ease-spring);
}
.pole-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pole-num { font-family: var(--font-hand); font-size: 1.3rem; line-height: 1; opacity: 0.8; }
.pole h3 { margin: auto 0 6px; font-size: 1.5rem; color: inherit; }
.pole p { margin: 0; font-size: 0.97rem; color: inherit; opacity: 0.86; }
.pole:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px -24px color-mix(in srgb, var(--tone) 55%, #221B3A);
}
.pole:hover .pole-icon { border-radius: var(--blob-2); transform: rotate(-12deg) scale(1.08); }
.poles-note { margin: 48px 0 0; text-align: center; }
.poles-note a { border-bottom: 2px solid rgba(79, 60, 201, 0.3); transition: border-color 0.2s ease; }
.poles-note a:hover { border-color: var(--violet); }
@media (max-width: 960px) { .poles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .poles { grid-template-columns: 1fr; }
  .poles > .pole:nth-child(even) { margin-top: 0; }
  .pole { min-height: 0; padding: 20px 22px 22px; }
  .pole-top { margin-bottom: 16px; }
  .pole-icon { width: 52px; height: 52px; }
}

/* ---------- Le BDE : l'équipe ---------- */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px 30px;
}
.team-member { width: 198px; text-align: center; }
@media (max-width: 520px) {
  .team { gap: 44px 18px; }
  .team-member { width: calc(50% - 9px); }
  .team-member .polaroid figcaption { font-size: 1.3rem; }
}
.team-member .polaroid {
  rotate: var(--tilt, -2deg);
  transition: transform 0.45s var(--ease-spring), rotate 0.45s var(--ease-spring), box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}
.team-member:nth-child(2n) .polaroid { --tilt: 2.5deg; }
.team-member:nth-child(3n) .polaroid { --tilt: -1deg; }
.team-member:nth-child(2n) .polaroid::before { background: rgba(184, 204, 251, 0.85); transform: rotate(3deg); }
.team-member:nth-child(3n) .polaroid::before { background: rgba(255, 201, 225, 0.88); }
.team-member:hover .polaroid { rotate: 0deg; transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-member .polaroid figcaption { font-size: 1.6rem; }
.team-member .tag { margin-top: 20px; }
.team-member p { margin: 10px 0 0; font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Application : explorateur de fonctionnalités ---------- */
.explorer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.explorer-tabs { display: grid; gap: 8px; }
.explorer-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 16px 20px 16px 16px;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  text-align: left;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.explorer-tab:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.explorer-tab[aria-selected="true"] { background: var(--tone); box-shadow: none; }
.explorer-tab .blob-icon { background: var(--white); }
.explorer-tab[aria-selected="true"] .blob-icon { border-radius: var(--blob-2); transform: rotate(-6deg); }
.explorer-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
}
/* La description se déplie en douceur sur l'onglet actif */
.explorer-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.explorer-desc > span {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 0.98rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.explorer-tab[aria-selected="true"] .explorer-desc { grid-template-rows: 1fr; }
.explorer-tab[aria-selected="true"] .explorer-desc > span { opacity: 1; padding-top: 4px; transition-delay: 0.1s; }

.explorer-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 32px;
  border-radius: var(--r-xl);
  background: var(--stage, var(--butter));
  transition: background-color 0.5s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.explorer-stage::before {
  content: "";
  position: absolute;
  inset: 12% 14%;
  z-index: -1;
  border-radius: var(--blob);
  background: rgba(255, 248, 240, 0.45);
}
.explorer-panel {
  grid-area: 1 / 1;
  justify-self: stretch;
  display: flex;
  justify-content: center;
}
.explorer-panel[hidden] { display: none; }
.explorer-panel img {
  width: min(270px, 100%);
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.explorer-panel:not([hidden]) img { animation: panel-in 0.55s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px) rotate(-2deg) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.explorer-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0 16px;
  color: var(--ink-soft);
}
.explorer-extra strong { color: var(--ink); }
.explorer-extra .blob-icon { width: 46px; height: 46px; }
.explorer-extra .blob-icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; gap: 32px; }
  .explorer-stage { padding: 36px 24px; }
  .explorer-panel img { width: min(260px, 100%); }
}

/* ---------- Liste de documents (liens) ---------- */
.docs {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.docs .section-header { margin-bottom: 0; }
.doc-links { display: grid; gap: 6px; }
.doc-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px 16px 16px;
  border-radius: var(--r-lg);
  transition: background-color 0.25s ease, transform 0.35s var(--ease-spring);
}
.doc-link strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; line-height: 1.25; }
.doc-link span span { color: var(--ink-soft); font-size: 0.95rem; }
.doc-link:hover { background: var(--cream-deep); transform: translateX(4px); }
.doc-link:hover .blob-icon { border-radius: var(--blob-2); transform: rotate(-8deg); }
.doc-link:hover .row-arrow { background: var(--violet); color: #fff; transform: translateX(3px); }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Clubs & projets ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.showcase-grid--even { grid-template-columns: 1.15fr 1fr; }
.club-card {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.club-visual {
  display: grid;
  place-items: center;
  padding: 32px;
  min-height: 240px;
  background: #2b3767;
}
.club-visual img {
  width: 132px;
  height: 132px;
  border-radius: var(--r-lg);
  transition: transform 0.5s var(--ease-spring);
}
.club-card:hover .club-visual img { transform: rotate(-6deg) scale(1.05); }
.club-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 36px 32px; }
.club-body h3 { font-size: 1.8rem; margin: 10px 0 2px; }
.club-body p { color: var(--ink-soft); margin: 0; }
.club-meta { display: grid; gap: 6px; margin: 10px 0 18px; }
.club-meta li { display: flex; gap: 10px; align-items: center; font-size: 0.93rem; color: var(--ink-2); }
.club-meta li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: var(--blob);
  background: var(--coral);
}
.club-body .btn { margin-top: auto; }

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 36px 32px 32px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease-spring);
}
.project-card:hover .project-icon { transform: rotate(-8deg) scale(1.05); }
.project-icon img { width: 100%; height: 100%; }
.project-card h3 { font-size: 1.9rem; margin: 6px 0 0; }
.project-card p { color: var(--ink-soft); margin: 0; }
.project-author { font-family: var(--font-hand); font-size: 1.2rem; color: var(--violet) !important; margin-top: 4px !important; }
.project-author strong { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  color: var(--violet);
}
.project-cta svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-spring); }
.project-card:hover .project-cta svg { transform: translateX(5px); }

/* Emplacement libre « ton club / projet ici » */
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 36px 28px;
  border: 2px dashed rgba(79, 60, 201, 0.32);
  border-radius: var(--r-xl);
  text-align: center;
  color: var(--ink-soft);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.45s var(--ease-spring);
}
.slot-plus {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 8px;
  border-radius: var(--blob);
  background: var(--violet-soft);
  color: var(--violet);
  transition: transform 0.5s var(--ease-spring), background-color 0.3s ease, color 0.3s ease, border-radius 0.6s var(--ease-out);
}
.slot-plus svg { width: 26px; height: 26px; }
.slot-title { font-family: var(--font-hand); font-size: 1.7rem; font-weight: 400; color: var(--violet); line-height: 1.1; }
.slot span:last-child { max-width: 280px; font-size: 0.97rem; }
.slot:hover { background: var(--white); border-color: var(--violet); transform: translateY(-4px); }
.slot:hover .slot-plus { transform: rotate(90deg); background: var(--violet); color: #fff; border-radius: var(--blob-2); }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .club-card { grid-template-columns: 1fr; }
  .club-visual { min-height: 180px; }
  .club-body { padding: 28px 24px; }
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-main h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.contact-main > p { color: var(--ink-soft); max-width: 480px; }
.email-card {
  margin-top: 28px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.email-label { display: block; font-family: var(--font-hand); font-size: 1.2rem; color: var(--violet); }
.email-address {
  display: inline-block;
  margin: 2px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--butter), var(--butter)) no-repeat 0 92% / 100% 0.3em;
  transition: background-size 0.4s var(--ease-out);
}
.email-address:hover { background-size: 100% 0.9em; }
.email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-btn { position: relative; min-width: 196px; }
.copy-btn.is-copied { background: var(--leaf); color: var(--ink); box-shadow: none; }
.copy-btn svg { transition: transform 0.4s var(--ease-spring); }
.copy-btn.is-copied svg { transform: scale(1.15) rotate(-8deg); }

.contact-side { display: grid; gap: 16px; }
.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--tone);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s ease;
}
.contact-tile .blob-icon { background: rgba(255, 248, 240, 0.72); margin-bottom: 14px; }
.contact-tile h3 { font-size: 1.45rem; margin: 0; }
.contact-tile p { color: var(--ink-2); margin: 0 0 10px; }
.tile-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); border-bottom: 2px solid rgba(34, 27, 58, 0.25); transition: border-color 0.2s ease; }
.tile-link:hover { border-color: var(--ink); }
a.contact-tile:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--shadow-md); }
a.contact-tile:hover .tile-link { border-color: var(--ink); }
a.contact-tile:hover .blob-icon { border-radius: var(--blob-2); transform: rotate(-10deg); }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .email-card { padding: 26px 22px; }
}

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 56px;
  align-items: center;
  padding: 64px 64px;
  border-radius: var(--r-xl);
  background: var(--tone, var(--butter));
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--confetti) repeat 120px 20px / 420px;
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
  opacity: 0.8;
}
.cta-banner h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 0.3em; max-width: 18ch; }
.cta-banner p { color: var(--ink-2); margin: 0; max-width: 520px; font-size: 1.08rem; }
.cta-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cta-note {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--violet);
  transform: rotate(-5deg) translateX(-28px);
}
.cta-note svg { width: 40px; height: 34px; color: var(--violet); transform: translateY(12px); }
@media (max-width: 760px) {
  .cta-banner { grid-template-columns: 1fr; padding: 44px 28px; }
  .cta-action { align-items: flex-start; }
  .cta-note { transform: rotate(-4deg); }
}

/* ---------- Pages légales ---------- */
.legal-wrap { max-width: 820px; }
.legal-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: #FFF0C2;
  color: #5C4300;
  font-size: 0.95rem;
}
.legal-notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 12px; }
.legal-toc {
  margin-bottom: 56px;
  padding: 28px 32px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.legal-toc h2 { font-family: var(--font-hand); font-weight: 400; font-size: 1.5rem; color: var(--violet); margin-bottom: 12px; }
.legal-toc ol { list-style: decimal; padding-left: 22px; columns: 2; column-gap: 40px; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc li::marker { color: var(--ink-soft); font-weight: 600; }
.legal-toc a { color: var(--violet); font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-content h2 { font-size: 1.55rem; margin-top: 2.2em; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-2); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; }
.legal-content li::marker { color: var(--coral); }
.legal-content a { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .legal-toc { padding: 24px; }
  .legal-toc ol { columns: 1; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin: 24px var(--panel-inset) var(--panel-inset);
  padding: 76px 0 28px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 16px; font-size: 1.25rem; }
.footer-brand p { font-size: 0.95rem; max-width: 290px; }
.footer-col h4 { color: var(--butter); font-family: var(--font-hand); font-weight: 400; font-size: 1.35rem; letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.1);
  transition: background-color 0.2s ease, transform 0.35s var(--ease-spring);
}
.footer-social a:hover { background: var(--violet); transform: rotate(-10deg) scale(1.08); }
.footer-social svg { width: 18px; height: 18px; }
.site-footer :focus-visible { outline-color: var(--butter); }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Apparition au scroll : on anime opacity + translate uniquement,
   pour laisser transform / rotate libres pour les survols. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  animation: reveal-up 0.8s var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-up {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  box-shadow: var(--shadow-violet);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.4s var(--ease-spring), background-color 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--violet-deep); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--violet);
  color: #fff;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
