/*
Theme Name: Ramdam studio
Theme URI: https://ramdamstudio.fr
Author: Ramdam studio
Description: Thème bloc sur mesure de Ramdam studio — le studio de design graphique bruyant. Entièrement éditable dans Gutenberg.
Version: 1.0.5
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ramdam-studio
Tags: block-theme, full-site-editing, portfolio, one-column
*/

/* Ramdam studio — maquette
   Registre : Maison Auge (chargement) · The Romans (hero) · BeNorth (stickers, projets) · Bold (grille projets)
   Demandes client : fond noir partout, textes et titres en blanc, curseur en croix blanche,
   lecteur Spotify dans l'en-tête, menu burger sur téléphone. Palette fournie par le client. */

@font-face { font-family: "Knockout 49"; src: url(assets/fonts/Knockout-HTF49Liteweight-Regular.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Knockout 52"; src: url(assets/fonts/Knockout-HTF52-Cruiserweight.otf) format("opentype"); font-display: swap; }

:root {
  --noir: #000000;
  --blanc: #ffffff;
  --bleu: #38bde2;
  --jaune: #f5d514;
  --rouge: #e62449;
  --vert: #07935f;
  --rose: #dc6fa0;
  --sombre: #141414;
  --discret: rgba(255, 255, 255, .62);
  --filet: rgba(255, 255, 255, .28);

  --titre: "Knockout 49", "Arial Narrow", sans-serif;
  --large: "Knockout 52", "Arial Black", sans-serif;
  --texte: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --marge: clamp(16px, 3vw, 48px);

  /* Curseur : croix blanche, liseré sombre pour rester visible sur les visuels clairs */
  --croix: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 1v30M1 16h30' stroke='%23000' stroke-opacity='.45' stroke-width='4'/%3E%3Cpath d='M16 1v30M1 16h30' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 16 16, crosshair;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; cursor: var(--croix); }
a, button, [tabindex], label, summary { cursor: inherit; }
body { margin: 0; background: var(--noir); color: var(--blanc); font-family: var(--texte); font-size: 17px; line-height: 1.45; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ───────── Écran de chargement (réf. Maison Auge) ───────── */
.chargement {
  position: fixed; inset: 0; z-index: 100;
  background: var(--noir); color: var(--blanc);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 2vw;
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
.chargement.est-parti { transform: translateY(-100%); }
.chargement-titre {
  font-family: var(--large); font-weight: 400;
  font-size: 11vw; line-height: .9; letter-spacing: -.01em;
  white-space: nowrap; text-transform: uppercase;
}
.chargement-image {
  position: relative; width: 74vw; aspect-ratio: 16 / 7.4;
  margin-top: -3.5vw; overflow: hidden; background: var(--sombre);
}
.chargement-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.chargement-image img.est-actif { opacity: 1; }
.chargement-devise {
  margin-top: 2.6vw; font-family: var(--texte); font-weight: 700;
  font-size: clamp(13px, 1.25vw, 20px); letter-spacing: .01em; text-transform: uppercase;
}

/* ───────── En-tête (réf. The Romans) ───────── */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 12px var(--marge); color: var(--blanc);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.entete.est-defile { background: rgba(0, 0, 0, .92); border-bottom-color: var(--filet); }
.entete-logo { position: relative; z-index: 2; justify-self: start; }
.entete-logo img { height: 54px; width: auto; }
.entete-menu { display: contents; }
.entete-nav { display: flex; gap: 20px; }
.entete-nav a {
  font-family: var(--titre); font-size: 21px; line-height: 1; text-transform: uppercase;
  text-decoration: none; letter-spacing: .01em;
}
.entete-nav a:hover { color: var(--jaune); }
.entete-player { justify-self: end; display: flex; align-items: center; gap: 12px; }
.entete-player .spotify, .entete-player iframe { display: block; flex: none; width: 300px; height: 80px; border: 0; border-radius: 12px; background: var(--sombre); }

/* Bouton son on/off : pilote la playlist par l'API iFrame de Spotify */
.bouton-son {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 8px; border: 1.5px solid var(--blanc); border-radius: 999px;
  background: none; color: var(--blanc);
  font-family: var(--titre); font-size: 18px; line-height: 1; text-transform: uppercase; letter-spacing: .02em;
  transition: background .25s, color .25s, border-color .25s;
}
.bouton-son:hover { border-color: var(--jaune); color: var(--jaune); }
.bouton-son[aria-pressed="true"] { background: var(--jaune); border-color: var(--jaune); color: var(--noir); }
.son-barres { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.son-barres i { display: block; width: 3px; height: 4px; background: currentColor; }
.bouton-son[aria-pressed="true"] .son-barres i { animation: egaliseur .8s ease-in-out infinite alternate; }
.bouton-son[aria-pressed="true"] .son-barres i:nth-child(2) { animation-delay: -.3s; }
.bouton-son[aria-pressed="true"] .son-barres i:nth-child(3) { animation-delay: -.55s; }
@keyframes egaliseur { from { height: 3px; } to { height: 14px; } }
.bouton-son-mobile { display: none; }
.menu-contact { display: none; }
.burger { display: none; }

/* ───────── Hero (réf. The Romans) ───────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 120px var(--marge) 110px;
  overflow: hidden;
}
.hero-titre {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: 13vw; line-height: .84; letter-spacing: -.005em;
  text-align: center; hyphens: none;
}
.hero-titre em { font-style: italic; }
.hero-ligne { display: block; white-space: nowrap; }
.hero-ligne + .hero-ligne { margin-top: .05em; }

/* Le slogan qui change : toutes les variantes sont dans la page, empilées dans la même cellule.
   La ligne prend la largeur de la plus longue : rien ne bouge autour pendant l'animation. */
.slogan {
  display: inline-grid; vertical-align: top;
  clip-path: inset(-.06em -.2em -.08em -.2em);
}
.slogan-item {
  grid-area: 1 / 1; justify-self: center; align-self: center;
  transform: translateY(105%); opacity: 0;
  transition: transform .75s cubic-bezier(.7, 0, .2, 1), opacity .45s ease;
}
.slogan-item.est-actif { transform: none; opacity: 1; }
.slogan-item.est-sorti { transform: translateY(-105%); opacity: 0; }
.slogan-item.elide em { margin-left: -.07em; }

.hero-pied {
  position: absolute; left: var(--marge); right: var(--marge); bottom: 22px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero-pied p { font-size: 20px; line-height: 1.3; max-width: 34em; }
.hero-fleche {
  flex: none; display: grid; place-items: center; width: 58px; height: 58px;
  border: 1.5px solid rgba(255, 255, 255, .55); text-decoration: none; font-size: 20px;
}
.hero-fleche:hover { background: var(--blanc); color: var(--noir); }

/* ───────── Bandeau défilant + stickers ───────── */
.bandeau {
  position: relative; z-index: 3;
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
}
.bandeau-piste { overflow: hidden; display: flex; white-space: nowrap; padding: .2em 0 .12em; font-family: var(--large); font-size: clamp(34px, 4.6vw, 76px); line-height: 1; letter-spacing: -.015em; }
.bandeau-piste span { flex: none; padding-right: .5em; animation: defile 28s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }

.sticker-rond {
  position: absolute; right: 13%; top: -9vw; z-index: 4;
  width: 14vw; min-width: 140px; aspect-ratio: 1; border-radius: 50%;
  background: var(--jaune); color: var(--noir); transform: rotate(-12deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  display: grid; place-items: center;
}
.sticker-rond svg { position: absolute; inset: 6%; width: 88%; height: 88%; animation: tourne 18s linear infinite; }
.sticker-rond text { font-family: var(--titre); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.sticker-rond b { font-family: var(--titre); font-weight: 400; font-size: 2.9vw; line-height: .84; text-align: center; text-transform: uppercase; }
@keyframes tourne { to { transform: rotate(360deg); } }
.sticker-pilule {
  position: absolute; right: 9%; bottom: 24%; z-index: 5;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 10px; border-radius: 999px;
  background: var(--rouge); color: var(--blanc); text-decoration: none;
  font-family: var(--titre); font-size: 26px; line-height: .9; text-transform: uppercase;
  transform: rotate(-9deg); box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}
/* Le + est dessiné en CSS : centré au pixel dans son cercle, quelle que soit la police */
.sticker-pilule .plus {
  position: relative; flex: none; display: block; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid currentColor;
}
.sticker-pilule .plus::before, .sticker-pilule .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46%; height: 2px;
  background: currentColor; transform: translate(-50%, -50%);
}
.sticker-pilule .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.sticker-pilule:hover { background: var(--blanc); color: var(--noir); }

/* ───────── Manifeste (réf. BeNorth) ───────── */
.manifeste {
  padding: clamp(110px, 12vw, 200px) var(--marge) clamp(90px, 12vw, 200px);
  text-align: center;
}
.manifeste p {
  max-width: 30em; margin: 0 auto;
  font-weight: 300; font-size: clamp(24px, 3.15vw, 50px); line-height: 1.2; letter-spacing: -.01em;
  text-wrap: balance;
}

/* ───────── Projet à la une, pleine largeur ───────── */
.une { margin-bottom: clamp(80px, 10vw, 160px); }
.une-lien {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  height: min(100svh, 62vw); min-height: 520px;
}
.une-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.une-lien:hover .une-image { transform: scale(1.03); }
.une-contenu {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 2.6vw, 40px) var(--marge);
  background: linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .35) 42%, rgba(0, 0, 0, 0) 62%),
              linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%);
}
.une-surtitre { margin-top: auto; font-family: var(--titre); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.une-titre {
  margin-top: 10px;
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: 11.5vw; line-height: .82; letter-spacing: -.005em;
}
.une-bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(16px, 2vw, 28px); }
.une-texte { max-width: 30em; font-size: 18px; line-height: 1.35; }
.une-tags { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* « Voir le projet » : mêmes dimensions que les boutons de catégorie, plein blanc */
.une-bouton { background: var(--blanc); color: var(--noir); }

/* ───────── Projets (réf. BeNorth « Elements ») ───────── */
.projets { padding: 0 var(--marge) clamp(80px, 10vw, 160px); }
.surtitre { font-size: 14px; margin-bottom: 18px; color: var(--discret); }
.titre-section {
  font-weight: 700; font-size: clamp(32px, 3.3vw, 52px); line-height: 1.08; letter-spacing: -.025em;
  max-width: 9.5em; margin-bottom: clamp(36px, 5vw, 76px);
}
.grille-projets { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 20px; }
.projet { text-decoration: none; display: block; }
.projet-image { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--sombre); }
.projet-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.projet:hover .projet-image img { transform: scale(1.035); }
.projet-legende { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.projet-titre { font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.projet-tag {
  flex: none; display: inline-block; padding: 7px 16px 6px; border-radius: 999px;
  border: 1.5px solid var(--blanc); font-size: 14px; line-height: 1.2; font-weight: 500;
  transition: background .25s, border-color .25s, color .25s;
}

/* ───────── Services : bandes de couleur, volet au survol ───────── */
.services { padding-bottom: clamp(40px, 6vw, 90px); }
.services-tete { padding: 0 var(--marge) clamp(28px, 3vw, 44px); }
.service {
  position: relative; overflow: hidden; outline: none;
  display: grid; grid-template-columns: 70px 1fr; align-items: end; gap: 24px;
  min-height: clamp(150px, 12vw, 190px);
  padding: 26px var(--marge) 22px; background: var(--c); color: var(--t, var(--noir));
}
.service-num { font-family: var(--titre); font-size: 22px; align-self: start; }
.service-nom {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 8.8vw, 150px); line-height: .82; letter-spacing: -.005em; white-space: nowrap;
}

/* Le volet : descend depuis le haut de la bande, sa barre basse prend la couleur du service */
.service-volet {
  position: absolute; inset: 0; z-index: 2;
  display: grid; grid-template-columns: 70px 1fr; column-gap: 24px; row-gap: 8px; align-content: center;
  padding: 18px var(--marge);
  background: var(--noir); color: var(--blanc);
  border-bottom: 6px solid var(--rail, var(--c));
  transform: translateY(-101%);
  transition: transform .65s cubic-bezier(.7, 0, .2, 1);
}
.service:hover .service-volet, .service:focus-visible .service-volet { transform: none; }
.service-volet-nom {
  grid-column: 2; font-family: var(--titre); font-size: 18px; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em; color: var(--rail, var(--c));
}
.service-definition {
  grid-column: 2; max-width: 52em;
  font-family: var(--texte); font-weight: 400;
  font-size: clamp(17px, 1.7vw, 26px); line-height: 1.25; letter-spacing: 0;
}

/* ───────── Pied de page (avec « Let's make some Ramdam ») ───────── */
.pied { border-top: 1px solid var(--filet); padding: 0 var(--marge) 28px; }
.pied-contact {
  text-align: center;
  padding: clamp(90px, 10vw, 170px) 0 clamp(80px, 9vw, 150px);
  margin-bottom: clamp(56px, 6vw, 90px); border-bottom: 1px solid var(--filet);
}
.contact-titre {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: 17vw; line-height: .82; letter-spacing: -.005em; hyphens: none;
}
.contact-titre em { font-style: italic; padding-right: .08em; }
.contact-infos { margin-top: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact-mail { font-size: clamp(22px, 2.4vw, 38px); font-weight: 500; letter-spacing: -.015em; text-decoration: none; border-bottom: 2px solid; }
.contact-tel { font-size: 18px; color: var(--discret); }
.bouton-pilule {
  display: inline-block; padding: 15px 28px; border-radius: 999px;
  border: 1.5px solid var(--blanc); background: var(--blanc); color: var(--noir);
  font-size: 17px; text-decoration: none;
}
.bouton-pilule:hover { background: var(--noir); color: var(--blanc); }
.pied-haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied-logo img { width: 150px; }
.pied h3 { font-family: var(--titre); font-weight: 400; font-size: 20px; text-transform: uppercase; margin-bottom: 14px; color: var(--jaune); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.pied ul a { text-decoration: none; }
.pied ul a:hover { text-decoration: underline; }
.pied-bas {
  margin-top: clamp(48px, 6vw, 90px); padding-top: 22px; border-top: 1px dotted rgba(255, 255, 255, .45);
  display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--discret);
}
.pied-bas a { text-decoration: none; }

/* ───────── Tablette et téléphone ───────── */
@media (max-width: 900px) {
  .entete { grid-template-columns: 1fr auto; padding-top: 14px; padding-bottom: 14px; }
  .entete-logo img { height: 42px; }

  /* Menu burger */
  .burger {
    position: relative; z-index: 2; display: grid; align-content: center; justify-items: end; gap: 7px;
    width: 46px; height: 46px; padding: 0; border: 0; background: none; color: var(--blanc);
  }
  .burger span { display: block; width: 30px; height: 2px; background: currentColor; transition: transform .35s, opacity .2s; }
  .entete.menu-ouvert .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .entete.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
  .entete.menu-ouvert .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .entete-menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; gap: 32px;
    padding: 100px var(--marge) 32px; background: var(--noir); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s;
  }
  .entete.menu-ouvert .entete-menu { clip-path: inset(0); visibility: visible; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
  .entete-nav { flex-direction: column; gap: 2px; }
  .entete-nav a { font-size: 19vw; line-height: .88; }
  .entete { grid-template-columns: 1fr auto auto; gap: 14px; }
  .bouton-son-mobile { display: inline-flex; position: relative; z-index: 2; font-size: 15px; padding: 8px 12px 7px; }
  .entete-player { width: 100%; justify-self: auto; }
  .entete-player .spotify, .entete-player iframe { flex: 1 1 auto; width: auto; min-width: 0; }
  .menu-contact { display: block; margin-top: auto; font-size: 16px; line-height: 1.6; color: var(--discret); }
  .menu-contact a { text-decoration: none; }

  .chargement { justify-content: center; padding-top: 0; }
  .chargement-titre { font-size: 15vw; white-space: normal; text-align: center; }
  .chargement-image { width: 86vw; aspect-ratio: 4 / 3; margin-top: -4vw; }
  .chargement-devise { margin-top: 20px; }
  .hero-titre { font-size: 17vw; }
  .hero-ligne { white-space: normal; }
  .slogan { display: grid; clip-path: none; }
  .slogan-item { max-width: 100%; transform: translateY(.3em); }
  .slogan-item.est-sorti { transform: translateY(-.3em); }
  .hero-pied p { font-size: 15px; }
  .hero-fleche { width: 46px; height: 46px; }
  .bandeau-piste { font-size: 30px; }
  .sticker-rond { width: 30vw; min-width: 0; right: 6%; top: 16px; }
  .sticker-rond b { font-size: 5.6vw; }
  .sticker-rond text { font-size: 14px; }
  .sticker-pilule { right: auto; left: 6%; bottom: 150px; font-size: 18px; transform: rotate(6deg); }
  .une-lien { min-height: 125vw; }
  .une-tags { margin-left: 0; }
  .une-contenu { justify-content: flex-end; background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 55%, rgba(0, 0, 0, .25) 100%); }
  .une-texte { font-size: 15px; }
  .une-titre { font-size: 18vw; }
  .une-bas { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sticker-pilule .plus { width: 30px; height: 30px; }
  .grille-projets { grid-template-columns: 1fr; gap: 40px; }
  .projet-titre { font-size: 18px; }
  .service { grid-template-columns: 1fr; gap: 10px; padding: 22px var(--marge); min-height: 0; }
  .service-num { font-size: 16px; }
  .service-nom { font-size: 13vw; white-space: normal; }
  .contact-titre { font-size: 21vw; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .pied-logo { grid-column: 1 / -1; }
  .pied-bas { flex-direction: column; }
}

/* Sans survol possible (téléphone, tablette) : la définition est affichée dans la bande */
@media (max-width: 900px), (hover: none) {
  .service-volet {
    position: static; transform: none; display: block; padding: 0; grid-column: 1 / -1;
    background: none; color: inherit; border: 0;
  }
  .service-volet-nom { display: none; }
  .service-definition { font-size: 16px; line-height: 1.4; font-weight: 400; }
}

/* ═════════ Pages internes (phase 3) — mêmes jetons, mêmes composants ═════════ */

.entete-nav a.est-courant { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* En-tête de page : titre géant (réf. The Romans), intro à droite */
.page-tete {
  display: grid; grid-template-columns: 1fr minmax(280px, 34%); align-items: end; column-gap: 40px;
  padding: 170px var(--marge) clamp(56px, 6vw, 96px);
}
.page-tete .surtitre { grid-column: 1 / -1; }
.page-titre {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(88px, 17vw, 300px); line-height: .8; letter-spacing: -.005em;
}
.page-intro { font-size: 20px; line-height: 1.35; max-width: 24em; padding-bottom: .5em; }

/* ───── Projets : filtres + grille asymétrique (réf. Bold) ───── */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--marge); margin-bottom: clamp(32px, 4vw, 56px); }
.filtre {
  padding: 7px 16px 6px; border: 1.5px solid var(--blanc); border-radius: 999px;
  font-size: 14px; line-height: 1.2; font-weight: 500; transition: background .25s, color .25s;
}
.filtre:hover { background: rgba(255, 255, 255, .14); }
.filtre.est-actif { background: var(--blanc); color: var(--noir); }
.grille-index {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 20px; grid-auto-flow: dense;
  padding: 0 var(--marge) clamp(80px, 10vw, 160px);
}
.fiche { display: flex; flex-direction: column; text-decoration: none; }
.fiche-image { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--sombre); }
.fiche-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.fiche:hover .fiche-image img { transform: scale(1.035); }
.fiche-haute { grid-column: 3; grid-row: 1 / span 2; }
.fiche-haute .fiche-image { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.fiche-large { grid-column: 1 / -1; }
.fiche-large .fiche-image { aspect-ratio: 21 / 8; }
.fiche-legende {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--filet);
}
.fiche-titre { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.fiche-annee { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--discret); }
.fiche-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.grille-index.est-filtre .fiche { grid-column: auto; grid-row: auto; }
.grille-index.est-filtre .fiche-image { aspect-ratio: 4 / 3; flex: none; }
.fiche.est-masque { display: none; }

/* ───── Services : bandes ouvertes ───── */
.services-detail { padding-bottom: 0; }
.service-ouvert { align-items: start; min-height: 0; padding-top: 30px; padding-bottom: 34px; }
.service-corps {
  grid-column: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px;
  margin-top: 18px;
}
.service-texte { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.3; max-width: 34em; }
.service-livrables { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.service-livrables span {
  padding: 6px 14px 5px; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: 14px; line-height: 1.2; font-weight: 500;
}

/* ───── Méthode (Services) ───── */
.methode { padding: clamp(90px, 10vw, 160px) var(--marge) clamp(80px, 10vw, 160px); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.etape { border-top: 6px solid var(--c); padding-top: 22px; }
.etape-num { font-family: var(--titre); font-size: 64px; line-height: .9; color: var(--c); margin-bottom: 18px; }
.etape-titre { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.etape-texte { font-size: 16px; line-height: 1.45; color: var(--discret); }

/* ───── Studio ───── */
.vision { padding: clamp(24px, 3vw, 48px) var(--marge) clamp(90px, 10vw, 160px); }
.vision-texte {
  max-width: 17em; font-weight: 300; font-size: clamp(32px, 4.6vw, 76px); line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance;
}
.bande-images { display: grid; grid-template-columns: 1fr 1.4fr 2fr; gap: 8px; height: clamp(300px, 32vw, 520px); }
.bande-image { margin: 0; overflow: hidden; background: var(--sombre); }
.bande-image img { width: 100%; height: 100%; object-fit: cover; }
.fondateur {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: clamp(90px, 10vw, 160px) var(--marge);
}
.fondateur-nom {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 9vw, 150px); line-height: .82; letter-spacing: -.005em;
}
.fondateur-role { margin-top: 14px; font-size: 18px; color: var(--discret); }
.fondateur-texte p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; max-width: 32em; }
.fondateur-texte p + p { margin-top: 1em; }
.fondateur-texte .fondateur-cri { margin-top: 28px; font-family: var(--titre); font-size: 46px; line-height: .9; text-transform: uppercase; color: var(--jaune); }
.parcours { padding: 0 var(--marge) clamp(90px, 10vw, 160px); }
.parcours-liste { border-bottom: 1px solid var(--filet); }
.jalon {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline;
  padding: 22px 0 24px; border-top: 1px solid var(--filet);
}
.jalon-annee { font-family: var(--titre); font-size: 44px; line-height: .9; }
.jalon-titre { font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.jalon-texte { font-size: 16px; line-height: 1.45; color: var(--discret); }
.valeurs { padding: 0 var(--marge) clamp(90px, 10vw, 160px); }
.valeurs-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 20px; }
.valeur { border-top: 6px solid var(--c); padding-top: 22px; }
.valeur-titre {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(36px, 3.6vw, 56px); line-height: .88; margin-bottom: 16px;
}
.valeur p { font-size: 17px; line-height: 1.45; max-width: 34em; }
.bandeau-clients { border-bottom: 0; }

/* ───── Contact ───── */
.page-tete-contact { display: block; text-align: center; padding-bottom: clamp(60px, 7vw, 110px); }
.page-tete-contact .surtitre { margin-bottom: 26px; }
.page-contact .pied-contact { display: none; }
.page-contact .pied { padding-top: clamp(56px, 6vw, 90px); }
.contact-page {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px);
  padding: 56px var(--marge) clamp(90px, 10vw, 160px); border-top: 1px solid var(--filet);
}
.contact-coordonnees .surtitre { margin-bottom: 6px; }
.coord-grand { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; margin-bottom: 30px; }
.coord { font-size: 17px; line-height: 1.5; margin-bottom: 30px; }
.contact-coordonnees a { text-decoration: none; }
.contact-coordonnees a:hover { color: var(--jaune); }
.formulaire { display: grid; gap: 28px; align-content: start; }
.champ { display: grid; gap: 8px; }
.champ > span { font-size: 14px; color: var(--discret); }
.champ input, .champ textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1.5px solid var(--filet); border-radius: 0;
  background: none; color: var(--blanc); font: inherit; font-size: 20px; line-height: 1.3;
}
.champ textarea { resize: vertical; min-height: 150px; }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--blanc); }
.champs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.champ-choix { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.champ-choix legend { width: 100%; margin-bottom: 12px; padding: 0; font-size: 14px; color: var(--discret); }
.champ-choix label { position: relative; }
.champ-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.champ-choix span {
  display: inline-block; padding: 8px 16px 7px; border: 1.5px solid var(--blanc); border-radius: 999px;
  font-size: 15px; line-height: 1.2; font-weight: 500; transition: background .2s, color .2s;
}
.champ-choix label:hover span { background: rgba(255, 255, 255, .14); }
.champ-choix input:checked + span { background: var(--blanc); color: var(--noir); }
.champ-choix input:focus-visible + span { outline: 2px solid var(--jaune); outline-offset: 3px; }
.formulaire-pied { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.formulaire-pied .bouton-pilule { font-family: var(--texte); cursor: inherit; }
.formulaire-note { font-size: 15px; color: var(--jaune); }

@media (max-width: 1100px) {
  .grille-index { grid-template-columns: 1fr 1fr; }
  .fiche-haute { grid-column: 2; grid-row: 1 / span 2; }
  .etapes { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 900px) {
  .page-tete { grid-template-columns: 1fr; row-gap: 22px; padding-top: 130px; }
  .page-titre { font-size: 23vw; }
  .page-intro { font-size: 17px; }
  .grille-index { grid-template-columns: 1fr; gap: 44px; }
  .fiche-haute, .fiche-large { grid-column: auto; grid-row: auto; }
  .fiche-haute .fiche-image, .fiche-large .fiche-image { aspect-ratio: 4 / 3; flex: none; }
  .fiche-titre { font-size: 18px; }
  .service-corps { grid-column: 1; grid-template-columns: 1fr; gap: 16px; margin-top: 6px; }
  .etapes { grid-template-columns: 1fr; }
  .bande-images { grid-template-columns: 1fr 1fr; height: auto; }
  .bande-image { aspect-ratio: 1; }
  .bande-large { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .fondateur { grid-template-columns: 1fr; }
  .fondateur-nom { font-size: 19vw; }
  .jalon { grid-template-columns: 1fr; gap: 8px; }
  .valeurs-grille { grid-template-columns: 1fr; gap: 40px; }
  .contact-page { grid-template-columns: 1fr; padding-top: 40px; }
  .champs-duo { grid-template-columns: 1fr; }
}
/* légende des fiches : titre puis catégories, toujours dans cet ordre (réf. Bold) */
.fiche-legende { flex-direction: column; align-items: flex-start; }
.fiche-large .fiche-image img { object-position: 50% 0%; }

/* ═════════ Retour client : boutons, carrousel Projets, portrait Studio, logos ═════════ */

/* Boutons arrondis : hauteur fixe et texte centré par flex (plus de padding haut/bas asymétrique).
   --decale corrige l'optique de la police (mesuré : voir recette). */
.projet-tag, .filtre, .champ-choix span {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 16px .5px; line-height: 1;
}
.champ-choix span { height: 36px; }
/* Survol individuel : seul le bouton pointé se remplit, à la couleur du projet */
.projet-tag:hover { background: var(--c, var(--blanc)); border-color: var(--c, var(--blanc)); color: var(--noir); }
.une-bouton:hover { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }

/* ───── Projets : rangées de 2 colonnes alternées + carrousel au survol (réf. Graphéine) ───── */
.grille-cartes {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 72px 20px; align-items: start;
  padding: 0 var(--marge) clamp(80px, 10vw, 160px);
}
.carte { grid-column: span 12; display: block; text-decoration: none; }
.carte-7 { grid-column: span 7; }
.carte-5 { grid-column: span 5; }
.carte-4 { grid-column: span 4; }
.carte-8 { grid-column: span 8; }
.carte-visuel {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--sombre);
}
.carte-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.carte-visuel img.est-actif { opacity: 1; }
/* jauge : quelle image du projet est affichée (--i et --n posés par le script) */
.carte-visuel::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px;
  width: calc((var(--i, 0) + 1) / var(--n, 1) * 100%); background: var(--c, var(--blanc));
  opacity: 0; transition: width .18s ease, opacity .25s ease;
}
.carte-visuel.est-survole::after { opacity: 1; }
.carte-legende {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 48px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--filet);
}
.carte-tete { display: grid; gap: 12px; }
.carte-titre { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.carte-annee { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--discret); }
.carte-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.carte-texte { max-width: 34em; font-size: 17px; line-height: 1.45; color: var(--discret); }
.grille-cartes.est-filtre .carte { grid-column: span 6; }
.carte.est-masque { display: none; }

/* ───── Studio : portrait à gauche (réf. Catalin Vintila) ───── */
.fondateur { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; column-gap: clamp(40px, 6vw, 110px); }
.fondateur-texte .surtitre { margin-bottom: 14px; }
.fondateur-texte .fondateur-nom { font-size: clamp(56px, 7.4vw, 128px); }
.fondateur-texte .fondateur-role { margin: 12px 0 30px; }
.portrait { position: relative; justify-self: center; width: 100%; max-width: 480px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.portrait-image {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sombre);
  clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1);
}
.portrait.est-visible .portrait-image { clip-path: inset(0 0 0 0); }
.portrait-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%;
  transform: translateY(var(--parallaxe, 0%)) scale(1.12);
  filter: grayscale(1) contrast(1.06);
  transition: filter .5s steps(4);
}
.portrait:hover .portrait-image img { filter: grayscale(0) contrast(1); }
.portrait-badge {
  position: absolute; right: -44px; top: -44px; z-index: 2; width: 132px; aspect-ratio: 1; border-radius: 50%;
  background: var(--jaune); color: var(--noir); display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}
.portrait-badge svg { position: absolute; inset: 5%; width: 90%; height: 90%; animation: tourne 16s linear infinite; }
.portrait-badge text { font-family: var(--titre); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; fill: currentColor; }
.portrait-badge::after { content: "✷"; font-size: 34px; line-height: 1; }

/* ───── Studio : bandeau de logos clients ───── */
.clients { padding-bottom: clamp(80px, 9vw, 140px); }
.clients > .surtitre { padding: 0 var(--marge); }
.bandeau-logos { border-bottom: 1px solid var(--filet); }
.bandeau-logos .bandeau-piste { padding: 34px 0; font-size: inherit; }
.logos { flex: none; display: flex; align-items: center; gap: 96px; padding-right: 96px; animation: defile 34s linear infinite; }
.logos img { flex: none; height: 46px; width: auto; opacity: .9; }
.bandeau-logos:hover .logos { animation-play-state: paused; }

@media (max-width: 900px) {
  .carte, .carte-7, .carte-5, .carte-4, .carte-8, .grille-cartes.est-filtre .carte { grid-column: 1 / -1; }
  .grille-cartes { gap: 48px; }
  .carte-legende { flex-direction: column; }
  .carte-titre { font-size: 18px; }
  .portrait { max-width: 420px; }
  .portrait-badge { width: 96px; right: -14px; top: -30px; }
  .portrait-badge text { font-size: 13px; }
  .portrait-badge::after { font-size: 26px; }
  .logos { gap: 56px; padding-right: 56px; }
  .logos img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-image { clip-path: none; transition: none; }
  .logos, .bandeau-piste span, .portrait-badge svg, .sticker-rond svg { animation: none; }
}
/* Sticker « Voir les projets » : texte Knockout descendu de 0,066em (mesuré 0,86 px trop haut à 26 px),
   le + garde son centre grâce à la marge négative équivalente */
.sticker-pilule { padding-top: calc(10px + .066em); }
.sticker-pilule .plus { margin-top: -.066em; }
.champ-choix span { padding-bottom: 1.3px; }
.bouton-pilule { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: .64px 28px 0; line-height: 1; }
@media (max-width: 900px) {
  .grille-cartes { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 48px; }
}

/* Les exposants (45es, 21e) ne doivent pas agrandir la ligne */
sup, sub { line-height: 0; }

/* ═════════════════════════════════════════════════════════════════════════════
   ADAPTATIONS WORDPRESS (phase 4)
   La maquette ci-dessus est reprise telle quelle ; ce bloc l'adapte au balisage
   des blocs natifs (figure > img, p au lieu de span, bouton dans .wp-block-button…).
   ═════════════════════════════════════════════════════════════════════════════ */

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0px),
   filet de sécurité ici à spécificité nulle — jamais en .wp-block-group > *. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
img { height: auto; }
.wp-site-blocks { padding: 0; }
.titre-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Couleur d'un composant, portée par une classe (les blocs n'acceptent pas de style libre) */
.c-bleu { --c: var(--bleu); }
.c-jaune { --c: var(--jaune); }
.c-rouge { --c: var(--rouge); }
.c-vert { --c: var(--vert); }
.c-rose { --c: var(--rose); }
.c-noir { --c: var(--noir); }
.c-blanc { --c: var(--blanc); }
.t-blanc { --t: var(--blanc); }
.rail-blanc { --rail: var(--blanc); }

/* ───── En-tête ───── */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
.entete .wp-block-site-logo { line-height: 0; }
.entete-logo img.custom-logo { height: 54px; width: auto; }
.entete-nav.wp-block-navigation { gap: 20px; font-size: inherit; }
.entete-nav .wp-block-navigation__container { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.entete-nav .wp-block-navigation-item__content {
  padding: 0; font-family: var(--titre); font-size: 21px; line-height: 1; text-transform: uppercase;
  text-decoration: none; letter-spacing: .01em; color: inherit;
}
.entete-nav .wp-block-navigation-item__content:hover { color: var(--jaune); }
.entete-nav .wp-block-navigation-item__content.est-courant { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.entete-player .wp-block-embed { margin: 0; flex: none; width: 300px; }
.entete-player .wp-block-embed__wrapper { line-height: 0; }
.entete-player .wp-block-embed iframe { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; }

/* Bouton son : un paragraphe (bloc natif) ; les trois barres de l'égaliseur sont dessinées en CSS */
p.bouton-son { margin: 0; user-select: none; }
.bouton-son::before {
  content: ""; flex: none; width: 13px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 3px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 100% / 3px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 10px 100% / 3px 4px no-repeat;
}
.bouton-son[aria-pressed="true"]::before { animation: egaliseur-p .8s ease-in-out infinite alternate; }
@keyframes egaliseur-p {
  0%   { background-size: 3px 4px, 3px 12px, 3px 7px; }
  50%  { background-size: 3px 13px, 3px 5px, 3px 14px; }
  100% { background-size: 3px 8px, 3px 14px, 3px 3px; }
}

/* ───── Hero ───── */
.hero-titre p { margin: 0; }
p.hero-fleche { flex: none; display: block; width: auto; height: auto; border: 0; font-size: inherit; }
p.hero-fleche:hover { background: none; color: inherit; }
.hero-fleche a {
  display: grid; place-items: center; width: 58px; height: 58px;
  border: 1.5px solid rgba(255, 255, 255, .55); text-decoration: none; font-size: 20px;
}
.hero-fleche a:hover { background: var(--blanc); color: var(--noir); }

/* Sticker « Voir les projets » : bloc Boutons ; le + est dessiné sur le lien */
.sticker-zone { position: absolute; right: 9%; bottom: 24%; z-index: 5; transform: rotate(-9deg); }
.wp-block-button.sticker-pilule {
  position: static; display: flex; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none;
}
.wp-block-button.sticker-pilule:hover { background: none; }
.sticker-pilule .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: calc(10px + .066em) 22px 10px 10px; border-radius: 999px;
  background: var(--rouge); color: var(--blanc); text-decoration: none; text-align: left;
  font-family: var(--titre); font-size: 26px; line-height: .9; text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}
.sticker-pilule .wp-block-button__link::before {
  content: ""; flex: none; box-sizing: border-box; width: 42px; height: 42px; margin-top: -.066em;
  border: 2px solid currentColor; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 46% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 46% no-repeat;
}
.sticker-pilule .wp-block-button__link:hover { background: var(--blanc); color: var(--noir); }

/* ───── Bandeaux défilants (le script duplique la piste pour boucler) ───── */
.bandeau-piste > p { flex: none; margin: 0; padding-right: .5em; animation: defile 28s linear infinite; }
.bandeau-sticker { position: relative; }
.sticker-rond::before {
  content: ""; position: absolute; inset: 0;
  background: url(assets/img/anneau-ramdam.png) center / 88% no-repeat;
  animation: tourne 18s linear infinite;
}
.sticker-rond p {
  position: relative; margin: 0;
  font-family: var(--titre); font-size: 2.9vw; line-height: .84; text-align: center; text-transform: uppercase;
}

/* ───── Projet à la une ───── */
.une-lien { color: var(--blanc); }
figure.une-image { position: absolute; inset: 0; width: 100%; height: 100%; transition: none; }
.une-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.une-lien:hover figure.une-image { transform: none; }
.une-lien:hover .une-image img { transform: scale(1.03); }
.une-tags { position: relative; z-index: 2; }
.une-boutons { flex: none; }
.wp-block-button.une-bouton { display: flex; background: none; }
.une-bouton .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px .5px;
  border: 1.5px solid var(--blanc); border-radius: 999px; background: var(--blanc); color: var(--noir);
  font-family: var(--texte); font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none;
  transition: background .25s, border-color .25s, color .25s;
}
/* toute la carte est cliquable, sauf les boutons de catégorie qui gardent leur survol */
.une-bouton .wp-block-button__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.une-bouton .wp-block-button__link:hover { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }

/* ───── Cartes projets (accueil) ───── */
.projet-image a { display: block; height: 100%; }
.projet-titre a { text-decoration: none; }
.projet-titre a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───── Projets : carrousel ───── */
.carte-visuel figure { position: absolute; inset: 0; margin: 0; opacity: 0; }
.carte-visuel figure.est-actif { opacity: 1; }
.carte-visuel figure a { display: block; width: 100%; height: 100%; }
.carte-visuel figure img { position: static; opacity: 1; width: 100%; height: 100%; object-fit: cover; }
.carte-titre-ligne { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.carte-titre a { text-decoration: none; }
.carte-titre a:hover { text-decoration: underline; text-underline-offset: 3px; }
.carte-annee { margin-left: 0; }

/* ───── Studio ───── */
.portrait::before, .portrait::after {
  content: ""; position: absolute; right: -44px; top: -44px; width: 132px; height: 132px; border-radius: 50%; pointer-events: none;
}
.portrait::before { z-index: 2; background: var(--jaune); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
.portrait::after {
  content: "✷"; z-index: 3; display: grid; place-items: center; color: var(--noir); font-size: 34px; line-height: 1;
  background: url(assets/img/anneau-studio.png) center / 90% no-repeat;
  animation: tourne 16s linear infinite;
}
.portrait-image img { display: block; }
.logos figure { flex: none; margin: 0; }
.logos img { width: auto; }

/* ───── Pied de page ───── */
p.contact-mail { border: 0; font-size: inherit; }
.contact-mail a {
  font-size: clamp(22px, 2.4vw, 38px); font-weight: 500; letter-spacing: -.015em;
  text-decoration: none; border-bottom: 2px solid;
}
.wp-block-button.bouton-devis { display: flex; }
.bouton-devis .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: .64px 28px 0;
  border: 1.5px solid var(--blanc); border-radius: 999px; background: var(--blanc); color: var(--noir);
  font-family: var(--texte); font-size: 17px; line-height: 1; text-decoration: none;
}
.bouton-devis .wp-block-button__link:hover { background: var(--noir); color: var(--blanc); }
.pied-logo img.custom-logo { width: 150px; height: auto; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; }
.page-contacts .pied-contact { display: none; }
.page-contacts .pied { padding-top: clamp(56px, 6vw, 90px); }

/* ───── Pages classiques (anciennes pages projet, mentions légales) ───── */
.page-classique { max-width: 1200px; margin: 0 auto; padding: 150px var(--marge) clamp(80px, 9vw, 140px); }
.page-classique-titre {
  margin-bottom: clamp(32px, 4vw, 60px);
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 10vw, 170px); line-height: .82;
}
.page-classique-contenu { font-size: 18px; line-height: 1.5; }
.page-classique-contenu > * + * { margin-top: 1.1em; }
.page-classique-contenu h1, .page-classique-contenu h2, .page-classique-contenu h3 {
  font-family: var(--titre); font-weight: 400; text-transform: uppercase; line-height: .9;
}
.page-classique-contenu h1 { font-size: clamp(48px, 6vw, 96px); }
.page-classique-contenu h2 { font-size: clamp(36px, 4vw, 64px); }
.page-classique-contenu h3 { font-size: clamp(26px, 2.6vw, 40px); }
.page-classique-contenu a { color: var(--jaune); }
.page-classique-contenu img { max-width: 100%; height: auto; border-radius: 14px; }
.page-classique-contenu figure { margin-left: 0; margin-right: 0; }
.page-classique-contenu .wp-block-columns { gap: 20px; }
.page-404 .page-titre { margin: 18px 0 24px; }
.page-404 .page-intro { margin-bottom: 36px; }

/* ───── Tablette et téléphone ───── */
@media (max-width: 900px) {
  .entete-logo img.custom-logo { height: 42px; }
  p.burger {
    position: relative; z-index: 2; display: block; width: 46px; height: 46px; margin: 0;
    font-size: 0; color: var(--blanc); user-select: none;
  }
  .burger::before, .burger::after {
    content: ""; position: absolute; right: 8px; width: 30px; height: 2px; background: currentColor;
    transition: transform .35s, top .35s, box-shadow .2s;
  }
  .burger::before { top: 15px; box-shadow: 0 8px 0 currentColor; }
  .burger::after { top: 31px; }
  .entete.menu-ouvert .burger::before { top: 22px; box-shadow: none; transform: rotate(45deg); }
  .entete.menu-ouvert .burger::after { top: 22px; transform: rotate(-45deg); }
  .entete-nav .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 2px; }
  .entete-nav .wp-block-navigation-item__content { font-size: 19vw; line-height: .88; }
  .entete-player .wp-block-embed { flex: 1 1 auto; width: auto; min-width: 0; }
  .hero-fleche a { width: 46px; height: 46px; }
  .sticker-zone { right: auto; left: 6%; bottom: 150px; transform: rotate(6deg); }
  .sticker-pilule .wp-block-button__link { font-size: 18px; }
  .sticker-pilule .wp-block-button__link::before { width: 30px; height: 30px; }
  .sticker-rond p { font-size: 5.6vw; }
  .portrait::before, .portrait::after { width: 96px; height: 96px; right: -14px; top: -30px; }
  .portrait::after { font-size: 26px; }
  .page-classique { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau-piste > p, .sticker-rond::before, .portrait::after { animation: none; }
}

/* ───── Écran de chargement : les images sont des blocs Image (figure > img) ───── */
.chargement-image figure { position: absolute; inset: 0; margin: 0; opacity: 0; }
.chargement-image figure.est-actif { opacity: 1; }
.chargement-image figure img { position: static; opacity: 1; width: 100%; height: 100%; object-fit: cover; }
.chargement p { margin: 0; }
.wp-block-button.une-bouton:hover { background: none; }

/* Les exposants (45es, 21e) ne doivent pas agrandir la ligne */
sup, sub { line-height: 0; }

/* ───── Formulaire de contact (Jetpack Forms, shortcode) aux couleurs de la maquette ───── */
.formulaire-zone .contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin: 0; padding: 0; }
.formulaire-zone .contact-form > * { grid-column: 1 / -1; margin: 0; }
.formulaire-zone .contact-form > .grunion-field-name-wrap,
.formulaire-zone .contact-form > .grunion-field-name-wrap + .grunion-field-text-wrap { grid-column: auto; }
.formulaire-zone .grunion-field-wrap { display: grid; gap: 8px; margin: 0; padding: 0; }
.formulaire-zone .grunion-field-label, .formulaire-zone legend.grunion-field-label {
  margin: 0; padding: 0; font-size: 14px; font-weight: 400; color: var(--discret);
}
.formulaire-zone .grunion-label-text { font-weight: 400; }
.formulaire-zone .grunion-label-required { font-size: 0; }
.formulaire-zone .grunion-label-required::after { content: " *"; font-size: 14px; }
.formulaire-zone input[type="text"], .formulaire-zone input[type="email"], .formulaire-zone textarea {
  width: 100%; max-width: none; margin: 0; padding: 10px 0; border: 0; border-bottom: 1.5px solid var(--filet); border-radius: 0;
  background: none; box-shadow: none; color: var(--blanc); font: inherit; font-size: 20px; line-height: 1.3;
}
.formulaire-zone textarea { height: 150px; min-height: 150px; resize: vertical; }
.formulaire-zone input:focus, .formulaire-zone textarea:focus { outline: none; border-bottom-color: var(--blanc); }
.formulaire-zone .jetpack-field-multiple__fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.formulaire-zone .jetpack-field-multiple__fieldset legend { width: 100%; margin-bottom: 12px; }
.formulaire-zone .grunion-radio-options { display: flex; flex-wrap: wrap; gap: 8px; }
.formulaire-zone .grunion-radio-options .contact-form-field { position: relative; margin: 0; }
.formulaire-zone .grunion-radio-options input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.formulaire-zone .grunion-radio-label {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; margin: 0; padding: 0 16px 1.3px;
  border: 1.5px solid var(--blanc); border-radius: 999px; color: var(--blanc);
  font-size: 15px; font-weight: 500; line-height: 1; transition: background .2s, color .2s;
}
.formulaire-zone .grunion-radio-label:hover { background: rgba(255, 255, 255, .14); }
.formulaire-zone input[type="radio"]:checked + .grunion-radio-label { background: var(--blanc); color: var(--noir); }
.formulaire-zone input[type="radio"]:focus-visible + .grunion-radio-label { outline: 2px solid var(--jaune); outline-offset: 3px; }
.formulaire-zone .contact-submit { margin: 0; }
.formulaire-zone .pushbutton-wide {
  display: inline-flex; align-items: center; justify-content: center; width: auto; height: 54px; padding: .64px 28px 0;
  border: 1.5px solid var(--blanc); border-radius: 999px; background: var(--blanc); color: var(--noir);
  font-family: var(--texte); font-size: 17px; line-height: 1; cursor: inherit;
}
.formulaire-zone .pushbutton-wide:hover { background: var(--noir); color: var(--blanc); }
.formulaire-zone .contact-form__input-error, .formulaire-zone .contact-form__error { font-size: 14px; color: var(--jaune); }
.formulaire-zone .contact-form__warning-icon { display: none; }
@media (max-width: 900px) {
  .formulaire-zone .contact-form { grid-template-columns: 1fr; }
  .formulaire-zone .contact-form > .grunion-field-name-wrap,
  .formulaire-zone .contact-form > .grunion-field-name-wrap + .grunion-field-text-wrap { grid-column: 1 / -1; }
}
/* grunion.css (Jetpack) est chargé après le thème : on qualifie davantage pour garder la main */
.formulaire-zone .contact-form .grunion-radio-options { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 0; }
.formulaire-zone .contact-form .grunion-radio-options .contact-form-field { display: block; gap: 0; }
.formulaire-zone .contact-form .grunion-radio-options input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.formulaire-zone .contact-form .pushbutton-wide { width: auto; gap: 0; justify-self: start; }
.formulaire-zone .contact-form .grunion-field-wrap { gap: 8px; }

/* ═════════ Retour client du 7 octobre ═════════ */

/* ───── En-tête mobile : rien ne doit bouger pendant le défilement ─────
   --recalage : Safari iOS 26 décale parfois la zone visible de quelques pixels (visualViewport.offsetTop
   ne revient pas à 0) et l'en-tête fixe glisse sous la barre d'état ; le script mesure ce décalage. */
.entete { top: var(--recalage, 0px); }
.admin-bar .entete { top: calc(32px + var(--recalage, 0px)); }
@media (max-width: 782px) { .admin-bar .entete { top: calc(46px + var(--recalage, 0px)); } }
/* Connecté sur téléphone : WordPress rend sa barre « absolute » sous 600 px, elle partait avec la page
   et laissait un trou de 46 px au-dessus de l'en-tête. On la garde fixe, comme l'en-tête. */
@media (max-width: 600px) { html #wpadminbar { position: fixed; } }
@media (max-width: 900px) {
  .entete-menu { top: var(--recalage, 0px); }
  /* Son on / Son off : largeur fixe, le bouton ne bouge plus quand le libellé change */
  .bouton-son-mobile { justify-content: center; min-width: 6.2em; }
  /* Menu burger : la navigation centrait sa liste ; les titres se calent sur la marge gauche.
     -.035em compense l'approche gauche de la Knockout pour que l'encre tombe pile sur la marge. */
  .entete-nav.wp-block-navigation { align-items: flex-start; justify-content: flex-start; }
  .entete-nav .wp-block-navigation-item__content { margin-left: -.035em; }
}

/* ───── Page projet (réf. Studio Ouam, « Le Bar à Chaussettes ») ─────
   Tête : fil, titre géant, disciplines et chapô ; puis une alternance de grandes photos
   (pleine largeur, duos carrés, grands formats centrés) et de textes en deux colonnes. */
.cas-tete { padding: 150px var(--marge) 0; }
.cas-fil {
  display: inline-block; padding: 44px 0 0 12px; border-left: 1px solid var(--filet);
  font-size: 14px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; color: var(--discret);
}
.cas-fil a { text-decoration: none; }
.cas-fil a:hover { color: var(--blanc); }
.cas-titre {
  margin-top: 22px;
  font-family: var(--titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(88px, 17vw, 300px); line-height: .8; letter-spacing: -.005em;
}
.cas-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: start;
  margin-top: clamp(40px, 4.5vw, 72px);
}
.cas-disciplines {
  position: relative; max-width: 300px; margin: 0; padding: 2px 64px 2px 18px; list-style: none;
  border-left: 1px solid var(--filet);
  display: grid; gap: 6px; font-size: 14px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em;
}
/* flèche fine dessinée en SVG (réf. Studio Ouam) */
.cas-disciplines::after {
  content: ""; position: absolute; right: 0; top: 0; width: 40px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M0 10h38M29 1.5l9 8.5-9 8.5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat;
}
.cas-chapo { max-width: 30em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }

/* Grandes photos : le rythme vertical est le même partout */
figure.cas-plein, .cas-duo, figure.cas-centre, .cas-textes { margin-top: clamp(64px, 8vw, 128px); }
figure.cas-plein { margin-bottom: 0; overflow: hidden; background: var(--sombre); }
.cas-plein img { width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.cas-duo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 64px);
  width: min(100% - 2 * var(--marge), 1140px); margin-left: auto; margin-right: auto;
}
.cas-duo figure.wp-block-image { margin: 0; overflow: hidden; background: var(--sombre); }
.cas-duo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
figure.cas-centre { width: min(100% - 2 * var(--marge), 1080px); margin-left: auto; margin-right: auto; overflow: hidden; }
.cas-centre img { width: 100%; }
/* étiquettes à plat : posées sur le blanc cassé de la charte Omelya, comme un tirage */
figure.cas-papier { padding: clamp(20px, 5vw, 80px); background: #f8f5f1; }

/* Textes : deux colonnes, titres sur un filet qui traverse toute la page */
.cas-textes {
  display: grid;
  grid-template-columns: minmax(var(--marge), 1fr) minmax(0, 500px) minmax(0, 500px) minmax(var(--marge), 1fr);
}
/* le filet occupe toute la rangée des titres, d'un bord à l'autre (sans 100vw, qui déborderait de la barre de défilement) */
.cas-textes::before { content: ""; grid-row: 1; grid-column: 1 / -1; align-self: end; height: 1px; background: var(--filet); }
.cas-texte { display: contents; }
.cas-texte:first-child > * { grid-column: 2; padding-right: clamp(16px, 3vw, 60px); }
.cas-texte:last-child > * { grid-column: 3; padding-left: clamp(16px, 3vw, 60px); }
.cas-texte-titre {
  grid-row: 1; padding-bottom: 18px;
  font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 3.4vw, 54px); line-height: .9;
}
.cas-texte > p { grid-row: 2; max-width: 34em; padding-top: 24px; font-size: 17px; line-height: 1.5; }
.cas-credits .cas-texte-titre { font-size: clamp(28px, 2.4vw, 38px); }
.cas-credits .cas-texte > p { font-size: 15px; color: var(--discret); }

.cas-retour { padding: clamp(64px, 8vw, 128px) var(--marge) clamp(80px, 9vw, 140px); text-align: center; }
.cas-retour a {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: .64px 28px 0;
  border: 1.5px solid var(--blanc); border-radius: 999px;
  font-size: 17px; line-height: 1; text-decoration: none; transition: background .25s, color .25s;
}
.cas-retour a:hover { background: var(--blanc); color: var(--noir); }

/* Apparition au défilement (classe posée par le script : sans script, tout reste visible) */
.js-revele :is(figure.cas-plein, .cas-duo figure, figure.cas-centre) {
  opacity: 0; transform: translateY(48px);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.js-revele :is(figure.cas-plein, .cas-duo figure, figure.cas-centre).est-visible { opacity: 1; transform: none; }
.js-revele .cas-plein img { transform: scale(1.08); transition: transform 1.8s cubic-bezier(.2, .8, .2, 1); }
.js-revele .cas-plein.est-visible img { transform: none; }

@media (max-width: 900px) {
  .cas-tete { padding-top: 120px; }
  .cas-titre { font-size: 23vw; }
  .cas-intro { grid-template-columns: 1fr; gap: 28px; }
  .cas-chapo { font-size: 17px; }
  .cas-plein img { aspect-ratio: 4 / 3; }
  .cas-duo { grid-template-columns: 1fr; gap: 12px; }
  .cas-textes { display: block; padding: 0 var(--marge); }
  .cas-textes::before { display: none; }
  .cas-texte { display: block; }
  .cas-textes .cas-texte > * { padding-left: 0; padding-right: 0; }
  .cas-texte + .cas-texte { margin-top: 48px; }
  .cas-texte-titre { border-bottom: 1px solid var(--filet); }
}
@media (prefers-reduced-motion: reduce) {
  .js-revele :is(figure.cas-plein, .cas-duo figure, figure.cas-centre), .js-revele .cas-plein img { opacity: 1; transform: none; transition: none; }
}

/* ───── Studio, téléphone et tablette : portrait puis texte sur une seule colonne ─────
   La règle « 2 colonnes » du portrait (plus bas dans la maquette) écrasait celle du téléphone. */
@media (max-width: 900px) {
  /* overflow-x: clip — le badge tourne près du bord : les coins de sa boîte ne doivent pas élargir la page */
  .fondateur { grid-template-columns: minmax(0, 1fr); row-gap: 56px; overflow-x: clip; }
  .portrait { justify-self: start; }
}

/* Accueil : l'anneau du sticker rond tourne près du bord droit ; les coins de sa boîte élargissaient la page
   de ~15 px sur téléphone (sur iPhone, la page pouvait alors glisser de côté pendant le défilement). */
.bandeau-sticker { overflow-x: clip; }
