/* ==========================================================================
   T3P WEB — feuille de style unique
   Référence graphique : DESIGN.md (palette sarcelle, surfaces sans ombre,
   typographie medium, accent aurore réservé aux appels à l'action).
   ========================================================================== */

/* Police auto-hébergée (fichier à placer dans assets/fonts/). Repli : police système. */
@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Couleurs */
    --abyss: #012624;
    --deep: #011d1c;
    --kelp: #003734;
    --mist: #edfffe;
    --platinum: #ffffff;
    --silver: #bbc7c6;
    --slate: #707777;
    --lavender: #fde9ff;
    --teal: #00827c;
    --aqua: #cbfffc;
    --teal-glass: rgba(3, 81, 75, 0.5);
    --line: rgba(255, 255, 255, 0.1);
    --error: #ff7070; /* messages d'erreur du formulaire (contraste suffisant sur fond sarcelle) */
    --grad-bio: linear-gradient(90deg, rgb(0, 130, 124) 0%, rgb(203, 255, 252) 100%);
    --grad-aurora: linear-gradient(90deg, rgb(203, 255, 252) 0%, rgb(237, 255, 254) 26.25%, rgb(255, 253, 250) 47.57%, rgb(250, 209, 255) 88.96%);

    /* Typographie */
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ui: Arial, ui-sans-serif, system-ui, sans-serif;

    /* Mise en page */
    --page-max: 1440px;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 80px;
    --radius-card: 16px;
    --radius-sm: 6px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--abyss);
    color: var(--silver);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    color: var(--platinum);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--teal); color: var(--platinum); }

:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--aqua);
    color: #222;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Marqueur de contenu à fournir (à retirer une fois les contenus intégrés) */
.todo {
    display: inline;
    padding: 0 6px;
    color: var(--mist);
    background: rgba(253, 233, 255, 0.07);
    border: 1px dashed rgba(253, 233, 255, 0.55);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* --- Typographie --------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--silver);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aqua);
}
.eyebrow--plain::before { display: none; }

.display {
    margin: 0 0 0.3em;
    color: var(--platinum);
    font-size: clamp(2.75rem, 1.2rem + 6vw, 6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}
.h1 {
    font-size: clamp(2.5rem, 1.5rem + 4vw, 3.8rem);
    letter-spacing: -0.04em;
}
.h2 {
    font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3rem);
    letter-spacing: -0.035em;
}
.h3 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
    letter-spacing: -0.02em;
}
.lead {
    color: var(--mist);
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.5;
}
.muted { color: var(--silver); }
.text-mist { color: var(--mist); }

/* --- Boutons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 13px; }

.btn-aurora {
    color: #222222;
    background: var(--grad-aurora);
    background-size: 160% 100%;
    background-position: 0% 0;
    transition: transform 0.35s var(--ease), background-position 0.8s var(--ease);
}
.btn-aurora:hover { background-position: 100% 0; }

.btn-ghost {
    color: var(--platinum);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.35s var(--ease);
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

.arrow-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--teal-glass);
    color: var(--platinum);
    font-size: 15px;
    line-height: 1;
    transition: background-color 0.3s, transform 0.35s var(--ease);
}

/* --- En-tête ------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    transition: transform 0.45s var(--ease);
}
/* Fond flouté sur un pseudo-élément, pour ne pas piéger le menu mobile en position fixe */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(1, 38, 36, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transition: opacity 0.4s;
}
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--platinum);
    text-decoration: none;
}
.logo-mark { width: 32px; height: 32px; }
.logo-text {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.logo-text span {
    margin-left: 0.3em;
    color: var(--silver);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: var(--silver);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--grad-bio);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--platinum); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta-mobile { display: none; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--teal-glass);
    color: var(--platinum);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.35s var(--ease);
}
.nav-toggle-bars { position: relative; transform: translateY(-3px); }
.nav-toggle-bars::before {
    content: "";
    position: absolute;
    top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        padding: 32px var(--gutter) 48px;
        background: var(--deep);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0s linear 0.45s;
    }
    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0s;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a {
        display: block;
        padding: 18px 0;
        color: var(--platinum);
        font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
        font-weight: 500;
        letter-spacing: -0.03em;
        text-transform: none;
    }
    .main-nav a::after { display: none; }
    .main-nav a[aria-current="page"] { color: var(--aqua); }
    .nav-cta-mobile { display: block; border-bottom: 0 !important; margin-top: 32px; }
    .nav-cta-mobile .btn {
        display: flex;
        width: 100%;
        padding: 16px 22px;
        color: #222;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--deep { background: var(--deep); }
.section--cta { padding-top: 0; }

.section-head {
    max-width: 760px;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}
.section-head .lead { margin-top: 20px; }

/* --- Hero (accueil) ------------------------------------------------------ */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 40px) 0 120px;
    overflow: hidden;
    text-align: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(55% 45% at 50% 45%, rgba(0, 130, 124, 0.28), transparent 70%),
        radial-gradient(30% 30% at 78% 75%, rgba(250, 209, 255, 0.07), transparent 70%),
        radial-gradient(35% 35% at 15% 20%, rgba(203, 255, 252, 0.06), transparent 70%);
}
/* Voile radial derrière le texte pour garantir la lisibilité sur la sphère */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(40% 30% at 50% 50%, rgba(1, 38, 36, 0.55), transparent 75%);
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.hero-orb canvas {
    width: min(92vw, 860px);
    aspect-ratio: 1;
    opacity: 0.85;
}
.hero-content {
    position: relative;
    max-width: 980px;
}
.hero .lead {
    max-width: 640px;
    margin: 28px auto 0;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--silver);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateX(-50%);
}
.scroll-cue::after {
    content: "";
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--aqua), transparent);
    transform-origin: top;
    animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* --- Hero des pages intérieures ----------------------------------------- */
.page-hero {
    position: relative;
    isolation: isolate;
    padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 100px);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(45% 60% at 80% 40%, rgba(0, 130, 124, 0.22), transparent 70%);
}
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}
.page-hero .lead { max-width: 620px; margin-top: 28px; }
.page-hero .hero-actions { justify-content: flex-start; }
.page-hero-orb canvas {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    margin-inline: auto;
}
.page-hero--simple .container { max-width: 980px; }

@media (max-width: 860px) {
    .page-hero-grid { grid-template-columns: 1fr; }
    .page-hero-orb {
        position: absolute;
        top: calc(var(--header-h) - 20px);
        right: -25%;
        z-index: -1;
        width: 75%;
        opacity: 0.45;
    }
}

/* --- Bandeau défilant ---------------------------------------------------- */
.marquee {
    overflow: hidden;
    padding: 22px 0;
    border-block: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
    display: flex;
    flex: none;
    gap: 48px;
    padding-right: 48px;
    margin: 0;
    list-style: none;
}
.marquee-group li {
    display: flex;
    align-items: center;
    gap: 48px;
    color: var(--mist);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}
.marquee-group li::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Cartes -------------------------------------------------------------- */
.card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--radius-card);
    background: var(--kelp);
}
.card h3 {
    font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.9rem);
    letter-spacing: -0.02em;
}
.card p { color: var(--silver); }

/* Halo lumineux qui suit le pointeur (variables --mx/--my mises à jour en JS) */
.glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(203, 255, 252, 0.09), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.glow:hover::before { opacity: 1; }

.card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    background: var(--teal-glass);
    color: var(--aqua);
}
.card-icon svg { width: 22px; height: 22px; }

.grid {
    display: grid;
    gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Lignes de services (« Feature Row Card ») */
.explore {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
}
.feature-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.feature-row {
    position: relative;
    display: block;
    overflow: hidden;
    padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    text-decoration: none;
    transition: background-color 0.4s, border-color 0.4s;
}
.feature-row:hover {
    background: var(--kelp);
    border-color: transparent;
}
.feature-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}
.feature-row h3 {
    margin: 0;
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
    letter-spacing: -0.025em;
}
.feature-row p { max-width: 540px; color: var(--silver); }
.feature-row h3 + p { margin-top: 14px; }
.feature-row:hover .arrow-btn {
    background: var(--teal);
    transform: rotate(45deg);
}

.explore-visual { max-width: 520px; width: 100%; margin-inline: auto; }
.explore-photo {
    margin-block: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--kelp);
}
.explore-photo img {
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--ease);
}
.explore-photo:hover img { transform: scale(1.03); }

@media (max-width: 900px) {
    .explore { grid-template-columns: 1fr; }
    .explore-visual { max-width: 340px; order: -1; }
}

/* --- Illustration moléculaire ------------------------------------------- */
.molecule { width: 100%; height: auto; overflow: visible; }
.molecule .ml {
    stroke: rgba(237, 255, 254, 0.45);
    stroke-width: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
.molecule .mn { transform-box: fill-box; transform-origin: center; }
.molecule .mn--solid { fill: var(--platinum); }
.molecule .mn--ring { fill: none; stroke: var(--platinum); stroke-width: 1.5; }
.molecule .mn--accent { fill: var(--lavender); }
.molecule .mn-1, .molecule .mn-3, .molecule .mn-5 { animation: float-a 7s ease-in-out infinite; }
.molecule .mn-2, .molecule .mn-4 { animation: float-b 9s ease-in-out infinite; }
@keyframes float-a { 50% { transform: translate(4px, -6px); } }
@keyframes float-b { 50% { transform: translate(-5px, 4px); } }

.js .molecule .ml {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.4s var(--ease);
}
.js .molecule .mn {
    opacity: 0;
    scale: 0.3;
    transition: opacity 0.8s var(--ease), scale 0.8s var(--ease);
}
.js .molecule.is-visible .ml { stroke-dashoffset: 0; }
.js .molecule.is-visible .mn { opacity: 1; scale: 1; }
.js .molecule .ml-1, .js .molecule .mn-1 { transition-delay: 0.15s; }
.js .molecule .ml-2, .js .molecule .mn-2 { transition-delay: 0.3s; }
.js .molecule .ml-3, .js .molecule .mn-3 { transition-delay: 0.45s; }
.js .molecule .ml-4, .js .molecule .mn-4 { transition-delay: 0.6s; }
.js .molecule .ml-5, .js .molecule .mn-5 { transition-delay: 0.75s; }

/* --- Étapes numérotées --------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 40px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.step {
    position: relative;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--grad-bio);
    transform-origin: left;
    transition: transform 1.4s var(--ease);
}
.js .step::before { transform: scaleX(0); }
.js .step.is-visible::before { transform: scaleX(1); }
.step-num {
    display: block;
    margin-bottom: 24px;
    color: var(--lavender);
    font-size: clamp(3rem, 2rem + 3vw, 5.4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.046em;
}
.step h3 { font-size: 1.5rem; letter-spacing: -0.02em; }

/* --- Texte cinétique ----------------------------------------------------- */
.kinetic {
    overflow: hidden;
    padding-block: clamp(40px, 6vw, 80px);
    white-space: nowrap;
}
.kinetic-line {
    display: block;
    width: max-content;
    color: var(--platinum);
    font-size: clamp(4.5rem, 1.5rem + 12vw, 16rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.046em;
    will-change: transform;
}
.kinetic-line--outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(237, 255, 254, 0.35);
}
.kinetic-line + .kinetic-line { margin-top: 0.05em; }

/* --- Listes -------------------------------------------------------------- */
.check-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.check-list li {
    display: flex;
    gap: 14px;
    color: var(--mist);
}
.check-list li::before {
    content: "✓";
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: var(--radius-sm);
    background: var(--teal-glass);
    color: var(--aqua);
    font-size: 12px;
}

/* --- Bloc deux colonnes texte / contenu --------------------------------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}
.split--center { align-items: center; }
.sticky { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .sticky { position: static; }
}

/* --- Tarifs -------------------------------------------------------------- */
.price-card {
    display: flex;
    flex-direction: column;
}
.price-card .price {
    margin: 8px 0 24px;
    color: var(--lavender);
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.price-card .check-list { margin-bottom: 32px; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-note { margin-top: 24px; font-size: 14px; }

/* --- Exemples / portfolio ----------------------------------------------- */
.example-card { padding: 0; }
.example-visual {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(60% 80% at 30% 20%, rgba(0, 130, 124, 0.35), transparent 70%),
        var(--deep);
    border-bottom: 1px solid var(--line);
}
.example-visual { overflow: hidden; }
.example-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.9s var(--ease);
}
.example-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.example-link:hover .example-visual img { transform: scale(1.04); }
.example-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 32px 32px;
}
.example-tag {
    margin-bottom: 12px;
    color: var(--silver);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.example-url {
    margin-top: auto;
    padding-top: 20px;
    color: var(--aqua);
    font-size: 14px;
}
.example-link:hover .btn-arrow { transform: translate(2px, -2px); }

/* --- Bloc panneau CTA ---------------------------------------------------- */
.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 10vw, 120px) clamp(24px, 5vw, 80px);
    border-radius: var(--radius-card);
    background: var(--deep);
    text-align: center;
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% -20%;
    z-index: -1;
    height: 100%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 130, 124, 0.35), transparent 70%);
}
.cta-panel .lead { max-width: 560px; margin: 20px auto 36px; }

/* --- Note / encadré ------------------------------------------------------ */
.note {
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--silver);
    font-size: 15px;
}
.note strong { color: var(--mist); font-weight: 500; }

/* --- Pages de texte (mentions légales, confidentialité) ----------------- */
.prose { max-width: 760px; }
.prose h2 {
    margin: 56px 0 18px;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--silver); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--mist); text-underline-offset: 3px; }
.prose strong { color: var(--mist); font-weight: 500; }

/* --- Formulaire ---------------------------------------------------------- */
.form-card { padding: clamp(28px, 4vw, 48px); }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}
.field label,
.field-label {
    color: var(--mist);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.field .req { color: var(--aqua); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    background: var(--deep);
    color: var(--platinum);
    font: inherit;
    transition: border-color 0.3s, background-color 0.3s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23bbc7c6' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--slate); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--aqua);
    background-color: #00211f;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--error);
    box-shadow: 0 0 0 1px var(--error);
}
.field.has-error label { color: var(--error); }
/* Sélecteur renforcé : sinon la règle « .card p » repeint le message en gris */
.form-card .field-error {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    color: var(--error);
    font-size: 14px;
    line-height: 1.4;
}
.form-card .field-error::before {
    content: "!";
    display: grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--error);
    color: var(--deep);
    font-size: 12px;
    font-weight: 700;
}
.field-hint { margin: 0; color: var(--silver); font-size: 13px; }

.field-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.field-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--teal);
}
.field-check label {
    color: var(--silver);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.field-check label a { color: var(--mist); }

/* Champ piège anti-robots : masqué visuellement et pour les lecteurs d'écran */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 28px;
}
.form-actions .field-hint { flex: 1 1 220px; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.alert {
    margin-bottom: 28px;
    padding: 20px 24px;
    border: 1px solid;
    border-radius: var(--radius-sm);
    background: var(--deep);
}
.alert p { margin: 0; }
.alert strong { display: block; margin-bottom: 4px; color: var(--platinum); font-weight: 500; }
.alert--success { border-color: rgba(203, 255, 252, 0.5); }
.form-card .alert--success p { color: var(--mist); }
.alert--error {
    border-color: var(--error);
    background: rgba(255, 112, 112, 0.08);
}
.alert--error strong,
.form-card .alert--error p { color: var(--error); }

.contact-info {
    display: grid;
    gap: 0;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}
.contact-info li {
    display: grid;
    gap: 4px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.contact-info li:last-child { border-bottom: 1px solid var(--line); }
.contact-info .field-label { color: var(--silver); }
.contact-info a, .contact-info span:not(.field-label):not(.todo) { color: var(--platinum); text-decoration: none; }

/* Portrait (page contact) */
.portrait {
    max-width: 520px;
    margin: 40px 0 0;
}
.portrait-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--kelp);
}
/* Léger voile sarcelle pour fondre la photo dans la palette du site */
.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 38, 36, 0.45), transparent 45%);
    pointer-events: none;
}
.portrait-frame img {
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--ease);
}
.portrait:hover .portrait-frame img { transform: scale(1.03); }
.portrait figcaption {
    display: grid;
    gap: 4px;
    margin-top: 16px;
}
.portrait-name {
    color: var(--platinum);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.portrait-role {
    color: var(--silver);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Page À propos : signature et photo panoramique */
.about-signature {
    display: grid;
    gap: 4px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--platinum);
    font-size: 18px;
    font-weight: 500;
}
.about-signature span {
    color: var(--silver);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.about-photo {
    position: relative;
    overflow: hidden;
    margin: clamp(48px, 7vw, 96px) 0 0;
    border-radius: var(--radius-card);
    background: var(--kelp);
}
.about-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 29, 28, 0.35), transparent 40%);
    pointer-events: none;
}
.about-photo img {
    width: 100%;
    height: auto;
    transition: transform 1.4s var(--ease);
}
.about-photo:hover img { transform: scale(1.02); }
/* Sur mobile, la photo panoramique serait trop fine : on la recadre sur Franck */
@media (max-width: 700px) {
    .about-photo img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: 56% center;
    }
}

/* --- Pied de page -------------------------------------------------------- */
.site-footer {
    overflow: hidden;
    padding: clamp(80px, 10vw, 120px) 0 32px;
    background: var(--deep);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px 40px;
}
.footer-brand p { max-width: 340px; margin: 20px 0 28px; }
.footer-col ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-col a {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--platinum); }
.footer-col .eyebrow { margin-bottom: 20px; color: var(--mist); }

.footer-kinetic {
    margin-top: clamp(56px, 8vw, 100px);
    overflow: hidden;
}
.footer-kinetic .kinetic-line { font-size: clamp(5rem, 2rem + 16vw, 18.4rem); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
.footer-bottom a { color: var(--silver); text-decoration: none; }
.footer-bottom a:hover { color: var(--platinum); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Bandeau d'information cookies -------------------------------------- */
.cookie-note {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    width: calc(100% - 32px);
    max-width: 680px;
    padding: 16px 16px 16px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(0, 55, 52, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translate(-50%, 0);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.cookie-note[hidden] { display: none; }
.cookie-note.is-leaving,
.cookie-note.is-entering {
    opacity: 0;
    transform: translate(-50%, 16px);
}
.cookie-note p {
    flex: 1;
    margin: 0;
    color: var(--mist);
    font-size: 14px;
    line-height: 1.45;
}
.cookie-note a { color: var(--aqua); text-underline-offset: 3px; }
.cookie-note .btn { flex: none; min-width: 72px; }
@media (max-width: 520px) {
    .cookie-note { bottom: 12px; padding: 16px; }
    .cookie-note p { font-size: 13px; }
}

/* --- Page 404 ------------------------------------------------------------ */
.error-page {
    display: grid;
    place-items: center;
    min-height: 80vh;
    text-align: center;
}
.error-code {
    color: var(--lavender);
    font-size: clamp(6rem, 3rem + 14vw, 14rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

/* --- Animations d'apparition au défilement ------------------------------ */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }
.js .reveal.d4 { transition-delay: 0.4s; }

/* Titre découpé en mots (animation ligne par ligne) */
.split-words .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}
.split-words .w > span {
    display: inline-block;
    transition: transform 1.1s var(--ease);
}
.js .split-words .w > span { transform: translateY(105%); }
.js .split-words.is-visible .w > span { transform: none; }

/* --- Préférence « réduire les animations » ------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    .marquee-track { animation: none; }
    .js .reveal, .js .split-words .w > span { opacity: 1; transform: none; }
}
