/*
Theme Name: BANGIN VISUAL
Theme URI: https://banginvisual.fr
Author: BANGIN VISUAL
Description: Thème bloc sur mesure de BANGIN VISUAL, vidéaste externalisé à Bordeaux. Construit depuis la maquette HTML validée.
Version: 1.0.2
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: bangin
Tags: block-theme, full-site-editing, one-column
*/

/* BANGIN VISUAL — maquette d'accueil
   Structure et dispositifs repris de la référence (mur vidéo incliné, onglets en verre,
   carte à halo, bandeau de logos, CTA sur lueur bleue).
   Écarts validés par le client : fond blanc, dégradé « Solaire » (orange → rose → violet), typographie Lexend (géométrique, monoline,
   proche des lettres du logo) à la place de Clash Display + Satoshi. */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: rgba(10, 10, 10, .62);
  --ink-faint: rgba(10, 10, 10, .14);
  --surface: #f4f4f6;
  --violet: #5c43d2;
  --violet-hover: #4a33bd;
  --navy: #11245f;
  --grad: linear-gradient(90deg, #ff8a1f, #ff4d6d 40%, #e23ba8 72%, #8e3cff);
  --glass: linear-gradient(135deg, #ffffff, #f3f3f6);
  --glass-border: 1px solid rgba(10, 10, 10, .1);
  --glow: 0 10px 30px rgba(20, 20, 40, .08);
  --display: "Lexend", sans-serif;
  --text: "Lexend", sans-serif;
  --wrap: 1360px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; justify-content: center; }

.grad,
:is(.hero-title, .h-section, .h-center, .lead, .page-title) em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn > .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.1;
  transition: background .2s, transform .2s;
}
.btn > .wp-block-button__link:hover { background: var(--violet-hover); transform: translateY(-1px); }
.btn-sm > .wp-block-button__link { padding: 12px 16px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(10, 10, 10, .06);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand.wp-block-image img { width: 76px; height: 76px; object-fit: contain; filter: invert(1); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav .wp-block-navigation-item__content {
  font-family: var(--display); font-weight: 400; font-size: 14px;
  color: var(--ink-soft); transition: color .2s;
}
.nav .wp-block-navigation-item__content:hover { color: var(--ink); }

/* ---------- Titres ---------- */
h1, h2, .lead, .step-name, .step-num {
  font-family: var(--display); font-weight: 600;
}
.hero-title {
  position: relative; z-index: 3;
  margin: 0 auto; max-width: 1000px;
  font-size: 84px; line-height: 92px; letter-spacing: -.035em;
  text-align: center;
  /* Au défilement, le titre recule dans la profondeur et s'efface pour laisser place au mur. */
  opacity: calc(1 - var(--p) * 2.6);
  filter: blur(calc(var(--p) * 14px));
  transform: perspective(900px) translateY(calc(var(--p) * 160px)) translateZ(calc(var(--p) * -520px));
  transform-origin: 50% 60%;
  will-change: transform, opacity;
}
.h-section {
  margin: 0;
  font-size: 80px; line-height: 1; letter-spacing: -.035em;
}
.lead {
  margin-top: 28px; max-width: 1100px;
  font-size: 40px; line-height: 1.2; letter-spacing: -.02em;
  font-weight: 500;
}
.h-center {
  margin: 0; text-align: center;
  font-size: 60px; line-height: 1.1; letter-spacing: -.03em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  --p: 0;
  min-height: 1180px;
  padding-top: 150px;
  overflow: hidden;
}
.hero-wall {
  --h: 200px;
  --gap: 28px;
  position: absolute; left: 50%; top: 330px;
  width: 2600px; margin-left: -1300px;
  perspective: 1100px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 66%, transparent 98%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 66%, transparent 98%);
}
.wall-track {
  transform: rotateX(calc(38deg - var(--p) * 14deg)) translateY(calc(-60px - var(--p) * 260px));
  transform-origin: 50% 0;
  display: grid; gap: var(--gap);
}
.wall-row {
  display: flex; justify-content: center; align-items: center; gap: var(--gap);
  height: var(--h);
  transform: translateX(var(--x, 0px));
  will-change: transform;
}
.wall-row:nth-child(2) { --x: -140px; }
.wall-row:nth-child(4) { --x: 90px; }
.tile {
  position: relative; margin: 0; flex: none;
  height: var(--h); aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 50px rgba(20, 20, 40, .18);
}
/* Format vertical (réseaux sociaux) : même hauteur que la rangée, pour ne jamais
   empiéter sur les rangées voisines. */
.tile-v { aspect-ratio: 9 / 16; }
.tile.wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.tile iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; pointer-events: none;
  opacity: 0; transition: opacity .8s ease;
}
.tile.is-playing iframe { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 240px; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg));
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 140px 0; }

/* Avantages : la section reste à l'écran pendant qu'on fait défiler ses 3 sous-sections ;
   le téléphone pivote (vertical ↔ horizontal) à chaque changement. */
.offer { padding-bottom: 40px; overflow-x: clip; }
.phone-scroll { position: relative; height: 300vh; margin-top: 8px; }
.phone-sticky {
  position: sticky; top: 0;
  height: 100vh; padding-top: 100px;
  display: flex; align-items: center;
}
.phone-layout {
  width: 100%;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.phone-stage { position: relative; height: min(660px, calc(100vh - 140px)); display: grid; place-items: center; }
.phone-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 77, 109, .28), rgba(142, 60, 255, .16) 55%, transparent);
  filter: blur(30px);
}
.phone-rig {
  --s: .9;
  /* Centré en absolu : la boîte (avant réduction) est plus haute que la scène sur mobile. */
  position: absolute; left: 50%; top: 50%; width: 280px; height: 580px; margin: -290px 0 0 -140px;
  transform: scale(var(--s)) rotate(0deg);
  transition: transform 1s cubic-bezier(.65, 0, .35, 1);
}
.phone-rig.is-landscape { transform: scale(var(--s)) rotate(90deg); }
.phone {
  position: absolute; inset: 0; z-index: 1;
  padding: 11px; border-radius: 46px;
  background: #0d0d10;
  box-shadow: inset 0 0 0 2px #2c2c32, inset 0 0 0 5px #0d0d10, 0 40px 80px rgba(20, 20, 40, .35);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2c2c32;
}
.phone::before { left: -3px; top: 150px; height: 70px; }
.phone::after { right: -3px; top: 190px; height: 96px; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 36px; background: #000; }
.phone-screen::after {
  content: ""; position: absolute; z-index: 3; top: 12px; left: 50%;
  width: 86px; height: 25px; margin-left: -43px; border-radius: 13px; background: #000;
}
/* Écran intérieur : 258 × 558. Le contenu remplit l'écran sans déformation. */
.screen { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity .45s ease .35s; }
.screen.is-active { opacity: 1; }
.screen.wp-block-image img, .screen iframe { position: absolute; border: 0; pointer-events: none; }
.screen.wp-block-image img { object-fit: cover; }
.screen-v.wp-block-image img, .screen-v iframe { top: 0; left: -28px; width: 314px; height: 558px; }
/* Vidéo 16:9 recadrée à la verticale, centrée sur la personne qui parle face caméra. */
.screen-crop.wp-block-image img, .screen-crop iframe { left: -367px; width: 992px; max-width: none; }
/* Format horizontal : l'écran est contre-tourné pour rester à l'endroit quand le
   téléphone passe à l'horizontale. */
.screen-h { inset: auto; left: 50%; top: 50%; width: 558px; height: 258px; transform: translate(-50%, -50%) rotate(-90deg); }
.screen-h.wp-block-image img, .screen-h iframe { top: -28px; left: 0; width: 558px; height: 314px; }

.phone-steps { list-style: none; margin: 0 0 40px; padding: 0; border-left: 2px solid rgba(10, 10, 10, .08); }
.phone-step { position: relative; padding: 14px 0 14px 28px; }
.phone-step::before {
  content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #ff8a1f, #e23ba8, #8e3cff);
  transform: scaleY(0); transform-origin: top; transition: transform .5s ease;
}
.phone-step.is-active::before { transform: scaleY(1); }
.phone-step-label {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -.025em;
  color: rgba(10, 10, 10, .24); transition: color .3s;
}
.phone-step-label:hover, .phone-step.is-active .phone-step-label { color: var(--ink); }
.phone-step-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s ease, opacity .4s ease; }
.phone-step.is-active .phone-step-body { max-height: 260px; opacity: 1; }
.phone-step-title { margin-top: 12px; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.phone-step-text { margin-top: 8px; max-width: 460px; font-size: 16px; color: var(--ink-soft); }

/* Écrans peu hauts : on réduit le téléphone pour qu'il tienne sous l'en-tête. */
@media (max-height: 820px) { .phone-rig { --s: .76; } }
@media (max-height: 700px) { .phone-rig { --s: .64; } }

.media-card {
  position: relative; margin: 0;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(255, 77, 109, .22), 0 0 140px rgba(142, 60, 255, .16);
}
.media-card.wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0) 40%, rgba(9, 9, 9, .6));
}

/* Fonctionnement : 4 cartes photo verticales en quinconce, posées sur un grand halo
   chaud (les couleurs du dégradé Solaire). */
.process { overflow: hidden; padding-bottom: 220px; }
.page-hero::before {
  content: ""; pointer-events: none;
  position: absolute; z-index: 0;
  right: -180px; top: -60px; width: 900px; height: 700px;
  background:
    radial-gradient(closest-side, rgba(226, 59, 168, .32), rgba(142, 60, 255, .14) 55%, transparent),
    radial-gradient(closest-side at 30% 70%, rgba(255, 138, 31, .26), transparent);
  filter: blur(60px);
  transform: rotate(-24deg);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: rotate(-14deg) scale(1.08); opacity: .8; } }
.process::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 90% 22%, rgba(255, 106, 61, .78), transparent 72%),
    radial-gradient(34% 34% at 58% 68%, rgba(226, 59, 168, .6), transparent 72%),
    radial-gradient(38% 40% at 4% 66%, rgba(255, 77, 109, .72), transparent 72%);
  filter: blur(40px);
  animation: halo 12s ease-in-out infinite alternate;
  /* Le halo s'efface vers le blanc sur les quatre bords, en courbe douce (plusieurs
     paliers plutôt qu'un fondu linéaire) : aucune ligne de séparation visible. */
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.25) 7%, rgba(0,0,0,.7) 15%, #000 24%, #000 46%, rgba(0,0,0,.82) 56%, rgba(0,0,0,.55) 66%, rgba(0,0,0,.3) 76%, rgba(0,0,0,.12) 86%, rgba(0,0,0,.03) 94%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.25) 7%, rgba(0,0,0,.7) 15%, #000 24%, #000 46%, rgba(0,0,0,.82) 56%, rgba(0,0,0,.55) 66%, rgba(0,0,0,.3) 76%, rgba(0,0,0,.12) 86%, rgba(0,0,0,.03) 94%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
@keyframes halo { to { transform: translate3d(-2%, 2%, 0) scale(1.04); } }
.process .wrap { position: relative; z-index: 1; }
.process-title { margin-top: 0; font-size: 80px; line-height: 1; letter-spacing: -.035em; }
.process-lead { max-width: 620px; margin: 22px auto 0; text-align: center; font-size: 19px; color: var(--ink-soft); }
.steps {
  margin: 96px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.step {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4.4;
  border-radius: 24px;
  background: #141418; color: #fff;
  box-shadow: 0 30px 70px rgba(20, 20, 40, .22);
}
.step:nth-child(even) { transform: translateY(110px); }
/* Arrivée des cadres : fondu et montée, l'un après l'autre. `translate` est séparé de
   `transform`, qui porte déjà le décalage en quinconce. */
.steps.reveal .step {
  opacity: 0; translate: 0 70px;
  transition: opacity .9s ease, translate 1s cubic-bezier(.2, .7, .2, 1);
}
.steps.reveal .step:nth-child(2) { transition-delay: .12s; }
.steps.reveal .step:nth-child(3) { transition-delay: .24s; }
.steps.reveal .step:nth-child(4) { transition-delay: .36s; }
.steps.reveal.is-visible .step { opacity: 1; translate: 0 0; }
.step-img.wp-block-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.step:hover .step-img img { transform: scale(1.05); }
.step::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, .25) 0%, rgba(9, 9, 9, 0) 22%, rgba(9, 9, 9, 0) 40%, rgba(9, 9, 9, .55) 62%, rgba(9, 9, 9, .9) 100%);
}
.step-num {
  position: absolute; z-index: 1; left: 24px; top: 20px;
  font-size: 40px; line-height: 1; letter-spacing: -.03em;
}
.step-body { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.step-name { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.step-text { margin-top: 6px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .82); }

/* Clients : bandeau défilant */
.clients { padding-top: 60px; }
.logo-strip {
  margin: 56px auto 40px; max-width: 1180px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex; align-items: center; gap: 88px;
  width: max-content; padding: 38px 44px;
  background: var(--bg); /* même fond que la page : multiply s'y applique malgré l'animation */
  animation: marquee 64s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
/* Logos clients : même boîte pour tous, en niveaux de gris ; multiply efface les fonds
   blancs, et les logos blancs (ESPI, Maison Pradier) sont passés en noir. */
.logo.wp-block-image { flex: none; width: 160px; height: 56px; }
.logo.wp-block-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.6);
  mix-blend-mode: multiply;
  opacity: .72;
  transition: opacity .25s, filter .25s;
}
.logo-blanc.wp-block-image img { filter: brightness(0); opacity: .62; }
.logo-carre.wp-block-image { width: 110px; height: 64px; }
.logo-fonce.wp-block-image img { filter: grayscale(1) brightness(.75) contrast(2); }
.logo-strip:hover .logo img { opacity: .9; }

/* CTA final, sur fond blanc */
.cta { padding: 200px 0 180px; }
.h-cta { font-size: 80px; line-height: 1.02; max-width: 960px; margin: 0 auto 40px; letter-spacing: -.035em; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 90px 0 40px;
  color: #fff;
  background: var(--navy);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo.wp-block-image img { width: 64px; height: 64px; object-fit: contain; }
.footer-brand p { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.wp-block-social-links.socials { display: flex; gap: 10px; margin: 56px 0 0; padding: 0; font-size: 16px; }
.wp-block-social-links.socials .wp-social-link.wp-social-link {
  margin: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s;
}
.wp-block-social-links.socials .wp-social-link.wp-social-link:hover { background: rgba(255, 255, 255, .26); transform: none; }
.wp-block-social-links.socials .wp-social-link a { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; color: #fff; }
.wp-block-social-links.socials .wp-social-link svg { width: 16px; height: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-col a { color: rgba(255, 255, 255, .72); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-head { font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.footer-bottom { margin-top: 70px; font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .phone-layout { gap: 32px; }
  .phone-rig { --s: .72; }
  .phone-step-label { font-size: 28px; }
  .hero-title { font-size: 66px; line-height: 72px; }
  .h-section, .h-cta { font-size: 60px; }
  .lead { font-size: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .step:nth-child(even) { transform: translateY(70px); }
  .process-title { font-size: 60px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-inner { padding: 16px var(--gutter); }
  .brand.wp-block-image img { width: 58px; height: 58px; }
  .nav { gap: 16px; }
  .hero { min-height: 600px; padding-top: 120px; }
  .hero-title { font-size: 40px; line-height: 46px; }
  .hero-wall { --h: 110px; --gap: 12px; top: 230px; width: 1500px; margin-left: -750px; }
  .tile { border-radius: 10px; }
  .section { padding: 90px 0; }
  .h-section, .h-cta { font-size: 38px; }
  .h-center { font-size: 34px; }
  .lead { font-size: 22px; margin-top: 18px; }
  .phone-scroll { height: 270vh; }
  .phone-sticky { padding-top: 84px; align-items: flex-start; }
  .phone-layout { grid-template-columns: 1fr; gap: 0; }
  .phone-stage { height: 44vh; }
  .phone-stage::before { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .phone-rig { --s: .5; }
  .phone-steps { margin-bottom: 0; }
  .phone-step { padding: 8px 0 8px 18px; }
  .phone-step-label { font-size: 22px; }
  .phone-step-title { margin-top: 6px; font-size: 17px; }
  .phone-step-text { margin-top: 4px; font-size: 14px; line-height: 1.55; }
  .phone-copy .phone-cta { display: none; }
  .phone-step-label { padding: 6px 0; }
  /* Zones de clic d'au moins 40 px de haut pour le doigt. */
  .nav .wp-block-navigation-item__content { padding: 10px 2px; }
  .footer-col { gap: 2px; }
  .footer-col a { display: inline-block; padding: 8px 0; }
  .process { padding-bottom: 110px; }
  .process-title { font-size: 38px; }
  .process-lead { font-size: 16px; }
  .steps {
    display: flex; gap: 14px; margin: 44px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 100px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  /* Ombre plus courte : le carrousel coupe tout ce qui dépasse de sa boîte. */
  .step { flex: 0 0 74%; scroll-snap-align: center; box-shadow: 0 12px 26px rgba(20, 20, 40, .2); }
  .step:nth-child(even) { transform: translateY(44px); }
  .step-num { font-size: 30px; left: 18px; }
  .step-body { left: 18px; right: 18px; bottom: 18px; }
  .step-name { font-size: 20px; }
  .step-text { font-size: 14px; }
  .logo-track { gap: 56px; padding: 26px 28px; }
  .logo.wp-block-image { width: 120px; height: 42px; }
  .cta { padding: 140px 0 130px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .wp-block-social-links.socials { margin-top: 24px; }
}

/* ---------- Page Réalisations ---------- */
.nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--ink); }

.page-hero { position: relative; padding: 190px 0 130px; overflow: hidden; }
/* Fondu blanc en bas : le halo s'efface avant le bord de la section, sans ligne nette. */
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg));
  pointer-events: none;
}
.page-hero::before { top: 40px; right: -260px; opacity: .8; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-title {
  margin: 0; text-align: center;
  font-size: 96px; line-height: 1; letter-spacing: -.04em;
}
.page-lead {
  max-width: 760px; margin: 28px auto 0; text-align: center;
  font-size: 19px; color: var(--ink-soft);
}

/* Showreel : la carte lumineuse de l'accueil, en grand, avec un bouton lecture central */
.showreel { position: relative; display: block; max-width: 1080px; margin: 72px auto 0; cursor: pointer; }
.showreel .media-card.wp-block-image img { transition: transform .8s ease; }
.showreel:hover .media-card.wp-block-image img { transform: scale(1.03); }
.showreel::before {
  content: ""; pointer-events: none;
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 104px; height: 104px; margin: -52px 0 0 -52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s, background .3s;
}
.showreel::after, .work-media::after {
  content: ""; position: absolute; z-index: 3; left: 50%; top: 50%; margin-left: 4px; transform: translate(-50%, -50%); pointer-events: none;
  border-style: solid; border-color: transparent transparent transparent #fff;
  border-width: 14px 0 14px 22px;
}
.showreel:hover::before { transform: scale(1.08); background: var(--violet); border-color: var(--violet); }
.showreel-label {
  position: absolute; z-index: 2; left: 32px; bottom: 26px;
  color: #fff; font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 12px;
}
.showreel-label em { font-style: normal; font-weight: 400; font-size: 14px; color: rgba(255, 255, 255, .75); }

/* Filtres : les onglets de l'accueil en version pastille */
.works { padding-top: 10px; }
.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.filtre {
  padding: 12px 22px;
  border: var(--glass-border); border-radius: 999px;
  background: var(--glass); box-shadow: var(--glow);
  font-family: var(--display); font-weight: 500; font-size: 15px;
  color: rgba(10, 10, 10, .6); cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s, background .2s;
}
.filtre:hover { color: var(--ink); }
.filtre.is-active {
  color: #fff; background: var(--ink); border-color: var(--ink);
  box-shadow: 0 10px 26px rgba(10, 10, 10, .18);
}

/* Grille justifiée : chaque vidéo garde son format (--r = largeur / hauteur).
   Les cartes d'une même rangée ont la même hauteur et la rangée remplit toute la
   largeur : la croissance et la base de chaque carte sont proportionnelles à son
   format. --h est la hauteur visée d'une rangée : elle suit la largeur d'écran pour
   que deux horizontales et une verticale tiennent toujours sur une rangée. */
.works-grid {
  --h: min(270px, calc((100vw - 2 * var(--gutter) - 60px) / 4.6));
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 0 24px;
}
/* Onglet « Tout » : les rangées sont composées à l'avance (deux horizontales et une
   verticale) et séparées par un saut ; les autres filtres se rangent librement. */
.work-saut { flex-basis: 100%; height: 0; }
.works-grid:not([data-filtre="tout"]) .work-saut { display: none; }
/* La dernière rangée n'est pas étirée : cet élément vide absorbe la place restante. */
.works-grid::after { content: ""; flex: 1000000 1 0; }
.work { --r: 1.7778; display: block; flex: var(--r) 1 calc(var(--r) * var(--h)); min-width: 0; margin-bottom: 48px; }
.work-v { --r: .5625; }
.work-c { --r: 1; }
.work.is-hidden { display: none; }
.work-media {
  position: relative; margin: 0;
  aspect-ratio: var(--r); overflow: hidden;
  border-radius: 20px; background: var(--surface);
  box-shadow: 0 18px 40px rgba(20, 20, 40, .12);
  transition: box-shadow .3s, transform .3s;
}
.work-img.wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work:hover .work-media { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(255, 77, 109, .2), 0 10px 30px rgba(142, 60, 255, .14); }
.work:hover .work-img img { transform: scale(1.04); }
.work-media::before {
  content: ""; z-index: 2; pointer-events: none;
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--violet);
  opacity: 0; transform: scale(.8);
  transition: opacity .25s, transform .25s;
}
.work-media::after { border-width: 10px 0 10px 16px; margin-left: 3px; opacity: 0; transition: opacity .25s; }
.work:hover .work-media::before { opacity: 1; transform: scale(1); }
.work:hover .work-media::after { opacity: 1; }
.work-duree {
  position: absolute; z-index: 1; right: 12px; bottom: 12px;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(10, 10, 10, .65); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.5;
}
.work-titre { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.work-type { margin-top: 2px; font-size: 14px; color: var(--ink-soft); }
/* Les cartes verticales sont étroites : textes plus petits. */
.work-v .work-titre { font-size: 15px; }
.work-v .work-type { font-size: 12px; }
.work-v .work-media::before { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
/* Filtre « Réseaux sociaux » : tout en vertical, en plus grand. */
.works-grid[data-filtre="social"] { --h: 470px; }
.works-grid[data-filtre="social"] .work-c { --r: .5625; }

/* Lecteur plein écran */
.lecteur {
  width: min(1200px, 92vw); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.lecteur::backdrop { background: rgba(10, 10, 10, .82); backdrop-filter: blur(6px); }
.lecteur-cadre {
  position: relative; aspect-ratio: 16 / 9; margin: 0 auto;
  border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.lecteur[data-format="v"] .lecteur-cadre { aspect-ratio: 9 / 16; height: min(86vh, 900px); width: auto; }
.lecteur[data-format="c"] .lecteur-cadre { aspect-ratio: 1; height: min(86vh, 800px); width: auto; }
.lecteur-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur-fermer {
  position: absolute; right: -8px; top: -52px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.lecteur-fermer:hover { background: rgba(255, 255, 255, .28); }

@media (max-width: 1100px) {
  .works-grid[data-filtre="social"] { --h: 400px; }
  .page-title { font-size: 72px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 130px 0 110px; }
  .page-title { font-size: 46px; }
  .page-lead { font-size: 16px; margin-top: 18px; }
  .showreel { margin-top: 40px; }
  .showreel::before { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .showreel-label { left: 18px; bottom: 14px; font-size: 20px; }
  .works { padding-top: 0; }
  .filtres { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .filtre { flex: none; padding: 10px 18px; font-size: 14px; }
  /* Sur téléphone : deux colonnes ; les verticales se rangent par deux, les
     horizontales et les carrées prennent toute la largeur. */
  .works-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 28px 14px; margin-top: 32px; }
  .works-grid::after, .work-saut { display: none; }
  .work { margin-bottom: 0; }
  .work-h, .work-c { grid-column: span 2; }
  .works-grid[data-filtre="social"] .work-c { grid-column: span 1; }
  .work-v .work-titre { margin-top: 10px; }
  .work-media::before { opacity: 1; transform: scale(.85); }
  .work-media::after { opacity: 1; }
  .lecteur-fermer { right: 0; }
}

/* Petits téléphones : le logo mène déjà à l'accueil, on libère la place du lien. */

@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .process::before, .logo-track { animation: none !important; }
  .phone-rig, .screen { transition: none !important; }
  .steps.reveal .step { opacity: 1; translate: 0 0; transition: none; }
}

/* Très petits téléphones : le menu se resserre pour ne pas toucher le logo. */
@media (max-width: 370px) {
  .nav { gap: 12px; }
  .nav .btn-sm > .wp-block-button__link { padding: 11px 13px; }
}

/* Mentions légales */
.page-hero-court { padding-bottom: 40px; }
.page-hero-court .wrap { max-width: 780px; }
.page-hero-court .page-title { text-align: left; }
.legal { padding-top: 0; }
.legal-wrap { max-width: 780px; }
.legal h2 { margin: 56px 0 14px; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 20px; }
.legal a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal-maj { margin-top: 56px; font-size: 13px !important; }
/* Repère des informations à fournir : à retirer une fois la page complétée. */
.legal em { font-style: normal; background: #fff2a8; color: var(--ink); padding: 1px 4px; border-radius: 4px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 760px) {
  .page-hero-court { padding-bottom: 24px; }
  .legal h2 { margin-top: 40px; font-size: 22px; }
}

/* ==========================================================================
   Adaptations WordPress. Le CSS des blocs est imprimé après cette feuille :
   les surcharges sont donc plus spécifiques, jamais simplement plus tardives.
   ========================================================================== */

/* Espacement automatique : coupé dans theme.json (blockGap 0), filet ici à
   spécificité nulle pour ne jamais écraser les marges des composants. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
figure.wp-block-image > a { display: block; }

/* Boutons : le style de la maquette est sur le lien, le conteneur reste neutre. */
.wp-block-buttons { gap: 0; }
.wp-block-button.btn { display: inline-flex; }

/* En-tête : menu natif, et place pour la barre d'administration. */
.nav .wp-block-navigation, .nav .wp-block-navigation__container { gap: 28px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Tuiles et écrans : l'image porte le lien Vimeo, le script y ajoute le lecteur. */
figure.wp-block-image.tile > a { width: 100%; height: 100%; pointer-events: none; }
figure.wp-block-image.screen > a { pointer-events: none; }

/* Cartes photo des étapes et des réalisations : l'image remplit le cadre. */
.step-img, .work-img { position: absolute; inset: 0; }
.step:nth-child(2) .step-img img { object-position: 65% 50%; }
.step:nth-child(4) .step-img img { object-position: 50% 30%; }
.work, .showreel { cursor: pointer; }
.phone-step-label, .filtre { user-select: none; }
.filtre { line-height: normal; }
/* Libellés des avantages : en ligne comme les boutons de la maquette (même hauteur de ligne). */
.phone-step-label { display: inline-block; }

@media (max-width: 760px) {
  .nav .wp-block-navigation, .nav .wp-block-navigation__container { gap: 16px; }
}
@media (max-width: 370px) {
  .nav .wp-block-navigation, .nav .wp-block-navigation__container { gap: 12px; }
}
