/* =====================================================================
   WB Web — site public (s'appuie sur base.css)
   Noir pur, textes écrits comme un article (Open Sans + titres Playfair Display),
   photos passées à la télé cathodique, animations pilotées par le défilement.
   ===================================================================== */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    src: url("/assets/fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
    --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --caption-font: Arial, Helvetica, sans-serif;
    --yellow: #f2d64b;
    --bg: #000;
    --bg-raised: #0a0a0a;
    --surface: #111;
    --line: #1c1c1c;
    --line-strong: #2e2e2e;
    --text: #e6e6e6;
    --muted: #a3a3a3;
    --subtle: #6b6b6b;
    --header: 64px;
    --gutter: 28px;
    --bar: 0px;
    /* Bruit de télévision, généré par le navigateur (aucun fichier à charger) */
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { font-size: 17px; line-height: 1.7; background: var(--bg); }

h1, h2, h3 { letter-spacing: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }
.icon { width: 18px; height: 18px; }

/* Petite légende jaune, comme un sous-titre de film */
.caption { margin: 0; font-family: var(--caption-font); font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--yellow); }
/* Chapeau d'article : gros texte à empattements */
.lede { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 3.1vw, 2.65rem); line-height: 1.2; color: var(--white); }
/* Petit trait gris sous le chapeau */
.rule { display: block; width: min(290px, 55%); height: 4px; margin: 34px 0 30px; background: #3a3a3a; transform-origin: left center; }
.strong { font-weight: 700; color: var(--white); }

/* Boutons */
.btn { height: 50px; padding: 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.btn-small { height: 38px; padding: 0 14px; font-size: 12px; }
.btn-primary:hover { background: #d9d9d9; border-color: #d9d9d9; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding-bottom: 5px;
    border-bottom: 1px solid currentColor; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white);
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled, .site-header.menu-open {
    background: rgba(0, 0, 0, .88); border-bottom-color: var(--line);
    backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.header-inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta, .main-nav .nav-login { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; margin-right: 10px; transition: color .2s; }
.header-login:hover { color: var(--white); }
.nav-toggle { display: none; position: relative; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span { top: 19px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Animations au défilement (valeurs pilotées par site.js) ----------
   Sans JavaScript : tout est affiché tel quel. Avec : tout part de 0 et le défilement fait le reste.
   Mouvements réduits (réglage du téléphone ou de l'ordinateur) : rien ne bouge, les photos changent d'un coup. */
[data-fx] { --k: 1; --j: 0; --l: 1; --m: 0; --z: 1; --d: 1; --t: 1; --r: 1; --b: 1; --f: 1; --o: 0; }
.js [data-fx] { --k: 0; --l: 0; --z: 0; --d: 0; --t: 0; --r: 0; --b: 0; --f: 0; }
.js.calm [data-fx]:not([data-swap]) { --k: 1; --j: 0; --l: 1; --m: 0; --z: 1; --d: 1; --t: 1; --r: 1; --b: 1; --f: 1; }

/* Texte qui sort du flou en montant */
.rise[data-fx] { opacity: var(--k); filter: blur(calc((1 - var(--k)) * 10px)); transform: translate3d(0, calc((1 - var(--k)) * 48px), 0); }
.rule[data-fx] { transform: scaleX(var(--k)); }
.fx-rest.rise { filter: none; transform: none; }

/* ---------- Écran cathodique : lignes, grille de couleurs, bruit animé ---------- */
.crt { position: relative; margin: 0; overflow: hidden; background: #000; }
.crt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crt::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, .3) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(255, 40, 40, .045) 0, rgba(255, 40, 40, .045) 1px, rgba(40, 255, 90, .03) 1px, rgba(40, 255, 90, .03) 2px, rgba(60, 60, 255, .045) 2px, rgba(60, 60, 255, .045) 3px),
        radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(0, 0, 0, .45) 100%);
}
.crt::after {
    content: ""; position: absolute; inset: -40%; z-index: 2; pointer-events: none;
    background-image: var(--noise); background-size: 180px; opacity: .12; mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .crt::after { animation: static .7s steps(6) infinite; }
}
@keyframes static {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-8%, 5%); }
    40% { transform: translate(6%, -7%); }
    60% { transform: translate(-4%, 9%); }
    80% { transform: translate(9%, 3%); }
    100% { transform: translate(-6%, -4%); }
}

/* Télé qui s'allume (--l : la ligne s'étire, --k : l'image s'ouvre) et s'éteint (--j : retour à la ligne, --m : le point) */
.tv { position: relative; }
.tv-screen {
    position: absolute; inset: 0;
    clip-path: inset(calc((1 - var(--k) + var(--j)) * (50% - 1px)) 0);
    transform: scaleX(calc(var(--l) * (1 - var(--m) * .985)));
    filter: brightness(calc(1 + (1 - var(--k)) * 2.6 + var(--j) * 2.4)) saturate(calc(.15 + var(--k) * .85)) blur(calc((1 - var(--k)) * 5px + var(--j) * 2px));
    will-change: clip-path, transform, filter;
}
.tv-screen img { transform: scale(calc(1.2 - var(--z) * .2)); }
.tv-beam {
    position: absolute; left: 0; right: 0; top: 50%; z-index: 4; height: 2px; margin-top: -1px; pointer-events: none;
    background: #fff; box-shadow: 0 0 12px 3px rgba(255, 255, 255, .75), 0 0 46px 12px rgba(190, 210, 255, .35);
    transform: scaleX(calc(var(--l) * (1 - var(--m) * .985)));
    opacity: calc(max(0, 1 - var(--k) * 1.8) + var(--j) * 1.6 - var(--m) * var(--m) * 2.6);
}
/* Variante : l'image est écrasée en une ligne puis s'étire, comme un vieux poste */
.tv-squeeze .tv-screen { clip-path: none; transform: scaleX(var(--l)) scaleY(max(.004, var(--k))); }

/* ---------- Haut de page : que du texte ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header) + 48px) 0 120px; overflow: hidden; }
.hero-inner {
    opacity: calc(1 - var(--j) * 1.15);
    filter: blur(calc(var(--j) * 12px));
    transform: translate3d(0, calc(var(--j) * -14vh), 0) scale(calc(1 - var(--j) * .08));
    transform-origin: 30% 40%;
}
.fx-rest.hero-inner { filter: none; }
.hero-title { font-size: clamp(3.1rem, 9.2vw, 9.2rem); line-height: .9; }
.hero-title .line { display: block; overflow: hidden; padding: .02em 0 .06em; margin: -.02em 0 -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(1) { transform: translate3d(calc(var(--j) * -12vw), 0, 0); }
.hero-title .line:nth-child(3) { transform: translate3d(calc(var(--j) * 12vw), 0, 0); }
.hero-rule { margin: 40px 0 28px; }
.hero-lead { max-width: 520px; font-size: 1.15rem; line-height: 1.6; color: #d6d6d6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 14px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 15px; height: 15px; color: var(--white); }
.scroll-cue {
    position: absolute; left: 50%; bottom: 26px; margin: 0 0 0 -40px; width: 80px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--subtle);
    opacity: calc(1 - var(--j));
}
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--white), transparent); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
    .hero-title .line > span { animation: line-in 1.3s cubic-bezier(.16, 1, .3, 1) both; }
    .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
    .hero-title .line:nth-child(3) > span { animation-delay: .24s; }
    .hero-rule { animation: rule-in 1.1s .6s cubic-bezier(.16, 1, .3, 1) both; }
    .hero-lead, .hero-actions, .hero-trust { animation: fade-up 1.1s .75s cubic-bezier(.16, 1, .3, 1) both; }
    .hero-actions { animation-delay: .85s; }
    .hero-trust { animation-delay: .95s; }
    .scroll-cue { animation: fade-in 1s 1.4s both; }
    .scroll-cue::after { animation: cue 2.4s 1.4s cubic-bezier(.65, 0, .35, 1) infinite; }
}
@keyframes line-in { from { transform: translate3d(0, 108%, 0); filter: blur(10px); } to { transform: none; filter: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px); } }
@keyframes rule-in { from { transform: scaleX(0); } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections écrites comme un article ---------- */
.section { position: relative; padding: 150px 0; }
.article { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article > .caption { margin-bottom: 22px; }
.article > p:not(.caption) + p { margin-top: 18px; }

.services { list-style: none; margin: 34px 0 0; padding: 0; }
.services li { padding: 17px 0; border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3, .services p { display: inline; }
.services h3 { font-size: 1rem; font-weight: 700; line-height: inherit; color: var(--white); }
.services p { color: var(--muted); }
/* Pour les curieux : la partie technique, repliée */
.tech { margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--white); }
.tech summary::-webkit-details-marker { display: none; }
.tech summary:hover { color: #d9d9d9; }
.tech summary i { position: relative; flex-shrink: 0; width: 14px; height: 14px; }
.tech summary i::before, .tech summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--yellow); transition: transform .3s var(--ease); }
.tech summary i::after { transform: rotate(90deg); }
.tech[open] summary i::after { transform: rotate(0); }
.tech-body { padding: 0 0 24px; color: var(--muted); }
.tech-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li { padding: 6px 12px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--white); }
.audiences { margin-top: 34px; color: var(--muted); font-size: 15px; }
.audiences .caption { display: inline; margin-right: 6px; font-size: 14px; }

/* ---------- Chapitres : un grand écran, le titre passe dessus ---------- */
.chapter { position: relative; height: 250vh; }
.chapter-anchor { position: absolute; top: calc(26vh + var(--header)); }
.chapter-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.chapter-tv { width: min(1100px, calc(100% - 2 * var(--gutter))); aspect-ratio: 7 / 3; }
.chapter-caption { position: absolute; left: 0; right: 0; top: calc(50% + (var(--k) - var(--j)) * 50%); padding-top: 20px; text-align: center; opacity: calc((var(--k) - .55) * 2.4 - var(--j) * 3); }
.chapter-title {
    position: absolute; z-index: 3; left: 0; right: 0; top: 104vh;
    width: min(1100px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-left: 7%;
    font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 10.4vw, 10rem); line-height: .9; letter-spacing: -.01em; text-transform: uppercase;
    color: var(--white); pointer-events: none;
}

/* ---------- L'histoire : trois blocs, photos d'un côté et texte de l'autre, en alternance ----------
   Chaque bloc reste à l'écran pendant qu'on défile ; les photos arrivent une par une et se superposent. */
.panel { position: relative; }
.panel-1 { height: 260vh; }
.panel-2 { height: 300vh; }
.panel-3 { height: 320vh; }
.panel-pin {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    display: grid; grid-template-columns: 1.25fr .75fr; grid-template-areas: "media text"; gap: 0 5vw; align-items: center;
    max-width: 1280px; margin: 0 auto; padding: calc(var(--header) + 24px) var(--gutter) 24px;
}
.panel-flip .panel-pin { grid-template-columns: .75fr 1.25fr; grid-template-areas: "text media"; }
.panel-media { grid-area: media; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; container-type: size; }
.collage { position: relative; width: 100%; aspect-ratio: 1 / .95; }
@supports (width: 1cqh) {
    .collage { width: min(100cqw, calc(100cqh / .95)); }
}
.panel-text { grid-area: text; }
.panel-text .lede { font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1.12; }
.panel-text .rule { margin: 30px 0 26px; }
.panel-text p { max-width: 24em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: #cfcfcf; }
.panel-text p + p { margin-top: 16px; }
.panel-text .strong { color: var(--white); }
.panel-line { opacity: var(--k); filter: blur(calc((1 - var(--k)) * 10px)); transform: translate3d(0, calc((1 - var(--k)) * 40px), 0); }
.fx-rest.panel-line { filter: none; transform: none; }

/* Photos du collage : chacune arrive avec son effet et reste en place (--o : s'efface quand la télé s'allume) */
.shot {
    position: absolute; margin: 0; will-change: transform, opacity;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06);
    opacity: calc(min(1, var(--k) * 2.5) * (1 - .62 * var(--o)));
}
.fx-dark { transform: scale(calc(1.22 - .22 * var(--k))); }
.fx-swipe { transform: translate3d(calc((1 - var(--k)) * 35%), 0, 0); clip-path: inset(0 0 0 calc((1 - var(--k)) * 100%)); }
.fx-blur { transform: translate3d(0, calc((1 - var(--k)) * 22%), 0) scale(calc(1.08 - .08 * var(--k))); }
.fx-gray { transform: rotate(calc((1 - var(--k)) * -8deg)) scale(calc(.82 + .18 * var(--k))); }
.fx-glitch { transform: translate3d(calc((1 - var(--k)) * -28%), 0, 0) skewX(calc((1 - var(--k)) * 14deg)); }
.fx-wipe { clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0); }
.fx-rise { clip-path: inset(calc((1 - var(--k)) * 100%) 0 0 0); transform: translate3d(0, calc((1 - var(--k)) * 16%), 0); }
/* Sur ordinateur, les mêmes avec des filtres : sortir du noir, du flou, du noir et blanc, d'un signal brouillé */
@media (min-width: 861px) and (pointer: fine) {
    .fx-dark { filter: brightness(calc(.08 + .92 * var(--k))) blur(calc((1 - var(--k)) * 12px)); }
    .fx-swipe { filter: blur(calc((1 - var(--k)) * 10px)) brightness(calc(1 + (1 - var(--k)) * .8)); }
    .fx-blur { filter: blur(calc((1 - var(--k)) * 18px)); }
    .fx-gray { filter: grayscale(calc(1 - var(--k))) contrast(calc(1 + (1 - var(--k)) * .5)); }
    .fx-glitch { filter: saturate(calc(1 + (1 - var(--k)) * 4)) contrast(calc(1 + (1 - var(--k)) * .8)) hue-rotate(calc((1 - var(--k)) * -90deg)); }
    .fx-wipe, .fx-rise { filter: brightness(calc(1 + (1 - var(--k)) * 2)); }
}
.shot.fx-rest { filter: none; }

/* Final : la télé s'allume sur la voiture de face, puis s'assombrit (--d) quand la voiture en sort */
.collage-tv { position: absolute; z-index: 1; }
.collage-tv .tv-screen { filter: brightness(calc(1 + (1 - var(--k)) * 2.6)) saturate(calc(.15 + .85 * var(--k))) blur(calc((1 - var(--k)) * 4px)); }
.collage-tv::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #000; opacity: calc(var(--d) * .62); pointer-events: none; }
.cutout {
    --pop: .28;
    position: absolute; z-index: 2;
    opacity: min(1, calc(var(--k) * 4));
    transform: translate3d(0, calc(var(--k) * 9%), 0) scale(calc(1 + var(--k) * var(--pop))); transform-origin: 50% 80%;
    will-change: transform, opacity;
}
@media (min-width: 861px) and (pointer: fine) {
    .cutout { filter: brightness(calc(1 + (1 - var(--k)) * 1.6)); }
}
.cutout img { position: relative; display: block; width: 100%; height: 100%; }
.cutout-shadow { position: absolute; left: 6%; right: 8%; bottom: 2%; height: 18%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .9), transparent 70%); opacity: var(--k); }

/* ---------- Réalisations ---------- */
.section-bridge { padding: 0 0 20px; }
.work { position: relative; padding: 150px 0; }
.work-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: center; }
.work-copy .caption { margin-bottom: 16px; }
.work-copy > p:not(.caption) { color: var(--muted); font-size: 1.05rem; max-width: 440px; }
.work-logo { width: 150px; height: auto; margin-bottom: 34px; }

/* Aperçu d'un vrai résultat Google (thème sombre de Google) : on le voit, on ne clique pas */
.serp { background: #1f1f1f; color: #bdc1c6; font-family: Arial, Helvetica, sans-serif; padding: 26px 28px 30px; cursor: default; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -40px rgba(0, 0, 0, 1); }
.serp-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 20px; margin-bottom: 30px; border-radius: 24px; background: #303134; color: #e8eaed; font-size: 16px; transition: background .2s; }
.serp-bar:hover { background: #3c4043; }
.serp-bar .icon { width: 18px; height: 18px; color: #9aa0a6; }
.serp-caret { width: 1px; height: 20px; margin-left: -12px; background: #e8eaed; opacity: 0; }
.serp.typing .serp-caret { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .serp.typing .serp-caret { animation: caret .9s steps(2) infinite; }
}
@keyframes caret { 50% { opacity: 0; } }
.serp-result { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; opacity: var(--r); transform: translate3d(0, calc((1 - var(--r)) * 22px), 0); }
.serp-site { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.serp-icon { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.serp-site div { display: grid; line-height: 1.3; }
.serp-name { color: #dadce0; font-size: 14px; }
.serp-path { color: #bdc1c6; font-size: 12px; }
.serp-dots { color: #9aa0a6; margin-left: 4px; align-self: flex-start; }
.serp-title { color: #99c3ff; font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.serp-main:hover .serp-title { text-decoration: underline; }
.serp-snippet { font-size: 14px; line-height: 1.58; color: #bdc1c6; max-width: 520px; }
.serp-snippet b { color: #e8eaed; }
.serp-thumbs { display: grid; grid-template-columns: repeat(3, 76px); gap: 2px; border-radius: 10px; overflow: hidden; margin-top: 34px; }
.serp-thumbs img {
    width: 76px; height: 102px; object-fit: cover; display: block; transition: filter .25s;
    opacity: calc(var(--r) * 2.2 - var(--i) * .45);
    transform: scale(calc(.8 + .2 * min(1, max(0, var(--r) * 2.2 - var(--i) * .45))));
}
.serp-thumbs img:hover { filter: brightness(1.2); }

/* LyonMC : le fond reste fixe, la section glisse dessus et le dévoile du bas vers le haut */
.work-mc { padding: 30vh 0 24vh; clip-path: inset(0); overflow-x: clip; }
.mc-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0b0e09; }
.mc-bg i { position: absolute; inset: -2%; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(calc(1.3 - var(--z) * .3)); will-change: transform; }
.mc-bg-net { background-image: url("/assets/img/realisations/minecraft-fond.webp"); }
.mc-bg-flou { background-image: url("/assets/img/realisations/minecraft-fond-flou.webp"); opacity: calc(1 - var(--f)); }
.mc-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12) 50%, rgba(0, 0, 0, .5)); }
.mc-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: calc(.8 - var(--k) * .8); }
.mc-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; grid-template-areas: "win logo" "win copy"; gap: 0 64px; align-items: center; }
.mc-logo {
    --from: 1.8;
    grid-area: logo; align-self: end; width: clamp(240px, 27vw, 390px); height: auto; margin-bottom: 30px; transform-origin: 0 100%;
    opacity: min(1, calc(var(--k) * 1.6));
    filter: blur(calc((1 - var(--k)) * 20px)) drop-shadow(0 12px 30px rgba(0, 0, 0, .6));
    transform: translate3d(0, calc((1 - var(--k)) * -40px), 0) scale(calc(var(--from) - (var(--from) - 1) * var(--k)));
}
.mc-copy { grid-area: copy; align-self: start; }
.mc-name { margin: 6px 0 16px; line-height: 0; }
.mc-name img { width: 192px; height: auto; }
.work-mc .work-copy > p:not(.caption) { color: #dcdcdc; }
.mc-window { grid-area: win; perspective: 1400px; }
.browser-win {
    background: #0d1219; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 120px -30px rgba(0, 0, 0, .95);
    opacity: min(1, calc(var(--k) * 2));
    transform: rotateY(calc(7deg + (1 - var(--k)) * 34deg)) rotateX(calc((1 - var(--k)) * 14deg)) translate3d(0, calc((1 - var(--k)) * 90px), 0) scale(calc(.82 + .18 * var(--k)));
    transform-origin: 70% 50%; will-change: transform, opacity;
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #1a2230; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.browser-bar span { margin: 0 auto; transform: translateX(-20px); padding: 2px 16px; border-radius: 6px; background: rgba(0, 0, 0, .3); color: #9aa4b2; font: 12px Arial, sans-serif; }
/* Le site arrive en gros blocs puis se précise, comme un monde Minecraft qui charge */
.browser-view { position: relative; }
.browser-view img { display: block; width: 100%; height: auto; }
.browser-view .blocs { position: absolute; inset: 0; height: 100%; image-rendering: pixelated; opacity: calc(1 - var(--b)); }
.mc-credit { position: absolute; right: 18px; bottom: 12px; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .5); }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--white); }
.steps h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* ---------- Formules : deux cartes côte à côte, le prix d'abord ---------- */
.section-plans .article > p:not(.caption) { max-width: 640px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1180px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 28px 30px; background: var(--bg-raised); border: 1px solid var(--line-strong); border-top: 3px solid var(--line-strong); }
/* La formule mise en avant : liseré jaune, étiquette, légèrement plus haute */
.plan-featured { border-color: rgba(242, 214, 75, .45); border-top-color: var(--yellow); margin: -14px 0; padding-top: 48px; padding-bottom: 44px; }
.plan-badge { position: absolute; top: 0; left: 28px; transform: translateY(-50%); padding: 5px 12px; background: var(--yellow); color: #0a0a0a; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan-missing { color: var(--subtle); }
.plan-missing > span { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.plan-features .plan-missing .icon { color: var(--subtle); }
.plan-nudge { margin: -10px 0 22px; padding: 12px 14px; border-left: 2px solid var(--yellow); background: rgba(242, 214, 75, .07); font-size: 14px; line-height: 1.5; color: var(--text); }
.plan-name { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.1; }
.plan-for { margin-top: 8px; color: var(--muted); font-size: 15px; min-height: 3.2em; }
.plan-price { margin: 22px 0 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-setup { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; color: var(--white); font-variant-numeric: lining-nums; }
.plan-unit { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.plan-upto { display: block; margin-bottom: 6px; color: var(--yellow); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan-price-note { display: block; margin-top: 10px; padding: 8px 10px; border-left: 2px solid var(--yellow); background: rgba(242, 214, 75, .07); color: var(--text); font-size: 13.5px; line-height: 1.45; }
.plan-monthly { display: block; margin-top: 10px; color: var(--text); }
.plan-monthly strong { font-size: 1.3rem; color: var(--white); }
.plan-features { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.plan-features .icon { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--yellow); }
.plan .btn { white-space: normal; height: auto; min-height: 50px; padding: 12px 18px; text-align: center; }
.plans-after { margin-top: 36px; }
.plans-after p { color: var(--muted); }
.link-inline { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-inline:hover { color: var(--yellow); }
.plans-legal { margin-top: 10px; font-size: 13px; color: var(--subtle) !important; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.contact-copy .caption { margin-bottom: 22px; }
.contact-copy > p:not(.caption) { max-width: 420px; }
.contact-copy > p:not(.caption) + p { margin-top: 10px; color: var(--muted); }
.contact-direct { list-style: none; padding: 0; margin: 36px 0 0; max-width: 420px; border-top: 1px solid var(--line); }
.contact-direct li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); color: var(--muted); }
.contact-direct a { text-decoration: none; font-size: 1.05rem; transition: color .2s; }
.contact-direct a:hover { color: var(--white); }
.contact-form { display: grid; gap: 18px; padding: 32px; background: var(--bg-raised); border: 1px solid var(--line); }
.contact-form label { display: grid; gap: 8px; font-size: 14px; }
.contact-form textarea { min-height: 120px; }
.contact-form .alert { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.optional { font-family: var(--font); font-size: 12px; }

/* ---------- Mentions légales ---------- */
.legal { padding-top: 48px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 40px; }
.legal h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin: 40px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal a { color: var(--text); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 0 0 32px; }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 80px 0; border-bottom: 1px solid var(--line); }
.footer-cta p { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.6rem); text-transform: uppercase; line-height: .95; color: var(--white); }
.footer-cta-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); font-size: 1.1rem; font-weight: 700; text-decoration: none; color: var(--white); }
.footer-cta-link .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.footer-cta-link:hover .icon { transform: translateX(4px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 0; }
.site-footer > .container > .footer-grid:first-child { padding-top: 56px; }
.footer-brand p { color: var(--subtle); max-width: 340px; margin-top: 16px; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .95rem; width: fit-content; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 13px; }

/* ---------- Page 404 et page « Bientôt disponible » ---------- */
.hero-glow { display: none; }
.lead { margin-top: 26px; max-width: 520px; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.not-found { position: relative; overflow: hidden; min-height: 78vh; display: flex; align-items: center; padding: 140px 0 80px; }
.not-found-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.not-found-code { font-family: var(--serif); font-size: clamp(7rem, 24vw, 15rem); line-height: .85; margin-bottom: 24px; color: #262626; }
.not-found .lead { margin-left: auto; margin-right: auto; }
.not-found .hero-actions { justify-content: center; }
.not-found-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.not-found-links a { color: var(--subtle); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.not-found-links a:hover { color: var(--white); }
.coming-soon { min-height: 100vh; }
/* Barre de contact en bas de l'écran (téléphone) */
.contact-bar { display: none; }
.coming-soon-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px; background: var(--warning); color: #000; font-size: 13px; font-weight: 700; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
    .plans { grid-template-columns: 1fr; max-width: 620px; gap: 28px; }
    .plan-featured { margin: 0; }
    .work-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
    .work-copy > p:not(.caption) { max-width: 560px; }
    .mc-grid { grid-template-columns: 1fr; grid-template-areas: "logo" "win" "copy"; gap: 44px; }
    .mc-logo { align-self: start; margin-bottom: 0; }
    .panel-pin, .panel-flip .panel-pin { gap: 0 4vw; }
}

@media (max-width: 860px) {
    :root { --header: 60px; --gutter: 18px; }
    body { font-size: 16px; }
    .main-nav {
        display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; gap: 0;
        padding: 4px 18px 18px; background: rgba(0, 0, 0, .98); border-bottom: 1px solid var(--line);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
    .main-nav .nav-login { display: block; }
    .main-nav .nav-cta { display: block; border-bottom: 0; color: var(--white); font-weight: 700; }
    .header-login { display: none; }
    .nav-toggle { display: block; }
    .header-actions .btn { display: none; }

    .hero { padding: calc(var(--header) + 36px) 0 110px; }
    .hero-title { font-size: clamp(2.5rem, 13vw, 4.6rem); }
    .hero-lead { font-size: 1.05rem; }
    .hero-actions .btn { flex: 1 1 auto; }
    .section, .work { padding: 100px 0; }
    .lede { font-size: clamp(1.7rem, 7vw, 2.2rem); }

    /* Chapitres sur téléphone : écran 4:3, titre plus petit */
    .chapter { height: 236vh; }
    .chapter-tv { aspect-ratio: 4 / 3; }
    .chapter-title { top: 100vh; padding-left: 0; font-size: clamp(2.4rem, 11vw, 4.4rem); }

    /* L'histoire sur téléphone : les photos en haut, le texte en dessous, tout reste dans l'écran */
    .panel-1 { height: 220vh; }
    .panel-2 { height: 250vh; }
    .panel-3 { height: 270vh; }
    /* Photos puis texte, groupés au milieu de l'écran : rien n'est collé en bas, sous les barres de Safari */
    .panel-pin, .panel-flip .panel-pin { display: flex; flex-direction: column; gap: 20px; padding: calc(var(--header) + 12px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
    .panel-media { flex: 0 0 auto; height: auto; margin-top: auto; display: block; container-type: normal; }
    .collage { width: min(100%, calc((100vh - var(--header) - 300px) / .95)); width: min(100%, calc((100svh - var(--header) - 300px) / .95)); margin: 0 auto; }
    .panel-text { flex: 0 0 auto; margin-bottom: auto; }
    .panel-text .lede { font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
    .panel-text .rule { width: 120px; margin: 14px 0 12px; }
    .panel-text p { font-size: 1rem; line-height: 1.5; }
    .panel-text p + p { margin-top: 8px; }
    .cutout { --pop: .14; }

    .serp { padding: 18px 16px 22px; }
    .serp-result { grid-template-columns: 1fr; }
    .serp-thumbs { margin-top: 4px; width: fit-content; }
    .work-mc { padding: 22vh 0 16vh; }
    .mc-logo { --from: 1.2; }

    /* Barre de contact toujours à portée de pouce ; elle se retire quand le formulaire est à l'écran */
    :root { --bar: 58px; }
    body { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
    .contact-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
        display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(0, 0, 0, .94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        transition: transform .35s var(--ease);
    }
    .contact-bar a {
        display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1px solid var(--line-strong);
        font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--white);
    }
    .contact-bar .icon { width: 16px; height: 16px; }
    .contact-bar .contact-bar-main { background: var(--white); border-color: var(--white); color: #000; }
    .contact-bar.away { transform: translateY(110%); }
    .scroll-cue { bottom: calc(18px + var(--bar)); }
    .coming-soon-bar { bottom: var(--bar); }
    .mc-credit { position: static; padding: 28px var(--gutter) 0; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
    .plans { gap: 26px; margin-top: 40px; }
    .plan { padding: 26px 22px 24px; }
    .plan-featured { padding-top: 38px; padding-bottom: 30px; }
    .plan-badge { left: 22px; }
    .plan-for { min-height: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-cta { padding: 56px 0; }
}

@media (max-width: 560px) {
    .steps li { grid-template-columns: 56px 1fr; gap: 14px; }
    .steps .n { font-size: 2rem; }
}

/* Téléphone et tablette : les mêmes animations, sans les filtres (flou, couleurs) qui font ramer l'écran */
@media (max-width: 860px), (pointer: coarse) {
    .rise[data-fx], .panel-line, .hero-inner, .tv-screen, .collage-tv .tv-screen, .cutout, .mc-logo { filter: none; }
    .crt::after { display: none; }
}
