/* =========================================================
   LE MUR DE SEIGNOSSE — feuille de style publique
   Crème, bleu nuit, jaune, corail
   ========================================================= */
:root, :host {
  --cream: #F0EAE6;
  --cream-2: #E5DDD7;
  --line: #D9CDB8;
  --ink: #000000;
  --muted: #5A6670;
  --yellow: #F3D3D9;   /* accent : rose */
  --coral: #EE6F4B;
  --blue: #2D4BD6;
  --lime: #B7D64A;
  --sky: #CFE3F2;
  --radius: 16px;
  --font-title: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --max: 1360px;
  --gutter: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Empêche le rebond vertical au-delà du début et de la fin des pages. */
html { scroll-behavior: smooth; overscroll-behavior-y: none; }
body {
  overscroll-behavior-y: none;
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 900; line-height: 1.02; margin: 0; letter-spacing: -0.03em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
/* sélection de texte aux couleurs du site */
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--gutter);
  /* fond rose sur toute la largeur de l'écran */
  background: var(--cream); color: var(--ink); box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none; display: block; }
.brand-logo { height: 56px; width: auto; filter: brightness(0); }
.brand-text {
  display: flex; flex-direction: column;
  font: 900 21px/1 var(--font-title); letter-spacing: -0.02em;
}
.brand-text::after {
  content: ''; display: block; height: 6px; width: 140px; margin-top: 6px;
  background: var(--yellow); border-radius: 6px; transform: rotate(-2deg);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { text-transform: uppercase; text-decoration: none; font-family: var(--font-title); font-weight: 800; font-size: .88rem; letter-spacing: .01em; padding: 10px 16px; border-radius: 4px; color: var(--ink); }
.site-nav a:hover { background: rgba(0, 0, 0, .07); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--ink); }
.site-nav { align-items: center; }
.site-nav .nav-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.site-nav .nav-icon svg { width: 21px; height: 21px; }
.site-nav .nav-icon:first-of-type { margin-left: 6px; }

/* ---------- Page Vidéos ---------- */
.vpage { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 96px; }
.vpage-head { margin-bottom: clamp(24px, 4vw, 40px); }
.vpage-head h1 { font-size: clamp(2.6rem, 8vw, 6rem); line-height: .95; letter-spacing: -0.04em; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.vcard { margin: 0; }
.vcard-media { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111; }
.vcard-media img, .vcard-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.vcard-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.vcard-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='%23000'/%3E%3C/svg%3E") center / 30px no-repeat; transition: transform .2s; }
.vcard-play:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.vcard-play img { transition: transform .5s; }
.vcard-play:hover img { transform: scale(1.03); }
.vcard figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 12px; }
.vcard-title { font: 900 clamp(1.1rem, 1.8vw, 1.4rem)/1.1 var(--font-title); text-decoration: none; }
.vcard-title:hover { text-decoration: underline; }
.vcard-meta { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Accueil : hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto 1fr; min-height: max(420px, 90svh);
}
.hero .site-header {
  position: relative; z-index: 2; width: 100%; align-self: start; justify-content: center;
  background: transparent; box-shadow: none; clip-path: none; color: inherit;
}
.hero .site-nav { justify-content: center; column-gap: clamp(4px, calc(2vw - 8px), 24px); }
.hero-brand { position: relative; z-index: 2; justify-self: center; }
.hero-brand .brand-logo { width: clamp(180px, 28vw, 400px); height: auto; }
.hero .site-nav a { color: inherit; }
.hero .site-nav a:hover { background: rgba(128, 128, 128, .22); }
.hero:is(.is-video-playing, :has(.hero-fallback), :has(.hero-video)) .brand-logo { filter: brightness(0) invert(1); }
.hero-fallback, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero.is-video-playing .hero-video { opacity: 1; }
/* fond noir dès le chargement quand une vidéo ou une image est prévue (pas de flash clair avant la vidéo) */
.hero:has(.hero-video, .hero-fallback) { background: #000; }
.hero:is(.is-video-playing, :has(.hero-fallback), :has(.hero-video)) { color: #fff; }
.hero:is(.is-video-playing, :has(.hero-fallback))::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .66), rgba(0, 0, 0, .12) 50%);
  z-index: 1; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; place-items: end center; padding: 24px var(--gutter);
}
.btn-scroll {
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  background: var(--ink); color: var(--cream);
  padding: 0 22px; border-radius: 99px; text-decoration: none; font-family: var(--font-title); font-size: .82rem; font-weight: 900; letter-spacing: .02em;
}
.btn-scroll { transition: background .2s, color .2s, transform .2s; }
.btn-scroll svg { width: 16px; height: 16px; transition: transform .25s; }
/* survol : rose du site, texte noir, flèche qui descend vers les projets */
.btn-scroll:hover, .btn-scroll:focus-visible { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.btn-scroll:hover svg, .btn-scroll:focus-visible svg { transform: translateY(3px); }
@media (prefers-reduced-motion: reduce) { .btn-scroll, .btn-scroll svg { transition: none; } .btn-scroll:hover, .btn-scroll:hover svg { transform: none; } }

/* ---------- Accueil : galerie ---------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 96px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.count { color: var(--muted); font-weight: 500; }
.empty { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--cream-2); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { width: 100%; height: 100%; background: var(--sky); }
.card-badges { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(16, 41, 58, .75); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 9px; border-radius: 99px; }
.badge svg { width: 15px; height: 15px; }
.card-body { padding: 14px 2px 0; }
.card-body h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.card-sub { margin: 6px 0 0; font-size: .95rem; }
.card-meta { margin: 6px 0 0; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Page projet ---------- */
.p-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.p-head {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(32px, 4vw, 56px);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(28px, 4vw, 64px);
}
.p-intro { flex: 999 1 560px; min-width: 0; }
/* sur ordinateur, le titre et les liens ne dépassent pas la moitié de la page (la bio garde toute la largeur) */
@media (min-width: 1024px) { .p-intro .p-title { max-width: 50%; } }
.p-side { flex: 1 1 320px; }
.p-media { flex: 1.25 1 520px; min-width: 0; }
.p-head:has(.p-media) .p-title { font-size: clamp(3rem, 9.5vw, 7.5rem); }
/* Avec vidéo : moitié texte / moitié vidéo bord à bord, collée à la bande photos */
.p-head:has(.p-media) {
  max-width: none; padding: 0; gap: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
}
.p-head:has(.p-media) .p-intro {
  padding: clamp(16px, 3vw, 40px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 56px)
           max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.p-media .video-frame { border-radius: 0; }
.video-caption { margin: 0 0 14px; color: var(--ink); font: 700 1rem/1.3 var(--font-title); }
.p-video .video-frame + .video-frame, .p-video .video-frame + .video-caption { margin-top: clamp(28px, 4vw, 48px); }
.video-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px clamp(16px, 2vw, 24px); background: var(--ink); }
.video-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 2px solid rgba(251, 244, 232, .35); border-radius: 99px; background: transparent;
  color: var(--cream); font: 700 .85rem/1 var(--font-body); cursor: pointer;
}
.video-chip svg { width: 12px; height: 12px; }
.video-chip:hover { border-color: var(--cream); }
.video-chip.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: .95rem; margin-bottom: clamp(20px, 3vw, 36px); }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { text-decoration: underline; }

.p-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.p-edition { font: 700 .95rem/1 var(--font-title); background: var(--yellow); padding: 6px 12px; border-radius: 99px; }
.p-place { display: flex; align-items: center; max-width: 100%; gap: 8px; margin: clamp(2px, .5vw, 8px) 0 0; font-size: clamp(.85rem, 1.2vw, 1rem); }
.p-place svg { width: 15px; height: 15px; flex: none; }
.p-meta.p-festival { font-family: var(--font-title); font-weight: 900; letter-spacing: .06em; }
.p-meta { font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.p-title { font-size: clamp(3rem, 9.5vw, 7.5rem); line-height: .95; letter-spacing: -0.04em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.p-title--long { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.02; }
.p-with { margin: 14px 0 0; font: 500 clamp(1.05rem, 2vw, 1.5rem)/1.25 var(--font-title); letter-spacing: -0.01em; }
.p-subtitle { margin: 12px 0 0; font-size: 1.15rem; color: var(--muted); }
.p-desc { margin-top: 20px; max-width: 60ch; font-size: 1.1rem; }
.p-desc p { margin: 0 0 1em; }
.p-desc p:last-child { margin-bottom: 0; }

.p-info { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
/* liens sous le titre */
.p-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gutter); margin-top: clamp(20px, 3vw, 32px); }
.p-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 99px; text-decoration: none; font-weight: 700; font-size: .95rem;
}
.p-link-name { font-weight: 500; color: var(--muted); }
.p-link:hover { background: var(--ink); color: var(--cream); }
.p-link:hover .p-link-name { color: inherit; }
.p-side .p-desc { margin-top: 0; }
.p-bio { padding-top: clamp(40px, 6vw, 72px); }
.p-head-bio { margin-top: clamp(20px, 3vw, 32px); max-width: none; font-size: 1.07rem; line-height: 1.65; color: var(--muted); }
.p-head-bio a { color: var(--ink); }
.p-linksec { padding-top: clamp(28px, 4vw, 48px); }
.p-linksec .p-links { margin-top: 0; }
.p-linksec + .p-video { margin-top: 0; }
.p-bio .p-desc { margin: 0; max-width: none; font-size: 1.07rem; line-height: 1.65; color: var(--muted); }
.p-bio .p-desc a { color: var(--ink); }
.p-bio .p-desc ul, .p-bio .p-desc ol { margin: 0 0 1em; padding-left: 1.3em; }
.p-bio + .p-video { margin-top: 0; }
.p-facts { align-self: stretch; margin: 0; border-top: 2px solid var(--ink); }
.p-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.p-facts dt { font-size: .9rem; color: var(--muted); }
.p-facts dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.p-facts dd a { text-decoration: none; }
.p-facts dd a:hover { text-decoration: underline; }
.p-actions { display: flex; gap: 10px; padding-top: 18px; }
.btn-dark {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px;
  background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 700; border-radius: 99px; padding: 0 20px;
}
.btn-dark svg { width: 16px; height: 16px; }
.btn-dark:hover { background: #000; }
.btn-round {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.btn-round svg { width: 18px; height: 18px; }
.btn-round:hover { background: var(--ink); color: var(--cream); }

/* ---------- La bande (carrousel panorama) ---------- */
.strip { position: relative; }
.carousel {
  position: relative; overflow: hidden; width: 100%;
  background: var(--sky);
  touch-action: pan-y; user-select: none; outline: none;
}
.carousel:focus-visible { box-shadow: inset 0 0 0 4px var(--blue); }
/* Main « attraper » au survol, main fermée pendant le glisser */
@media (hover: hover) and (pointer: fine) {
  .carousel.can-drag { cursor: grab; }
  .carousel.is-dragging { cursor: grabbing; }
  .carousel .nav-btn { cursor: pointer; }
}
.carousel-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.25, .8, .25, 1); will-change: transform; }
.carousel-track.no-anim { transition: none; }
.carousel-track.glide { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
/* Moteur GSAP : c'est lui qui anime, pas de transition CSS en parallèle */
.carousel.is-gsap .carousel-track { transition: none; }
.carousel.is-gsap + .strip-progress .strip-bar { transition: none; }
.carousel-slide { flex: 0 0 100%; height: 100%; margin: 0; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* Ordinateur : photos collées côte à côte, hauteur commune */
@media (min-width: 861px) {
  .carousel { height: clamp(420px, calc(62 * var(--pg-viewport-vh, 1vh)), 640px); }
  .carousel-slide { flex: 0 0 auto; width: auto; }
}

/* Barre de progression collée sous les photos, sur toute la largeur */
.strip-progress { height: 4px; background: var(--ink); }
.strip-bar { height: 100%; width: 0; background: var(--yellow); transition: width .45s ease; }

/* Flèches posées sur les photos */
.nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  transition: opacity .2s, transform .2s, background .2s;
}
.nav-btn svg { width: 22px; height: 22px; }
/* bouton son du carrousel (comme sur Instagram) */
.strip-sound { position: absolute; right: calc(var(--edge) + 6px); bottom: calc(var(--edge) + 6px); z-index: 3; min-width: 36px; max-width: calc(100% - 2 * var(--edge) - 60px); height: 36px; display: flex; align-items: center; padding: 0 9px; border: 0; border-radius: 99px; overflow: hidden; font: inherit; font-size: .78rem; font-weight: 600; line-height: 1; white-space: nowrap; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.strip-sound:hover, .strip-sound:focus-visible { background: #000; }
.strip-sound svg { flex: none; width: 18px; height: 18px; }
.strip-sound .sound-name { order: -1; display: block; max-width: 0; opacity: 0; overflow: hidden; text-overflow: ellipsis; transition: max-width .35s ease, opacity .25s ease, margin .35s ease; }
.strip-sound:hover .sound-name, .strip-sound:focus-visible .sound-name { max-width: 60vw; opacity: 1; margin: 0 8px 0 5px; }
.strip-sound .ico-on, .strip-sound.is-on .ico-off { display: none; }
.strip-sound.is-on .ico-on { display: block; }
.nav-btn:hover { background: var(--yellow); transform: translateY(-50%) scale(1.06); }
.nav-btn.prev { left: var(--edge); }
.nav-btn.next { right: var(--edge); }
.nav-btn.hidden { opacity: 0; pointer-events: none; }

/* ---------- Vidéo ---------- */
.p-video { margin-top: clamp(56px, 8vw, 96px); background: transparent; color: var(--ink); padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.p-video h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-bottom: 28px; }
/* Vidéo collée directement sous la bande photos */
.strip + .p-video { margin-top: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Logos (partenaires) ---------- */
.p-logos { padding-top: clamp(40px, 6vw, 64px); --ls: .85; }
@media (max-width: 640px) { .p-logos { --ls: .65; } }
/* même espace au-dessus (après la vidéo) qu'en dessous (avant les éditions) */
.p-video + .p-logos { padding-top: 0; }
/* vidéo → logos → éditions : même espace qu'entre les photos et la vidéo */
.p-video:has(+ .p-logos) { padding-bottom: clamp(40px, 6vw, 72px); }
.project { --mur-spacing: clamp(40px, 6vw, 72px); }
.p-logos { padding-bottom: var(--mur-spacing); }
.p-logos + .p-editions { padding-top: 0; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(36px, 6vw, 88px); }
.logo-row img { display: block; height: calc(var(--lh, 54px) * var(--ls, 1)); width: auto; max-width: 220px; object-fit: contain; transition: opacity .2s, transform .2s; }
.logo-row a:hover img { opacity: .7; transform: translateY(-2px); }

/* ---------- Toutes les éditions ---------- */
.p-editions { padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 6vw, 72px); }
.p-editions-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.p-editions-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.p-editions-head a { font-weight: 700; }
.editions { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.edition { display: flex; flex-direction: column; text-decoration: none; }
.edition-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.edition-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.edition:hover .edition-media img { transform: scale(1.05); }
.edition.is-current .edition-media { box-shadow: 0 0 0 4px var(--cream), 0 0 0 8px var(--ink); }
.edition-here { position: absolute; left: 10px; bottom: 10px; font-size: .75rem; font-weight: 700; background: var(--ink); color: var(--cream); padding: 4px 10px; border-radius: 99px; }
.edition-num { margin-top: 12px; font: 700 .85rem/1 var(--font-title); }
.edition-name { margin-top: 6px; font: 900 1.05rem/1.15 var(--font-title); letter-spacing: -0.01em; }

.notfound { max-width: var(--max); margin: 0 auto; padding: 100px var(--gutter); }
.notfound h1 { font-size: 3rem; margin-bottom: 14px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--yellow); color: var(--ink); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) 20px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.footer-identity { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: clamp(16px, 2vw, 28px); }
.footer-city-logo { object-fit: contain; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 14px; font: 900 clamp(1.1rem, 2vw, 1.5rem)/1.25 var(--font-title); text-decoration: none; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-label { margin: 0 0 5px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-nav a { font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: grid; justify-items: center; gap: 16px; margin: clamp(28px, 5vw, 54px) 0 0; padding-top: clamp(20px, 3vw, 28px); border-top: 1px solid rgba(0, 0, 0, .25); font-size: .85rem; text-align: center; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; margin: 0; }
.footer-sep { margin: 0 12px; color: rgba(0, 0, 0, .45); }
.footer-legal a, .footer-legal .footer-cookie-settings { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s; }
.footer-legal a:hover, .footer-legal .footer-cookie-settings:hover { background-size: 100% 1px; }
.footer-legal .footer-cookie-settings { text-decoration: none; }
.footer-credit { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s; }
.footer-credit:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); background: rgba(255, 255, 255, .35); }
.footer-credit img { display: block; width: 96px; height: auto; }
@media (max-width: 640px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-identity { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .brand-logo { height: 44px; }
  .p-head:has(.p-media) { grid-template-columns: minmax(0, 1fr); }
  .p-head:has(.p-media) .p-intro { padding: 16px var(--gutter) 32px; }
  .nav-btn { display: none; }
  .editions { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
  .edition { flex: 0 0 150px; scroll-snap-align: start; }
}
/* ---------- Grande photo d'en-tête ---------- */
.p-hero { position: relative; display: flex; align-items: flex-end; height: clamp(380px, 62vh, 640px); overflow: hidden; background: #111; color: #fff; }
.p-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 75%); pointer-events: none; }
.p-hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 5vw, 64px); }
.p-hero .p-title { color: #fff; max-width: 80%; }
.p-hero .p-meta { color: #fff; }
.p-hero .p-edition { color: var(--ink); }
.p-head.has-hero { padding-top: clamp(28px, 4vw, 48px); }
.p-head-bio + .p-links { margin-top: clamp(20px, 3vw, 28px); }
/* bloc bio + liens sur fond sombre (pleine largeur) */
.p-head.has-hero { background: var(--ink); color: var(--cream); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); --gap: clamp(28px, 3.5vw, 44px); padding-top: var(--gap); padding-bottom: var(--gap); }
/* même espace au-dessus du texte, entre le texte et les liens, et sous les liens */
.p-head.has-hero .p-head-bio { margin-top: 0; }
.p-head.has-hero .p-head-bio > :last-child { margin-bottom: 0; }
.p-head.has-hero .p-head-bio + .p-links { margin-top: var(--gap); }
.p-head.has-hero .p-head-bio { color: rgba(240, 234, 230, .78); }
.p-head.has-hero .p-head-bio a { color: var(--yellow); }
.p-head.has-hero .p-head-bio strong, .p-head.has-hero .p-head-bio b { color: var(--cream); }
.p-head.has-hero .p-link { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.p-head.has-hero .p-link-name { color: rgba(0, 0, 0, .55); }
.p-head.has-hero .p-link:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.p-head.has-hero .p-link:hover .p-link-name { color: rgba(0, 0, 0, .55); }
.p-hero .p-link { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.p-hero .p-link .p-link-name { color: var(--yellow); opacity: .7; }
.p-hero .p-link:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.p-hero .p-link:hover .p-link-name { color: var(--ink); opacity: .6; }
@media (max-width: 640px) { .p-hero { height: 52vh; min-height: 340px; } .p-hero .p-title { max-width: none; } }
/* Ken Burns très léger : zoom lent + petit glissement, en aller-retour */
@keyframes hero-kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.2%, -0.8%); } }
.p-hero-img { transform-origin: 60% 45%; will-change: transform; animation: hero-kenburns 22s ease-in-out infinite alternate; }

/* ---------- Effets de l'en-tête projet ---------- */
.p-top { position: relative; }
/* 3 · bande défilante */
.p-ticker { display: none; }
/* bande d'annonce au-dessus du menu */
.announce { display: block; overflow: hidden; background: var(--ink); color: var(--yellow); padding: 14px 0; white-space: nowrap; text-decoration: none; }
.announce .p-ticker-track span { font-size: clamp(1.05rem, 2vw, 1.6rem); }
a.announce:hover { background: #1c1c1c; }
.preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); font-size: .9rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.preview-bar strong { color: var(--yellow); }
.preview-bar a { color: var(--cream); font-weight: 700; }
/* bouton flottant « remonter en haut » */
/* même style que la pastille FoxLink : fond crème (lisible sur une photo), contour noir, ombre décalée au survol */
.to-top { position: fixed; right: var(--edge); bottom: var(--edge); z-index: 55; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; box-shadow: none; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .15s, visibility .25s, box-shadow .15s, background .15s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.to-top svg { width: 22px; height: 22px; }
/* axe commun des boutons ronds à droite (flèches, son, remonter) */
:root, :host { --edge: clamp(14px, 2.5vw, 28px); }
/* ---------- Page Candidature ---------- */
.apply { max-width: 820px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 96px; }
.apply h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: .95; letter-spacing: -0.04em; }
.apply-intro { margin: clamp(16px, 2.5vw, 28px) 0 clamp(28px, 4vw, 44px); font-size: 1.1rem; line-height: 1.65; color: var(--muted); }
.apply-intro p { margin: 0 0 .9em; }
.apply-form { display: grid; gap: 18px; }
.apply-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .apply-form .row { grid-template-columns: 1fr; } }
.apply-form label { display: grid; gap: 8px; font-weight: 700; font-size: .95rem; }
.apply-form label small { font-weight: 500; color: var(--muted); }
.apply-form input, .apply-form textarea, .apply-form select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  font: inherit; font-weight: 400; color: var(--ink);
}
.apply-form textarea { min-height: 180px; resize: vertical; }
.apply-form select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23142a33' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.apply-form select:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.apply-form .req { color: var(--ink); margin-left: 2px; }
.apply-req { margin: 0; font-size: .9rem; color: var(--muted); }
.apply-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.apply-lang { display: inline-flex; gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 99px; margin-bottom: 8px; }
.apply-lang a { padding: 6px 14px; border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; }
.apply-lang a[aria-current] { background: var(--ink); color: var(--yellow); }
.apply-form input:focus, .apply-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.apply-form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.apply-form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.apply-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-submit { justify-self: start; min-height: 52px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--ink); color: var(--yellow); font: 700 1rem var(--font-body, inherit); cursor: pointer; transition: background .2s, color .2s; }
.apply-submit:hover { background: var(--yellow); color: var(--ink); }
.apply-alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-weight: 600; }
.apply-alert.err { background: #fde2e2; color: #8a1c1c; }
.apply-done { padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: var(--ink); color: var(--cream); }
.apply-done h2 { color: var(--yellow); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.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; }
.fx-ticker .p-ticker { display: block; overflow: hidden; background: var(--yellow); padding: 14px 0; white-space: nowrap; }
.p-ticker-track { display: inline-flex; animation: ticker 90s linear infinite; }
.p-ticker-track span { font: 800 clamp(.9rem, 1.4vw, 1.1rem)/1 var(--font-title); text-transform: uppercase; letter-spacing: .04em; padding-right: .3em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 4 · animation d'arrivée */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.fx-anim .back-link, .fx-anim .p-kicker, .fx-anim .p-title, .fx-anim .p-place, .fx-anim .p-links, .fx-anim .p-head-bio { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.fx-anim .p-kicker { animation-delay: .08s; }
.fx-anim .p-title, .fx-anim .p-place { animation-delay: .16s; }
.fx-anim .p-links { animation-delay: .28s; }
.fx-anim .p-head-bio { animation-delay: .38s; }
@media (prefers-reduced-motion: no-preference) {
  .hero .site-nav, .hero-brand, .hero .btn-scroll {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero-brand { animation-delay: .16s; }
  .hero .btn-scroll { animation-delay: .28s; animation-fill-mode: backwards; } /* libère le bouton après son apparition (effet de survol) */
  .hero-video { transition: opacity .65s ease-out; }
  .gallery .card-media img.project-image-visible { transition: opacity .65s ease-out, transform .6s ease; }
  .project-image-pending { opacity: 0; }
  .project-image-visible { transition: opacity .65s ease-out, transform .5s ease; }
}
.scroll-reveal-pending { opacity: 0; animation: none; }
.scroll-reveal-visible { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-pending, .scroll-reveal-visible { opacity: 1; animation: none; }
  .p-ticker-track { animation-duration: 240s; }
  .p-hero-img { animation: none; }
  .fx-anim .back-link, .fx-anim .p-kicker, .fx-anim .p-title, .fx-anim .p-place, .fx-anim .p-links, .fx-anim .p-head-bio { animation: none; }
  html { scroll-behavior: auto; }
  .carousel-track, .strip-bar, .card-media img, .edition-media img { transition: none; }
}
.btn-round.copied { background: var(--ink); color: var(--cream); }

/* ---------- Page L'association ---------- */
.asso { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 110px) var(--gutter) clamp(64px, 9vw, 120px); }
.asso-head { max-width: 980px; }
.asso h1 { font-size: clamp(2.8rem, 9vw, 7rem); line-height: .92; letter-spacing: -0.04em; margin: 0; }
.asso-intro { margin-top: clamp(24px, 3.5vw, 40px); max-width: 62ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; }
.asso-intro p { margin: 0 0 1em; }
.asso-eng { margin-top: clamp(56px, 8vw, 110px); padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: var(--ink); color: var(--cream); }
.asso-eng h2 { margin: 0 0 clamp(24px, 4vw, 44px); font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--yellow); }
.asso-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.asso-list li { border-top: 1px solid rgba(240, 234, 230, .25); padding-top: 20px; }
.asso-num { display: block; font-family: var(--font-title); font-weight: 800; font-size: 1rem; color: var(--yellow); margin-bottom: 14px; }
.asso-list h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; color: #fff; }
.asso-list p { margin: 0 0 .7em; line-height: 1.6; color: rgba(240, 234, 230, .8); }
.asso-cta { margin-top: clamp(48px, 7vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.asso-cta p { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
.asso-cta .apply-submit { display: inline-flex; align-items: center; text-decoration: none; }

/* crédit photos du carrousel : en bas à gauche, au niveau du bouton son */
.strip-credit { position: absolute; left: var(--edge); bottom: calc(var(--edge) + 6px); z-index: 3; display: flex; align-items: center; height: 36px; max-width: calc(100% - 2 * var(--edge) - 60px); margin: 0; padding: 0 9px; border-radius: 99px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; overflow: hidden; cursor: default; outline: none; transition: background .2s; }
.strip-credit svg { flex: none; width: 18px; height: 18px; }
.credit-name { display: block; max-width: 0; opacity: 0; overflow: hidden; text-overflow: ellipsis; transition: max-width .35s ease, opacity .25s ease, margin .35s ease; }
.strip-credit:hover, .strip-credit:focus-visible { background: #000; }
.strip-credit:hover .credit-name, .strip-credit:focus .credit-name { max-width: 60vw; opacity: 1; margin: 0 5px 0 8px; }
.strip-credit.is-link { cursor: pointer; }
.strip-credit.is-link:hover .credit-name { text-decoration: underline; text-underline-offset: 3px; }

/* localisation du mur : en haut à droite du hero */
.p-hero-loc { position: absolute; z-index: 2; top: clamp(18px, 3vw, 36px); right: var(--gutter); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 2 * var(--gutter)); padding: 9px 15px 9px 12px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: clamp(.75rem, 1vw, .85rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.p-hero-loc svg { width: 15px; height: 15px; flex: none; }
.p-hero-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-hero-loc:hover { background: var(--yellow); color: var(--ink); }
.p-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30%; z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0)); pointer-events: none; }
.p-place.is-inline { position: absolute; margin: 0; white-space: nowrap; }

/* éditions sur fond sombre */
.p-editions, .p-logos + .p-editions { padding: clamp(48px, 7vw, 88px) 0; background: var(--ink); color: var(--cream); }
.p-editions .edition { color: var(--cream); }
.p-editions .edition-num { color: var(--yellow); }
.p-editions .edition-name { color: #fff; }
.p-editions .edition-media { background: #1c1c1c; }
.p-editions .edition.is-current .edition-media { box-shadow: none; }
.p-editions .edition.is-current .edition-media::after { content: ""; position: absolute; inset: 0; z-index: 1; border: 4px solid var(--yellow); border-radius: inherit; pointer-events: none; }
.p-editions .edition-here { z-index: 2; }
.p-editions .edition-here { background: var(--yellow); color: var(--ink); }

/* éditions en carrousel sur une ligne : la page en cours reste fixée à gauche, le reste défile */
.ed-carousel { --edw: calc((100cqw - 5 * 16px) / 6); position: relative; container-type: inline-size; }
.ed-wrap { padding: 0 88px; }
.p-editions .editions { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: -8px; padding: 8px; cursor: grab; }
.p-editions .editions:has(> .is-current:first-child) { scroll-padding-left: calc(var(--edw) + 24px); }
.p-editions .editions::-webkit-scrollbar { display: none; }
.p-editions .editions.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.p-editions .editions.is-dragging a { pointer-events: none; }
.p-editions .edition { flex: 0 0 var(--edw); min-width: 0; scroll-snap-align: start; }
.p-editions .edition.is-current:first-child { position: sticky; left: -8px; z-index: 2; flex-basis: calc(var(--edw) + 24px); margin: -8px -16px -8px -8px; padding: 8px 16px 8px 8px; background: var(--ink); scroll-snap-align: none; }
.p-editions .edition img { -webkit-user-drag: none; user-select: none; }
.ed-carousel .ed-nav { top: calc(var(--edw) * 1.25 / 2); }
.ed-carousel .ed-nav.prev { left: -76px; }
.ed-carousel .ed-nav.next { right: -76px; }
@media (max-width: 1100px) { .ed-carousel { --edw: calc((100cqw - 3 * 16px) / 4); } }
@media (max-width: 860px) {
  .ed-wrap { padding: 0; }
  .ed-carousel { --edw: 150px; }
  .ed-carousel .ed-nav:not(.hidden) { display: grid; width: 36px; height: 36px; }
  .ed-carousel .ed-nav.prev { left: 0; }
  .ed-carousel .ed-nav.next { right: 0; }
}

/* Même hiérarchie que les vignettes de l’accueil : titre, puis édition et date. */
.p-editions .edition-name { margin-top: 12px; }
.p-editions .edition-num { margin-top: 8px; font-family: var(--font-body, inherit); font-size: .75rem; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }

.carousel-slide { position: relative; overflow: hidden; }
.carousel-link-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.carousel-photo-link { cursor: pointer; }
.carousel-photo-link rect { pointer-events: all; }
.carousel-photo-link:focus-visible rect { stroke: var(--yellow); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* Images publiques : pas de sélection, de déplacement natif ni de menu tactile. */
img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.card-media, .edition-media, .carousel-slide, .carousel-link-layer { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Image MUR entre les partenaires et le carrousel des projets. */
.p-mur { position: relative; margin-bottom: var(--mur-spacing); }
.p-mur .strip-credit { left: calc(var(--gutter) + var(--edge)); }
.p-mur img { width: 100%; height: auto; border-radius: var(--radius); }

.p-mur-caption, .carousel-caption {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.carousel-caption {
  right: var(--edge);
  bottom: calc(var(--edge) + 6px);
  max-width: calc(100% - 2 * var(--edge));
}
.carousel:has(.strip-sound) .carousel-caption { bottom: calc(var(--edge) + 50px); }
.carousel-caption .carousel-photo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
  text-decoration: none;
}
.carousel-caption .p-mur-title { text-transform: uppercase; }
.carousel-caption a:hover > * { background: rgba(0, 0, 0, .88); }
.p-mur-caption {
  right: calc(var(--gutter) + var(--edge));
  bottom: calc(var(--edge) + 6px);
  max-width: calc(100% - 2 * (var(--gutter) + var(--edge)) - 48px);
}
.p-mur-title, .p-mur-meta { background: rgba(0, 0, 0, .7); color: var(--cream); padding: 3px 8px; }
.p-mur-title { font-family: var(--font-title); font-size: clamp(1rem, 2.4vw, 1.7rem); }
.p-mur-meta { font-size: .8rem; }

/* ---------- Cookies : carte flottante aux couleurs du site ---------- */
.cookie-notice {
  position: fixed; z-index: 60;
  right: var(--gutter); bottom: var(--gutter);
  width: min(440px, calc(100% - 2 * var(--gutter)));
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  animation: cookie-in .45s cubic-bezier(.2, .9, .3, 1.2) .6s both;
}
.cookie-notice[hidden] { display: none; }
/* le bouton « remonter » (même coin) attend que le bandeau soit fermé */
body:has(#cookie-notice:not([hidden])) .to-top { opacity: 0; visibility: hidden; }
.cookie-notice-inner { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; }
.cookie-badge {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  font-size: 1.4rem; line-height: 1;
}
.cookie-text p { margin: 0; font-size: .95rem; line-height: 1.45; }
.cookie-text .cookie-title { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; margin-bottom: 4px; }
.cookie-notice .cookie-actions { grid-column: 1 / -1; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn {
  flex: 1; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 99px;
  background: var(--ink); color: var(--cream);
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn.ghost { background: transparent; color: var(--ink); }
.cookie-btn.ghost:hover { background: var(--yellow); }
.cookie-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .cookie-notice { animation: none; } }

.cookie-details {
  width: min(640px, calc(100% - 32px)); padding: clamp(20px, 4vw, 32px);
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
}
.cookie-details::backdrop { background: rgba(0, 0, 0, .55); }
.cookie-details h2 { font-family: var(--font-title); font-size: 1.3rem; text-transform: uppercase; margin: 0 0 16px; }
.cookie-details details { border-top: 2px solid var(--ink); padding: 14px 0; }
.cookie-details details:last-of-type { border-bottom: 2px solid var(--ink); }
.cookie-details summary { cursor: pointer; font-weight: 700; }
.cookie-details details p { margin: 8px 0 0; line-height: 1.5; }
.cookie-details .cookie-actions { justify-content: flex-end; margin-top: 20px; }
.cookie-details .cookie-btn { flex: 0 0 auto; }
.footer-cookie-settings {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
/* boucle infinie du carrousel de bas de page : recalage invisible */
.p-editions .editions.is-looping { scroll-snap-type: none; scroll-behavior: auto; }

/* Candidature : photo du travail */
.apply-photo { display: grid; gap: 8px; }
.apply-photo-label { font-weight: 700; font-size: .95rem; }
.apply-photo small { color: var(--muted); font-size: .88rem; }
.apply-photo small b { color: #8a1c1c; font-weight: 600; }
.apply-drop { position: relative; display: grid; place-items: center; min-height: 190px; border: 2px dashed var(--ink); border-radius: 12px;
  background: #fff; cursor: pointer; overflow: hidden; transition: background .2s; }
.apply-drop:hover { background: #faf8f4; }
.apply-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.apply-drop:focus-within { outline: 3px solid var(--yellow); outline-offset: 1px; }
.apply-drop-empty { display: grid; justify-items: center; gap: 8px; color: var(--ink); pointer-events: none; }
.apply-drop.has-photo { border-style: solid; min-height: 0; }
.apply-drop.has-photo .apply-drop-empty { display: none; }
.apply-drop-preview { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #f3efe9; pointer-events: none; }
.apply-drop-change { position: absolute; right: 12px; bottom: 12px; padding: 7px 14px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; pointer-events: none; }
.apply-drop-preview[hidden], .apply-drop-change[hidden] { display: none; } /* sinon l'aperçu vide occupe une ligne et décale le picto vers le haut */
.apply-submit:disabled { opacity: .5; cursor: wait; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(40px, 7vw, 100px) var(--gutter) clamp(64px, 9vw, 120px); }
.legal h1 { font-family: var(--font-title); font-weight: 900; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 clamp(24px, 4vw, 40px); }
.legal h2 { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; margin: 36px 0 10px; scroll-margin-top: 24px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 1.2em; }
.legal a { color: inherit; }
.apply-privacy { margin: 14px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.apply-privacy a { color: inherit; }
.notfound-code { font-family: var(--font-title); font-weight: 900; font-size: clamp(5rem, 18vw, 12rem); line-height: .9; margin: 0 0 10px; color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; } /* contour sous le remplissage : seule la silhouette reste, sans les traits intérieurs */
.notfound .btn-dark { display: inline-flex; flex: none; margin-top: 18px; }

/* Candidature : envoi en cours (barre de progression de la photo) */
.apply-sending { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(240, 234, 230, .88); backdrop-filter: blur(3px); }
.apply-sending[hidden] { display: none; }
.apply-sending-card { width: min(420px, 100%); display: grid; gap: 12px; padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--cream); box-shadow: 6px 6px 0 var(--ink); text-align: center; }
.apply-sending-card strong { font-family: var(--font-title); font-weight: 900; font-size: 1.1rem; text-transform: uppercase; }
.apply-sending-card p { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.apply-sending-card small { color: var(--muted); }
.apply-sending-bar { height: 12px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.apply-sending-bar span { display: block; height: 100%; width: 0; background: var(--coral); transition: width .2s; }
.apply-sending.is-saving .apply-sending-bar span { background: repeating-linear-gradient(45deg, var(--coral) 0 10px, var(--yellow) 10px 20px); background-size: 28px 28px; animation: apply-stripes .6s linear infinite; }
@keyframes apply-stripes { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .apply-sending.is-saving .apply-sending-bar span { animation: none; } }
@media (max-width: 560px) {
  .footer-legal > span:first-child { flex-basis: 100%; margin-bottom: 4px; }
  .footer-legal > .footer-sep:nth-child(2) { display: none; }
}
.footer-heart { display: inline-block; margin: 0 3px; }

/* ==========================================================================
   Boutons : deux styles pour tout le site
   - Plein (modèle : « Voir tous les projets ») : fond noir, Unbounded gras en capitales ;
     survol : rose du site, texte noir, léger soulèvement.
   - Contour (modèle : pastille FoxLink, bouton « remonter ») : contour noir 2 px ;
     survol : léger soulèvement et ombre décalée noire.
   ========================================================================== */
.btn-dark, .apply-submit, .cookie-btn:not(.ghost) {
  border: 0; border-radius: 99px; background: var(--ink); color: var(--cream);
  font-family: var(--font-title); font-weight: 900; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase;
  transition: background .2s, color .2s, transform .2s;
}
.btn-dark:hover, .btn-dark:focus-visible,
.apply-submit:hover, .apply-submit:focus-visible,
.cookie-btn:not(.ghost):hover, .cookie-btn:not(.ghost):focus-visible { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.apply-submit:disabled, .apply-submit:disabled:hover { background: var(--ink); color: var(--cream); transform: none; }

.p-link, .btn-round, .cookie-btn.ghost, .nav-btn {
  border: 2px solid var(--ink); box-shadow: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, opacity .2s;
}
.p-link:hover, .p-link:focus-visible,
.btn-round:hover, .btn-round:focus-visible,
.cookie-btn.ghost:hover, .cookie-btn.ghost:focus-visible { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); background: #fff; color: var(--ink); }
.p-link:hover .p-link-name { color: var(--muted); }
/* flèches du carrousel : centrées verticalement, le soulèvement s'ajoute au centrage */
.nav-btn:hover, .nav-btn:focus-visible { background: #fff; transform: translateY(calc(-50% - 2px)); box-shadow: 3px 3px 0 var(--ink); }
/* choix de la langue (Candidature) : même famille, l'actif en plein */
.apply-lang a { transition: background .15s, color .15s; }
.apply-lang a[aria-current] { background: var(--ink); color: var(--cream); }
.apply-lang a:not([aria-current]):hover { background: var(--yellow); }
/* vidéos d'un projet (sur fond noir) : contour crème, même survol */
.video-chip { transition: transform .15s, box-shadow .15s, border-color .15s; }
.video-chip:hover, .video-chip:focus-visible { transform: translateY(-2px); border-color: var(--cream); box-shadow: 3px 3px 0 var(--cream); }
.video-chip.is-active:hover { box-shadow: 3px 3px 0 var(--cream); }
@media (prefers-reduced-motion: reduce) {
  .btn-dark, .apply-submit, .cookie-btn, .p-link, .btn-round, .nav-btn, .video-chip, .footer-credit, .to-top { transition: none; }
}
/* liens d'un projet sur fond sombre (en-tête avec photo) : ombre rose, visible sur le noir */
.p-head.has-hero .p-link:hover, .p-head.has-hero .p-link:focus-visible { box-shadow: 3px 3px 0 var(--yellow); }
/* flèches du carrousel : centrage optique (le poids d'un chevron est du côté de ses branches) */
.nav-btn { padding: 0; }
.nav-btn.prev svg { transform: translateX(-1px); }
.nav-btn.next svg { transform: translateX(1px); }
/* liens d'un projet : même effet que « Voir tous les projets » (couleur qui bascule, léger soulèvement, flèche qui file) */
.p-link:hover, .p-link:focus-visible { box-shadow: none; background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.p-link:hover .p-link-name, .p-link:focus-visible .p-link-name { color: rgba(0, 0, 0, .55); }
.p-head.has-hero .p-link:hover, .p-head.has-hero .p-link:focus-visible { box-shadow: none; background: var(--cream); border-color: var(--cream); color: var(--ink); transform: translateY(-2px); }
.p-link > span[aria-hidden] { display: inline-block; transition: transform .25s; }
.p-link:hover > span[aria-hidden], .p-link:focus-visible > span[aria-hidden] { transform: translate(2px, -2px); }

/* ---------- Menu mobile (burger) ---------- */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  /* l'astuce du fond pleine largeur (clip-path) découperait le menu plein écran : inutile ici, l'en-tête fait déjà toute la largeur */
  .site-header { clip-path: none; box-shadow: none; max-width: none; }
  .nav-toggle {
    position: relative; z-index: 82; display: grid; place-content: center; gap: 5px; flex: none;
    width: 46px; height: 46px; padding: 0; border: 2px solid currentColor; border-radius: 50%;
    background: transparent; color: var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s, color .2s;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
  .nav-toggle:hover, .nav-toggle:focus-visible { transform: translateY(-2px); box-shadow: 3px 3px 0 currentColor; }
  .hero .nav-toggle { color: #fff; }
  .hero .site-header { justify-content: flex-end; }
  body.nav-open .nav-toggle { position: fixed; top: 22px; right: var(--gutter); color: var(--cream); box-shadow: none; transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav, .hero .site-nav {
    position: fixed; inset: 0; z-index: 81; display: flex; flex-flow: row wrap; justify-content: center; align-content: center;
    gap: 6px 10px; padding: 80px var(--gutter) 40px; background: var(--ink); color: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  /* accueil : l'en-tête du bandeau a son propre niveau (z-index 2), sous le logo de l'accueil et la bande défilante.
     Menu ouvert : le bandeau et son en-tête passent tout en haut, pour que le menu plein écran couvre vraiment tout. */
  body.nav-open .hero { z-index: 100; }
  body.nav-open .hero .site-header { z-index: 100; }
  .site-nav a:not(.nav-icon), .hero .site-nav a:not(.nav-icon) {
    flex-basis: 100%; text-align: center; color: var(--cream); font-size: clamp(1.7rem, 9vw, 2.6rem); font-weight: 900; padding: 8px 0; border-radius: 0;
    opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s, color .2s;
  }
  body.nav-open .site-nav a:not(.nav-icon) { opacity: 1; transform: none; }
  body.nav-open .site-nav a:nth-child(2) { transition-delay: .04s; }
  body.nav-open .site-nav a:nth-child(3) { transition-delay: .08s; }
  body.nav-open .site-nav a:nth-child(4) { transition-delay: .12s; }
  .site-nav a:not(.nav-icon):hover, .hero .site-nav a:not(.nav-icon):hover { background: none; color: var(--yellow); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--yellow); }
  .site-nav .nav-icon, .hero .site-nav .nav-icon { margin: 28px 6px 0; width: 52px; height: 52px; border: 2px solid rgba(240, 234, 230, .35); color: var(--cream); }
  .site-nav .nav-icon:first-of-type { margin-left: 6px; }
  .site-nav .nav-icon:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav a, .nav-toggle, .nav-toggle span { transition: none !important; }
}

/* carrousel sur mobile : flèches gardées, en plus petit (on peut aussi glisser du doigt) */
@media (max-width: 860px) {
  .nav-btn { display: grid; width: 36px; height: 36px; }
  .nav-btn svg { width: 16px; height: 16px; }
  .nav-btn.prev { left: 10px; }
  .nav-btn.next { right: 10px; }
  /* carrousel des autres projets (bas de page) : pas de flèches sur mobile, on fait défiler les cartes du doigt */
  .ed-carousel .ed-nav, .ed-carousel .ed-nav:not(.hidden) { display: none; }
}
/* grands titres sur petit écran : jamais plus larges que l'écran */
@media (max-width: 560px) {
  .asso h1 { font-size: clamp(1.9rem, 10.8vw, 2.8rem); }
}

/* Clips de l'accueil : deux lecteurs superposés, seul celui « is-on » est visible (coupe franche entre deux clips) */
.hero.clips-cut .hero-clip { transition: none; }
.hero.is-video-playing .hero-clip:not(.is-on) { opacity: 0; }
.hero.is-video-playing .hero-clip.is-on { opacity: 1; }
/* trame par-dessus la vidéo de l'accueil : grille de points très fine (2 × 2 px) qui masque la compression */
.hero-trame { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("../img/trame.png") repeat; background-size: 2px 2px; image-rendering: pixelated; opacity: .5; }

/* ---------- Barre de défilement (même style que FoxLink, aux couleurs du Mur, plus épaisse) ----------
   Chrome, Safari, Edge : pilule rose en retrait sur fond noir, 16 px.
   Firefox ne connaît que la règle standard (couleurs seulement) : réservée à lui, sinon Chrome ignorerait la largeur. */
html::-webkit-scrollbar { width: 16px; height: 16px; }
html::-webkit-scrollbar-track { background: #000; }
html::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 99px; border: 4px solid #000; min-height: 72px; }
html::-webkit-scrollbar-thumb:hover { background-color: var(--coral); }
html::-webkit-scrollbar-thumb:active { background-color: var(--cream); }
html::-webkit-scrollbar-corner { background: #000; }
@supports (-moz-appearance: none) {
  html { scrollbar-color: var(--yellow) #000; scrollbar-width: auto; }
}

/* ==========================================================================
   Pages personnalisées (admin › Pages) : blocs empilés dans une colonne de lecture,
   les médias « larges » et « pleine largeur » débordent de la colonne.
   ========================================================================== */
/* Grille du site : même largeur et même bord gauche que le logo et le menu (var(--max) + marges) ;
   les textes gardent une colonne de lecture, alignée à gauche ou centrée selon le réglage du bloc. */
/* La page occupe toute la largeur ; chaque bloc se cale sur les marges du site (même bord gauche que le logo),
   les textes gardent une colonne de lecture, à gauche ou centrée. Bandeaux et fonds de couleur : bord à bord. */
.pg { --pg-col: 780px; display: grid; grid-template-columns: 100%; gap: clamp(22px, 3vw, 34px); padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); }
.pg-band { display: grid; grid-template-columns: 100%; gap: clamp(22px, 3vw, 34px); padding: clamp(40px, 6vw, 84px) 0; }
:is(.pg, .pg-band, .pg-hidden-block) > * { --edge: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter)); min-width: 0; max-width: none; width: auto; margin: 0 var(--edge); }
/* tous les blocs ont la largeur du site (celle de la grille des projets et du menu) ;
   l'alignement d'un bloc règle celui de son contenu */
/* « Largeur du contenu » d'un bloc : colonne centrée, plus étroite que le site */
:is(.pg, .pg-band, .pg-hidden-block) > .pg-width { width: min(var(--pg-w), 100% - 2 * var(--edge)); margin-inline: auto; }
.pg-width > * { margin: 0; }
.pg-hero-inner { max-width: min(var(--pg-w, 9999px), calc(var(--max) - 2 * var(--gutter))) !important; }
.pg-footer-inner { max-width: min(var(--pg-w, 9999px), calc(var(--max) - 2 * var(--gutter))) !important; }
.pg-heading.is-center, .pg-text.is-center { text-align: center; }
.pg-heading.is-right, .pg-text.is-right { text-align: right; }
.pg-button.is-right { display: flex; justify-content: flex-end; }
.pg-hero.is-right .pg-hero-inner { text-align: right; }
.pg-hero.is-right .pg-hero-sub { margin-left: auto; }
:is(.pg, .pg-hidden-block) > :is(.pg-hero, .pg-band, .pg-footer, .pg-image.is-full) { margin-inline: 0; }
.pg > .pg-image.is-full figcaption { padding-inline: var(--gutter); }
.pg-quote { color: var(--ink); }
/* dernier bloc bord à bord (fond de couleur, bandeau, photo pleine largeur, pied de page) : pas de marge vide avant le pied du site */
.pg:has(> :is(.pg-band, .pg-hero, .pg-footer, .pg-image.is-full):last-child) { padding-bottom: 0; }
.pg > .pg-image.is-full:last-child figcaption { padding-bottom: 16px; }
/* couleurs de fond (palette du site) */
.pg-bg-white { background: #fff; } .pg-bg-sand { background: #EFEAE6; } .pg-bg-pink { background: var(--yellow); }
.pg-bg-sky { background: var(--sky); } .pg-bg-lime { background: var(--lime); } .pg-bg-coral { background: var(--coral); }
.pg-bg-blue { background: var(--blue); } .pg-bg-dark { background: #000; }
.is-ondark { color: var(--cream); }
.is-ondark .pg-kicker, .is-ondark figcaption { color: var(--yellow); }
.is-ondark :is(.btn-dark, .apply-submit) { background: var(--yellow); color: var(--ink); }
.is-ondark .pg-btn-outline { border-color: var(--cream); color: var(--cream); }
.is-ondark .pg-btn-outline:hover { background: var(--cream); color: var(--ink); box-shadow: 3px 3px 0 var(--yellow); }
.is-ondark .pg-text blockquote, .is-ondark .pg-spacer.has-line::after { border-color: currentColor; }
.is-ondark .pg-text a:hover { background: transparent; color: var(--yellow); }
.pg-band.pg-bg-pink .pg-quote { background: #fff; }
.pg-band .pg-form { color: var(--ink); }
.pg-kicker { margin: 0 0 .6em; font: 800 .8rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-heading h1, .pg-heading h2, .pg-heading h3 { margin: 0; font-family: var(--font-title); letter-spacing: -0.035em; line-height: .98; }
.pg-h1 h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
.pg-h2 h2 { font-size: clamp(1.8rem, 4.6vw, 3.1rem); }
.pg-h3 h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.1; }
.pg-text { font-size: 1.08rem; line-height: 1.7; }
.pg-text > :first-child { margin-top: 0; } .pg-text > :last-child { margin-bottom: 0; }
.pg-text h2, .pg-text h3 { font-family: var(--font-title); letter-spacing: -0.02em; line-height: 1.1; margin: 1.4em 0 .5em; }
.pg-text h2 { font-size: 1.6rem; } .pg-text h3 { font-size: 1.2rem; }
.pg-text a, .pg-form-intro a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pg-text a:hover { background: var(--yellow); }
.pg-text blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 4px solid var(--ink); font-weight: 600; }
.pg-quote { padding: clamp(24px, 4vw, 44px); border-radius: 22px; background: var(--yellow); }
.pg-quote blockquote { margin: 0; font: 700 clamp(1.35rem, 3vw, 2.1rem)/1.2 var(--font-title); letter-spacing: -0.02em; }
.pg-quote blockquote::before { content: '“'; display: block; font-size: 2.4em; line-height: .6; height: .4em; }
.pg-quote figcaption { margin-top: 16px; font-weight: 700; }
.pg-quote figcaption::before { content: '— '; }
.pg-button.is-center { display: flex; justify-content: center; }
.pg-button a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; text-decoration: none; }
.pg-btn { flex: none; }
.pg-btn-outline { border: 2px solid var(--ink); border-radius: 99px; color: var(--ink); background: transparent; font: 900 .82rem var(--font-title); letter-spacing: .02em; text-transform: uppercase; transition: transform .15s, box-shadow .15s, background .15s; }
.pg-btn-outline:hover, .pg-btn-outline:focus-visible { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.pg-image img, .pg-gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.pg-image.is-full img { border-radius: 0; }
.pg figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.pg-gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(8px, 1.4vw, 16px); }
.pg-gallery-grid img { aspect-ratio: 1; object-fit: cover; transition: transform .25s, filter .25s; }
.pg-gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; }
.pg-gallery-grid a:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .pg-gallery-grid { grid-template-columns: minmax(0, 1fr); } }
.pg-ratio { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.pg-ratio iframe, .pg-ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pg-embed iframe { display: block; width: 100%; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; }
.pg-spacer.is-s { height: 8px; } .pg-spacer.is-m { height: clamp(16px, 3vw, 32px); } .pg-spacer.is-l { height: clamp(32px, 6vw, 72px); } .pg-spacer.is-xl { height: clamp(56px, 10vw, 128px); }
.pg-spacer.has-line { display: flex; align-items: center; }
.pg-spacer.has-line::after { content: ''; flex: 1; border-top: 2px solid var(--ink); }
/* formulaires et questionnaires : mêmes champs que la candidature */
.pg-form { padding: clamp(22px, 4vw, 40px); border: 2px solid var(--ink); border-radius: 22px; background: #fff; }
.pg-form-title { margin: 0 0 12px; font: 900 clamp(1.4rem, 3vw, 2rem)/1.05 var(--font-title); letter-spacing: -0.03em; }
.pg-form-intro { margin-bottom: 22px; color: var(--muted); line-height: 1.6; }
.pg-form-intro p { margin: 0 0 .7em; }
.pg-form .apply-form input, .pg-form .apply-form textarea, .pg-form .apply-form select { background: var(--cream); }
.pg-form .apply-form textarea { min-height: 130px; }
.pg-q > span { display: flex; align-items: baseline; gap: 10px; }
.pg-choices, .pg-scale { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.pg-choices legend, .pg-scale legend { display: flex; align-items: baseline; gap: 10px; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.pg-choices small, .pg-scale small { color: var(--muted); }
.apply-form .pg-choice { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 11px 14px; border: 2px solid var(--cream-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.apply-form .pg-choice:hover { border-color: var(--ink); }
.apply-form .pg-choice:has(input:checked) { border-color: var(--ink); background: var(--yellow); }
.apply-form .pg-choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }
.pg-scale-row { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; }
.apply-form .pg-scale-row label { display: block; position: relative; }
.pg-scale-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pg-scale-row span { display: grid; place-items: center; height: 46px; border: 2px solid var(--ink); border-radius: 12px; font: 800 1rem var(--font-title); transition: background .15s, color .15s; }
.pg-scale-row label:hover span { background: var(--yellow); }
.pg-scale-row input:checked + span { background: var(--ink); color: var(--cream); }
.pg-scale-row input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 520px) { .pg-scale-row[style*="10"] { grid-template-columns: repeat(5, 1fr); } }
.pg-scale-ends { display: flex; justify-content: space-between; gap: 12px; }
.pg-q-num { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--cream); font: 800 .8rem var(--font-title); }
.is-survey .pg-form-fields { gap: 26px; }
.pg-form-done { padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 1.1rem; }
.pg-form-done p { margin: 0; }
.pg-form .apply-alert ul { margin: 0; padding-left: 18px; }
/* pied de page de la page */
.pg-footer { margin-top: clamp(24px, 5vw, 60px); background: var(--ink); color: var(--cream); padding: clamp(36px, 6vw, 72px) var(--gutter); }
.pg-footer-inner { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 22px; justify-items: center; text-align: center; }
.pg-footer-logo img { display: block; height: 56px; width: auto; filter: brightness(0) invert(1); }
.pg-footer-text { line-height: 1.6; } .pg-footer-text p { margin: 0 0 .5em; }
.pg-footer-text a { color: var(--yellow); }
.pg-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pg-footer-links a { padding: 10px 18px; border: 2px solid var(--cream); border-radius: 99px; color: var(--cream); text-decoration: none; font: 800 .78rem var(--font-title); text-transform: uppercase; letter-spacing: .03em; transition: transform .15s, box-shadow .15s; }
.pg-footer-links a:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--yellow); }
/* page sans menu ni pied de page du site */
.pg-bare-head { display: flex; align-items: center; justify-content: center; padding: 22px var(--gutter); }
.pg-bare-head .brand-logo { display: block; height: 54px; width: auto; }
.pg-draft { margin: 0; padding: 10px var(--gutter); background: var(--coral); color: #fff; font-weight: 700; text-align: center; }
.pg-draft a { color: inherit; }
/* Visionneuse plein écran : commandes cohérentes avec les boutons du site. */
.pg-zoom { box-sizing: border-box; width: 100vw; height: 100vh; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 64px 80px; border: 0; background: transparent; overflow: hidden; }
.pg-zoom[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; }
.pg-zoom::backdrop { background: rgba(0, 0, 0, .88); }
.pg-zoom img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; min-width: 0; object-fit: contain; border-radius: 10px; }
.pg-zoom .pg-zoom-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; background: var(--cream); color: var(--ink); z-index: 3; }
.pg-zoom .nav-btn { display: grid; }
.pg-zoom .nav-btn.prev { left: 16px; }
.pg-zoom .nav-btn.next { right: 16px; }
.pg-zoom .nav-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .pg-zoom { padding: 68px 12px; }
  .pg-zoom .nav-btn { width: 36px; height: 36px; }
  .pg-zoom .nav-btn.prev { left: 8px; }
  .pg-zoom .nav-btn.next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pg-gallery-grid img, .pg-btn-outline, .pg-footer-links a { transition: none; } }
/* Bandeau (hero) des pages : pleine largeur, fond noir, rose, crème ou photo assombrie */
.pg-hero { position: relative; display: flex; align-items: center; padding: clamp(48px, 8vw, 110px) var(--gutter); overflow: hidden; }
.pg-hero.is-h-s { min-height: clamp(220px, calc(32 * var(--pg-viewport-vh, 1vh)), 340px); }
.pg-hero.is-h-m { min-height: clamp(320px, calc(52 * var(--pg-viewport-vh, 1vh)), 560px); }
/* plein écran : tout l'écran visible sous le menu (--pg-hero-top est mesuré par la page) */
.pg-hero.is-h-l { min-height: calc(100 * var(--pg-viewport-vh, 1vh) - var(--pg-hero-top, 0px)); min-height: calc(100 * var(--pg-viewport-svh, 1svh) - var(--pg-hero-top, 0px)); }
.pg-hero.has-img { color: #fff; }
.pg-hero.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)), var(--pg-hero-img) center / cover no-repeat; opacity:var(--pg-hero-opacity, 1); pointer-events:none; }
.pg-hero-inner { position: relative; width: 100%; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.pg-hero.is-center .pg-hero-inner { text-align: center; }
.pg-hero h1, .pg-hero .pg-hero-title { margin: 0; font-family: var(--font-title); font-weight: 900; font-size: clamp(2.6rem, 8.5vw, 6.5rem); line-height: .95; letter-spacing: -0.04em; color: inherit; }
.pg-hero .pg-kicker { color: inherit; opacity: .8; }
.pg-hero.has-img .pg-kicker { color: var(--yellow); opacity: 1; }
.pg-hero-sub { margin: clamp(14px, 2vw, 24px) 0 0; max-width: 46ch; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.5; font-weight: 500; }
.pg-hero.is-center .pg-hero-sub { margin-inline: auto; }
.pg-hero-cta { margin: clamp(22px, 3vw, 34px) 0 0; }
.pg-hero-cta a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; text-decoration: none; }
.pg-hero:is(.is-ondark, .has-img) .pg-hero-cta a { background: var(--yellow); color: var(--ink); }
.pg-hero:is(.is-ondark, .has-img) .pg-hero-cta a:hover { background: #fff; }
/* tailles choisies dans le texte (bouton « AA » de l'éditeur) */
.pg-fs-s { font-size: .85em; }
.pg-fs-l { font-size: 1.3em; line-height: 1.4; }
.pg-fs-xl { font-size: 1.7em; line-height: 1.25; }
.pg-fs-xxl { font-size: 2.3em; line-height: 1.12; }
.pg-al-center { text-align: center; } .pg-al-right { text-align: right; }
/* surlignage du texte sélectionné : adapté au fond du bloc (le rose du site disparaît sur un fond clair ou coloré) */
:is(.pg-band, .pg-hero):not(.is-ondark):not(.has-img):not(.is-plain) ::selection { background: var(--ink); color: var(--cream); }
:is(.pg-band, .pg-hero):is(.is-ondark, .has-img) ::selection { background: var(--yellow); color: var(--ink); }
.pg-form ::selection, .pg-quote ::selection { background: var(--ink); color: var(--cream); }

/* Typographie des textes des pages : IDENTIQUE sur le site (style.css) et dans l'éditeur (admin.css), à garder en miroir */
.pg .pg-text { font-family: Manrope, system-ui, sans-serif; font-size: 1.08rem; line-height: 1.7; }
.pg .pg-text > :first-child { margin-top: 0; }
.pg .pg-text > :last-child { margin-bottom: 0; }
.pg .pg-text p { margin: 0 0 1em; }
.pg .pg-text h2 { margin: 1.4em 0 .5em; font-family: Unbounded, system-ui, sans-serif; font-size: 1.6rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; text-transform: none; color: inherit; }
.pg .pg-text h3 { margin: 1.3em 0 .45em; font-family: Unbounded, system-ui, sans-serif; font-size: 1.2rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; text-transform: none; color: inherit; }
.pg .pg-text ul, .pg .pg-text ol { margin: 0 0 1em; padding-left: 1.3em; }
.pg .pg-text li { margin: 0 0 .25em; }
.pg .pg-text blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 4px solid currentColor; font-weight: 600; }
.pg .pg-text .pg-fs-s { font-size: .85em; }
.pg .pg-text .pg-fs-l { font-size: 1.3em; line-height: 1.45; }
.pg .pg-text .pg-fs-xl { font-size: 1.7em; line-height: 1.3; }
.pg .pg-text .pg-fs-xxl { font-size: 2.3em; line-height: 1.15; }
/* bloc en brouillon (visible seulement par un administrateur, dans l'aperçu) */
.pg-hidden-block { position: relative; opacity: .45; outline: 2px dashed var(--coral); outline-offset: 6px; }
.pg-hidden-block::before { content: attr(data-label); position: absolute; top: 0; right: var(--gutter); z-index: 5; transform: translateY(-50%); padding: 4px 10px; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .7rem var(--font-title); text-transform: uppercase; letter-spacing: .03em; }
.pg > .pg-hidden-block { margin: 0; display: grid; grid-template-columns: 100%; }
/* surlignage : il suit le fond juste sous le texte (carte de citation, formulaire) plutôt que celui de la bande */
:is(.pg, .pg-band) .pg-quote.has-card ::selection, :is(.pg, .pg-band) .pg-form ::selection { background: var(--ink); color: var(--cream); }
:is(.pg, .pg-band) .pg-quote.has-card.card-dark ::selection { background: var(--yellow); color: var(--ink); }
/* plusieurs boutons côte à côte */
.pg-button { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-button.is-center { justify-content: center; } .pg-button.is-right { justify-content: flex-end; }

/* Espacement vertical : chaque bloc est dans une bande (colorée ou transparente) avec la même respiration haut et bas ;
   deux blocs sans fond qui se suivent partagent cet espace au lieu de l'additionner */
.pg { --pg-pad: clamp(28px, 4vw, 52px); gap: 0; padding: 0; }
.pg-band { padding-block: var(--pg-pad); }
.pg > .pg-band.is-plain + .pg-band.is-plain, .pg > .pg-band.is-plain + .pg-hidden-block > .pg-band.is-plain,
.pg > .pg-hidden-block + .pg-band.is-plain { padding-top: 0; }
.pg > .pg-footer { margin-top: 0; }
/* légende automatique sur un fond foncé : claire, lisible (le gris du site disparaissait sur le bleu ou le noir) */
.pg .is-ondark figcaption, .pg .pg-hero.has-img figcaption { color: rgba(240, 234, 230, .82); }
/* « Toute la largeur (bord à bord) » : le média remplit toute la bande (ni marges, ni coins arrondis) ;
   un texte garde une petite marge pour ne pas toucher le bord de l'écran */
:is(.pg, .pg-band, .pg-hidden-block) > .pg-band.is-bleed > * { margin-inline: var(--gutter); }
.pg-band.is-bleed > :is(.pg-video, .pg-image, .pg-embed, .pg-gallery) { margin-inline: 0; }
.pg-band.is-bleed:has(> :is(.pg-video, .pg-image, .pg-embed, .pg-gallery)) { padding-block: 0; }
.pg-band.is-bleed :is(.pg-ratio, .pg-image img, .pg-embed iframe) { border-radius: 0; }
.pg-band.is-bleed .pg-embed iframe { border-inline: 0; }
.pg-band.is-bleed > figure > figcaption { margin: 0; padding: 12px var(--gutter) 16px; }
.pg-band.is-bleed > .pg-gallery .pg-gallery-grid { gap: 4px; }
.pg-band.is-bleed > .pg-gallery .pg-gallery-grid a, .pg-band.is-bleed > .pg-gallery img { border-radius: 0; }
.pg > .pg-band.is-bleed:has(> :is(.pg-video, .pg-image, .pg-embed, .pg-gallery)) + .pg-band.is-plain { padding-top: var(--pg-pad); }
/* galerie en carrousel (même moteur que les pages projets) : arrondie dans la largeur du site, bord à bord sinon */
.pg-gallery.is-carousel .strip { border-radius: var(--radius); overflow: hidden; }
.pg-band.is-bleed .pg-gallery.is-carousel .strip { border-radius: 0; }
.pg-gallery.is-carousel .carousel { background: transparent; }
@media (max-width: 640px) { .pg-gallery-grid[style] { grid-template-columns: minmax(0, 1fr); } }
.pg-gallery-grid[style*="--cols:1"] img { aspect-ratio: auto; }
/* carrousel : photos collées sans arrondi, seuls les 4 coins extérieurs du carrousel le sont */
.pg-gallery.is-carousel img, .pg-gallery.is-carousel .carousel-slide { border-radius: 0; }
/* flèches du carrousel placées comme sur les pages projets (les blocs réutilisent --edge pour leurs marges) */
.pg-gallery.is-carousel .strip, .pg-photo-strip { --edge: clamp(14px, 2.5vw, 28px); }

/* Blocs composés : ordre du contenu identique sur ordinateur et mobile. */
.pg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pg-split > * { min-width: 0; margin: 0; }
.pg-split .pg-text { width: auto; }
.pg-split-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.pg-title-button .pg-button { justify-content: flex-end; }
.pg-title-button > .pg-button:first-child { justify-content: flex-start; }
.pg-logos ul { list-style: none; padding: 0; margin: 0; }
.pg-logos-grid { --logo-cols: var(--cols); --logo-gap: 28px; display: flex; flex-wrap: wrap; gap: var(--logo-gap); align-items: center; }
.pg-logos-grid > li { flex: 0 0 calc((100% - (var(--logo-cols) - 1) * var(--logo-gap)) / var(--logo-cols)); }
.pg-logos li { display: grid; place-items: center; min-width: 0; }
.pg-logos li a { display: grid; place-items: center; width: 100%; }
.pg-logos img { display: block; width: auto; height: calc(var(--lh, 54px) * var(--logo-scale, 1) * var(--logo-mult, 1)); max-width: 100%; object-fit: contain; }
.pg-logos-window { overflow: hidden; padding-block: 8px; touch-action: pan-y; cursor: grab; }
.pg-logos-track { display: flex; width: max-content; animation: pg-logos-scroll var(--logo-duration, 30s) linear infinite; animation-direction: var(--logo-direction, normal); }
.pg-logos-track ul { display: flex; flex: none; min-width: 100vw; box-sizing: border-box; justify-content: space-around; align-items: center; gap: 40px; padding-right: 40px; }
.pg-logos-track li { width: calc(220px * var(--logo-mult, 1)); height: calc(100px * var(--logo-mult, 1)); flex: none; }
.pg-logos-window:hover .pg-logos-track, .pg-logos-window:focus-within .pg-logos-track { animation-play-state: paused; }
@keyframes pg-logos-scroll { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .pg-split { grid-template-columns: minmax(0, 1fr); }
  .pg-title-button .pg-button { justify-content: flex-start; }
  .pg-logos-grid { --logo-cols: 2; --logo-gap: 20px; }
  .pg-logos[style*="--cols:1"] .pg-logos-grid { --logo-cols: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-logos-track { animation: none; width: auto; }
  .pg-logos-track ul { flex-wrap: wrap; width: 100%; min-width: 0; padding: 0; justify-content: center; }
  .pg-logos-track ul[aria-hidden] { display: none; }
}

/* Bandeau : logo ou titre, paragraphe riche et plusieurs boutons. */
.pg-hero-logo { display: block; max-width: 100%; height: auto; object-fit: contain; }
.pg-hero.is-center .pg-hero-logo { margin-inline: auto; }
.pg-hero.is-right .pg-hero-logo { margin-left: auto; }
.pg-hero .pg-hero-paragraph { margin-top: 24px; max-width: 70ch; color: inherit; }
.pg-hero.is-center .pg-hero-paragraph { margin-inline: auto; }
.pg-hero.is-right .pg-hero-paragraph { margin-left: auto; }
.pg-hero-cta { display: flex; flex-wrap: wrap; align-items: center; }
.pg-hero.is-center .pg-hero-cta { justify-content: center; }
.pg-hero.is-right .pg-hero-cta { justify-content: flex-end; }
.pg-hero .pg-hero-cta .pg-btn-outline { background: transparent; color: inherit; border-color: currentColor; }
/* Marges du bloc : choix explicites prioritaires sur les valeurs automatiques. */
.pg .pg-band.pg-no-y, .pg .pg-hero.pg-no-y, .pg .pg-footer.pg-no-y { padding-block: 0 !important; }
.pg .pg-band.pg-with-y { padding-block: var(--pg-pad) !important; }
.pg .pg-hero.pg-with-y, .pg .pg-footer.pg-with-y { padding-block: var(--pg-pad) !important; }
.pg .pg-band.pg-no-x > *, .pg .pg-band.pg-no-x > .pg-width > * { margin-inline: 0; width: 100%; max-width: none; }
.pg .pg-hero.pg-no-x, .pg .pg-footer.pg-no-x { padding-inline: 0; }
.pg .pg-hero.pg-no-x .pg-hero-inner, .pg .pg-footer.pg-no-x .pg-footer-inner { max-width: none !important; }
.pg .pg-band.pg-with-x > :not(.pg-width) { margin-inline: var(--gutter); width: auto; }
.pg .pg-band.pg-with-x > .pg-width { max-width: calc(100% - 2 * var(--gutter)); }
.pg .pg-hero.pg-with-x, .pg .pg-footer.pg-with-x { padding-inline: var(--gutter); }

/* Une photo « pleine largeur » est directement dans la page, sans bande enveloppante. */
.pg > .pg-image.pg-no-x { margin-inline: 0; width: 100%; }
.pg > .pg-image.pg-with-x { margin-inline: var(--gutter); width: calc(100% - 2 * var(--gutter)); }
.pg > .pg-image.pg-no-y { margin-block: 0; }
.pg > .pg-image.pg-with-y { margin-block: var(--pg-pad); }

/* Le style Contour reste transparent sur les fonds sombres et les photos du hero. */
.pg-hero:is(.is-ondark, .has-img) .pg-hero-cta a.pg-btn-outline { background: transparent; color: inherit; border-color: currentColor; }

/* Galerie en grille : formats, descriptions et actions propres à chaque image. */
.pg-gallery-grid .pg-grid-tile { display: block; position: relative; overflow: hidden; color: #fff; }
.pg-gallery-grid .pg-grid-tile img { display: block; width: 100%; height: auto; border-radius: 0; }
.pg .pg-gallery-grid.has-shape .pg-grid-tile img { aspect-ratio: var(--tile-ratio); object-fit: cover; }
.pg-gallery-grid .pg-grid-description { position: absolute; inset: auto 0 0; padding: 48px 16px 18px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font: 700 clamp(.9rem, 1.6vw, 1.3rem)/1.3 var(--font-title); text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.pg-band.is-bleed .pg-gallery-grid { --tile-radius: 0px; }

.pg-zoom-caption { margin: 12px 0 0; max-width: 75ch; max-height: 20vh; overflow-y: auto; overflow-wrap: anywhere; text-align: center; font: 500 1rem/1.5 var(--font-body); color: var(--cream); }
.pg-zoom-caption[hidden] { display: none; }

@media (max-width: 640px) { .pg-logos { --logo-scale: .85; } .pg-logos-track li { width: calc(180px * var(--logo-mult, 1)); } }

.pg-logos img { transition: transform .15s ease; transform-origin: center; }
.pg-logos li:hover img, .pg-logos a:focus-visible img { transform: scale(1.04); }
.pg-logos-window.is-dragging { cursor: grabbing; user-select: none; }
.pg-logos-window.is-interactive .pg-logos-track { animation: none; will-change: transform; }
.pg-logos-window img { -webkit-user-drag: none; }
@media (prefers-reduced-motion: reduce) { .pg-logos img { transition: none; } }

/* Fondu des logos vers le fond du bloc aux deux extrémités du bandeau. */
.pg-logos-window { --logo-fade: min(10%, 100px); -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--logo-fade), #000 calc(100% - var(--logo-fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--logo-fade), #000 calc(100% - var(--logo-fade)), transparent); }
@media (prefers-reduced-motion: reduce) { .pg-logos-window { -webkit-mask-image: none; mask-image: none; } }

/* Couleur commune au titre et à son bouton, lorsque choisie explicitement. */
.pg-title-button.has-content-color .pg-heading h2 { color: var(--pg-content-color); }
.pg-title-button.has-content-color .pg-btn-outline { color: var(--pg-content-color); border-color: var(--pg-content-color); }
.pg-title-button.has-content-color .pg-btn-outline:hover, .pg-title-button.has-content-color .pg-btn-outline:focus-visible { background: var(--pg-content-color); color: var(--pg-content-contrast); }
.pg-title-button.has-content-color .btn-dark { background: var(--pg-content-color); color: var(--pg-content-contrast); }

/* Une ombre contrastée reste visible lorsque la couleur choisie est sombre. */
.pg-title-button.has-content-color .pg-btn-outline:hover, .pg-title-button.has-content-color .pg-btn-outline:focus-visible,
.pg-title-button.has-content-color .btn-dark:hover, .pg-title-button.has-content-color .btn-dark:focus-visible { box-shadow: 3px 3px 0 var(--pg-content-contrast); }

/* La place du titre est indépendante de sa position à gauche ou à droite. */
.pg-title-button { grid-template-columns: minmax(0,var(--pg-left,1fr)) minmax(0,var(--pg-right,1fr)); }
@media (max-width: 700px) { .pg-title-button { grid-template-columns: minmax(0,1fr); } }

/* Alignement des deux paragraphes, centrés par défaut. */
.pg-columns.is-top { align-items: start; }

/* Photo seule : cadrage non destructif et contrôles partagés avec le carrousel. */
.pg-photo-strip { position: relative; overflow: hidden; border-radius: 0; }
.pg-photo-frame { position: relative; display: block; overflow: hidden; width: 100%; }
.pg-image .pg-photo-frame img { display:block; width:100%; height:100%; object-fit:cover; border-radius:0; }

/* Part du texte indépendante de la taille de la photo dans sa colonne. */
.pg-image-text { grid-template-columns:minmax(0,var(--pg-left,1fr)) minmax(0,var(--pg-right,1fr)); }
.pg-image-text .pg-split-image > .pg-image { width:var(--pg-image-scale,100%); margin:0 auto; }
@media(max-width:700px) { .pg-image-text { grid-template-columns:minmax(0,1fr); } }

/* Les repères suivent la largeur réelle de la photo, même réduite dans sa colonne. */
.pg-photo-strip { container-type:inline-size; --edge:clamp(6px,2.5cqi,28px); }
.pg-photo-strip > .strip-credit { left:var(--edge); bottom:clamp(6px,3cqi,34px); }
.pg-photo-strip > .strip-sound { right:clamp(6px,3cqi,34px); bottom:clamp(6px,3cqi,34px); }
.pg-photo-strip > :is(.strip-credit,.strip-sound) { max-width:max(28px,calc(50% - var(--edge) - 3px)); }
@container (max-width:160px) {
  .pg-photo-strip > :is(.strip-credit,.strip-sound) { height:28px; min-width:28px; padding-inline:6px; }
  .pg-photo-strip > :is(.strip-credit,.strip-sound) svg { width:16px; height:16px; }
}

.pg-image-text.is-top { align-items:start; }

/* Espacement vertical compact des boutons sur mobile, y compris dans les aperçus. */
@media (max-width: 700px) {
  .pg-button, .pg-hero-cta { row-gap: var(--pg-pad) !important; }
}

.pg-title-button .pg-heading.is-size-s h2 { font-size:clamp(1.25rem,3.2vw,2.15rem); }
.pg-title-button .pg-heading.is-size-l h2 { font-size:clamp(2.4rem,6.2vw,4.2rem); }

/* Engagements : encadré numéroté, quatre, deux puis une colonne. */
.pg-commitments { padding:clamp(32px,5vw,64px); border-radius:24px; background:var(--pg-panel,#000); color:var(--pg-panel-text,#fff); }
.pg-commitments h2 { margin:0 0 clamp(24px,4vw,44px); font-size:clamp(1.8rem,4.5vw,3.4rem); line-height:1.05; letter-spacing:-.03em; color:var(--pg-accent,#F3D3D9); overflow-wrap:anywhere; }
.pg-commitments-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(28px,4vw,48px); }
.pg-commitments-list li { min-width:0; border-top:1px solid color-mix(in srgb,var(--pg-panel-text,#fff) 25%,transparent); padding-top:20px; overflow-wrap:anywhere; }
.pg-commitments-num { display:block; font-family:var(--font-title); font-weight:800; font-size:1rem; color:var(--pg-accent,#F3D3D9); margin-bottom:14px; }
.pg-commitments-list h3 { margin:0 0 10px; font-size:1.25rem; line-height:1.2; color:inherit; }
.pg-commitments-list p { margin:0 0 .7em; line-height:1.6; color:inherit; opacity:.8; }
@media(max-width:1100px) { .pg-commitments-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .pg-commitments-list { grid-template-columns:minmax(0,1fr); } }
