/* =============================================================================================
   Reach Adz v16 « Annoté » — Réalisations (portfolio/index.html) : la salle et le fil.
   Les composants (pub, filtres, papier, ruban, unités, wa, conversation, boutons, signes) viennent de
   css/site.css et suivent docs/v16/COMPOSANTS.md. Ici, la mise en page de la page seulement, préfixée .pf-.
   La loi : docs/v16/LOI-v16.md §5.4. Les mots : docs/v16/copie/preuves.md §1. Le générateur : _outils/gen_preuves.py.
   Rythme 4/8 px ; trois durées (120, 320, 600 ms) et une courbe (--ease) ; en mouvement réduit, l'état final.
   ============================================================================================= */

/* 0. Les chapitres : l'ancre passe sous l'en-tête et la barre des services ; un rythme plus serré au téléphone. */
.pf-domaine { scroll-margin-top: 64px; padding-block: clamp(40px, 16px + 6.2vw, 128px); }
/* Le premier chapitre suit la barre de près : la première rangée de visuels monte dans le premier écran. */
.pf-domaine__tete { display: grid; gap: 16px; margin-bottom: clamp(24px, .5rem + 4.1vw, 56px); }
.pf-domaine__tete .h2 { max-width: 13em; text-wrap: balance; }
@media (min-width: 1024px) {
  .pf-domaine__tete { grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); align-items: end; column-gap: 64px; }
  .pf-domaine__tete .chapo { padding-bottom: 4px; }
}
.pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* 1. Le héros court : le titre sur deux lignes, une phrase, puis le travail. */
.pf-tete { padding-bottom: clamp(24px, 12px + 2.5vw, 48px); }
.pf-tete__in { display: grid; gap: 16px; }
.pf-tete .h1 { max-width: 11em; text-wrap: balance; }
.pf-tete .chapo { max-width: 34em; }
@media (min-width: 1024px) {
  .pf-tete__in { gap: 24px; }
}
@media (max-width: 759px) {
  .pf-tete { padding-top: 24px; }
}

/* 3. Réseaux sociaux : les douze visuels, le centre aux cinq visuels d'abord.
   Téléphone : le travail d'abord (la barre collante dit « Réseaux sociaux 12 ») — la grille nue de trois colonnes,
   la pastille 1 sur le premier visuel et la note dessous (jamais de note sur une image, LOI §3), puis le titre
   comme un cartel, le chapô et le bouton. Tablette : titre, grille de quatre, bouton.
   Bureau : cinq colonnes ; la main dit « cinq visuels, un même centre » et l'accolade couvre la première rangée ;
   le bouton se range dans les trois colonnes libres de la dernière rangée. */
.pf-rs__oeuvre { position: relative; margin: 0; }
.pf-rs__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pf-rs__visuel {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--rayon-1); overflow: hidden;
  background: var(--glace-2); cursor: zoom-in; isolation: isolate;
  box-shadow: var(--ombre-1);
  transition: box-shadow var(--t-st) var(--ease), translate var(--t-st) var(--ease), scale var(--t-etat) var(--ease);
}
.pf-rs__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-rs__visuel:active { scale: .985; }
.pf-rs__cartel { display: none; }
.pf-rs__pin {
  position: absolute; z-index: 2; top: 8px; left: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan); color: var(--encre); font: 700 var(--fs-cartel)/1 var(--corps);
  box-shadow: 0 0 0 3px rgb(7 19 38 / .28), 0 6px 14px -4px rgb(0 0 0 / .45);
}
.pf-rs__note { display: none; }
.pf-rs__legende { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pf-rs__legende .main { max-width: none; }
.pf-rs__puce { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: var(--encre); font: 700 var(--fs-cartel)/1 var(--corps); }
.pf-rs__droite { display: grid; gap: 16px; justify-items: start; }
.pf-rs__fin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 4px; }
@media (hover: hover) {
  .pf-rs__visuel:hover { translate: 0 -4px; box-shadow: var(--ombre-2); }
}
@media (max-width: 759px) {
  .pf-rs > .wrap { display: flex; flex-direction: column; }
  .pf-rs__oeuvre { display: contents; }
  .pf-rs .pf-domaine__tete { order: 1; margin: 32px 0 0; }
}
@media (min-width: 760px) {
  .pf-rs__grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pf-rs__visuel { border-radius: var(--rayon-1); }
  .pf-rs__pin, .pf-rs__legende { display: none; }
}
@media (min-width: 1024px) {
  .pf-rs__oeuvre { display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
  .pf-rs__note { grid-column: 1; grid-row: 1; }
  .pf-rs__grille { grid-column: 1; grid-row: 2; }
  /* v23 : six colonnes, deux rangées (cinq colonnes laissaient une troisième rangée de deux, et le bouton à côté) ;
     le bouton est monté dans la tête, sous le chapô. */
  .pf-rs__grille { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 18px; }
  .pf-rs__cartel { display: block; margin-top: 12px; text-wrap: pretty; }
  /* La main, au-dessus de la première rangée : « cinq visuels, un même centre », et l'accolade sur les cinq premiers. */
  .pf-rs__note { display: grid; justify-items: center; gap: 2px; width: calc((100% - 90px) / 6 * 5 + 72px); margin: 0 0 12px; }
  .pf-rs__note .main { max-width: none; rotate: -1.5deg; }
  .pf-rs__accolade { width: 100%; height: 26px; }
}

/* 4. La salle : la nuit, les 28 pubs en grand, chacune éclairée de sa propre teinte (site.css), « Vous êtes… ».
   v18 : la salle en 3D. Un rail de pubs (COMPOSANTS §10.2) porte data-salle3d : au bureau (≥ 1024 px, souris, sans
   mouvement réduit), site.js pose .est-3d et range les 28 pubs sur un mur courbe qui tourne avec le défilement ; chaque
   pub vient vers vous au survol, s'ouvre en grand au clic. Au-dessous de 1024 px : le rail, que le pouce fait glisser,
   chaque pub s'incline comme un coverflow (site.css). Les filtres « Vous êtes… » retirent les pubs du mur. Aucun pli. */
.pf-salle__tete .source { margin-top: 16px; }
.pf-salle__vous { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: clamp(28px, 1rem + 2vw, 48px); }
.pf-salle__k { flex: none; font: 600 var(--fs-cartel)/1.2 var(--corps); color: var(--nuit-texte); }
.pf-salle__vous .filtres { position: relative; z-index: 2; min-width: 0; }
.pf-salle__rail { min-width: 0; }
.pf-salle .pub__ecran > video { opacity: 0; transition: opacity var(--t-st) var(--ease); }
.pf-salle .pub__ecran > video.est-joue { opacity: 1; }
.pf-salle__fin { display: grid; gap: 20px; margin-top: clamp(40px, 1.5rem + 3vw, 72px); padding-top: clamp(28px, 1rem + 1.5vw, 40px); border-top: 1px solid var(--nuit-ligne); }
.pf-salle__phrase { max-width: 30em; font: 600 var(--fs-chapo)/1.4 var(--corps); color: #fff; text-wrap: pretty; }
@media (min-width: 1024px) {
  .pf-salle__fin { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; }
}

/* 5. Personal branding, Sites web, Chatbots : le texte et la preuve côte à côte, en zigzag (calme). */
.pf-duo { display: grid; gap: clamp(24px, 12px + 3.1vw, 32px); }
.pf-duo__texte { display: grid; gap: clamp(16px, 13px + .8vw, 20px); justify-items: start; align-content: start; }
.pf-duo__texte .h2 { max-width: 12em; text-wrap: balance; }
.pf-duo__texte .pf-actions { margin-top: 4px; }
.pf-duo__objet { min-width: 0; }
@media (min-width: 1024px) {
  .pf-duo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: clamp(56px, 7vw, 128px); }
}

/* Personal branding : deux affiches fixes (pas de boucle : elles disent vrai à 0 s, cahier §1.5) ; v23, en tirages (fin du fichier). */
.pf-perso__pubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 600px; }
@media (min-width: 1024px) { .pf-perso__pubs { gap: 28px; justify-self: end; width: 100%; } }

/* Sites web : Univers School sur papier (un chiffre publié : le ruban), en unités. */

/* Chatbots : la conversation qu'on joue (Exemple · conversation fictive). Les questions sont des boutons,
   dans l'ordre ; chacune part en bulle verte, puis la réponse de la boutique s'écrit (js/portfolio.js). */
.pf-bot__objet { display: grid; justify-items: center; }
.pf-bot__wa { width: 100%; max-width: 420px; }
.pf-bot__questions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-height: 60px; padding: 0 14px 16px; }
.pf-bot__questions[hidden] { display: none; }
.pf-bot__q {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--cobalt);
  font: 600 15px/1.2 var(--corps); cursor: pointer;
  box-shadow: 0 1px .5px rgb(11 20 26 / .13), inset 0 0 0 1px rgb(29 74 147 / .16);
  transition: box-shadow var(--t-etat) var(--ease), scale var(--t-etat) var(--ease);
}
.pf-bot__q:hover { box-shadow: 0 1px .5px rgb(11 20 26 / .13), inset 0 0 0 1.5px var(--cobalt); }
.pf-bot__q:active { scale: .97; }
.pf-bot__q[hidden] { display: none; }
.pf-bot__consigne { margin-top: 16px; text-align: center; }
.pf-bot__consigne[hidden] { display: none; }
html.js .pf-bot.est-jouable [data-pf-chat]:not(.est-la) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pf-bot [data-pf-chat].est-la.wa__bulle--envoye { animation: pf-part var(--t-st) var(--ease) backwards; }
}
@keyframes pf-part { from { opacity: 0; translate: 0 8px; } }

/* 6. La fin : la conversation (LOI §4.13), sur la nuit de l'appel final. */
.pf-fin { padding-block: clamp(40px, 16px + 6.2vw, 136px); }
.pf-fin__in { display: grid; gap: clamp(24px, 16px + 2vw, 32px); }
.pf-fin .h2 { max-width: 9em; }
@media (min-width: 1024px) {
  .pf-fin__in { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; column-gap: 96px; }
}

/* v17 : l'assistant relié (OFFRES-v17 §5.2) — trois fiches de papier sous la conversation, le fil cyan qui y descend */
.pf-fiches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; margin: 28px 0 0; padding: 0; list-style: none; }
.pf-fiche { position: relative; display: grid; align-content: start; gap: 4px; padding: 11px 12px 12px; border-radius: var(--rayon-1); background: var(--papier); color: var(--encre); box-shadow: var(--ombre-papier); }
.pf-fiche b { font: 750 var(--fs-cartel)/1.2 var(--corps); letter-spacing: .03em; text-transform: uppercase; color: var(--cobalt); }
.pf-fiche span { font: 500 var(--fs-cartel)/1.35 var(--corps); color: var(--encre-2); }
.pf-fiche--equipe { box-shadow: var(--ombre-papier), 0 0 0 2px var(--cyan); }
.pf-fiche::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 28px; translate: -1px 0; background: var(--cyan); }
.pf-bot__wa > .exemple { left: auto; right: 14px; }

/* =============================================================================================
   v20 « Le musée de nuit » : Réalisations devient la collection (docs/v20/BRIEF-v20.md §4 ; copie :
   docs/v20/copie-maison-preuves.md §3). L'entrée de nuit et son plan des salles, une plaque par salle, les pubs du
   personal branding sur leur socle, la salle des sites (v21 : les deux vrais sites, css/sites21.css ; la maquette .mq est
   retirée). Les pièces (plaque, salle éclairée, socle, cartel, plan) viennent de css/site.css §33 ; ici, leur place.
   Seulement transform et opacity animés ; rien de nouveau ne bouge en mouvement réduit.
   ============================================================================================= */

/* 1. L'entrée : la nuit, le titre, et le plan des cinq salles comme au mur d'un musée. */
.pf-tete.section--nuit { padding-top: clamp(40px, 1.5rem + 4vw, 112px); padding-bottom: clamp(40px, 1.5rem + 4vw, 104px); overflow: clip; }
.pf-tete.section--nuit::before { /* la lumière de l'entrée : un dégradé déjà dessiné, posé derrière le titre */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 18% 0%, rgb(128 242 255 / .10), transparent 70%), radial-gradient(40% 60% at 92% 100%, rgb(42 91 174 / .28), transparent 70%);
}
.pf-tete__in { position: relative; }
.pf-tete .h1 { max-width: 12em; }
.pf-tete .chapo { max-width: 38em; }
.pf-salles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: clamp(16px, .5rem + 2vw, 40px) 0 0; padding: 0; list-style: none; }
.pf-salles__lien {
  position: relative; isolation: isolate; display: grid; align-content: start; gap: 6px; height: 100%; padding: 18px 18px 20px; overflow: hidden;
  border-radius: var(--rayon-1); color: #fff; text-decoration: none;
  background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
  transition: transform var(--t-st) var(--ease), box-shadow var(--t-st) var(--ease);
}
.pf-salles__lien::before { /* au survol, la salle s'allume d'une lueur cyan (opacité seule) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 500ms var(--ease);
  background: radial-gradient(70% 90% at 50% 0%, rgb(128 242 255 / .16), transparent 75%);
}
.pf-salles__lien .signe { margin-bottom: 8px; }
.pf-salles__n { font: 650 var(--fs-cartel)/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-2); }
.pf-salles__nom { font: 700 var(--fs-h3)/1.2 var(--titre); letter-spacing: -.012em; color: #fff; text-wrap: balance; }
.pf-salles__quoi { font: 400 var(--fs-cartel)/1.4 var(--corps); color: var(--nuit-doux); }
.pf-salles__lien:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .pf-salles__lien:hover { transform: translate3d(0, -4px, 0); box-shadow: inset 0 0 0 1px rgb(128 242 255 / .45); }
  .pf-salles__lien:hover::before { opacity: 1; }
}
@media (max-width: 1023px) {
  .pf-salles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 42%); overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gout)); padding-inline: var(--gout); scroll-padding-inline: var(--gout); scrollbar-width: none; overscroll-behavior-x: contain; }
  .pf-salles::-webkit-scrollbar { display: none; }
  .pf-salles > li { scroll-snap-align: start; }
}
@media (max-width: 759px) {
  .pf-tete.section--nuit { padding-top: 28px; padding-bottom: 36px; }
  .pf-salles { grid-auto-columns: 58%; gap: 10px; }
  .pf-salles__lien { gap: 4px; padding: 14px 14px 16px; }
  .pf-salles__lien .signe { --signe-taille: 32px; margin-bottom: 4px; }
}

/* 1 bis. La vitrine de l'entrée (ordinateur, ≥ 1024 px) : trois affiches en éventail, chacune de plus de 200 px, sur un
   socle avec le reflet de celle du centre. Aucune lampe : chaque affiche porte le halo de sa teinte (la lumière vient de
   l'œuvre). Elles entrent l'une après l'autre au chargement (opacity, transform), puis ne bougent plus ; au survol,
   l'éventail s'ouvre un peu (transform). Au téléphone, la vitrine n'existe pas : la page reste courte. */
.pf-vitrine { display: none; }
@media (min-width: 1024px) {
  .pf-tete__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(24px, 3vw, 56px); }
  .pf-tete .h1 { font-size: clamp(56px, 6px + 5vw, 112px); max-width: 9.5em; }
  .pf-tete__in > :not(.pf-vitrine) { grid-column: 1; }
  .pf-tete__in > .pf-salles { grid-column: 1 / -1; }
  .pf-vitrine {
    --v-l: clamp(200px, 17vw, 260px);
    grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: center; position: relative; display: grid; place-items: end center;
    width: calc(var(--v-l) * 2.1); height: calc(var(--v-l) * 16 / 9 + 70px); cursor: pointer; outline: none;
  }
  .pf-vitrine__piece { grid-area: 1 / 1; position: relative; display: block; width: var(--v-l); margin-bottom: 52px; transform-origin: 50% 100%; transition: transform 700ms var(--ease); }
  .pf-vitrine__piece--1 { transform: translate3d(-58%, 0, 0) rotate(-8deg) scale(.9); }
  .pf-vitrine__piece--3 { transform: translate3d(58%, 0, 0) rotate(8deg) scale(.9); }
  .pf-vitrine__piece--2 { z-index: 1; }
  .pf-vitrine img {
    display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--rayon-1);
    box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 30px 60px -24px rgb(0 0 0 / .8), 0 0 70px -18px color-mix(in srgb, var(--teinte, #80F2FF) 75%, transparent);
  }
  .pf-vitrine__socle { grid-area: 1 / 1; align-self: end; position: relative; width: var(--v-l); height: 52px; }
  .pf-vitrine__socle .oeuvre-socle__reflet { --reflet-h: 52px; position: absolute; inset: 0; margin: 0; }
  @media (prefers-reduced-motion: no-preference) {
    html.js .pf-vitrine__piece { animation: pf-vitrine-entre 900ms var(--ease) both; }
    html.js .pf-vitrine__piece--2 { animation-delay: 150ms; }
    html.js .pf-vitrine__piece--1 { animation-delay: 350ms; }
    html.js .pf-vitrine__piece--3 { animation-delay: 500ms; }
    .pf-vitrine:hover .pf-vitrine__piece--1 { transform: translate3d(-66%, -6px, 0) rotate(-11deg) scale(.9); }
    .pf-vitrine:hover .pf-vitrine__piece--3 { transform: translate3d(66%, -6px, 0) rotate(11deg) scale(.9); }
    .pf-vitrine:hover .pf-vitrine__piece--2 { transform: translate3d(0, -8px, 0); }
  }
}
@keyframes pf-vitrine-entre { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* 2. Les plaques dans les têtes de salle : la plaque à gauche, le chapô à droite (bureau). */
.pf-domaine__tete .plaque, .pf-duo__texte .plaque, .pf-sites__texte .plaque, .pf-fin .plaque { margin: 0; }
.pf-domaine__tete .plaque__nom, .pf-duo__texte .plaque__nom { max-width: 13em; }
.pf-salle__tete .plaque__ligne { font-weight: 600; color: #fff; }
.plan-musee + .pf-domaine { padding-top: clamp(40px, 16px + 6.2vw, 128px); }

/* 3. Personal branding : v23, deux tirages scotchés sur la bande cyan (fin du fichier). */

/* 4. La salle des sites : le texte, les deux vrais sites (v21, _outils/sites21.py), puis l'étude publiée. */
.pf-sites { --salle-teinte: #D9F6FF; }
.pf-sites__in { display: grid; gap: clamp(28px, 1rem + 3vw, 56px); }
.pf-sites__texte { display: grid; gap: clamp(16px, 13px + .8vw, 20px); justify-items: start; align-content: start; }
.pf-sites__oeuvre { min-width: 0; justify-items: stretch; }
/* les vrais sites dans la colonne de droite : un téléphone un peu plus petit, pour qu'il reste posé devant la fenêtre
   (sans dépasser son haut) ; le cartel sur la nuit (sites21.css l'écrit pour une salle de jour) */
/* v23 : le texte au-dessus (la plaque à gauche, le chapô et les actions à droite, comme les autres salles), les quatre
   projets en grille sur toute la largeur (sites21.css § 11) : la colonne de cartes l'une sous l'autre prenait 2,5 écrans. */
.pf-sites__texte.pf-domaine__tete { margin-bottom: 0; }
.pf-sites__droite { display: grid; gap: 18px; justify-items: start; }
.pf-preuve {
  display: grid; gap: 10px 32px; padding-top: clamp(24px, 1rem + 1vw, 36px); border-top: 1px solid var(--nuit-ligne);
}
.pf-preuve__k { margin: 0; font: 650 var(--fs-cartel)/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-2); }
.pf-preuve__qui { margin: 0; color: #fff; }
.pf-preuve__chiffre { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--nuit-texte); font-size: var(--fs-corps); line-height: 1.4; }
.pf-preuve__chiffre b { font: 800 var(--fs-h2)/1 var(--titre); letter-spacing: -.035em; color: #fff; white-space: nowrap; }
.pf-preuve__fait { margin: 0; max-width: 40em; font-size: var(--fs-corps); line-height: 1.55; color: var(--nuit-texte); text-wrap: pretty; }
.pf-preuve__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.pf-preuve__pied .source { margin: 0; }
@media (min-width: 1024px) {   /* la grille de la bande (v23 : avec le dessin des deux barres) est dans le bloc v23, § 5 */
  .pf-preuve__k { grid-area: k; } .pf-preuve__qui { grid-area: qui; } .pf-preuve__chiffre { grid-area: chiffre; }
}
/* v20 « visuel d'abord » : ce qu'on a fait, au toucher (le chiffre parle d'abord). */
.pf-preuve__plus summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none;
  font: 700 var(--fs-corps)/1.2 var(--titre); color: #fff; }
.pf-preuve__plus summary::-webkit-details-marker { display: none; }
.pf-preuve__plus summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cyan); color: var(--encre); font: 800 18px/1 var(--titre); transition: transform 360ms cubic-bezier(.34, 1.56, .64, 1); }
.pf-preuve__plus[open] summary::after { transform: rotate(45deg); }
.pf-preuve__plus[open] .pf-preuve__fait { margin-top: 6px; }

/* 5. La sortie : (v23) la plaque ne se fige plus (elle restait 0,6 écran en place) ; voir la fin du fichier. */

/* =============================================================================================
   v23 · Les retouches de Réalisations, salle par salle (17/11). L'utilisateur : « plus de finesse et de beauté artistique,
   partie par partie » et « quand je scroll c'est trop trop long ». Rien ne se fige ; seulement transform et opacity (ou
   un dessin posé une fois) ; une arrivée par salle au plus (data-reveal → .est-vu) ; en mouvement réduit et sans JS, tout
   est posé. Générateur : _outils/gen_preuves.py ; gestes : js/portfolio.js (§ 5 à 7).
   ============================================================================================= */

/* — 1. L'entrée : chaque salle montre un coup d'œil de ce qu'elle garde. De vraies pièces (trois visuels, trois pubs, les
   deux patrons, un écran de site ; trois bulles sans texte pour les assistants) montent du pied de la carte, que le bord
   coupe, comme un produit qu'on dévoile ; au survol, elles montent et se redressent, la lueur suit le pointeur (data-spot). */
.pf-salles__lien { --ap-h: clamp(92px, 7.6vw, 118px); padding-bottom: calc(var(--ap-h) + 8px); }
.pf-ap { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: var(--ap-h); display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.pf-ap__piece {
  --r: 0deg; --y: 14px; flex: none; position: relative; display: block; width: 32%; margin-inline: -4%; overflow: hidden; border-radius: 7px;
  background: var(--nuit-2); box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 18px 30px -12px rgb(0 0 0 / .7);
  transform: translate3d(0, var(--y), 0) rotate(var(--r)); transform-origin: 50% 100%;
  transition: transform 560ms var(--ressort);
}
.pf-ap__piece img { display: block; width: 100%; height: auto; }
.pf-ap__piece:nth-child(1) { --r: -9deg; --y: 22px; }
.pf-ap__piece:nth-child(2) { z-index: 1; }
.pf-ap__piece:nth-child(3) { --r: 9deg; --y: 22px; }
.pf-ap--3 .pf-ap__piece { width: 36%; margin-inline: -2%; }
.pf-ap--3 .pf-ap__piece:nth-child(2) { --r: 7deg; --y: 20px; }
/* le site : une fenêtre (les trois feux) ; les assistants : trois bulles, la reçue blanche, l'envoyée verte de WhatsApp */
.pf-ap .pf-ap__fen { width: 84%; margin: 0; border-radius: 7px 7px 0 0; background: #fff; --r: -3deg; --y: 12px; }
.pf-ap__fen > i { display: block; height: 11px; background: radial-gradient(circle, #FF5F57 2.2px, transparent 2.6px) 5px 50% / 9px 9px no-repeat, radial-gradient(circle, #FEBC2E 2.2px, transparent 2.6px) 14px 50% / 9px 9px no-repeat, radial-gradient(circle, #28C840 2.2px, transparent 2.6px) 23px 50% / 9px 9px no-repeat, #ECEEF3; }
.pf-ap .pf-ap__wa { width: 78%; margin: 0; display: grid; gap: 6px; padding: 10px 10px 30px; border-radius: 10px 10px 0 0; background: #EFEAE2; --r: 3deg; --y: 12px; }
.pf-ap__b { display: block; width: fit-content; max-width: 86%; padding: 3px 7px 4px; border-radius: 7px; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); font: 500 10.5px/1.25 var(--corps); font-style: normal; color: #111B21; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-ap__b--e { justify-self: end; background: #D9FDD3; }
.pf-ap__b--court { min-width: 0; }
/* le texte de la carte reste au-dessus des pièces */
.pf-salles__lien > :not(.pf-ap) { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pf-salles__lien:hover .pf-ap__piece { transform: translate3d(0, calc(var(--y) - 12px), 0) rotate(calc(var(--r) * .45)); }
  .pf-salles__lien:hover .pf-ap__piece:nth-child(1) { transform: translate3d(-6%, calc(var(--y) - 12px), 0) rotate(calc(var(--r) * .45)); }
  .pf-salles__lien:hover .pf-ap__piece:nth-child(3) { transform: translate3d(6%, calc(var(--y) - 12px), 0) rotate(calc(var(--r) * .45)); }
}
/* l'arrivée : les coups d'œil montent du bord, une salle après l'autre (une fois, au chargement) */
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-ap { animation: pf-ap-monte 900ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(420ms + var(--k, 0) * 90ms); }
  .pf-salles > li:nth-child(2) .pf-ap { --k: 1; }
  .pf-salles > li:nth-child(3) .pf-ap { --k: 2; }
  .pf-salles > li:nth-child(4) .pf-ap { --k: 3; }
  .pf-salles > li:nth-child(5) .pf-ap { --k: 4; }
}
@keyframes pf-ap-monte { from { opacity: 0; transform: translate3d(0, 46px, 0); } }
@media (max-width: 759.98px) {
  .pf-salles__lien { --ap-h: 86px; }
  .pf-ap__piece { width: 30%; }
}

/* — 2. Réseaux sociaux : six colonnes, deux rangées (bureau) ; au téléphone, la grille d'un profil (trois colonnes serrées,
   les coins arrondis au bord de la grille). Les visuels se posent l'un après l'autre à l'arrivée. */
@media (min-width: 1024px) {
  .pf-rs .pf-domaine__tete { align-items: end; }
  .pf-rs__droite { padding-bottom: 4px; }
}
@media (max-width: 759.98px) {
  .pf-rs__grille { gap: 3px; }
  .pf-rs__visuel, .pf-rs__visuel:active { border-radius: 0; box-shadow: none; }
  .pf-rs__item:nth-child(1) .pf-rs__visuel { border-top-left-radius: 16px; }
  .pf-rs__item:nth-child(3) .pf-rs__visuel { border-top-right-radius: 16px; }
  .pf-rs__item:nth-child(10) .pf-rs__visuel { border-bottom-left-radius: 16px; }
  .pf-rs__item:nth-child(12) .pf-rs__visuel { border-bottom-right-radius: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-rs__grille > .pf-rs__item { transition: opacity 500ms linear, transform 800ms cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 45ms); }
  html.js .pf-rs__grille:not(.est-vu) > .pf-rs__item { opacity: 0; transform: translate3d(0, 28px, 0); }
}

/* — 3. Vidéo & UGC, au téléphone : la grille d'un profil, comme à l'accueil, au lieu du coverflow qu'on fait glisser.
   Trois colonnes, la page défile d'elle-même (rien ne se fige, rien ne glisse tout seul : data-ra-glisse dans le HTML) ;
   « Vous êtes… » trie la grille ; au-delà de douze pubs, trois rangées puis « Voir les 19 autres pubs » (js/portfolio.js).
   Une seule vidéo joue, la plus visible (site.js § 6). Un toucher ouvre le fil plein écran, avec « Enregistrer ».
   Tablette : le coverflow ; ordinateur : le mur en 3D (site.js). */
.pf-salle__plus { display: none; }
@media (max-width: 759.98px) {
  .pf-salle__rail::after { display: none; }
  .pf-salle [data-salle3d] .rail__piste,
  html.js .pf-salle [data-salle3d] .rail__piste {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 3px;
    margin: 0; padding: 0; overflow: hidden; scroll-snap-type: none; scroll-padding-inline: 0; touch-action: auto;
  }
  /* v23 · (revue) Pas de cadre sur la liste : 28 pubs finissent sur une rangée d'une seule, et un tri en laisse d'autres
     (11, 5, 4, 1) ; dans un cadre arrondi, les cases vides se lisaient comme des vidéos qui ne chargent pas. Les coins
     arrondis vont aux vignettes du bord, comme la grille des réseaux sociaux : la grille finit comme un vrai profil.
     js/portfolio.js (§ 5) pose les coins sur les pubs visibles (tri, repli) ; sans JS, la grille entière les a ici. */
  html:not(.js) .pf-salle .rail__piste > li:first-child,
  html.js .pf-salle .rail__piste > li.pf-coin-hg { --c-hg: 16px; }
  html:not(.js) .pf-salle .rail__piste > li:nth-child(3),
  html.js .pf-salle .rail__piste > li.pf-coin-hd { --c-hd: 16px; }
  html:not(.js) .pf-salle .rail__piste > li:nth-child(3n + 1):nth-last-child(-n + 3),
  html.js .pf-salle .rail__piste > li.pf-coin-bg { --c-bg: 16px; }
  html:not(.js) .pf-salle .rail__piste > li:last-child,
  html:not(.js) .pf-salle .rail__piste > li:nth-child(3n):nth-last-child(-n + 3),
  html.js .pf-salle .rail__piste > li.pf-coin-bd { --c-bd: 16px; }
  .pf-salle .rail__piste > li .pub__ecran,
  html.js .pf-salle [data-salle3d] .rail__piste > li .pub__ecran { border-radius: var(--c-hg, 0) var(--c-hd, 0) var(--c-bd, 0) var(--c-bg, 0); }
  .pf-salle .rail__piste > li .pub__cartel { border-radius: 0 0 var(--c-bd, 0) var(--c-bg, 0); }
  /* la mise au point dans la vignette : la grille, serrée, coupait l'anneau posé dehors, et l'image (positionnée) couvre
     un contour posé dedans ; l'anneau cyan est donc dessiné sur ::after, au-dessus de l'image (le contour transparent
     reste pour le mode contrasté de Windows) */
  .pf-salle .rail__piste > li .pub__ecran:focus-visible { outline: 2px solid transparent; outline-offset: -3px; }
  .pf-salle .rail__piste > li .pub__ecran:focus-visible::after {
    display: block; content: ""; inset: 0; width: auto; height: auto; z-index: 3; border-radius: inherit; opacity: 1;
    background: none; box-shadow: inset 0 0 0 3px var(--cyan), inset 0 0 0 5px rgb(7 19 38 / .7);
  }
  /* le bas de l'anneau passe sous le dégradé du cartel : le cartel le reprend sur ses trois bords */
  .pf-salle .rail__piste > li .pub__ecran:focus-visible + .pub__cartel { box-shadow: inset 3px 0 0 var(--cyan), inset -3px 0 0 var(--cyan), inset 0 -3px 0 var(--cyan); }
  html.js .pf-salle [data-salle3d] .rail__piste > li { animation: none; transform: none; opacity: 1; scroll-snap-align: none; }
  .pf-salle .pub { display: block; }
  .pf-salle .pub__ecran, html.js .pf-salle [data-salle3d] .pub__ecran { border-radius: 0; box-shadow: none; }
  .pf-salle .pub__ecran::after, .pf-salle .pub__garder { display: none; }
  .pf-salle .pub__cartel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 8px 8px; pointer-events: none;
    background: linear-gradient(rgb(6 14 30 / 0), rgb(6 14 30 / .84)); font-size: 0; line-height: 0;
  }
  .pf-salle .pub__cartel b { display: flex; align-items: center; gap: 5px; font: 650 11px/1.2 var(--corps); color: #fff; }
  .pf-salle .pub__cartel b::before { /* le triangle de lecture, comme sous une vignette de profil */
    content: ""; flex: none; width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent #fff;
  }
  /* replié : trois rangées, la dernière s'efface vers le bas ; le bouton dit combien il en reste */
  .pf-salle__rail.est-replie .rail__piste {
    max-height: calc((100cqw - 6px) / 3 * 16 / 9 * 3 + 6px);
    -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), rgb(0 0 0 / .18));
            mask-image: linear-gradient(#000 calc(100% - 96px), rgb(0 0 0 / .18));
  }
  .pf-salle__plus:not([hidden]) {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 12px 0 0; padding: 0 18px;
    border: 0; border-radius: 999px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
    color: #fff; font: 600 15px/1.2 var(--corps); cursor: pointer;
  }
  .pf-salle__plus .ico { width: 14px; height: 14px; color: var(--cyan); }
  .pf-salle__plus:active { background: rgb(255 255 255 / .12); }
  .pf-salle__plus:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
  .pf-salle__vous { margin-bottom: 18px; }
  .pf-salle__fin { margin-top: 32px; padding-top: 24px; }
}

/* — 4. Personal branding : le patron face caméra, en tirages instantanés scotchés sur la bande cyan (la famille de la
   planche de l'atelier, css/atelier21.css). L'affiche dans le cadre, la légende au feutre dans la marge, un rond « lire » ;
   le cartel sous le tirage. Ils se posent l'un après l'autre à l'arrivée ; au survol, le tirage se redresse et s'avance. */
.pf-tirage { position: relative; display: grid; justify-items: start; min-width: 0; margin: 0; }
.pf-tirage__cadre {
  position: relative; width: 100%; padding: 10px 10px 0; border-radius: 3px; background: #FBFAF6;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgb(13 32 63 / .2), 0 34px 54px -28px rgb(13 32 63 / .62);
  transform: rotate(var(--r, 0deg)); transition: transform 520ms cubic-bezier(.2, .9, .25, 1.12);
}
.pf-tirage__photo {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 1px; overflow: hidden;
  background: var(--nuit-2); cursor: pointer;
}
.pf-tirage__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.pf-tirage__photo::after { /* le brillant du papier photo */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(128deg, rgb(255 255 255 / .2), rgb(255 255 255 / 0) 34%), linear-gradient(0deg, rgb(13 32 63 / .16), transparent 30%);
}
.pf-tirage__photo:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }
.pf-tirage__lire {
  position: absolute; z-index: 3; right: 10px; bottom: 10px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgb(7 19 38 / .62); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .28);
}
.pf-tirage__lire .ico { width: 18px; height: 18px; translate: 1px 0; fill: currentColor; }
.pf-tirage__main { margin: 0; padding: 10px 4px 12px; text-align: center; font: 700 clamp(21px, 18px + .4vw, 26px)/1.05 var(--main); color: var(--encre); rotate: -1.5deg; }
.pf-tirage__scotch {
  position: absolute; z-index: 4; top: -12px; left: 50%; width: 86px; height: 24px; translate: -50% 0; rotate: calc(var(--r, 0deg) * -1.4 + 2deg);
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .2) 0 5px, transparent 5px 10px), rgb(245 236 210 / .9);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}
.pf-tirage:nth-child(2) .pf-tirage__scotch { width: 74px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .14) 0 5px, transparent 5px 10px), rgb(13 32 63 / .62); }
.pf-tirage .cartel-musee { max-width: 100%; margin-top: 18px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pf-tirage:hover .pf-tirage__cadre, .pf-tirage:focus-within .pf-tirage__cadre { transform: translate3d(0, -10px, 0) rotate(0deg) scale(1.03); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-perso__pubs:not(.est-vu) .pf-tirage__cadre { opacity: 0; }
  html.js .pf-perso__pubs.est-vu .pf-tirage__cadre { animation: pf-pose 760ms cubic-bezier(.2, .85, .25, 1.12) backwards; }
  html.js .pf-perso__pubs.est-vu .pf-tirage:nth-child(2) .pf-tirage__cadre { animation-delay: 160ms; }
}
@keyframes pf-pose {
  from { opacity: 0; transform: translate3d(0, -48px, 0) rotate(calc(var(--r, 0deg) * 3.2)) scale(1.08); }
  55% { opacity: 1; }
}
@media (min-width: 1024px) {
  .pf-perso__pubs { max-width: 600px; gap: 44px; }
  .pf-tirage:nth-child(2) { margin-top: 64px; }
}
@media (max-width: 759.98px) {
  .pf-perso__pubs { gap: 18px; padding-top: 14px; }
  .pf-tirage:nth-child(2) { margin-top: 28px; }
  .pf-tirage__cadre { padding: 7px 7px 0; }
  .pf-tirage__main { padding: 7px 2px 9px; font-size: 17px; }
  .pf-tirage__scotch { width: 62px; height: 20px; top: -10px; }
  .pf-tirage:nth-child(2) .pf-tirage__scotch { width: 54px; }
  .pf-tirage__lire { right: 7px; bottom: 7px; width: 36px; height: 36px; }
  .pf-tirage .cartel-musee { margin-top: 14px; padding-left: 10px; }
}

/* — 5. Sites web : la grille des projets (sites21.css § 11) et, dessous, l'étude publiée en dessin : deux barres à l'échelle
   exacte. « Avant » se pose, puis « Après » part de son niveau et s'allonge jusqu'à × 3,5 (une fois, à l'arrivée). */
.pf-preuve__graphe { display: grid; gap: 12px; align-content: center; min-width: 0; margin: 4px 0; }
.pf-preuve__barre { --lab: 3.4em; --val: 4.2em; display: flex; align-items: center; gap: 12px; margin: 0; }
.pf-preuve__barre > span { flex: none; width: var(--lab); font: 600 var(--fs-cartel)/1 var(--corps); color: var(--nuit-doux); }
.pf-preuve__barre > i {
  flex: none; display: block; width: calc(var(--v) * (100% - var(--lab) - var(--val) - 24px)); height: 14px; border-radius: 99px; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 26px -6px rgb(128 242 255 / .6);
}
.pf-preuve__barre--avant > i { background: rgb(255 255 255 / .22); box-shadow: none; }
.pf-preuve__barre > b { flex: none; font: 800 var(--fs-h3)/1 var(--titre); letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.pf-preuve__barre--avant > b { font-weight: 700; color: var(--nuit-texte); }
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-preuve__graphe:not(.est-vu) .pf-preuve__barre > i { transform: scaleX(.02); }
  html.js .pf-preuve__graphe:not(.est-vu) .pf-preuve__barre > b { opacity: 0; }
  html.js .pf-preuve__barre--avant > i { transition: transform 700ms cubic-bezier(.22, .8, .2, 1) 150ms; }
  html.js .pf-preuve__barre > b { transition: opacity 360ms linear 700ms; }
  html.js .pf-preuve__graphe.est-vu .pf-preuve__barre:not(.pf-preuve__barre--avant) > i { animation: pf-avant-apres 2100ms cubic-bezier(.45, 0, .2, 1) 150ms both; }
  html.js .pf-preuve__barre:not(.pf-preuve__barre--avant) > b { transition-delay: 1900ms; }
}
@keyframes pf-avant-apres {
  0% { transform: scaleX(.02); }
  32%, 52% { transform: scaleX(var(--depuis, .3)); }
  100% { transform: scaleX(1); }
}
@media (min-width: 1024px) {
  .pf-preuve { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); grid-template-areas: "k chiffre graphe" "qui chiffre graphe" "plus plus pied"; align-items: start; column-gap: 40px; }
  .pf-preuve__graphe { grid-area: graphe; align-self: center; }
  .pf-preuve__plus { grid-area: plus; }
  .pf-preuve__pied { grid-area: pied; justify-content: flex-end; align-self: center; }
}

/* — 6. Assistants : avant chaque réponse, « l'assistant écrit » (trois points, comme la conversation de la sortie) ; et
   la fiche dont il se sert s'allume quand il répond (le catalogue pour les tailles, la commande et votre équipe pour
   « M »). Joué seulement avec JS et sans mouvement réduit ; sinon, tout est posé, les trois fiches allumées. */
.pf-bot__frappe { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; }
.pf-bot__frappe > i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: conv-point 900ms ease-in-out infinite; }
.pf-bot__frappe > i:nth-child(2) { animation-delay: 150ms; }
.pf-bot__frappe > i:nth-child(3) { animation-delay: 300ms; }
@media (prefers-reduced-motion: no-preference) {
  .pf-bot [data-pf-chat].est-la.wa__bulle--recu, .pf-bot__frappe { animation: pf-recu 320ms cubic-bezier(.3, 1.4, .5, 1) backwards; transform-origin: 0 0; }
}
@keyframes pf-recu { from { opacity: 0; transform: scale(.8); } }
/* v23 · (revue) Éteinte, une fiche reste lisible, le texte à pleine encre (à .62, il tombait sous AA, et la plupart des
   visiteurs ne jouent pas la conversation) : seuls son fil caché et un cadre plus léger disent « pas encore servie ».
   Allumée : l'ombre du papier et l'anneau cyan, dessinés sur ::after, arrivent en fondu (opacité seule, plus d'ombre
   animée), le fil descend (scaleY) et la fiche fait un petit saut, une fois (transform). L'équipe suit la commande. */
.pf-fiche::before { transform-origin: 50% 0; transition: transform 420ms var(--ease); }
.pf-fiche::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: var(--ombre-papier), 0 0 0 2px var(--cyan); transition: opacity 420ms var(--ease);
}
html.js .pf-bot.est-jouable .pf-fiche { box-shadow: 0 0 0 1px rgb(13 32 63 / .12); }
html.js .pf-bot.est-jouable .pf-fiche:not(.est-allumee)::before { transform: scaleY(0); }
html.js .pf-bot.est-jouable .pf-fiche.est-allumee::after { opacity: 1; }
html.js .pf-bot.est-jouable .pf-fiche--equipe.est-allumee::before,
html.js .pf-bot.est-jouable .pf-fiche--equipe.est-allumee::after { transition-delay: 220ms; }
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-bot.est-jouable .pf-fiche.est-allumee { animation: pf-fiche-sert 620ms var(--ease) both; }
  html.js .pf-bot.est-jouable .pf-fiche--equipe.est-allumee { animation-delay: 220ms; }
}
@keyframes pf-fiche-sert { 0%, 100% { transform: none; } 38% { transform: translate3d(0, -6px, 0); } }

/* — 7. La sortie : la plaque ne se fige plus ; à côté d'elle, la main de l'accueil et sa flèche vers la conversation. */
.sortie-main { display: flex; align-items: flex-end; gap: 6px; margin-top: 22px; }
.sortie-main .main { margin: 0; max-width: none; white-space: nowrap; }
.sortie-main .trait { width: 116px; translate: 0 -12px; }
.pf-fin__texte { display: grid; justify-items: start; }
@media (max-width: 1023.98px) { .sortie-main { display: none; } }
@media (max-width: 759.98px) {
  /* les sept activités en une bande qu'on fait glisser (comme à l'accueil), au lieu de cinq lignes de pastilles */
  .pf-fin .conversation { min-width: 0; max-width: 100%; }
  .pf-fin .conversation__choix[data-choix="activite"] {
    min-width: 0; flex-wrap: nowrap; justify-content: flex-start; margin-inline: -14px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none;
    scroll-padding-inline: 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .pf-fin .conversation__choix[data-choix="activite"]::-webkit-scrollbar { display: none; }
  .pf-fin .conversation__choix[data-choix="activite"] > .puce { flex: none; }
}

/* — 1 bis. L'entrée, au bureau : le chapô suit le titre de près (la vitrine, haute de trois rangées, ouvrait un trou entre
   les deux) ; l'espace libre passe sous le chapô, avant les salles. */
@media (min-width: 1024px) {
  .pf-tete__in { grid-template-rows: auto auto 1fr auto; }
  .pf-tete .chapo { align-self: start; }
  /* les cinq salles et leur coup d'œil tiennent dans le premier écran (1440 × 900) : la vitrine un peu moins haute */
  .pf-tete.section--nuit { padding-top: clamp(32px, 1rem + 3vw, 88px); }
  .pf-vitrine { --v-l: clamp(190px, 15vw, 240px); }
  .pf-tete__in > .pf-salles { margin-top: 0; }
}

/* — 5 bis. Les quatre projets, un peu moins hauts qu'à l'accueil (520 px au plus, au lieu de 600) : l'écran monte du pied
   de la carte et le bord le coupe plus tôt ; la salle des sites rend un cinquième d'écran. */
@media (min-width: 1024px) {
  .pf-sites .pj-pile--bento .pj { height: clamp(460px, 35vw, 520px); }
}

/* =============================================================================================
   v23.2 · Le dressage (17/11) : « le plat est cuit, on le présente ». Pas de nouvelle salle : des finitions, salle par
   salle. Le premier écran arrive d'un coup (les pièces de l'entrée chargées d'emblée, des arrivées courtes), les grilles
   tombent juste, la sortie est une feuille de nuit comme les autres salles. Transform et opacity seulement.
   ============================================================================================= */

/* — 1. L'entrée. Les arrivées raccourcies : la vitrine en 600 ms (au lieu de 900 ms et 500 ms d'attente), les coups d'œil
   en 480 ms juste après (ils arrivaient jusqu'à 1,7 s après le chargement, les cartes restaient vides). */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html.js .pf-vitrine__piece { animation-duration: 600ms; }
  html.js .pf-vitrine__piece--2 { animation-delay: 0ms; }
  html.js .pf-vitrine__piece--1 { animation-delay: 90ms; }
  html.js .pf-vitrine__piece--3 { animation-delay: 180ms; }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-ap { animation-duration: 480ms; animation-delay: calc(60ms + var(--k, 0) * 50ms); }
}
.pf-vitrine picture { display: contents; }
/* le surligneur du titre est posé d'emblée : sur la nuit, « vrai travail » (marine) restait illisible tant que la boîte
   cyan ne s'était pas dessinée ; le reflet passe toujours une fois quand le titre arrive (site.css § 30.5) */
html.js .pf-tete .st { background-size: 100% 1.01em; transition: none; }
/* chaque coup d'œil dépasse le bord de sa carte, qui le coupe (le visuel du milieu flottait 4 px au-dessus du bord) ; les
   affiches cadrées sur le visage, pas sur le haut de l'image */
.pf-ap__piece { height: calc(var(--ap-h) + 6px); }
.pf-ap__piece img { height: 100%; object-fit: cover; object-position: 50% 0; }
.pf-ap--2 .pf-ap__piece img, .pf-ap--3 .pf-ap__piece img { object-position: 50% 42%; }
.pf-ap--3 .pf-ap__piece:first-child img { object-position: 56% 72%; transform: scale(1.3); transform-origin: 56% 72%; }   /* la gérante, pas le mur */
.pf-ap .pf-ap__fen img { height: calc(100% - 11px); }
.pf-ap .pf-ap__wa { height: auto; min-height: calc(var(--ap-h) + 6px); }
/* « Automatisation & data » tient sur une ligne : les cinq noms de salle s'alignent (dès 1280 px, où la carte a la place) */
@media (min-width: 1280px) {
  .pf-salles__n { letter-spacing: .11em; white-space: nowrap; }
}

/* — 2. Réseaux sociaux : au téléphone, la grille arrive vite (elle est sous le héros, dans le premier écran). */
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-rs__grille > .pf-rs__item { transition-duration: 360ms, 560ms; transition-delay: calc(var(--i) * 30ms); }
}
@media (max-width: 759.98px) {   /* la première rangée est dans le premier écran : posée d'emblée, jamais une bande blanche */
  html.js .pf-rs__grille:not(.est-vu) > .pf-rs__item:nth-child(-n + 3) { opacity: 1; transform: none; }
}

/* — 3. Vidéo & UGC, au bureau : les sept activités sur une seule ligne (« Tourisme » restait seul sur la seconde). */
@media (min-width: 1240px) {
  .pf-salle__vous .filtres { gap: 6px; flex-wrap: nowrap; }
  .pf-salle__vous .filtres > button { gap: 7px; padding-inline: 14px; font-size: 16px; }
}

/* — 4. Personal branding : le tirage recadré sur son patron (la gérante était sous un grand mur brun). */
.pf-tirage__photo img { object-position: var(--foyer, 50% 34%); transform: scale(var(--zoom, 1)); transform-origin: var(--foyer, 50% 34%); }

/* — 6. Assistants : les trois fiches, une pièce de papier chacune, à la même hauteur que leurs voisines. */
.pf-fiches { align-items: stretch; }
.pf-fiche span { text-wrap: pretty; }

/* — 7. La sortie, en feuille de nuit comme les autres salles (elle était plate sous les Assistants) ; au bureau, la plaque en
   haut (le plan de la visite dit « La sortie » dès qu'elle arrive, il disait encore « Assistants ») et la main en bas, sa
   flèche pointée sur « Envoyer sur WhatsApp ». */
main > .pf-fin {
  --feuille: 32px;
  position: relative; z-index: 1; margin-top: calc(-1 * var(--feuille));
  border-radius: var(--feuille) var(--feuille) 0 0; overflow: clip;
  box-shadow: 0 -22px 48px -30px rgb(7 19 38 / .55), 0 -1px 0 rgb(255 255 255 / .07);
}
main > .pf-fin .aurore__ciel { border-radius: inherit; }
@media (max-width: 759.98px) { main > .pf-fin { --feuille: 22px; } }
@media (min-width: 1024px) {
  .pf-fin__in { align-items: stretch; }
  .pf-fin__texte { grid-template-rows: auto auto 1fr; align-content: stretch; padding-top: 6px; }
  .pf-fin .sortie-main { align-self: end; justify-self: end; margin: 0 -64px 62px 0; }
  .pf-fin .sortie-main .trait { width: 132px; translate: 0 -8px; rotate: 9deg; }
}

/* — La porte de la page sœur, dans la sortie (bureau large seulement, où la colonne a sa place ; au téléphone, la
   conversation suffit, le pied a les liens).
   Une carte de verre comme celles de l'entrée de Réalisations ; son coup d'œil monte du bord droit, que la carte coupe ;
   au survol, elle se lève, la flèche avance, la lueur suit le pointeur (data-spot). Même bloc dans portfolio.css et
   resultats.css (chaque page n'a que sa feuille). */
.porte-preuves { display: none; }
@media (min-width: 1280px) {
  .porte-preuves {
    position: relative; isolation: isolate; display: grid; align-content: start; gap: 7px; width: 100%; max-width: 460px; min-height: 152px;
    margin-top: clamp(32px, 1rem + 2vw, 48px); padding: 22px 44% 22px 22px; overflow: hidden;
    border-radius: var(--rayon-1); color: #fff; text-decoration: none;
    background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
    transition: transform var(--t-st) var(--ease), box-shadow var(--t-st) var(--ease);
  }
  .porte-preuves__k { font: 650 var(--fs-cartel)/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-2); }
  .porte-preuves__nom { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 700 var(--fs-h3)/1.15 var(--titre); letter-spacing: -.012em; }
  .porte-preuves__nom .ico { flex: none; width: 18px; height: 18px; color: var(--cyan); transition: translate var(--t-etat) var(--ease); }
  .porte-preuves__ligne { font: 400 var(--fs-cartel)/1.45 var(--corps); color: var(--nuit-doux); text-wrap: pretty; }
  .porte-preuves:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
  .porte-preuves__apercu { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 42%; display: flex; justify-content: center; pointer-events: none; }
  /* Résultats : les colonnes des quatre études chiffrées, à l'échelle de chacune, posées sur une même ligne de sol */
  .porte-preuves__apercu--resultats { align-items: flex-end; gap: 12px; padding: 0 22px 26px 6px; }
  .porte-preuves__barres { display: flex; align-items: flex-end; gap: 3px; height: 62px; padding: 0 3px; border-bottom: 1.5px solid rgb(255 255 255 / .28); }
  .porte-preuves__b { display: block; width: 9px; height: calc(var(--v) * 100%); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--cyan-2), var(--cyan)); }
  .porte-preuves__b--avant { background: rgb(255 255 255 / .26); }
  .porte-preuves__b--np { height: 100%; background: none; outline: 1.5px dashed rgb(255 255 255 / .38); outline-offset: -1.5px; }
  /* Réalisations : trois affiches en éventail, coupées par le bas de la carte */
  .porte-preuves__apercu--portfolio { align-items: flex-start; padding-top: 26px; }
  .porte-preuves__affiche {
    --r: 0deg; --y: 0px; flex: none; display: block; width: 74px; margin-inline: -10px; overflow: hidden; border-radius: 7px;
    background: var(--nuit-2); box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 18px 30px -12px rgb(0 0 0 / .7);
    transform: translate3d(0, var(--y), 0) rotate(var(--r)); transform-origin: 50% 100%; transition: transform 560ms var(--ressort);
  }
  .porte-preuves__affiche:nth-child(1) { --r: -9deg; --y: 16px; }
  .porte-preuves__affiche:nth-child(2) { z-index: 1; }
  .porte-preuves__affiche:nth-child(3) { --r: 9deg; --y: 16px; }
  .porte-preuves__affiche img { display: block; width: 100%; height: auto; }
}
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .porte-preuves:hover { transform: translate3d(0, -4px, 0); box-shadow: inset 0 0 0 1px rgb(128 242 255 / .45); }
  .porte-preuves:hover .porte-preuves__nom .ico { translate: 4px 0; }
}
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .porte-preuves:hover .porte-preuves__affiche { transform: translate3d(0, calc(var(--y) - 10px), 0) rotate(calc(var(--r) * .5)); }
}

/* =============================================================================================
   v23.2 · La revue finale (17/11) : les derniers défauts vus avant l'aperçu.
   ============================================================================================= */

/* — Sites web : sur la nuit, « Demander des exemples » (le bouton à l'encre) se fondait dans le fond, marine sur marine.
   Retourné pour la nuit : le blanc, l'encre en texte ; le reflet cyan passe toujours au survol (site.css). */
.pf-sites .btn--encre { background: #fff; color: var(--encre); }
.pf-sites .btn--encre:not(:focus-visible) { box-shadow: 0 12px 26px -16px rgb(0 0 0 / .7); }   /* la mise au point garde son anneau */
.pf-sites .btn--encre:hover { background: #E8FCFF; }

/* — L'étude publiée (Univers School) : « Après » rejoint × 3,5 en 1,5 s (2,1 s avant), sa valeur se pose à la fin. */
@media (prefers-reduced-motion: no-preference) {
  html.js .pf-preuve__graphe.est-vu .pf-preuve__barre:not(.pf-preuve__barre--avant) > i { animation-duration: 1500ms; }
  html.js .pf-preuve__barre:not(.pf-preuve__barre--avant) > b { transition-delay: 1400ms; }
}

/* — L'entrée : là où « Automatisation & data » passe sur deux lignes (téléphone, et 1024 à 1279 px, cinq cartes de front), chaque
   carte garde deux lignes au nom du pôle, calé en bas : les cinq noms de salle partent de la même ligne (« Assistants »
   tombait 14 px plus bas que « Sites web ») ; de 1024 à 1279 px, les noms de salle gardent aussi deux lignes. */
@media (max-width: 759.98px), (min-width: 1024px) and (max-width: 1279.98px) {
  .pf-salles__n { display: flex; align-items: flex-end; min-height: 2em; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .pf-salles__nom { min-height: 2.4em; }
}
/* le coup d'œil des assistants : sous 1280 px, la conversation de l'accueil se lit en entier (« Kayn livraison l Ta… ») */
@media (max-width: 1279.98px) {
  .pf-ap .pf-ap__wa { width: 92%; }
  .pf-ap__b { max-width: 96%; }
}

/* — La sortie, de 1024 à 1279 px (sans la porte) : la main reste en bas de la colonne, sa flèche sur « Envoyer sur WhatsApp »
   (la porte cachée laissait la main dans la deuxième rangée, juste sous le titre, pointée sur les pastilles). */
@media (min-width: 1024px) { .pf-fin .sortie-main { grid-row: 3; } }
