/* =========================================================
   Pylar — Homepage (Figma : Home / 02, Desktop 1280)
   ========================================================= */

/* Akkurat Mono LL (licence web Lineto) :
   copie le fichier .woff2 du dossier "Web Fonts/Fonts" dans assets/fonts/
   et vérifie que le nom correspond ci-dessous. */
@font-face {
  font-family: "Akkurat Mono LL";
  src: url("assets/fonts/AkkuratMonoLLWeb-Regular.woff2") format("woff2"),
       url("assets/fonts/AkkuratMonoLLWeb-Regular.woff") format("woff"),
       local("Akkurat Mono LL"), local("AkkuratMonoLL-Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bordeaux: #2f0117;
  --lime: #e8f840;
  --sable: #efebe8;
  --white: #ffffff;
  --glow: #e0d6cf;

  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --mono: "Akkurat Mono LL", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 10px;          /* marge entre les blocs arrondis */
  --pad: 30px;             /* marge intérieure des blocs (40px dans la maquette) */
  --radius: 10px;
  --radius-sm: 8px;
  --header-h: 69px;
  --maxw: 1260px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--bordeaux);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.mono {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 25px;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ---------- Blocs ---------- */
.card {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--maxw);
  margin: var(--gutter) auto 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.card--sable { background: var(--sable); }
.card--dark  { background: var(--bordeaux); color: var(--white); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font: 400 14px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn--lime { background: var(--lime); color: var(--bordeaux); }
.btn--lime:hover { background: #f2ff6e; }

.cta { display: inline-flex; align-items: center; }
.cta__arrow {
  width: 50px; height: 50px;
  transition: transform .25s ease;
}
.cta:hover .cta__arrow { transform: translate(2px, -2px); }

/* Points décoratifs dans les coins */
.corner { position: absolute; width: 20px; height: 20px; pointer-events: none; }
.corner.tl { top: 20px; left: 20px; }
.corner.tr { top: 20px; right: 20px; }
.corner.bl { bottom: 20px; left: 20px; }
.corner.br { bottom: 20px; right: 20px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--gutter) var(--gutter) 0;
}
.header__bar {
  position: relative;
  max-width: var(--maxw);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 10px 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bordeaux);
  border-radius: var(--radius);
  transition: box-shadow .3s ease;
}
.header.is-scrolled .header__bar { box-shadow: 0 8px 24px rgba(47, 1, 23, .18); }
/* Proportions Figma : picto 25×25 aligné en haut, 12px d'écart, logotype 97×32 (total 134×32) */
.header__logo { display: flex; align-items: flex-start; gap: 12px; }
.header__logo img { width: auto; height: 32px; }
.header__logo img:first-child { width: 25px; height: 25px; }
.header__nav { display: flex; align-items: center; gap: 40px; }
.header__nav a:not(.btn) {
  color: var(--sable);
  font-size: 14px;
  position: relative;
}
.header__nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.header__nav a:not(.btn):hover::after { transform: scaleX(1); }
.header__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px;
}
.header__burger span { display: block; height: 2px; background: var(--sable); transition: transform .25s ease; }
.header.is-open .header__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.header.is-open .header__burger span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  height: 615px;
  color: var(--sable);
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  z-index: -2;
}
/* Le dégradé est déjà intégré dans l'export hero.png : pas de surcouche ici. */
.hero__shade { display: none; }
.hero__dots { position: absolute; left: 20px; width: calc(100% - 40px); height: 20px; }
.hero__dots--top { top: 20px; }
.hero__dots--bottom { bottom: 20px; }
.hero__corner { display: none; }
.hero__content {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 80px;
}
.hero__title {
  font-weight: 600;
  font-size: clamp(32px, 4.3vw, 55px);
  line-height: 1.09;
  letter-spacing: -0.01em;
  margin-bottom: 23px;
}

/* =========================================================
   INTRO + ÉTAPES (cartes qui s'empilent au scroll)
   ========================================================= */
.intro {
  padding: 60px var(--pad) 73px;
  text-align: center;
  overflow: visible;
}
.intro__lead { font-size: 25px; line-height: 30px; }
.intro__lead strong { font-weight: 700; }
.intro__sub { margin-top: 23px; }

.steps { margin-top: 42px; }
.step {
  --top: 0px;
  position: sticky;
  top: calc(var(--header-h) + 40px + var(--top));
  display: grid;
  grid-template-columns: var(--img-w) 1fr;
  gap: 21px;
  width: var(--w);
  max-width: 100%;
  min-height: var(--h);
  margin: 0 auto 120px;
  padding: 20px;
  border-radius: var(--radius);
  filter: drop-shadow(0 0 6px var(--glow));
  text-align: left;
}
.step:last-child { margin-bottom: 0; }
.step--lime  { --w: 793px; --h: 376px; --img-w: 511px; --top: 0px;  background: var(--lime); }
.step--white { --w: 839px; --h: 398px; --img-w: 557px; --top: 29px; background: var(--white); }
.step--dark  { --w: 875px; --h: 376px; --img-w: 592px; --top: 59px; background: var(--bordeaux); color: var(--sable); }

.step__media { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: transparent; }
.step__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step__text { display: flex; flex-direction: column; padding: 2px 12px 0 0; }
.step__text h3 { margin-top: auto; font-weight: 600; font-size: 25px; line-height: 35px; }
.step__text p { margin-top: 15px; font-size: 14px; line-height: 20px; }
.step__count { margin-top: 30px; }
.step--dark .step__count { color: var(--white); }

/* =========================================================
   PROGRAMME
   ========================================================= */
.programme {
  min-height: 701px;
  display: grid;
  grid-template-columns: 508px 1fr;
  padding: 74px var(--pad) 73px;
}
.programme__collage { position: relative; height: 470px; margin-top: 37px; }
.programme__collage img, .programme__collage video { position: absolute; border-radius: var(--radius-sm); object-fit: cover; }
.programme__collage .p1 { left: 0;   top: 0;   width: 260px; height: 149px; }
.programme__collage .p2 { left: 203px; top: 37px; width: 245px; height: 305px; }
.programme__collage .p3 { left: 0;   top: 275px; width: 183px; height: 183px; }

.programme__body { max-width: 664px; }
.programme__body h2 { margin-top: 4px; font-weight: 600; font-size: 40px; line-height: 60px; }
.programme__intro { margin-top: 37px; font-size: 16px; line-height: 25px; }
.pillars { margin-top: 52px; max-width: 590px; }
.pillars li {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  align-items: center;
  column-gap: 22px;
  height: 55px;
  border-top: .5px solid rgba(255, 255, 255, .8);
}
.pillars strong { font-weight: 600; font-size: 25px; white-space: nowrap; }
.pillars .mono { text-align: right; text-transform: none; }
.programme .cta { margin-top: 31px; }

/* =========================================================
   CHIFFRES
   ========================================================= */
.stats { padding: 43px var(--pad) 44px; min-height: 615px; }
.stats__title { font-weight: 600; font-size: 25px; line-height: 35px; }
.stats__grid {
  margin-top: 91px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 20px;
  min-height: 210px;
  padding: 40px 35px 25px;
  border-radius: var(--radius);
}
.stat--white { background: rgba(255, 255, 255, .9); }
.stat--lime  { background: var(--lime); opacity: .9; }
.stat--dark  { background: rgba(47, 1, 23, .9); color: var(--sable); }
.stat__value {
  font-family: var(--mono);
  font-size: clamp(56px, 6.6vw, 85px);
  line-height: 60px;
  letter-spacing: -0.1em;
  padding-bottom: 20px;
  border-bottom: .5px solid currentColor;
}
.stat__label { font-size: 14px; line-height: 20px; }

.stats__banner {
  margin-top: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 35px;
  border: .5px solid var(--bordeaux);
  border-radius: var(--radius);
}
.stats__banner .mono { font-size: 16px; max-width: 488px; }

/* =========================================================
   DÎNERS
   ========================================================= */
.diners {
  min-height: 615px;
  display: grid;
  grid-template-columns: 1fr 590px;
  gap: 40px;
  padding: 109px var(--pad) 108px;
}
.diners__text { max-width: 540px; }
.diners__text h2 { text-wrap: balance; }
.diners__text h2, .evt-hero__title { font-weight: 600; font-size: 40px; line-height: 60px; color: var(--sable); text-wrap: balance; }
.evt-hero { padding-top: 120px; padding-bottom: 120px; }
.diners__text .mono { color: var(--sable); }
.diners__text p:not(.mono) { margin-top: 15px; font-size: 14px; line-height: 25px; color: var(--sable); }
.diners__text h2 + p, .evt-hero__title + p { margin-top: 39px !important; }
.diners__text .cta { margin-top: 41px; }

.event { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); color: var(--bordeaux); align-self: start; }
.event__img { width: 100%; height: 222px; object-fit: cover; }
.event__body { min-height: 176px; padding: 21px 20px 40px 21px; }
.event__format { display: flex; justify-content: space-between; line-height: 30px; padding-bottom: 6px; border-bottom: .5px solid var(--bordeaux); }
.event__body p:not(.mono) { margin-top: 13px; font-size: 14px; line-height: 22px; }
.event .corner.bl, .event .corner.br { bottom: 21px; }

/* =========================================================
   FONDATEUR
   ========================================================= */
.founder { width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw); margin: 0 auto; padding: 59px 0 60px; }
.founder__label { text-align: center; font-size: 12px; line-height: 22px; }
.founder__stage { position: relative; height: 559px; margin-top: 38px; }

.founder__quote {
  position: absolute; left: 132px; top: 0; z-index: 2;
  width: 895px; height: 209px;
  padding: 33px 20px 0;
  background: var(--lime);
  border-radius: var(--radius);
  text-align: center;
}
.founder__quote p { font-weight: 600; font-size: 30px; line-height: 35px; max-width: 640px; margin: 0 auto; }
.founder__quote strong { font-weight: 700; }

.founder__photo {
  position: absolute; left: 131px; top: 169px; z-index: 3;
  width: 286px; height: 390px;
  border-radius: var(--radius); overflow: hidden;
}
.founder__photo > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.founder__card {
  position: absolute; left: 483px; top: 96px; z-index: 1;
  width: 645px; height: 321px;
  padding: 146px 40px 0 156px;
  background: var(--bordeaux); color: var(--sable);
  border: .5px solid var(--white);
  border-radius: var(--radius);
}
.founder__name { font-weight: 700; font-size: 14px; line-height: 22px; }
.founder__role { font-size: 12px; line-height: 22px; }
.founder__bio { margin-top: 16px; font-size: 14px; line-height: 22px; max-width: 386px; }

.press { position: absolute; left: 640px; top: 450px; display: flex; align-items: center; gap: 14px; }
.press img { width: 406px; height: 70px; }

/* =========================================================
   CTA
   ========================================================= */
.cta-band { height: 566px; isolation: isolate; color: var(--bordeaux); }
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
/* Le dégradé est déjà intégré dans l'export cta.jpg : pas de surcouche ici. */
.cta-band__shade { display: none; }
.cta-band__content {
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 187px;
}
.cta-band__panel { position: relative; width: 794px; max-width: calc(100% - 40px); height: 171px; display: grid; place-items: center; }
.cta-band__shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-band__panel p { position: relative; text-align: center; font-weight: 500; font-size: 25px; line-height: 32px; padding: 0 30px; }
.cta-band__panel strong { font-weight: 700; }
.cta-band__proof { margin-top: 50px; padding: 0 20px; color: var(--lime); text-align: center; }
.cta-band .cta { margin-top: 22px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer__card { padding: 67px var(--pad) 60px; color: var(--sable); }
.footer__head { display: flex; align-items: flex-start; gap: 35px; padding-bottom: 82px; border-bottom: .5px solid rgba(239, 235, 232, .6); }
.footer__head img { width: 82px; height: 82px; flex: none; }
.footer__head p { margin-top: 6px; font-weight: 600; font-size: 35px; line-height: 33px; }

.footer__grid {
  display: grid;
  grid-template-columns: 183px 1fr 387px;
  padding-top: 24px;
}
.footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; line-height: 25px; }
.footer__col a { color: var(--white); width: fit-content; }
.footer__col a:hover { color: var(--lime); }
/* Colonne sans titre : ses liens restent alignés sur ceux de la colonne voisine */
.footer__col--untitled { padding-top: 36px; }
/* Sans newsletter : la 2e colonne de liens prend la place de la newsletter de la maquette,
   alignée sur les icônes des réseaux sociaux en dessous */
.footer__grid .footer__col--untitled { grid-column: 3; }
.footer__title { font-weight: 700; font-size: 14px; line-height: 25px; color: var(--lime); }
.footer__news .footer__title { text-transform: uppercase; }
.footer__news-text { margin-top: 10px; font-size: 16px; line-height: 24px; }

.newsletter { display: flex; flex-wrap: wrap; margin-top: 20px; }
.newsletter__field {
  display: flex; align-items: center; gap: 19px;
  width: 277px; height: 50px; padding: 0 20px;
  background: var(--sable); border-radius: var(--radius-sm);
}
.newsletter__field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 400 14px var(--sans); color: var(--bordeaux);
}
.newsletter__field input::placeholder { color: var(--bordeaux); opacity: 1; }
.newsletter__btn { width: 110px; font-weight: 700; }
.newsletter__ok { display: none; width: 100%; margin-top: 10px; font-size: 14px; color: var(--lime); }
.newsletter.is-done .newsletter__ok { display: block; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 38px; }
.footer__bottom > img { width: auto; height: 32px; }
.footer__social { display: flex; gap: 21px; width: 387px; }
.footer__social a { transition: opacity .2s; }
.footer__social a:hover { opacity: .7; }
.footer__social img { width: 20px; height: 20px; }

.footer__legal {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  max-width: 1280px; margin: 0 auto;
  padding: 22px 40px 28px;
  font-size: 12px; line-height: 25px;
}
.footer__legal nav { display: flex; gap: 40px; }
.footer__legal a:hover { text-decoration: underline; }

/* =========================================================
   Apparition au scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .step { position: relative; top: auto; margin-bottom: 20px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .founder__stage { height: auto; display: grid; grid-template-columns: 286px 1fr; gap: 20px; }
  .founder__quote, .founder__photo, .founder__card, .press { position: relative; left: auto; top: auto; }
  .founder__quote { grid-column: 1 / -1; width: 100%; height: auto; padding: 40px 40px 45px; }
  .founder__photo { height: 390px; width: 100%; }
  .founder__card { width: 100%; height: auto; padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; }
  .press { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 1080px) {
  .header__nav { gap: 24px; }
  .programme { grid-template-columns: 1fr; gap: 40px; }
  .programme__collage { margin-top: 0; max-width: 448px; }
  .diners { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 70px; }
  .event { max-width: 590px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer__grid .footer__col--untitled { grid-column: auto; }
  .footer__social { width: auto; }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .header__burger { display: flex; }
  .header__nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px;
    background: var(--bordeaux); border-radius: var(--radius);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .header.is-open .header__nav { opacity: 1; visibility: visible; transform: none; }
  .header__nav a:not(.btn) { padding: 14px 0; font-size: 16px; border-bottom: .5px solid rgba(239, 235, 232, .2); }
  .header__nav a:not(.btn)::after { display: none; }
  .header__nav .btn { margin-top: 16px; }

  .step { grid-template-columns: 1fr; width: 100%; min-height: 0; gap: 18px; margin-bottom: 60px; }
  .step--white { width: 100%; }
  .step__media { aspect-ratio: 16 / 10; }
  .step__text { padding: 0 4px 6px; }
  .step__text h3 { margin-top: 0; }

  .stats__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .stats__banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero { height: 560px; }
  .hero__content { bottom: 60px; }
  .hero__title br { display: none; }
  .hero__dots { display: none; }
  .hero__corner { display: block; }
  .event__body { padding-bottom: 56px; }
  .founder__quote { padding: 48px 34px 50px; }
  .press { flex-direction: column; align-items: flex-start; }
  .intro { padding-top: 48px; }
  .intro__lead { font-size: 21px; line-height: 27px; }
  .intro__lead br, .intro__sub br { display: none; }
  .programme__body h2, .diners__text h2, .evt-hero__title { font-size: 32px; line-height: 40px; }
  .programme__collage { height: 360px; }
  .programme__collage .p1 { width: 55%; height: 120px; }
  .programme__collage .p2 { left: 42%; top: 30px; width: 58%; height: 240px; }
  .programme__collage .p3 { top: 210px; width: 40%; height: 140px; }
  .pillars li { grid-template-columns: 10px 1fr; height: auto; padding: 12px 0; row-gap: 2px; }
  .pillars strong { font-size: 21px; }
  .pillars .mono { grid-column: 2; text-align: left; font-size: 12px; line-height: 18px; }
  .founder__stage { grid-template-columns: 1fr; }
  .founder__quote p { font-size: 22px; line-height: 28px; }
  .founder__quote br { display: none; }
  .press img { width: 100%; height: auto; }
  .cta-band { height: 600px; }
  .cta-band__content { padding-top: 120px; }
  .cta-band__panel {
    height: auto; min-height: 171px; padding: 56px 0;
    background: var(--sable); border-radius: var(--radius);
    /* les 4 ronds découpés dans les coins, comme la forme de la maquette */
    --m1: radial-gradient(circle 10px at 30px 30px, #0000 9.5px, #000 10px);
    --m2: radial-gradient(circle 10px at calc(100% - 30px) 30px, #0000 9.5px, #000 10px);
    --m3: radial-gradient(circle 10px at 30px calc(100% - 30px), #0000 9.5px, #000 10px);
    --m4: radial-gradient(circle 10px at calc(100% - 30px) calc(100% - 30px), #0000 9.5px, #000 10px);
    -webkit-mask: var(--m1), var(--m2), var(--m3), var(--m4);
    -webkit-mask-composite: source-in;
    mask: var(--m1), var(--m2), var(--m3), var(--m4);
    mask-composite: intersect;
  }
  .cta-band__shape { display: none; }
  .cta-band__panel p { font-size: 19px; line-height: 26px; }
  .cta-band__panel br { display: none; }
  .footer__head { flex-direction: column; gap: 24px; padding-bottom: 40px; }
  .footer__head p { font-size: 26px; line-height: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .newsletter__field { width: auto; flex: 1 1 0; min-width: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__legal { flex-direction: column; align-items: flex-start; padding: 20px; }
  .footer__legal nav { flex-wrap: wrap; gap: 8px 24px; }
}

/* =========================================================
   PAGE A PROPOS (Figma : All Pages / 01 — Design 6)
   ========================================================= */
.header__nav a.is-active { color: var(--lime); }

.btn--dark { background: var(--bordeaux); color: var(--lime); }
.btn--dark:hover { background: #4a0a28; }

/* Intro */
.about-intro { padding: 55px 144px; }
.about-intro__box {
  position: relative;
  min-height: 248px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 33px 60px 40px;
  border: .5px solid var(--bordeaux);
  border-radius: var(--radius);
  text-align: center;
}
.about-intro h1 { font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; text-wrap: balance; }
.about-intro p { margin-top: 30px; font-size: 14px; line-height: 25px; max-width: 488px; }

/* Principes */
.principles { min-height: 481px; padding: 55px var(--pad) 78px; isolation: isolate; border-radius: var(--radius-sm); }
.principles__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.principles h2 { font-weight: 600; font-size: 40px; line-height: 50px; color: var(--sable); }
.principles__grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principles__grid li {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-height: 117px; padding: 20px;
  background: rgba(239, 235, 232, .9);
  border-radius: var(--radius-sm);
  transition: background-color .2s ease;
}
.principles__grid li:hover { background: var(--sable); }
.principles__grid .mono { padding-bottom: 10px; border-bottom: .5px solid var(--bordeaux); line-height: 1.2; }
.principles__grid strong { font-weight: 600; font-size: 25px; line-height: 30px; }

/* Équipe (carrousel) */
.team { padding: 74px 0 47px var(--pad); }
.team__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-right: 60px; }
.team__head h2 { margin-top: 4px; font-weight: 600; font-size: 40px; line-height: 50px; }
.team__sub { margin-top: 22px; font-size: 14px; line-height: 25px; }
.team__nav { display: flex; }
.team__nav[hidden] { display: none; }
.team__btn { width: 50px; height: 50px; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .2s, transform .2s; }
.team__btn:hover { transform: translateY(-2px); }
.team__btn[disabled] { opacity: .35; cursor: default; transform: none; }
.team__track {
  list-style: none; margin: 59px 0 0; padding: 0 var(--pad) 0 0;
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.team__track::-webkit-scrollbar { display: none; }
.team__track:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.member {
  position: relative; flex: 0 0 285px; height: 417px;
  border-radius: var(--radius-sm); overflow: hidden;
  scroll-snap-align: start;
}
.member__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.member:hover .member__photo { transform: scale(1.03); }
.member::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bordeaux)); }
.member__dots { position: absolute; top: 20px; left: 20px; width: calc(100% - 40px); height: 20px; z-index: 1; }
.member__text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 20px;
  padding: 40px 25px 20px; text-align: center;
}
.member__name { font-weight: 600; font-size: 25px; line-height: 35px; color: var(--sable); }
.member__role { min-height: 44px; font-size: 14px; line-height: 22px; color: var(--lime); }
/* Photo livrée avec son dégradé : pas de surcouche */
.member--baked::after { display: none; }
.member__name a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Bandeau audit */
.audit-band {
  min-height: 298px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 19px;
  padding: 60px 20px;
  background: var(--lime);
  text-align: center;
}
.audit-band .mono { font-size: 16px; max-width: 590px; }
.audit-band__dots { position: absolute; left: 20px; width: calc(100% - 40px); height: 20px; }
.audit-band__dots--top { top: 20px; }
.audit-band__dots--bottom { bottom: 20px; }
.audit-band__corner { display: none; }

/* Histoire */
.story {
  min-height: 616px;
  display: grid; grid-template-columns: 286px minmax(0, 692px);
  column-gap: 108px; align-items: center;
  padding: 113px var(--pad) 113px 144px;
}
.story__photo { position: relative; width: 286px; height: 390px; border-radius: var(--radius); overflow: hidden; }
.story__photo > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.story__corners { position: absolute; top: 20px; left: 20px; width: 245px; height: 350px; }
.story__text h2 { margin-top: 4px; font-weight: 600; font-size: 40px; line-height: 48px; }
.story__text h2 { text-wrap: balance; }
.story__text p:not(.mono) { margin-top: 30px; font-size: 14px; line-height: 25px; max-width: 560px; }
.story__text p:not(.mono) + p { margin-top: 15px; }
.story__text strong { font-weight: 700; }

@media (max-width: 1080px) {
  .about-intro { padding: 40px; }
  .principles__grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; row-gap: 40px; padding: 60px var(--pad); justify-items: start; }
}
@media (max-width: 900px) {
  .team__head { padding-right: 20px; }
}
@media (max-width: 640px) {
  .about-intro { padding: 20px; }
  .about-intro__box { padding: 50px 30px; }
  .about-intro h1 br, .about-intro p br { display: none; }
  .principles h2, .team__head h2, .story__text h2 { font-size: 30px; line-height: 38px; }
  .principles__grid { grid-template-columns: 1fr; }
  .audit-band__dots { display: none; }
  .audit-band__corner { display: block; }
  .principles__grid strong { font-size: 21px; }
  .team__head { flex-direction: column; align-items: flex-start; }
  .team__head h2 br, .story__text h2 br { display: none; }
  .member { flex-basis: 78%; height: 400px; }
}

/* =========================================================
   PAGE PYLAR CAPITAL (modules réutilisés + FAQ + formulaire)
   ========================================================= */
/* Textes à compléter, visibles tant qu'ils ne sont pas remplis */
.todo { background: rgba(232, 248, 64, .45); color: inherit; padding: 0 4px; border-radius: 3px; font-style: italic; }
.card--dark .todo { background: rgba(232, 248, 64, .18); color: var(--lime); }

/* Cadre photo vide */
.photo-slot {
  position: relative; display: grid; place-items: center;
  background: rgba(239, 235, 232, .08);
  border: 1px dashed rgba(239, 235, 232, .45);
}
.card--sable .photo-slot { background: rgba(47, 1, 23, .05); border-color: rgba(47, 1, 23, .35); }
.photo-slot .mono { font-size: 12px; opacity: .7; }

.cap-h2 { margin-top: 4px; font-weight: 600; font-size: 40px; line-height: 48px; text-wrap: balance; }

/* Intro (sombre, avec le logo Pylar Capital) */
.cap-intro .about-intro__box { border-color: rgba(239, 235, 232, .5); padding-top: 70px; padding-bottom: 60px; color: var(--sable); }
.cap-hero__logo { margin: 0; line-height: 0; width: 100%; display: flex; justify-content: center; }
.cap-hero__logo img { width: min(556px, 100%); height: auto; }
.cap-hero .cap-hero__title { margin-top: 36px !important; max-width: 720px !important; font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; text-wrap: balance; }
.cap-hero p:not(.cap-hero__title) { max-width: 640px; margin-top: 18px; }
.cap-hero .cta { margin-top: 30px; }

/* Conviction : vidéo plein bloc, texte par-dessus */
.conviction { min-height: 640px; display: flex; align-items: flex-end; isolation: isolate; color: var(--sable); }
.conviction__video { position: absolute; top: 0; bottom: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: 40% center; z-index: -2; }
.conviction { background: var(--bordeaux); }
.conviction__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bordeaux) 28%, rgba(47, 1, 23, .55) 52%, rgba(47, 1, 23, .05) 100%);
}
.conviction__text { max-width: 640px; padding: 80px var(--pad) 70px; }
.conviction__text h2 { margin-top: 4px; font-weight: 600; font-size: 36px; line-height: 44px; text-wrap: balance; }
.conviction__text p:not(.mono) { margin-top: 16px; font-size: 15px; line-height: 25px; }
.conviction__text h2 + p { margin-top: 28px; }
.conviction__text strong { font-weight: 700; color: var(--white); }

/* Offre */
.cap-offer { min-height: 0; }
.cap-offer .cap-h2 { max-width: none; text-wrap: wrap; }
.cap-offer__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.evt-format .cap-offer__grid { grid-template-columns: repeat(3, 1fr); }
.cap-offer__title { font-weight: 600; font-size: 25px; line-height: 35px; padding-bottom: 20px; border-bottom: .5px solid currentColor; }
/* Cartes alignées ligne par ligne (subgrid) : les traits sous les titres tombent à la même hauteur */
.cap-offer__grid { row-gap: 20px; }
.cap-offer .stat { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 20px; align-content: start; min-height: 0; padding-bottom: 35px; }
.cap-offer .cap-offer__title { align-self: stretch; display: flex; align-items: flex-start; }

/* Critères (module bandeau jaune) */
.cap-criteria { padding: 70px 40px; gap: 24px; }
.cap-criteria__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 14px 40px; text-align: left; }
.cap-criteria__list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 22px; }
.cap-criteria__list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bordeaux); }

/* Partenaires (module équipe, version claire) */
.team--light { color: var(--bordeaux); }
.member--empty { background: var(--bordeaux); }
.member--empty::after { display: none; }
.member--empty .photo-slot { position: absolute; inset: 0; border-radius: var(--radius-sm); align-items: start; padding-top: 150px; color: var(--sable); background: rgba(239, 235, 232, .06); border: 1px dashed rgba(239, 235, 232, .45); }
.member--empty .member__dots { filter: invert(1) brightness(1.6); opacity: .5; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 680px; gap: 40px; padding: 74px var(--pad); }
.faq__list details { border-top: .5px solid var(--bordeaux); }
.faq__list details:last-child { border-bottom: .5px solid var(--bordeaux); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 600; font-size: 18px; line-height: 26px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--mono); font-size: 22px; transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 4px; }
.faq__list details p { padding: 0 40px 22px 0; font-size: 15px; line-height: 24px; }

/* Candidature finale */
.cap-final { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 90px 24px 60px; text-align: center; }
.cap-final .cap-h2 { color: var(--sable); }
.cap-final > p:not(.mono) { font-size: 16px; line-height: 25px; color: var(--sable); }
.cap-final .cta { margin-top: 10px; }
.cap-final { padding-bottom: 90px; }
.faq__legal { grid-column: 1 / -1; padding-top: 20px; font-size: 12px; }

/* Règle d'investissement */
.cap-criteria__rule { font-weight: 600; font-size: 32px; line-height: 40px; max-width: 760px; text-wrap: balance; }
.cap-criteria__lead { max-width: 640px; font-size: 16px; line-height: 25px; margin-bottom: 10px; }

@media (max-width: 1080px) {
  .cap-offer__grid, .evt-format .cap-offer__grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .cap-criteria__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cap-h2, .conviction__text h2 { font-size: 28px; line-height: 36px; }
  .conviction { min-height: 0; }
  .conviction__video { width: 100%; }
  .conviction__shade { background: rgba(47, 1, 23, .78); }
  .cap-hero br, .cap-offer .cap-h2 br { display: none; }
  .cap-offer__grid, .evt-format .cap-offer__grid { grid-template-columns: 1fr; }
  .cap-criteria { padding: 60px 24px; }
  .cap-criteria__rule { font-size: 26px; line-height: 32px; }
}

/* =========================================================
   PAGE NOUS REJOINDRE (modules réutilisés + piliers + formulaire)
   ========================================================= */
.principles__intro { margin-top: 14px; max-width: 640px; font-size: 15px; line-height: 24px; color: var(--sable); }

/* Cartes piliers */
.pillars-join { min-height: 0; }
.pillars-join__sub { margin-top: 16px; max-width: 720px; font-size: 16px; line-height: 25px; }
.pillars-join__sub strong { font-weight: 700; }
.pillar-card .pillar-card__exp { padding: 10px 12px; border-radius: 6px; background: rgba(47, 1, 23, .07); font-weight: 600; }
.stat--dark .pillar-card .pillar-card__exp, .stat--dark.pillar-card .pillar-card__exp { background: rgba(232, 248, 64, .14); color: var(--lime); }
/* Cartes piliers : titre, sous-titre et CTA toujours visibles, détail dépliable */
.pillars-join__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.pillar-card { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 0; padding: 30px 25px 22px; }
.pillar-card__num { font-size: 12px; opacity: .8; }
.pillar-card__title { min-height: 79px; display: flex; align-items: flex-end; padding-bottom: 18px; border-bottom: .5px solid currentColor; font-weight: 600; font-size: 25px; line-height: 30px; }
.pillar-card__tag { min-height: 69px; padding-top: 6px; font-weight: 600; font-size: 15px; line-height: 21px; }
.pillar-card__btn { margin-top: 10px; width: 100%; height: 50px; padding: 0 12px; white-space: nowrap; text-align: center; font-size: 14px; }
.pillar-card__toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  margin-top: 6px; padding: 12px 2px 2px; border: 0; border-top: .5px solid currentColor;
  background: none; color: inherit; font: 600 13px/1.2 var(--sans); cursor: pointer;
}
.pillar-card__toggle svg { transition: transform .25s ease; }
.pillar-card__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.pillar-card__toggle:hover .pillar-card__toggle-label { text-decoration: underline; text-underline-offset: 3px; }
.pillar-card__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.pillar-card__detail[hidden] { display: none; }
.pillar-card__detail { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.pillar-card__detail:not([hidden]) { animation: detailIn .25s ease; }
@keyframes detailIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pillar-card__label { padding-top: 10px; font-weight: 700; font-size: 13px; }
/* Carte Coordinateur : toute la largeur, sous les quatre piliers */
.coord-card { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; align-items: end; padding: 30px 30px 24px; }
.coord-card .pillar-card__title { min-height: 0; padding-top: 6px; }
.coord-card .pillar-card__tag { min-height: 0; max-width: 560px; }
.coord-card__actions { display: flex; flex-direction: column; gap: 8px; }
.coord-card__detail { grid-column: 1 / -1; }
.coord-card__detail:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; padding-top: 14px; }
.coord-card__detail > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pillar-card p:not(.mono):not(.pillar-card__label) { font-size: 14px; line-height: 21px; }
.stat--dark .pillar-card__btn { color: var(--bordeaux); }

/* Candidature finale : bandeau jaune, CTA aubergine */
.join-final .join-final__title { font-weight: 600; font-size: 32px; line-height: 40px; text-wrap: balance; }
.join-final .join-final__text { font-size: 16px; line-height: 25px; margin-bottom: 6px; }

/* Étapes : même style que la liste du programme (homepage) */
.join-steps { display: grid; grid-template-columns: minmax(0, 1fr) 680px; gap: 40px; align-items: center; padding: 74px var(--pad); }
.join-steps .cap-h2 { color: var(--sable); }
.join-steps__list { list-style: none; margin: 0; padding: 0; max-width: none; }
.join-steps__list li { grid-template-columns: 10px 200px 1fr; height: auto; min-height: 62px; padding: 12px 0; }
.join-steps__list li:last-child { border-bottom: .5px solid rgba(255, 255, 255, .8); }
.join-steps__list .mono { line-height: 21px; }

@media (max-width: 1080px) {
  .pillars-join__grid { grid-template-columns: repeat(2, 1fr); }
  .join-steps { grid-template-columns: 1fr; }
  .pillar-card__btn { white-space: normal; height: auto; min-height: 50px; padding: 12px; }
  .pillar-card__title, .pillar-card__tag { min-height: 0; }
}
@media (max-width: 640px) {
  .pillars-join__grid { grid-template-columns: 1fr; }
  .coord-card { grid-template-columns: 1fr; row-gap: 12px; }
  .coord-card__detail:not([hidden]) { grid-template-columns: 1fr; gap: 0; }
  .join-steps__list li { grid-template-columns: 10px 1fr; }
}

/* =========================================================
   MODALE DE CANDIDATURE (Typeform)
   ========================================================= */
html.has-modal { overflow: hidden; }
.apply-modal {
  width: min(880px, calc(100% - 32px)); height: min(720px, calc(100% - 48px));
  max-width: none; max-height: none; margin: auto; padding: 0;
  border: 0; border-radius: var(--radius); background: transparent;
  overflow: visible;
}
.apply-modal::backdrop { background: rgba(47, 1, 23, .72); backdrop-filter: blur(3px); }
.apply-modal[open] { animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.apply-modal__box { display: flex; flex-direction: column; height: 100%; background: var(--sable); border-radius: var(--radius); overflow: hidden; }
.apply-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 24px; background: var(--bordeaux); color: var(--sable); }
.apply-modal__close {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--radius-sm); background: var(--lime); color: var(--bordeaux); cursor: pointer;
  transition: transform .2s;
}
.apply-modal__close:hover { transform: rotate(90deg); }
.apply-modal__close:focus-visible { outline: 2px solid var(--sable); outline-offset: 2px; }
.apply-modal__body { flex: 1; min-height: 0; }
.apply-modal__frame { display: block; width: 100%; height: 100%; border: 0; }
.apply-modal__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; text-align: center; color: var(--bordeaux); }
.apply-modal__placeholder-title { font-weight: 600; font-size: 22px; line-height: 30px; }
.apply-modal__placeholder p:not(.apply-modal__placeholder-title) { font-size: 14px; opacity: .75; }
.apply-modal__placeholder code { font-family: var(--mono); font-size: 13px; padding: 1px 6px; border-radius: 4px; background: rgba(47, 1, 23, .08); }
@media (max-width: 640px) {
  .apply-modal { width: 100%; height: 100%; border-radius: 0; }
  .apply-modal__box { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .apply-modal[open], .pillar-card__detail:not([hidden]) { animation: none; } }

/* =========================================================
   PAGE LE PROGRAMME (Figma : Pylar / Programme / Desktop 1280 / Design 7)
   ========================================================= */
/* Hero : bloc bordeaux + photo */
.prog-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 722fr) minmax(0, 528fr); gap: var(--gutter);
  width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw); margin: var(--gutter) auto 0;
}
.prog-hero__text { width: auto; margin: 0; min-height: 615px; padding: 134px var(--pad) 60px; color: var(--sable); }
.prog-hero__text h1 { margin-top: 4px; font-weight: 600; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.2; text-wrap: balance; }
.prog-hero__lead { margin-top: 48px; font-size: 14px; line-height: 25px; }
.prog-hero__lead strong { font-weight: 600; color: var(--lime); }
.prog-hero__text .cta { margin-top: 100px; }
.prog-hero__photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 615px; }
.prog-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.prog-hero__dots { position: absolute; top: 20px; left: 20px; width: calc(100% - 40px); height: 20px; pointer-events: none; }

/* Le board */
.prog-board { padding: 67px var(--pad) 80px; text-align: center; }
.prog-board__lead { font-size: 25px; line-height: 30px; }
.prog-board__lead strong { font-weight: 700; }
.prog-board__sub { margin-top: 23px; }
.prog-board__grid { margin: 56px auto 0; max-width: 794px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.board-card { display: flex; flex-direction: column; }
.board-card > .board-card__body { flex: 1; }
.board-card__media { position: relative; height: 219px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bordeaux); }
.board-card__media img { width: 100%; height: 100%; object-fit: cover; }
.board-card__media .mono { position: absolute; left: 35px; bottom: 8px; color: var(--lime); }
.board-card__body { position: relative; min-height: 191px; padding: 48px 35px 40px; border: .5px solid var(--bordeaux); border-radius: var(--radius-sm); }
.board-card__body h3 { padding-bottom: 13px; border-bottom: .5px solid var(--bordeaux); font-weight: 700; font-size: 25px; line-height: 35px; }
.board-card__body p { margin-top: 8px; font-size: 14px; line-height: 22px; }

/* Quatre piliers : animation au scroll (le logo s'ouvre, puis les piliers s'empilent) */
.pillars4 { --open: 0; --dist: 408px; height: 340vh; overflow: visible; }
.pillars4__sticky {
  position: sticky; top: calc(var(--header-h) + var(--gutter));
  height: calc(100vh - var(--header-h) - 2 * var(--gutter)); min-height: 600px;
  display: flex; flex-direction: column; align-items: center; padding-top: 60px; overflow: hidden;
  border-radius: var(--radius);
}
.pillars4__head { text-align: center; }
.pillars4__head h2 { font-weight: 700; font-size: 25px; line-height: 50px; }
.pillars4__stage { position: relative; width: 100%; height: 435px; margin-top: 60px; }
.pillars4__half {
  position: absolute; top: 56px; left: 50%;
  display: flex; flex-direction: column; gap: 34px; z-index: 0;
  will-change: transform;
}
.pillars4__half svg { display: block; width: 75px; height: 75px; }
.pillars4__half--left { transform: translateX(calc(-75px - 15px - var(--open) * var(--dist))); }
.pillars4__half--right { transform: translateX(calc(15px + var(--open) * var(--dist))); }
.pillars4__cards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 1; }
.p4-card {
  --t: 0;
  position: absolute; left: 50%; top: var(--y, 0px);
  width: min(794px, calc(100% - 40px)); height: 329px;
  padding: 67px 63px 40px;
  border-radius: var(--radius);
  transform: translate(-50%, calc((1 - var(--t)) * 115vh));
  opacity: clamp(0, calc(var(--t) * 3), 1);
  will-change: transform;
}
.p4-card::before {
  content: ""; position: absolute; inset: 20px; pointer-events: none;
  background:
    url("assets/dot-light.svg") left top / 20px 20px no-repeat,
    url("assets/dot-light.svg") right top / 20px 20px no-repeat,
    url("assets/dot-light.svg") left bottom / 20px 20px no-repeat,
    url("assets/dot-light.svg") right bottom / 20px 20px no-repeat;
}
.p4-card:nth-child(1) { --y: 0px; }
.p4-card:nth-child(2) { --y: 35px; }
.p4-card:nth-child(3) { --y: 73px; }
.p4-card:nth-child(4) { --y: 106px; }
.p4-card--white { background: var(--white); color: var(--bordeaux); }
.p4-card--dark  { background: var(--bordeaux); color: var(--sable); }
.p4-card--lime  { background: var(--lime); color: var(--bordeaux); }
.p4-card__num { text-align: right; padding-bottom: 10px; border-bottom: .5px solid currentColor; }
.p4-card h3 { margin-top: 22px; font-weight: 700; font-size: 40px; line-height: 44px; }
.p4-card p:not(.mono) { margin-top: 36px; font-size: 14px; line-height: 22px; }
.p4-card strong { font-weight: 600; }

/* Version sans animation : mobile, tablette et « réduire les animations » */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .pillars4 { height: auto; }
  .pillars4__sticky { position: static; height: auto; min-height: 0; padding: 60px var(--pad) 40px; overflow: visible; }
  .pillars4__stage { height: auto; margin-top: 36px; }
  .pillars4__half { display: none; }
  .pillars4__cards { position: static; display: flex; flex-direction: column; gap: 16px; }
  .p4-card { position: relative; left: auto; top: auto; width: 100%; max-width: 794px; height: auto; margin: 0 auto; transform: none; opacity: 1; padding: 50px 40px 50px; }
}

/* Comment ça se passe */
.prog-steps { min-height: 732px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 590px); gap: 40px; padding: 64px var(--pad) 70px; color: var(--sable); }
.prog-steps__collage { position: relative; height: 591px; max-width: 590px; }
.prog-steps__collage img { position: absolute; object-fit: cover; border-radius: var(--radius); }
.prog-steps__collage .s1 { left: 0; top: 0; width: 488px; height: 326px; max-width: 83%; }
.prog-steps__collage .s2 { left: 303px; top: 265px; width: 285px; height: 326px; }
.prog-steps__body { padding-top: 122px; }
.prog-steps__body .mono { color: var(--lime); }
.prog-steps__body h2 { margin-top: 4px; font-weight: 600; font-size: 40px; line-height: 50px; color: var(--white); }
.prog-steps__list { list-style: none; margin: 81px 0 0; padding: 0; }
.prog-steps__list li {
  display: grid; grid-template-columns: 10px 1fr auto; column-gap: 15px; align-items: start;
  padding: 18px 0 20px; border-top: .5px solid rgba(255, 255, 255, .8);
}
.prog-steps__list li:last-child { border-bottom: .5px solid rgba(255, 255, 255, .8); }
.prog-steps__list li > img { margin-top: 13px; }
.prog-steps__list strong { display: block; font-weight: 600; font-size: 25px; line-height: 37px; color: var(--white); }
.prog-steps__list p { font-size: 14px; line-height: 25px; color: var(--white); }
.prog-steps__list .mono { color: var(--lime); padding-top: 6px; }

/* FAQ en accordéon */
.prog-faq { width: calc(100% - 2 * var(--gutter)); max-width: 996px; margin: 0 auto; padding: 87px 0 86px; }
.prog-faq__label { text-align: center; font-size: 12px; line-height: 22px; margin-bottom: 52px; }
.prog-faq__list { display: flex; flex-direction: column; gap: 10px; }
.prog-faq__list details { background: var(--sable); border-radius: var(--radius); }
.prog-faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 60px; padding: 17px 30px 17px 31px;
  font-weight: 700; font-size: 14px; line-height: 25px; text-transform: uppercase;
}
.prog-faq__list summary::-webkit-details-marker { display: none; }
.prog-faq__list summary::after {
  content: ""; flex: none; width: 13px; height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='7' viewBox='0 0 13 7' fill='none'%3E%3Cpath d='M12.5 6.5L6.5 0.5L0.5 6.5' stroke='%232F0117' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(180deg); transition: transform .25s ease;
}
.prog-faq__list details[open] summary::after { transform: none; }
.prog-faq__list summary:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; border-radius: var(--radius); }
.prog-faq__list details p { margin-top: -10px; padding: 0 60px 22px 31px; font-size: 14px; line-height: 25px; text-transform: uppercase; }

@media (max-width: 1080px) {
  .prog-hero { grid-template-columns: 1fr; }
  .prog-hero__text { min-height: 0; padding-top: 90px; }
  .prog-hero__text .cta { margin-top: 40px; }
  .prog-hero__photo { min-height: 0; height: 420px; }
  .prog-steps { grid-template-columns: 1fr; }
  .prog-steps__body { padding-top: 0; }
  .prog-steps__list { margin-top: 40px; }
}
@media (max-width: 640px) {
  .prog-hero__dots { display: none; }
  .prog-board__lead { font-size: 21px; line-height: 27px; }
  .prog-board__lead br, .prog-board__sub br { display: none; }
  .prog-board__grid { grid-template-columns: 1fr; }
  .p4-card { padding: 44px 26px; }
  .p4-card h3 { font-size: 28px; line-height: 32px; }
  .p4-card p:not(.mono) { margin-top: 20px; }
  .prog-steps__body h2 { font-size: 30px; line-height: 38px; }
  .prog-steps__collage { height: 380px; }
  .prog-steps__collage .s1 { width: 78%; height: 220px; max-width: none; }
  .prog-steps__collage .s2 { left: auto; right: 0; top: 160px; width: 52%; height: 220px; }
  .prog-faq__list summary { padding: 15px 18px; }
  .prog-faq__list details p { padding: 0 18px 18px; }
}

/* =========================================================
   FONDS PLEINE LARGEUR
   Les fonds colorés (blocs) s'étendent sur toute la largeur de l'écran,
   avec 10px de marge à gauche et à droite. Le contenu garde sa largeur
   maximale (1260px) et son alignement : seul le fond déborde.
   --vw est mis à jour par script.js (largeur réelle, sans la barre de défilement).
   ========================================================= */
:root {
  --vw: 100vw;
  --edge: max(0px, calc((var(--vw) - 2 * var(--gutter) - var(--maxw)) / 2));
}
body { overflow-x: clip; }
.card--sable { --box-bg: var(--sable); }
.card--dark, .conviction { --box-bg: var(--bordeaux); }
.audit-band { --box-bg: var(--lime); }

@media (min-width: 1281px) {
  /* Le bloc garde sa largeur de contenu ; son fond est prolongé de chaque côté */
  .card {
    overflow: visible;
    box-shadow: 0 0 0 var(--edge) var(--box-bg, transparent);
    clip-path: inset(0 calc(-1 * var(--edge)) round var(--radius));
  }
  /* Photos et vidéos de fond : elles couvrent aussi la partie prolongée */
  .hero__img, .cta-band__img, .principles__bg, .conviction__shade {
    left: calc(-1 * var(--edge)); right: auto; width: calc(100% + 2 * var(--edge)); max-width: none;
  }
  .conviction__video { right: calc(-1 * var(--edge)); width: calc(72% + var(--edge)); max-width: none; }
  /* Points décoratifs : toujours dans les coins du fond */
  .card > .corner.tl, .card > .corner.bl { left: calc(20px - var(--edge)); }
  .card > .corner.tr, .card > .corner.br { right: calc(20px - var(--edge)); }
  .hero__dots, .audit-band__dots, .prog-hero__dots {
    left: calc(20px - var(--edge)); width: calc(100% - 40px + 2 * var(--edge)); max-width: none;
    object-fit: none; object-position: -9999px 0;
    background: url("assets/dot-white.svg") left center / 20px 20px no-repeat,
                url("assets/dot-white.svg") right center / 20px 20px no-repeat;
  }
  /* Carrousels : les cartes défilent jusqu'au bord du fond */
  .team__track { margin-right: calc(-1 * var(--edge)); padding-right: calc(var(--pad) + var(--edge)); }
  /* Hero du programme : le bloc texte garde sa largeur maximale (722px, comme dans la maquette),
     seule la photo s'étend pour occuper le reste de la largeur */
  .prog-hero { max-width: none; grid-template-columns: minmax(0, 722px) minmax(0, 1fr); }
  .prog-hero__text { box-shadow: none; clip-path: none; overflow: hidden; }
  .prog-hero__dots { left: 20px; width: calc(100% - 40px); max-width: none; }
  /* Barre du menu */
  .header__bar { max-width: none; padding-left: calc(var(--pad) + var(--edge)); padding-right: calc(10px + var(--edge)); }
}
