/* Les Traboulés · site
   Tokens repris du design system, couleurs alignées sur le logo final. */

:root {
  --rouge-100: #FFE4E1;
  --rouge-500: #F54343;
  --rouge-600: #E03535;
  --rouge-700: #C12B2B;
  --jaune-100: #FFF3CC;
  --jaune-500: #FECC32;
  --jaune-600: #EDB91A;
  --creme-200: #FBF1E1;
  --creme-300: #F2E5D1;
  --creme-500: #FFF7EC;
  --encre-300: #75706A;
  --encre-400: #4A4A4A;
  --encre-500: #111111;
  --blanc: #FFFFFF;

  --font: "Fredoka", "Trebuchet MS", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --arch: 999px 999px var(--radius-lg) var(--radius-lg);

  --shadow-card: 0 2px 0 rgba(17,17,17,.04), 0 10px 24px rgba(17,17,17,.06);
  --shadow-lift: 0 18px 36px rgba(17,17,17,.13);
  --shadow-sticker: 0 8px 18px rgba(17,17,17,.14);

  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(.22,.61,.36,1);

  --page-max: 1200px;
  --gutter: 24px;
  --section-gap: 136px;
  --control-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: var(--creme-500);
  color: var(--encre-500);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
::selection { background: var(--jaune-500); color: var(--encre-500); }
[data-lucide], svg.lucide { width: 20px; height: 20px; stroke-width: 2; flex: none; }
:focus-visible { outline: 2px solid var(--encre-500); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--encre-500); color: var(--creme-500); padding: 10px 18px; border-radius: var(--radius-pill); z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--page-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section-gap); }
.section--tight { padding-top: 112px; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 13px; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-300);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--rouge-500); }
.eyebrow--invert { color: rgba(255,247,236,.8); }
.eyebrow--invert::before { background: var(--jaune-500); }
.section__head--center .eyebrow, .modal .eyebrow { justify-content: center; }
.modal .eyebrow { justify-content: flex-start; }
.title {
  font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02;
  letter-spacing: -.025em; text-wrap: balance;
}

/* ---------- Boutons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--control-h); padding: 0 26px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease-bounce), background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn svg { transition: transform .25s var(--ease-bounce); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--rouge-500); color: var(--blanc); box-shadow: 0 6px 16px rgba(245,67,67,.28); }
.btn--primary:hover { background: var(--rouge-600); box-shadow: 0 10px 22px rgba(245,67,67,.34); }
.btn--ink { background: var(--encre-500); color: var(--creme-500); }
.btn--ink:hover { background: var(--encre-400); }
.btn--light { background: var(--creme-500); color: var(--encre-500); }
.btn--light:hover { background: var(--blanc); }
.btn--ghost { background: transparent; border-color: var(--encre-500); color: var(--encre-500); }
.btn--ghost:hover { background: var(--encre-500); color: var(--creme-500); }

/* ---------- Header ---------- */
.header { position: sticky; top: 14px; z-index: 50; padding: 0 var(--gutter); margin-top: 14px; }
.header__bar {
  max-width: var(--page-max); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  background: var(--blanc); border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  box-shadow: 0 1px 0 rgba(17,17,17,.04);
  transition: box-shadow .3s var(--ease-out), padding .3s var(--ease-out);
}
.header.is-scrolled .header__bar { box-shadow: var(--shadow-lift); }
.header__logo { display: block; transition: transform .25s var(--ease-bounce); }
.header__logo:hover { transform: rotate(-3deg) scale(1.04); }
.header__logo img { height: 50px; width: auto; }
.header__nav { display: flex; gap: 4px; margin-left: auto; }
.header__nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.header__nav a:hover { background: var(--creme-200); }
.header__nav a.is-active { background: var(--encre-500); color: var(--creme-500); }
.header__burger { display: none; }

/* ---------- Photo en arche ---------- */
.arch-frame { border-radius: var(--arch); overflow: hidden; background: var(--creme-300); aspect-ratio: 5 / 5.3; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.hero__media:hover .arch-frame img, .formats__media:hover .arch-frame img { transform: scale(1.04); }
.arch-frame--tall { aspect-ratio: 4 / 5; }
.arch-frame--tall img { object-position: 35% 30%; }
.hero .arch-frame img { object-position: 52% 40%; }

/* ---------- Stickers et bulles ---------- */
.sticker {
  position: absolute; display: grid; place-items: center; text-align: center;
  width: 150px; aspect-ratio: 1; border-radius: 50%;
  border: 6px solid var(--blanc); box-shadow: var(--shadow-sticker);
  transform: rotate(var(--tilt, 0deg));
  font-weight: 600; font-size: 14px; line-height: 1.12; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .4s var(--ease-bounce);
}
.sticker:hover { transform: rotate(calc(var(--tilt, 0deg) * -1)) scale(1.06); }
.sticker b { font-weight: 600; font-size: 1.28em; letter-spacing: 0; }
.sticker--jaune { background: var(--jaune-500); color: var(--encre-500); }
.sticker--jaune b { color: var(--rouge-500); }
.sticker--rouge { background: var(--rouge-500); color: var(--creme-500); }
.sticker--encre { background: var(--encre-500); color: var(--creme-500); }
.sticker--encre b { color: var(--jaune-500); }

.bubble {
  position: absolute; padding: 14px 22px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 18px; box-shadow: var(--shadow-sticker);
  transform: rotate(var(--tilt, 0deg));
}
.bubble::after {
  content: ""; position: absolute; top: -14px; right: 28px;
  border-style: solid; border-color: transparent transparent var(--blanc);
  border-width: 0 10px 14px;
}
.bubble--blanc { background: var(--blanc); }

.rays { fill: none; stroke: var(--rouge-500); stroke-width: 12; stroke-linecap: round; }

/* ---------- 1. Héros ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
  padding-top: 64px;
}
.hero__title {
  font-weight: 600; font-size: clamp(50px, 7vw, 92px); line-height: .96;
  letter-spacing: -.03em; color: var(--rouge-500);
}
.hero__title .line { display: block; animation: rise .8s var(--ease-bounce) both; }
.hero__title .line:nth-child(2) { animation-delay: .08s; }
.hero__title .line:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.underline { position: relative; display: inline-block; }
.underline svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .22em; overflow: visible; }
.underline path {
  fill: none; stroke: var(--encre-500); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw .7s .6s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--encre-400); max-width: 480px; text-wrap: pretty; }
.hero .btn-row { margin-top: 32px; }

/* Carte « prochain rendez-vous » */
.next {
  margin-top: 36px; width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--blanc); border: 0; border-radius: var(--radius-lg); padding: 12px 14px 12px 12px;
  font: inherit; color: inherit; cursor: pointer; box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-out);
}
.next:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.next__date {
  flex: none; width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--jaune-500);
  display: grid; place-content: center; text-align: center; line-height: 1;
}
.next__date b { font-size: 26px; font-weight: 600; }
.next__date span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.next__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge-500); }
.next__title { font-weight: 600; font-size: 18px; line-height: 1.2; }
.next__meta { font-size: 14px; color: var(--encre-400); }
.next__go {
  margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--rouge-500); color: var(--blanc); display: grid; place-items: center;
  transition: transform .25s var(--ease-bounce);
}
.next:hover .next__go { transform: translateX(3px); }

.hero__media { position: relative; animation: rise .9s .1s var(--ease-bounce) both; }
.hero__sticker { left: -40px; bottom: 40px; animation: pop-in .6s .7s var(--ease-bounce) both; }
.hero__bubble { right: -12px; bottom: -22px; animation: pop-in .6s .85s var(--ease-bounce) both; }
.hero__rays { position: absolute; right: -34px; top: 14px; width: 64px; }
@keyframes pop-in { from { opacity: 0; scale: .6; } }

/* ---------- 2. Agenda ---------- */
.agenda { padding-top: 152px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section__head--center { justify-content: center; text-align: center; }
.section__aside { max-width: 360px; color: var(--encre-400); font-size: 17px; }

.events { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.events__side { display: grid; gap: 24px; }
.event {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--blanc); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-out);
}
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.event__top { display: flex; align-items: center; gap: 18px; }
.event__date {
  flex: none; width: 72px; height: 72px; border-radius: var(--radius-md);
  background: var(--jaune-500); display: grid; place-content: center; text-align: center; line-height: 1;
}
.event__date b { font-size: 30px; font-weight: 600; }
.event__date span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.event__type { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-300); }
.event__day { font-weight: 500; font-size: 17px; margin-top: 4px; }
.event__title { font-size: 26px; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
.event__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--encre-400); font-size: 15px; }
.event__meta span { display: flex; align-items: center; gap: 8px; }
.event__meta svg { width: 18px; height: 18px; color: var(--rouge-500); }
.event__foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.event__ics {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500;
  color: var(--encre-400); text-decoration: none; border-radius: var(--radius-pill); padding: 4px 8px;
}
.event__cal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.event__ics--alt { font-size: 14px; opacity: .8; }
.event__ics--alt::before { content: "·"; margin-right: 8px; }
.event__ics:hover { color: var(--encre-500); text-decoration: underline; text-underline-offset: 4px; }
.event__ics svg { width: 18px; height: 18px; }

/* Petites cartes : format horizontal compact */
.events__side .event { padding: 24px; gap: 16px; }
.events__side .event__title { font-size: 22px; }
.events__side .event__foot { flex-direction: row; justify-content: space-between; }
.events__side .event__foot .btn { width: auto; height: 48px; padding: 0 22px; font-size: 15px; }
.events__side .event__cal { flex-direction: column; align-items: flex-end; gap: 2px; }
.events__side .event__ics--alt::before { content: none; }
.events__side .event__date { width: 64px; height: 64px; background: var(--creme-200); }
.events__side .event__date b { font-size: 26px; }

/* Carte groupe WhatsApp et carte « prochainement » */
.event--group { gap: 14px; }
.group__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--jaune-500); display: grid; place-items: center; }
.group__icon svg { width: 26px; height: 26px; }
.event--group .event__pitch { color: var(--encre-400); font-size: 16px; }
.event--group .event__foot { margin-top: 8px; }
.event--soon { background: transparent; box-shadow: none; border: 2px dashed var(--creme-300); padding: 22px 24px; gap: 6px; }
.event--soon:hover { transform: none; box-shadow: none; }
.event--soon .event__pitch { color: var(--encre-400); font-size: 15px; }

/* Carte vedette : rouge plein */
.event--featured { background: var(--rouge-500); color: var(--creme-500); padding: 40px; gap: 24px; position: relative; overflow: hidden; }
.event--featured::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 230px;
  background: url("assets/logo/mark-creme.svg") no-repeat center / contain; opacity: .12; pointer-events: none;
}
.event--featured .event__date { width: 96px; height: 96px; background: var(--jaune-500); color: var(--encre-500); }
.event--featured .event__date b { font-size: 42px; }
.event--featured .event__type { color: var(--jaune-500); }
.event--featured .event__title { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.025em; }
.event--featured .event__pitch { font-size: 18px; line-height: 1.5; max-width: 440px; opacity: .95; }
.event--featured .event__meta { color: var(--creme-500); font-size: 16px; }
.event--featured .event__meta svg { color: var(--jaune-500); }
.event--featured .event__ics { color: rgba(255,247,236,.85); }
.event--featured .event__ics:hover { color: var(--blanc); }
.event--featured .btn--light { box-shadow: 0 8px 18px rgba(17,17,17,.14); }

/* ---------- 3. Formats ---------- */
.formats { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.formats__media { position: relative; max-width: 460px; }
.formats__sticker { right: -36px; top: 48px; width: 136px; }
.formats__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.format {
  background: var(--blanc); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-out);
}
.format:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.format__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--rouge-100); color: var(--rouge-500);
  display: grid; place-items: center; transition: transform .35s var(--ease-bounce);
}
.format:hover .format__icon { transform: rotate(-10deg) scale(1.08); }
.format__icon--jaune { background: var(--jaune-500); color: var(--encre-500); }
.format__icon--encre { background: var(--encre-500); color: var(--creme-500); }
.format__icon svg { width: 26px; height: 26px; }
.format h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
.format p { margin-top: 6px; color: var(--encre-400); font-size: 15px; line-height: 1.5; }

/* ---------- 4. Chiffres ---------- */
.stats {
  margin-top: var(--section-gap);
  background: var(--encre-500); color: var(--creme-500); border-radius: var(--radius-xl);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 56px 24px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 32px; }
.stat + .stat { border-left: 2px solid rgba(255,247,236,.14); }
.stat__value { font-size: clamp(56px, 7vw, 96px); font-weight: 600; line-height: .9; letter-spacing: -.035em; color: var(--jaune-500); }
.stat__label { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.stat p { font-size: 15px; color: rgba(255,247,236,.68); max-width: 260px; margin-top: 4px; }

/* ---------- 5. Esprit ---------- */
.esprit {
  position: relative; overflow: hidden;
  background: var(--rouge-500); color: var(--creme-500);
  border-radius: var(--radius-xl); padding: 88px 72px;
}
.esprit__mark { position: absolute; right: -70px; bottom: -130px; width: 360px; opacity: .14; }
.esprit__title { color: var(--creme-500); position: relative; }
.esprit__lead { position: relative; margin-top: 24px; max-width: 640px; font-size: 21px; line-height: 1.5; }
.esprit__pillars { position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { border-top: 2px solid rgba(255,247,236,.35); padding-top: 24px; }
.pillar svg { width: 30px; height: 30px; color: var(--jaune-500); }
.pillar h3 { margin-top: 16px; font-size: 23px; font-weight: 600; }
.pillar p { margin-top: 6px; opacity: .92; }

/* ---------- 6. Étapes, reliées par un chemin ---------- */
.steps-wrap { position: relative; }
.steps__path {
  position: absolute; left: 12%; right: 12%; top: 40px; width: 76%; height: 40px; overflow: visible;
}
.steps__path path { fill: none; stroke: var(--encre-500); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .45; }
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.step__n {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--encre-500); color: var(--creme-500); font-size: 38px; font-weight: 600;
  border: 6px solid var(--creme-500); box-shadow: var(--shadow-sticker);
  transition: transform .35s var(--ease-bounce);
}
.step:hover .step__n { transform: rotate(-8deg) scale(1.06); }
.step:nth-child(2) .step__n { background: var(--rouge-500); color: var(--blanc); }
.step:nth-child(3) .step__n { background: var(--jaune-500); color: var(--encre-500); }
.step h3 { margin-top: 24px; font-size: 23px; font-weight: 600; line-height: 1.2; }
.step p { margin-top: 8px; color: var(--encre-400); max-width: 300px; }

/* ---------- 7. FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__more { margin-top: 20px; color: var(--encre-400); }
.faq__more a { color: var(--encre-500); font-weight: 600; text-underline-offset: 4px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--blanc); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease-out); }
.qa[open] { box-shadow: var(--shadow-lift); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px; font-weight: 600; font-size: 19px; line-height: 1.3; border-radius: var(--radius-lg);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg {
  width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--creme-200);
  transition: transform .3s var(--ease-bounce), background-color .2s var(--ease-out), color .2s;
}
.qa[open] summary svg { transform: rotate(45deg); background: var(--rouge-500); color: var(--blanc); }
.qa p { padding: 0 28px 26px; color: var(--encre-400); max-width: 620px; }

/* ---------- 8. Rejoindre ---------- */
.join {
  background: var(--jaune-500); border-radius: var(--radius-xl);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding: 72px;
}
.join__text p:not(.eyebrow) { margin-top: 20px; font-size: 19px; max-width: 520px; }
.join .eyebrow { color: rgba(17,17,17,.7); }
.join .eyebrow::before { background: var(--encre-500); }
.join .btn-row { margin-top: 32px; }
.join__media { position: relative; }
.join__media img { border-radius: var(--arch); aspect-ratio: 1; object-fit: cover; object-position: 40% 0%; width: 100%; border: 6px solid var(--blanc); box-shadow: var(--shadow-sticker); }
.join__sticker { left: -34px; bottom: -18px; width: 124px; }

/* ---------- Footer ---------- */
.footer {
  margin: var(--section-gap) 0 24px;
  background: var(--encre-500); color: var(--creme-500);
  border-radius: var(--radius-xl); padding: 40px 48px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center;
}
.footer img { height: 56px; width: auto; }
.footer__tag { color: rgba(255,247,236,.75); max-width: 280px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--jaune-500); }
.footer__legal { grid-column: 1 / -1; font-size: 14px; color: rgba(255,247,236,.55); border-top: 1px solid rgba(255,247,236,.14); padding-top: 20px; }

/* ---------- CTA fixe mobile ---------- */
.dock { display: none; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__veil { position: absolute; inset: 0; background: rgba(17,17,17,.55); animation: fade .25s var(--ease-out); }
@keyframes fade { from { opacity: 0; } }
.modal__box {
  position: relative; width: 100%; max-width: 500px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--creme-500); border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow-lift); animation: pop .4s var(--ease-bounce);
}
@keyframes pop { from { transform: scale(.92) translateY(16px); opacity: 0; } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--creme-200); cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease-bounce); }
.modal__close:hover { transform: rotate(90deg); }
.modal__title { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: var(--rouge-500); padding-right: 40px; }
.modal__event { background: var(--blanc); border-radius: var(--radius-md); padding: 14px 18px; font-weight: 500; line-height: 1.9; }
.modal__event svg { width: 17px; height: 17px; color: var(--rouge-500); vertical-align: -3px; margin-right: 8px; }
#join-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field input {
  height: var(--control-h); border-radius: var(--radius-pill); border: 2px solid var(--creme-300);
  background: var(--blanc); padding: 0 20px; font: 400 16px var(--font); color: var(--encre-500);
  transition: border-color .2s var(--ease-out);
}
.field input:hover { border-color: var(--creme-400, #E4D3BA); }
.field input:focus { outline: none; border-color: var(--encre-500); }
.field input[aria-invalid="true"] { border-color: var(--rouge-500); }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 2px solid var(--creme-300);
  background: var(--blanc); font: 500 15px var(--font); color: var(--encre-500); cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease-bounce);
}
.chip:hover { border-color: var(--encre-500); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--encre-500); border-color: var(--encre-500); color: var(--creme-500); }
.form__error { color: var(--rouge-700); font-weight: 500; }
.form__note { text-align: center; font-size: 14px; color: var(--encre-300); margin-top: -6px; }
.modal__done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 12px 0; }
.modal__later { background: none; border: 0; font: 500 15px var(--font); color: var(--encre-400); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 8px; }
.modal__done img { animation: pop-in .6s var(--ease-bounce); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-bounce) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.event.reveal.is-in:hover, .format.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0ms; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  :root { --section-gap: 104px; }
  .hero, .formats, .join, .faq { grid-template-columns: 1fr; }
  .hero { gap: 64px; padding-top: 48px; }
  .hero__media { max-width: 520px; margin: 0 auto; width: 100%; }
  .formats__media { margin: 0 auto; width: 100%; }
  .events { grid-template-columns: 1fr; }
  .events__side { grid-template-columns: 1fr 1fr; }
  .esprit { padding: 64px 48px; }
  .join { padding: 56px 48px; }
  .join__media { max-width: 420px; }
  .faq { gap: 32px; }
  .faq__head { position: static; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header__nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; gap: 4px; background: var(--blanc); border-radius: var(--radius-lg);
    padding: 12px; box-shadow: var(--shadow-lift); display: none;
  }
  .header__nav.is-open { display: flex; animation: pop .3s var(--ease-bounce); }
  .header__nav a { padding: 14px 18px; font-size: 18px; }
  .header__burger {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--creme-200); cursor: pointer; color: var(--encre-500);
  }
  .header__cta { margin-left: auto; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { align-items: center; }
  .events__side, .esprit__pillars { grid-template-columns: 1fr; }
  .formats__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps__path { display: none; }
  .stats { grid-template-columns: 1fr; padding: 16px 24px; }
  .stat { padding: 32px 0; }
  .stat + .stat { border-left: 0; border-top: 2px solid rgba(255,247,236,.14); }

  .dock {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    transform: translateY(140%); transition: transform .4s var(--ease-bounce);
  }
  .dock.is-visible { transform: none; }
  .dock .btn { box-shadow: var(--shadow-lift), 0 0 0 5px var(--creme-500); }
  .footer { margin-bottom: 96px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --section-gap: 88px; }
  body { font-size: 16px; }
  .agenda { padding-top: 112px; }
  .section--tight { padding-top: 88px; }
  .header__bar { padding-left: 16px; gap: 10px; }
  .header__logo img { height: 42px; }
  .btn-row .btn { width: 100%; }
  .hero__lead { font-size: 18px; }
  .next__title { font-size: 16px; }
  .next__meta { font-size: 13px; }
  .hero__sticker { left: -8px; bottom: 24px; width: 116px; font-size: 11px; }
  .hero__bubble { right: 4px; font-size: 16px; }
  .hero__rays { right: -6px; width: 44px; }
  .event { padding: 24px; }
  .event--featured { padding: 28px 24px; }
  .event--featured .event__date { width: 80px; height: 80px; }
  .events__side .event__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .events__side .event__foot .btn { width: 100%; }
  .event__ics { justify-content: center; }
  .events__side .event__cal { align-items: center; }
  .formats__sticker { right: -4px; width: 110px; font-size: 12px; }
  .esprit { padding: 48px 24px; border-radius: var(--radius-lg); }
  .esprit__lead { font-size: 18px; }
  .esprit__mark { width: 200px; right: -30px; bottom: -40px; opacity: .1; }
  .qa summary { padding: 20px; font-size: 17px; }
  .qa p { padding: 0 20px 22px; }
  .join { padding: 40px 24px; border-radius: var(--radius-lg); }
  .join__sticker { left: -6px; width: 104px; font-size: 12px; }
  .footer { padding: 32px 24px; border-radius: var(--radius-lg); }
  .modal { padding: 0; place-items: end center; }
  .modal__box { padding: 32px 20px 24px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92dvh; }
}
