/* ============================================================
   CLANDESTUDIO — page Portfolio
   ============================================================ */

/* ---------- En-tête ---------- */
.pf-hero { padding: clamp(90px, 12vw, 150px) 0 50px; }
.pf-hero__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.pf-hero__intro .h-xl { margin-top: 16px; }
.pf-hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; padding: 0; }
.pf-hero__stats li { padding: 14px 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.pf-hero__stats b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.pf-hero__stats span { font-size: 14px; color: var(--ink-soft); }
.pf-hero__reel {
  position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 30px; background: #151210; box-shadow: var(--shadow-lg); cursor: pointer;
}
.pf-hero__reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pf-hero__reel:hover img { transform: scale(1.04); }
.pf-hero__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 250, 242, .78);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .35s var(--ease), background .35s;
}
.pf-hero__play .icon { width: 32px; height: 32px; margin-left: 4px; fill: var(--ink); }
.pf-hero__reel:hover .pf-hero__play { transform: translate(-50%, -50%) scale(1.08); background: var(--neon); }
.pf-hero__label { position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 250, 242, .82); font-weight: 600; font-size: 14px; }
.pf-partners { margin-top: 56px; }
.partners { align-items: center; }
.partners img { height: 40px; width: auto; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .72; transition: all .3s; }
.partners img:hover { filter: none; opacity: 1; }
.partners img[src$="mbc5.png"] { filter: grayscale(1) brightness(.45) contrast(1.3); height: 46px; }

/* ============================================================
   Entrée du portfolio : le showreel tourne en boucle en fond,
   adouci par un voile, le titre se pose dessus.
   ============================================================ */
.pf-hero {
  position: relative; overflow: hidden; min-height: min(88vh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(120px, 16vh, 200px) 0 50px;
}
.pf-hero__bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  scale: 1.06;                                  /* un peu plus grand, pour le mouvement */
}
/* voile : opaque à gauche (le texte respire), dégradé vers l'image à droite */
.pf-hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    var(--cream) 0%, rgba(242, 233, 220, .94) 26%, rgba(242, 233, 220, .62) 48%,
    rgba(242, 233, 220, .18) 72%, transparent 100%);
}
.pf-hero__grid, .pf-hero .shell { position: relative; z-index: 2; }
.pf-hero__actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.pf-hero__caption { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Bandeau des chaînes — posé juste sous le film institutionnel.
   ============================================================ */
.pf-channels { padding: clamp(26px, 3.4vw, 46px) 0 clamp(10px, 1.4vw, 20px); }
.pf-channels__label { margin-bottom: clamp(14px, 1.8vw, 22px); text-align: center; color: var(--ink-soft); }
.pf-channels .pf-partners { margin-top: 0; }

/* ---------- Navigation par savoir-faire ---------- */
.pf-nav { position: sticky; top: 78px; z-index: 20; padding: 10px 0; }
.pf-nav__inner {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  width: max-content; max-width: 100%; margin: 0 auto;   /* la barre épouse son contenu et se centre */
  padding: 8px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 250, 242, .72);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.pf-nav__inner::-webkit-scrollbar { display: none; }
.pf-nav a {
  flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap; transition: all .3s var(--ease);
}
.pf-nav a:hover { color: var(--ink); background: rgba(19, 15, 12, .06); }
.pf-nav a.is-on { color: var(--paper); background: var(--ink); }

/* ---- Menu des services, petits ecrans -------------------------------------
   Sur tablette, la barre defile horizontalement : sans reperage, le menu a
   l'air simplement coupe. Un degrade sur le bord droit indique qu'il reste des
   entrees a faire defiler.
   Sur telephone, on renonce carrement au defilement : les 11 entrees passent a
   la ligne et sont toutes visibles. Une barre collante de trois rangs
   mangerait un cinquieme de l'ecran, donc elle cesse d'etre collante ici. */
@media (max-width: 1100px) {
  .pf-nav__inner {
    background-image: linear-gradient(90deg, transparent calc(100% - 30px), rgba(255, 250, 242, .95));
    background-repeat: no-repeat;
    background-size: 30px 100%;
    background-position: right center;
    padding-right: 36px;
  }
}

@media (max-width: 620px) {
  .pf-nav { position: static; padding: 8px 0; }
  .pf-nav__inner {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    row-gap: 2px;
    border-radius: 24px;
    padding: 8px 10px;
    background-image: none;
  }
  .pf-nav a { padding: 7px 12px; font-size: 12.5px; }
}

/* ---------- Sections ---------- */
.pf-section { padding: clamp(64px, 8vw, 118px) 0; }
.pf-section__head { max-width: 760px; margin-bottom: clamp(28px, 3.6vw, 52px); }
.pf-section__head .h-lg { margin-top: 14px; }
.pf-section__head .lead { margin-top: 16px; }
.pf-role {
  margin: 34px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.pf-role:first-child { margin-top: 0; }

/* ============================================================
   Cartes compactes — reprises du portfolio personnel
   L'image EST la carte : le texte se pose dessus, dans un dégradé.
   ============================================================ */
.pf-card {
  position: relative; display: block; height: 100%; border-radius: var(--r-md); overflow: hidden;
  /* Sable et non noir : le fond de la carte affleurait sur la première ligne de
     la vignette (un pixel), et se lisait comme une fine barre noire en haut. */
  background: var(--sand, #e8e0d4); color: #f3ead9;
}
/* Tant que la photo n'est pas arrivée, la carte montre un fond très sombre :
   sur une trame dense, cela se lit comme un « cadre noir ». On pose donc une
   teinte claire qui se confond avec la page, le temps du chargement. */
.pf-card__media { background: var(--sand, #e8e0d4); }
.pf-card__media img { background: var(--sand, #e8e0d4); }
.pf-card__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--r-md); background: var(--sand, #e8e0d4); cursor: pointer;
}
.pf-card__media img { display: block; width: 100%; height: auto; }
.pf-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Voile volontairement LÉGER : il ne sert qu'à asseoir le titre, pas à
     assombrir la photo. Toute la lisibilité est portée par l'ombre du texte
     ci-dessous, ce qui laisse l'image respirer. */
  background: linear-gradient(to top,
    rgba(8, 6, 5, .74) 0%, rgba(8, 6, 5, .34) 24%, rgba(8, 6, 5, .08) 46%, transparent 64%);
}
.pf-card__body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: grid; gap: 2px; padding: clamp(9px, .85vw, 13px); pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 16px rgba(0, 0, 0, .5);
}
/* Au survol, le voile s'efface presque entièrement : on voit le film tourner.
   Le titre reste lisible grâce à son ombre. */
.pf-card:hover .pf-card__media::after,
.pf-card:focus-within .pf-card__media::after { opacity: .35; transition: opacity .4s var(--ease); }
.pf-card__media::after { transition: opacity .4s var(--ease); }

/* La pastille de durée : sombre mais translucide, jamais un aplat noir. */
.pf-card__dur { background: rgba(13, 11, 9, .5); }
.pf-card h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(12.5px, .92vw, 15px); line-height: 1.16; letter-spacing: -.02em; color: #f3ead9;
}
.pf-card__meta { font-size: 9.5px; letter-spacing: .05em; color: rgba(243, 234, 217, .76); }
.pf-card__sub { font-size: 12.5px; margin: 0; color: rgba(243, 234, 217, .72); }
.pf-card__dur {
  position: absolute; z-index: 3; right: 8px; bottom: 8px; padding: 2px 7px;
  border-radius: 999px; background: rgba(13, 11, 9, .66); font-size: 10px; font-weight: 600;
  color: #f3ead9;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pf-card__media--soon { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--sand); color: var(--ink-soft); }
.pf-card__media--soon span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }

/* Le rond « play » n'apparaît plus au centre : la vidéo se découvre au survol
   et le contrôle reste discret, en haut à droite (comme le portfolio perso). */
.pf-card__play {
  position: absolute; z-index: 3; top: 10px; right: 10px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(13, 11, 9, .55); border: 1px solid rgba(243, 234, 217, .3);
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pf-card__play .icon { width: 13px; height: 13px; fill: #f3ead9; margin-left: 2px; }
.pf-card:hover .pf-card__play { opacity: 1; }
.pf-card:hover .pf-card__play:hover { transform: scale(1.12); }

/* ---------- Vie des cartes : survol marqué, image qui avance, trame scan ---------- */
.pf-card__media img { transition: transform .85s var(--ease), filter .4s var(--ease); }
.pf-card:hover .pf-card__media img { transform: scale(1.07); }
/* trame de balayage, comme sur les cartes du portfolio personnel */
.pf-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none;
  mix-blend-mode: overlay; transition: opacity .4s var(--ease);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 3px);
}
.pf-card:hover .pf-card__media::before { opacity: 1; }
.pf-card { transition: box-shadow .4s var(--ease); }
.pf-card:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.pf-card__body { transition: transform .4s var(--ease); }
.pf-card:hover .pf-card__body { transform: translateY(-3px); }

/* ---------- Aperçu vidéo au survol ---------- */
.pf-card__pv {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.pf-card.is-pv .pf-card__pv { opacity: 1; }

/* ============================================================
   Trame alignée — plus de trou en bas à gauche.
   Une trame en colonnes (masonry) remplissait de haut en bas : la
   dernière ligne restait incomplète et collée à gauche. Ici les cartes
   sont posées en flex, à la largeur exacte de 1/--cols, et la dernière
   ligne se CENTRE au lieu de laisser un vide. Le générateur choisit
   --cols d'après le nombre de cartes (voir meilleur_cols()).
   ============================================================ */
.pf-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(10px, 1.1vw, 16px);
}
.pf-grid > .pf-card {
  flex: 0 0 calc((100% - (var(--cols, 4) - 1) * clamp(10px, 1.1vw, 16px)) / var(--cols, 4));
  max-width: calc((100% - (var(--cols, 4) - 1) * clamp(10px, 1.1vw, 16px)) / var(--cols, 4));
  display: block; margin: 0;
  aspect-ratio: auto !important;      /* la carte prend la forme de sa photo */
}

/* ============================================================
   Correctif : les cartes se chevauchaient.
   Transformer la carte elle-même casse la mise en page : la carte sort
   de son flux et recouvre sa voisine. On neutralise donc l'animation
   d'entrée sur la carte et on la reporte sur son contenu.
   ============================================================ */
.pf-grid > .pf-card[data-anim] {
  opacity: 1; translate: none; scale: none; rotate: none; clip-path: none; will-change: auto;
}
/* L'image ne s'efface JAMAIS : on garde seulement le léger glissement d'entrée.
   Un fondu d'opacité laissait chaque carte à mi-teinte tant qu'elle n'était pas
   au centre de l'écran ; combiné au fond sombre de la carte, cela se lisait comme
   un voile noir permanent sur toute la trame. */
.pf-grid > .pf-card[data-anim] > .pf-card__media {
  opacity: 1;
  translate: 0 calc((1 - var(--in, 1)) * 22px);
}
.pf-grid > .pf-card[data-anim] > .pf-card__body { opacity: 1; }
.pf-more__grid > .pf-card[data-anim] > .pf-card__media,
.pf-more__grid > .pf-card[data-anim] > .pf-card__body { opacity: 1; }

/* ============================================================
   L'image respire au fil du scroll.
   Chaque image dérive doucement dans son cadre selon sa position à
   l'écran (--pv, posé par site.js). Le cadre ne bouge pas : seul le
   contenu se déplace, donc aucune carte ne peut se chevaucher.
   L'agrandissement doit couvrir exactement la course du déplacement :
   scale 1.1 laisse 5 % de débordement de chaque côté, soit 18 px sur
   une vignette de 360 px de haut — la course est donc bornée à 14 px.
   Une course plus grande laissait apparaître le fond sombre : c'était
   le « cadre noir » que l'on voyait sur les petites cartes.
   ============================================================ */
.pf-grid > .pf-card > .pf-card__media {
  overflow: hidden;
  background: var(--sand, #e8e0d4);   /* jamais de noir, meme 1 px */
  aspect-ratio: 16 / 9;               /* format unique : toutes les cartes ont la même hauteur */
}

/* Une carte dont l'affiche est en PORTRAIT (3/4) : le cadre épouse l'affiche.
   L'affiche se voit alors EN ENTIER, au lieu d'être rognée à la hauteur d'une
   bande — c'est le cas des visuels d'émission (MasterChef, Aïcha, Jalsat…). */
.pf-grid > .pf-card--portrait > .pf-card__media { aspect-ratio: 3 / 4; }
.pf-grid > .pf-card > .pf-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* scale 1.16 laisse 8 % de débordement de chaque côté. La course ne doit
     jamais l'atteindre : 0.5625 (le rapport de la boîte 16/9) x 4 = 2.25 % de la
     largeur, soit bien moins que 8 %. On garde donc une marge confortable et la
     barre noire d'un pixel ne peut plus apparaître, quel que soit l'arrondi. */
  scale: 1.16;
  translate: 0 calc(var(--pv, 0) * -4%);
}

/* La grille qui suit une scène plein cadre ne doit pas la toucher : 0 px d'écart
   collait les cartes sous la grande vidéo. */
.pf-scene + .shell .pf-grid,
.pf-scene + .pf-grid { margin-top: clamp(44px, 6vw, 96px); }
.pf-duo + .shell .pf-grid { margin-top: clamp(36px, 4.5vw, 72px); }

/* ---------- Réalisation mise en avant + reste replié ---------- */
.pf-more { margin-top: clamp(16px, 2vw, 26px); }
.pf-more summary {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  font-size: 14px; font-weight: 600; list-style: none;
  transition: background .3s var(--ease);
}
.pf-more summary::-webkit-details-marker { display: none; }
.pf-more summary:hover { background: rgba(19, 15, 12, .05); }
.pf-more__closed { display: none; }
.pf-more[open] .pf-more__open { display: none; }
.pf-more[open] .pf-more__closed { display: inline; }
.pf-more__count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 11px; text-align: center;
}
.pf-more summary .icon { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.pf-more[open] summary .icon { transform: rotate(180deg); }
.pf-more__grid { margin-top: clamp(16px, 2vw, 26px); animation: pfMore .5s var(--ease) both; }
/* Filet de sécurité : quoi qu'il arrive, une carte pliée reste lisible. */
.js .pf-more__grid [data-anim] { --in: 1; opacity: 1; }
@keyframes pfMore { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Formats verticaux ---------- */
.pf-reels__label { margin: 36px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.pf-reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pf-card--reel, .pf-card--reel .pf-card__media { aspect-ratio: 9 / 16; }
.pf-card--reel .pf-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pf-reels .pf-card h3 { font-size: 12.5px; }
.pf-reels .pf-card__meta { font-size: 9.5px; letter-spacing: .04em; }

/* ============================================================
   Duo « dernier projet » — poster d’un côté, vidéo de l’autre,
   avec le descriptif.
   ============================================================ */
.pf-duo {
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: clamp(14px, 1.8vw, 26px); align-items: stretch; margin-bottom: clamp(16px, 2vw, 28px);
}
.pf-duo__poster { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #0f0c0a; }
.pf-duo__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-duo__main { display: grid; grid-template-rows: auto 1fr; gap: clamp(12px, 1.5vw, 20px); }
.pf-duo__video {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-lg); overflow: hidden; background: #0f0c0a; aspect-ratio: 16 / 9;
}
.pf-duo__video img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pf-duo__video:hover img { transform: scale(1.04); }
.pf-duo__video .pf-card__play { top: auto; bottom: 12px; right: 12px; opacity: 1; }
/* ============================================================
   Tête en « scène » — la vidéo occupe tout le bloc, en boucle,
   adoucie par un voile ; le titre se pose à gauche, comme
   l'entrée de la page. La légende est posée sur la vidéo, en bas.
   ============================================================ */
.pf-scene {
  position: relative; overflow: hidden;
  min-height: clamp(380px, 44vw, 560px);
  display: grid; align-items: center;
  background: #151210;
}
.pf-scene__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 46%;
  scale: 1.04;
}
/* voile : opaque à gauche (le texte respire), dégradé vers l'image à droite */
.pf-scene__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    var(--cream) 0%, rgba(242, 233, 220, .95) 28%, rgba(242, 233, 220, .62) 50%,
    rgba(242, 233, 220, .16) 74%, transparent 100%);
}
.is-dark .pf-scene__veil {
  background: linear-gradient(90deg,
    #17120e 0%, rgba(23, 18, 14, .95) 28%, rgba(23, 18, 14, .62) 50%,
    rgba(23, 18, 14, .16) 74%, transparent 100%);
}
.pf-scene__inner {
  position: relative; z-index: 2;
  display: grid; gap: clamp(26px, 3.4vw, 54px); padding-top: clamp(30px, 4vw, 62px);
  padding-bottom: clamp(30px, 4vw, 62px);
}
.pf-scene__text { max-width: 620px; }
.pf-scene__text .h-lg { margin-top: 14px; }
.pf-scene__text .lead { margin-top: 16px; color: #574a3c; }   /* encre plus dense : le creme du voile obligeait a rester a 4,5:1, la limite */
/* la légende posée sur la vidéo */
.pf-scene__cap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; color: var(--ink); }
.pf-scene__badge {
  padding: 5px 12px; border-radius: 999px; background: var(--neon, #3fd9c0);
  color: #0f0c0a; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.pf-scene__label { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(30, 24, 18, .82); }
.pf-scene__running {
  margin-left: auto; padding: 3px 11px; border-radius: 999px;
  border: 1px solid rgba(30, 24, 18, .3); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(30, 24, 18, .8);
}
@media (max-width: 760px) {
  .pf-scene { min-height: 340px; }
  .pf-scene__veil {
    background: linear-gradient(to top, rgba(8, 6, 5, .78) 0%, rgba(8, 6, 5, .3) 40%, transparent 72%);
  }
}

/* ---------- Le duo en « scène », comme l'entrée de la page ----------
   La vidéo tourne en fond, en boucle, adoucie par un voile ; le texte se
   pose à gauche, la vidéo se découvre à droite. */
.pf-duo--scene {
  position: relative; display: block; overflow: hidden;
  margin-bottom: clamp(16px, 2vw, 28px);
  border-radius: var(--r-lg); background: #151210;
  min-height: clamp(340px, 42vw, 560px);
}
.pf-duo__bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 46%;
  scale: 1.04;
}
/* voile : opaque à gauche (le texte respire), dégradé vers l'image à droite */
.pf-duo__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    #0f0c0a 0%, rgba(15, 12, 10, .95) 30%, rgba(15, 12, 10, .66) 52%,
    rgba(15, 12, 10, .24) 74%, transparent 100%);
}
.pf-duo__scene { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 18px; min-height: inherit; padding: clamp(20px, 2.6vw, 40px); }
.pf-duo__scene-text { display: grid; gap: 10px; max-width: 560px; color: #f3ead9; }
.pf-duo__scene-text .pf-duo__badges { margin: 0; }
.pf-duo__scene-text .pf-duo__label { color: rgba(243, 234, 217, .72); }
.pf-duo__scene-text .pf-duo__title { color: #f3ead9; }
.pf-duo__scene-text .pf-duo__detail { color: rgba(243, 234, 217, .78); font-size: 15px; line-height: 1.6; }
.pf-duo__scene-text .pf-duo__cta { color: var(--neon, #3fd9c0); }
.pf-duo__scene-meta { display: grid; gap: 8px; justify-items: end; align-self: end; }
.pf-duo__play {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(243, 234, 217, .34); background: rgba(13, 11, 9, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pf-duo__play .icon { width: 18px; height: 18px; fill: #f3ead9; margin-left: 3px; }
.pf-duo__running {
  padding: 4px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(243, 234, 217, .8);
  border: 1px solid rgba(243, 234, 217, .22);
}
@media (max-width: 760px) {
  .pf-duo--scene { min-height: 300px; }
  .pf-duo__scene { grid-template-columns: 1fr; align-items: end; }
  .pf-duo__scene-meta { justify-items: start; }
  .pf-duo__scene-text { max-width: none; }
}

/* la vidéo qui tourne d'elle-même : elle occupe exactement la même boîte */
.pf-duo__auto {
  display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg);
  overflow: hidden; background: #0f0c0a; object-fit: cover;
}
.pf-duo__text { display: grid; gap: 8px; align-content: start; }
.pf-duo__badges { display: flex; align-items: center; gap: 12px; margin: 0; flex-wrap: wrap; }
.pf-duo__latest {
  padding: 5px 12px; border-radius: 999px; background: var(--neon);
  color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.pf-duo__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.pf-duo__title { font-family: var(--display); font-size: clamp(22px, 2.4vw, 36px); line-height: 1.06; letter-spacing: -.03em; }
.pf-duo__detail { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.pf-duo__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--copper); }
.pf-duo__cta .icon { width: 15px; height: 15px; }

/* ============================================================
   Hook — un seul projet mis en valeur : la vidéo d'un côté,
   le propos de l'autre. La vidéo verticale vit dans un CADRE
   TÉLÉPHONE : bordure, liseré clair et encoche noire en haut.
   ============================================================ */
.pf-hook {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.pf-hook.is-rev .pf-hook__media { order: 2; }
.pf-hook__media { position: relative; }
.pf-hook__media .pf-card { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.pf-hook__media .pf-card__play { width: 44px; height: 44px; opacity: 1; }
.pf-hook__media .pf-card__play .icon { width: 18px; height: 18px; }
.pf-hook__media .pf-card--reel {
  aspect-ratio: 9 / 16; width: min(340px, 74%); margin-inline: auto;
}
/* Le cadre et la vidéo occupent EXACTEMENT la même boîte : sinon la vidéo,
   plus étroite que le cadre, laisse une bande noire en bas et sur les côtés. */
.pf-hook__media .pf-card--reel .pf-card__media {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
}
.pf-hook__media .pf-card--reel {
  border-radius: 30px; overflow: hidden; background: #1b1612;
  box-shadow:
    0 0 0 6px #1b1612,
    0 0 0 7px rgba(243, 234, 217, .14),
    0 26px 52px -22px rgba(0, 0, 0, .8);
}
.pf-hook__media .pf-card--reel .pf-card__media { border-radius: 30px; }
/* l'encoche, posée sur la vidéo */
.pf-hook__media .pf-card--reel::before {
  content: ""; position: absolute; z-index: 4; top: 10px; left: 50%;
  width: 32%; height: 6px; margin-left: -16%; border-radius: 6px;
  background: rgba(0, 0, 0, .62); pointer-events: none;
}
/* le voile de titre est inutile dans ce cadre : le texte est à côté */
.pf-hook__media .pf-card--reel .pf-card__media::after { display: none; }
.pf-hook__media .pf-card--reel .pf-card__body { display: none; }
.pf-hook__text .eyebrow { margin-bottom: 14px; }
.pf-hook__text h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.pf-hook__text .lead { margin-top: 18px; }

/* ============================================================
   Audio — une colonne par famille, comme le lecteur album du
   portfolio personnel. Les longues listes se lisent de haut en bas.
   ============================================================ */
.pf-mgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 2.4vw, 38px); align-items: start; }
.pf-mgroup { min-width: 0; }
.pf-group {
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper);
}
.pf-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-tracks--col { gap: 4px; }
.pf-track__btn {
  display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto auto;
  align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; text-align: left;
  border-radius: 10px; background: transparent; cursor: pointer; transition: background .25s var(--ease);
}
.pf-track__btn:hover { background: rgba(19, 15, 12, .05); }
.pf-track.is-on .pf-track__btn { background: rgba(19, 15, 12, .07); }
.pf-track__num { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.pf-track__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(19, 15, 12, .07); }
.pf-track__icon .icon { width: 11px; height: 11px; fill: var(--ink); margin-left: 2px; }
.pf-track.is-on .pf-track__icon { background: var(--neon); }
.pf-track__info { display: grid; gap: 1px; min-width: 0; }
.pf-track__info strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-track__info small { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-track__lang { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; color: var(--ink-soft); }
.pf-track__dur { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.pf-tracks--carousel { display: flex; gap: 10px; }
.pf-tracks--carousel .pf-track { flex: none; width: clamp(260px, 26vw, 360px); }
.pf-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pf-langs button {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .25s var(--ease);
}
.pf-langs button:hover { color: var(--ink); }
.pf-langs button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Carrousel (sections de plus de 10 éléments) ---------- */
.pf-carousel { position: relative; margin-top: 22px; }
.pf-carousel__viewport {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.pf-carousel__viewport::-webkit-scrollbar { display: none; }
.pf-carousel__viewport { cursor: grab; }
.pf-carousel__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.pf-carousel__viewport.is-dragging * { pointer-events: none; }
.pf-carousel__viewport:focus-visible { outline: 2px solid var(--neon-ink); outline-offset: 6px; border-radius: 12px; }
.pf-carousel__row { display: flex; gap: 18px; padding: 4px 2px 8px; }
.pf-card--slide { flex: none; width: clamp(240px, 23vw, 320px); scroll-snap-align: start; }
.pf-carousel__nav { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Vitrine d'émissions qui défilent ---------- */
.pf-showcase { margin: clamp(20px, 2.6vw, 36px) 0; }
.pf-showcase li { list-style: none; }
.pf-showcase img { display: block; height: clamp(120px, 15vw, 210px); width: auto; border-radius: var(--r-md); object-fit: cover; }

/* ============================================================
   Nos outils — les logos flottent autour du titre.
   Le champ est borné à la section (overflow: hidden) : aucun logo
   ne peut en sortir. Chacun dérive lentement sur sa propre orbite.
   ============================================================ */
.pf-tools {
  position: relative; overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0;
  min-height: clamp(420px, 46vw, 620px);
  display: grid; place-items: center;
}
.pf-tools__field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pf-tools__field img {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: auto; max-height: var(--s);
  margin-left: calc(var(--s) / -2); margin-top: calc(var(--s) / -2);
  object-fit: contain; opacity: .5;
  filter: grayscale(1) brightness(.4);
  animation: pfFloat var(--t) ease-in-out infinite alternate;
  animation-delay: var(--d);
  will-change: transform;
}
.pf-tools__stage { position: relative; z-index: 1; }
.pf-tools__stage .section-head { max-width: 640px; margin-inline: auto; }
.pf-tools__stage .h-lg { font-size: clamp(30px, 4.2vw, 66px); }
/* l'auréole derrière le titre : les logos s'effacent sous le texte */
.pf-tools__stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 128%; height: 190%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(58% 52% at 50% 50%, var(--cream) 0 32%, rgba(242, 233, 220, .82) 52%, transparent 78%);
}
.is-dark .pf-tools__stage::before {
  background: radial-gradient(58% 52% at 50% 50%, #17120e 0 32%, rgba(23, 18, 14, .82) 52%, transparent 78%);
}
.is-dark .pf-tools__field img { filter: grayscale(1) brightness(1.7); opacity: .38; }
@keyframes pfFloat {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(14px, -18px, 0) rotate(6deg); }
  100% { transform: translate3d(-12px, 14px, 0) rotate(-5deg); }
}

/* ============================================================
   Nos clients — deux bandes de logos, noir et blanc puis couleur
   au survol, dans un emplacement identique pour tous.
   ============================================================ */
.pf-clients { padding: clamp(60px, 7.5vw, 110px) 0; }
.pf-logos { margin-top: 34px; }
.pf-logos--slow { margin-top: 18px; }
.pf-logos ul { list-style: none; margin: 0; padding: 0; }
.pf-logos li {
  display: grid; place-items: center; width: 202px; height: 112px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--logo-bg, #fff);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pf-logos img {
  width: 164px; max-width: 164px; height: 70px; max-height: 70px;
  object-fit: contain;
  filter: grayscale(1); opacity: .82;
  transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.pf-logos li:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.pf-logos li:hover { border-color: var(--copper); }
.pf-logos:hover .marquee__track { animation-play-state: paused; }
.is-dark .pf-logos li { background: var(--logo-bg); border-color: rgba(255, 255, 255, .08); }

/* ---------- Sites web ---------- */
.pf-web { padding: clamp(60px, 7.5vw, 110px) 0; }
.pf-web__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.pf-web__card {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pf-web__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pf-web__card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 18%; }
.pf-web__card .pf-web__body { display: grid; gap: 4px; padding: 16px 18px 20px; }
.pf-web__card h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.pf-web__card p { font-size: 13.5px; color: var(--ink-soft); }
.pf-web__tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .pf-grid > .pf-card { flex-basis: calc((100% - 2 * 12px) / 3); max-width: calc((100% - 2 * 12px) / 3); }
  .pf-mgroups { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 900px) {
  .pf-hook { grid-template-columns: 1fr; gap: 22px; }
  .pf-hook.is-rev .pf-hook__media { order: 0; }
  .pf-hook__media .pf-card--reel, .pf-hook__media .pf-card--reel .pf-card__media { max-width: none; }
  .pf-duo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pf-grid > .pf-card { flex-basis: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
  .pf-hero__grid { grid-template-columns: 1fr; }
  .pf-tracks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pf-grid > .pf-card { flex-basis: calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); }
  .pf-card h3 { font-size: 15px; }
  .pf-card__play { width: 42px; height: 42px; }
  .pf-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-track__num, .pf-track__lang { display: none; }
  .pf-track__btn { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .pf-logos li { width: 152px; height: 90px; }
  .pf-logos img { width: 122px; max-width: 122px; height: 52px; max-height: 52px; }
}
@media (max-width: 460px) {
  .pf-grid > .pf-card { flex-basis: calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); }
}

/* ============================================================
   Sites web — les sites et outils que nous construisons
   ============================================================ */
.pf-web__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.pf-site {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: inherit;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pf-site:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pf-site__shot { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.pf-site__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 1s var(--ease); }
.pf-site:hover .pf-site__shot img { transform: scale(1.04); }
.pf-site__body { display: grid; gap: 6px; align-content: start; padding: 16px 18px 20px; }
.pf-site__body h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.pf-site__body p { font-size: 13.5px; color: var(--ink-soft); }
.pf-site__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--copper); }
.pf-site__cta .icon { width: 13px; height: 13px; }

/* ---------- Appel à l'action final ---------- */
.pf-cta { padding: clamp(60px, 8vw, 120px) 0; }
.pf-cta__card {
  padding: clamp(30px, 4vw, 64px); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 12% 0%, rgba(212, 165, 116, .16), transparent 62%), var(--paper);
}
.pf-cta__card .h-lg { margin-top: 12px; max-width: 640px; }
.pf-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Entrée : le bouton de lecture du showreel ---------- */
.pf-hero__watch { display: inline-flex; align-items: center; gap: 10px; }
.pf-hero__watch .icon { width: 15px; height: 15px; }

/* ---------- Carrousel : barre de progression et boutons ---------- */
.pf-carousel__ui { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pf-carousel__bar { position: relative; flex: 1; height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pf-carousel__bar i { position: absolute; inset: 0 auto 0 0; width: 22%; border-radius: inherit; background: var(--copper); transition: transform .3s var(--ease); }
.pf-carousel__btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer; transition: all .25s var(--ease);
}
.pf-carousel__btn .icon { width: 14px; height: 14px; }
.pf-carousel__btn[data-dir="-1"] .icon { transform: rotate(180deg); }
.pf-carousel__btn:hover { background: var(--ink); border-color: var(--ink); }
.pf-carousel__btn:hover .icon { fill: var(--paper); }

/* ---------- Carte verticale posée dans une trame ---------- */
.pf-card--vertical .pf-card__media { aspect-ratio: 9 / 16; }
.pf-card--vertical .pf-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Lecteur vidéo — posé au-dessus de la page, jamais plus grand que
   l'écran. La vidéo garde ses proportions : ni étirée, ni coupée,
   même si la source est en 1920x1080. Une vidéo verticale garde
   son format.
   ============================================================ */
dialog.player {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  width: 100%; height: 100%; max-width: none; max-height: none;
  padding: clamp(14px, 3vw, 44px);
  border: 0; margin: 0;
  background: rgba(8, 6, 5, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
dialog.player[open] { display: grid; place-items: center; }
dialog.player::backdrop { background: transparent; }
.player__inner {
  position: relative; display: grid; gap: 10px; justify-items: center;
  width: min(100%, 1240px); max-height: 100%;
}
.player__screen {
  width: 100%; max-height: calc(100vh - 150px);
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-lg, 22px); background: #000; box-shadow: var(--shadow-lg);
}
/* une vidéo verticale garde son format : jamais élargie de force */
.player.is-vertical .player__screen {
  aspect-ratio: 9 / 16; width: auto; height: min(76vh, 100%);
}
.player__screen iframe,
.player__screen video {
  display: block; width: 100%; height: 100%;
  border: 0; object-fit: contain; background: #000;
}
.player__title { font-size: 14px; text-align: center; color: var(--paper, #f3ead9); }
.player__close {
  position: absolute; z-index: 5; top: 12px; right: 12px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(243, 234, 217, .32); background: rgba(13, 11, 9, .72); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.player__close .icon { width: 14px; height: 14px; fill: #f3ead9; transform: rotate(45deg); }
.player__close:hover { background: var(--neon, #3fd9c0); transform: scale(1.08); }

/* ---- Lecteur video sur telephone : plein ecran ----------------------------
   Par defaut le lecteur est un dialog centre, dimensionne par
   `aspect-ratio: 16/9` : sur un ecran de telephone, la video n'occupe qu'une
   bande au milieu, avec des marges enormes. On lui donne tout l'ecran.
   `object-fit: contain` est conserve : la video remplit l'ecran sans jamais
   etre deformee ni rognee, qu'elle soit en 16/9 ou en vertical 9/16.
   En paysage (rotation du telephone) les marges disparaissent et la video
   occupe toute la surface utile. */
@media (max-width: 620px) {
  dialog.player { padding: 0; }
  .player__inner {
    /* display: block + enfant en position absolue : un enfant de grille en
       `height: 100 %` se resolvait contre la LIGNE de grille (219 px), pas
       contre la hauteur du conteneur, donc la video restait minuscule. */
    position: relative;
    display: block;
    width: 100%; height: 100%;
    max-height: none;
  }
  .player__screen,
  .player.is-vertical .player__screen {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    background: #000;
  }
  .player__title {
    position: absolute; left: 0; right: 0; bottom: 12px;
    padding: 0 54px 0 16px; text-align: left;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  }
  /* la croix reste atteignable et au-dessus de la video */
  .player__close { top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 6; }
  /* bouton « remplir / entier » : une video 16/9 sur un ecran 9/19,5 ne peut pas
     etre a la fois entiere et plein ecran. On laisse l'utilisateur trancher. */
  .player__fit {
    position: absolute; z-index: 6;
    bottom: max(12px, env(safe-area-inset-bottom)); right: 12px;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(243, 234, 217, .32); background: rgba(13, 11, 9, .72);
    color: #f3ead9; font: 600 11.5px/1 var(--font, system-ui); letter-spacing: .04em;
    cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .player__fit:hover { background: var(--neon, #3fd9c0); color: #0f0c0a; }
  /* mode « remplir » : la video couvre l'ecran (elle est rognee sur les cotes) */
  .player.is-remplir .player__screen video,
  .player.is-remplir .player__screen iframe { object-fit: cover; }
  .player.is-remplir .player__title { display: none; }
}

/* le bouton n'existe que sur petit ecran */
.player__fit { display: none; }
@media (max-width: 620px) { .player__fit { display: block; } }

/* en paysage, la video prend toute la hauteur disponible */
@media (max-width: 900px) and (orientation: landscape) {
  dialog.player { padding: 0; }
  .player__screen { border-radius: 0; max-height: 100vh; }
  .player__inner { max-height: 100vh; gap: 0; }
  .player__title { position: absolute; bottom: 10px; left: 16px; padding-right: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card:hover .pf-card__media img, .pf-card:hover .pf-card__body { transform: none; }
  .pf-card:hover .pf-card__media::before { opacity: 0; }
  .pf-more__grid { animation: none; }
  .pf-grid > .pf-card > .pf-card__media img { scale: 1; translate: none; }
  .pf-tools__field img { animation: none; }
}

/* ---------- Pistes en colonnes verticales (radio) ----------
   Toute la liste est visible d'un coup : on parcourt de haut en bas au lieu
   de faire défiler latéralement. Le nombre de colonnes est posé par le
   générateur (--cols), et la lecture suit les colonnes une à une. */
.pf-tracks--cols {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  grid-auto-flow: column;                       /* on remplit colonne par colonne */
  grid-template-rows: repeat(var(--lignes, 24), auto);
  gap: 3px clamp(14px, 2vw, 30px);
  align-content: start;
}
@media (max-width: 1000px) {
  .pf-tracks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-template-rows: none; }
}
@media (max-width: 620px) {
  .pf-tracks--cols { grid-template-columns: 1fr; }
}

/* Filet : si une section repasse un jour en sombre, la legende redevient creme.
   Sur le voile clair (etat par defaut), elle est en encre foncee. */
.is-dark .pf-scene__cap { color: #f3ead9; }
.is-dark .pf-scene__label { color: rgba(243, 234, 217, .82); }
.is-dark .pf-scene__running { color: rgba(243, 234, 217, .78); border-color: rgba(243, 234, 217, .28); }
