/* =====================================================================
   Hamed Events & Communication — site web (v2)
   Thème 04 « Diagonale » · gris clair / anthracite / bleu électrique
   Mise en page calée sur 1920 × 1080 (16:9) : grille 1600 px, gouttière 160 px,
   premier écran = un écran 16:9, chaque section tient dans 1080 px. Diagonales à 21° reprises du H du logo.
   ===================================================================== */
:root {
  --bg: #F1F2F4; --surface: #FFFFFF; --surface2: #E7E9ED; --text: #13151B; --muted: #5E6474; --line: #DCDFE5;
  --accent: #1A4FD6; --inv: #13151B; --on-inv: #FFFFFF; --ink: #13151B;
  --blue3: #5BAAFF; --blue1: #A6D3FF;
  --grad: linear-gradient(90deg, #1A4FD6, #5BAAFF);
  --grad-d: linear-gradient(to top right, #1A4FD6, #5BAAFF);
  --grad-deep: linear-gradient(90deg, #0F3BB8, #3F8CFF);
  --grad-text: linear-gradient(90deg, #1A4FD6, #5BAAFF);
  --nav-bg: rgba(241, 242, 244, .9);
  --shadow: 13 20 46;
  --font: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --gut: clamp(16px, 8.333vw, 160px);
  --sec: clamp(80px, 8.33vw, 160px);
  --navh: clamp(60px, 4.58vw, 88px);
  --gap: clamp(16px, 1.67vw, 32px);
  --r: clamp(18px, 1.25vw, 24px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-mode="sombre"] {
  --bg: #1E2127; --surface: #2A2E36; --surface2: #33373F; --text: #FFFFFF; --muted: #A2A8B5; --line: #3A3F4A;
  --accent: #5BAAFF; --inv: #FFFFFF; --on-inv: #13151B; --ink: #16181D;
  --nav-bg: rgba(30, 33, 39, .88); --shadow: 0 0 0;
  --grad-text: linear-gradient(90deg, #3F8CFF, #A6D3FF);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .45s ease, color .45s ease; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue3); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(1600px + 2 * var(--gut)); margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.narrow { max-width: calc(860px + 2 * var(--gut)); }

/* ---- Typographie ---------------------------------------------------- */
.h1 { font-size: clamp(35px, 3.27vw, 63px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.h1-xl { font-size: clamp(39px, 3.74vw, 71px); }
.h2 { font-size: clamp(28px, 2.57vw, 49px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.h3 { font-size: clamp(22px, 1.68vw, 32px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.lead { font-size: clamp(16px, 0.97vw, 19px); line-height: 1.65; color: var(--muted); max-width: 44ch; margin-top: clamp(18px, 1.6vw, 30px); }
.side-p { font-size: clamp(15px, .94vw, 18px); line-height: 1.65; color: var(--muted); max-width: 38ch; }
.on-dark { color: #FFFFFF; }
.on-dark-p { color: rgba(255, 255, 255, .78); font-size: clamp(15px, .94vw, 18px); line-height: 1.65; max-width: 54ch; margin-top: 24px; }
.on-dark-p.lg { font-size: clamp(16px, 0.97vw, 19px); margin-top: 0; }
/* Libellés utiles : Instrument Serif italique, tailles variées */
.lbl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.15; color: var(--accent); }
.lbl-xl { font-size: clamp(28px, 1.78vw, 34px); }
.lbl-l { font-size: clamp(22px, 1.33vw, 26px); }
.lbl-m { font-size: clamp(18px, 1.06vw, 20px); }
.lbl-s { font-size: clamp(17px, 0.97vw, 19px); }
.lbl.muted { color: var(--muted); }
.lbl.on-dark { color: var(--blue3); }
.lbl.on-grad { color: rgba(255, 255, 255, .85); }

/* ---- Boutons et liens ---------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px; border-radius: 12px; border: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; isolation: isolate; overflow: hidden; transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
.btn .arr { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
.btn:hover .arr, .tlink:hover .arr { transform: translateX(6px); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 12px; }
.btn-lg .arr { width: 17px; height: 17px; }
.btn-main { background: var(--grad); color: #FFFFFF; }
.btn-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-deep); opacity: 0; transition: opacity .3s var(--ease); }
.btn-main:hover::before { opacity: 1; }
.btn-main:hover { box-shadow: 0 12px 28px rgba(26, 79, 214, .35); }
.btn-line { height: 54px; padding: 0 26px; font-size: 12px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-line:hover { background: var(--text); color: var(--bg); }
.btn-white { height: 58px; padding: 0 28px; font-size: 13px; border-radius: 15px; background: #FFFFFF; color: #13151B; box-shadow: 0 14px 30px rgba(13, 20, 46, .2); }
.btn-white .arr { width: 18px; height: 18px; color: #1A4FD6; }
.btn-white:hover { background: #13151B; color: #FFFFFF; }
.btn-white:hover .arr { color: #5BAAFF; }
.btn-wa { height: 46px; padding: 0 22px 0 16px; border-radius: 25px; background: #1FA855; color: #FFFFFF; font-size: 14px; letter-spacing: .01em; text-transform: none; font-weight: 700; }
.btn-wa .ico { width: 22px; height: 22px; }
.btn-wa:hover { background: #168C46; }
.tlink { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(14px, .83vw, 16px); font-weight: 800; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.tlink .arr { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tlink.on-dark { color: var(--blue3); }
.tlink.muted { color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Navigation ----------------------------------------------------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background-color .45s; }
.nav.is-scrolled { box-shadow: 0 8px 30px rgba(var(--shadow) / .08); }
.nav-in { display: flex; align-items: center; gap: clamp(16px, 2vw, 40px); height: var(--navh); }
.nav-logo { flex: none; color: var(--text); }
.logo-full { width: clamp(112px, 7.1vw, 136px); height: auto; }
.logo-short { display: none; width: 100px; height: auto; }
.nav-links { flex: 1; display: flex; justify-content: center; }
.nav-links ul { display: flex; gap: clamp(18px, 2.1vw, 40px); }
.nlink { position: relative; display: block; padding: 8px 0; font-size: clamp(13px, .78vw, 15px); font-weight: 600; white-space: nowrap; transition: color .25s; }
.nlink::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nlink:hover { color: var(--accent); }
.nlink:hover::after, .nlink.is-active::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: clamp(14px, 1.25vw, 24px); margin-left: auto; }
.mode { position: relative; width: 60px; height: 30px; flex: none; border-radius: 15px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; padding: 0; }
.mode-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .35s var(--ease); }
.mode svg { position: absolute; top: 7px; width: 14px; height: 14px; transition: color .35s; }
.mode-sun { left: 7px; color: var(--bg); }
.mode-moon { right: 7px; color: var(--muted); }
:root[data-mode="sombre"] .mode-knob { transform: translateX(30px); }
:root[data-mode="sombre"] .mode-sun { color: var(--muted); }
:root[data-mode="sombre"] .mode-moon { color: var(--bg); }
.btn-nav { flex: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: var(--bg); padding: 12px max(var(--gut), env(safe-area-inset-left, 0px)) 28px; max-height: calc(100dvh - var(--navh)); overflow-y: auto; }
.mnav li a { display: block; padding: 12px 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.mnav li a.is-active { color: var(--accent); }
.mnav-tel { margin-top: 22px; display: grid; gap: 4px; }
.mnav-tel a { font-size: 22px; font-weight: 800; }

/* ---- Accueil : premier écran 16:9 ---------------------------------- */
.hero-screen { display: flex; flex-direction: column; }
.hero { position: relative; overflow: clip; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(32px, 2.3vw, 44px); padding-bottom: clamp(96px, 6.25vw, 120px); }
.hero-in { position: relative; z-index: 2; }
/* Fond photo du premier écran : trois photos en fondu enchaîné lent, voile clair à gauche pour la lisibilité */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; --veil: 241, 242, 244; }
.hero-bg span { position: absolute; inset: 0; background-position: center bottom; background-size: cover; background-repeat: no-repeat; opacity: 0; animation: heroBg 24s linear infinite; will-change: opacity, transform; }
.hero-bg span:nth-child(2) { animation-delay: 8s; }
.hero-bg span:nth-child(3) { animation-delay: 16s; }
.hero-bg span:first-child { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--veil), .97) 0%, rgba(var(--veil), .93) 34%, rgba(var(--veil), .6) 58%, rgba(var(--veil), .18) 100%); }
:root[data-mode="sombre"] .hero-bg { --veil: 30, 33, 39; }
@keyframes heroBg { 0% { opacity: 0; transform: scale(1.08); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-bg span { animation: none; } .hero-bg span:not(:first-child) { display: none; } }
@media (max-width: 900px) { .hero-bg::after { background: linear-gradient(180deg, rgba(var(--veil), .95) 0%, rgba(var(--veil), .9) 55%, rgba(var(--veil), .55) 100%); } }
.hero-ring { position: absolute; top: clamp(8px, 2.6vw, 50px); right: 1.5vw; width: 19.8vw; height: auto; color: var(--accent); opacity: .07; z-index: 0; }
.hero-diag { position: absolute; right: 0; bottom: -3.6vw; width: 67.7%; height: auto; z-index: 1; overflow: visible; }
.hero-title { font-size: clamp(40px, 4.9vw, 94px); line-height: .97; letter-spacing: -.045em; font-weight: 800; margin-left: -.04em; }
.hero-title span { display: block; }
.l2 { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33%); gap: clamp(24px, 3vw, 60px); align-items: start; margin-top: clamp(22px, 2.3vw, 44px); }
.hero-p { font-size: clamp(16px, 1.02vw, 20px); line-height: 1.65; color: var(--muted); max-width: 31em; }
.hero-left .btns { margin-top: clamp(28px, 2.9vw, 56px); }
.hero-media { position: relative; margin-top: clamp(0px, 2.3vw, 44px); }

/* Ouverture animée (accueil) */
@keyframes up { from { opacity: 0; translate: 0 var(--dy, 40px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slabIn { from { opacity: 0; transform: translate(-320px, 140px); } }
.intro .l1 { animation: up .8s var(--ease) .2s both; --dy: 70px; }
.intro .l2 { animation: up .8s var(--ease) .28s both; --dy: 120px; }
.intro .hero-diag-g { animation: slabIn .9s var(--ease) 1s both; }
.intro .hero-ring { animation: fade .8s ease-out 1s both; }
.intro .hero-p { animation: up .8s var(--ease) 1s both; --dy: 30px; }
.intro .btns { animation: up .6s var(--ease) 1.25s both; --dy: 24px; }
.intro .hero-media .vid { animation: up .8s var(--ease) 1.45s both; --dy: 48px; }

/* Bandes défilantes */
.tapes { position: relative; z-index: 3; flex: none; height: clamp(120px, 12vw, 230px); margin-top: -4.2vw; overflow: hidden; pointer-events: none; }
.tape { position: absolute; left: -15%; width: 130%; height: clamp(46px, 3.75vw, 72px); display: flex; align-items: center; overflow: hidden; }
.tape-inv { top: 15%; rotate: 2.2deg; background: var(--inv); color: var(--on-inv); }
.tape-grad { top: 45%; rotate: -2.4deg; background: var(--grad); color: #FFFFFF; box-shadow: 0 16px 40px rgba(26, 79, 214, .25); }
.tape-track { display: flex; align-items: center; white-space: nowrap; animation: tape 36s linear infinite; will-change: transform; }
.tape-track.rev { animation-direction: reverse; }
.tape-track span { font-size: clamp(15px, 1.16vw, 22px); font-weight: 800; margin-right: clamp(16px, 1.46vw, 28px); }
.tape-track .sep { width: clamp(12px, .94vw, 18px); height: auto; margin-right: clamp(16px, 1.46vw, 28px); flex: none; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---- Sections ------------------------------------------------------ */
.sec { position: relative; padding-block: var(--sec); }
.sec-tight { padding-block: 0; }
.sec-first { padding-top: clamp(40px, 3.6vw, 70px); }
.sec-flush { padding-top: 0; padding-bottom: 0; }
.sec-dark { background: var(--ink); color: #FFFFFF; overflow: hidden; }
.sec-surface { background: var(--surface); }
.shead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 80px; margin-bottom: clamp(40px, 4.7vw, 90px); }
.shead-side { display: grid; gap: 28px; justify-items: start; width: min(560px, 100%); }
.shead-btn .shead-side { width: auto; }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.88vw, 36px); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.25vw, 24px); }
.card { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 1.77vw, 34px); min-width: 0; transition: background-color .45s; }
.card h3 { font-size: clamp(18px, 1.07vw, 20px); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
.card p { font-size: clamp(14px, .78vw, 15px); line-height: 1.6; color: var(--muted); margin-top: 12px; }

.itile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); flex: none; transition: background .3s, color .3s; }
.itile .ico { width: 23px; height: 23px; }
.itile.lg { width: 56px; height: 56px; border-radius: 16px; }
.itile.lg .ico { width: 28px; height: 28px; }
.itile.on-dark { background: rgba(255, 255, 255, .08); color: var(--blue3); }
.itile.round { width: 60px; height: 60px; border-radius: 50%; }
.itile.round .ico { width: 28px; height: 28px; }

.ncard { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); padding: clamp(24px, 1.77vw, 34px); min-width: 0; }
.ncard h3 { font-size: clamp(19px, 1.12vw, 21px); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
.ncard.sm h3 { font-size: clamp(17px, 0.97vw, 19px); }
.ncard.lg h3 { font-size: clamp(19px, 1.1vw, 21px); }
.ncard p { font-size: clamp(14px, .78vw, 15px); line-height: 1.6; color: var(--muted); margin-top: 12px; }
.ncard.light { background: #FFFFFF; color: #13151B; }
.ncard.light p { color: #5E6474; }

.bullets { display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 14px; align-items: start; font-size: clamp(14px, .83vw, 16px); line-height: 1.55; }
.bullets .bul { width: 11px; height: 13px; margin-top: 5px; color: var(--accent); }

/* Cartes des pôles */
.pole { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: clamp(22px, 1.56vw, 30px); padding: clamp(28px, 2.3vw, 44px); overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s; }
.pole::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-d); opacity: 0; transition: opacity .35s var(--ease); }
.pole-diag { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--accent); opacity: .07; transition: color .3s, opacity .3s; }
.pole-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.pole h3 { font-size: clamp(24px, 1.55vw, 30px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; max-width: 13em; }
.pole-lead { margin: 14px 0 28px; font-size: clamp(15px, .89vw, 17px); font-weight: 500; color: var(--muted); transition: color .3s; }
.pole .bullets { margin-bottom: 36px; }
.pole-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; transition: border-color .3s; }
.pole-format { color: var(--muted); transition: color .3s; }
.pole-more { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--accent); transition: color .3s; }
.pole-more .arr { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pole:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(var(--shadow) / .25); color: #FFFFFF; }
.pole:hover::before { opacity: 1; }
.pole:hover .pole-diag { color: #FFFFFF; opacity: .12; }
.pole:hover .pole-lead, .pole:hover .pole-format, .pole:hover .pole-more, .pole:hover .bul { color: #FFFFFF; }
.pole:hover .pole-foot { border-color: rgba(255, 255, 255, .3); }
.pole:hover .itile { background: rgba(255, 255, 255, .18); color: #FFFFFF; }
.pole:hover .pole-more .arr { transform: rotate(-45deg); }

/* Bloc production */
.prodband { position: relative; overflow: hidden; background: var(--ink); color: #FFFFFF; border-radius: clamp(22px, 1.56vw, 30px); padding: clamp(32px, 3.1vw, 60px) clamp(28px, 3.1vw, 60px); display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 60px; align-items: center; }
.prodband-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.prodband-copy { position: relative; display: grid; gap: 18px; justify-items: start; }
.prodband-copy p { color: rgba(255, 255, 255, .72); font-size: clamp(14px, .83vw, 16px); line-height: 1.6; max-width: 30em; }
.prodband-list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.prodband-list li { display: grid; gap: 18px; justify-items: start; font-size: clamp(14px, .83vw, 16px); font-weight: 800; line-height: 1.25; }

/* Méthode : 6 étapes qui s'allument tour à tour */
.method { position: relative; --d: clamp(48px, 2.92vw, 56px); --rise: clamp(10px, 1.6vw, 30px); }
.method-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ml-base { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.ml-prog { stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.method ol { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(14px, 1.46vw, 28px); }
.mstep { padding-top: calc((5 - var(--i)) * var(--rise)); min-width: 0; }
.mdot { position: relative; z-index: 1; display: grid; place-items: center; width: var(--d); height: var(--d); border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); font-size: clamp(14px, .89vw, 17px); font-weight: 800; color: var(--muted); transition: color .5s, box-shadow .5s, transform .5s var(--ease); }
.mdot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--grad-d); opacity: 0; z-index: -1; transition: opacity .5s; }
.mstep.is-on .mdot, .mstep.is-done .mdot { color: #FFFFFF; box-shadow: none; }
.mstep.is-on .mdot::before, .mstep.is-done .mdot::before { opacity: 1; }
.mstep.is-on .mdot { transform: scale(1.08); box-shadow: 0 10px 30px rgba(26, 79, 214, .4); }
.mstep h3 { margin-top: 22px; font-size: clamp(18px, 1.12vw, 21px); letter-spacing: -.03em; font-weight: 800; line-height: 1.15; transition: color .5s; }
.mstep.is-on h3 { color: var(--accent); }
.mstep p { margin-top: 10px; font-size: clamp(13px, .73vw, 14px); line-height: 1.6; color: var(--muted); max-width: 16em; }

/* Référence MauriSup */
.ms-ring { position: absolute; top: -140px; right: -160px; width: 520px; height: 520px; pointer-events: none; }
.ms-grid { position: relative; display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 880fr); gap: clamp(32px, 4.2vw, 80px); align-items: center; }
.ms-copy { position: relative; display: grid; justify-items: start; }
.ms-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; margin-top: 34px; }
.tlink.ext .arr { rotate: -45deg; }
.tlink.ext:hover .arr { transform: translate(3px, -3px); }
.ms-media { display: grid; gap: var(--gap); }
.ms-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.ms-photos .ph { aspect-ratio: 438 / 230; }
.ms-stats { padding-top: 0; }
.ms-compact .ms-copy .h2 { max-width: 20em; }
.stats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.ms-compact .stats { margin-top: clamp(48px, 4.6vw, 88px); }
.stat { padding: clamp(28px, 2.3vw, 44px) 24px 0 32px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { font-size: clamp(37px, 3.45vw, 66px); line-height: 1.1; letter-spacing: -.045em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-grad dt { background: linear-gradient(90deg, #5BAAFF, #A6D3FF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat dd { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 0.97vw, 19px); color: rgba(255, 255, 255, .7); max-width: 18em; }

/* Pour qui */
.cib { display: flex; flex-direction: column; padding: clamp(26px, 1.88vw, 36px); }
.cib h3 { margin-top: 28px; font-size: clamp(17px, 1.06vw, 20px); line-height: 1.18; }
.cib .cib-need { flex: 1; }
.cib-lab { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.cib .cib-ans { margin-top: 8px; font-size: clamp(14px, .83vw, 16px); font-weight: 600; color: var(--text); }

/* Bandeau d'appel à l'action */
.sec-cta { padding-block: clamp(24px, 2.6vw, 50px) clamp(48px, 4.2vw, 80px); }
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(26px, 1.88vw, 36px); background: var(--grad-d); color: #FFFFFF; padding: clamp(40px, 4.7vw, 90px) clamp(24px, 5.2vw, 100px); }
.cta-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta-title { font-size: clamp(33px, 3.19vw, 61px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; margin-left: -.04em; }
.cta-sub { margin-top: 16px; font-size: clamp(15px, 0.97vw, 19px); font-weight: 500; opacity: .85; max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 44px; margin-top: clamp(32px, 3.1vw, 60px); }
.cta-tel { display: grid; gap: 2px; }
.cta-tel a { font-size: clamp(18px, 1.06vw, 20px); font-weight: 800; letter-spacing: -.01em; }

/* Pied de page */
.foot { background: var(--ink); color: #FFFFFF; padding-block: clamp(64px, 5.7vw, 110px) 32px; }
.foot-slogan { font-size: clamp(39px, 4.08vw, 78px); line-height: 1; letter-spacing: -.045em; font-weight: 800; background: linear-gradient(90deg, #5BAAFF, #FFFFFF 70%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; margin-left: -.04em; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr); gap: 48px; margin-top: clamp(56px, 5.2vw, 100px); }
.foot-logo { display: inline-block; color: #FFFFFF; }
.foot-logo .logo { width: clamp(150px, 9.9vw, 190px); height: auto; }
.foot-brand p { margin-top: 22px; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .6); max-width: 26em; }
.fcol h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.fcol li { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .68); padding: 4px 0; }
.fcol a { transition: color .2s; }
.fcol a:hover { color: #FFFFFF; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, color .25s; }
.socials svg { width: 20px; height: 20px; }
.socials a:hover { background: var(--accent); color: #FFFFFF; box-shadow: none; }
.socials.on-dark { margin-top: 18px; }
.socials.on-dark a { background: rgba(255, 255, 255, .08); box-shadow: none; color: #FFFFFF; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(48px, 4.2vw, 80px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .5); }
.foot-legal p:last-child { display: flex; gap: 28px; }
.foot-legal a:hover { color: #FFFFFF; }

/* ---- Pages intérieures ------------------------------------------- */
.phero { position: relative; overflow: clip; padding-top: clamp(48px, 4.7vw, 90px); padding-bottom: clamp(72px, 7.3vw, 140px); }
.slab { position: absolute; right: 0; bottom: 0; width: 53.1%; height: auto; z-index: 0; }
.phero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30%); gap: clamp(24px, 3.1vw, 60px); align-items: center; }
.phero-vis { position: relative; min-width: 0; }
.ph-hero { aspect-ratio: 530 / 430; }
.keycard { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #FFFFFF; border-radius: clamp(22px, 1.56vw, 30px); padding: clamp(28px, 2.1vw, 40px); display: grid; justify-items: start; gap: 16px; }
.keycard-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.keycard .itile { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 8px; }
.keycard .itile .ico { width: 28px; height: 28px; }
.keycard-big { font-size: clamp(20px, 1.24vw, 24px); line-height: 1.22; letter-spacing: -.03em; font-weight: 800; }
.keycard-small { font-size: clamp(14px, .78vw, 15px); line-height: 1.6; font-weight: 500; color: rgba(255, 255, 255, .7); }
.six { position: relative; aspect-ratio: 530 / 430; border-radius: clamp(22px, 1.56vw, 30px); background: var(--ink); overflow: hidden; container-type: inline-size; }
.six b { position: absolute; left: 6%; top: -26%; font-size: 90cqi; line-height: 1.2; letter-spacing: -.06em; font-weight: 800; background: var(--grad-d); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.six span { position: absolute; left: 62%; top: 62%; font-family: var(--serif); font-style: italic; font-size: 11cqi; color: #FFFFFF; }

.vm { border-radius: clamp(22px, 1.56vw, 30px); background: var(--surface); padding: clamp(28px, 2.5vw, 48px); min-height: clamp(220px, 17.7vw, 340px); }
.vm-t { margin-top: 22px; font-size: clamp(17px, 1.1vw, 21px); line-height: 1.42; letter-spacing: -.02em; font-weight: 800; }
.vm-dark { background: var(--ink); color: #FFFFFF; }
.pos h3 { font-size: clamp(19px, 1.07vw, 20px); margin-bottom: 24px; }
.pos .bullets li { font-size: clamp(14px, .83vw, 16px); }
.pos-1 .bul { color: var(--muted); }
.pos-2 { background: var(--inv); color: var(--on-inv); }
.pos-2 .bul { color: var(--blue3); }
:root[data-mode="sombre"] .pos-2 .bul { color: #1A4FD6; }
.origin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px); gap: 40px 80px; align-items: center; }
.origin-grid > div { display: grid; gap: 30px; justify-items: start; }
.team .avatar { display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--surface2); margin-bottom: 26px; }
.deliv .card { display: grid; align-content: start; gap: 26px; }
.deliv .doc { width: 34px; height: 42px; color: var(--accent); }
.deliv h3 { font-size: clamp(16px, .99vw, 19px); }
.time h3 { font-size: clamp(26px, 1.6vw, 31px); letter-spacing: -.04em; }
.time p { font-size: clamp(15px, .83vw, 16px); margin-top: 14px; }
.time-on { background: var(--grad-d); color: #FFFFFF; }
.time-on p { color: #FFFFFF; }
.disc { position: relative; transition: background-color .3s var(--ease), color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.disc h3 { margin-top: 26px; }
.disc-arr { position: absolute; right: 26px; bottom: 26px; width: 20px; height: 20px; color: var(--blue3); opacity: 0; rotate: -45deg; translate: -10px 0; transition: opacity .3s, translate .3s var(--ease); }
.disc:hover { background: var(--inv); color: var(--on-inv); transform: translateY(-10px); box-shadow: 0 18px 40px rgba(var(--shadow) / .22); }
.disc:hover p { color: var(--on-inv); opacity: .8; }
.disc:hover .itile { background: var(--grad-d); color: #FFFFFF; }
.disc:hover .disc-arr { opacity: 1; translate: 0 0; }
.reel-grid { display: grid; grid-template-columns: minmax(0, 1040fr) minmax(0, 480fr); gap: clamp(24px, 4.2vw, 80px); align-items: start; }
.principles li { padding: 28px 0 44px; border-top: 1px solid var(--line); }
.principles li:first-child { border-top: 3px solid transparent; border-image: var(--grad) 1; }
.principles h3 { font-size: clamp(19px, 1.07vw, 20px); font-weight: 800; letter-spacing: -.02em; }
.principles p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.formats { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 6.25vw, 120px); align-items: center; }
.formats-copy .side-p { margin-top: 26px; }
.formats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: end; gap: clamp(14px, 1.46vw, 28px); align-items: start; }
.formats-row .vid { margin-top: clamp(30px, 3.6vw, 70px); }
.formats-row .vid.up { margin-top: 0; }

/* Notre approche */
.stairs { display: grid; gap: clamp(10px, .73vw, 14px); }
.stair { display: grid; grid-template-columns: clamp(90px, 8.3vw, 160px) minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 28px; margin-left: calc(var(--i) * clamp(0px, 1.875vw, 36px)); background: var(--surface); border-radius: var(--r); padding: clamp(16px, 1.04vw, 20px) clamp(24px, 2.1vw, 40px); }
.stair-n { font-size: clamp(48px, 3.57vw, 68px); line-height: 1; letter-spacing: -.06em; font-weight: 800; background: var(--grad-d); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .04em; }
.stair-t h3 { font-size: clamp(20px, 1.33vw, 26px); letter-spacing: -.04em; font-weight: 800; line-height: 1.1; }
.stair-t p { margin-top: 8px; font-size: clamp(14px, .83vw, 16px); color: var(--muted); max-width: 46em; }
.stair-give { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 0.97vw, 19px); line-height: 1.25; color: var(--text); }
.stair-give span { color: var(--accent); }
.note { background: var(--ink); color: #FFFFFF; border-radius: var(--r); padding: clamp(28px, 2.7vw, 52px) clamp(24px, 2.9vw, 56px); display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px 60px; align-items: center; }
.note-t { font-size: clamp(17px, 1.15vw, 22px); line-height: 1.4; letter-spacing: -.02em; font-weight: 800; max-width: 44em; }

/* Références */
.ref-grid { display: grid; grid-template-columns: minmax(0, 680fr) minmax(0, 880fr); gap: clamp(32px, 4.2vw, 80px); align-items: center; }
.roles { margin-top: clamp(30px, 2.9vw, 56px); gap: 18px; }
.res-grid { display: grid; grid-template-columns: minmax(0, 740fr) minmax(0, 700fr); gap: clamp(32px, 6.25vw, 120px); align-items: start; }
.editions { display: grid; gap: var(--gap); }
.edition { background: var(--surface); border-radius: var(--r); padding: clamp(26px, 2.1vw, 40px); }
.edition-inv { background: var(--inv); color: var(--on-inv); }
.edition h3 { font-size: clamp(19px, 1.15vw, 22px); letter-spacing: -.03em; font-weight: 800; }
.edition-meta { margin-top: 6px; color: inherit; opacity: .7; }
.edition dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(22px, 2.1vw, 40px); }
.edition dt { font-size: clamp(29px, 2.04vw, 39px); line-height: 1.05; letter-spacing: -.055em; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.edition-inv dt { background: linear-gradient(90deg, #5BAAFF, #A6D3FF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
:root[data-mode="sombre"] .edition-inv dt { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.edition dd { margin-top: 8px; font-size: 14px; font-weight: 500; opacity: .7; }
.bars figcaption { font-size: clamp(18px, 0.97vw, 19px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 26px; }
.bar { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.bar-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 600; }
.bar-h b { font-size: clamp(18px, 0.97vw, 19px); font-weight: 800; color: var(--accent); }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; }
.bar-fill { display: block; height: 20px; width: var(--w); border-radius: 6px; flex: none; }
.b25 { background: var(--line); min-width: 8px; }
.b26 { background: var(--grad); }
.bar-v { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bar-v.strong { color: var(--text); }
.gallery { margin-top: clamp(40px, 4.2vw, 80px); }
.gallery .ph { aspect-ratio: 520 / 340; }
.next { border: 2px dashed var(--line); border-radius: var(--r); padding: clamp(28px, 3.6vw, 70px) clamp(24px, 3.1vw, 60px); }
.next-t { font-size: clamp(17px, 1.15vw, 22px); line-height: 1.35; letter-spacing: -.02em; font-weight: 800; }
.next p:last-child { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Contact */
.contact { padding-top: clamp(48px, 4.7vw, 90px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: clamp(32px, 6.25vw, 120px); align-items: start; }
.contact-info .lead { max-width: 32em; }
.cinfo { display: grid; gap: 24px; margin-top: clamp(32px, 3.1vw, 60px); }
.cinfo li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 22px; align-items: center; }
.cinfo-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.cinfo-ico .ico { width: 24px; height: 24px; }
.cinfo-ico .cut { fill: var(--surface); }
.cinfo-ico .cut-stroke { stroke: var(--surface); }
.cinfo-v { display: block; margin-top: 2px; font-size: clamp(17px, 0.97vw, 19px); font-weight: 800; overflow-wrap: anywhere; }
.cact { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: 40px; }
.map { position: relative; display: block; margin-top: 40px; border-radius: var(--r); background: var(--surface); overflow: hidden; aspect-ratio: 680 / 180; max-width: 640px; }
.map svg { width: 100%; height: 100%; }
.map-streets { fill: var(--line); }
.map-col { min-width: 0; }
.map-col .map { margin-top: 0; max-width: none; }
.map-live { aspect-ratio: 640 / 560; background: var(--surface2); clip-path: inset(0 round var(--r)); }
.map-live svg { position: absolute; inset: 0; }
.map-live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.map-live:hover img { transform: scale(1.04); }
.map-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-note { position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: 12px; background: var(--inv); color: var(--on-inv); font-size: 14px; font-weight: 700; }
.map-pin { position: absolute; left: 50%; top: 50%; width: clamp(34px, 2.3vw, 44px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--grad-d); box-shadow: 0 8px 20px rgba(26, 79, 214, .4); isolation: isolate; }
.map-pin::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: #FFFFFF; }
.map-pin::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgba(47, 116, 245, .35); animation: pinPulse 2.4s ease-out infinite; }
@keyframes pinPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pin::before { animation: none; } }
:root[data-mode="sombre"] .map-live img { filter: invert(.9) hue-rotate(180deg) brightness(.9); }
.map-link { margin-top: 18px; }
.form-card { background: var(--surface); border-radius: clamp(22px, 1.56vw, 30px); padding: clamp(28px, 2.7vw, 52px); }
.cform { display: grid; gap: 20px; margin-top: 28px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 16px; height: 50px; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; min-height: 150px; padding: 16px 18px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 50px; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 24px) 24px, calc(100% - 18px) 24px; background-size: 6px 6px; background-repeat: no-repeat; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field [aria-invalid="true"] { border-color: #D93A3A; }
.form-err { color: #D93A3A; font-size: 14px; font-weight: 600; }
.cform .btn { justify-self: start; margin-top: 8px; }
.sent { display: grid; gap: 16px; justify-items: start; margin-top: 26px; }
.sent h3 { font-size: clamp(19px, 1.15vw, 22px); font-weight: 800; letter-spacing: -.02em; }
.sent p { color: var(--muted); max-width: 34em; }
.sent-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 6px; }
.sent .btn-line { height: 50px; font-size: 12px; padding: 0 22px; }

/* Mentions légales */
.legal .h1 { margin-bottom: clamp(32px, 3.1vw, 60px); }
.legal .h3 { font-size: clamp(19px, 1.15vw, 22px); margin: 44px 0 14px; }
.legal p { font-size: 16px; color: var(--muted); max-width: 62ch; }
.kv { display: grid; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; color: var(--muted); }
.kv dd { font-weight: 600; }

/* ---- Lecteurs vidéo et photos (visuels de remplacement) ---------- */
.vid { position: relative; display: block; width: 100%; max-width: 100%; border-radius: var(--r); overflow: hidden; background: #0B1020; color: #FFFFFF; border: 0; padding: 0; text-align: left; container-type: inline-size; isolation: isolate; }
button.vid { cursor: pointer; }
.vid .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-zoom { transform-box: view-box; transform-origin: 50% 50%; animation: zoom 9s linear infinite alternate; }
@keyframes zoom { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.spark { animation: twinkle 3s ease-in-out infinite; }
.spark.s1, .spark.s4 { animation-delay: -1s; } .spark.s2, .spark.s5 { animation-delay: -2s; }
@keyframes twinkle { 50% { opacity: .1; } }
.beam { animation: beam 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.beam.b1 { animation-delay: -1.5s; } .beam.b2 { animation-delay: -3s; } .beam.b3 { animation-delay: -4.5s; }
@keyframes beam { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.vid-veil { position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(11, 16, 32, 0), rgba(11, 16, 32, .6)); }
.vid-play { position: absolute; left: 50%; top: 50%; width: clamp(54px, 16cqi, 112px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: #FFFFFF; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: scale .35s var(--ease); }
.vid-play .play { width: 36%; height: auto; margin-left: 8%; }
.vid-play .play path { fill: url(#g-play); stroke: url(#g-play); }
button.vid:hover .vid-play { scale: 1.08; }
.vid-reel .vid-play { width: 28cqi; background: rgba(255, 255, 255, .22); box-shadow: none; }
.vid-reel .vid-play .play path { fill: #FFFFFF; stroke: #FFFFFF; }
.vid-track { position: absolute; left: clamp(14px, 5cqi, 32px); right: clamp(14px, 5cqi, 32px); bottom: clamp(14px, 5cqi, 32px); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.vid-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 2%; border-radius: 2px; background: var(--grad); animation: prog 18s linear infinite; }
@keyframes prog { to { width: 100%; } }
.ph { position: relative; overflow: hidden; border-radius: var(--r); background: #13151B; aspect-ratio: 4 / 3; isolation: isolate; }
.ph .art { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Diaporamas et vignettes : fondu enchaîné et léger zoom lent */
.vid.is-real .vid-prog { animation: none; width: 0; transition: width .3s linear; }
.vid-hero.is-real { background: #EEF0F4; }
.vid-hero.is-real::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; border: 2px solid #C9CED8; pointer-events: none; }
:root[data-mode="sombre"] .vid-hero.is-real::after { border-color: rgba(255, 255, 255, .22); }
/* Formats courts : l'écran + le bouton du son accroché sous l'écran */
.formats-row .reel { position: relative; display: block; width: 100%; margin: clamp(30px, 3.6vw, 70px) 0 0; padding: 0 0 clamp(18px, 1.4vw, 26px); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.formats-row .reel.up { margin-top: 0; }
.formats-row .reel .vid { margin-top: 0; }
.vid-sound { position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 2; width: clamp(34px, 1.2vw + 22px, 48px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--inv); color: var(--on-inv); border: 3px solid var(--bg); box-shadow: 0 8px 20px rgba(var(--shadow), .18); transition: background .3s ease, color .3s ease, scale .35s var(--ease); }
.vid-sound svg { width: 52%; height: auto; fill: currentColor; }
.vid-sound .snd-on, .reel.is-sound .vid-sound .snd-off { display: none; }
.reel.is-sound .vid-sound .snd-on { display: block; }
.reel.is-sound .vid-sound { background: var(--grad); color: #FFFFFF; }
.reel:hover .vid-sound { scale: 1.08; }
.reel .vid-play { display: none; z-index: 2; pointer-events: none; width: 26cqi; background: rgba(11, 16, 32, .55); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reel .vid-play .play path { fill: #FFFFFF; stroke: #FFFFFF; }
.reel.is-blocked:not(.is-sound) .vid-play, .reel.is-loading .vid-play { display: grid; }
.reel.is-loading .vid-play { animation: vidWait 1s ease-in-out infinite alternate; }
@keyframes vidWait { to { opacity: .45; } }
.vid-frames.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 4; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #FFFFFF; animation: vidSpin .8s linear infinite; }
@keyframes vidSpin { to { transform: rotate(360deg); } }
.reel:focus-visible { outline: none; }
.reel:focus-visible .vid { outline: 3px solid #2F74F5; outline-offset: 3px; }
.slides img, .vid-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1.4s ease, transform 0s linear 1.4s; }
.slides img.is-on, .vid-frames img.is-on { opacity: 1; transform: scale(1.07); transition: opacity 1.4s ease, transform 9s linear; }
.vid-frames .vid-veil { inset: 50% 0 0; }
.vid-hit { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: transparent; cursor: pointer; }
.vid-hit:hover .vid-play { scale: 1.08; }
.vid-frames.is-playing img, .vid-frames.is-playing .vid-veil { display: none; }
.vid-frames video { z-index: 3; background: #000; }
.ms-gallery .ph { aspect-ratio: 16 / 9; }

/* Showreel en plein écran */
.sr { width: min(1280px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; color: #FFFFFF; overflow: visible; }
.sr::backdrop { background: rgba(11, 13, 18, .94); }
.sr-close { position: absolute; right: 0; top: -66px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
.sr-close:hover { background: rgba(255, 255, 255, .26); }
.sr[open] { animation: srIn .35s var(--ease); }
@keyframes srIn { from { opacity: 0; translate: 0 16px; } }

/* Révélation au défilement (sans JavaScript, uniquement si le navigateur sait le faire) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec .shead, .sec .card, .sec .ncard, .pole, .prodband, .stat, .stair, .edition, .ms-media, .ref-media, .gallery .ph, .reel-grid .vid, .formats-row .vid, .cta, .note, .next, .method .mstep {
      animation: rv linear forwards; animation-timeline: view(); animation-range: entry 0% entry 30%;
    }
    .bar-fill { animation: grow linear forwards; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes rv { from { opacity: 0; translate: 0 48px; } }
@keyframes grow { from { width: 0; } }
.page.enter { animation: ptRise .7s cubic-bezier(.2, .7, .2, 1); }
/* Transition entre les pages : fondu doux vers le fond de la page, la barre de navigation reste en place */
.pt { position: fixed; inset: 0; z-index: 45; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .26s ease, visibility 0s linear .26s; }
.pt.is-in, .pt-cover .pt { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .26s ease, visibility 0s; }
.pt-cover .pt { transition: none; animation: ptSafe .5s ease 2.5s forwards; }
.pt.is-out { transition: opacity .55s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .55s; }
@keyframes ptSafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.pt-rise main { animation: ptRise .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes ptRise { from { transform: translateY(16px); } }
@keyframes pageIn { from { opacity: 0; } }

/* ---- Écran 16:9 : le premier écran remplit exactement la fenêtre ---- */
@media (min-width: 1100px) {
  .hero-screen { min-height: calc(56.25vw - var(--navh) - 1px); }
}

/* ---- Adaptation aux écrans ---------------------------------------- */
@media (max-width: 1366px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .g5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g5 > * { grid-column: span 2; }
  .g5 > :nth-child(4), .g5 > :nth-child(5) { grid-column: span 3; }
  .prodband { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-grid, .ref-grid, .res-grid, .reel-grid, .formats, .contact-grid, .origin-grid { grid-template-columns: minmax(0, 1fr); }
  .principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .formats-row { justify-content: start; }
  .phero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
  .stair { grid-template-columns: clamp(80px, 9vw, 120px) minmax(0, 1fr); }
  .stair-give { grid-column: 2; }
  .note { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 > *, .g5 > :nth-child(4) { grid-column: auto; }
  .g5 > :nth-child(5) { grid-column: 1 / -1; }
  .shead { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-media { width: min(100%, 560px); margin: 70px 0 0 auto; }
  .hero-ring { width: 40vw; }
  .phero-grid { grid-template-columns: minmax(0, 1fr); }
  .phero-vis { max-width: 560px; }
  .slab { width: 90%; }
  .method ol { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mstep { padding-top: 0; display: grid; grid-template-columns: var(--d) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .mdot { grid-row: span 2; }
  .mstep h3 { margin-top: 12px; }
  .mstep p { margin-top: 4px; max-width: none; }
  .formats-row .vid { margin-top: 30px; }
  .formats-row .reel { margin-top: 30px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .tapes { margin-top: -40px; }
}
@media (max-width: 640px) {
  .btn-nav { display: none; }
  .g5, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g5 > :nth-child(5) { grid-column: auto; }
  .prodband-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; }
  .stat:first-child { border-top: 0; }
  .ms-photos { grid-template-columns: minmax(0, 1fr); }
  .edition dl { grid-template-columns: minmax(0, 1fr); }
  .stair { grid-template-columns: minmax(0, 1fr); margin-left: 0; gap: 12px; }
  .stair-give { grid-column: 1; }
  .formats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .formats-row .vid { margin-top: 20px; }
  .formats-row .reel { margin-top: 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero-media { margin-top: 60px; }
}
@media (max-width: 420px) {
  .logo-full { display: none; }
  .logo-short { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Téléphones : zones de toucher confortables et formats courts en carrousel ---- */
@media (max-width: 900px), (pointer: coarse) {
  .fcol li { padding: 0; }
  .fcol li a, .foot-legal a { display: inline-block; padding-block: 11px; }
  .tlink { padding-block: 12px; }
  .cinfo-v a { display: inline-block; padding-block: 10px; }
  .mode::after { content: ""; position: absolute; inset: -9px -4px; }
}
@media (max-width: 640px) {
  .formats-row { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * max(var(--gut), env(safe-area-inset-left, 0px))); padding: 6px max(var(--gut), env(safe-area-inset-left, 0px)) 8px; scrollbar-width: none; }
  .formats-row::-webkit-scrollbar { display: none; }
  .formats-row .reel, .formats-row .reel.up { flex: 0 0 66%; margin-top: 0; scroll-snap-align: center; }
}
@media (max-width: 900px), (pointer: coarse) { .cta-tel a { display: inline-block; padding-block: 8px; } }
