/* ============================================================
   garbewajda.com — Design system
   Direction : sobriété Apple. Blanc, gris #f5f5f7, noir profond,
   accent bleu. Typographie système (SF sur Apple, Inter ailleurs).
   Un seul fichier CSS pour tout le site.
   ============================================================ */

/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
    /* Couleurs — mode clair */
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --panel: #000000;          /* bandes sombres signature */
    --panel-ink: #f5f5f7;
    --panel-mute: #86868b;
    --ink: #1d1d1f;
    --mute: #6e6e73;
    --rule: #d2d2d7;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --nav-bg: rgba(255, 255, 255, 0.72);
    --card: #ffffff;
    --card-on-alt: #ffffff;

    /* Typographie */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display",
            "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI",
            Roboto, Arial, sans-serif;
    --text-sm: 0.875rem;       /* 14px */
    --text-base: 1.0625rem;    /* 17px — corps Apple */
    --text-lg: 1.3125rem;      /* 21px */
    --text-xl: 1.75rem;        /* 28px */

    /* Espacements */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-6: 1.5rem;
    --s-8: 2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;
    --s-20: 5rem;

    /* Géométrie */
    --container: 980px;
    --container-text: 692px;
    --gutter: max(22px, env(safe-area-inset-left));
    --section-pad: clamp(5rem, 10vw, 8.5rem);
    --r: 18px;
    --r-lg: 28px;
    --r-pill: 980px;

    /* Mouvement */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.32, 0.72, 0, 1);

    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #000000;
    --bg-alt: #161617;
    --panel: #161617;
    --panel-ink: #f5f5f7;
    --panel-mute: #86868b;
    --ink: #f5f5f7;
    --mute: #86868b;
    --rule: #424245;
    --accent: #2997ff;
    --accent-hover: #48a9ff;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --card: #1d1d1f;
    --card-on-alt: #1d1d1f;
    color-scheme: dark;
}

/* ------------------------------------------------------------
   2. Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    letter-spacing: -0.011em;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

body.menu-open { overflow: hidden; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -0.017em; }

p { text-wrap: pretty; }

.skip-link {
    position: fixed;
    top: -100px;
    left: var(--s-4);
    z-index: 10001;
    padding: var(--s-3) var(--s-6);
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-pill);
    font-weight: 600;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

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

/* ------------------------------------------------------------
   3. Navigation — barre translucide
   ------------------------------------------------------------ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
}

.nav-logo {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    list-style: none;
}

.nav-menu a {
    font-size: 0.8125rem;
    color: var(--mute);
    letter-spacing: -0.01em;
    transition: color 0.2s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }

.nav-menu a.nav-cta {
    color: #fff;
    background: var(--accent);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-weight: 500;
}
.nav-menu a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 8px;
    background: none;
    border: 0;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        inset: 52px 0 0 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: var(--s-8) var(--gutter);
        background: var(--bg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
                    visibility 0s 0.3s;
    }
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    }
    .nav-menu li { width: 100%; border-bottom: 1px solid var(--rule); }
    .nav-menu a {
        display: block;
        padding: var(--s-4) 0;
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--ink);
    }
    .nav-menu a.nav-cta {
        background: none;
        color: var(--accent);
        padding: var(--s-4) 0;
        border-radius: 0;
    }
}

/* ------------------------------------------------------------
   4. Boutons & liens
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 12px 22px;
    border-radius: var(--r-pill);
    font-size: var(--text-base);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    cursor: pointer;
    border: 0;
    transition: background 0.2s var(--ease), color 0.2s var(--ease),
                transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.btn-lg { padding: 15px 28px; font-size: var(--text-lg); }

/* Lien fléché « En savoir plus › » */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: var(--text-base);
    font-weight: 400;
}
.link-more::after { content: "›"; font-size: 1.15em; transition: transform 0.2s var(--ease); }
.link-more:hover { text-decoration: underline; }
.link-more:hover::after { transform: translateX(2px); }

.text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   5. Sections & structure
   ------------------------------------------------------------ */
.section {
    padding: var(--section-pad) var(--gutter);
}
.section--alt { background: var(--bg-alt); }

.container { max-width: var(--container); margin: 0 auto; }
.container-text { max-width: var(--container-text); margin: 0 auto; }

.section-head {
    max-width: var(--container-text);
    margin: 0 auto var(--s-16);
    text-align: center;
}
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p {
    font-size: var(--text-lg);
    color: var(--mute);
    letter-spacing: -0.015em;
}

.overline {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--mute);
    margin-bottom: var(--s-3);
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------ */
.hero {
    padding: calc(52px + clamp(4.5rem, 12vw, 9rem)) var(--gutter) var(--section-pad);
    text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }

.hero-kicker {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--mute);
    margin-bottom: var(--s-4);
    letter-spacing: -0.015em;
}

.hero h1 { margin-bottom: var(--s-6); }

.hero-lede {
    font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
    line-height: 1.45;
    color: var(--mute);
    letter-spacing: -0.017em;
    max-width: 640px;
    margin: 0 auto var(--s-10);
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-cta {
    display: flex;
    gap: var(--s-4);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* ------------------------------------------------------------
   7. Bande sombre — signature ODERSA
   ------------------------------------------------------------ */
.panel {
    background: var(--panel);
    color: var(--panel-ink);
    padding: var(--section-pad) var(--gutter);
}
.panel-inner { max-width: var(--container); margin: 0 auto; text-align: center; }

.panel .overline { color: var(--panel-mute); }

.panel h2 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: var(--s-6);
}

.panel-lede {
    font-size: var(--text-lg);
    color: var(--panel-mute);
    max-width: 620px;
    margin: 0 auto var(--s-12);
    letter-spacing: -0.015em;
}
.panel-lede strong { color: var(--panel-ink); font-weight: 600; }

.panel .link-more { font-size: var(--text-lg); color: #2997ff; }

/* Chips programmes */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    justify-content: center;
    margin-bottom: var(--s-12);
}
.chip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--panel-ink);
    background: rgba(255, 255, 255, 0.1);
}
.chip--light {
    color: var(--ink);
    background: var(--bg-alt);
}
html[data-theme="dark"] .chip--light { background: #2c2c2e; }

/* Stats géantes */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-8);
    margin: 0 auto;
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat-value {
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    margin-top: var(--s-2);
    font-size: var(--text-sm);
    color: var(--panel-mute);
    letter-spacing: -0.005em;
}
.stats--light .stat-label { color: var(--mute); }

/* ------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------ */
.card {
    background: var(--bg-alt);
    border-radius: var(--r-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.section--alt .card { background: var(--card-on-alt); }
.card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
html[data-theme="dark"] .card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }

a.card { display: block; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-6);
    max-width: var(--container);
    margin: 0 auto;
}

.card .overline { margin-bottom: var(--s-2); font-size: var(--text-sm); }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--mute); font-size: var(--text-base); }
.card .link-more { margin-top: var(--s-6); }

/* Grande card « réalisation » : texte + zone visuelle */
.feature-card {
    background: var(--bg-alt);
    border-radius: var(--r-lg);
    padding: clamp(2.25rem, 5vw, 4rem);
    max-width: var(--container);
    margin: 0 auto var(--s-6);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.section--alt .feature-card { background: var(--card-on-alt); }
@media (max-width: 820px) { .feature-card { grid-template-columns: 1fr; } }

.feature-card h3 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); margin-bottom: var(--s-4); }
.feature-card p { color: var(--mute); margin-bottom: var(--s-4); }
.feature-card p strong { color: var(--ink); font-weight: 600; }
.feature-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-6) 0; }

.feature-visual {
    border-radius: var(--r);
    background: var(--panel);
    color: var(--panel-ink);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-4);
    min-height: 260px;
}
.feature-visual .fv-big {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.15;
}
.feature-visual .fv-small { color: var(--panel-mute); font-size: var(--text-sm); }
.feature-visual hr { border: 0; border-top: 1px solid rgba(255,255,255,0.14); }

/* ------------------------------------------------------------
   9. Timeline (parcours) — l'ordre est l'information
   ------------------------------------------------------------ */
.timeline { max-width: var(--container-text); margin: 0 auto; }

.timeline-item {
    position: relative;
    padding: 0 0 var(--s-12) var(--s-10);
    border-left: 1px solid var(--rule);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-date {
    font-size: var(--text-sm);
    color: var(--mute);
    margin-bottom: var(--s-1);
}
.timeline-item h3 { margin-bottom: var(--s-1); }
.timeline-role {
    font-size: var(--text-base);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--s-3);
}
.timeline-item p { color: var(--mute); }
.timeline-item p strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------
   10. Listes d'articles (journal)
   ------------------------------------------------------------ */
.article-list { max-width: var(--container); margin: 0 auto; }

.article-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: var(--s-6);
    align-items: baseline;
    padding: var(--s-8) 0;
    border-bottom: 1px solid var(--rule);
}
.article-row:first-child { border-top: 1px solid var(--rule); }
.article-row:hover h3 { color: var(--accent); }
@media (max-width: 820px) {
    .article-row { grid-template-columns: 1fr; gap: var(--s-2); }
}

.article-row-meta { font-size: var(--text-sm); color: var(--mute); }
.article-row h3 { font-size: var(--text-xl); transition: color 0.2s var(--ease); }
.article-row p { color: var(--mute); margin-top: var(--s-2); }
.article-row .link-more { justify-self: end; }

/* ------------------------------------------------------------
   11. Pages article
   ------------------------------------------------------------ */
.article-hero {
    padding: calc(52px + clamp(3.5rem, 9vw, 6.5rem)) var(--gutter) clamp(2.5rem, 6vw, 4rem);
    max-width: var(--container-text);
    margin: 0 auto;
    text-align: center;
}
.article-hero .overline { color: var(--accent); }
.article-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin-bottom: var(--s-6); }
.article-hero-meta { color: var(--mute); font-size: var(--text-sm); }

.article-body {
    max-width: var(--container-text);
    margin: 0 auto;
    padding: 0 var(--gutter) var(--section-pad);
    font-size: var(--text-lg);
    line-height: 1.65;
    letter-spacing: -0.012em;
}
.article-body > * + * { margin-top: var(--s-6); }
.article-body h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    margin-top: var(--s-16);
}
.article-body h3 { margin-top: var(--s-10); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: var(--s-2); }
.article-body li::marker { color: var(--mute); }
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }
.article-body strong { font-weight: 600; }

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: var(--s-6);
    color: var(--mute);
    font-size: var(--text-lg);
}
.article-body blockquote cite {
    display: block;
    margin-top: var(--s-3);
    font-style: normal;
    font-size: var(--text-sm);
}

.article-body .callout {
    background: var(--bg-alt);
    border-radius: var(--r);
    padding: var(--s-8);
    font-size: var(--text-base);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}
.article-body th, .article-body td {
    text-align: left;
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--rule);
}
.article-body th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

.article-footer {
    max-width: var(--container-text);
    margin: 0 auto;
    padding: 0 var(--gutter) var(--section-pad);
}
.article-footer .card { background: var(--bg-alt); }

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    z-index: 1001;
}
@supports (animation-timeline: scroll(root)) {
    .reading-progress {
        width: 100%;
        transform-origin: 0 50%;
        transform: scaleX(0);
        animation: rp-grow linear;
        animation-timeline: scroll(root);
    }
    @keyframes rp-grow { to { transform: scaleX(1); } }
}

/* ------------------------------------------------------------
   12. Tables légales & pages sobres
   ------------------------------------------------------------ */
.legal-page {
    max-width: var(--container-text);
    margin: 0 auto;
    padding: calc(52px + clamp(3.5rem, 9vw, 6rem)) var(--gutter) var(--section-pad);
}
.legal-page header { margin-bottom: var(--s-16); }
.legal-page header h1 { margin-bottom: var(--s-4); }
.legal-page header p { color: var(--mute); }

.legal-section { margin-bottom: var(--s-16); }
.legal-section h2 { font-size: var(--text-xl); margin-bottom: var(--s-6); }
.legal-section h3 { font-size: var(--text-lg); margin: var(--s-8) 0 var(--s-3); }
.legal-section p, .legal-section li { color: var(--mute); }
.legal-section p + p { margin-top: var(--s-4); }
.legal-section ul { padding-left: 1.4em; margin-top: var(--s-3); }
.legal-section li + li { margin-top: var(--s-2); }
.legal-section a { color: var(--accent); }
.legal-section a:hover { text-decoration: underline; }
.legal-section strong { color: var(--ink); font-weight: 600; }

.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td {
    text-align: left;
    vertical-align: top;
    padding: var(--s-3) var(--s-4) var(--s-3) 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--text-base);
}
.legal-table th { font-weight: 600; white-space: nowrap; width: 220px; color: var(--ink); }
.legal-table td { color: var(--mute); }
.legal-table a { color: var(--accent); }
@media (max-width: 600px) {
    .legal-table th { width: 130px; white-space: normal; }
}

.legal-highlight {
    background: var(--bg-alt);
    border-radius: var(--r);
    padding: var(--s-6) var(--s-8);
    margin-bottom: var(--s-6);
}
.legal-highlight p { color: var(--ink); font-weight: 500; }

.legal-update {
    text-align: center;
    color: var(--mute);
    font-size: var(--text-sm);
    margin-top: var(--s-16);
}

/* ------------------------------------------------------------
   13. Presse
   ------------------------------------------------------------ */
.press-card {
    max-width: var(--container);
    margin: 0 auto;
    background: var(--panel);
    color: var(--panel-ink);
    border-radius: var(--r-lg);
    padding: clamp(2.25rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 820px) { .press-card { grid-template-columns: 1fr; } }

.press-card-quote {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.15;
}
.press-card-source { margin-top: var(--s-6); color: var(--panel-mute); font-size: var(--text-sm); }
.press-card-body p { color: var(--panel-mute); }
.press-card-body p + p { margin-top: var(--s-4); }
.press-card-body p strong { color: var(--panel-ink); font-weight: 600; }
.press-card-body .btn { margin-top: var(--s-8); }
.press-card-body .btn-ghost {
    color: var(--panel-ink);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.press-card-body .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.bio-block h3 { font-size: var(--text-lg); margin-bottom: var(--s-3); }
.bio-block p { color: var(--mute); }

/* ------------------------------------------------------------
   14. Contact
   ------------------------------------------------------------ */
.contact-list { max-width: var(--container-text); margin: 0 auto; }
.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--s-6);
    padding: var(--s-8) 0;
    border-bottom: 1px solid var(--rule);
}
.contact-item:first-child { border-top: 1px solid var(--rule); }
.contact-item-label { font-size: var(--text-sm); color: var(--mute); min-width: 110px; }
.contact-item-value { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.018em; }
a.contact-item:hover .contact-item-value { color: var(--accent); }
@media (max-width: 600px) {
    .contact-item { flex-direction: column; gap: var(--s-1); }
    .contact-item-value { font-size: var(--text-lg); }
}

/* ------------------------------------------------------------
   15. CTA final
   ------------------------------------------------------------ */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: var(--s-4); }
.cta-final p {
    font-size: var(--text-lg);
    color: var(--mute);
    max-width: 540px;
    margin: 0 auto var(--s-10);
}
.cta-final .hero-cta { justify-content: center; }

/* ------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------ */
footer {
    background: var(--bg-alt);
    padding: var(--s-16) var(--gutter) var(--s-10);
    font-size: var(--text-sm);
}
.footer-inner { max-width: var(--container); margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--s-10);
    padding-bottom: var(--s-10);
    border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .footer-logo { font-weight: 600; font-size: var(--text-base); }
.footer-brand p { color: var(--mute); margin-top: var(--s-3); }

.footer-col h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--s-4);
    letter-spacing: -0.005em;
}
.footer-col a {
    display: block;
    color: var(--mute);
    padding: 3px 0;
    transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-4);
    padding-top: var(--s-8);
    color: var(--mute);
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   17. Bascule de thème
   ------------------------------------------------------------ */
.dark-mode-toggle {
    position: fixed;
    bottom: var(--s-6);
    right: var(--s-6);
    z-index: 900;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s var(--ease), background 0.4s var(--ease);
}
.dark-mode-toggle:hover { transform: scale(1.06); }
.dark-mode-toggle .icon-moon { display: flex; }
.dark-mode-toggle .icon-sun { display: none; }
html[data-theme="dark"] .dark-mode-toggle .icon-moon { display: none; }
html[data-theme="dark"] .dark-mode-toggle .icon-sun { display: flex; }

html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* ------------------------------------------------------------
   18. Reveals
   ------------------------------------------------------------ */
/* L'état masqué ne s'applique que si le JS est présent pour l'annuler */
html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--delay, 0s);
}
html.js .reveal.active { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   19. Divers — erreur 404, plan du site
   ------------------------------------------------------------ */
.error-page {
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(52px + var(--s-16)) var(--gutter) var(--s-16);
}
.error-page .error-code {
    font-size: clamp(5rem, 16vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--rule);
}
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: var(--s-4) 0; }
.error-page p { color: var(--mute); max-width: 460px; margin-bottom: var(--s-8); }

.sitemap-list { list-style: none; }
.sitemap-list > li + li { margin-top: var(--s-3); }
.sitemap-list a { color: var(--accent); font-size: var(--text-lg); }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-list ul { list-style: none; padding-left: var(--s-8); margin-top: var(--s-3); }
.sitemap-list ul a { font-size: var(--text-base); }

/* ------------------------------------------------------------
   20. Portrait, images & effets
   ------------------------------------------------------------ */
.photo-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}
.photo-card img { width: 100%; height: auto; display: block; }

/* Hero en deux colonnes : texte + portrait */
.hero-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    text-align: left;
}
.hero-split .hero-lede { margin-left: 0; }
.hero-split .hero-cta { justify-content: flex-start; }
@media (max-width: 820px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero-split .hero-lede { margin: 0 auto var(--s-10); }
    .hero-split .hero-cta { justify-content: center; }
    .hero-portrait { max-width: 400px; margin: 0 auto; }
}

.hero-portrait {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    transform: rotate(1.5deg);
    transition: transform 0.6s var(--ease);
}
.hero-portrait:hover { transform: rotate(0deg) scale(1.01); }
.hero-portrait img { width: 100%; display: block; }
html[data-theme="dark"] .hero-portrait,
html[data-theme="dark"] .photo-card { box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65); }

/* Avatar rond (parcours) */
.avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--s-6);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

/* Halo lumineux animé derrière les heros */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; }
.hero-glow {
    position: absolute;
    top: -22%;
    left: 50%;
    width: min(920px, 120vw);
    height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(0, 113, 227, 0.13), transparent 70%);
    filter: blur(42px);
    pointer-events: none;
    animation: glow-drift 16s ease-in-out infinite alternate;
}
html[data-theme="dark"] .hero-glow {
    background: radial-gradient(closest-side, rgba(41, 151, 255, 0.15), transparent 70%);
}
@keyframes glow-drift {
    from { transform: translateX(-56%) translateY(0); }
    to   { transform: translateX(-44%) translateY(36px); }
}

/* Lueur discrète dans la bande sombre */
.panel { position: relative; overflow: hidden; }
.panel-inner { position: relative; }
.panel::before {
    content: "";
    position: absolute;
    top: -32%;
    left: 50%;
    width: min(1100px, 140vw);
    height: 720px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(41, 151, 255, 0.11), transparent 70%);
    filter: blur(34px);
    pointer-events: none;
}

/* Mot en dégradé */
.grad-text {
    background: linear-gradient(92deg, #0071e3, #7d4cff 55%, #b845ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
html[data-theme="dark"] .grad-text {
    background: linear-gradient(92deg, #2997ff, #8f6bff 55%, #c56bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Cards : lift au survol */
.card:hover { transform: translateY(-4px); }

/* Visuel dégradé nuit (variante de feature-visual) */
.feature-visual--glow {
    background: linear-gradient(140deg, #0b1220 0%, #0b2a52 55%, #10449b 130%);
}

/* ------------------------------------------------------------
   21. Accessibilité & impression
   ------------------------------------------------------------ */
@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;
    }
    html.js .reveal { opacity: 1; transform: none; }
}

/* Contenu réservé à l'impression (ex. contact sur le CV) */
.print-only { display: none; }

@media print {
    .nav, footer, .dark-mode-toggle, .skip-link, .reading-progress,
    .no-print, .cta-final, .hero-glow { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .panel, .press-card, .feature-visual, .section--alt { background: #fff !important; color: #000 !important; }
    .reveal { opacity: 1 !important; transform: none !important; }

    .print-only {
        display: block;
        font-size: 10.5pt;
        color: #333;
        margin-top: 8pt;
    }

    /* Parcours en version CV : compact, une colonne, sans effets */
    .hero { padding: 0 0 14pt; }
    .hero h1 { font-size: 22pt; }
    .hero-lede { font-size: 11pt; margin-bottom: 0; }
    .avatar { width: 64pt; height: 64pt; box-shadow: none; margin-bottom: 8pt; }
    .section { padding: 12pt 0; }
    .section-head { margin-bottom: 10pt; text-align: left; }
    .section-head h2 { font-size: 15pt; }
    .section-head p { font-size: 10.5pt; }
    .timeline-item { padding: 0 0 10pt 14pt; break-inside: avoid; }
    .timeline-item h3 { font-size: 12pt; }
    .card-grid { display: block; }
    .card {
        background: #fff !important;
        border: 1px solid #ddd;
        border-radius: 6pt;
        padding: 8pt 10pt;
        margin-bottom: 6pt;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .chip, .chip--light { background: #f0f0f0 !important; color: #000 !important; padding: 2pt 7pt; }
    a { color: #000; }
}
