/* =========================================
   PORTFOLIO EMILIE ROUPSARD
   Style chaleureux et simple
   ========================================= */

@font-face {
    font-family: 'Italianno';
    src: url('../assets/fonts/Italianno.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../assets/fonts/PlusJakartaSans-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../assets/fonts/PlusJakartaSans-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../assets/fonts/PlusJakartaSans-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../assets/fonts/PlusJakartaSans-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../assets/fonts/PlusJakartaSans-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    * {
        cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'><path d='M2.5 1 L2.5 17.5 L6.5 13.5 L9.5 20.5 L12 19.5 L9 12.5 L14.5 12.5 Z' fill='%23C8A882' stroke='%230d0d0d' stroke-width='1.2' stroke-linejoin='round'/></svg>") 2 1, auto !important;
    }

    a, button, [role="button"], input, textarea, select, label, [data-url] {
        cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'><path d='M2.5 1 L2.5 17.5 L6.5 13.5 L9.5 20.5 L12 19.5 L9 12.5 L14.5 12.5 Z' fill='%23F5F0ED' stroke='%230d0d0d' stroke-width='1.2' stroke-linejoin='round'/></svg>") 2 1, pointer !important;
    }
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --bg: #121212;
    --bg-2: #1C1C1C;
    --secondary: #C8A882;
    --secondary-dark: #A47864;
    --text: #F5F0ED;
    --text-soft: #B8A89C;
    --text-light: #8A7E73;
    --border: rgba(200, 168, 130, 0.15);
    --max: 1100px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

/* ===== BOUTON HAUT DE PAGE ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease),
                transform 0.4s var(--ease),
                background 0.3s var(--ease),
                border-color 0.3s var(--ease);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover {
    background: var(--secondary);
    color: var(--bg);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

/* ===== SCROLLBAR FINE ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--secondary-dark); }
* { scrollbar-width: thin; scrollbar-color: var(--secondary) transparent; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: clip;
}

/* ===== TRANSITION DE PAGE ===== */
.page-transition { display: none; }

.page-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0a0a;
    z-index: 9500;
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
    transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: clip-path;
}
.page-overlay.show {
    clip-path: circle(150% at 50% 50%);
    pointer-events: all;
}
.page-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.66 0 0 0 0 0.51 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    pointer-events: none;
}
.page-overlay-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
}
.page-overlay.show .page-overlay-logo {
    opacity: 1;
    transition: opacity 0.3s ease 0.4s;
}


/* ===== LOGO EN FILIGRANE ===== */
.logo-watermark {
    position: fixed;
    bottom: -2rem;
    left: -2rem;
    width: 280px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.6s var(--ease);
}
.logo-watermark img {
    width: 100%;
    display: block;
}
.logo-watermark-top {
    position: absolute;
    bottom: auto;
    top: -2rem;
    left: -1rem;
    width: 240px;
    opacity: 0.15;
    z-index: 0;
}

@media (max-width: 600px) {
    .logo-watermark { width: 180px; bottom: -1rem; left: -1rem; }
    .logo-watermark-top { width: 160px; top: -1rem; }
}

/* ===== GRAIN / TEXTURE PAPIER ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.66 0 0 0 0 0.51 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.2s;
}

body.modal-open::before {
    opacity: 0;
}

/* ====================================
   MENU BURGER - ACCUEIL UNIQUEMENT
   Design : grille 2×2 de 4 carrés
   ==================================== */
body.home .nav-burger {
    display: block;
    position: fixed;
    top: 1.8rem;
    right: 1.8rem;
    width: 36px;
    height: 36px;
    padding: 6px;
    box-sizing: content-box;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 102;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 720px) {
    body.home .nav-burger {
        top: 1.2rem;
        right: 1.2rem;
    }
}
body.home .nav-burger:hover { transform: rotate(90deg); }
body.home .nav-burger.open { transform: rotate(180deg); }

body.home .nav-burger span {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
body.home .nav-burger span:nth-child(1) { top: 6px; left: 6px; }
body.home .nav-burger span:nth-child(2) { top: 6px; right: 6px; }
body.home .nav-burger span:nth-child(3) { bottom: 6px; left: 6px; }
body.home .nav-burger span:nth-child(4) { bottom: 6px; right: 6px; }

/* Hover : couleur mocha + très légère contraction */
body.home .nav-burger:hover span {
    background: var(--secondary);
    transform: scale(0.85);
}

/* Ouvert : les 4 carrés convergent au centre et forment un X */
body.home .nav-burger.open span {
    background: var(--text);
    width: 30px;
    height: 2.5px;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    opacity: 1;
}
body.home .nav-burger.open span:nth-child(1) {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}
body.home .nav-burger.open span:nth-child(2) {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
}
body.home .nav-burger.open span:nth-child(3),
body.home .nav-burger.open span:nth-child(4) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

body.home .nav { justify-content: flex-end; }

body.home .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 1.5rem;
    z-index: 101;
    box-shadow: none;
    border: none;
    clip-path: circle(0% at calc(100% - 3rem) 3rem);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.18, 1);
    pointer-events: none;
    right: auto;
}
body.home .nav-links::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.66 0 0 0 0 0.51 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    pointer-events: none;
    z-index: 0;
}
body.home .nav-links.open {
    clip-path: circle(150% at calc(100% - 3rem) 3rem);
    pointer-events: auto;
}

body.home .nav-links li {
    overflow: visible;
}

body.home .nav-links a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text);
    padding: 0;
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.4s var(--ease);
}
body.home .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
}
body.home .nav-links.open li:nth-child(1) a { transition-delay: 0.4s; }
body.home .nav-links.open li:nth-child(2) a { transition-delay: 0.5s; }
body.home .nav-links.open li:nth-child(3) a { transition-delay: 0.6s; }
body.home .nav-links.open li:nth-child(4) a { transition-delay: 0.7s; }

body.home .nav-links a::after {
    content: attr(data-word);
    position: absolute;
    left: 100%;
    top: 50%;
    margin-left: 1.5rem;
    transform: translateY(-65%) translateX(-20px) rotate(-4deg);
    font-family: 'Italianno', cursive;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: var(--secondary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
body.home .nav-links a:hover {
    color: var(--secondary);
}
body.home .nav-links a:hover::after {
    opacity: 1;
    transform: translateY(-65%) translateX(0) rotate(-4deg);
}

@media (max-width: 900px) {
    body.home .nav-links a::after {
        content: '';
        left: 0;
        right: 0;
        bottom: -6px;
        top: auto;
        margin-left: 0;
        width: auto;
        height: 10px;
        font-family: unset;
        font-size: unset;
        color: unset;
        white-space: unset;
        transform: none;
        rotate: unset;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'><path d='M 2,7 Q 30,2 60,6 T 120,7 T 180,4 T 218,7' stroke='%23C8A882' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
        background-size: 100% 100%;
        background-repeat: no-repeat;
        clip-path: inset(0 100% 0 0);
        opacity: 1;
        transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    }
    body.home .nav-links a:hover::after,
    body.home .nav-links a.active::after {
        clip-path: inset(0 0 0 0);
        transform: none;
    }
}

@media (max-width: 600px) {
    body.home .nav-links { gap: 1rem; }
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.3rem 2.5rem;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #121212;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease),
                border-color 0.4s var(--ease),
                padding 0.4s var(--ease);
}
.nav::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.66 0 0 0 0 0.51 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    pointer-events: none;
    z-index: -1;
}
.nav.scrolled {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
}
main { padding-top: 5rem; }

/* Sur l'accueil : cacher logo inner et liens, juste le burger */
body.home .nav-logo-inner { display: none; }
body.home .nav-links-wrap { display: none; }
body.home .nav {
    padding: 1.8rem 1.5rem 1.8rem 0;
    justify-content: flex-end;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
body.home .nav::after { display: none; }


.nav-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s var(--ease);
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo:hover { opacity: 0.7; }

.nav-links {
    display: flex;
    gap: 2.2rem;
}
.nav-links a {
    font-size: 0.95rem;
    color: var(--text-soft);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}
body:not(.home) .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'><path d='M 2,7 Q 30,2 60,6 T 120,7 T 180,4 T 218,7' stroke='%23C8A882' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
body:not(.home) .nav-links a:hover::after,
body:not(.home) .nav-links a.active::after {
    clip-path: inset(0 0 0 0);
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

@media (max-width: 720px) {
    .nav { padding: 1.2rem 1.5rem; }

    /* Menu fullscreen style accueil sur toutes les pages en mobile */
    body:not(.home) .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        gap: 2rem;
        z-index: 101;
        box-shadow: none;
        border: none;
        clip-path: circle(0% at calc(100% - 2rem) 2rem);
        transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.18, 1);
        pointer-events: none;
        right: auto;
        overflow: hidden;
    }
    body:not(.home) .nav-links::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0.4;
        mix-blend-mode: screen;
        background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.66 0 0 0 0 0.51 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
        background-size: 220px 220px;
        pointer-events: none;
        z-index: 0;
    }
    body:not(.home) .nav-links.open {
        clip-path: circle(150% at calc(100% - 2rem) 2rem);
        pointer-events: auto;
    }
    body:not(.home) .nav-links a {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: clamp(2rem, 8vw, 3rem);
        font-weight: 300;
        letter-spacing: -0.02em;
        color: var(--text);
        position: relative;
        z-index: 1;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), color 0.3s var(--ease);
    }
    body:not(.home) .nav-links.open a { opacity: 1; transform: translateY(0); }
    body:not(.home) .nav-links.open li:nth-child(1) a { transition-delay: 0.3s; }
    body:not(.home) .nav-links.open li:nth-child(2) a { transition-delay: 0.4s; }
    body:not(.home) .nav-links.open li:nth-child(3) a { transition-delay: 0.5s; }
    body:not(.home) .nav-links.open li:nth-child(4) a { transition-delay: 0.6s; }
    body:not(.home) .nav-links a:hover { color: var(--secondary); }

    /* Burger 4 carrés, identique à l'accueil sur toutes les pages mobile */
    .nav-burger {
        display: flex;
        z-index: 10001;
        width: 36px;
        height: 36px;
        padding: 6px;
        box-sizing: content-box;
        position: relative;
        transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .nav-burger span {
        position: absolute;
        width: 14px;
        height: 14px;
        background: var(--text);
        border-radius: 3px;
        transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .nav-burger span:nth-child(1) { top: 6px; left: 6px; }
    .nav-burger span:nth-child(2) { top: 6px; right: 6px; }
    .nav-burger span:nth-child(3) { bottom: 6px; left: 6px; }
    .nav-burger span:nth-child(4) { bottom: 6px; right: 6px; }
    .nav-burger:hover { transform: rotate(90deg); }
    .nav-burger.open { transform: rotate(180deg); }
    .nav-burger.open span {
        width: 30px;
        height: 2.5px;
        border-radius: 2px;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
    }
    .nav-burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
    .nav-burger.open span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
    .nav-burger.open span:nth-child(3),
    .nav-burger.open span:nth-child(4) { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

/* ===== MAIN ===== */
main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2rem;
}

/* ===== HERO ACCUEIL ===== */
.hero {
    padding: 6rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-text { max-width: 700px; }
.hero-actions { justify-content: center; }

.hero h1 {
    font-family: 'Italianno', 'Brush Script MT', cursive;
    font-weight: 400;
    font-size: clamp(4rem, 11vw, 8.5rem);
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    color: var(--text);
    white-space: nowrap;
}


@media (max-width: 720px) {
    .hero h1 { white-space: normal; }
}

@media (max-width: 768px) {
    /* Accueil : plein écran sans scroll, logo watermark préservé */
    body.home main {
        height: 100dvh;
        overflow: hidden;
        padding-top: 0;
    }
    body.home .hero {
        height: 100dvh;
        min-height: unset;
        padding: 0 2rem;
        justify-content: center;
    }
    body.home .hero-role { margin-bottom: 3rem; }
}

.hero-role {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--secondary-dark);
    margin-bottom: 6rem;
}

@media (max-width: 600px) {
    .hero-role { margin-bottom: 4rem; }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

/* ===== BOUTON UNDERLINE MANUSCRIT ===== */
.btn-underline {
    display: inline-block;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.5rem 0;
}
.btn-underline span {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.btn-underline span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'><path d='M 2,7 Q 30,2 60,6 T 120,7 T 180,4 T 218,7' stroke='%23C8A882' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-underline:hover span::after {
    clip-path: inset(0 0 0 0);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary {
    background: var(--text);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text);
    transform: translateY(-2px);
}
.btn-ghost {
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-2px);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ===== HERO PHOTO ===== */
.hero-photo {
    position: relative;
    aspect-ratio: 4/5;
    max-width: 380px;
    margin-left: auto;
    border-radius: 24px;
    overflow: hidden;
    background: var(--secondary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bg);
    opacity: 0.4;
    font-weight: 200;
    letter-spacing: -0.05em;
}
.hero-photo-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--secondary-dark);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

@media (max-width: 720px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 0 4rem;
        text-align: center;
    }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-photo { margin: 0 auto; max-width: 280px; }
}

/* ===== PROJETS PREVIEW ===== */
.projects-preview {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
}
.section-header p {
    color: var(--text-soft);
    margin-top: 0.4rem;
    font-size: 1rem;
}
.section-link {
    color: var(--text);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s var(--ease);
}
.section-link:hover { gap: 0.9rem; }



/* ====================================
   PAGE À PROPOS - Style éditorial 2026
   ==================================== */
.about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
}
.about-hero    { order: 1; }
.about-sections { order: 2; }
.skills-section { order: 3; }

/* HERO : 2 colonnes */
.about-hero {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0 6rem;
}

.about-photo {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s var(--ease);
}
.about-photo:hover {
    transform: translateY(-6px) scale(1.01);
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
    filter: contrast(1.02);
}
.about-photo:hover img {
    transform: scale(1.04);
}
.about-photo-tag {
    position: absolute;
    bottom: -1.2rem;
    right: 1rem;
    font-family: 'Italianno', cursive;
    font-size: 2rem;
    color: var(--secondary);
    transform: rotate(-3deg);
    text-shadow: 0 2px 10px var(--bg);
    background: var(--bg);
    padding: 0 0.6rem;
    border-radius: 50px;
}

.about-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}
.about-intro h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.about-intro h1 em {
    font-family: 'Italianno', cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
    color: var(--secondary);
    line-height: 0.9;
    display: inline-block;
    transform: translateY(0.08em);
}
.about-lead {
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    color: var(--text-soft);
    line-height: 1.75;
    max-width: 480px;
}

@media (max-width: 800px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 1rem;
    }
    .about-photo { max-width: 380px; margin: 0 auto; }
}

/* ===== SECTION COMPÉTENCES ===== */
.skills-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}
.skills-title {
    font-family: 'Italianno', cursive;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--secondary);
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.skills-group-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--text-soft);
    transition: all 0.35s var(--ease);
    cursor: default;
}
.skill-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--secondary);
    opacity: 0.7;
    transition: all 0.35s var(--ease);
}
.skill-item:hover {
    background: var(--bg);
    border-color: var(--secondary);
    color: var(--text);
    transform: translateX(6px);
}
.skill-item:hover svg {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(200, 168, 130, 0.6));
}

.skill-group-parent {
    border-color: rgba(200, 168, 130, 0.2);
    background: rgba(200, 168, 130, 0.05);
}

.skill-sub {
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 0.4rem 0.9rem 0.4rem 2.6rem;
    background: transparent;
    border-color: transparent;
    border-left: 1px solid var(--border);
    margin-left: 1rem;
    border-radius: 0 6px 6px 0;
}
.skill-sub:hover {
    color: var(--text-soft);
    background: transparent;
    border-color: transparent;
    border-left-color: var(--secondary);
    transform: translateX(4px);
}

@media (max-width: 800px) {
    .skills-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* SECTIONS LUMINEUSES - À propos */
.about-sections {
    padding: 2rem 0 4rem;
}

.abt-section {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    align-items: start;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.abt-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Chiffre géant, s'illumine au hover de toute la section */
.abt-left { position: static; }

.abt-num {
    font-family: 'Italianno', cursive;
    font-size: clamp(4rem, 7vw, 6rem);
    line-height: 1;
    color: var(--text-soft);
    display: block;
    transition: color 0.5s var(--ease),
                text-shadow 0.5s var(--ease),
                transform 0.5s var(--ease);
}
.abt-section:hover .abt-num {
    color: var(--secondary);
    text-shadow:
        0 0 25px rgba(200, 168, 130, 0.9),
        0 0 60px rgba(200, 168, 130, 0.5),
        0 0 100px rgba(200, 168, 130, 0.2);
    transform: scale(1.1) translateY(-4px);
}

/* Titre qui s'illumine */
.abt-title {
    font-family: 'Italianno', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: 0;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1;
    transition: color 0.5s var(--ease),
                text-shadow 0.5s var(--ease);
}
.abt-section:hover .abt-title {
    color: var(--secondary);
    text-shadow:
        0 0 20px rgba(200, 168, 130, 0.7),
        0 0 50px rgba(200, 168, 130, 0.3);
}

.abt-link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}
.abt-link:hover {
    color: var(--text);
}

.abt-right p {
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 1.02rem;
    margin-bottom: 1.2rem;
}
.abt-right p:last-of-type { margin-bottom: 0; }
.abt-right strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 700px) {
    .abt-section { grid-template-columns: 1fr; gap: 1rem; }
    .abt-left { position: static; }
    .abt-num { font-size: 3rem; }
}

/* SECTION FINALE - CTA */
.about-section-end {
    padding-bottom: 4rem;
}
.about-closing {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 2.5rem !important;
    max-width: 580px;
}

.about-cta {
    display: inline-block;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.5rem 0;
}
.about-cta span {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.about-cta span::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'><path d='M 2,7 Q 30,2 60,6 T 120,7 T 180,4 T 218,7' stroke='%23C8A882' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.about-cta:hover span::after {
    clip-path: inset(0 100% 0 0);
}

/* ===== PROJETS ===== */
.projects-main { padding-top: 80px; }

.projects-section {
    padding: 4rem 0 6rem;
}

.projects-title {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}

.projects-sub {
    color: var(--text-soft);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.filter-bar {
    display: flex;
    gap: 0;
    margin: 2.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--text); }
.filter-btn.active::after { transform: scaleX(1); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px;
    grid-auto-rows: 280px;
    gap: 1rem;
}


.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.project-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(200,168,130,0.2);
}

.project-card.hidden { display: none; }

.project-card--soon {
    cursor: default;
}
.project-card--soon:hover {
    transform: none;
    box-shadow: none;
}
.project-soon-inner {
    text-align: center;
}
.project-soon-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    margin-bottom: 0.8rem;
}
.project-soon-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}


.project-thumb {
    position: absolute;
    inset: 0;
    isolation: isolate;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumb img {
    width: auto;
    height: auto;
    max-width: 45%;
    max-height: 45%;
    object-fit: contain;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-thumb img {
    transform: scale(1.06);
}


/* Gradient sombre en bas */
.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.2) 55%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Texte en overlay */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1.4rem;
    z-index: 3;
    transition: transform 0.45s var(--ease);
}
.project-card:hover .project-info {
    transform: translateY(-4px);
}

.project-tag {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.3rem;
}

.project-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text);
    transition: color 0.2s;
}

.project-card:hover .project-title { color: var(--secondary); }

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        grid-auto-rows: 180px;
    }
    .project-card:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .project-card { grid-column: span 1 !important; }
    .filter-bar { flex-wrap: wrap; }
    .filter-btn { padding: 0.7rem 1rem; }
}

/* ===== LISTE ÉDITORIALE ===== */
.editorial-list {
    width: 100%;
    margin-top: 0.5rem;
}

.editorial-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto 2.5rem;
    align-items: center;
    gap: 0 2rem;
    padding: 1.6rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: padding-left 0.4s var(--ease);
    border-radius: 4px;
}
.editorial-item:first-child { border-top: 1px solid var(--border); }

.editorial-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-2);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.editorial-item:hover::after { opacity: 1; }
.editorial-item.hidden { display: none; }

.editorial-num {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-light);
}

.editorial-title {
    font-family: 'Italianno', cursive;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    color: var(--text);
    line-height: 1;
    transition: color 0.3s ease;
}
.editorial-item:hover .editorial-title { color: var(--secondary); }

.editorial-cat {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-soft);
    transition: color 0.3s ease;
    white-space: nowrap;
}
.editorial-item:hover .editorial-cat { color: var(--secondary); }

.editorial-arrow {
    color: var(--secondary);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}
.editorial-item:hover .editorial-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Preview image curseur */
.editorial-preview {
    position: fixed;
    width: 400px;
    height: 270px;
    pointer-events: none;
    z-index: 8000;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 6px;
    overflow: hidden;
    top: 0; left: 0;
    transform: translate(-50%, -62%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.editorial-preview.active { opacity: 1; }
.editorial-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 720px) {
    .editorial-item {
        grid-template-columns: 2.5rem 1fr 2rem;
        padding: 1.4rem 0.5rem;
    }
    .editorial-cat { display: none; }
}
@media (max-width: 480px) {
    .editorial-preview { display: none; }
}

/* ===== MODAL PROJET ===== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    isolation: isolate;
}

.project-modal.open {
    pointer-events: all;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.5);
}

.modal-card {
    position: absolute;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: row;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}




.modal-card img {
    pointer-events: none;
    -webkit-user-drag: none;
    draggable: false;
}

.project-modal.open .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 3;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--secondary);
}

.modal-thumb {
    flex: 0 0 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    background: var(--bg);
    z-index: 2;
}

.modal-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.66 0 0 0 0 0.51 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    pointer-events: none;
    z-index: 0;
}

.modal-thumb img {
    max-width: 100%;
    max-height: calc(100% - 8rem);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 18, 0.75);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    z-index: 2;
}
.modal-prev { left: 1rem; }
.modal-next { right: 1rem; }
.modal-prev:hover, .modal-next:hover {
    color: var(--text);
    border-color: var(--secondary);
}
.modal-prev.hidden, .modal-next.hidden { display: none; }

.modal-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(200, 168, 130, 0.3);
    transition: background 0.2s;
    cursor: pointer;
    border: none;
}
.modal-dot.active { background: var(--secondary); }

.modal-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-body {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding: 5rem 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border-left: 1px solid var(--secondary);
    position: relative;
    background-color: var(--bg);
}


.modal-logo-wrap {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.modal-logo {
    width: 140px;
    height: auto;
    display: block;
    margin-top: 0.5rem;
}

.modal-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
}

.modal-title {
    font-size: 1.9rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
}

.modal-detail {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.8;
    flex: 1;
}

.modal-meta-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.modal-colors,
.modal-fonts,
.modal-tools {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.modal-swatches {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.modal-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.modal-swatch-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}

.modal-swatch-hex {
    font-size: 0.62rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    font-family: monospace;
}

.modal-fonts-list {
    font-size: 0.88rem;
    color: var(--text-soft);
}

.modal-tools-list {
    font-size: 0.84rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.modal-link {
    align-self: flex-start;
    display: inline-block;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.5rem 0;
    margin-top: 0.4rem;
}

.modal-link span {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.modal-link span::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'><path d='M 2,7 Q 30,2 60,6 T 120,7 T 180,4 T 218,7' stroke='%23C8A882' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.modal-link:hover span::after {
    clip-path: inset(0 100% 0 0);
}

@media (max-width: 768px) {
    .modal-card {
        flex-direction: column;
        overflow: hidden;
    }
    .modal-thumb {
        flex: 0 0 40dvh;
        width: 100%;
        height: 40dvh;
        border-bottom: 1px solid var(--border);
    }

    .modal-thumb img {
        max-width: 85%;
        max-height: calc(100% - 3rem);
    }

    .modal-body {
        width: 100%;
        flex: 1;
        height: 0;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2rem 1.5rem 3rem;
        border-left: none;
        border-top: 1px solid var(--secondary);
    }

    .modal-title { font-size: 1.4rem; }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }
}

/* ===== FOOTER ===== */
.footer {
    max-width: var(--max);
    margin: 4rem auto 0;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
}
.footer-socials a {
    transition: color 0.3s var(--ease);
}
.footer-socials a:hover { color: var(--text); }

@media (max-width: 600px) {
    .footer { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem 2rem; }
}

/* ===== PAGE CONTACT ===== */
.contact-section {
    padding: 4rem 0 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
}

.contact-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.contact-title em {
    font-family: 'Italianno', cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
    color: var(--secondary);
    line-height: 0.9;
    display: inline-block;
    transform: translateY(0.08em);
}

.contact-lead {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.contact-detail-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--secondary);
}

.contact-detail-item:hover { color: var(--text); }

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-self: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.form-group label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.form-group input,
.form-group textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
    resize: none;
    -webkit-user-select: text;
    user-select: text;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    background: var(--bg);
}

.form-status {
    font-size: 0.88rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    display: none;
    line-height: 1.5;
}
.form-status.success {
    display: block;
    background: rgba(200, 168, 130, 0.08);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}
.form-status.error {
    display: block;
    background: rgba(200, 80, 80, 0.08);
    border: 1px solid rgba(200, 80, 80, 0.35);
    color: #e07070;
}

.btn-contact-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0 12px;
    position: relative;
    transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.btn-contact-submit::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'><path d='M 2,7 Q 30,2 60,6 T 120,7 T 180,4 T 218,7' stroke='%23C8A882' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-contact-submit:hover::after {
    clip-path: inset(0 0 0 0);
}

.btn-contact-submit:hover { color: var(--secondary); gap: 1rem; }
.btn-contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-contact-submit svg { transition: transform 0.3s var(--ease); }
.btn-contact-submit:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===== MENTIONS LÉGALES ===== */
.legal-section {
    padding: 4rem 0 6rem;
    max-width: var(--max);
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 3rem;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.legal-block {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-heading {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.legal-block p,
.legal-block li {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.legal-block a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-block ul {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    list-style: disc;
}

.legal-block strong { color: var(--text); font-weight: 600; }
