/* Culture en deck · direction Han, 17 nov. 2026.
   Neuf scènes, textes inchangés. Inter 200 / 400 / 500 (pas de coupe 300 :
   le navigateur résout 300 vers 200). Ease d'entrée : cubic-bezier(.16,1,.3,1).
   Aucun fond crème. Le rail d'en-tête (compteur à 12 px de Menu) n'est pas touché.
   Scène 1 sans œuvre. data-oeuvre sur #ouverture montre .cu-bleed (voile marin). */

html.deck section.cu-deck{
  padding: calc(var(--hh, 72px) + 28px) var(--m) 24px !important;
  box-sizing: border-box;
  overflow: hidden;
}
html.deck main > .endw{ display: none; }
html:not(.deck) .cu-deck,
html.reduced .cu-deck{ min-height: 100svh; }

.cu-deck i,
.cu-deck em{ font-style: normal; }
#collection .ap-gal .im{ background: #fff; }

/* Les fondus [data-rv] de la page longue ne jouent pas dans le deck :
   l'entrée est la timeline de la scène. */
html.deck .cu-deck [data-rv]{
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- 1 · ouverture, marin + glow, trois lignes, aucune œuvre ---------- */
html.deck #ouverture.cu-deck{
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cu-open{ color: #fff; background: #010C30; }
.cu-open .cu-bleed{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #010C30;
}
.cu-open .cu-bleed[hidden]{ display: none !important; }
.cu-open[data-oeuvre] .cu-bleed{ display: block !important; }
.cu-open .cu-bleed picture,
.cu-open .cu-bleed img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cu-open .cu-veil{
  position: absolute;
  inset: 0;
  background: rgba(1,12,48,.72);
}
.cu-open .cu-in,
.cu-open .cu-lead{ position: relative; z-index: 2; }
.cu-open .cu-in{ padding: calc(var(--hh, 72px) + 12px) var(--m) 0; }
.cu-open h1{
  font-weight: 200;
  font-size: clamp(64px, 10vw, 168px);
  line-height: 1;
  letter-spacing: -.045em;
  max-width: none;
  width: 100%;
  margin-top: 8px;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.cu-open h1 .ln1{
  display: block;
  overflow: hidden;
  /* le masque ne doit pas manger le jambage du g */
  padding-bottom: .12em;
}
.cu-open h1 .ln1 > span{ display: block; }
html.deck.js .cu-open:not(.is-in) h1 .ln1 > span{ transform: translateY(110%); }
html.deck.js .cu-open.is-in:not(.is-set) h1 .ln1 > span{
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * .12s);
}
.cu-open .sigl{ margin-top: 18px; }
.cu-open .cu-lead{
  width: min(34ch, 36%);
  margin: 0 var(--m) 32px auto;
  max-width: none;
}
.cu-open .cu-lead p{
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,.86);
}
.cu-open .cu-lead .ln{
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 16px;
  color: #fff;
}

/* ---------- 2 · conviction, blanc, quatre lignes, hairline marine ---------- */
#conviction{ color: #010C30; background: #fff; }
html.deck #conviction{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--hh, 72px) + 8px) !important;
  padding-bottom: 12px !important;
}
html.deck .cu-deck .ap-hd{
  grid-template-columns: 1fr;
  margin-bottom: 16px;
  gap: 0;
}
html.deck .cu-deck .ap-k{ margin-bottom: 8px; }
html.deck #conviction .ap-t2{
  font-weight: 200;
  font-size: clamp(28px, 3vw, 48px);
  max-width: none;
  line-height: 1.02;
}
.cu-pairs{
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cu-cv{
  border-top: 1px solid rgba(1,12,48,.28);
  padding: 6px 0 4px;
}
.cu-cv .ap-big{
  margin: 0;
  font-weight: 300;
  font-size: clamp(22px, min(4vw, 4.5svh), 72px);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: none;
}
.cu-cv .ap-p{
  width: 40%;
  margin: 4px 0 0 auto;
  font-size: 16px;
  line-height: 1.35;
  text-align: right;
  max-width: none;
}
.cu-rule{
  display: block;
  flex: 0 0 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  border: 0;
  background: #010C30;
}

/* ---------- 3 · citation, œuvre plein cadre, voile 72 %, colonne 62 % ---------- */
#citation{
  color: #fff;
  background: #010C30;
}
html.deck #citation{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--hh, 72px) + 24px) !important;
}
#citation .cu-bleed{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #010C30;
}
#citation .cu-bleed picture,
#citation .cu-bleed img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#citation .cu-veil{
  position: absolute;
  inset: 0;
  background: rgba(1,12,48,.72);
}
#citation .cu-q{
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 22em;
}
#citation .ap-q{
  font-weight: 200;
  font-size: clamp(40px, 5.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: none;
  color: #fff;
}
#citation .ap-q .wd{ display: inline-block; }
@media (min-width: 900px){
  #citation .cu-q{ max-width: 62%; }
}
#citation .ap-q-by{
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-top: 22px;
  font-size: 16px;
}
#citation .ap-q-by::before{ display: none; }
#citation .ap-q-by b{ font-weight: 400; color: #fff; }
#citation .ap-q-by b::after{ content: ",\00a0"; font-weight: 400; }
#citation .ap-q-by span{ color: rgba(255,255,255,.72); }
#citation .sigl{ position: relative; z-index: 2; margin-top: 16px; }
html.deck #citation .sigl i{ transition: none; }

/* ---------- 4 · chiffres, dégradé Milieu ---------- */
#chiffres{
  color: #fff;
  background: linear-gradient(115deg, #3713D0 0%, #86267A 38%, #B0304F 68%, #D43829 100%);
}
html.deck #chiffres{
  display: flex;
  flex-direction: column;
}
html.deck #chiffres .ap-stats{
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  grid-template-areas:
    "n1 n2 n3"
    "c1 c2 c3";
  column-gap: 32px;
  row-gap: 28px;
  margin: auto 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  align-items: end;
}
html.deck #chiffres .ap-stats::after{ content: none !important; }
html.deck #chiffres.cu-deck .ap-stat{
  display: contents;
}
#chiffres.cu-deck .ap-stat:first-child{
  padding: 0;
  margin: 0;
  border: 0;
}
#chiffres.cu-deck .ap-stat:nth-child(1) .v{
  grid-area: n1;
  justify-self: start;
  align-self: end;
  font-weight: 200;
  font-size: clamp(88px, 12vw, 200px);
  line-height: .82;
  letter-spacing: -.055em;
  margin: 0;
  white-space: nowrap;
  color: #fff;
}
#chiffres.cu-deck .ap-stat:nth-child(1) .k{ grid-area: c1; align-self: start; margin-top: 0; }
#chiffres.cu-deck .ap-stat:nth-child(2) .k{ grid-area: c2; align-self: start; }
#chiffres.cu-deck .ap-stat:nth-child(3) .k{ grid-area: c3; align-self: start; }
#chiffres.cu-deck .ap-stat:nth-child(2) .v,
#chiffres.cu-deck .ap-stat:nth-child(3) .v{
  font-weight: 200;
  font-size: 8vw;
  line-height: .85;
  letter-spacing: -.045em;
  color: #fff;
  white-space: nowrap;
  align-self: end;
}
#chiffres.cu-deck .ap-stat:nth-child(2) .v{ grid-area: n2; }
#chiffres.cu-deck .ap-stat:nth-child(3) .v{ grid-area: n3; }
#chiffres .ap-k,
#chiffres h2.ap-k{ color: #fff; }
#chiffres .ap-stat .k{ font-size: 16px; line-height: 1.4; color: rgba(255,255,255,.88); }
/* Le premier .k (culture-3x1, .72) et .88 restent sous 4,5:1 sur le Corail du dégradé.
   Le blanc plein y est à 4,78:1. */
#chiffres.cu-deck .ap-stat .k,
#chiffres.cu-deck .ap-stat:first-child .k{ color: #fff; }
#chiffres .ap-stat .k b{
  display: block;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #fff;
}

/* ---------- 5 · engagements, quatre colonnes pleine hauteur ---------- */
#engagements{ color: #fff; background: #010C30; }
html.deck #engagements{
  display: flex;
  flex-direction: column;
}
/* Revue Han C1 / C4 : le bloc est centré dans la scène dès 768.
   Sous 768 le contenu dépasse et défile depuis le haut. */
@media (min-width: 768px){
  html.deck #engagements{
    display: grid;
    align-content: center;
    overflow-x: hidden;
    overflow-y: auto;
  }
  html.deck #engagements .ap-cards{ flex: none; width: 100%; }
}
html.deck #engagements .ap-t2{
  font-weight: 200;
  font-size: clamp(28px, 3vw, 48px);
  max-width: none;
}
html.deck #engagements .ap-cards{
  display: flex !important;
  flex: 1;
  min-height: 0;
  gap: 0;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  align-items: stretch;
}
html.deck #engagements .ap-cards::after{ content: none !important; }
html.deck #engagements .ap-card{
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 18px 4px;
  gap: 0;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  scroll-snap-align: unset !important;
  transition: flex-grow .55s cubic-bezier(.16,1,.3,1);
}
html.deck #engagements .ap-card:first-child,
html.deck #engagements .ap-card.is-off + .ap-card{ border-left: 0; }
html.deck #engagements .ap-card:hover{ flex-grow: 1.4; }
html.deck #engagements .ap-card.is-off{ display: none; }
html.deck #engagements .ap-card .n{
  font-weight: 200;
  font-size: clamp(96px, 8vw, 160px);
  line-height: 1;
  letter-spacing: -.05em;
  color: #fff;
}
html.deck #engagements .ap-card h3{
  margin-top: 24px;
  font-weight: 200;
  font-size: clamp(22px, 1.7vw, 32px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
html.deck #engagements .ap-card p{
  font-size: 16px;
  line-height: 1.4;
  margin-top: 10px;
  color: rgba(255,255,255,.78);
}

/* ---------- 6 · collection, vitrine 70vh, bande pleine largeur ---------- */
#collection{ color: #010C30; background: #fff; }
html.deck #collection{
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: calc(var(--hh, 88px) + 2px) !important;
  padding-bottom: 6px !important;
}
html.deck #collection .ap-col-hd{ margin-bottom: 0; align-items: flex-end; }
html.deck #collection .ap-col-ctl button{ width: 36px; height: 36px; }
html.deck #collection .ap-k{ margin-bottom: 0; }
html.deck #collection .ap-t2{
  font-weight: 200;
  font-size: clamp(22px, 2vw, 32px);
  max-width: none;
  line-height: .95;
  margin: 0;
}
html.deck #collection .cu-colp{
  margin: 2px 0 6px;
  max-width: none;
  font-size: 16px;
  line-height: 1.25;
}
html.deck #collection .ap-gal{
  flex: 0 0 auto;
  min-height: 0;
  align-items: flex-start;
  touch-action: pan-x;
  margin: 0 calc(var(--m) * -1) 2px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-snap-type: x mandatory;
}
html.deck #collection .ap-gal.is-drag{ cursor: grabbing; scroll-snap-type: none; }
html.deck #collection .ap-gal{
  overflow-y: visible;
  align-items: flex-start;
}
html.deck #collection .ap-gal figure{
  height: auto;
  display: flex;
  flex-direction: column;
}
html.deck #collection .ap-gal .im{
  flex: 0 0 auto;
  height: min(70vh, max(60vh, calc(100svh - 372px)));
  min-height: 60vh;
  max-height: 70vh;
  width: auto;
  background: #fff;
  overflow: hidden;
}
html.deck #collection .ap-gal img{
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
}
html.deck #collection .ap-gal figcaption{ font-size: 16px; max-width: 36ch; margin-top: 4px; line-height: 1.2; }
html.deck #collection .ap-gal figcaption b,
html.deck #collection .ap-gal figcaption i,
html.deck #collection .ap-gal figcaption span{ font-size: 16px; line-height: 1.2; font-style: normal; margin: 0; }
html.deck #collection .ap-col-ft{ margin-top: 4px; }
html.deck #collection .ap-col-ft .n{ font-weight: 200; font-size: 36px; }
html.deck #collection .ap-col-ft .ln{ font-size: 16px; min-height: 36px; display: inline-flex; align-items: center; }
html.deck #collection .ap-col-ft .cu-colk{ font-size: 16px; }

/* ---------- 7 · engagement personnel, split 50/50 ---------- */
#engagement-personnel{ color: #fff; background: #010C30; }
html.deck #engagement-personnel{
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 !important;
  align-items: stretch;
}
#engagement-personnel .cu-pane{
  margin: 0;
  position: relative;
  min-height: 52vh;
  overflow: hidden;
  background: #010C30;
}
#engagement-personnel .cu-pane picture,
#engagement-personnel .cu-pane img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#engagement-personnel .cu-pane img{
  transform: scale(1.7);
  transform-origin: center;
}
html.deck #engagement-personnel .cu-pane{ min-height: 0; height: 100%; }
html.deck #engagement-personnel .cu-pane picture{
  position: absolute;
  inset: 0;
}
#engagement-personnel .cu-side{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: calc(var(--hh, 72px) + 24px) var(--m) 28px 32px;
}
html.deck #engagement-personnel .cu-pq{
  font-weight: 200;
  font-size: clamp(22px, 3.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.03em;
  max-width: none;
}
html.deck #engagement-personnel .ap-p{
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.45;
  max-width: 42ch;
  color: rgba(255,255,255,.82);
}

/* ---------- 8 · bénéficiaires, années en affiche, points, bandeau ---------- */
#beneficiaires{ color: #010C30; background: #fff; }
html.deck #beneficiaires{
  display: flex;
  flex-direction: column;
  min-height: 0;
}
html.deck #beneficiaires .cu-dons-hd{ margin-bottom: 12px; }
html.deck #beneficiaires .cu-dons-hd .ap-p{ font-size: 16px; line-height: 1.4; }
#beneficiaires .ap-years{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  flex: 1;
  align-content: start;
}
#beneficiaires .ap-years::after{ content: none !important; }
#beneficiaires .ap-yc{
  flex: none !important;
  width: auto !important;
  min-width: 0;
  border-top: 0;
  scroll-snap-align: unset !important;
}
#beneficiaires .ap-yc.is-off,
#beneficiaires .ap-clients.is-off{ display: none; }
#beneficiaires .ap-yc .y{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
#beneficiaires .ap-yc .y b{
  font-weight: 200;
  font-size: clamp(64px, 10vw, 160px);
  line-height: .82;
  letter-spacing: -.055em;
  color: #010C30;
}
#beneficiaires .ap-yc .y span{
  color: rgba(1,12,48,.62);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.cu-dots{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 8px;
  min-height: 8px;
}
.cu-dots i{
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #010C30;
}
#beneficiaires .ap-yc ul{ margin-top: 4px; }
#beneficiaires .ap-yc li{
  border-top-color: rgba(1,12,48,.12);
  font-size: 16px;
  padding: 5px 0;
  line-height: 1.3;
}
#beneficiaires .ap-yc li .ln{ color: #010C30; }
#beneficiaires .ap-clients{
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(1,12,48,.16);
  overflow: hidden;
}
#beneficiaires .ap-clients p.ap-k{ color: rgba(1,12,48,.62); font-size: 16px; }
/* Les noms sont marins. .ap-clients p et ses span sont blancs (fond sombre d'À propos). */
#beneficiaires .ap-clients p:not(.ap-k),
#beneficiaires .ap-clients p span{
  color: #010C30;
  max-width: none;
}
#beneficiaires .ap-clients p span[aria-hidden]{
  color: rgba(1,12,48,.45);
}
#beneficiaires .cu-marq-clip{
  overflow: hidden;
  margin: 0;
  padding: 0 0 4px;
  min-height: 1.35em;
}
#beneficiaires .cu-marq{
  display: flex;
  width: max-content;
  max-width: none;
  margin: 0;
  color: #010C30;
  font-weight: 200;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.3;
  letter-spacing: -.02em;
  white-space: nowrap;
  transform: none;
}
#beneficiaires .cu-marq > span{
  padding-right: 64px;
}
html.deck #beneficiaires .cu-marq{
  animation: cu-marq 42s linear infinite;
}
html.deck #beneficiaires .ap-clients:hover .cu-marq,
html.deck #beneficiaires .cu-marq-clip:hover .cu-marq{
  animation-play-state: paused;
}
@keyframes cu-marq{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

html.deck .cu-deck{ --rule: rgba(1,12,48,.16); --rule-d: rgba(255,255,255,.18); }

@media (max-width: 900px){
  .cu-open .cu-lead{ width: min(36ch, 70%); }
  .cu-cv .ap-p{ width: 62%; }
  html.deck #chiffres .ap-stats{
    grid-template-areas:
      "n1 n1 n1"
      "c1 c1 c1"
      "n2 n2 n2"
      "c2 c2 c2"
      "n3 n3 n3"
      "c3 c3 c3";
  }
}
@media (max-width: 700px){
  html.deck #engagement-personnel{
    grid-template-columns: 1fr;
    grid-template-rows: min(42vh, 320px) 1fr;
  }
  #engagement-personnel .cu-side{ padding: 18px var(--m) 16px; }
}
@media (max-width: 375px){
  html.deck section.cu-deck{ padding-top: calc(var(--hh, 64px) + 8px) !important; padding-bottom: 12px !important; }
  .cu-open h1{
    font-size: 13vw;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }
  .cu-open .cu-in{ padding: calc(var(--hh, 64px) + 8px) var(--m) 0; }
  .cu-open .cu-lead{ width: min(34ch, 86%); margin-bottom: 16px; }
  html.deck #conviction{ justify-content: flex-start; }
  .cu-cv{ padding: 1px 0 0; }
  .cu-cv .ap-big{ font-size: 22px; line-height: 1.05; }
  .cu-cv .ap-p{ width: 78%; margin-top: 2px; line-height: 1.28; }
  html.deck #conviction .ap-t2{ font-size: 26px; line-height: 1; }
  #citation .ap-q{ font-size: 40px; }
  #chiffres.cu-deck .ap-stat:nth-child(1) .v{ font-size: 120px; margin-left: -.2em; }
  #chiffres.cu-deck .ap-stat:nth-child(2) .v,
  #chiffres.cu-deck .ap-stat:nth-child(3) .v{ font-size: 8vw; }
  html.deck #chiffres .ap-stats{ gap: 8px 12px; }
  html.deck #engagements .ap-card .n{ font-size: 72px; }
  html.deck #engagements .ap-card{ padding: 4px 10px 2px; }
  html.deck #engagements .ap-card h3{ font-size: 18px; }
  html.deck #engagements .ap-card p{ margin-top: 6px; }
  html.deck #collection .ap-gal figure{ flex: 0 0 auto; max-width: none; }
  html.deck #collection .ap-gal .im{ max-height: 42vh; }
  html.deck #collection .cu-colp{ margin-bottom: 8px; }
  html.deck #collection .ap-col-ft{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin-top: 6px;
    align-items: center;
  }
  html.deck #collection .ap-col-ft .ln{ grid-column: 1 / -1; min-height: 44px; }
  #beneficiaires .ap-years{ grid-template-columns: 1fr; }
  #beneficiaires .ap-yc .y b{ font-size: 64px; }
  html.deck #beneficiaires .cu-dons-hd{ margin-bottom: 8px; }
  html.deck #engagement-personnel .cu-pq{ font-size: 22px; }
}

@media (prefers-reduced-motion: reduce){
  html.deck.js .cu-open h1 .ln1 > span{ transform: none !important; transition: none !important; }
  html.deck #engagements .ap-card,
  html.deck #engagements .ap-card:hover{ flex-grow: 1; transition: none; }
  #beneficiaires .cu-marq{ animation: none !important; transform: none !important; }
  html.deck #collection .ap-gal figure:hover img{ transform: none; }
}
html.reduced .cu-open h1 .ln1 > span{ transform: none !important; }
html.reduced #engagements .ap-card:hover{ flex-grow: 1; }
html.reduced #beneficiaires .cu-marq,
html.reduced #beneficiaires .ap-clients p:not(.ap-k),
html:not(.deck) #beneficiaires .cu-marq{
  animation: none !important;
  transform: none !important;
  white-space: normal;
  width: auto;
  display: block;
  color: #010C30;
}
html.reduced #beneficiaires .cu-marq > span + span,
html:not(.deck) #beneficiaires .cu-marq > span + span{ display: none; }

/* Revue Han C2 : hors deck, les scènes n'ont pas le padding du deck.
   Les valeurs alignées à droite (align-self:end) sortaient de l'écran. */
html:not(.deck) #chiffres.cu-deck,
html:not(.deck) #engagements.cu-deck,
html:not(.deck) #beneficiaires.cu-deck{
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
@media (min-width: 768px){
  html:not(.deck) #chiffres.cu-deck,
  html:not(.deck) #engagements.cu-deck,
  html:not(.deck) #beneficiaires.cu-deck{
    padding-left: 40px;
    padding-right: 40px;
  }
}
html:not(.deck) #chiffres.cu-deck .ap-stat .v{
  font-size: clamp(56px, 14vw, 120px);
  line-height: 1;
  max-width: 100%;
  align-self: start;
  justify-self: start;
  margin-left: 0;
  margin-top: 12px;
}

/* Lot C · Culture FR seulement (ce fichier n'est pas chargé en anglais).
   Sous 768 : une colonne, le « 3×1 % » tient dans 22 vw, les scènes
   qui dépassent défilent à l'intérieur, comme À propos. De 768 à 1023 :
   deux colonnes pour les engagements. */
@media (max-width: 767px){
  #chiffres .ap-stats{
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }
  html.deck #chiffres .ap-stats{
    grid-template-columns:1fr !important;
    grid-template-areas: none !important;
    margin: 12px 0 0 !important;
    row-gap: 28px;
    align-items: start;
  }
  /* Mêmes filets que la page EN : trait blanc au-dessus de chaque chiffre,
     trait sous le premier bloc, écart de grille de 28 px. */
  html.deck #chiffres.cu-deck .ap-stat{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 0;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.8);
  }
  html.deck #chiffres.cu-deck .ap-stat:first-child{
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  #chiffres.cu-deck .ap-stat:nth-child(1) .v{
    font-size: min(clamp(88px, 12vw, 200px), 22vw);
    margin-left: 0;
    line-height: 1;
    max-width: 100%;
  }
  /* À 390 les 40 % et 350 $ restaient à 8 vw (31 px). Même taille qu'en anglais. */
  #chiffres.cu-deck .ap-stat:nth-child(2) .v,
  #chiffres.cu-deck .ap-stat:nth-child(3) .v{
    font-size: clamp(52px, min(17vw, 11svh), 72px);
    line-height: .88;
  }
  html.deck #engagements .ap-cards,
  html.reduced #engagements .ap-cards,
  html:not(.deck) #engagements .ap-cards{
    display: grid !important;
    grid-template-columns: 1fr !important;
    flex: none;
    width: auto;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    gap: 0;
  }
  html.deck #engagements .ap-card,
  html.reduced #engagements .ap-card,
  html:not(.deck) #engagements .ap-card{
    display: flex;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    flex: none !important;
    margin: 0;
    padding: 16px 0 12px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.28);
    border-radius: 0;
    scroll-snap-align: unset !important;
  }
  #engagements .ap-card h3,
  #engagements .ap-card p{ overflow-wrap: break-word; max-width: 100%; }
  #beneficiaires .ap-years{
    grid-template-columns: 1fr !important;
  }
  #beneficiaires .ap-yc .y b{
    font-size: clamp(48px, 14vw, 96px);
    max-width: 100%;
  }
  #beneficiaires .ap-yc,
  #beneficiaires .ap-yc ul,
  #beneficiaires .ap-yc li{
    min-width: 0;
    max-width: 100%;
  }
  #beneficiaires .ap-yc li .ln{
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  html.deck #chiffres,
  html.deck #engagements,
  html.deck #beneficiaires{
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  html.deck #chiffres::-webkit-scrollbar,
  html.deck #engagements::-webkit-scrollbar,
  html.deck #beneficiaires::-webkit-scrollbar{ display: none; }
  html.deck #beneficiaires .ap-years,
  html.deck #engagements .ap-cards{ flex: none; }
}
@media (min-width: 768px) and (max-width: 1023px){
  html.deck #engagements .ap-cards,
  html.reduced #engagements .ap-cards,
  html:not(.deck) #engagements .ap-cards{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    flex: none;
    width: auto;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    gap: 12px 20px;
  }
  html.deck #engagements .ap-card,
  html.reduced #engagements .ap-card,
  html:not(.deck) #engagements .ap-card{
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    flex: none !important;
    border-left: 0;
    scroll-snap-align: unset !important;
  }
  #engagements .ap-card h3,
  #engagements .ap-card p{ overflow-wrap: break-word; }
}
/* Revue v2 · C1 : à 1440 le flex:1 des cartes annule align-content:center.
   Le padding du deck (en-tête + 28 px en haut, 24 px en bas) laissait le bloc
   trop haut. Un padding égal, de la hauteur de l'en-tête, centre le bloc
   dans la scène entre 1280 et 1599. */
@media (min-width:1280px) and (max-width:1599px){
  #engagements{display:grid;align-content:center;min-height:100svh}
  html.deck #engagements{
    display:grid;
    align-content:center;
    min-height:100svh;
    height:100%;
    grid-template-columns:minmax(0,1fr);
    padding-top:var(--hh, 88px) !important;
    padding-bottom:var(--hh, 88px) !important;
  }
  /* Sans largeur définie, la grille se réduit au padding et le texte s'empile :
     deck.js ajoute alors une marge basse qui laisse le bas vide. */
  html.deck #engagements .ap-cards{flex:none;width:100%!important;min-width:0;justify-self:stretch}
  html.deck #engagements .ap-card{flex:1 1 0;width:auto!important;min-width:0}
}
/* Revue v2 · C3 : le margin-top:auto et le min-height des cartes écartent le texte. */
@media (max-width:767px){
  #engagements .ap-card{display:block;min-height:0}
  html.deck #engagements .ap-card,
  html.reduced #engagements .ap-card,
  html:not(.deck) #engagements .ap-card{display:block;min-height:0}
  #engagements .ap-card h3{margin-top:12px}
  #engagements .ap-card p{margin-top:12px}
}
/* Sous 600 px, le « 3×1 % » du deck (22 vw) et les deux autres chiffres
   prennent la taille de la page anglaise (72 px, puis le plafond 17 vw). */
@media (max-width: 600px){
  #chiffres.cu-deck .ap-stat:nth-child(1) .v{
    font-size: 72px;
    line-height: .9;
  }
}
