@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,100..900;1,6..12,100..900&display=swap');

@font-face {
    font-family: 'Neuilis Sans';
    src: local('Neuilis Sans'), local('NeuilisSans'), local('Neulis Sans'), local('NeulisSans');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neulis Sans';
    src: local('Neulis Sans'), local('NeulisSans'), local('Neuilis Sans'), local('NeuilisSans');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/**
 * =========================================================================
 * FEUILLE DE STYLES PRINCIPALE (style.css)
 * =========================================================================
 * 
 * Sommaire :
 *  1. Variables CSS globales (:root)
 *  2. Règles de base (Reset & typographie générale)
 *  3. Navigation & Bouton Menu (Desktop)
 *  4. En-tête & Sélecteur de langue (US / FR)
 *  5. Section Hero (Page d'accueil)
 *  6. Section Projets sélectionnés (Page d'accueil)
 *  7. Page Index des projets (projects.php)
 *  8. Page Fiche détaillée d'un projet (project.php)
 *  9. Pages À propos (about.php) et Contact (contact.php)
 *  10. Pied de page (Footer)
 *  11. Adaptations Responsive Tablette & Mobile (max-width: 900px)
 *  12. Adaptations Petit Mobile (max-width: 520px)
 */

/* =========================================================================
   1. VARIABLES GLOBALES (:root)
   ========================================================================= */
:root {
    --ink: #111110;                           /* Noir principal pour les textes */
    --paper: #ffffff;                         /* Blanc pour les fonds */
    --muted: #c4c1c1;                         /* Gris pour textes secondaires / numéros */
    --cyan: #55b7c7;                          /* Couleur d'accentuation cyan */
    --line: #8e8e8e;                          /* Gris pour les lignes et bordures */
    --font-sans: 'Neuilis Sans', 'Neulis Sans', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Neuilis Sans', 'Neulis Sans', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Neuilis Sans', 'Neulis Sans', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --page-x: 3.15vw;                         /* Marge latérale adaptative */
}

/* =========================================================================
   2. RÈGLES DE BASE (Reset & Typographie générale)
   ========================================================================= */
* { box-sizing: border-box; }
*, *::before, *::after, html, body, button, input, select, textarea {
    font-family: 'Neuilis Sans', 'Neulis Sans', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
html {
    font-size: 18px; /* Augmentation de la taille de la police de tout le site (base 16px -> 18px) */
    -webkit-text-size-adjust: 100%;
}
@media (max-width: 480px) {
    html {
        font-size: 16px;
    }
}
html, body {
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}
a { color: inherit; }
button { font: inherit; }

/* =========================================================================
   3. HEADER STICKY (MENU HORIZONTAL HAUT DE PAGE AVEC LOGO)
   ========================================================================= */
.site-sticky-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 72px;
    padding: 16px clamp(28px, 5.5vw, 72px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.site-sticky-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 28px);
    position: relative;
    z-index: 2;
}

.site-sticky-nav a {
    font-family: var(--font-sans);
    font-size: clamp(0.92rem, 1.1vw, 1rem);
    text-decoration: none;
    color: #77746e;
    transition: color .2s ease;
}

.site-sticky-nav a.active,
.site-sticky-nav a:hover {
    color: var(--ink);
    font-weight: 700;
}

/* Bouton Menu Sandwich (3 traits) Mobile */
.site-mobile-burger {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 20;
}

.site-mobile-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--ink, #111110);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

body.menu-is-open .site-mobile-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-is-open .site-mobile-burger span:nth-child(2) {
    opacity: 0;
}

body.menu-is-open .site-mobile-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tiroir Overlay Navigation Mobile */
.site-mobile-drawer {
    display: none;
}

.site-sticky-left,
.site-sticky-right {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.site-sticky-lang--mobile {
    display: none !important;
}

.site-sticky-lang--desktop {
    display: flex !important;
}

@media (max-width: 768px) {
    .site-sticky-header {
        min-height: 58px !important;
        padding: 10px 16px !important;
    }

    .site-sticky-logo img {
        height: 28px !important;
    }

    .site-sticky-logo span {
        font-size: 0.50rem !important;
        letter-spacing: 0.12em !important;
        margin-top: 2px !important;
    }

    .site-sticky-lang--mobile {
        display: flex !important;
        font-family: var(--font-sans);
        font-size: 0.8rem;
        letter-spacing: 0.04em;
        gap: 6px;
    }

    .site-sticky-lang--desktop {
        display: none !important;
    }

    .site-mobile-burger {
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        margin-left: auto;
    }

    .site-sticky-nav {
        display: none !important;
    }

    .site-mobile-drawer {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 58px);
        height: calc(100dvh - 58px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px 20px 32px;
        box-sizing: border-box;
        z-index: 99;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    body.menu-is-open .site-mobile-drawer {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-mobile-drawer__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 20px;
        margin: auto 0;
        padding: 16px 0;
        width: 100%;
    }

    .site-mobile-drawer__nav a {
        font-family: var(--font-sans);
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        text-decoration: none;
        color: #77746e;
        transition: color 0.2s ease;
        text-align: center;
    }

    .site-mobile-drawer__nav a.active,
    .site-mobile-drawer__nav a:hover {
        font-weight: 700;
        color: var(--ink, #111110);
    }

    .site-mobile-drawer__footer {
        padding-top: 16px;
        border-top: 1px solid rgba(17, 17, 16, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        width: 100%;
    }

    .site-mobile-drawer__links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .site-mobile-drawer__links a {
        font-family: var(--font-sans);
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ink, #111110);
        text-decoration: none;
    }

    .site-mobile-drawer__brand {
        font-family: var(--font-sans);
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #77746e;
        text-align: center;
        line-height: 1.4;
    }
}

.site-sticky-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    z-index: 2;
}

.site-sticky-logo img {
    height: clamp(34px, 4.5vh, 42px);
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform .2s ease;
}

.site-sticky-logo:hover img {
    transform: scale(1.05);
}

.site-sticky-logo span {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

.site-sticky-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.site-sticky-lang a {
    text-decoration: none;
    color: #c4c1c1;
    font-weight: 400;
    transition: color .2s ease;
}

.site-sticky-lang a.active,
.site-sticky-lang a:hover {
    color: var(--ink);
    font-weight: 700;
}

/* =========================================================================
   HOMEPAGE (HERO + GRILLE 2 COLONNES)
   ========================================================================= */
.home-page-container {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.home-hero-section {
    position: sticky;
    top: 72px;
    z-index: 0;
    width: 100%;
    height: calc(100vh - 72px);
    max-width: 1340px;
    margin: 0 auto;
    padding: clamp(24px, 4vh, 48px) clamp(20px, 4vw, 64px) clamp(28px, 4vh, 48px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    overflow: hidden;
}

.home-hero-duo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    margin: auto 0;
    transform: translateX(clamp(32px, 5vw, 88px));
}

@media (max-width: 768px) {
    .home-hero-section {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: calc(100dvh - 58px) !important;
        overflow: visible !important;
        padding: 24px var(--page-x) 28px !important;
        justify-content: flex-start !important;
        gap: 20px !important;
    }

    .home-hero-duo {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        transform: none !important;
        margin: 0 !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .home-hero-portrait {
        width: 120px !important;
        aspect-ratio: 140 / 175 !important;
        height: auto !important;
    }

    .home-hero-copy {
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-hero-desc {
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
        margin-bottom: 6px !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .home-hero-email {
        align-self: flex-start !important;
        font-size: 0.8rem !important;
        margin-top: 4px !important;
    }

    .home-hero-bottom-bar {
        margin-top: auto !important;
        padding-top: 24px !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .home-hero-badge {
        font-size: clamp(0.58rem, 2.7vw, 0.68rem) !important;
        padding: 5px 10px !important;
        letter-spacing: 0.08em !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
    }

    .home-hero-scroll-cue {
        font-size: 0.65rem !important;
    }
}

.home-hero-portrait {
    width: clamp(140px, 14vw, 175px);
    aspect-ratio: 140 / 175;
    flex-shrink: 0;
    overflow: hidden;
    background: #efede8;
}

.home-hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    display: block;
}

.home-hero-copy {
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.home-hero-desc {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 1.15vw, 1.05rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 8px 0;
}

.home-hero-about-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 6px;
    transition: opacity .2s;
}

.home-hero-about-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.home-hero-email {
    align-self: flex-end;
    font-family: var(--font-sans);
    font-size: clamp(0.78rem, 0.95vw, 0.84rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 8px;
    transition: color .2s;
}

.home-hero-email:hover {
    color: var(--cyan);
}

.home-hero-bottom-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(32px, 5vh, 64px);
}

.home-hero-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8e8b85;
    text-decoration: none;
    transition: color .2s ease;
}

.home-hero-scroll-cue:hover {
    color: var(--ink);
}

.home-hero-badge-wrap {
    margin-top: clamp(40px, 7vh, 80px);
    align-self: flex-start;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--ink);
    background: #ffffff;
    font-family: var(--font-mono);
    font-size: clamp(0.66rem, 0.8vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}

.home-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
    display: inline-block;
}

/* Grille 2 colonnes des projets sans bordure, format rectangulaire & plus grand avec effet empilement */
.home-grid-section {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.06);
    padding: clamp(48px, 6vh, 64px) 0 clamp(64px, 10vh, 120px);
    box-sizing: border-box;
    scroll-margin-top: 72px;
}

.home-grid-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
    box-sizing: border-box;
}

.home-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    border: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    .home-projects-grid {
        grid-template-columns: 1fr;
    }
    .home-grid-section {
        padding: 32px 0 64px !important;
        box-shadow: none !important;
    }
    .home-grid-container {
        padding: 0 12px !important;
    }
    .home-project-card__info {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 35%, transparent 65%) !important;
        padding: 16px !important;
    }
    .home-project-card__image-wrap img {
        filter: grayscale(0%) !important;
    }
    .home-project-card__title {
        font-size: 1rem !important;
    }
    .home-project-card__category {
        font-size: 0.72rem !important;
    }
}

.home-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.home-project-card__image-wrap {
    width: 100%;
    aspect-ratio: 1024 / 801;
    background: #f5f4f1;
    overflow: hidden;
    position: relative;
}

.home-project-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    display: block;
}

.home-project-card:hover .home-project-card__image-wrap img {
    filter: grayscale(0%);
}

.home-project-card__info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 30%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(16px, 3vw, 24px);
    pointer-events: none;
    box-sizing: border-box;
    z-index: 2;
}

.home-project-card:hover .home-project-card__info {
    opacity: 1;
}

.home-project-card__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.home-project-card__category {
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 0.9vw, 0.78rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Conteneur des liens du menu sur grand écran */
.site-nav {
    position: fixed;
    top: 32px;
    left: 80px;
    height: 33px;
    display: flex;
    align-items: center;
    gap: 18px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 220;
}

/* Liens du menu : typographie Inter épurée */
.site-nav a {
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    opacity: .45;
    transition: opacity .15s ease;
    padding: 6px 0;
}

/* Lien survolé ou actif (100% noir) */
.site-nav a:hover,
.site-nav a.active {
    opacity: 1;
    font-weight: 700;
}

/* Menu ouvert : affichage fluide des liens */
.menu-is-open .site-nav {
    pointer-events: auto;
    opacity: 1 !important;
    transform: translateX(0);
}

/* Bouton carré noir pour ouvrir/fermer le menu */
.php-menu-toggle {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 220;
    width: 33px;
    height: 33px;
    padding: 0;
    border: 0;
    background: var(--ink);
    cursor: pointer;
    transition: background .35s ease, border-color .35s ease;
}

/* Libellé optionnel "Menu" sous le carré au survol */
.php-menu-toggle span {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    color: #999690;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.php-menu-toggle:hover span { opacity: 1; }

/* Carré transparent avec bordure noire quand le menu est ouvert */
.menu-is-open .php-menu-toggle {
    background: var(--paper);
    border: 1px solid var(--ink);
}

.php-mobile-backdrop { display: none; }
.php-home-identity { display: none; }

/* Position spécifique du carré et du menu sur la PAGE D'ACCUEIL (centré verticalement sur le bord gauche) */
/* Position du menu AU MILIEU (50% de hauteur) sur la page d'accueil ET la page À propos */
.home-page .php-menu-toggle,
.about-page .php-menu-toggle {
    top: 50%;
    left: var(--page-x);
    transform: translateY(-50%);
}
.home-page .site-nav,
.about-page .site-nav {
    top: 50%;
    left: calc(var(--page-x) + 48px);
    transform: translateY(-50%) translateX(-8px);
}
.home-page.menu-is-open .site-nav,
.about-page.menu-is-open .site-nav {
    transform: translateY(-50%) translateX(0);
}

/* Position spécifique du menu sur les autres PAGES INTÉRIEURES (en haut à gauche, aligné avec le carré) */
.contact-page .site-nav,
.index-page .site-nav,
.project-page .site-nav {
    top: 32px;
    left: 80px;
}

/* Bloc d'identité (nom & métier) affiché en bas à gauche de façon persistante sur la page d'accueil */
.home-page .php-home-identity {
    position: fixed;
    left: var(--page-x);
    bottom: 40px;
    z-index: 50;
    display: block;
    text-transform: uppercase;
    pointer-events: auto;
}
.php-home-identity h1 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.78rem, 0.88vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.35;
    color: var(--ink);
    transition: color .35s ease;
}
.php-home-identity p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 0.82vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: var(--ink);
    opacity: 0.85;
    transition: color .35s ease;
}

.project-page .php-menu-toggle { top: 32px; left: 32px; }

/* =========================================================================
   4. EN-TÊTE & SÉLECTEUR DE LANGUE (US / FR)
   ========================================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 25;
    height: 72px;
    pointer-events: none;
}
.language-switcher {
    position: absolute;
    top: 34px;
    right: 2.1vw;
    display: flex;
    gap: 9px;
    pointer-events: auto;
    font-size: clamp(.8rem, 1.15vw, 1rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.language-switcher a { text-decoration: none; }
.language-switcher__active { color: var(--ink); }
.language-switcher__muted { color: var(--muted); }

/* =========================================================================
   5. SECTION HERO (Page d'accueil)
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    padding: 0 var(--page-x);
    box-sizing: border-box;
    background: var(--paper);
}
.hero__profile {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: clamp(40px, 6.5vw, 120px);
    max-width: min(760px, calc(100vw - 360px));
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: clamp(24px, 2.5vw, 36px);
    align-items: start;
    z-index: 10;
}
.hero__portrait {
    width: 160px;
    height: 198px;
    object-fit: cover;
    filter: grayscale(1);
    display: block;
}
.hero__copy {
    min-width: 0;
    padding-top: 2px;
}
.hero__mobile-identity {
    display: none;
}
.hero__status-badge {
    margin-bottom: 16px;
}
.hero__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-sans);
    font-size: clamp(0.68rem, 0.74vw, 0.74rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(17, 17, 16, 0.16);
    padding: 4px 10px;
    font-weight: 600;
    transition: border-color 0.25s ease;
}
.hero__status-pill:hover {
    border-color: var(--ink);
}
.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--ink);
    display: inline-block;
    flex-shrink: 0;
}
.hero__description {
    max-width: 540px;
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.25vw, 1.25rem);
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink);
}
.hero__about {
    color: var(--cyan);
    text-decoration: none;
    white-space: nowrap;
    margin-left: 4px;
    transition: opacity 0.2s ease;
}
.hero__about:hover, .hero__about:focus-visible {
    opacity: 0.7;
    text-decoration: underline;
}
.hero__email {
    display: inline-block;
    margin-top: clamp(20px, 3vh, 32px);
    font-family: var(--font-sans);
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}
.hero__email:hover {
    opacity: 0.6;
}
.hero__scroll-cue {
    display: none;
}
.hero__identity {
    position: absolute;
    bottom: 16.7vh;
    left: var(--page-x);
    font-size: clamp(.9rem, 1.2vw, 1.12rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}
.hero__identity p { margin: 0; }
.hero__projects-label {
    position: absolute;
    right: var(--page-x);
    bottom: 0;
    left: var(--page-x);
    height: 7.2vh;
    border-bottom: 1px solid var(--line);
    color: #3f3f3f;
    font-size: clamp(0.8rem, 0.92vw, 0.9rem);
    font-weight: 400;
    text-transform: uppercase;
}
.hero__projects-label span { position: absolute; bottom: 3px; left: 10px; }

/* =========================================================================
   6. SECTION PROJETS SÉLECTIONNÉS (Page d'accueil - Style Figma)
   ========================================================================= */
.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;
}

/* Page d'accueil : défilement fluide naturel */
html.home-html {
    scroll-behavior: smooth;
}

/* =========================================================================
   6. PILE DE PROJETS & EFFET D'EMPILEMENT DE DROITE À GAUCHE (Horizontal Stack)
   ========================================================================= */
.projects-stack {
    position: relative;
    z-index: 5;
    background: var(--paper);
    color: var(--ink);
    box-sizing: border-box;
    width: 100%;
    height: calc(var(--projects-count, 5) * 100vh);
}

/* Repères pour le défilement aimanté (scroll-snap) */
.projects-stack__snap-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.projects-stack__snap-point {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    pointer-events: none;
    visibility: hidden;
}

/* Cadre sticky plein écran */
.projects-stack__viewport {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--paper);
}

.projects-stack__cards {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Carte de projet : empilement horizontal de droite à gauche */
/* Carte de projet : apparition sobre et progressive au même endroit */
.project-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: none;
    box-shadow: none !important;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    will-change: opacity;
}

.project-card:first-child,
.project-card.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

/* Conteneur plein écran : Grande image au centre, bloc texte en plus petit en bas à droite */
.project-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 6vh, 60px) var(--page-x);
    box-sizing: border-box;
}

/* Grande image du projet : parfaitement centrée au milieu, agrandie */
.project-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: min(1060px, 66vw);
    max-height: clamp(440px, 78vh, 820px);
    margin: 0 auto;
    z-index: 2;
}

.project-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 0 !important;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 0;
}

.project-card__image-link:hover {
    transform: scale(1.015);
    border: none !important;
    box-shadow: none !important;
}

.project-card__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(440px, 78vh, 820px);
    object-fit: contain;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Bloc d'informations : texte plus petit, positionné en bas à droite */
.project-card__content {
    position: absolute;
    right: var(--page-x);
    bottom: clamp(32px, 5vh, 56px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: clamp(260px, 22vw, 340px);
    max-width: calc(100% - 80px);
    padding: 0;
    z-index: 10;
    pointer-events: auto;
}

/* Nom du projet avant l'Index */
.project-card__title {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.25vw, 1.25rem);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}

.project-card__title a {
    color: var(--ink);
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.project-card__title a:hover {
    opacity: 0.65;
}

.project-card__meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.project-card__index {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    color: #85827c;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.project-card__category {
    font-family: var(--font-sans);
    font-size: clamp(0.78rem, 0.85vw, 0.85rem);
    color: #8c8983;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card__description {
    font-family: var(--font-sans);
    font-size: clamp(0.74rem, 0.8vw, 0.82rem);
    line-height: 1.5;
    color: #55524c;
    margin: 0 0 14px;
    max-width: 320px;
}

/* Lien VIEW en cyan */
.project-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1.5px solid var(--cyan);
    transition: opacity 0.2s ease;
}

.project-card__cta:hover {
    opacity: 0.75;
}

.project-card__arrow {
    display: inline-block;
    font-size: 0.85rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__cta:hover .project-card__arrow {
    transform: translate(3px, -3px);
}

/* =========================================================================
   RÈGLES D'INVERSION DU THÈME (body.theme-inverted)
   Maintenues neutres car la section projets est désormais en fond clair
   ========================================================================= */
body.theme-inverted .php-menu-toggle {
    background: var(--ink);
    border-color: var(--ink);
}

body.theme-inverted .php-menu-toggle span {
    color: #777;
}

body.theme-inverted.menu-is-open .php-menu-toggle {
    background: var(--paper);
    border: 1px solid var(--ink);
}

body.theme-inverted .php-home-identity h1,
body.theme-inverted .php-home-identity p {
    color: var(--ink);
}

body.theme-inverted .site-header .language-switcher a {
    color: var(--muted);
}

body.theme-inverted .site-header .language-switcher a.language-switcher__active {
    color: var(--ink);
}

body.theme-inverted .site-nav {
    white-space: nowrap;
}

body.theme-inverted .site-nav a {
    color: var(--ink);
    opacity: 0.75;
    white-space: nowrap;
}

body.theme-inverted .site-nav a:hover,
body.theme-inverted .site-nav a.active {
    color: var(--ink);
    opacity: 1;
}

/* =========================================================================
/* =========================================================================
   7. PAGE INDEX DES PROJETS (projects.php - Grand visuel gauche + Liste éditoriale droite)
   ========================================================================= */
body.index-page {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

body.index-page > main {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: visible;
}

body.index-page .site-footer {
    flex: 0 0 auto;
    padding: clamp(14px, 1.8vh, 20px) var(--page-x) clamp(16px, 2.2vh, 24px);
    border-top: 1px solid rgba(17, 17, 16, 0.08);
    background: var(--paper);
    position: relative;
    z-index: 40;
}

.projects-index {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(32px, 5vh, 56px) clamp(20px, 4vw, 56px) clamp(48px, 6vh, 80px);
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(460px, 1.15fr);
    gap: clamp(36px, 5vw, 68px);
    align-items: start;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.page-top-label {
    display: none;
}

/* Zone gauche : En-tête & Image d'aperçu positionnées sous le menu et plus grandes */
.projects-index__left {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-self: start;
    box-sizing: border-box;
    position: sticky;
    top: 96px;
}

.projects-index__header {
    margin-bottom: clamp(14px, 2vh, 22px);
}

.projects-index__eyebrow {
    display: none;
    margin: 0 0 8px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.projects-index__heading {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.projects-index__total {
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 400;
    color: var(--muted);
    margin-left: 10px;
    letter-spacing: 0.05em;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

/* Cadre grand aperçu - Agrandit tout en respectant l'espace du footer */
.projects-index__preview {
    width: 100%;
    margin-top: 14px;
}

.projects-index__preview-stage {
    width: 100%;
    min-height: 0;
    max-height: clamp(280px, 44vh, 440px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: transparent;
    overflow: visible;
}

.projects-index__preview-img {
    max-width: 100%;
    max-height: clamp(280px, 44vh, 440px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left top;
    display: block;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.projects-index__preview-meta {
    display: none !important;
}

/* Zone droite : Liste éditoriale alignée en haut */
.projects-index__right {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-self: start;
    margin-top: 0;
    padding-top: 0;
}

.projects-index__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: none;
}

/* Ligne d'un projet : même taille de texte, saut de ligne resserré */
.projects-index__row {
    display: grid;
    grid-template-columns: 48px minmax(200px, 1.4fr) minmax(160px, 1fr);
    gap: clamp(16px, 2.2vw, 36px);
    align-items: baseline;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(17, 17, 16, 0.05);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.projects-index__row:hover {
    background-color: rgba(17, 17, 16, 0.03);
}

.projects-index__col {
    display: flex;
    align-items: baseline;
}

.projects-index__col--num {
    font-family: var(--font-mono);
    font-size: clamp(0.82rem, 0.88vw, 0.88rem);
    font-weight: 400;
    color: #8e8b85;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.projects-index__col--title {
    font-family: var(--font-sans);
    font-size: clamp(0.82rem, 0.88vw, 0.88rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--ink);
    text-transform: uppercase;
    transition: color 0.18s ease;
}

.projects-index__row:hover .projects-index__col--title,
.projects-index__row.is-active .projects-index__col--title {
    color: var(--ink);
}

.projects-index__col-mobile-meta {
    display: none;
}

.projects-index__col--category {
    font-family: var(--font-sans);
    font-size: clamp(0.82rem, 0.88vw, 0.88rem);
    font-weight: 400;
    color: #77746e;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

.projects-index__col--plus {
    display: none !important;
}

/* =========================================================================
   8. PAGE FICHE DÉTAILLÉE D'UN PROJET (project.php)
   ========================================================================= */
body.project-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.project-page main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.project-detail {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 36%) minmax(0, 64%);
}
.project-detail__info {
    position: static;
    height: 100%;
    min-height: 0;
    padding: clamp(32px, 4.5vh, 56px) var(--page-x) clamp(20px, 3vh, 36px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden !important; /* Aucun scroll pour la partie détail du projet */
    scrollbar-width: none;
}
.project-detail__info::-webkit-scrollbar {
    display: none;
}
.project-detail__body {
    margin: 0;
    padding-top: clamp(8px, 1.5vh, 16px);
    display: flex;
    flex-direction: column;
    width: 100%;
}
.project-detail__back {
    display: none !important;
}
.project-detail__summary { 
    margin: 0 0 clamp(24px, 3.5vh, 36px); 
}
.project-detail__index {
    color: #888;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}
.project-detail__summary h1 {
    margin: 0 0 clamp(20px, 3vh, 32px);
    font-size: clamp(2.2rem, 3.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.project-detail__problematique-question {
    margin: 0 0 clamp(20px, 3vh, 32px);
    font-family: var(--font-sans);
    font-size: clamp(0.92rem, 1.15vw, 1.05rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.5;
    color: #1a1a1a;
}
.project-detail__context { 
    max-width: 480px; 
    margin-bottom: clamp(24px, 3.5vh, 36px); 
}
.project-detail__context p {
    margin: 0 0 14px;
    font-family: var(--font-sans);
    font-size: clamp(0.86rem, 1.05vw, 0.94rem);
    font-weight: 300;
    line-height: 1.75;
    color: #383531;
    text-transform: none;
}
.project-detail__context p:last-child {
    margin-bottom: 0;
}
.project-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: clamp(16px, 2.5vh, 28px);
    margin-bottom: clamp(24px, 3.5vh, 40px);
}
.project-detail__meta div { 
    display: grid; 
    grid-template-columns: 110px 1fr; 
    gap: 14px; 
    align-items: baseline;
}
.project-detail__meta span {
    color: #9c9993;
    font-size: .65rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 600;
    white-space: nowrap;
}
.project-detail__meta p { 
    margin: 0; 
    font-size: .74rem; 
    font-weight: 400;
    line-height: 1.5; 
    color: #55524e;
    font-family: var(--font-sans);
    text-transform: none; 
}
.project-detail__gallery {
    display: flex;
    height: 100%;
    min-height: 0;
    min-width: 0;
    padding: clamp(48px, 7vh, 72px) clamp(20px, 3.5vw, 48px) clamp(48px, 6vh, 64px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(28px, 4vh, 44px);
    overflow-y: auto;
}
.project-detail__gallery img,
.project-detail__gallery video {
    display: block;
    width: auto;
    max-width: min(100%, clamp(320px, 42vw, 580px));
    height: auto;
    max-height: clamp(360px, 64vh, 600px);
    margin: 0 auto;
    object-fit: contain;
    border: none;
}
.project-detail__gallery iframe {
    display: block;
    width: 100%;
    max-width: min(100%, clamp(320px, 42vw, 580px));
    aspect-ratio: 16 / 9;
    min-height: 280px;
    max-height: clamp(320px, 58vh, 520px);
    margin: 0 auto;
    border: none;
}
.project-detail__nav-links {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.project-detail__nav-links--desktop {
    margin-top: auto;
    padding-top: clamp(20px, 3.5vh, 40px);
}
.project-detail__nav-links--mobile { display: none; }

.project-detail__prev,
.project-detail__next {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--ink);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.project-detail__prev {
    text-align: left;
    align-items: flex-start;
}
.project-detail__next {
    text-align: right;
    align-items: flex-end;
    margin-left: auto;
}
.project-detail__prev:hover,
.project-detail__next:hover {
    opacity: 0.7;
}
.project-detail__prev span {
    font-family: var(--font-sans);
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    color: #8e8b85 !important;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.project-detail__next span {
    font-family: var(--font-sans);
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    color: #55b7c7 !important;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.project-detail__prev strong,
.project-detail__next strong {
    max-width: 250px;
    font-size: clamp(0.74rem, 0.88vw, 0.84rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
body.project-page .site-footer {
    flex-shrink: 0;
    padding: clamp(16px, 2vh, 24px) var(--page-x) clamp(16px, 2.5vh, 24px);
    background: var(--paper);
    position: relative;
    z-index: 15;
}
.project-detail--empty h1 { font-size: clamp(2rem, 5vw, 5rem); text-transform: uppercase; }
.project-detail--empty a { font-size: .75rem; text-transform: uppercase; }

/* =========================================================================
   9. PAGES À PROPOS (about.php) ET CONTACT (contact.php)
   ========================================================================= */
.about-page {
    min-height: 100vh;
}

/* =========================================================================
   9. PAGE À PROPOS : VERSION ÉDITORIALE (Photo au milieu + Colonne droite scrollable)
   ========================================================================= */
body.about-editorial-page {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

body.about-editorial-page > main {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

body.about-editorial-page .site-footer {
    flex: 0 0 auto;
    padding: clamp(14px, 1.8vh, 20px) var(--page-x) clamp(16px, 2.2vh, 24px);
    border-top: 1px solid rgba(17, 17, 16, 0.08);
    background: var(--paper);
    position: relative;
    z-index: 40;
}

.about-editorial-stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3.2vw, 48px);
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    box-sizing: border-box;
    padding: 0 clamp(24px, 3vw, 48px);
}

/* Titre de page bien en haut à gauche */
.about-page__eyebrow {
    display: none;
    position: absolute;
    top: clamp(28px, 3.5vh, 36px);
    left: var(--page-x);
    z-index: 35;
    margin: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    pointer-events: none;
}

/* Duo Photo + Infos : Photo centrée pile au milieu sous le logo, colonne à droite de la photo */
.about-editorial-duo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    transform: none;
    z-index: 20;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .about-editorial-duo {
        grid-template-columns: 1fr auto 1fr;
        transform: none;
    }
}

/* Zone Photo : centrée dans la colonne du milieu (alignée pile sous le logo) */
.about-photo-panel {
    grid-column: 2;
    justify-self: center;
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 20;
    user-select: none;
    transform: none;
}

.about-photo-frame {
    position: relative;
    width: auto;
    height: clamp(300px, 54vh, 480px);
    max-width: clamp(210px, 20vw, 300px);
    aspect-ratio: 2588 / 3697;
    background: transparent;
    overflow: hidden;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
}

.about-photo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Section de présentation personnelle (en tête de la colonne info) */
.about-info-section--bio {
    width: 100%;
    padding: 0;
    border: none;
    margin: 0;
}

.about-bio-greeting {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 0.92vw, 0.94rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #2b2927;
    display: inline;
    line-height: 1.68;
}

.about-bio-paragraphs {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.3vh, 14px);
    width: 100%;
}

.about-bio-text {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 0.92vw, 0.94rem);
    line-height: 1.68;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #2b2927;
    margin: 0;
    width: 100%;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.about-bio-link {
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 6px;
    letter-spacing: 0.04em;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.about-bio-link:hover,
.about-bio-link:focus-visible {
    opacity: 0.7;
    text-decoration: underline;
}

/* Zone Droite : Colonne d'informations placée en colonne 3 (à droite de la photo) */
.about-info-panel {
    grid-column: 3;
    justify-self: start;
    width: 100%;
    max-width: 380px;
    min-width: 260px;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: calc(50vh - clamp(180px, 25vh, 230px)) 16px clamp(60px, 10vh, 120px) clamp(24px, 3.5vw, 48px);
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: default;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black clamp(40px, 6vh, 70px), black calc(100% - clamp(20px, 3vh, 40px)), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black clamp(40px, 6vh, 70px), black calc(100% - clamp(20px, 3vh, 40px)), transparent 100%);
}

.about-info-panel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.about-info-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: clamp(28px, 3.8vh, 40px);
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

/* Sections [ 01 ], [ 02 ], [ 03 ] */
.about-info-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding-top: 0;
    border-top: none;
}

/* Saut de ligne supplémentaire avant la section Formation */
.about-info-section--formation {
    margin-top: clamp(18px, 2.4vh, 26px);
}

.about-info-section__head {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin-bottom: 2px;
}

.about-info-section__label {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #55b7c7;
    font-weight: 800;
    display: inline-block;
    padding: 1px 5px;
}

/* Groupes hiérarchiques et listes verticales (sans numérotation) */
.about-info-entries {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.about-info-entry {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
}

.about-info-entry__date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #8e8b85;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.about-info-entry__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.92rem, 1vw, 1.02rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-align: left;
}

.about-info-entry__sub {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.82rem, 0.88vw, 0.88rem);
    color: #66635c;
    line-height: 1.45;
    font-weight: 400;
    text-align: left;
}

.about-info-groups {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.about-info-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
}

.about-info-group__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #77746e;
    text-align: left;
}

.about-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.about-info-list li {
    font-family: var(--font-sans);
    font-size: clamp(0.84rem, 0.9vw, 0.9rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.45;
    text-align: left;
}

/* Responsive Mobile (défilement naturel et vertical sur smartphone) */
@media (max-width: 900px) {
    body.about-editorial-page {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.about-editorial-page > main {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        flex: 1 0 auto !important;
        width: 100% !important;
    }

    .about-editorial-stage {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        position: relative !important;
    }

    .about-editorial-duo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin-top: 0 !important;
        transform: none !important;
        max-height: none !important;
        width: 100% !important;
    }

    .about-page__eyebrow {
        position: absolute !important;
        top: 24px !important;
        left: var(--page-x) !important;
        z-index: 35 !important;
    }

    .about-photo-panel {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        padding: 20px var(--page-x) 12px !important;
        pointer-events: auto !important;
        order: 1 !important;
    }

    .about-photo-frame {
        width: clamp(150px, 46vw, 210px) !important;
        height: auto !important;
        aspect-ratio: 2588 / 3697 !important;
        transform: none !important;
    }

    .about-info-panel {
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        flex: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 8px var(--page-x) 36px !important;
        box-sizing: border-box !important;
        order: 2 !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .about-info-column {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        gap: 24px !important;
    }

    .about-bio-text {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .about-info-entry__title {
        font-size: 0.95rem !important;
    }

    body.about-editorial-page .site-footer {
        flex: none !important;
        position: relative !important;
        z-index: 10 !important;
        padding: 32px var(--page-x) 28px !important;
        margin-top: 16px !important;
    }
}

/* =========================================================================
   10. PIED DE PAGE (FOOTER)
   ========================================================================= */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    padding: 64px var(--page-x) 40px;
    background: var(--paper);
    border-top: none;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.site-footer__brand {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__name {
    font-family: var(--font-sans);
    font-size: clamp(12.5px, 0.88vw, 13.6px);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.35;
    margin: 0;
    color: inherit;
}

.site-footer__role {
    font-family: var(--font-sans);
    font-size: clamp(12px, 0.82vw, 12.8px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    margin: 0;
    color: inherit;
    opacity: 0.85;
}

/* Sur les autres pages : lien logo cliquable vers la homepage */
.site-footer__brand--link {
    cursor: pointer;
}

.site-footer__brand--link:hover {
    color: var(--ink);
    opacity: 1;
}

/* Sur la homepage : le footer a une ligne de séparation au-dessus, un grand espace aéré,
   et le brand de gauche est masqué (visibility: hidden) pour réserver l'emplacement
   exact où se superpose l'identité fixe (.php-home-identity) en bas de page */
.site-footer--home {
    width: 100%;
    margin: 0;
    padding: clamp(28px, 4vh, 44px) var(--page-x);
    background: var(--paper);
    color: var(--ink);
    border-top: 1px solid rgba(17, 17, 16, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    box-sizing: border-box;
    position: relative;
    z-index: 50;
}

.site-footer--home .site-footer__brand {
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.site-footer--home .site-footer__brand:hover {
    opacity: 0.65;
}

.site-footer--home .site-footer__center a {
    color: var(--ink);
}

.site-footer--home .site-footer__right {
    color: #77746e;
}

/* Liens centraux (LINKEDIN, EMAIL) */
.site-footer__center {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 32px;
}

.site-footer__center a {
    font-family: var(--font-sans);
    font-size: clamp(13.1px, 0.92vw, 14.1px);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: opacity 0.2s ease;
}

.site-footer__center a:hover {
    opacity: 0.6;
}

.footer-arrow {
    display: inline-block;
    font-size: 0.9em;
    margin-left: 2px;
    vertical-align: 0.5px;
    transition: transform 0.2s ease;
}

.site-footer__center a:hover .footer-arrow {
    transform: translate(2px, -2px);
}

/* Mention de copyright à droite */
.site-footer__right {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    font-family: var(--font-sans);
    font-size: clamp(12.5px, 0.86vw, 13.4px);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--ink);
    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================================================================
   11. ADAPTATIONS RESPONSIVE TABLETTE & MOBILE (max-width: 900px)
   ========================================================================= */
@media (max-width: 900px) {
    :root { --page-x: 20px; }

    /* Empêche le défilement de la page quand le menu mobile est ouvert */
    body.menu-is-open { overflow: hidden; }

    /* En-tête et sélecteur de langue au-dessus du fond de menu */
    .site-header { position: fixed; inset: 0 0 auto; z-index: 260; height: 72px; pointer-events: none; }
    .language-switcher { top: 24px; right: 20px; z-index: 270; pointer-events: auto; }
    .language-switcher a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        min-width: 34px;
        padding: 6px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Carré bouton centré verticalement sur le bord droit sur mobile */
    .php-menu-toggle {
        position: fixed;
        top: 50% !important;
        left: auto !important;
        right: 20px !important;
        bottom: auto !important;
        width: 18px;
        height: 18px;
        padding: 0;
        transform: translateY(-50%);
        z-index: 300;
        background: var(--ink);
        border: 1px solid var(--ink);
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease;
    }
    /* Zone tactile élargie pour faciliter le clic au doigt sur mobile */
    .php-menu-toggle::after {
        content: '';
        position: absolute;
        inset: -14px;
    }
    .home-page .php-menu-toggle,
    .index-page .php-menu-toggle,
    .about-editorial-page .php-menu-toggle,
    .project-page .php-menu-toggle {
        top: 50% !important;
        left: auto !important;
        right: 20px !important;
    }
    .home-page .php-home-identity { display: none; }
    .php-menu-toggle span { display: none; }
    
    /* Carré transparent avec bordure quand le menu est ouvert */
    .menu-is-open .php-menu-toggle {
        background: transparent !important;
        border: 1px solid var(--ink) !important;
    }

    /* Fond opaque blanc pur 100% sans transparence ni effet flou */
    .php-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 200;
        display: block;
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .menu-is-open .php-mobile-backdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: clamp(72px, 10vh, 92px) var(--page-x) clamp(24px, 3vh, 32px);
        box-sizing: border-box;
    }
    .hero__profile {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        max-width: 100%;
    }
    .hero__portrait {
        width: clamp(130px, 36vw, 170px);
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        border-radius: 0 !important;
        border: none !important;
        margin-bottom: clamp(18px, 2.5vh, 26px);
        box-shadow: none !important;
    }
    .hero__copy {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        padding-right: clamp(38px, 10vw, 48px);
        box-sizing: border-box;
    }
    .hero__mobile-identity {
        display: block;
        margin-bottom: clamp(14px, 2vh, 18px);
    }
    .hero__mobile-identity h2 {
        margin: 0 0 4px;
        font-size: clamp(0.95rem, 4vw, 1.12rem);
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--ink);
    }
    .hero__mobile-identity p {
        margin: 0;
        font-size: clamp(0.8rem, 3.2vw, 0.88rem);
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #66635d;
    }
    .hero__description {
        font-size: clamp(0.88rem, 3.6vw, 0.95rem);
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: 0.01em;
        text-transform: uppercase;
        max-width: 100%;
        margin: 0 0 clamp(16px, 2vh, 22px);
        color: var(--ink);
    }
    .hero__about {
        margin-left: 6px;
        color: var(--cyan);
        text-decoration: underline;
        text-underline-offset: 3px;
        font-weight: 700;
    }
    .hero__email {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin: 0;
        font-size: clamp(0.85rem, 3.4vw, 0.92rem);
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: underline;
        text-underline-offset: 4px;
        color: var(--ink);
        -webkit-tap-highlight-color: transparent;
    }
    .hero__scroll-cue {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-sans);
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #66635d;
        text-decoration: none;
        padding: 12px 0 0;
        min-height: 44px;
        border-top: 1px solid rgba(17, 17, 16, 0.12);
        width: 100%;
        justify-content: space-between;
        margin-top: clamp(20px, 3vh, 32px);
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .hero__scroll-cue:active {
        color: var(--ink);
    }
    .hero__scroll-arrow {
        font-size: 0.95rem;
        transition: transform 0.2s ease;
    }
    .hero__scroll-cue:active .hero__scroll-arrow {
        transform: translateY(2px);
    }
    .hero__identity { display: none; }
    .hero__projects-label {
        position: static;
        height: 56px;
        margin-top: 40px;
    }

    /* Liens de navigation centrés dans la hauteur de l'écran sur mobile */
    .site-nav {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 250;
        display: flex;
        flex-direction: column;
        gap: 26px;
        align-items: center;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translate(-50%, -50%) !important;
        transition: opacity .25s ease;
    }
    .site-nav a + a::before { display: none; }
    
    /* Liens agrandis et lisibles sur mobile */
    .site-nav a {
        font-family: var(--font-sans);
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: #111110 !important;
        text-decoration: none;
        opacity: .6;
        padding: 10px 24px;
        display: inline-block;
        pointer-events: auto !important;
        cursor: pointer !important;
        transition: opacity .15s ease;
    }
    .site-nav a:hover,
    .site-nav a:focus-visible,
    .site-nav a.active {
        opacity: 1 !important;
        font-weight: 600 !important;
    }
    .menu-is-open .site-nav {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Pile de Projets Stacking (Mobile) */
    html.home-html {
        scroll-snap-type: none;
    }
    .projects-stack {
        width: 100%;
        background: var(--paper);
        height: calc(var(--projects-count, 5) * 100vh);
    }
    .projects-stack__viewport {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
    .projects-stack__cards {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .project-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: clamp(65px, 10vh, 85px) var(--page-x) clamp(24px, 4vh, 32px);
        box-sizing: border-box;
        display: flex;
        align-items: center;
        overflow-y: auto;
        border: none;
        box-shadow: none !important;
        background: var(--paper);
        color: var(--ink);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .project-card:first-child,
    .project-card.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .project-card__inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(16px, 2.5vh, 24px);
        padding: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .project-card__visual {
        order: -1;
        width: 100%;
        max-width: 100%;
        max-height: none;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .project-card__image-link {
        height: auto;
        max-height: clamp(180px, 32vh, 260px);
        width: auto;
        max-width: 100%;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .project-card__image {
        max-height: clamp(180px, 32vh, 260px);
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    .project-card__content {
        position: static;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
        padding-right: clamp(38px, 10vw, 48px);
        box-sizing: border-box;
    }
    .project-card__meta {
        gap: 12px;
        margin-bottom: 6px;
    }
    .project-card__index {
        font-size: 0.8rem;
    }
    .project-card__category {
        font-size: 0.72rem;
    }
    .project-card__title {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem);
        margin: 0 0 8px;
    }
    .project-card__description {
        font-size: 0.74rem;
        line-height: 1.4;
        margin: 0 0 14px;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .project-card__cta {
        font-size: 0.78rem;
        padding-bottom: 4px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    body.index-page {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
    }

    body.index-page > main {
        overflow: visible !important;
        height: auto !important;
    }

    body.index-page .site-footer {
        flex: none !important;
        position: relative !important;
        z-index: 10 !important;
        padding: 36px var(--page-x) 32px !important;
        margin-top: 24px !important;
    }

    .projects-index {
        min-height: auto;
        padding-top: 24px !important;
        padding-bottom: 40px !important;
        padding-left: var(--page-x) !important;
        padding-right: var(--page-x) !important;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .projects-index__heading {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        line-height: 1.15 !important;
    }

    .projects-index__total {
        font-size: 0.95rem !important;
    }

    .projects-index__left {
        position: static;
        width: 100%;
    }

    .projects-index__preview {
        display: none !important;
    }

    .projects-index__right {
        width: 100%;
        align-self: auto !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .projects-index__row {
        grid-template-columns: 28px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 10px 0 !important;
        align-items: baseline;
        border-bottom: 1px solid rgba(17, 17, 16, 0.08) !important;
        min-height: 44px;
    }

    .projects-index__col--num {
        font-size: 0.78rem !important;
    }

    .projects-index__col--category,
    .projects-index__col--year {
        display: none !important;
    }

    .projects-index__col--title {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .projects-index__col-title-text {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .projects-index__col-mobile-meta {
        display: block;
        font-family: var(--font-sans);
        font-size: 0.74rem;
        font-weight: 500;
        color: #77746e;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    body.project-page { height: auto; min-height: 100vh; min-height: 100dvh; overflow-y: auto; display: block; }
    body.project-page main { display: block; }
    .project-detail { display: flex; min-height: 0; padding-top: 0; flex-direction: column; width: 100%; }
    .project-detail__info { position: static; min-height: 0; padding: 20px var(--page-x) 20px !important; width: 100%; box-sizing: border-box; }
    .project-detail__body { margin: 0; }
    .project-detail__summary { margin: 0 0 20px !important; }
    .project-detail__index { font-size: 0.68rem !important; margin-bottom: 6px !important; letter-spacing: 0.1em !important; }
    .project-detail__summary h1 { font-size: clamp(1.75rem, 7.5vw, 2.4rem) !important; line-height: 1.12 !important; margin: 0 0 16px !important; word-break: normal !important; overflow-wrap: break-word !important; }
    .project-detail__context { margin-bottom: 16px !important; }
    .project-detail__context p { font-size: 0.86rem !important; line-height: 1.6 !important; margin-bottom: 12px !important; word-break: normal !important; overflow-wrap: break-word !important; }
    .project-detail__meta { margin: 16px 0 20px !important; gap: 8px !important; width: 100% !important; }
    .project-detail__meta div { grid-template-columns: 110px 1fr !important; gap: 14px !important; align-items: baseline !important; }
    .project-detail__meta span { font-size: 0.65rem !important; white-space: nowrap !important; }
    .project-detail__meta p { font-size: 0.76rem !important; line-height: 1.45 !important; word-break: normal !important; overflow-wrap: break-word !important; }
    .project-detail__gallery { height: auto !important; padding: 0 var(--page-x) 24px !important; overflow: visible !important; display: flex !important; flex-direction: column !important; gap: 12px !important; width: 100% !important; box-sizing: border-box !important; }
    .project-detail__gallery img,
    .project-detail__gallery video,
    .project-detail__gallery iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .project-detail__nav-links--desktop { display: none !important; }
    .project-detail__nav-links--mobile {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 16px !important;
        order: 3;
        width: auto !important;
        margin: 0 var(--page-x) !important;
        padding: 20px 0 40px !important;
        box-sizing: border-box !important;
        border-top: 1px solid rgba(17, 17, 16, 0.1) !important;
    }
    .project-detail__nav-links--mobile .project-detail__prev,
    .project-detail__nav-links--mobile .project-detail__next {
        flex: 1 1 50% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        text-decoration: none !important;
    }
    .project-detail__nav-links--mobile .project-detail__prev {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .project-detail__nav-links--mobile .project-detail__next {
        text-align: right !important;
        align-items: flex-end !important;
        margin-left: auto !important;
    }
    .project-detail__nav-links--mobile span {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .project-detail__nav-links--mobile strong {
        font-size: clamp(0.78rem, 3.2vw, 0.9rem) !important;
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Pied de page responsive (Mobile) */
    .site-footer,
    .site-footer--home {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 32px var(--page-x) 28px !important;
        background: #ffffff !important;
        color: var(--ink) !important;
        border-top: 1px solid rgba(17, 17, 16, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 18px !important;
    }
    .site-footer__brand,
    .site-footer--home .site-footer__brand {
        visibility: visible !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 4px !important;
        opacity: 1 !important;
        transform: none !important;
        flex: none !important;
    }
    .site-footer__name,
    .site-footer--home .site-footer__name {
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        color: var(--ink) !important;
    }
    .site-footer__role,
    .site-footer--home .site-footer__role {
        font-size: 11px !important;
        font-weight: 500 !important;
        letter-spacing: 0.05em !important;
        color: #77746e !important;
    }
    .site-footer__center,
    .site-footer--home .site-footer__center {
        display: flex !important;
        gap: 20px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
    .site-footer__center a,
    .site-footer--home .site-footer__center a {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 38px !important;
        padding: 4px 0 !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        color: var(--ink) !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .site-footer__center a:hover,
    .site-footer--home .site-footer__center a:hover {
        color: var(--cyan, #55b7c7) !important;
    }
    .site-footer__right,
    .site-footer--home .site-footer__right {
        font-size: 11px !important;
        color: #77746e !important;
        letter-spacing: 0.05em !important;
        text-align: left !important;
        justify-content: flex-start !important;
        flex: none !important;
        margin: 0 !important;
        white-space: normal !important;
    }
}

/* =========================================================================
   12. ADAPTATIONS PETIT MOBILE & IPHONE 6S (max-width: 480px & max-width: 375px)
   ========================================================================= */
@media (max-width: 480px) {
    :root {
        --page-x: 16px;
    }
    .site-sticky-header {
        padding: 10px 14px !important;
    }
    .hero { min-height: 100vh; min-height: 100dvh; }
    .hero__portrait { width: clamp(120px, 38vw, 150px); }
    .hero__copy { max-width: 100%; }
    .hero__email { margin-left: 0; }
}

@media (max-width: 375px) {
    :root {
        --page-x: 14px;
    }
    .site-sticky-header {
        padding: 8px 12px !important;
    }
    .site-sticky-logo img {
        height: 25px !important;
    }
    .site-sticky-logo span {
        font-size: 0.46rem !important;
        letter-spacing: 0.1em !important;
    }
    .home-hero-section {
        padding: 18px 12px 20px !important;
        gap: 16px !important;
    }
    .home-hero-portrait {
        width: 110px !important;
    }
    .home-hero-desc {
        font-size: 0.82rem !important;
    }
    .home-hero-badge {
        font-size: 0.58rem !important;
        padding: 4px 8px !important;
    }
    .about-photo-frame {
        width: 145px !important;
    }
    .about-info-panel {
        padding: 6px 12px 28px !important;
    }
    .projects-index {
        padding: 16px 12px 32px !important;
    }
    .project-detail__info {
        padding: 16px 12px 16px !important;
    }
    .project-detail__summary h1 {
        font-size: 1.65rem !important;
    }
    .project-detail__meta div {
        grid-template-columns: 105px 1fr !important;
        gap: 10px !important;
    }
    .project-detail__gallery {
        padding: 0 12px 20px !important;
    }
    .project-detail__nav-links--mobile {
        width: auto !important;
        margin: 0 12px !important;
        padding: 16px 0 32px !important;
        box-sizing: border-box !important;
    }
    .site-footer,
    .site-footer--home {
        padding: 24px 12px 20px !important;
    }
}
