/* ==========================================================================
   Umbral Interactive — styles « studio »
   Utilisés par l'accueil et par les zones studio de /sillons/.
   Référence : README.md (design tokens) et design/index.dc.html.
   ========================================================================== */

/* --- Jetons ---------------------------------------------------------------- */
:root {
    --bg: #121110;
    --bg-alt: #1C1A17;
    --bg-hover: #181614;
    --title: #EFDCBB;
    --text: #D8CFC0;
    --muted: #8C8378;
    --accent: #CE7538;
    --accent-hover: #DC8A50;
    --accent-soft: rgba(206, 117, 56, 0.06);
    --line: rgba(239, 220, 187, 0.08);
    --line-2: rgba(239, 220, 187, 0.12);
    --line-3: rgba(239, 220, 187, 0.18);
    --stripes: repeating-linear-gradient(135deg, #1C1A17 0 14px, #191715 14px 28px);

    --f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --f-sans: 'Archivo', Helvetica, Arial, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --pad-x: clamp(20px, 4vw, 48px);
    --pad-y: clamp(80px, 12vw, 160px);
    --header-h: 76px;
}

/* --- Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, ol, ul {
    margin: 0;
}

ol, ul {
    padding: 0;
    list-style: none;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--title);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

a, button {
    transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s,
        background-size .5s var(--ease), gap .4s var(--ease), padding .4s var(--ease),
        transform .4s var(--ease), box-shadow .4s;
}

button {
    font: inherit;
    cursor: pointer;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    color: var(--bg);
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* --- Typographie ----------------------------------------------------------- */
.label {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    line-height: 1.8;
    text-transform: uppercase;
    color: var(--muted);
}

.label-sm {
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.label-accent {
    font-size: 11px;
    color: var(--accent);
}

.label-dot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.label-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.h-hero {
    font-family: var(--f-display);
    font-size: clamp(38px, 6.6vw, 96px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--title);
    text-transform: uppercase;
    text-wrap: balance;
}

.h2 {
    font-family: var(--f-display);
    font-size: clamp(32px, 4.6vw, 60px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--title);
    text-transform: uppercase;
}

.h-giant {
    margin-top: 28px;
    font-family: var(--f-display);
    font-size: clamp(60px, 12vw, 172px);
    line-height: 0.92;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--title);
    text-transform: uppercase;
}

/* Logo Sillons (SVG utilisé comme masque : la couleur vient du fond) */
.logo-sillons {
    display: block;
    aspect-ratio: 1258 / 350;
    background: var(--title);
    -webkit-mask: url("../assets/logo_sillons.svg") center / contain no-repeat;
    mask: url("../assets/logo_sillons.svg") center / contain no-repeat;
}

.h-logo {
    margin-top: 32px;
    width: clamp(240px, 56vw, 780px);
}

.lead {
    margin-top: 24px;
    max-width: 620px;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.6;
    color: var(--text);
    text-wrap: pretty;
}

.inline-link {
    color: var(--accent);
    border-bottom: 1px solid rgba(206, 117, 56, 0.4);
}

.inline-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent);
}

/* --- Boutons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    border: 1px solid transparent;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -14px rgba(206, 117, 56, 0.7);
}

.btn-outline {
    border-color: rgba(239, 220, 187, 0.35);
    background: transparent;
    color: var(--title);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-soft);
}

.btn-arrow:hover {
    gap: 24px;
}

.btn-sm {
    padding: 12px 20px;
    font-size: 13px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 44px;
}

.btn-row--md {
    margin-top: 48px;
}

.btn-row--lg {
    margin-top: 56px;
}

/* --- En-tête --------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(18, 17, 16, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
    transition: height .4s var(--ease);
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 34px;
    width: auto;
    transition: height .4s var(--ease);
}

.site-header.is-scrolled .header-bar {
    height: 60px;
}

.site-header.is-scrolled .brand-logo {
    height: 28px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-link {
    padding-bottom: 5px;
    color: var(--text);
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 1px no-repeat;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--title);
    background-size: 100% 1px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.lang-switch button {
    min-width: 28px;
    min-height: 28px;
    padding: 4px 6px;
    background: none;
    border: 0;
    color: var(--muted);
    font: inherit;
    letter-spacing: inherit;
}

.lang-switch button:hover,
.lang-switch button[aria-pressed="true"] {
    color: var(--title);
}

/* --- Menu mobile : plein écran -------------------------------------------------
   Bouton « burger » (deux traits qui deviennent une croix), partagé avec la page Sillons.
   À l'ouverture, l'en-tête s'étire sur tout l'écran et le menu en occupe le reste. */
.burger {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--title);
}

.burger-line {
    position: absolute;
    top: 17px;
    right: 10px;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform .35s var(--ease), width .35s var(--ease);
}

.burger-line + .burger-line {
    top: 25px;
    width: 15px;
}

.burger[aria-expanded="true"] .burger-line {
    width: 24px;
    transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-line + .burger-line {
    transform: translateY(-4px) rotate(-45deg);
}

.menu-btn {
    display: none;
}

/* Page figée sous le menu ouvert */
html.menu-locked {
    overflow: hidden;
}

.site-header.menu-open {
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.mobile-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    padding-top: 16px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.mobile-menu-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-display);
    font-size: clamp(26px, 7.4vw, 36px);
    line-height: 1.1;
    color: var(--title);
}

.mobile-menu-links a::after {
    content: "→";
    margin-left: auto;
    font-family: var(--f-sans);
    font-size: 18px;
    color: var(--muted);
    transition: transform .3s var(--ease), color .3s;
}

.mobile-menu-links a:hover::after,
.mobile-menu-links a:focus-visible::after {
    color: var(--accent);
    transform: translateX(4px);
}

.mobile-menu-num {
    min-width: 22px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.mobile-menu-foot {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-menu-foot .btn {
    justify-content: center;
}

@media (min-width: 700px) {
    .mobile-menu-foot .btn {
        align-self: flex-start;
    }
}

.mobile-menu-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.mobile-menu-meta .lang-switch {
    font-size: 13px;
}

.mobile-menu-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.mobile-menu-social a:hover {
    color: var(--title);
}

/* Apparition en cascade, sans effet si l'utilisateur limite les animations */
@media (prefers-reduced-motion: no-preference) {
    .menu-open .mobile-menu-links li,
    .menu-open .mobile-menu-foot {
        animation: menuIn .5s var(--ease) both;
        animation-delay: calc(var(--i, 0) * 45ms + 40ms);
    }
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@media (max-width: 859px) {
    .nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

@media (min-width: 860px) {
    .site-header .mobile-menu {
        display: none !important;
    }
}

/* --- Sections --------------------------------------------------------------- */
.section {
    padding: var(--pad-y) 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--rule {
    border-top: 1px solid var(--line);
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    align-items: start;
}

/* Trois points / piliers en ligne */
.points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    margin-top: clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--line-2);
}

.points--studio {
    margin-top: clamp(56px, 7vw, 96px);
}

.point {
    padding: 28px 32px 0 0;
}

.point-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.point h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--title);
}

.point p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-spiral {
    position: absolute;
    top: 50%;
    right: -18vw;
    width: min(110vw, 1180px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    opacity: 0.55;
    pointer-events: none;
}

/* Rotation lente + « respiration » (deux propriétés distinctes : transform et scale,
   toutes deux prises en charge par la carte graphique) */
.hero-spiral svg {
    width: 100%;
    height: 100%;
    animation: umbSpin 120s linear infinite, umbBreath 14s ease-in-out infinite;
}

.hero-spiral path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Grands écrans : le contour se dessine, vit, se dé-trace puis se redessine (cycle de 30 s).
   Animation calculée par le processeur : réservée à l'ordinateur et mise en pause hors écran. */
@media (min-width: 860px) {
    /* Le symbole compte 7 anneaux tracés séparément ; le plus long fait ~22,6 % du total.
       Un tiret de 0,23 suffit donc à couvrir chaque anneau : tout le cycle reste visible. */
    .js .hero-spiral path {
        stroke-dasharray: 0.23 2;
        stroke-dashoffset: 0.23;
        animation: umbCycle 30s linear .3s infinite;
    }

    .hero.is-offscreen .hero-spiral path,
    .hero.is-offscreen .hero-spiral svg {
        animation-play-state: paused;
    }
}

/* 0–4,5 s : tracé · 4,5–27 s : visible · 27–30 s : dé-tracé (dans le sens du tracé) */
@keyframes umbCycle {
    0% { stroke-dashoffset: 0.23; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
    15% { stroke-dashoffset: 0; }
    90% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.6, 0, .4, 1); }
    100% { stroke-dashoffset: -0.23; }
}

/* Mobile : simple fondu + légère rotation, pris en charge par la carte graphique */
@media (max-width: 859px) {
    .js .hero-spiral {
        animation: umbReveal 2s cubic-bezier(.2, .7, .2, 1) .2s both;
    }
}

@keyframes umbReveal {
    from { opacity: 0; transform: translateY(-50%) rotate(-25deg) scale(0.96); }
    to { opacity: 0.55; transform: translateY(-50%); }
}

@keyframes umbBreath {
    0%, 100% { scale: 1; }
    50% { scale: 1.035; }
}

@keyframes umbDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes umbSpin {
    to { transform: rotate(360deg); }
}

/* Voile de lisibilité (gauche opaque → droite transparente) */
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(18, 17, 16, 0.85) 40%, rgba(18, 17, 16, 0.1) 75%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
}

.hero-content {
    max-width: 880px;
}

/* « Dunkerque » : cuivre + trait qui se dessine sous le mot */
.hl-city {
    position: relative;
    color: var(--accent);
    white-space: nowrap;
}

.hl-city::after {
    content: "";
    position: absolute;
    left: 0.02em;
    right: 0.02em;
    bottom: 0.02em;
    height: max(2px, 0.035em);
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(1);
}

.js .hl-city::after {
    transform: scaleX(0);
    animation: cityLine 1.4s var(--ease) 0.9s forwards;
}

@keyframes cityLine {
    to { transform: scaleX(1); }
}

.hero-intro {
    margin-top: 36px;
    max-width: 560px;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.6;
    text-wrap: pretty;
}

/* Indicateur de défilement */
/* Centré en bas de l'écran à l'arrivée ; s'efface au défilement ou s'il touchait le texte (studio.js) */
.scroll-cue {
    position: fixed;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    transition: opacity .5s var(--ease), color .3s var(--ease);
}

.scroll-cue:hover {
    color: var(--title);
}

.scroll-cue-line {
    position: relative;
    width: 1px;
    height: 44px;
    overflow: hidden;
    background: var(--line-3);
}

.scroll-cue-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 14px;
    background: var(--accent);
    animation: cueDrop 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}

@keyframes cueDrop {
    from { transform: translateY(-14px); }
    to { transform: translateY(44px); }
}

/* Disparaît dès que l'on a commencé à défiler */
.site-header.is-scrolled ~ main .scroll-cue,
.scroll-cue.is-blocked {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 859px), (max-height: 640px) {
    .scroll-cue {
        display: none;
    }
}

.status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    max-width: 560px;
    margin-top: clamp(48px, 7vw, 88px);
    padding-top: 24px;
    border-top: 1px solid rgba(239, 220, 187, 0.1);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.status-bar .is-title {
    color: var(--title);
}

.status-bar .is-accent {
    color: var(--accent);
}

/* --- Sillons -------------------------------------------------------------- */
/* Accroche + pitch à gauche, mini-fiche du jeu à droite */
.sillons-intro {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(0, 420px);
    justify-content: space-between;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
    margin-top: clamp(32px, 4vw, 56px);
}

.sillons-copy {
    display: grid;
    gap: 20px;
}

.sillons-facts {
    margin: 0;
    border-top: 1px solid var(--line-2);
}

.sillons-facts > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-2);
}

.sillons-facts dt {
    padding-top: 2px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.sillons-facts dd {
    margin: 0;
    font-size: 15px;
    color: var(--title);
}

.sillons-facts dd.is-accent {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 1px;
}

@media (max-width: 859px) {
    .sillons-intro {
        grid-template-columns: 1fr;
    }
}

.sillons-hook {
    font-family: var(--f-display);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.3;
    font-weight: 500;
    color: var(--title);
}

.sillons-pitch {
    font-size: 17px;
    line-height: 1.7;
    text-wrap: pretty;
}

.sillons-copy-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 12px;
}

/* Lien secondaire, discret, à côté d'un bouton */
.btn-text {
    display: inline-flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 1px no-repeat;
}

.btn-text:hover {
    color: var(--title);
    background-size: 100% 1px;
}

.video-frame {
    position: relative;
    margin-top: clamp(48px, 6vw, 80px);
    aspect-ratio: 16 / 9;
    background: var(--stripes);
    overflow: hidden;
}

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--ease);
}

.video-frame:hover video {
    transform: scale(1.025);
}

.video-toggle {
    position: absolute;
    right: 16px;
    bottom: 16px;
    height: 44px;
    padding: 0 16px;
    background: rgba(18, 17, 16, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(239, 220, 187, 0.2);
    color: var(--title);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.video-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.captures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(12px, 1.5vw, 20px);
    margin-top: clamp(12px, 1.5vw, 20px);
}

.capture {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--stripes);
    overflow: hidden;
}

.capture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--ease);
}

.capture:hover img {
    transform: scale(1.03);
}

.capture::after {
    content: "";
    position: absolute;
    inset: 55% 0 0 0;
    background: linear-gradient(transparent, rgba(18, 17, 16, 0.75));
    pointer-events: none;
}

.capture figcaption {
    position: absolute;
    z-index: 1;
    left: 16px;
    bottom: 14px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--title);
}

/* --- Avancement (frise) ------------------------------------------------------ */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 80px;
}

/* Rail */
.steps::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-3);
}

.step {
    position: relative;
    padding-right: 28px;
}

.step.is-current::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
}

.step-dot {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--muted);
}

.step.is-done .step-dot {
    background: var(--title);
    border-color: var(--title);
}

.step.is-current .step-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(206, 117, 56, 0.18);
}

.step-num {
    display: block;
    margin-top: 32px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--muted);
}

.step-title {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--title);
    text-wrap: pretty;
}

.step-detail {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.step-status {
    margin-top: 16px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.step.is-current .step-status {
    color: var(--accent);
}

@media (max-width: 859px) {
    .steps {
        display: flex;
        flex-direction: column;
        margin-top: 48px;
    }

    .steps::before,
    .step.is-current::before {
        display: none;
    }

    .step {
        display: grid;
        grid-template-columns: 15px 1fr;
        gap: 20px;
        padding: 0 0 36px;
    }

    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 7px;
        top: 15px;
        bottom: 0;
        width: 1px;
        background: var(--line-3);
    }

    .step-num {
        margin-top: 0;
    }

    .step-title {
        margin-top: 8px;
    }

    .step-detail {
        margin-top: 6px;
    }

    .step-status {
        margin-top: 12px;
    }
}

.lead--wide {
    max-width: 720px;
    margin-top: clamp(40px, 6vw, 80px);
}

.news-link {
    margin-top: 20px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.news-link .inline-link {
    margin-left: 6px;
    text-transform: none;
    letter-spacing: 0.04em;
}

/* --- Studio ----------------------------------------------------------------- */
.two-col--studio {
    gap: clamp(32px, 6vw, 96px);
}

.h2--studio {
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.studio-text {
    font-size: 18px;
    line-height: 1.7;
    text-wrap: pretty;
}

/* --- Équipe ----------------------------------------------------------------- */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(32px, 4vw, 56px);
    max-width: 1040px;
    margin-top: clamp(40px, 5vw, 64px);
}

.member-photo {
    aspect-ratio: 4 / 5;
    background: repeating-linear-gradient(135deg, #242120 0 14px, #201e1b 14px 28px);
    overflow: hidden;
}

/* Traitement homogène : désaturé et légèrement chaud */
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.55) sepia(0.14) contrast(1.03) brightness(0.94);
    transition: filter .8s var(--ease), transform 1.6s var(--ease);
}

.member:hover .member-photo img {
    filter: saturate(0.85) sepia(0.06) contrast(1.02) brightness(1);
    transform: scale(1.02);
}

.member h3 {
    margin-top: 28px;
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--title);
}

.member-role {
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.member-bio {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
}

.team-join {
    margin-top: 56px;
    font-size: 17px;
}

/* --- Travaillons ensemble --------------------------------------------------- */
.needs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1px;
    margin-top: clamp(40px, 5vw, 64px);
    background: var(--line-2);
    border: 1px solid var(--line-2);
}

.need {
    padding: 36px 32px 44px;
    background: var(--bg);
    transition: background-color .5s, box-shadow .5s;
}

.need:hover {
    background: var(--bg-hover);
    box-shadow: inset 0 2px 0 var(--accent);
}

.need-num {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--muted);
}

.need h3 {
    margin-top: 40px;
    font-family: var(--f-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--title);
}

.need p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
}

/* Appel à partenaires */
.partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
    margin-top: clamp(56px, 7vw, 88px);
    padding: clamp(28px, 4vw, 44px);
    border: 1px dashed rgba(239, 220, 187, 0.28);
    background: linear-gradient(135deg, rgba(206, 117, 56, 0.05), transparent 60%);
}

.partners-text {
    flex: 1 1 420px;
    max-width: 680px;
}

.partners-title {
    margin-top: 12px;
    font-family: var(--f-display);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--title);
}

.partners-text p:last-child {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
}

/* --- Contact ---------------------------------------------------------------- */
.two-col--contact {
    gap: clamp(40px, 6vw, 96px);
}

.lead--contact {
    max-width: 460px;
}

.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-email {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-2);
}

.contact-email-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.contact-email-link {
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 500;
    word-break: break-all;
}

.copy-btn {
    min-width: 104px;
    height: 44px;
    padding: 0 18px;
    background: none;
    border: 1px solid rgba(239, 220, 187, 0.3);
    color: var(--title);
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-soft);
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 17px;
}

.contact-row:hover {
    padding-left: 14px;
}

/* --- Pied de page ------------------------------------------------------------ */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--muted);
}

.footer-id img {
    height: 64px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
    color: var(--muted);
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--title);
}

/* --- Modale « Dossier » ------------------------------------------------------ */
.modal {
    width: min(580px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--line-2);
    overflow-y: auto;
}

.modal::backdrop {
    background: rgba(10, 9, 8, 0.84);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal[open] {
    animation: modalIn .5s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
}

.modal-inner {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 22px;
}

.modal-close:hover {
    color: var(--title);
}

.h-modal {
    margin-top: 16px;
    font-family: var(--f-display);
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--title);
}

.modal-text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea {
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(239, 220, 187, 0.2);
    border-radius: 0;
    color: var(--title);
    font-family: var(--f-sans);
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    outline: none;
    transition: border-color .4s var(--ease);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: var(--accent);
}

.chips legend {
    padding: 0;
    margin-bottom: 12px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(239, 220, 187, 0.2);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: border-color .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}

.chip:hover span {
    border-color: rgba(239, 220, 187, 0.5);
}

.chip input:checked + span {
    background: rgba(206, 117, 56, 0.12);
    border-color: var(--accent);
    color: var(--title);
}

.chip input:focus-visible + span {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

.btn-submit,
.btn-close {
    align-self: flex-start;
}

.btn-close {
    margin-top: 32px;
    padding: 16px 24px;
    font-size: 13px;
}

/* --- Page mentions légales --------------------------------------------------- */
.legal {
    padding-top: calc(76px + clamp(48px, 8vw, 104px));
}

.legal .container {
    max-width: 880px;
}

.legal-title {
    margin-top: 16px;
}

.legal-updated {
    margin-top: 16px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.legal-block {
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: 28px;
    border-top: 1px solid var(--line-2);
}

.legal-block h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--title);
}

.legal-block p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.7;
    text-wrap: pretty;
}

.legal-block a {
    color: var(--accent);
    border-bottom: 1px solid rgba(206, 117, 56, 0.4);
}

.legal-block a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent);
}

.legal-list {
    margin: 20px 0 0;
}

.legal-list > div {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 8px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.legal-list dt {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
}

.legal-list dd {
    margin: 0;
    line-height: 1.6;
    color: var(--text);
}

@media (max-width: 600px) {
    .legal-list > div {
        grid-template-columns: 1fr;
    }
}

.btn-sm {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .hide-sm {
        display: none;
    }
}

.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-note {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.form-note a {
    color: var(--text);
    border-bottom: 1px solid var(--line-3);
}

/* --- Retour en haut de page ----------------------------------------------------- */
.back-to-top {
    position: fixed;
    z-index: 40;
    right: 24px;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: rgba(18, 17, 16, 0.8);
    border: 1px solid rgba(239, 220, 187, 0.25);
    color: var(--title);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, border-color .4s, color .4s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 859px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* --- Apparition au défilement ------------------------------------------------ */
/* Seuls les éléments sous la ligne de flottaison au chargement sont masqués (script). */
.js [data-reveal] {
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js [data-reveal].is-pending {
    opacity: 0;
    transform: translateY(28px);
}

/* --- Préférences et impression ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .hero-spiral path {
        stroke-dashoffset: 0;
    }

    .js .hl-city::after {
        transform: scaleX(1);
    }

    .js [data-reveal].is-pending {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .video-toggle,
    .hero-spiral,
    .hero-shade {
        display: none;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
