/* MADGICS — ossature du site. Nuit totale : noir, blanc chaud, un accent doré. */

/* Pilat Extended : déposer les fichiers sous licence dans /fonts pour remplacer la police de secours. */
@font-face { font-family: "Pilat Extended"; src: url("../fonts/PilatExtended-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pilat Extended"; src: url("../fonts/PilatExtended-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pilat Extended"; src: url("../fonts/PilatExtended-DemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #050505;
  --fg: #f4f1ec;
  --dim: #8a857f;
  --gold: #ffe5bc;
  --line: rgba(244, 241, 236, .14);
  --display: "Pilat Extended", "Unbounded", "Arial Black", sans-serif;
  --text: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --mx: 50vw; --my: 50vh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #000; }

/* Le curseur est un projecteur */
.spot { position: fixed; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 229, 188, .17), transparent 70%); mix-blend-mode: screen; }
@media (hover: none) { .spot { display: none; } }

/* Typographie */
.d { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; }
.xl { font-size: clamp(44px, 11vw, 190px); }
.l { font-size: clamp(30px, 5.6vw, 92px); }
.m { font-size: clamp(20px, 2.6vw, 40px); line-height: 1.08; }
.label { font-family: var(--display); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #a8a299; }
.gold { color: var(--gold); }
p.lead { font-size: clamp(17px, 1.5vw, 22px); max-width: 34em; color: #cfc9c1; }

/* En-tête */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); mix-blend-mode: difference; }
.logo { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.logo span { font-weight: 400; transition: opacity .35s; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 38px); align-items: center; }
.nav a, .nav button { font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: none; border: 0; color: inherit; cursor: pointer; opacity: .75; transition: opacity .25s; }
.nav a:hover, .nav button:hover, .nav a.on { opacity: 1; }
.burger { display: none; }
@media (max-width: 820px) {
  .burger { display: block; font-family: var(--display); font-size: 11px; letter-spacing: .12em; background: none; border: 0; color: inherit; text-transform: uppercase; cursor: pointer; }
  .hd { mix-blend-mode: normal; }
  .nav { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 28px; transform: translateY(-100%); transition: transform .5s cubic-bezier(.7, 0, .2, 1); z-index: -1; }
  .nav a, .nav button { font-size: 22px; font-weight: 700; opacity: 1; }
  body.menu .nav { transform: none; }
}

/* Sections */
section { position: relative; padding: clamp(90px, 14vw, 220px) var(--pad); }
.rule { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.c-label { grid-column: 1 / span 3; }
.c-main { grid-column: 4 / -1; }
@media (max-width: 820px) { .c-label, .c-main { grid-column: 1 / -1; } }

/* Apparition : la lumière révèle */
.rv { opacity: 0; filter: blur(14px) brightness(2.2); transform: translateY(18px); transition: opacity 1.1s ease, filter 1.3s ease, transform 1.1s ease; }
.rv.in { opacity: 1; filter: none; transform: none; }

/* Accueil : ouverture */

/* Introduction : le logo s'allume */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; overflow: hidden; transition: opacity .9s ease .1s, visibility 0s linear 1s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-word { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 9vw, 150px); text-transform: uppercase; display: flex; }
.intro-word i { font-style: normal; opacity: 0; animation: lit .5s ease forwards; animation-delay: calc(.5s + var(--i) * .13s); }
.intro-beam { position: absolute; top: -20%; bottom: -20%; width: 34vw; left: -40vw; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 229, 188, .34), rgba(255, 255, 255, .5), rgba(255, 229, 188, .34), transparent); filter: blur(22px); animation: beam 1.9s cubic-bezier(.5, 0, .3, 1) .25s forwards; }
@keyframes lit { 0% { opacity: 0; filter: blur(12px) brightness(4); } 40% { opacity: 1; filter: blur(2px) brightness(3); text-shadow: 0 0 40px var(--gold); } 100% { opacity: 1; filter: none; text-shadow: none; } }
@keyframes beam { to { left: 110vw; } }

/* Le film : présent dès l'ouverture, il monte en lumière quand le titre s'efface */
.film { height: 210vh; padding: 0; }
.film-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-stick::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(5, 5, 5, .85)); opacity: var(--o, 1); pointer-events: none; }
.hero-txt { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: clamp(36px, 5vw, 80px); opacity: var(--o, 1); }
.hero-label { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; color: #d8d2c9; }

/* Les lieux */

/* Image projetée qui suit le curseur */
.ph { width: 100%; height: 100%; display: grid; place-items: center; border: 1px solid var(--line); background: #0b0b0b; color: var(--dim); font-family: var(--display); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

/* Chiffres */

/* Grilles de médias */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.tile.wide { aspect-ratio: 16 / 9; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.8); transition: filter .7s ease, transform 1.2s ease; }
.tile:hover img, .tile:hover video { filter: none; transform: scale(1.03); }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } .tile img, .tile video { filter: none; } }

/* Clients */
.clients { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(16px, 2.2vw, 34px); line-height: 1.35; color: #5b5752; }
.clients span { transition: color .3s; }
.clients span:hover { color: var(--gold); }

/* Métiers, méthode */
.items { border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 24px; padding: clamp(28px, 4vw, 60px) 0; border-bottom: 1px solid var(--line); }
.item p { color: #bdb7af; max-width: 40ch; }
@media (max-width: 820px) { .item { grid-template-columns: 32px 1fr; } .item p { grid-column: 2; } }

/* Projet */
.proj-head { padding-top: clamp(140px, 18vw, 260px); }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.acts p { margin-top: 14px; color: #bdb7af; }
@media (max-width: 820px) { .acts { grid-template-columns: 1fr; } }

/* Boutons, formulaire */
.btn { display: inline-block; font-family: var(--display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 18px 26px; border: 1px solid var(--fg); background: none; color: var(--fg); cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.btn:hover, .btn.full { background: var(--fg); color: #000; box-shadow: 0 0 60px rgba(255, 229, 188, .35); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
form { display: grid; gap: 0; max-width: 720px; }
form input, form textarea { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 18px; padding: 22px 0; outline: none; transition: border-color .3s; }
form input:focus, form textarea:focus { border-color: var(--gold); }
form ::placeholder { color: var(--dim); text-transform: uppercase; font-family: var(--display); font-size: 11px; letter-spacing: .14em; }
form .btn { justify-self: start; margin-top: 32px; }

/* Pied de page */
.ft { border-top: 1px solid var(--line); padding: clamp(80px, 12vw, 180px) var(--pad) 32px; }
.ft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(60px, 9vw, 130px); font-size: 14px; }
.ft-grid .label { margin-bottom: 12px; }
.ft-grid a { display: block; color: #bdb7af; padding: 2px 0; }
.ft-grid a:hover { color: var(--gold); }
.ft-base { display: flex; justify-content: space-between; margin-top: 70px; }
@media (max-width: 820px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-base { flex-direction: column; gap: 8px; } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; filter: none; transform: none; transition: none; }
  .intro { display: none; }
  html { scroll-behavior: auto; }
}

/* Manifeste */
.manifesto > * + * { margin-top: 28px; }
.manifesto .label { margin-top: 44px; }

/* Contenus en attente : invisibles pour le visiteur. Ajouter ?brouillon à l'adresse pour les revoir. */
.todo { display: none !important; }
body.draft .todo { display: revert !important; }
body.draft .grid3.todo { display: grid !important; }

/* Projets annoncés mais pas encore documentés */

/* Vignette dans la liste, là où le survol n'existe pas */

/* Sous-titres des métiers */
.sub { margin-top: 14px; font-size: clamp(16px, 1.3vw, 19px); color: #d8d2c9; max-width: none !important; }

/* Accessibilité */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Mobile : en-tête lisible, WhatsApp toujours à portée */
.m-only, .wa { display: none; }
@media (max-width: 820px) {
  .hd { background: linear-gradient(rgba(5, 5, 5, .96) 55%, transparent); padding-bottom: 34px; }
  .burger { position: relative; z-index: 2; padding: 10px 0 10px 16px; }
  .m-only { display: block; }
  .wa { display: block; position: fixed; z-index: 15; right: 16px; bottom: 16px; padding: 14px 20px; background: var(--gold); color: #000; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 40px rgba(255, 229, 188, .35); }
  body.menu .wa { display: none; }
  .hero-label span:last-child { display: none; }
}
@media (max-width: 820px) {
  .hero-txt { bottom: 84px; }
  body[data-page="contact"] .wa { display: none; }
}

/* Portfolio : l'idée folle dans la liste, la fiche sur la page projet */
.fiche { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.fiche .label { margin-bottom: 8px; }
@media (max-width: 820px) { .fiche { grid-template-columns: 1fr 1fr; } }

/* ---- Accueil en images ---- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 72px); }
.mani { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 90px); align-items: center; }
.mani .tile img { filter: none; }
.mani .manifesto .label { margin: 0 0 8px; }

/* Portfolio : une grille d'images décalée */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.work a { position: relative; overflow: hidden; height: clamp(300px, 42vw, 620px); grid-column: span 6; }
.work a:nth-child(4n+1) { grid-column: span 8; } .work a:nth-child(4n+2) { grid-column: span 4; }
.work a:nth-child(4n+3) { grid-column: span 5; } .work a:nth-child(4n) { grid-column: span 7; }
.work a > img:first-child { width: 100%; height: 100%; object-fit: cover; filter: brightness(.66); transition: filter .7s ease, transform 1.4s ease; }
.work a:hover > img:first-child { filter: none; transform: scale(1.04); }
.work a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(5, 5, 5, .88)); pointer-events: none; }
.work .cap { position: absolute; z-index: 1; left: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 26px); display: grid; gap: 8px; }
.work .meta { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #d8d2c9; }
.work .lg { height: clamp(34px, 3.6vw, 56px); width: auto; max-width: 220px; object-fit: contain; object-position: left bottom; filter: brightness(0) invert(1); }
.soon-line { margin-top: clamp(50px, 7vw, 100px); border-top: 1px solid var(--line); padding-top: 28px; }
.soon-line .d { margin-top: 14px; color: #77726b; line-height: 1.25; }

/* Bande d'images */
/* Comment ça marche */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.steps > div { border-top: 1px solid var(--fg); padding-top: 18px; }
.steps h3 { font-size: clamp(15px, 1.35vw, 21px); line-height: 1.1; margin: 18px 0 12px; }
.steps p { color: #bdb7af; font-size: 15px; }

/* Logos clients */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos > div { aspect-ratio: 16 / 9; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos img { max-width: 48%; max-height: 42%; object-fit: contain; filter: brightness(0) invert(1); opacity: .6; transition: opacity .3s; }
.logos > div:hover img { opacity: 1; }

@media (max-width: 820px) {
  .mani { grid-template-columns: minmax(0, 1fr); }
  .work a, .work a:nth-child(n) { grid-column: 1 / -1; height: 68vw; }
  .work a > img:first-child { filter: brightness(.85); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps > div { padding: 18px 0 26px; border-top-color: var(--line); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Le visiteur tient le projecteur : tout est noir, le faisceau révèle le film ---- */
.dark { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(circle var(--r, 230px) at var(--mx) var(--my), transparent 0, rgba(255, 229, 188, .05) 38%, rgba(5, 5, 5, .7) 78%, rgba(5, 5, 5, .8) 100%); }
.hint { transition: opacity .8s ease; }
.film.moved .hint { opacity: 0; }
@media (hover: none) { .hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .dark { display: none; } }

/* ---- Chaque image arrive comme une projection : la grille de calage, puis l'image ---- */
.work a.rv, .mani .tile.rv { opacity: 1; filter: none; transform: none; background: #080808; }
.work a.rv > img:first-child, .mani .tile.rv img { opacity: 0; transition: opacity 1s ease .75s, filter .7s ease, transform 1.4s ease; }
.work a.rv.in > img:first-child, .mani .tile.rv.in img { opacity: 1; }
.work a.rv .cap { opacity: 0; transition: opacity .8s ease 1.1s; }
.work a.rv.in .cap { opacity: 1; }
.work a::before, .mani .tile::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat,
    repeating-linear-gradient(0deg, rgba(244, 241, 236, .55) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(90deg, rgba(244, 241, 236, .55) 0 1px, transparent 1px 12.5%);
  outline: 1px solid rgba(244, 241, 236, .7); outline-offset: -1px; }
.work a.in::before, .mani .tile.in::before { animation: calage 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes calage {
  0%   { opacity: 0; transform: perspective(900px) rotateY(22deg) rotateX(9deg) scale(.86); }
  25%  { opacity: 1; transform: perspective(900px) rotateY(22deg) rotateX(9deg) scale(.86); }
  60%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .work a.rv > img:first-child, .mani .tile.rv img, .work a.rv .cap { opacity: 1; transition: none; }
  .work a::before, .mani .tile::before { display: none; }
}

/* Le tour en trois actes */
.steps.acts3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.steps.acts3 h3 { font-size: clamp(20px, 2.7vw, 48px); overflow-wrap: anywhere; margin: 22px 0 16px; }
.steps.acts3 p { font-size: clamp(16px, 1.25vw, 19px); max-width: 30ch; }
.row.act { margin-top: clamp(32px, 4.5vw, 70px); }
@media (max-width: 820px) { .steps.acts3 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Les portes : « Vous préparez… » : cinq panneaux en images, celui qu'on survole s'ouvre ---- */
.doors { list-style: none; display: flex; gap: 10px; height: clamp(440px, 66vh, 760px); }
.doors li { flex: 1; min-width: 0; }
.doors li.rv { transition: flex 0.8s cubic-bezier(.6, 0, .2, 1), opacity 1.1s ease, filter 1.3s ease, transform 1.1s ease; }
.doors li:hover { flex: 3.4; }
.doors a { position: relative; display: block; height: 100%; overflow: hidden; }
.doors .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.75); transition: filter .7s ease, transform 1.6s ease; }
.doors li:hover .bg { filter: none; transform: scale(1.04); }
.doors a::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5, 5, 5, .92)); }
.doors .txt { position: absolute; z-index: 1; left: clamp(14px, 1.6vw, 26px); right: clamp(14px, 1.6vw, 26px); bottom: clamp(16px, 1.8vw, 28px); display: grid; gap: 12px; }
.doors .d { font-size: clamp(11px, 1.1vw, 19px); line-height: 1.1; transition: font-size .6s ease, color .3s; }
.doors li:hover .d { font-size: clamp(22px, 2.6vw, 44px); color: var(--gold); }
.doors .say { font-size: clamp(11px, .95vw, 14px); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s ease, opacity .5s ease .15s; }
.doors li:hover .say { max-height: 8em; opacity: 1; }
@media (hover: none), (max-width: 820px) {
  .doors { flex-direction: column; height: auto; }
  .doors li, .doors li:hover { flex: none; height: 56vw; }
  .doors .bg { filter: brightness(.75); }
  .doors .d, .doors li:hover .d { font-size: 6vw; color: var(--fg); }
  .doors .say { max-height: none; opacity: 1; }
}

/* Les preuves, en une ligne */
.proofs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proofs p { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(14px, 1.5vw, 23px); line-height: 1.15; border-top: 1px solid var(--fg); padding-top: 16px; }
@media (max-width: 820px) { .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Filtres du portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 32px; }
.filters a { font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #a8a299; padding: 6px 0; border-bottom: 1px solid transparent; }
.filters a.on, .filters a:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Identité : tout en capitales, tout en Pilat Extended ---- */
body { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .035em; font-size: 13px; line-height: 1.6; }
.d { letter-spacing: -.01em; }
p.lead { font-size: clamp(12px, 1.05vw, 16px); line-height: 1.65; max-width: 48em; color: #d8d2c9; }
.item p, .steps p, .steps.acts3 p, .acts p, .sub, .fiche p:not(.label) { font-size: clamp(11px, .92vw, 14px); line-height: 1.65; max-width: 46ch; }
.work .meta { font-size: clamp(10px, .85vw, 12px); letter-spacing: .08em; }
.ft-grid { font-size: 12px; }
.label { letter-spacing: .14em; }
form input, form textarea { font-family: var(--display); font-size: 14px; text-transform: none; letter-spacing: 0; }

/* ================= Réglages typographiques (25 nov.) ================= */
/* Retours à la ligne : titres équilibrés, pas de mot seul en fin de paragraphe, jamais de coupure dans un mot */
.d, h1, h2, h3 { text-wrap: balance; overflow-wrap: normal; hyphens: none; }
p, .say, .meta { text-wrap: pretty; hyphens: none; }

/* Rythme vertical : moins de vide entre les sections, des écarts réguliers à l'intérieur */
section { padding: clamp(64px, 8.5vw, 150px) var(--pad); }
.film { padding: 0; }
.proj-head { padding-top: clamp(130px, 13vw, 210px); }
.head { margin-bottom: clamp(28px, 3.6vw, 56px); }
.label { line-height: 1.5; }
.d.xl { line-height: .94; }
.d.l { line-height: 1; }
.d.m { line-height: 1.12; }
p.lead { margin-top: 0; }
.manifesto > * + * { margin-top: clamp(18px, 2vw, 30px); }

/* Les trois actes : un titre par ligne, même hauteur pour les trois colonnes */
.steps.acts3 h3 { font-size: clamp(18px, 2.15vw, 38px); white-space: nowrap; margin: 20px 0 14px; }
.steps.acts3 p { max-width: 34ch; }

/* Les preuves : quatre blocs de même forme */
.proofs p { font-size: clamp(11px, 1.02vw, 16px); line-height: 1.3; min-height: 3.6em; text-wrap: balance; }

/* Les portes : quand l'une s'ouvre, les autres passent leur titre à la verticale au lieu de le couper */
@media (hover: hover) and (min-width: 821px) {
  .doors:hover li:not(:hover) .d { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; justify-self: start; }
  .doors li:hover .d { white-space: normal; }
}

/* Vignettes du portfolio : nom et idée bien séparés */
.work .cap { gap: 10px; }
.work .cap .d { font-size: clamp(18px, 2.1vw, 36px); line-height: 1.02; }
.work .meta { line-height: 1.5; max-width: 46ch; }

/* Fiche et pied de page */
.fiche p:not(.label) { color: #d8d2c9; }
.ft { padding-top: clamp(70px, 9vw, 150px); }
.ft-grid { margin-top: clamp(48px, 6vw, 96px); line-height: 1.9; }

/* Le halo du curseur n'apparaît qu'une fois la souris bougée (sinon il reste figé comme une tache) */
.spot { opacity: 0; transition: opacity .8s ease; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 229, 188, .1), transparent 70%); }
body.pointer .spot { opacity: 1; }

/* Films supplémentaires d'un projet */
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.clips video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #080808; display: block; }
.note { margin-top: 18px; color: var(--gold); }
@media (max-width: 820px) { .clips { grid-template-columns: minmax(0, 1fr); } .steps.acts3 h3 { white-space: normal; } }

/* Titres de projet : un nom long (Abderrahmane) doit tenir sur un écran de téléphone sans être coupé */
@media (max-width: 820px) { .proj-head h1 { font-size: 6.8vw; } .proj-head .d.m { font-size: 5.2vw; } }

/* ================= Corrections d'interface (25 nov., 2e passe) ================= */
/* L'en-tête ne se mélange plus au contenu : un voile sombre derrière le logo et le menu */
.hd { mix-blend-mode: normal; background: linear-gradient(rgba(5, 5, 5, .92) 30%, rgba(5, 5, 5, 0)); padding-bottom: 44px; pointer-events: none; }
.hd > * { pointer-events: auto; }

/* Clients : sept colonnes, deux rangées, sans case vide */
.logos { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.logos > div { aspect-ratio: 4 / 3; }
.logos img { max-width: 58%; max-height: 40%; }
@media (max-width: 1100px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= Page projet ================= */
.pj section { padding: 0; }
/* 1. Le film, plein écran, le nom posé dessus */
.pj-hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.pj-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(5, 5, 5, .74), rgba(5, 5, 5, 0) 26%, rgba(5, 5, 5, 0) 46%, rgba(5, 5, 5, .9)); pointer-events: none; }
.pj-top { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: clamp(84px, 8vw, 120px); display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; color: #d8d2c9; }
.pj-top a:hover { color: var(--gold); }
.pj-title { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(34px, 4.6vw, 76px); max-width: 1500px; }
.pj-title h1 { font-size: clamp(34px, 6.6vw, 118px); line-height: .96; margin-top: 16px; }
.pj-idea { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.5vw, 24px); line-height: 1.15; color: var(--gold); margin-top: clamp(14px, 1.6vw, 26px); max-width: 30em; text-wrap: balance; }
.pj-sound { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(34px, 4.6vw, 76px); font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); background: rgba(5, 5, 5, .45); border: 1px solid rgba(244, 241, 236, .6); padding: 13px 18px; cursor: pointer; transition: background .3s, color .3s; }
.pj-sound:hover, .pj-sound.on { background: var(--fg); color: #000; }

/* 2. La fiche à gauche, l'histoire à droite */
.pj .pj-story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 90px); padding: clamp(56px, 7vw, 120px) var(--pad); align-items: start; }
.pj-fiche { display: grid; gap: 22px; }
.pj-fiche dt { font-size: 11px; letter-spacing: .14em; color: #a8a299; margin-bottom: 6px; }
.pj-fiche dd { font-size: clamp(12px, 1vw, 15px); color: var(--fg); }
.pj-text { display: grid; gap: clamp(30px, 3.4vw, 56px); max-width: 60em; }
.pj-text .label { margin-bottom: 14px; }
.pj-p { font-size: clamp(13px, 1.25vw, 19px); line-height: 1.6; color: #e3ddd4; }
.pj .pj-story.solo { display: block; padding-top: clamp(36px, 4vw, 64px); padding-bottom: clamp(36px, 4vw, 64px); }
.pj-story.solo .pj-fiche { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding-bottom: clamp(28px, 3vw, 48px); }

/* 3. Les autres films et les photos */
.pj .pj-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--pad) clamp(56px, 7vw, 120px); }
.pj-media figure { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #080808; }
.pj-media figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.pj-media img, .pj-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-play { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 14px; padding: clamp(14px, 1.6vw, 26px); background: linear-gradient(transparent 55%, rgba(5, 5, 5, .8)); border: 0; color: var(--fg); font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-align: left; }
.clip-play i { flex: none; width: 46px; height: 46px; border: 1px solid var(--fg); border-radius: 50%; position: relative; transition: background .3s, border-color .3s; }
.clip-play i::after { content: ""; position: absolute; left: 19px; top: 15px; border-left: 12px solid var(--fg); border-top: 8px solid transparent; border-bottom: 8px solid transparent; transition: border-color .3s; }
.clip-play span { padding-bottom: 15px; }
.clip-play:hover i { background: var(--gold); border-color: var(--gold); }
.clip-play:hover i::after { border-left-color: #000; }
.clip.playing .clip-play { display: none; }

/* 4. Le projet suivant, en image */
.pj-next { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; height: clamp(300px, 46vw, 620px); padding: clamp(28px, 4vw, 64px) var(--pad); overflow: hidden; border-top: 1px solid var(--line); }
.pj-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.8); transition: filter .7s ease, transform 1.6s ease; }
.pj-next:hover img { filter: brightness(.75); transform: scale(1.03); }
.pj-next span { position: relative; }
.pj-next .d { font-size: clamp(28px, 5.2vw, 92px); line-height: 1; transition: color .3s; }
.pj-next:hover .d { color: var(--gold); }

@media (max-width: 820px) {
  .pj-hero { height: 82svh; }
  .pj-title h1 { font-size: 8.2vw; overflow-wrap: anywhere; }
  .pj-idea { font-size: clamp(15px, 4vw, 21px); }
  .pj-sound { position: static; margin: 0; }
  .pj-hero { display: flex; flex-direction: column; justify-content: flex-end; }
  .pj-title { position: relative; bottom: auto; padding-bottom: 18px; }
  .pj-hero .pj-sound { position: relative; align-self: flex-start; margin: 0 var(--pad) 84px; }
  .pj .pj-story { grid-template-columns: minmax(0, 1fr); }
  .pj-fiche, .pj-story.solo .pj-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj .pj-media { grid-template-columns: minmax(0, 1fr); }
  .pj-next { height: 70vw; }
}

/* Page projet sur téléphone : tout s'empile proprement, rien ne se chevauche, aucun mot coupé */
@media (max-width: 820px) {
  .pj-top { top: 78px; font-size: 10px; letter-spacing: .1em; }
  .pj-top span { display: none; }
  .pj-title { position: relative; left: auto; right: auto; bottom: auto; z-index: 2; padding: 0 var(--pad) 20px; }
  .pj-title .label { white-space: normal; }
  .pj-title h1 { font-size: 6.6vw; overflow-wrap: normal; }
  .pj-hero .pj-sound { position: relative; right: auto; bottom: auto; z-index: 2; align-self: flex-start; margin: 4px var(--pad) 28px; }
}
.work .cap .d { font-size: clamp(16px, 1.75vw, 30px); }

/* Page projet : « Ce qu'on a fait », métier par métier (repris de l'ancien site) */
.pj-touches { list-style: none; border-top: 1px solid var(--line); }
.pj-touches li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(12px, 1.05vw, 16px); line-height: 1.45; }
.pj-touches b { font-weight: 700; color: var(--fg); }
.pj-touches span { color: #bdb7af; }
@media (max-width: 820px) { .pj-touches li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ================= Parcours (25 nov.) ================= */
/* Passage d'une page à l'autre */
body { animation: pagein .45s ease both; transition: opacity .19s ease; }
body.leaving { opacity: 0; }
@keyframes pagein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* Lien d'évitement (clavier) */
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #000; padding: 12px 16px; font-size: 11px; letter-spacing: .12em; transition: top .2s; }
.skip:focus { top: 12px; }

/* « Parlons-en » : toujours visible dans l'en-tête */
.nav a.cta { opacity: 1; color: var(--gold); border: 1px solid var(--gold); padding: 10px 16px; transition: background .25s, color .25s; }
.nav a.cta:hover { background: var(--gold); color: #000; }

/* Accueil : invitation à défiler */
.hero-label { align-items: flex-end; }
.cue { animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px); opacity: .5; } }
@media (max-width: 820px) { .cue { display: none; } }

/* Réalisations : en-tête court, la grille arrive tout de suite, les filtres restent à portée */
.re-head { padding: clamp(120px, 11vw, 176px) var(--pad) clamp(20px, 2.4vw, 36px); }
.filters { position: sticky; top: 58px; z-index: 12; background: var(--bg); padding: 14px 0 12px; margin: 0 0 14px; border-bottom: 1px solid var(--line); gap: 6px 28px; }
.filters sup { font-size: 9px; color: #77726b; margin-left: 2px; }
.filters a.on sup { color: var(--gold); }
.re-note { padding: clamp(24px, 3vw, 48px) 0 clamp(20px, 2vw, 32px); }
.re-note .lead { margin-top: 14px; }
.re-note .btns { margin-top: 24px; }
@media (max-width: 820px) { .filters { top: 54px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; } .filters::-webkit-scrollbar { display: none; } }

/* Page projet : la suite naturelle après l'histoire */
.pj .pj-cta { padding: clamp(48px, 6vw, 100px) var(--pad); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.pj-cta .d { font-size: clamp(22px, 3.2vw, 54px); line-height: 1.02; }
.pj-cta .btns { margin-top: 0; }

/* Contact : six cases, puis cinq champs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips label { position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 12px 16px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chips span:hover { border-color: var(--fg); }
.chips input:checked + span { background: var(--gold); border-color: var(--gold); color: #000; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
form .btns { margin-top: 30px; }
form .btns .btn { margin-top: 0; }
.form-ref { margin: 0 0 6px; }
.form-err { margin-top: 16px; color: #ff9c8a; }
.form-ok { margin-top: 18px; }
@media (max-width: 820px) { form .two { grid-template-columns: minmax(0, 1fr); } .pj .pj-cta { align-items: flex-start; flex-direction: column; } }

/* =====================================================================================
   MOUVEMENT (sommet du 25 nov. avec le directeur artistique) — remplace tout ce qui précède.
   Une seule courbe, trois gestes, uniquement transform / opacity / clip-path. Plus aucun flou.
   ===================================================================================== */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --ease-out: cubic-bezier(.7, 0, .84, 0); }

/* Geste 3 — le fondu simple, pour tout ce qui n'est ni image ni grand titre */
.rv { opacity: 0; filter: none; transform: translateY(12px); transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* Geste 2 — les grands titres montent ligne par ligne */

/* Geste 1 — le calage : l'arête de lumière balaie l'image, les quatre poignées se posent puis s'éteignent */
.pins { position: absolute; z-index: 3; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease);
  --p: linear-gradient(var(--gold), var(--gold)) no-repeat;
  background: var(--p) 0 0 / 10px 1px, var(--p) 0 0 / 1px 10px, var(--p) 100% 0 / 10px 1px, var(--p) 100% 0 / 1px 10px,
              var(--p) 0 100% / 10px 1px, var(--p) 0 100% / 1px 10px, var(--p) 100% 100% / 10px 1px, var(--p) 100% 100% / 1px 10px; }
.work a .cap, .work a.rv .cap { opacity: 0; transition: opacity .6s var(--ease) calc(.5s + var(--d, 0ms)); }
.work a.in .cap { opacity: 1; }
/* l'ancienne grille de calage est retirée : une seconde et demie d'attente par image, et redondante */
.work a::before, .mani .tile::before { display: none !important; }
.work a:hover > img:first-child { transform: scale(1.02); }
.doors li { transition: flex .8s var(--ease); }

/* Changement de page : le volet */
body { animation: none; opacity: 1 !important; }
body::before { content: ""; position: fixed; z-index: 300; inset: 0 -3px; background: #050505; border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); box-shadow: 0 0 60px 10px rgba(255, 229, 188, .28); pointer-events: none; animation: volet-ouvre .65s var(--ease) both; }
body.leaving::before { animation: volet-ferme .45s var(--ease-out) both; }
@keyframes volet-ouvre { from { transform: translateX(0); } to { transform: translateX(101%); } }
@keyframes volet-ferme { from { transform: translateX(-101%); } to { transform: translateX(0); } }

/* ---------- Page projet ---------- */
/* 1 + 2. Le film plein écran, puis le cadrage au défilement */
.pj .pj-stage { height: 250svh; padding: 0; }
.pj-hero { position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; }
.pj-frame { position: absolute; inset: 0; transform: scale(var(--s, 1)); transform-origin: 50% 44%; will-change: transform; }
.pj-frame .pins { inset: -14px; opacity: var(--i, 0); }
.pj-hero::after { opacity: var(--t, 1); }
.pj-top, .pj-title { opacity: var(--t, 1); }
.pj-title { transform: translateY(calc((1 - var(--t, 1)) * -28px)); }
.pj-idea { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(26px, 6.5svh, 70px); margin: 0 auto; max-width: 30em; text-align: center; color: var(--gold); opacity: var(--i, 0); transform: translateY(calc((1 - var(--i, 0)) * 16px)); }
/* 3. La fiche reste accrochée pendant que le récit défile */
@media (min-width: 821px) { .pj-fiche { position: sticky; top: 110px; } .pj .pj-story { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
/* 4. Les médias : un pleine largeur, puis deux côte à côte */
.pj-media figure:nth-child(3n + 1) { grid-column: 1 / -1; }
.pj-media figure:last-child:nth-child(3n + 2) { grid-column: 1 / -1; }
/* 6. Le projet suivant : un écran entier */
.pj-next { height: 100svh; min-height: 480px; }
.pj-next .d { font-size: clamp(34px, 7vw, 124px); }

@media (max-width: 820px) {
  .pj .pj-stage { height: auto; }
  .pj-hero { position: relative; height: 82svh; }
  .pj-frame { transform: none; }
  .pj-frame .pins { display: none; }
  .pj-hero::after, .pj-top, .pj-title { opacity: 1; }
  .pj-title { transform: none; }
  .pj-idea { position: relative; left: auto; right: auto; bottom: auto; opacity: 1; transform: none; text-align: left; margin: 0; padding: 0 var(--pad) 18px; max-width: none; }
  .pj-media figure, .pj-media figure:nth-child(n) { grid-column: 1 / -1; }
  .pj-next { height: 78svh; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { transition: opacity .2s linear; transform: none; clip-path: none; opacity: 1; }
  body::before { display: none; animation: none; }
  .work a .cap { opacity: 1; }
  .pj .pj-stage { height: auto; } .pj-hero { position: relative; } .pj-idea { opacity: 1; transform: none; }
}

/* Le bouton du son passe en haut à droite, sous le compteur : il ne croise plus jamais un titre long */
@media (min-width: 821px) { .pj-sound { top: clamp(118px, 10.5vw, 158px); bottom: auto; } }

/* =====================================================================================
   MOUVEMENT, version « tout suit le défilement » (choisie par Mike le 25 nov.) — remplace la précédente.
   Plus rien ne se déclenche : ni balayage, ni poignées, ni volet. Les valeurs viennent du script (js/site.js).
   ===================================================================================== */
.rv, .rv.in { opacity: 1 !important; transform: none; transition: none; }
.pins, .pj-frame .pins { display: none !important; }
.work a .cap, .work a.rv .cap { opacity: 1 !important; transition: none; }
.work a > img:first-child, .mani .tile img, .pj-media figure > img, .pj-media figure > video, .pj-next > img {
  transform: scale(var(--z, 1)) !important; transition: filter .7s ease !important; will-change: transform; }
.work a, .doors li, main h2.d.l, .ft h2 { will-change: transform; }
.w { display: inline-block; }

/* Changement de page : un fondu très court, sans volet */
body::before { display: none !important; }
body { transition: opacity .17s ease; }
body.leaving { opacity: 0 !important; }

/* La grande ligne de l'accueil */

@media (prefers-reduced-motion: reduce) {
  .w { opacity: 1 !important; }
  .work a, .doors li, main h2.d.l, .ft h2 { transform: none !important; }
}

/* les images des grilles n'attendent plus un déclenchement pour être visibles */
.work a > img:first-child, .work a.rv > img:first-child, .mani .tile img, .mani .tile.rv img { opacity: 1 !important; }

/* ================= Pages métiers, occasions, villes, questions ================= */
.sp-head .lead { max-width: 44em; }
.sp-h { margin-bottom: clamp(22px, 2.6vw, 40px); }
.sp-moments li { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); padding: clamp(14px, 1.5vw, 22px) 0; }
.sp-moments b { font-size: clamp(13px, 1.25vw, 19px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: clamp(16px, 1.7vw, 26px) 44px clamp(16px, 1.7vw, 26px) 0; position: relative; font-weight: 700; font-size: clamp(13px, 1.25vw, 19px); line-height: 1.25; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.5em; color: var(--gold); transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 0 clamp(18px, 2vw, 28px); color: #cfc9c1; max-width: 62ch; font-size: clamp(12px, 1.05vw, 16px); line-height: 1.65; }

/* Le plan en bas de chaque page */
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: clamp(40px, 5vw, 80px) var(--pad); border-top: 1px solid var(--line); font-size: 12px; line-height: 2; }
.plan .label { margin-bottom: 10px; }
.plan a { display: block; color: #bdb7af; transition: color .25s; }
.plan a:hover { color: var(--gold); }
@media (max-width: 820px) { .plan { grid-template-columns: minmax(0, 1fr); } .sp-moments li { grid-template-columns: minmax(0, 1fr); } }

/* ================= Lecture (passe de resserrage) =================
   Les capitales restent la signature : titres, libellés, boutons, menu.
   Les textes qu'on lit vraiment passent en minuscules, un peu plus grands. */
p.lead, .pj-p, .item p, .steps p, .steps.acts3 p, .acts p, .faq details p, .pj-touches span, .doors .say, .re-note .lead, .plan a, .ft-grid a, .pj-fiche dd, .fiche p:not(.label), .sub {
  text-transform: none; letter-spacing: .005em; }
p.lead, .re-note .lead { font-size: clamp(15px, 1.3vw, 20px); line-height: 1.55; }
.pj-p { font-size: clamp(15px, 1.35vw, 21px); line-height: 1.55; }
.item p, .steps p, .steps.acts3 p, .acts p, .faq details p, .pj-touches span, .sub { font-size: clamp(14px, 1.08vw, 17px); line-height: 1.6; }
.doors .say { font-size: clamp(13px, 1.02vw, 16px); }
.plan a, .ft-grid a, .pj-fiche dd { font-size: clamp(13px, .98vw, 15px); }
form input, form textarea { font-size: 16px; }

/* Page Studio : le paragraphe ne colle plus au titre */
.manifesto > * + * { margin-top: clamp(22px, 2.4vw, 36px); }

.manifesto p.lead { margin-top: clamp(22px, 2.4vw, 36px); }
.proofs p { min-height: 4.2em; }

/* Légendes des vignettes : mêmes tailles pour les clients et pour le portfolio */
.work .cap { gap: 10px; }
.work .cap .d { font-size: clamp(18px, 1.95vw, 34px); line-height: 1.04; }
.work .meta { font-family: var(--display); font-weight: 600; font-size: clamp(10px, .82vw, 12px); letter-spacing: .06em; line-height: 1.55; color: #e6e0d6; max-width: none; text-wrap: balance; }
@media (max-width: 820px) { .work .cap .d { font-size: clamp(19px, 5.2vw, 28px); } .work .meta { font-size: clamp(10px, 2.8vw, 12px); } }
/* Téléphone : bouton WhatsApp plus petit, pour ne pas masquer les légendes */
@media (max-width: 820px) { .wa { right: 12px; bottom: 12px; padding: 14px 13px; font-size: 9.5px; letter-spacing: .1em; box-shadow: 0 0 24px rgba(255, 229, 188, .28); } }

/* Logo fourni sur fond noir : passé en gris clair et fondu dans la page */
.logos img.fond { filter: grayscale(1) contrast(2.2) brightness(1.3); mix-blend-mode: screen; }
/* Logo fourni sur fond blanc : inversé puis fondu dans la page */
.logos img.clair { filter: grayscale(1) invert(1) contrast(1.8) brightness(1.25); mix-blend-mode: screen; max-width: 78%; max-height: 62%; }
/* Logos sans cadre : posés sur le noir, sans grille visible */
.logos, .logos > div { border: 0; }

/* « Pourquoi Madgics » : quatre chiffres, quatre colonnes égales */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.nums > div { min-width: 0; border-top: 1px solid var(--fg); padding-top: clamp(16px, 1.6vw, 26px); display: grid; gap: clamp(10px, 1vw, 16px); align-content: start; }
.nums .n { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.3vw, 58px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.nums p { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(10px, .86vw, 13px); letter-spacing: .04em; line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
@media (max-width: 820px) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; } .nums .n { font-size: 7.2vw; } .nums p { font-size: 10.5px; } }

/* Corrections du 26 nov. (audit de l'accueil) */
/* Tablette : deux colonnes de vignettes et quatre de logos, au lieu d'une seule colonne très longue */
@media (min-width: 600px) and (max-width: 820px) {
  .work a, .work a:nth-child(n) { grid-column: span 6; height: 50vw; }
  .work .cap .d { font-size: 2.9vw; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Téléphone : trois colonnes de logos, en-tête sur fond plein, liens du pied faciles à toucher */
@media (max-width: 599px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos img { max-width: 70%; } }
@media (max-width: 820px) {
  .hd { background: rgba(5, 5, 5, .96); padding-top: 16px; padding-bottom: 16px; }
  .ft-grid a { padding: 7px 0; }
}
/* Boutons : le même survol partout, rempli en doré */
.btn:hover, .btn.full:hover { background: var(--gold); border-color: var(--gold); color: #000; box-shadow: 0 0 60px rgba(255, 229, 188, .35); }
.btn { transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
/* Bouton WhatsApp flottant : s'efface devant le pied de page */
.wa { transition: opacity .3s; }
body.at-ft .wa { opacity: 0; pointer-events: none; }
/* Pied de page unique : cinq colonnes */
.ft-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 820px) { .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ft-grid a[href^="tel"] { white-space: nowrap; }

/* Derniers points de l'audit */
/* Ouverture moins longue à défiler */
.film { height: 170vh; }
/* Menu ouvert : la page ne défile plus derrière ; bouton du menu assez grand pour le doigt */
body.menu { overflow: hidden; }
@media (max-width: 820px) { #burger { min-height: 44px; padding: 0 4px; } }
/* Délai de réponse, sous les boutons du pied de page */
.ft-note { margin-top: 18px; color: var(--gold); }

/* Citations de clients */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px) clamp(20px, 2.6vw, 44px); }
.quotes figure { border-top: 1px solid var(--line); padding-top: clamp(16px, 1.6vw, 24px); display: grid; gap: 16px; align-content: start; }
.quotes blockquote { font-family: var(--display); font-weight: 400; text-transform: none; font-size: clamp(15px, 1.35vw, 21px); line-height: 1.45; text-wrap: pretty; }
.quotes figcaption { color: var(--gold); }
@media (max-width: 1000px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* Page projet : le détail replié sous le texte court */
.pj-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 16px 22px; border: 1px solid var(--fg); transition: background .3s, color .3s, border-color .3s; }
.pj-more summary::-webkit-details-marker { display: none; }
.pj-more summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--gold); transition: color .3s; }
.pj-more[open] summary::after { content: "\2013"; }
.pj-more summary:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.pj-more summary:hover::after { color: #000; }
.pj-more .pj-in { display: grid; gap: clamp(22px, 2.4vw, 36px); margin-top: clamp(26px, 3vw, 44px); }
.pj-d { text-transform: none; letter-spacing: .005em; font-size: clamp(14px, 1.08vw, 17px); line-height: 1.6; color: #cfc9c1; max-width: 62ch; }

/* Téléphones étroits : un mot long du titre (« Scénographie, ») ne déborde plus de la page */
@media (max-width: 440px) { .sp-head h1.d.l { font-size: 7vw; } }
