/* Comme Rezo Zero, mais avec l'identité d'Aurélie : un grand texte d'intention en Ivy Mode,
   l'illustration au-dessus, savoir-faire et approche en deux colonnes, des clients qui défilent,
   puis les projets en quinconce de part et d'autre d'un filet central.
   Un seul univers, clair, comme son papier à lettres : pas de thème sombre. */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(fonts/open-sans.woff2) format('woff2-variations'), url(fonts/open-sans.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-display: swap;
  font-weight: 300 800;
  src: url(fonts/open-sans-italique.woff2) format('woff2-variations'), url(fonts/open-sans-italique.woff2) format('woff2');
}

/* Polices de secours calées sur Ivy Mode Light : tant qu'Ivy Mode n'est pas arrivée, le texte
   garde presque la même largeur, donc les mêmes retours à la ligne, et la page ne bouge pas
   quand la vraie police remplace la provisoire. Le premier jeu qui existe sur l'appareil est utilisé. */
@font-face { font-family: 'ivy-secours-georgia'; font-weight: 300 400; font-style: normal; src: local('Georgia'); size-adjust: 94.1%; }
@font-face { font-family: 'ivy-secours-georgia'; font-weight: 300 400; font-style: italic; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 94.1%; }
@font-face { font-family: 'ivy-secours-times'; font-weight: 300 400; font-style: normal; src: local('Times New Roman'), local('TimesNewRomanPSMT'); size-adjust: 103.6%; }
@font-face { font-family: 'ivy-secours-times'; font-weight: 300 400; font-style: italic; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'); size-adjust: 103.6%; }

:root {
  color-scheme: light;

  /* Couleurs, reprises de ses fichiers (encre #202022, carreau rose, trèfle bleu) */
  --papier: #FFFFFF;
  --encre: #202022;
  --gris: #6F6F74;
  --filet: #E4E4E6;
  --voile: #F3F3F4;
  --trait: #c1c1c3; /* toutes les lignes du site, comme la ligne centrale des projets */
  --rose: #BB2649;
  --bleu: #0B2884;

  /* Typographies : Ivy Mode (Adobe Fonts) et Open Sans */
  --display: 'ivymode', 'Ivy Mode', 'ivy-secours-georgia', 'ivy-secours-times', Georgia, 'Times New Roman', serif;
  --display-graisse: 300; /* Ivy Mode Light, partout */
  --display-interlettre: .015em; /* très léger, partout */
  --texte: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --t-xs: .75rem;
  --t-s: .875rem;
  --t-m: 1rem;
  --t-l: 1.125rem;
  --d-s: 1.75rem;
  --d-m: clamp(1.7rem, 2.5vw, 2.35rem);
  --d-l: clamp(2.2rem, 4vw, 3.6rem);
  --d-xl: clamp(2.5rem, 5.3vw, 5.2rem);

  /* Espaces */
  --cote: clamp(16px, 6.5vw, 104px);
  --colonne: clamp(1rem, 2.6vw, 2.75rem);
  --respiration: clamp(5rem, 11vw, 10rem);
  --entete: 6rem;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--entete); }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-m);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.site { background: var(--papier); color: var(--encre); overflow-x: clip; }
img, video { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }
em { font-style: italic; }
/* Ivy Mode toujours dans la même graisse, sans italique : les *mots en italique* des titres restent droits. */
:is(.section-titre, .intention-texte, .defile-piste, .page-titre,
  .savoir-liste li, .carte-nom, .vignette-nom, .fiche-nom, .fiche-suite-nom, .manifeste-bloc h2,
  .etapes-liste h3, .savoirs-liste h3, .mentions h2) :is(em, i) { font-style: normal; }
:is(.section-titre, .intention-texte, .defile-piste, .page-titre,
  .savoir-liste li, .carte-nom, .vignette-nom, .fiche-nom, .fiche-suite-nom, .manifeste-bloc h2,
  .etapes-liste h3, .savoirs-liste h3, .mentions h2) { font-weight: var(--display-graisse); letter-spacing: var(--display-interlettre); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
::selection { background: var(--rose); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.evitement {
  position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: -100px; z-index: 50;
  background: var(--encre); color: var(--papier); padding: .6rem 1rem; text-decoration: none;
}
.evitement:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.petit-titre {
  margin: 0;
  font-family: var(--texte);
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--encre);
}
.section-titre {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  font-family: var(--display);
  font-size: var(--d-l);
  font-weight: 400;
  line-height: 1.13;
}

/* Enseignes de cartes, insérées dans le texte -------------------------- */

.enseigne {
  display: inline-block;
  height: .62em;
  width: .7em;
  vertical-align: -.02em;
  overflow: visible;
}
.enseigne-groupe { white-space: nowrap; }
.enseigne--coeur { color: var(--rose); width: .7em; height: .62em; }
.enseigne--carreau { color: var(--rose); width: .6em; height: .6em; }
.enseigne--trefle { color: var(--bleu); width: .64em; height: .72em; vertical-align: -.1em; }
.enseigne--pique { color: var(--encre); width: .64em; height: .72em; vertical-align: -.1em; }

/* En-tête ---------------------------------------------------------------- */

.entete {
  position: fixed;
  inset: env(safe-area-inset-top, 0px) 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--entete);
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  background: transparent;
}
/* L'en-tête flotte : le contenu commence sous lui. */
.site > main { padding-top: var(--entete); }
.marque { display: inline-flex; color: var(--encre); text-decoration: none; }
.sigle { width: 54px; height: auto; flex: none; }
.nav ul { display: flex; gap: clamp(1.5rem, 3.5vw, 3rem); margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative;
  display: inline-block;
  padding-block: .35rem;
  /* Même aspect que « En savoir plus ». */
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
  transition: color .3s;
}
/* Survol des menus, boutons et liens : le texte passe en rose, sans soulignement. */
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--rose); }
/* « Menu » : sur téléphone seulement (voir « Téléphones »). */
.menu-bouton { display: none; }
/* Visuel de galerie réservé au téléphone (« ecran: telephone » dans la fiche). */
@media (min-width: 721px) { .planche--telephone { display: none; } }

.cote-contact {
  position: fixed;
  z-index: 25;
  right: max(14px, env(safe-area-inset-right, 0px));
  top: 50%;
  display: flex;
  align-items: center;
  gap: .9rem;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  color: #fff;
  mix-blend-mode: difference;
  text-decoration: none;
}
/* Le blanc en mode « différence » paraît noir sur le papier ; le trait, gris comme les autres lignes. */
.cote-trait { width: 1px; height: 3.5rem; background: #3e3e3c; }
.cote-contact span:not(.cote-trait) { font-family: var(--texte); font-size: var(--t-xs); font-weight: 600; line-height: 1.4; letter-spacing: .02em; }
/* Au survol : « Contactez-moi » reste en place et passe au rose, le trait s'allonge vers le bas
   et emmène « Vous avez un projet ? ». Le bloc lui-même ne change pas de taille : seuls le trait
   et cette phrase se déplacent (le bloc est retourné, d'où « bottom » et le décalage négatif). */
.cote-trait, .cote-contact span:first-child { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.cote-trait { transform-origin: bottom; }
.cote-contact span:last-child { transition: color .3s; }
.cote-contact:hover .cote-trait, .cote-contact:focus-visible .cote-trait { transform: scaleY(2); }
.cote-contact:hover span:first-child, .cote-contact:focus-visible span:first-child { transform: translateY(-3.5rem); }
/* En mode « différence », ce vert d'eau (blanc moins le rose) paraît rose sur le papier. */
.cote-contact:hover span:last-child, .cote-contact:focus-visible span:last-child { color: #44d9b6; }

/* Accueil : grand texte -------------------------------------------------- */

.intention {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4.5vh, 3.25rem);
  /* Pleine page sous l'en-tête ; le filet qui suit reste visible au premier écran. */
  min-height: calc(100svh - var(--entete) - 2.5rem);
  padding: 1rem max(var(--cote), env(safe-area-inset-right, 0px)) 2.5rem max(var(--cote), env(safe-area-inset-left, 0px));
  text-align: center;
}
.intention-image { display: block; height: clamp(13rem, 41vh, 28rem); width: auto; }
.intention-texte {
  max-width: 22em;
  margin: 0;
  font-family: var(--display);
  font-size: var(--d-l);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.intention-texte em { font-style: normal; }
/* Version courte de la phrase, sur téléphone seulement (« intention_mobile »). */
.intention-courte { display: none; }
.intention-texte .enseigne { animation: tirer .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.intention-texte .enseigne-groupe:nth-of-type(1) .enseigne { animation-delay: .5s; }
.intention-texte .enseigne-groupe:nth-of-type(2) .enseigne { animation-delay: .7s; }
.intention-texte .enseigne-groupe:nth-of-type(3) .enseigne { animation-delay: .9s; }
.intention-texte .enseigne-groupe:nth-of-type(4) .enseigne { animation-delay: 1.1s; }
@keyframes tirer { from { transform: scale(.2) rotate(-25deg); } to { transform: none; } }

/* Cadres d'images -------------------------------------------------------- */

.cadre {
  position: relative;
  overflow: hidden;
  background: var(--voile);
  max-width: 100%;
  aspect-ratio: var(--ratio, auto);
}
.cadre > img, .cadre > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cadre--contenir { background: var(--voile); }
.cadre--contenir > img { object-fit: contain; padding: 8%; }
.cadre--contenir.cadre--marge-fine > img { padding: 3%; } /* « marge: fine » : le visuel occupe plus de place */
.cadre--defilement > img { object-fit: cover; object-position: top center; transition: object-position 7s cubic-bezier(.45, 0, .55, 1); }
.cadre--defilement:hover > img { object-position: bottom center; }
.cadre--vide { display: grid; place-items: center; padding: 1.5rem; aspect-ratio: var(--ratio, 4 / 3); }
.cadre--vide span { font-size: var(--t-xs); color: var(--gris); text-align: center; }
.cadre--video { background: var(--encre); }

/* Accueil : savoir-faire et approche ------------------------------------ */

.savoir {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colonne);
  row-gap: 3rem;
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  padding-block: calc(var(--respiration) - 1.5rem) 0;
}
.savoir-liste { grid-column: 3 / span 4; }
/* Le trait de « En savoir plus » est sur l'axe central de la page, comme la ligne des projets ;
   le texte de l'Approche s'aligne sur celui du lien. */
.savoir-texte { grid-column: 7 / span 4; margin-left: calc(var(--colonne) / -2); padding-left: 1.25rem; }
.savoir .petit-titre { margin-bottom: 1.5rem; }
.savoir-liste ul { margin: 0; padding: 0; list-style: none; }
.savoir-liste li { font-family: var(--display); font-size: var(--d-m); line-height: 1.3; }
.savoir-liste a { text-decoration: none; transition: color .3s; }
.savoir-liste a:hover { color: var(--rose); }
/* Comme sur rezo-zero : les métiers montent l'un après l'autre en fondu (classe posée par site.js). */
.apparition .savoir-liste li { opacity: 0; transform: translateY(100px); transition: opacity 1s cubic-bezier(.25, .6, .3, 1), transform 1.2s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(var(--rang, 0) * .11s); }
.apparition .savoir-liste ul.visible li { opacity: 1; transform: none; }
.savoir-texte p { margin: 0; max-width: 34em; font-size: var(--t-m); line-height: 1.75; }
.savoir-texte p + p { margin-top: 1.1rem; }
.plus { display: inline-block; margin: 2rem 0 0 -1.25rem !important; padding-left: 1.25rem; border-left: 1px solid var(--trait); }
.plus a { font-size: var(--t-xs); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: color .3s; }
.plus a:hover, .plus a:focus-visible { color: var(--rose); }

/* Accueil : clients qui défilent ---------------------------------------- */

.clients { padding-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }

/* Accueil : animation de l'identité, entre « Approche » et la sélection de projets */
.motion { padding-top: var(--respiration); }
.motion { --motion-taille: clamp(16rem, 45vw, 38rem); }
/* Le cercle occupe la vidéo à 40 px près sur 720 : on retire cette marge blanche du bas
   pour laisser 1rem entre le cercle et « Sélection de projets », puis la vidéo remonte de 1,25rem. */
.motion .cadre { width: var(--motion-taille); margin: 0 auto calc(1rem - var(--motion-taille) * 40 / 720); aspect-ratio: 1 / 1; background: none; transform: translateY(-1.25rem); }
.motion video { display: block; width: 100%; height: 100%; object-fit: contain; }
.motion + .selection { padding-top: 0; }
/* Accueil : les symboles de l'identité en rangée avant la sélection de projets. */
/* Même largeur que les deux colonnes au-dessus. */
.bande {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colonne);
  padding: var(--respiration) max(var(--cote), env(safe-area-inset-right, 0px)) var(--respiration) max(var(--cote), env(safe-area-inset-left, 0px));
}
.bande-rangee { grid-column: 3 / 11; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
/* Largeur fixe : les symboles changent de place sans faire bouger la rangée. */
.bande img { height: clamp(1.5rem, 2.8vw, 2.75rem); width: clamp(2.2rem, 4.05vw, 4rem); min-width: 0; object-fit: contain; }
.bande + .selection { padding-top: 0; }
/* Page Approche : la vidéo sous l'introduction centrée. */
/* Page Approche : la vidéo centrée entre le manifeste et « Comment nous travaillons ensemble ». */
.motion--approche { --motion-taille: clamp(16rem, 38vw, 32rem); padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.motion--approche .cadre { margin-bottom: 0; transform: none; }
.motion--approche + .etapes { padding-top: clamp(3rem, 6vw, 5rem); }
.clients .petit-titre { margin-bottom: 1.5rem; }
.defile { display: flex; overflow: hidden; white-space: nowrap; }
.defile-piste {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.33;
  animation: defiler 70s linear infinite;
}
.defile--droite .defile-piste { animation-direction: reverse; animation-duration: 80s; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile-piste li { display: inline-flex; align-items: center; }
.defile-piste a { text-decoration: none; }
.defile-piste a:hover { color: var(--rose); }
.defile-piste span { color: var(--gris); }
.defile-enseigne { width: .3em; height: .3em; margin-inline: .55em; vertical-align: middle; }
.defile-enseigne.enseigne--trefle, .defile-enseigne.enseigne--pique { height: .36em; }
@keyframes defiler { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* Logotype changeant, au centre sous les noms : un aplat couleur encre découpé par le logo,
   rose au survol. Cadre de taille fixe : les logos se succèdent sans faire bouger la page. */
/* Même marge au-dessus que celle de l'appel en dessous (--respiration) : le logo est centré entre les deux. */
.logo-changeant { display: flex; justify-content: center; margin: var(--respiration) 0 0; }
.logo-changeant a { display: block; }
.logo-changeant-image {
  display: block;
  width: clamp(10rem, 17vw, 15rem);
  height: clamp(5.5rem, 9vw, 8rem);
  background-color: var(--encre);
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
  transform: scale(var(--echelle, 1)); /* réglage par logo (contenu/logotypes.yaml) */
  transition: background-color .3s;
}
.logo-changeant a:hover .logo-changeant-image, .logo-changeant a:focus-visible .logo-changeant-image { background-color: var(--rose); }

/* Page Logotypes : grille de cases séparées par des filets horizontaux seulement
   (chaque case a un filet en haut, celui du bord de la grille est rogné). */
.logos-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  clip-path: inset(2px 0 0 0); /* 2 px : le filet peut tomber entre deux pixels de l'écran */
}
.logos-case {
  position: relative;
  border-top: 1px solid var(--trait);
  scroll-margin-top: 6rem;
}
.logos-lien { display: block; color: inherit; text-decoration: none; }
/* Beaucoup de blanc autour de chaque logo : il occupe la moitié de sa case. */
.logos-image { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 300px; transition: opacity .5s ease; }
.logos-image img { position: absolute; inset: 0; margin: auto; width: min(46%, 196px); height: min(50%, 142px); object-fit: contain; transform: scale(var(--echelle, 1)); } /* réglage par logo : page_echelle */
/* Bouton « Voir le projet », à la place du logo au survol : même texte que « En savoir plus »
   (petites capitales, rose au survol), sans le filet. */
.logos-bouton {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--encre);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .5s ease, color .3s;
}
.logos-lien:hover .logos-image, .logos-lien:focus-visible .logos-image { opacity: 0; }
.logos-lien:hover .logos-bouton, .logos-lien:focus-visible .logos-bouton { opacity: 1; }
.logos-bouton:hover, .logos-lien:focus-visible .logos-bouton { color: var(--rose); }
/* Écran tactile : pas de survol, le logo reste visible et mène au projet. */
@media (hover: none) { .logos-lien:hover .logos-image { opacity: 1; } .logos-lien:hover .logos-bouton { opacity: 0; } }
@media (max-width: 720px) { .logos-image img { width: 70%; height: 64%; } }

/* Accueil : projets en quinconce ---------------------------------------- */

.selection { padding-top: var(--respiration); }
/* Au format des petits titres, centré au-dessus de la ligne centrale. */
.selection-titre { position: relative; z-index: 1; margin-bottom: .75rem; text-align: center; }
/* La ligne part juste sous le titre ; les projets commencent un peu plus bas. */
.quinconce { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-top: clamp(3rem, 6vw, 5rem); }
.quinconce::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--trait);
}
.quinconce {
  /* Sur ordinateur, les images ont toujours la même hauteur : seule leur largeur suit l'écran.
     Écart entre deux projets d'une même colonne. */
  --image-hauteur: 460px;
  --projets-ecart: clamp(8.5rem, 14vw, 13rem);
}
.quinconce-col { display: flex; flex-direction: column; gap: var(--projets-ecart); }
/* La colonne de droite est décalée d'une demi-période : chaque légende (centrée sur son image)
   tombe au milieu de l'écart entre deux projets de l'autre colonne, jamais en face d'un projet.
   */
.quinconce-col--droite { padding-top: calc((var(--image-hauteur) + var(--projets-ecart)) / 2); }
.carte a { display: grid; align-items: start; color: inherit; text-decoration: none; }
.carte--gauche a { grid-template-columns: minmax(0, 4fr) minmax(0, 1.6fr); }
.carte--droite a { grid-template-columns: minmax(0, 1.6fr) minmax(0, 4fr); }
.carte .cadre { height: var(--image-hauteur); }
.carte .cadre > img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.carte a:hover .cadre > img { transform: scale(1.03); filter: grayscale(1); }
.carte-survol {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(14, 22, 52, .55);
  color: #fff;
  font-family: var(--display);
  font-weight: var(--display-graisse);
  font-size: var(--d-m);
  letter-spacing: var(--display-interlettre);
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  transition: opacity .5s;
}
.carte a:hover .carte-survol, .carte a:focus-visible .carte-survol { opacity: 1; }
.carte--droite .cadre { order: 2; }
/* Comme sur rezo-zero : la légende est centrée en hauteur sur l'image, son bord aligné tombe
   sur la ligne centrale, et son fond blanc interrompt la ligne. */
.carte-legende { position: relative; z-index: 1; align-self: center; display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: .9rem clamp(.9rem, 2vw, 1.75rem); background: var(--papier); }
/* Le bord justifié dépasse un peu de la ligne. */
.carte--gauche .carte-legende { text-align: right; padding-right: .25rem; margin-right: -.5rem; }
.carte--droite .carte-legende { padding-left: .25rem; margin-left: -.5rem; }
/* Une enseigne posée sur la ligne, juste sous la légende. */
.carte-enseigne { position: absolute; top: 100%; display: block; font-size: 1.1rem; line-height: 0; }
.carte--gauche .carte-enseigne { right: calc(.5rem - .5px); transform: translateX(50%); }
.carte--droite .carte-enseigne { left: calc(.5rem + .5px); transform: translateX(-50%); }
/* Avec une souris, l'enseigne apparaît en zoom au survol du projet, sur place. */
@media (hover: hover) {
  /* Sortie : l'entrée jouée à l'envers (petit élan, puis disparition). */
  .carte-enseigne svg { opacity: 0; transform: scale(0); transform-origin: center; transition: opacity .6s cubic-bezier(.75, 0, .75, .9) .2s, transform .8s cubic-bezier(.5, 0, .7, -.5); }
  /* Entrée : zoom avec un léger rebond. */
  .carte a:hover .carte-enseigne svg, .carte a:focus-visible .carte-enseigne svg { opacity: 1; transform: scale(1); transition: opacity .6s ease, transform .8s cubic-bezier(.3, 1.5, .5, 1); }
}
/* Disciplines du projet : plus grandes et plus légères que les petits titres (« Approche ») */
.carte-type { display: grid; font-family: var(--texte); font-size: var(--t-s); font-weight: 500; line-height: 1.7; letter-spacing: .02em; color: var(--encre); }
/* Un nom tient sur une ou deux lignes : il peut déborder un peu sur l'image plutôt que passer à la troisième. */
.carte-nom { width: max-content; max-width: 7.5em; font-family: var(--display); font-size: var(--d-s); line-height: 1.2; text-wrap: balance; }
.carte--gauche .carte-nom { justify-self: end; }
.carte-legende .pastille { margin-top: .2rem; }
/* Avec une souris, le nom ne s'affiche qu'au survol de l'image (il reste lu par les lecteurs d'écran). */
@media (hover: hover) {
  .carte-legende .carte-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (hover: none) {
  .carte-survol { display: none; }
}
/* Au-delà des dix premiers, les projets attendent « Voir les projets plus anciens » (sans JavaScript, tout reste visible). */
.js .quinconce:not(.quinconce--tout) .carte--ancienne { display: none; }
/* Les projets montent en fondu vers leur place quand ils arrivent à l'écran (classe posée par site.js). */
.apparition :is(.carte, .fiche-galerie .planche) { opacity: 0; transform: translateY(60px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delai, 0s); }
.apparition :is(.carte, .fiche-galerie .planche).visible { opacity: 1; transform: none; }
.selection-suite { position: relative; display: none; margin: var(--respiration) 0 0; text-align: center; }
.js .selection-suite { display: block; }
/* La ligne centrale continue jusqu'au-dessus du bouton. */
.selection-suite::before { content: ''; position: absolute; left: 50%; bottom: calc(100% + .75rem); height: calc(var(--respiration) - .75rem); width: 1px; background: var(--trait); }
/* Même aspect que « En savoir plus », sans le trait, centré. */
.selection-suite button { padding: 0; border: 0; background: none; color: var(--encre); font-family: var(--texte); font-size: var(--t-xs); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.selection-suite button:hover { color: var(--rose); }

/* Appel à contact -------------------------------------------------------- */

.appel {
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  padding-block: var(--respiration);
  text-align: center;
}
.appel-texte {
  /* Même aspect que « Voir les projets plus anciens », en rose. */
  margin: 0 auto;
  font-family: var(--texte);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--rose);
}
/* Toute la phrase est cliquable. Au survol seulement : un trait fin se déploie depuis le centre,
   sous le texte (pas sous le cœur), et le cœur grossit lentement, puis revient lentement. */
.appel-texte a { color: inherit; text-decoration: none; }
.appel-mots {
  padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) center bottom / 0 1px no-repeat;
  transition: background-size .45s cubic-bezier(.2, .7, .2, 1);
}
.appel-texte a:hover .appel-mots, .appel-texte a:focus-visible .appel-mots { background-size: 100% 1px; }
.appel-coeur { font-size: 1.7em; margin-left: .4rem; vertical-align: -.1em; transition: transform .9s ease; }
.appel-texte a:hover .appel-coeur, .appel-texte a:focus-visible .appel-coeur { transform: scale(1.35); }

/* Pied de page ----------------------------------------------------------- */

.pied {
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--trait);
  font-size: var(--t-s);
}
.pied-grille {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(0, 1.2fr)) minmax(0, 2fr);
  gap: 2rem var(--colonne);
  padding-block: 3.5rem 3rem;
}
.pied h2 { margin: 0 0 .6rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; }
.pied p { margin: 0; line-height: 1.6; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--rose); }
.pied-sigle { color: var(--encre); }
.pied-sigle .sigle { width: 42px; }
.pied-apropos { color: var(--gris); max-width: 32em; }
.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--trait);
  font-size: var(--t-xs);
  color: var(--gris);
}
.pied-bas p { margin: 0; }
/* Page Contact : la ligne du bas seule, sous le filet du pied de page. */
.pied--court { margin-top: var(--respiration); }
.pied--court .pied-bas { border-top: 0; }
/* Pages intérieures ------------------------------------------------------ */

.page-tete {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colonne);
  row-gap: 1.75rem;
  align-items: end;
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  padding-block: clamp(3rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem);
}
.page-titre {
  grid-column: 1 / span 7;
  margin: 0;
  font-family: var(--display);
  font-size: calc(var(--d-xl) * 1.2);
  font-weight: 400;
  line-height: 1.08;
}
.page-titre--moyen { grid-column: 1 / -1; font-size: var(--d-l); }
.page-chapo { grid-column: 8 / span 5; margin: 0 0 .5rem; font-size: var(--t-l); line-height: 1.6; }
/* Pages Contact et Approche : titre à la taille des noms de projets (.fiche-nom), chapeau dessous, à gauche. */
.page-tete--contact .page-titre, .page-tete--approche .page-titre, .page-tete--logotypes .page-titre { font-size: var(--d-l); line-height: 1.13; }
.page-tete--contact .page-chapo, .page-tete--approche .page-chapo, .page-tete--logotypes .page-chapo { grid-column: 1 / span 6; }

/* Projets : filtres, catalogue, logotypes ------------------------------- */

.catalogue-zone, .logotypes, .voir-aussi {
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
}
.filtres { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); padding-bottom: 1.25rem; border-bottom: 1px solid var(--trait); }
.filtres button {
  padding: .3rem 0;
  font: 400 var(--t-m)/1.3 var(--texte);
  color: var(--gris);
  background: none;
  border: 0;
  cursor: pointer;
}
.filtres button:hover { color: var(--encre); }
.filtres button[aria-pressed="true"] { color: var(--encre); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: .4em; }
sup { font-size: .62em; margin-left: .2em; font-variant-numeric: tabular-nums; vertical-align: .55em; line-height: 0; }

.catalogue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--colonne);
  row-gap: clamp(3rem, 6vw, 5.5rem);
}
.vignette a { display: grid; gap: .3rem; color: inherit; text-decoration: none; }
.vignette .cadre { aspect-ratio: 4 / 3; margin-bottom: .9rem; }
.vignette .cadre > img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.vignette a:hover .cadre > img { transform: scale(1.03); }
.vignette-type { font-size: var(--t-xs); color: var(--gris); }
.vignette-nom { font-family: var(--display); font-size: var(--d-s); line-height: 1.23; }
.vignette a:hover .vignette-nom { color: var(--rose); }
.pastille { font-family: var(--texte); font-size: var(--t-xs); color: var(--rose); vertical-align: middle; }

.logotypes { padding-top: var(--respiration); }
.logotypes .petit-titre { margin-bottom: 1.5rem; }
.logotypes-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--colonne); margin: 0; padding: 0; list-style: none; }
.logotype { margin: 0; }
.logotype a { display: block; }
.logotype-tuile { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 13% 20%; background: var(--voile); overflow: hidden; }
.logotype-tuile--fonce { background: var(--encre); }
.logotype-tuile--plein { padding: 0; }
.logotype-tuile img { width: 100%; height: 100%; object-fit: contain; }
.logotype-tuile--plein img { object-fit: cover; }
.logotype-vide { font-size: var(--t-xs); color: var(--gris); }
.logotype figcaption { margin-top: .6rem; font-size: var(--t-xs); color: var(--gris); }

/* Fiche projet ----------------------------------------------------------- */

.fiche-tete {
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}
.fiche-retour { margin: 0 0 1.5rem; font-size: var(--t-xs); color: var(--gris); }
.fiche-retour a { color: var(--encre); text-decoration: none; transition: color .3s; }
.fleche-retour { width: .8em; height: .75em; margin-right: .45em; vertical-align: -.02em; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.fiche-retour a:hover .fleche-retour { transform: translateX(-3px); }
.fiche-retour a:hover { color: var(--rose); }
/* En-tête de fiche : le nom du client et, en face, la phrase courte justifiée à droite. */
.fiche-nom { grid-column: 1 / span 6; margin: 0; font-family: var(--display); font-size: var(--d-l); line-height: 1.13; }
.fiche-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colonne);
  row-gap: 1.25rem;
  align-items: center;
}
.fiche-resume { grid-column: 7 / -1; justify-self: end; margin: 0; max-width: 34em; text-align: right; font-size: var(--t-m); line-height: 1.6; }
.fiche-couverture .cadre > img { height: auto; }
.fiche-couverture .cadre--contenir > img, .fiche-couverture .cadre--vide > img { height: 100%; }
.fiche-texte {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colonne);
  row-gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); /* la galerie suit de près le texte */
}
/* Deux tiers à gauche pour la demande et le parti pris (chacun sous son titre), 800 px au plus ; un tiers à droite pour les missions. */
.fiche-recit { grid-column: 1 / span 8; max-width: 800px; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.fiche-section .petit-titre { margin-bottom: 1.5rem; } /* comme « Approche » sur l'accueil */
.fiche-section .prose { max-width: none; font-size: var(--t-m); line-height: 1.75; } /* toute la largeur des deux tiers */
.fiche-missions { grid-column: 9 / span 4; text-align: right; }
.fiche-missions ul { margin: 0; padding: 0; list-style: none; }
/* Missions au style des titres « La demande », justifiées à droite. */
.fiche-missions li { font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; line-height: 2.2; }
.prose { font-size: var(--t-l); line-height: 1.75; max-width: 36em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
/* Six colonnes : « demi » en occupe trois (deux images côte à côte), « tiers » deux (trois côte à côte). */
.fiche-galerie {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2.25rem);
  align-items: start;
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
}
.fiche-couverture + .fiche-galerie { padding-top: clamp(1rem, 2.4vw, 2.25rem); }
.planche { margin: 0; min-width: 0; grid-column: span 3; }
.planche--pleine { grid-column: 1 / -1; }
.planche--tiers { grid-column: span 2; }
.planche--droite { grid-column: 4 / span 3; }
/* « espace: triple » : trois fois l'écart habituel au-dessus du visuel. */
.planche--espace-triple { margin-top: calc(2 * clamp(1rem, 2.4vw, 2.25rem)); }
/* « rangee: resserree » : rangée centrée sur les 2/3 de la page, plus d'air entre et au-dessus des visuels. */
.rangee-resserree { grid-column: 1 / -1; width: 66.667%; margin: clamp(2.5rem, 7vw, 7rem) auto 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.planche .cadre > img, .planche .cadre > video { height: auto; }
.planche .cadre--contenir > img, .planche .cadre--defilement > img { height: 100%; }
.planche figcaption { margin-top: .7rem; font-size: var(--t-xs); color: var(--gris); }
/* Bouton « Voir la vidéo intégrale » sous un extrait : même aspect que « Voir les projets plus anciens ». */
.planche-bouton { display: none; margin: 30px 0 0; text-align: center; }
/* Pas de fond foncé derrière la vidéo : il dépassait d'un filet sous l'image. */
.planche .cadre--video { background: none; }
.js .planche-bouton { display: block; }
.planche-bouton button { padding: 0; border: 0; background: none; color: var(--encre); font-family: var(--texte); font-size: var(--t-xs); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.planche-bouton button:hover { color: var(--rose); }
/* « bouton_couleur » : bouton plein aux couleurs du client (ex. Elleboss, comme dans son application). */
.planche-bouton--plein button { padding: .8rem 2.6rem; border-radius: 6px; background: var(--bouton); color: #fff; font-size: var(--t-s); font-weight: 400; letter-spacing: .02em; text-transform: none; box-shadow: 0 2px 10px rgba(41, 93, 99, .18); transition: filter .3s; }
.planche-bouton--plein button:hover { color: #fff; filter: brightness(1.15); }
/* Fenêtre de la vidéo intégrale : le film en grand, la page grisée dessous. */
.integrale { width: min(92vw, 160vh); max-width: none; max-height: none; padding: 0; border: 0; background: none; overflow: visible; }
.integrale::backdrop { background: rgba(32, 32, 34, .82); }
.integrale video { display: block; width: 100%; height: auto; background: var(--encre); }
.integrale-fermer { position: absolute; right: 0; bottom: calc(100% + .4rem); padding: .2rem .4rem; border: 0; background: none; color: var(--papier); font-family: var(--texte); font-size: 2rem; line-height: 1; cursor: pointer; transition: color .3s; }
.integrale-fermer:hover { color: var(--rose); }
.cadre--blanc, .cadre--contenir.cadre--blanc { background: var(--papier); }
.planche .cadre--recadre > img { height: 100%; } /* proportions imposées (« ratio ») : l'image remplit le cadre */
/* Image haute : couvre deux rangées, à côté de deux images empilées. */
.planche--haute { grid-row: span 2; align-self: stretch; }
.planche--haute .cadre { height: 100%; }
.planche--haute .cadre > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
/* « debord: haut » : illustration détourée, calée à droite, qui remonte sur l'image du dessus. */
.planche--debord { position: relative; z-index: 1; margin-top: -22%; pointer-events: none; }
.planche--debord .cadre { width: 70%; margin-left: auto; background: none; overflow: visible; }
/* Intertitres et courts textes dans la galerie. */
.galerie-intertitre { grid-column: 1 / -1; margin-top: clamp(1rem, 3vw, 2.5rem); }
.galerie-intertitre--filet { margin-top: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(1.5rem, 3.5vw, 2.75rem); border-top: 1px solid var(--trait); }
.galerie-intertitre:first-child { margin-top: 0; }
.galerie-sous-titre { font-weight: 400; color: var(--gris); }
.galerie-sous-titre a { color: inherit; text-decoration: none; }
.planche--texte .prose { font-size: var(--t-m); line-height: 1.75; }
.indice { color: #9A9AA0; }

/* Autres pages du même client : sous un filet, titre, vignettes et phrases centrés (jusqu'à quatre côte à côte). */
.voir-aussi { padding-top: var(--respiration); text-align: center; }
.voir-aussi::before { content: ''; display: block; margin-bottom: 2.5rem; border-top: 1px solid var(--trait); } /* même écart que « Projet suivant » */
.voir-aussi .petit-titre { margin-bottom: 1.5rem; }
.voir-aussi-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--colonne); }
.voir-aussi-liste > .vignette { flex: 0 1 calc((100% - 3 * var(--colonne)) / 4); min-width: 0; }
/* Une seule page liée : bandeau bas sur toute la largeur. */
.voir-aussi-liste > .vignette:only-child { flex-basis: 100%; }
.voir-aussi-liste > .vignette:only-child .cadre { aspect-ratio: 35 / 6; }
.voir-aussi-phrase { display: block; font-size: var(--t-s); line-height: 1.55; transition: color .3s; }
.voir-aussi .vignette a:hover .voir-aussi-phrase { color: var(--rose); }

.fiche-suite {
  margin-top: var(--respiration);
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
  text-align: center;
}
.voir-aussi + .fiche-suite { margin-top: 2.5rem; } /* même écart au-dessus et au-dessous du bloc « Pour le même client » */
.fiche-suite a { display: grid; justify-items: center; gap: 1rem; padding-top: 2.5rem; border-top: 1px solid var(--trait); text-decoration: none; }
.fiche-suite-nom { font-family: var(--display); font-size: calc(var(--d-xl) * 1.1); line-height: 1.08; }
.fiche-suite a:hover .fiche-suite-nom { color: var(--rose); }

/* Témoignages, sur la page Approche seulement, sans titre de section.
   Sans filet, citation centrée au format d'un paragraphe, en italique noir, signature en petites lettres. */
.temoignage {
  margin: var(--respiration) max(var(--cote), env(safe-area-inset-right, 0px)) 0 max(var(--cote), env(safe-area-inset-left, 0px));
  text-align: center;
}
.citation-texte { max-width: 800px; margin: 0 auto; font-family: var(--texte); font-style: italic; font-size: var(--t-m); line-height: 1.75; color: var(--encre); }
.citation-texte p { margin: 0; }
.citation-texte p + p { margin-top: 1em; }
.citation-texte p:first-child::before { content: '« '; }
.citation-texte p:last-child::after { content: ' »'; }
.citation-auteur { display: grid; gap: .2rem; margin-top: 1.75rem; font-size: var(--t-xs); line-height: 1.5; letter-spacing: .02em; color: var(--gris); }
.citation-nom { font-weight: 700; color: var(--encre); }
.temoignages { padding-top: var(--respiration); }
.temoignage--approche { margin-top: 0; }
.temoignage--approche + .temoignage--approche { margin-top: var(--respiration); }
.citation-lien { margin: 1.25rem 0 0; font-size: var(--t-xs); }
.citation-lien a { color: var(--encre); text-underline-offset: .3em; text-decoration-color: var(--trait); transition: color .3s; }
.citation-lien a:hover { color: var(--rose); }
@media (max-width: 720px) {
  .citation-texte { font-size: .9375rem; line-height: 1.7; } /* comme le texte des fiches sur téléphone */
}

/* Approche --------------------------------------------------------------- */

.manifeste, .etapes, .savoirs, .faq, .contact, .mentions, .logos {
  padding-left: max(var(--cote), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cote), env(safe-area-inset-right, 0px));
}
/* Sur-titres des sections, comme « Approche » et « Sélection de projets » sur l'accueil. */
.sur-titre { margin-bottom: 1.5rem; }
.manifeste-bloc {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colonne);
  row-gap: .75rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--trait);
}
/* Mêmes colonnes que « Ce que je conçois » (.savoirs-liste). */
.manifeste-bloc h2 { grid-column: 1 / span 4; margin: 0; font-family: var(--display); font-size: var(--d-m); line-height: 1.23; }
.manifeste-bloc p { grid-column: 5 / -1; margin: .25rem 0 0; font-size: var(--t-m); line-height: 1.75; color: var(--gris); }
.manifeste-bloc p strong { color: var(--encre); }

.etapes, .savoirs, .faq { padding-top: var(--respiration); }
.etapes .section-titre, .savoirs .section-titre, .faq .section-titre { text-align: center; }
.etapes-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) var(--colonne);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.etapes-liste li { counter-increment: etape; padding-top: 1.25rem; border-top: 1px solid var(--trait); }
.etapes-liste li::before { content: counter(etape, decimal-leading-zero); display: block; margin-bottom: .9rem; font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.etapes-liste h3 { margin: 0 0 .4rem; font-family: var(--display); font-size: var(--d-s); line-height: 1.23; }
.etapes-liste p { margin: 0; color: var(--gris); max-width: 28em; }

.savoirs-liste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.savoirs-liste li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colonne);
  row-gap: .5rem;
  align-items: baseline;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--trait);
}
.savoirs-liste h3 { grid-column: 1 / span 4; margin: 0; font-family: var(--display); font-size: var(--d-s); line-height: 1.23; }
/* Le texte va jusqu'au bord droit, comme les filets. */
.savoirs-liste p { grid-column: 5 / -1; margin: 0; color: var(--gris); }
.savoirs-liste li > span:empty { display: none; }
.savoirs-liste a, .savoirs-liste li > span { grid-column: 10 / span 3; justify-self: end; font-size: var(--t-s); }
.savoirs-liste a { text-underline-offset: .25em; }

/* Liste centrée, sans filets entre les questions. */
.faq-liste { max-width: 800px; margin-inline: auto; }
.question summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: .5rem;
  /* Plus léger que les petits titres, à la taille de la réponse. */
  font-family: var(--texte);
  font-size: var(--t-m);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: '+'; flex: none; font-family: var(--texte); font-size: 1.5rem; font-weight: 300; transition: transform .3s; }
.question[open] summary::after { transform: rotate(45deg); }
/* La réponse va jusqu'au signe « + » / « × ». */
.question-reponse { padding-right: 3rem; padding-bottom: 1.75rem; color: var(--encre); }
.question-reponse p { margin: 0; }

/* Contact ---------------------------------------------------------------- */

/* Titre et chapeau : voir « Pages intérieures ». */
/* « Écrire » puis « Pour bien vous répondre » à gauche, « Le studio » à droite, à la hauteur de « Écrire ». */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--colonne); row-gap: clamp(3rem, 6vw, 5rem); }
.contact-email { grid-column: 1 / span 6; grid-row: 1; }
.contact-email .petit-titre { margin-bottom: 1rem; }
.contact-email p { margin: 0; }
/* L'adresse a l'aspect d'un bouton. */
.contact-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.contact-adresse {
  display: inline-block;
  padding: .8em 1.4em;
  font: 600 var(--t-m)/1 var(--texte);
  color: #fff;
  background: var(--encre);
  border: 1px solid var(--encre);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .3s, border-color .3s;
}
.contact-adresse:hover, .contact-adresse:focus-visible { background: var(--rose); border-color: var(--rose); }
.contact-aide { grid-column: 1 / span 6; grid-row: 2; }
.contact-autres { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.contact .petit-titre { margin-bottom: 1rem; }
.contact-aide p, .contact-autres p { margin: 0 0 .9rem; }
.contact a:not(.contact-adresse) { text-underline-offset: .25em; }

/* Mentions --------------------------------------------------------------- */

.mentions { padding-bottom: clamp(3rem, 7vw, 6rem); } /* respiration avant le pied de page */
.mentions .prose { font-size: var(--t-m); }
.mentions h2 { margin: 2.25rem 0 .5rem; font-family: var(--display); font-size: var(--d-s); }
.a-completer { color: var(--rose); font-style: italic; }

/* Écrans moyens ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .voir-aussi-liste > .vignette { flex-basis: calc((100% - 2 * var(--colonne)) / 3); }
  .cote-contact { display: none; }
  .savoir-liste { grid-column: 1 / span 5; }
  .savoir-texte { grid-column: 7 / span 6; }
  .bande-rangee { grid-column: 1 / -1; }
  .page-titre { grid-column: 1 / -1; }
  .page-chapo { grid-column: 1 / span 9; }
  .etapes-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied-sigle, .pied-apropos { grid-column: 1 / -1; }
}

/* Téléphones ------------------------------------------------------------- */

@media (max-width: 720px) {
  .voir-aussi-liste > .vignette { flex-basis: calc((100% - var(--colonne)) / 2); }
  /* En-tête : un bandeau blanc, le plus bas possible, avec « Menu » à la place des trois liens. */
  :root { --entete: 3.5rem; }
  .entete { background: var(--papier); }
  .sigle { width: 30px; }
  .pied-sigle .sigle { width: 30px; } /* même taille que dans l'en-tête */
  .marque, .menu-bouton { transition: color .3s; }
  .menu-bouton {
    display: block;
    min-height: 44px;
    margin-right: -.75rem;
    padding: 0 .75rem;
    border: 0;
    background: none;
    color: var(--encre);
    font: 700 var(--t-xs)/1 var(--texte);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
  }
  /* Menu ouvert : les liens descendent légèrement en apparaissant, au centre de l'écran, sur fond noir.
     Le sigle et « Fermer » restent au-dessus, en blanc. */
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    background: var(--encre);
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility 0s .35s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 1.75rem; }
  .nav a { padding-block: .4rem; font-family: var(--display); font-size: var(--d-l); font-weight: var(--display-graisse); letter-spacing: var(--display-interlettre); text-transform: none; line-height: 1.1; color: var(--papier); opacity: 0; transform: translateY(-1rem); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), color .3s; }
  .nav li:nth-child(2) a { transition-delay: .08s; }
  .nav li:nth-child(3) a { transition-delay: .16s; }
  .menu-ouvert .nav { visibility: visible; opacity: 1; transition: opacity .35s ease; }
  .menu-ouvert .nav a { opacity: 1; transform: none; }
  .menu-ouvert .marque, .menu-ouvert .menu-bouton { color: var(--papier); }
  .menu-ouvert body { overflow: hidden; }

  .intention { align-items: flex-start; text-align: left; }
  .intention-texte { text-wrap: pretty; }
  .intention-longue { display: none; }
  .intention-courte { display: inline; }
  .fiche-recit, .fiche-missions { grid-column: 1 / -1; }
  /* Fiche : les missions d'abord, resserrées, puis la demande et le parti pris, en plus petit. */
  .fiche-missions { order: -1; text-align: left; }
  .fiche-missions li { line-height: 1.8; }
  .fiche-section .prose { font-size: .9375rem; line-height: 1.7; }
  .fiche-section .petit-titre { margin-bottom: 1rem; }
  .fiche-nom, .fiche-resume { grid-column: 1 / -1; }
  .fiche-resume { justify-self: start; text-align: left; font-size: .9375rem; }

  /* Filet de séparation au-dessus des deux blocs, sur téléphone seulement. */
  .savoir::before { content: ''; border-top: 1px solid var(--trait); margin-bottom: -1.25rem; }
  .savoir::before, .savoir-liste, .savoir-texte, .page-chapo,
  .manifeste-bloc h2, .manifeste-bloc p, .savoirs-liste h3, .savoirs-liste p, .savoirs-liste a, .savoirs-liste li > span,
  .contact-aide, .contact-autres { grid-column: 1 / -1; }
  .page-tete--contact .page-chapo, .page-tete--logotypes .page-chapo, .contact-email, .contact-aide, .contact-autres { grid-column: 1 / -1; grid-row: auto; }
  .savoir-texte { margin-left: 0; padding-left: 0; }
  .page-tete--approche .page-chapo { grid-column: 1 / -1; }
  .question-reponse { padding-right: 0; }
  .plus { margin-left: 0 !important; }
  .savoirs-liste a, .savoirs-liste li > span { justify-self: start; }

  /* Projets : une colonne. La ligne centrale reste et passe sous les images et les légendes ;
     le nom du client, puis les missions sur une ligne, centrés. */
  .quinconce { display: flex; flex-direction: column; gap: 3.5rem; padding-top: 2.5rem; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .quinconce-col { display: contents; }
  .carte { position: relative; z-index: 1; order: var(--ordre, 0); }
  .carte--gauche a, .carte--droite a { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Sur téléphone, les images gardent leurs proportions. */
  .carte .cadre { width: 100%; height: auto; aspect-ratio: 1 / 1.15; order: 0; }
  .carte-legende, .carte--gauche .carte-legende, .carte--droite .carte-legende { justify-self: center; justify-items: center; gap: .2rem; margin: 0; padding: 1.1rem 1rem .6rem; text-align: center; background: var(--papier); }
  /* Le nom reste toujours affiché, même avec une souris (fenêtre étroite), sans voile au survol. */
  .carte-legende .carte-nom { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .carte-survol { display: none; }
  .carte-enseigne { display: none; }
  .carte-nom, .carte--gauche .carte-nom { order: -1; justify-self: center; width: auto; max-width: none; }
  /* Missions : même aspect que « Sélection de projets », un peu plus bas que le nom. */
  .carte-type { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .45rem; margin-top: .45rem; font-size: var(--t-xs); font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
  .carte-type > span + span::before { content: '·'; margin-right: .45rem; }

  .catalogue, .fiche-galerie { grid-template-columns: minmax(0, 1fr); }
  .logotypes-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planche { grid-column: 1 / -1; }
  /* Sur mobile, une image par ligne ; seules les « tiers » restent trois par ligne. */
  .fiche-galerie { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fiche-galerie .planche--tiers { grid-column: span 2; }
  .rangee-resserree { width: 100%; margin-top: 0; gap: clamp(1rem, 2.4vw, 2.25rem); }
  .planche--haute { grid-row: auto; }
  .planche--haute .cadre > img { position: static; height: auto; }
  /* Réglages de galerie pour téléphone (champs des fiches) :
     « ecran » réserve un visuel au téléphone ou à l'ordinateur, « zoom_mobile » agrandit
     le visuel dans son cadre (les marges blanches sont rognées), « ratio_mobile » change les
     proportions du cadre : une image recadrée y grandit, une image « contenir » y perd ses marges.
     « position_mobile » (haut, bas, gauche, droite) choisit la partie gardée au recadrage. */
  .planche--ordinateur { display: none; }
  .planche--zoom-mobile .cadre > :is(img, video) { transform: scale(var(--zoom-mobile)); }
  .planche--ratio-mobile .cadre { aspect-ratio: var(--ratio-mobile); }
  .planche--ratio-mobile .cadre > img { height: 100%; }
  .planche--position-mobile .cadre > img { object-position: var(--position-mobile); }
  .etapes-liste { grid-template-columns: minmax(0, 1fr); }
  /* Pied de page : les blocs les uns sous les autres. */
  .pied-grille { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 3rem 2.5rem; }
}

/* Passage d'une page à l'autre : fondu, et l'image du projet cliqué s'agrandit jusqu'à devenir
   la couverture de la fiche (navigateurs récents ; ailleurs, la page change comme avant).
   site.js nomme l'image cliquée, la couverture des fiches porte le même nom. Pour que la couverture
   soit déjà chargée, la fiche est préparée dès le survol du projet (« speculationrules » dans build.mjs). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .fiche-couverture .cadre, .cadre.vers-projet { view-transition-name: projet-image; }
  /* Depuis une fiche (« voir aussi »), seule l'image cliquée porte le nom. */
  :root:has(.vers-projet) .fiche-couverture .cadre { view-transition-name: none; }
  /* L'image part sans les effets de survol (noir et blanc, voile, zoom). */
  .vers-projet > img { filter: none !important; transform: none !important; transition: none !important; }
  .vers-projet .carte-survol { display: none; }
  /* Comme sur rezo-zero : l'accueil s'efface, une seule image glisse jusqu'à sa place,
     puis la fiche apparaît autour d'elle. L'en-tête ne bouge pas. */
  .entete { view-transition-name: entete; }
  ::view-transition-group(entete) { animation: none; }
  ::view-transition-old(root) { animation: vt-sortie .3s ease both; }
  ::view-transition-new(root) { animation: vt-entree .35s ease .2s both; }
  /* Vers une fiche depuis un projet : la fiche n'apparaît qu'une fois l'image arrivée. */
  :root:active-view-transition-type(projet)::view-transition-new(root) { animation-duration: .5s; animation-delay: .6s; }
  ::view-transition-group(projet-image) { animation-duration: .9s; animation-timing-function: cubic-bezier(.65, 0, .25, 1); }
  /* Une seule image fait le trajet : la couverture (déjà chargée), recadrée comme la carte au départ. */
  ::view-transition-old(projet-image) { display: none; }
  ::view-transition-new(projet-image) { height: 100%; object-fit: cover; animation: none; }
}
/* Glissement des grandes images au défilement (site.js règle --glisse, de -1 à 1) :
   l'image est agrandie de 18 % et se décale d'au plus 8,5 % dans son cadre. Les propriétés
   scale et translate s'ajoutent au zoom du survol sans le remplacer. */
.glissement .carte .cadre > img[style*="--glisse"],
.glissement .planche--pleine .cadre > img[style*="--glisse"] { scale: 1.18; translate: 0 calc(var(--glisse, 0) * 8.5%); }
.cadre.vers-projet > img { scale: none; translate: none; }

/* Titres dévoilés ligne par ligne (site.js) : chaque mot monte derrière un cache ;
   les mots d'une même ligne partent ensemble, chaque ligne un peu après la précédente. */
@media (prefers-reduced-motion: no-preference) {
  /* En attendant le découpage, le titre reste invisible (au plus 1,5 s si le script manque). */
  .js :is(.intention-texte, .fiche-nom, .page-titre):not(.decoupe) { visibility: hidden; animation: titre-secours 0s 1.5s forwards; }
  .mot { display: inline-block; clip-path: inset(-.5em -.4em -.22em -.4em); }
  .mot > span { display: inline-block; transform: translateY(135%); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--titre-attente, .1s) + var(--ligne, 0) * .13s); }
  .titres-partis .mot > span { transform: none; }
}
@keyframes titre-secours { to { visibility: visible; } }

/* « Projet suivant » (site.js) : bande invisible sous le nom, à la largeur de la bande
   « Pour le même client », qui donne le point de départ de l'image. Posée par-dessus la
   suite de la page pour ne rien déplacer. */
.fiche-suite a { position: relative; }
.suite-image { position: absolute; top: 100%; left: 0; width: 100%; aspect-ratio: 35 / 6; margin-top: 1rem; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* Tout en même temps : la page s'efface, l'image apparaît en glissant vers sa place,
     puis la fiche suivante apparaît autour d'elle. */
  :root:active-view-transition-type(suite)::view-transition-new(projet-image) { animation: vt-entree .7s ease both; }
  :root:active-view-transition-type(suite)::view-transition-old(root) { animation-duration: .5s; }
}

@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .defile { flex-wrap: wrap; justify-content: center; white-space: normal; padding-inline: var(--cote); }
  .defile-piste { flex-wrap: wrap; justify-content: center; }
  .defile-double { display: none; }
}
