/* ==========================================================================
   GREAT YOUTH — Design System
   Editorial · Caribbean · Cream paper & ink hairlines
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Forum&family=Lora:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600&display=swap');

/* --- Tokens ---------------------------------------------------------------- */
:root {
  /* Palette */
  --cream: #F7F1E3;
  --cream-2: #EEE6D2;
  --ink: #1A1A1A;
  --ink-soft: #2a2926;
  --red: #B5201A;
  --red-deep: #8C1812;
  --muted: #7A6F5C;
  --hairline: rgba(26, 26, 26, 0.18);
  --hairline-strong: #1A1A1A;

  /* Typography */
  --font-display: 'Forum', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Poppins', system-ui, sans-serif;

  /* Scale */
  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.5rem);
  --step-5: clamp(3.5rem, 2.4rem + 5vw, 7rem);
  --step-6: clamp(4.5rem, 2.5rem + 9vw, 12rem);

  /* Spacing */
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 8rem);

  /* Containers */
  --max: 1440px;
  --max-text: 68ch;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.06;
  mix-blend-mode: multiply;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select, button { font: inherit; color: inherit; }

::selection { background: var(--red); color: var(--cream); }

/* --- Typography ----------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.92;
}
.serif-italic {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
}
.label, .eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
}

/* --- Layout primitives ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--alt { background: var(--cream-2); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--red { background: var(--red); color: var(--cream); }

.hairline { border-top: 1px solid var(--hairline-strong); }
.hairline-soft { border-top: 1px solid var(--hairline); }

/* Section index header: "01 — Le constat" with hairline */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1.2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--red);
  font-feature-settings: "lnum";
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
  justify-self: end;
  text-align: right;
}
.section--ink .section-head,
.section--red .section-head { border-bottom-color: rgba(247, 241, 227, 0.4); }
.section--ink .section-num,
.section--red .section-num { color: var(--cream); }

/* --- Navigation ----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 227, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand__name { letter-spacing: 0.05em; }
.brand__sep { color: var(--muted); margin-inline: 0.45rem; font-size: 0.8rem; }
.brand__city {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.86rem;
}
.nav__links a {
  position: relative;
  color: var(--ink);
  padding-block: 0.3rem;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover { color: var(--red); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--red); }

/* Mobile nav */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 24px; }
.nav__toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 64px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 2.5rem var(--gutter);
    transform: translate3d(0, -110%, 0);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.4s;
    border-top: 1px solid var(--hairline);
    visibility: hidden;
    overflow-y: auto;
  }
  .nav__links.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
  .nav__links a {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1.4;
    border-bottom: 1px solid var(--hairline);
    width: 100%;
    padding-block: 0.8rem;
  }
  .nav__links a::after { display: none; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.05rem 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--on-red {
  background: var(--cream);
  color: var(--red);
  border-color: var(--cream);
}
.btn--on-red:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn__arrow {
  display: inline-block;
  width: 1.2em;
  transition: transform 0.25s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.25s ease;
}
.link-arrow:hover { color: var(--red); border-bottom-color: var(--red); gap: 0.8rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  min-height: min(900px, calc(100svh - 64px));
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }
}
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}
.hero__eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--red);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-6);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.hero__title em {
  font-style: italic;
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 400;
}
.hero__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  align-items: center;
}
.hero__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin-inline: auto;
}
.hero__mark svg { width: 100%; height: 100%; }
.hero__mark::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}
.hero__mark::after {
  content: "";
  position: absolute;
  inset: -2%;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

/* Hero meta band */
.hero__meta {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline-strong);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 700px) {
  .hero__meta { grid-template-columns: repeat(4, 1fr); }
}
.hero__meta span strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.2rem;
}

/* --- Page header (non-home) ----------------------------------------------- */
.page-head {
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--hairline-strong);
}
.page-head__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
}
@media (min-width: 900px) {
  .page-head__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.page-head__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.page-head__title em {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--red);
}
.page-head__lead {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
}
.page-head__crumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.page-head__crumb::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--red);
}
.page-head__crumb span {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- "Le constat" editorial spread ---------------------------------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .editorial-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.editorial-body p {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  max-width: var(--max-text);
}
.editorial-body p:last-child { margin-bottom: 0; }
.editorial-body strong { color: var(--red); font-weight: 700; }
.editorial-body .dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  line-height: 0.85;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--red);
}

.diagram {
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--hairline-strong);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.diagram__nodes {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2vw, 1.4rem);
}
.diagram__node {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.05;
  position: relative;
  padding-left: 2.5rem;
}
.diagram__node::before {
  content: counter(node, decimal-leading-zero);
  counter-increment: node;
  position: absolute;
  left: 0; top: 0.3em;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--red);
}
.diagram__nodes { counter-reset: node; }
.diagram__node + .diagram__node {
  padding-top: clamp(0.8rem, 2vw, 1.4rem);
  border-top: 1px solid var(--hairline);
}
.diagram__arrow {
  position: absolute;
  left: 12px;
  top: -0.6em;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--muted);
}
.diagram__caption {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

/* --- Objectifs grid ------------------------------------------------------- */
.objectifs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline-strong);
  border-left: 1px solid var(--hairline-strong);
}
@media (min-width: 720px) { .objectifs { grid-template-columns: 1fr 1fr; } }
.objectif {
  padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--cream);
  position: relative;
  transition: background 0.3s ease;
  min-height: 280px;
}
.objectif:hover { background: var(--cream-2); }
.objectif:hover .objectif__icon { color: var(--red); transform: rotate(-6deg); }
.objectif__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.objectif__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.objectif__icon {
  width: 56px; height: 56px;
  color: var(--ink);
  transition: color 0.3s ease, transform 0.4s ease;
}
.objectif__icon svg { width: 100%; height: 100%; }
.objectif__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.objectif__body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --- CTA banner ----------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-banner__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-banner__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.cta-banner__title em {
  font-family: var(--font-body);
  font-style: italic;
}
.cta-banner__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--step-1);
  margin-top: 1.5rem;
  max-width: 36ch;
  opacity: 0.92;
}
.cta-banner__action {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}
@media (min-width: 900px) { .cta-banner__action { align-items: flex-end; } }
.cta-banner__meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.78;
}

/* Decorative big number behind banner */
.cta-banner__bigmark {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(14rem, 30vw, 28rem);
  line-height: 0.8;
  color: rgba(247, 241, 227, 0.07);
  pointer-events: none;
  user-select: none;
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 241, 227, 0.2);
}
@media (min-width: 800px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer__mark {
  width: 80px;
  height: 80px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
}
.footer__brand-name span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, 0.65);
  margin-top: 0.4rem;
}
.footer__col h4 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, 0.65);
  margin-bottom: 1.2rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__col a:hover { color: var(--red); border-bottom-color: var(--red); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.8rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, 0.55);
}
@media (min-width: 600px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__ribbon {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin-block: 2.5rem;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(247, 241, 227, 0.14);
}

/* --- Editorial label/content grid ---------------------------------------- */
.def-list { display: grid; gap: 0; }
.def-list__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--hairline-strong);
}
@media (min-width: 800px) {
  .def-list__row {
    grid-template-columns: minmax(160px, 0.6fr) minmax(0, 2.4fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}
.def-list__row:first-child { border-top: 1px solid var(--hairline-strong); }
.def-list__label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.45rem;
}
.def-list__label span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.2rem;
}
.def-list__content {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}
.def-list__content p + p { margin-top: 0.8rem; }
.def-list__content ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.def-list__content li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--step-0);
}
.def-list__content li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 14px; height: 1px;
  background: var(--red);
}

/* --- Timeline / phases --------------------------------------------------- */
.timeline {
  display: grid;
  gap: 0;
  counter-reset: phase;
}
.phase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline-strong);
  position: relative;
  counter-increment: phase;
}
@media (min-width: 800px) {
  .phase {
    grid-template-columns: 100px 1fr 1.3fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}
.phase:last-child { border-bottom: 1px solid var(--hairline-strong); }
.phase__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--red);
}
.phase__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.phase__duration {
  display: block;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem;
}
.phase__body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- Plan d'action table -------------------------------------------------- */
.action-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--step-0);
  text-align: left;
}
.action-table thead {
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
}
.action-table th {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.2rem 1rem;
  text-align: left;
}
.action-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  line-height: 1.5;
}
.action-table tr:hover td { background: var(--cream-2); }
.action-table .col-desc {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.15;
  color: var(--ink);
  min-width: 220px;
}
.action-table .col-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Mobile: action table → cards */
@media (max-width: 800px) {
  .action-table thead { display: none; }
  .action-table, .action-table tbody, .action-table tr, .action-table td { display: block; width: 100%; }
  .action-table tr {
    border-top: 1px solid var(--hairline-strong);
    padding-block: 1.5rem;
  }
  .action-table tr:last-child { border-bottom: 1px solid var(--hairline-strong); }
  .action-table td { padding: 0.5rem 0; border: 0; }
  .action-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
  }
}

/* --- Team grid ----------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline-strong);
}
@media (min-width: 700px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--hairline-strong);
  border-right: 1px solid var(--hairline-strong);
}
.member:last-child { border-right: none; }
@media (min-width: 700px) {
  .member:nth-child(2n) { border-right: none; }
}
@media (min-width: 1100px) {
  .member:nth-child(2n) { border-right: 1px solid var(--hairline-strong); }
  .member:nth-child(3n) { border-right: none; }
}
.member__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red);
}
.member__info { display: flex; flex-direction: column; gap: 0.4rem; }
.member__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.05;
}
.member__role {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.member__bio {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --- Forms --------------------------------------------------------------- */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 1000px) {
  .form-wrap { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
}
.form-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 999px) { .form-side { position: static; } }
.form-side__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.form-side__body {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-soft);
}
.form-side__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--hairline-strong);
  padding-top: 1.5rem;
}
.form-side__list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.form-side__list li::before {
  content: "↳";
  color: var(--red);
  font-family: var(--font-display);
}

.form {
  display: grid;
  gap: 1.5rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  position: relative;
}
.field label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field label .req { color: var(--red); }

.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.7rem 0;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--red); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
  background-size: 12px;
  padding-right: 2rem;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-style: italic;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
}
.field--check input {
  appearance: none;
  width: 22px; height: 22px;
  border: 1px solid var(--ink);
  background: var(--cream);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  border-radius: 2px;
}
.field--check input:checked { background: var(--red); border-color: var(--red); }
.field--check input:checked::after {
  content: "";
  position: absolute;
  top: 3px; left: 7px;
  width: 6px; height: 10px;
  border-right: 1.5px solid var(--cream);
  border-bottom: 1.5px solid var(--cream);
  transform: rotate(45deg);
}
.field--check label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.form__legal {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  max-width: 36ch;
}

.form-message {
  display: none;
  padding: 2rem;
  border: 1px solid var(--ink);
  background: var(--cream-2);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.5;
  text-align: center;
}
.form-message.is-visible { display: block; }
.form-message .symbol {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 0.8rem;
}

/* --- Contact grid -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline-strong);
}
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--hairline-strong);
}
@media (min-width: 800px) {
  .contact-card { padding: clamp(2rem, 4vw, 3rem); }
  .contact-card:nth-child(odd) { border-right: 1px solid var(--hairline-strong); padding-left: 0; }
  .contact-card:nth-child(even) { padding-right: 0; }
}
.contact-card__label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.contact-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.contact-card__value a { transition: color 0.2s ease; }
.contact-card__value a:hover { color: var(--red); }

/* --- Reveal animations --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* Hero kinetic load */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-mark-in {
  from { opacity: 0; transform: scale(0.85) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.hero__title,
.hero__sub,
.hero__ctas,
.hero__eyebrow,
.hero__meta {
  animation: hero-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.15s; }
.hero__sub { animation-delay: 0.35s; }
.hero__ctas { animation-delay: 0.5s; }
.hero__meta { animation-delay: 0.65s; }
.hero__mark { animation: hero-mark-in 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS — < 720px
   ========================================================================== */

@media (max-width: 720px) {
  :root {
    --gutter: 1.25rem;
    --section-pad: 3.5rem;
  }

  /* Empêche iOS de zoomer sur focus input — 16px minimum */
  input, textarea, select { font-size: 16px !important; }

  /* Nav : alléger le brand pour libérer la place du burger */
  .nav__inner { gap: 0.75rem; padding-block: 0.85rem; }
  .brand { font-size: 1rem; gap: 0.5rem; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__sep,
  .brand__city { display: none; }

  /* Touch targets confortables */
  .nav__toggle { width: 44px; height: 44px; }
  .btn { padding: 1rem 1.4rem; min-height: 48px; }

  /* ── FIX 1 : burger menu open state ───────────────────────────────────────
     Replace 2.5rem top padding (creates a blank gap before first item) with
     per-item padding that also provides the left-border active indicator.
     Each link: font 2.4rem × line-height 1.4 + 2×1rem padding ≈ 56px tap target. */
  .nav__links {
    padding-block: 0;
    padding-inline: 0;
    border-top: none;
  }
  .nav__links a {
    padding-block: 1rem;
    padding-inline: var(--gutter);
    border-bottom: 1px solid var(--hairline);
    border-left: 3px solid transparent;
  }
  .nav__links a:first-child { border-top: 1px solid var(--hairline); }
  .nav__links a.is-active { border-left-color: var(--red); }

  /* Hero plus aéré sur mobile */
  .hero {
    min-height: auto;
    padding-block: 2rem 3rem;
  }
  .hero__title { font-size: clamp(3.6rem, 16vw, 5.5rem); }
  .hero__sub { font-size: 1.05rem; }
  .hero__mark { max-width: 280px; }
  .hero__mark::before,
  .hero__mark::after { display: none; }

  /* ── FIX 2 : hero eyebrow — prevent wrapping ──────────────────────────────
     .hero__eyebrow is a flex row with a ::before red line + .label span.
     The label "MANIFESTE · 2026 — 2028" wraps at 320px because the flex
     container allows the span to expand then wrap. Force single line.        */
  .hero__eyebrow { flex-wrap: nowrap; overflow: hidden; }
  .hero__eyebrow .label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;                     /* allow shrink inside flex             */
  }

  /* ── FIX 3 : page-head crumb — prevent 2-line wrap ───────────────────────
     "CANDIDATURE — RECRUTEMENT OUVERT" (and similar) wraps at 390px.
     It's a flex row (.page-head__crumb::before + span) — clip the span.     */
  .page-head__crumb { overflow: hidden; }
  .page-head__crumb span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  /* Meta hero : 2 colonnes au lieu de 4 */
  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
    margin-top: 2.5rem;
  }
  .hero__meta span strong { font-size: 1.2rem; }

  /* Section header : numéro et titre alignés à gauche */
  .section-head {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
  }
  .section-num { font-size: 2.4rem; }
  .section-title {
    justify-self: start;
    text-align: left;
    font-size: 1.9rem;
  }

  /* Page head allégé */
  .page-head { padding-block: 3rem 2.5rem; }
  .page-head__title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .page-head__lead { font-size: 1rem; }

  /* ── FIX 4 : pullquote — indent body text to clear the quote mark ─────────
     The `"` pseudo-element sits at left: 0. Without padding-left on the
     pullquote, it overlaps the first word of the quote text.                 */
  .pullquote {
    font-size: 1.4rem;
    padding-block: 1.8rem;
    padding-left: 2.6rem;
  }
  .pullquote::before {
    font-size: 4rem;
    top: 1.2rem;
    left: 0;
    line-height: 1;
  }

  /* CTA banner : titre plus lisible, big mark plus discret */
  .cta-banner__title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .cta-banner__sub { font-size: 1rem; }
  .cta-banner__bigmark {
    font-size: 14rem;
    right: -15%;
    opacity: 0.5;
  }
  .cta-banner__action { width: 100%; }
  .cta-banner__action .btn { width: 100%; justify-content: center; }

  /* Timeline phases : numéro bien visible */
  .phase {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-block: 1.8rem;
  }
  .phase__num { font-size: 2.2rem; margin-bottom: 0.4rem; }
  .phase__title { font-size: 1.5rem; }

  /* Editorial drop cap */
  .editorial-body .dropcap::first-letter { font-size: 3.5em; }
  .editorial-body p { font-size: 1.05rem; }

  /* Def list */
  .def-list__row { padding-block: 1.4rem; gap: 0.4rem; }
  .def-list__label span { font-size: 1.1rem; }
  .def-list__content { font-size: 1rem; }

  /* Objectifs */
  .objectif { min-height: auto; padding: 1.8rem 1.4rem; gap: 1rem; }
  .objectif__title { font-size: 1.4rem; }

  /* Ribbon */
  .ribbon { font-size: 1.6rem; }

  /* Footer */
  .footer__ribbon { font-size: clamp(2.4rem, 11vw, 4rem); margin-block: 2rem; }
  .footer__mark { width: 60px; height: 60px; }

  /* ── FIX 5 : form labels — drop uppercase so long labels don't wrap ───────
     "POURQUOI TU VEUX REJOINDRE GREAT YOUTH ?" at 0.7rem uppercase + 0.22em
     letter-spacing wraps to 3 lines. Sentence-case with tighter tracking
     reads clearly at small sizes and stays on 1–2 lines maximum.            */
  .field label {
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }
  .field label .req { color: var(--red); }

  /* ── FIX 6 : form inputs — comfortable tap height ≥ 44px ─────────────────*/
  .field input,
  .field textarea,
  .field select { padding: 0.9rem 0; }

  /* ── FIX 7 : submit button — prevent wrapping at 320px ───────────────────
     "ENVOYER MA CANDIDATURE →" with letter-spacing fits on one line only if
     we tighten tracking slightly and enforce no-wrap on the button text.     */
  .form__submit {
    flex-direction: column;
    align-items: stretch;
  }
  .form__submit .btn {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    padding-inline: 1rem;
  }
  .form__legal { text-align: center; margin-top: 0.8rem; }
  .form-side__title { font-size: 1.8rem; }

  /* Member */
  .member { padding: 1.8rem 1.4rem; gap: 1.2rem; border-right: none; }
  .member__avatar { width: 64px; height: 64px; font-size: 1.3rem; }
  .member__name { font-size: 1.3rem; }

  /* Contact cards */
  .contact-card { padding-block: 1.8rem; }
  .contact-card__value { font-size: 1.4rem; }
}

/* Très petit écran (≤ 380px) — iPhone SE, Galaxy A series etc. */
@media (max-width: 380px) {
  .hero__title { font-size: 3.2rem; }
  .page-head__title { font-size: 2.3rem; }

  /* ── FIX 8 : nav menu items at 320px ─────────────────────────────────────
     Font already drops to 1.9rem here. Ensure padding is inherited correctly
     from the 720px block above (no re-declaration needed).                  */
  .nav__links a { font-size: 1.9rem; }

  /* ── FIX 9 : section-title at 320px — tighten so long titles don't wrap ──
     "Rencontres & évaluation" at 1.9rem wraps at 320px content width ~270px. */
  .section-title { font-size: 1.6rem; }

  /* ── FIX 10 : pullquote — reduce indent and size proportionally ──────────*/
  .pullquote {
    font-size: 1.2rem;
    padding-left: 2.2rem;
  }
  .pullquote::before { font-size: 3.2rem; }
}

/* --- Utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-wrap { white-space: nowrap; }
.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.divider { height: 1px; background: var(--hairline-strong); margin-block: clamp(3rem, 6vw, 5rem); }

/* Pull quote */
.pullquote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  padding-block: clamp(2rem, 4vw, 3rem);
  margin-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.pullquote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--red);
  position: absolute;
  top: 1.6rem;
  left: -0.6rem;
}
.pullquote cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* Marquee ribbon */
.ribbon {
  overflow: hidden;
  padding-block: 0.6rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  white-space: nowrap;
}
.ribbon__track {
  display: inline-flex;
  gap: 2.5rem;
  animation: ribbon 32s linear infinite;
  padding-right: 2.5rem;
}
.ribbon__track span { display: inline-block; }
.ribbon__track .dot { color: var(--red); }
@keyframes ribbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Typographie : pas de mots orphelins ─────────────────────────────────
   `pretty` évite qu'un mot seul termine un paragraphe ;
   `balance` équilibre les lignes des titres. */
h1, h2, h3, .section-title, .page-head__title, .cta-banner__title {
  text-wrap: balance;
}
p, li, blockquote, .page-head__lead, .cta-banner__sub {
  text-wrap: pretty;
}
