/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #f5f3ef;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 300;
    letter-spacing: 0.02em;
}

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

/* ============================================
   WORKS PAGE — SLIDER FOND
   ============================================ */
.works-page {
    position: relative;
    min-height: 100vh;
}

.slider {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.2rem 3rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-link {
    color: rgba(245, 243, 239, 0.75);
    transition: color 0.3s ease, opacity 0.3s ease;
    position: relative;
    padding: 0.2rem 0;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ffffff;
    opacity: 0.9;
}

.nav-sep {
    color: rgba(245, 243, 239, 0.5);
    font-weight: 300;
}

/* ============================================
   ICÔNES SOCIALES
   ============================================ */
.social-icons {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.social-icons a {
    width: 20px;
    height: 20px;
    color: rgba(245, 243, 239, 0.85);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.social-icons svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   LOGO CENTRÉ DU HEADER
   Position absolue → toujours pile au milieu de la page,
   indépendamment des éléments gauche/droite du header
   ============================================ */
.site-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(245, 243, 239, 0.92);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.site-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.site-logo:hover,
.site-logo:focus-visible {
    color: #ffffff;
    transform: translate(-50%, calc(-50% - 1px));
    outline: none;
}

/* ============================================
   BOUTON LANGUE (FR / EN)
   ============================================ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: rgba(245, 243, 239, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transform: translateY(3px);
    transition: color 0.3s ease, transform 0.3s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    color: #ffffff;
    transform: translateY(2px);
    outline: none;
}

/* ============================================
   HERO TEXT — DROITE, CENTRÉ VERTICALEMENT
   ============================================ */
.hero {
    position: relative;
    z-index: 5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 6vw;
}

.hero-text {
    text-align: right;
    max-width: 100%;
    color: #ffffff;
    animation: fadeInUp 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.hero-title {
    font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f6f1e6; /* blanc cassé / ivoire doux */
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
    margin-bottom: 1.6rem;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 0.95vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}

.hero-subtitle .hero-subtitle-detail {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.92em;
    opacity: 0.78;
    letter-spacing: 0.22em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION CATÉGORIES — GRILLE 2x2
   ============================================ */
.categories-section {
    position: relative;
    z-index: 5;
    background: #0a0a0a;
    width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #0a0a0a;
}

.category-block {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #0a0a0a;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    isolation: isolate;
}

.category-block img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.92) saturate(0.95);
    transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.7s ease;
    will-change: transform, filter;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: background 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.category-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-label > span {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f6f1e6;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    padding: 0 1rem;
    position: relative;
    display: inline-block;
}

.category-label > span::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 48px;
    height: 1px;
    background: rgba(246, 241, 230, 0.7);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    transform-origin: center;
}

/* États hover & focus */
.category-block:hover img,
.category-block:focus-visible img {
    transform: scale(1.06);
    filter: brightness(0.6) saturate(0.85);
}

.category-block:hover .category-overlay,
.category-block:focus-visible .category-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.category-block:hover .category-label,
.category-block:focus-visible .category-label {
    opacity: 1;
    transform: translateY(0);
}

.category-block:hover .category-label > span::after,
.category-block:focus-visible .category-label > span::after {
    transform: translateX(-50%) scaleX(1);
}

.category-block:focus-visible {
    outline: 1px solid rgba(246, 241, 230, 0.6);
    outline-offset: -4px;
}

/* Bloc Graphic Design — plus sombre par défaut */
.category-block[href="graphic-design.html"] img {
    filter: brightness(0.5) saturate(0.8);
}

.category-block[href="graphic-design.html"] .category-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* ============================================
   INDICATEUR DE SCROLL
   ============================================ */
.scroll-indicator {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.7);
    animation: bounceArrow 2.4s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 100%;
    height: 100%;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1;
    }
}

/* ============================================
   PAGES BLANCHES — BIO / CONTACT
   ============================================ */
.blank-page {
    background: #ffffff;
    color: #0a0a0a;
    min-height: 100vh;
}

.blank-page .site-header {
    position: absolute;
}

.blank-page .nav-link {
    color: rgba(10, 10, 10, 0.7);
}

.blank-page .nav-link:hover,
.blank-page .nav-link.active {
    color: #0a0a0a;
}

.blank-page .nav-link.active::after {
    background: #0a0a0a;
}

.blank-page .nav-sep {
    color: rgba(10, 10, 10, 0.4);
}

.blank-page .social-icons a {
    color: rgba(10, 10, 10, 0.75);
}

.blank-page .social-icons a:hover {
    color: #0a0a0a;
}

/* ============================================
   PAGE BIO — STYLE ÉDITORIAL
   ============================================ */
.bio-page {
    background: #0a0a0a;
    color: #f6f1e6;
    min-height: 100vh;
    overflow-x: hidden;
}

.bio-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('fond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(7px) saturate(0.75) brightness(0.5);
    transform: scale(1.06);
    opacity: 1;
}

.bio-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.72) 0%,
        rgba(15, 15, 15, 0.65) 50%,
        rgba(8, 8, 8, 0.78) 100%
    );
    pointer-events: none;
}

/* Header sur la page Bio — texte clair */
.bio-page .site-header {
    position: absolute;
    z-index: 10;
}

.bio-page .nav-link {
    color: rgba(245, 243, 239, 0.75);
}

.bio-page .nav-link:hover,
.bio-page .nav-link.active {
    color: #ffffff;
}

.bio-page .nav-link.active::after {
    background: #ffffff;
}

.bio-page .nav-sep {
    color: rgba(245, 243, 239, 0.5);
}

.bio-page .social-icons a {
    color: rgba(245, 243, 239, 0.85);
}

.bio-page .social-icons a:hover {
    color: #ffffff;
}

/* Contenu principal */
.bio-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 6vw 6rem;
}

.bio-container {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    max-width: 1280px;
    width: 100%;
    animation: bioFadeIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

@keyframes bioFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Colonne photo */
.bio-photo {
    display: flex;
    justify-content: center;
}

.bio-photo-frame {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.65),
        0 14px 32px -12px rgba(0, 0, 0, 0.45);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bio-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(0.05) contrast(1.04) brightness(0.98);
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bio-photo-frame:hover img {
    transform: scale(1.03);
}

/* Colonne texte */
.bio-content {
    max-width: 560px;
}

.bio-text p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.86rem, 0.98vw, 0.97rem);
    font-weight: 300;
    line-height: 1.82;
    letter-spacing: 0.015em;
    color: rgba(246, 241, 230, 0.88);
    margin-bottom: 1.2rem;
}

.bio-text p:first-child {
    position: relative;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Bouton CV */
.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2.6rem;
    padding: 0.85rem 1.6rem 0.85rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.92);
    position: relative;
    transition: gap 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.3s ease;
}

.cv-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(246, 241, 230, 0.45);
    transition: background 0.3s ease, transform 0.4s ease;
    transform-origin: left;
}

.cv-button:hover {
    gap: 1.3rem;
    color: #ffffff;
}

.cv-button:hover::before {
    background: #ffffff;
}

.cv-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cv-button:hover svg {
    transform: translateX(4px);
}

/* ============================================
   PAGE GRAPHIC DESIGN — BIENTÔT DISPONIBLE
   ============================================ */
.gd-page {
    background: #0a0a0a;
    color: #f6f1e6;
    min-height: 100vh;
    overflow: hidden;
}

.gd-page .site-header {
    position: absolute;
    z-index: 10;
}

.gd-page .social-icons a {
    color: rgba(245, 243, 239, 0.85);
}

.gd-page .social-icons a:hover {
    color: #ffffff;
}

.gd-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 6vw 4rem;
    box-sizing: border-box;
}

.gd-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: clamp(1.4rem, 3vw, 3rem);
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    animation: bioFadeIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.gd-emoji {
    width: clamp(170px, 22vw, 280px);
    aspect-ratio: 200 / 260;
    color: rgba(246, 241, 230, 0.78);
    user-select: none;
}

.gd-emoji svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gd-message {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.5;
    letter-spacing: 0.015em;
    color: rgba(246, 241, 230, 0.88);
    margin: 0;
    white-space: nowrap;
}

/* ============================================
   PAGE "VOIR PLUS" — DECK PHOTOS + COMPÉTENCES + LANGUES
   ============================================ */
.voir-plus-page {
    background: #0a0a0a;
    color: #f6f1e6;
    min-height: 100vh;
    overflow-x: hidden;
}

.voir-plus-page .site-header {
    position: absolute;
    z-index: 10;
}

.voir-plus-page .social-icons a {
    color: rgba(245, 243, 239, 0.85);
}

.voir-plus-page .social-icons a:hover {
    color: #ffffff;
}

.voir-plus-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 6vw 6rem;
    box-sizing: border-box;
}

.voir-plus-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    max-width: 1280px;
    width: 100%;
    animation: bioFadeIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

/* Pile de photos cliquable */
.voir-plus-photos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 3 / 4;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    perspective: 1200px;
}

.deck-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow:
        0 30px 60px -25px rgba(0, 0, 0, 0.65),
        0 12px 30px -15px rgba(0, 0, 0, 0.45);
    transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.2, 1),
                opacity 0.45s ease,
                box-shadow 0.55s ease;
    transform-origin: center 60%;
    will-change: transform, opacity;
}

.deck-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(0.05) contrast(1.02);
    user-select: none;
    -webkit-user-drag: none;
}

/* Positions de la pile */
.deck-card[data-pos="0"] {
    z-index: 3;
    transform: translate(0, 0) rotate(-2deg);
}

.deck-card[data-pos="1"] {
    z-index: 2;
    transform: translate(14px, 12px) rotate(1.5deg);
    box-shadow:
        0 22px 45px -20px rgba(0, 0, 0, 0.55),
        0 8px 22px -12px rgba(0, 0, 0, 0.35);
}

.deck-card[data-pos="2"] {
    z-index: 1;
    transform: translate(28px, 24px) rotate(4deg);
    box-shadow:
        0 16px 35px -18px rgba(0, 0, 0, 0.45),
        0 6px 18px -10px rgba(0, 0, 0, 0.3);
}

/* Sortie de la carte du dessus au clic */
.deck-card.is-leaving {
    transform: translate(-120%, -8%) rotate(-22deg) !important;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.55, 0.1, 0.2, 1),
                opacity 0.45s ease;
}

.photo-stack:hover .deck-card[data-pos="0"] {
    transform: translate(-4px, -4px) rotate(-2.5deg);
}

.photo-stack:focus-visible {
    outline: none;
}

.photo-stack:focus-visible .deck-card[data-pos="0"] {
    outline: 1px solid rgba(246, 241, 230, 0.55);
    outline-offset: 4px;
}

/* Colonne droite : Nom + Compétences + Langues */
.voir-plus-content {
    display: flex;
    flex-direction: column;
    gap: 2.6rem;
    max-width: 480px;
}

.voir-plus-name {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: 0.06em;
    color: #f6f1e6;
    margin: 0;
    padding-bottom: 1.2rem;
    position: relative;
}

.voir-plus-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 1px;
    background: rgba(246, 241, 230, 0.5);
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-title {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f6f1e6;
    margin: 0;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(246, 241, 230, 0.18);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: rgba(246, 241, 230, 0.82);
}

.info-list-langs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.info-list-langs .lang-name {
    color: #f6f1e6;
    font-weight: 400;
}

.info-list-langs .lang-level {
    color: rgba(246, 241, 230, 0.55);
    font-size: 0.85em;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

/* ============================================
   PAGE CV — VISIONNEUSE PDF INTÉGRÉE
   ============================================ */
.cv-page {
    background: #0a0a0a;
    color: #f6f1e6;
    min-height: 100vh;
    overflow: hidden;
}

/* Hériter du fond sombre/flouté de la page Bio */
.cv-page .bio-background {
    /* déjà défini, identique à .bio-page */
}

/* Header de la page CV */
.cv-header {
    position: absolute;
    z-index: 10;
}

.cv-page .social-icons a {
    color: rgba(245, 243, 239, 0.85);
}

.cv-page .social-icons a:hover {
    color: #ffffff;
}

/* Bouton Retour */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 243, 239, 0.78);
    padding: 0.4rem 0;
    transition: color 0.3s ease, gap 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.back-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.back-button:hover {
    color: #ffffff;
    gap: 1rem;
}

.back-button:hover svg {
    transform: translateX(-4px);
}

/* Conteneur principal */
.cv-main {
    position: relative;
    z-index: 2;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4vw 3rem;
    box-sizing: border-box;
    overflow: hidden;
}

/* Visionneuse */
.cv-viewer {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 40px 90px -25px rgba(0, 0, 0, 0.75),
        0 18px 40px -15px rgba(0, 0, 0, 0.55);
    animation: cvFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

@keyframes cvFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #ffffff;
}

/* ============================================
   PAGE CONTACT — STYLE ÉDITORIAL
   ============================================ */
.contact-page {
    background: #0a0a0a;
    color: #f6f1e6;
    min-height: 100vh;
    overflow-x: hidden;
}

.contact-page .site-header {
    position: absolute;
    z-index: 10;
}

.contact-page .nav-link {
    color: rgba(245, 243, 239, 0.75);
}

.contact-page .nav-link:hover,
.contact-page .nav-link.active {
    color: #ffffff;
}

.contact-page .nav-link.active::after {
    background: #ffffff;
}

.contact-page .nav-sep {
    color: rgba(245, 243, 239, 0.5);
}

.contact-page .social-icons a {
    color: rgba(245, 243, 239, 0.85);
}

.contact-page .social-icons a:hover {
    color: #ffffff;
}

.contact-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 6vw 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
    max-width: 1280px;
    width: 100%;
    animation: bioFadeIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

/* ===== Colonne gauche : Infos ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
}

.contact-intro {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.02vw, 1rem);
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.02em;
    color: rgba(246, 241, 230, 0.82);
    max-width: 460px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.3rem 1.6rem;
    border: 1px solid rgba(246, 241, 230, 0.12);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-item:hover {
    border-color: rgba(246, 241, 230, 0.28);
    background: rgba(255, 255, 255, 0.045);
    transform: translateX(4px);
}

.contact-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 241, 230, 0.06);
    color: rgba(246, 241, 230, 0.85);
    border: 1px solid rgba(246, 241, 230, 0.1);
}

.contact-item-icon svg {
    width: 18px;
    height: 18px;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.contact-item-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.5);
}

.contact-item-value {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.92rem, 1.02vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #f6f1e6;
    word-break: break-word;
    transition: color 0.3s ease;
}

a.contact-item-value {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}

a.contact-item-value:hover {
    color: #ffffff;
    background-size: 100% 1px;
}

/* ===== Colonne droite : Formulaire ===== */
.contact-form-wrap {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

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

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.58);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(246, 241, 230, 0.14);
    color: #f6f1e6;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
            appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(246, 241, 230, 0.32);
    font-weight: 300;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(246, 241, 230, 0.28);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(246, 241, 230, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Inter', sans-serif;
}

/* Bouton Envoyer */
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.5rem;
    padding: 1.1rem 1.5rem;
    background: #f6f1e6;
    color: #0a0a0a;
    border: 1px solid #f6f1e6;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, gap 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0;
    width: 100%;
}

.form-submit svg {
    width: 17px;
    height: 17px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-submit:hover {
    background: transparent;
    color: #ffffff;
    gap: 1.1rem;
}

.form-submit:hover svg {
    transform: translateX(3px) translateY(-2px);
}

.form-submit:active {
    transform: scale(0.99);
}

/* Statut de soumission */
.form-status {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(246, 241, 230, 0.7);
    min-height: 1.2em;
    margin-top: 0.4rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-status.visible {
    opacity: 1;
}

.form-status.error {
    color: #e6c9b0;
}

.form-status.success {
    color: rgba(246, 241, 230, 0.85);
}

/* ============================================
   PAGE PHOTOS — GRILLE + LIGHTBOX
   ============================================ */
.photos-page {
    background: #0a0a0a;
    color: #f6f1e6;
    min-height: 100vh;
}

.photos-page .site-header {
    position: absolute;
    z-index: 10;
}

.photos-page .social-icons a {
    color: rgba(245, 243, 239, 0.85);
}

.photos-page .social-icons a:hover {
    color: #ffffff;
}

.photos-main {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    animation: bioFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

/* Padding différencié selon la vue active */
.photos-page[data-view="grid"] .photos-main {
    padding: 8rem 6vw 5rem;
}

.photos-page[data-view="carousel"] .photos-main {
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====== HEADER : groupe droit (toggle + sociaux) ====== */
.photos-page .header-right {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

/* Bouton vue (Grille / Carrousel) */
.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1px solid rgba(246, 241, 230, 0.2);
    color: rgba(246, 241, 230, 0.85);
    padding: 0.55rem 0.95rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.view-toggle:hover,
.view-toggle:focus-visible {
    color: #ffffff;
    border-color: rgba(246, 241, 230, 0.55);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.view-toggle-icons {
    display: inline-flex;
    width: 16px;
    height: 16px;
    position: relative;
}

.view-toggle-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.photos-page[data-view="carousel"] .view-toggle-icon-grid {
    display: inline-flex;
}

.photos-page[data-view="grid"] .view-toggle-icon-carousel {
    display: inline-flex;
}

/* ============================================
   VUE CARROUSEL
   ============================================ */
.view-carousel {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.view-carousel[hidden] {
    display: none;
}

.carousel-stage {
    position: relative;
    width: 100%;
    flex: 1;
    display: block;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Slide photo dans le rail glissant */
.photo-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 6rem 7.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.photo-slide-image {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-slide-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    box-shadow:
        0 35px 80px -25px rgba(0, 0, 0, 0.7),
        0 14px 30px -12px rgba(0, 0, 0, 0.4);
    user-select: none;
    -webkit-user-drag: none;
}

.photo-slide-info {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.photo-slide-subject {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f6f1e6;
}

.photo-slide-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.55);
}

/* Flèches */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(246, 241, 230, 0.18);
    color: rgba(246, 241, 230, 0.85);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    color: #ffffff;
    border-color: rgba(246, 241, 230, 0.6);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%) scale(1.06);
    outline: none;
}

.carousel-prev { left: 2.2rem; }
.carousel-next { right: 2.2rem; }

.carousel-arrow:disabled,
.carousel-arrow[disabled] {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* Pied de page : caption + counter */
.carousel-footer {
    position: absolute;
    bottom: 1.8rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 6rem;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    text-align: center;
}

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

.carousel-subject {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f6f1e6;
}

.carousel-meta {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.55);
}

.carousel-counter {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(246, 241, 230, 0.35);
    font-variant-numeric: tabular-nums;
}

/* ============================================
   VUE GRILLE — wrapper
   ============================================ */
.view-grid[hidden] {
    display: none;
}

/* Total de photos en pied de grille */
.photos-total {
    margin: clamp(2.5rem, 4vw, 4rem) auto 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.45);
    font-variant-numeric: tabular-nums;
    position: relative;
    padding-top: 1.4rem;
}

.photos-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 1px;
    background: rgba(246, 241, 230, 0.3);
}

.photos-title {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f6f1e6;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.4rem;
}

.photos-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 1px;
    background: rgba(246, 241, 230, 0.5);
}

/* Grille — colonnes flex équilibrées via JS (greedy distribution) */
.photos-grid {
    display: flex;
    gap: clamp(0.8rem, 1.4vw, 1.6rem);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: flex-start;
}

.photos-grid.is-loaded {
    opacity: 1;
}

.photos-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 1.4vw, 1.6rem);
}

.photo-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    isolation: isolate;
}

.photo-item img {
    display: block;
    width: 100%;
    height: auto;
    /* Pas de object-fit : on conserve les proportions originales sans crop */
    transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
    filter: brightness(0.95) saturate(0.96);
    will-change: transform;
}

.photo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.photo-item:hover img,
.photo-item:focus-visible img {
    transform: scale(1.025);
    filter: brightness(1.02) saturate(1);
}

.photo-item:hover::after,
.photo-item:focus-visible::after {
    background: rgba(0, 0, 0, 0.1);
}

.photo-item:focus-visible {
    outline: 1px solid rgba(246, 241, 230, 0.55);
    outline-offset: -3px;
}

/* ============================================
   PAGE MONTAGE — CARROUSEL VIDÉO
   ============================================ */
.montage-page {
    background: #0a0a0a;
    color: #f6f1e6;
    min-height: 100vh;
    overflow-x: hidden;
}

.montage-page .site-header {
    position: absolute;
    z-index: 10;
}

.montage-page .social-icons a {
    color: rgba(245, 243, 239, 0.85);
}

.montage-page .social-icons a:hover {
    color: #ffffff;
}

.montage-main {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Carrousel Montage : vrai rail qui glisse, vidéo à gauche, texte à droite */
.montage-carousel .carousel-stage {
    padding: 0;
    display: block;
    overflow: hidden;
    width: 100%;
}

.carousel-strip {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.6, 0.05, 0.2, 1);
    will-change: transform;
}

.montage-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 6.5rem 7.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.montage-slide-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    width: 100%;
    max-width: 1300px;
}

/* Bloc vidéo (gauche) */
.montage-video-frame {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    box-shadow:
        0 30px 70px -25px rgba(0, 0, 0, 0.75),
        0 14px 30px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.montage-video-frame video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    background: #000;
    outline: none;
}

/* Bloc info (droite) */
.montage-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    max-width: 480px;
    align-self: stretch;
}

.montage-info-top {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* "Outils utilisés" — aligné à droite dans la colonne texte */
.montage-info-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.45rem;
    margin-top: auto;
}

.montage-tools-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.45);
}

.montage-tools-value {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #f6f1e6;
}

.montage-title {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f6f1e6;
    text-align: center;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
    position: relative;
    padding-bottom: 1.4rem;
}

.montage-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 1px;
    background: rgba(246, 241, 230, 0.5);
}

/* Une ligne de projet */
.montage-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    margin-bottom: clamp(5rem, 9vw, 9rem);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.montage-row:last-child {
    margin-bottom: 0;
}

.montage-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inverse l'ordre des colonnes pour les lignes alternées */
.montage-row-reverse .montage-video {
    order: 2;
}

.montage-row-reverse .montage-text {
    order: 1;
}

/* Bloc vidéo */
.montage-video {
    position: relative;
    width: 100%;
    background: #0a0a0a;
    overflow: hidden;
    box-shadow:
        0 30px 70px -25px rgba(0, 0, 0, 0.7),
        0 14px 30px -12px rgba(0, 0, 0, 0.45);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.6s ease;
}

.montage-video video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
    outline: none;
}

.montage-row:hover .montage-video {
    transform: translateY(-3px);
    box-shadow:
        0 40px 80px -25px rgba(0, 0, 0, 0.8),
        0 18px 36px -14px rgba(0, 0, 0, 0.5);
}

/* Bloc texte */
.montage-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 460px;
}

.montage-row-reverse .montage-text {
    margin-left: auto;
}

.montage-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    color: rgba(246, 241, 230, 0.45);
    font-variant-numeric: tabular-nums;
}

.montage-project-title {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: 0.06em;
    color: #f6f1e6;
    margin: 0;
    position: relative;
    padding-bottom: 0.9rem;
    text-transform: uppercase;
}

.montage-project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 1px;
    background: rgba(246, 241, 230, 0.4);
}

.montage-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 0.92vw, 0.9rem);
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.015em;
    color: rgba(246, 241, 230, 0.78);
    margin: 0;
    white-space: pre-line;
}

/* Loader subtil pendant le préchargement */
.photos-loader {
    position: relative;
    width: 28px;
    height: 28px;
    margin: 4rem auto 2rem;
    border: 1px solid rgba(246, 241, 230, 0.18);
    border-top-color: rgba(246, 241, 230, 0.75);
    border-radius: 50%;
    animation: photosSpin 1s linear infinite;
}

.photos-loader.is-hidden {
    display: none;
}

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

/* ============================================
   LIGHTBOX
   ============================================ */
body.no-scroll {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox[hidden] {
    display: none;
}

/* Boutons de la lightbox */
.lightbox-btn {
    position: absolute;
    background: transparent;
    border: 1px solid rgba(246, 241, 230, 0.18);
    color: rgba(246, 241, 230, 0.85);
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    z-index: 5;
}

.lightbox-btn svg {
    width: 20px;
    height: 20px;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
    color: #ffffff;
    border-color: rgba(246, 241, 230, 0.6);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

/* Icône grille — haut droite */
.lightbox-grid-btn {
    top: 1.8rem;
    right: 1.8rem;
    width: 44px;
    height: 44px;
}

/* Flèches gauche / droite */
.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
    transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Scène image */
.lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 7rem 4rem;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-image.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Footer (caption + compteur) */
.lightbox-footer {
    position: absolute;
    bottom: 1.6rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    padding: 0 6rem;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

.lightbox-caption {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 241, 230, 0.75);
}

.lightbox-counter {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: rgba(246, 241, 230, 0.4);
    font-variant-numeric: tabular-nums;
}

/* ============================================
   RESPONSIVE — TABLETTE
   ============================================ */
@media (max-width: 900px) {
    .site-header {
        padding: 1.6rem 1.8rem;
    }

    .main-nav {
        gap: 0.6rem;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .social-icons {
        gap: 1.1rem;
    }

    .social-icons a {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding: 0 5vw;
        /* On garde l'alignement à droite, hérité du style de base */
    }

    .hero-subtitle {
        font-size: clamp(0.68rem, 1.6vw, 0.85rem);
        letter-spacing: 0.22em;
    }

    /* MONTAGE — tablette : stack vertical, vidéo au-dessus du texte */
    .montage-main {
        height: auto;
        min-height: 100vh;
    }

    .montage-slide {
        padding: 5.5rem 4.5rem 4rem;
    }

    .montage-slide-inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        align-items: start;
    }

    .montage-info {
        max-width: 100%;
        gap: 1.5rem;
    }

    .montage-info-tools {
        align-items: flex-start;
        text-align: left;
        margin-top: 0;
    }

    .montage-video-frame video {
        max-height: 50vh;
    }

    /* PHOTOS — tablette */
    .photos-page[data-view="grid"] .photos-main {
        padding: 7rem 4vw 4rem;
    }

    .photos-title {
        margin-bottom: 2.2rem;
    }

    .photos-grid {
        gap: 1rem;
    }

    .photos-col {
        gap: 1rem;
    }

    /* Carrousel — tablette */
    .photo-slide {
        padding: 5rem 4.5rem 3rem;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .carousel-prev { left: 1rem; }
    .carousel-next { right: 1rem; }

    /* Toggle de vue — tablette */
    .photos-page .header-right {
        gap: 1rem;
    }

    .view-toggle {
        padding: 0.45rem 0.75rem;
        font-size: 0.64rem;
        letter-spacing: 0.16em;
    }

    .view-toggle-label {
        display: none; /* On garde uniquement l'icône sur tablette */
    }

    .lightbox-grid-btn {
        top: 1.2rem;
        right: 1.2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-arrow {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-stage {
        padding: 4.5rem 4.5rem 4rem;
    }

    .lightbox-footer {
        padding: 0 4.5rem;
        flex-direction: column;
        gap: 0.4rem;
    }

    /* CATÉGORIES — tablette : 1 colonne */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-block {
        aspect-ratio: 4 / 3;
    }

    .category-label > span {
        font-size: clamp(1.5rem, 5vw, 2.4rem);
        letter-spacing: 0.14em;
    }

    /* Sur tablette, on montre le label en permanence (pas de hover tactile fiable) */
    .category-block .category-label {
        opacity: 1;
        transform: translateY(0);
    }

    .category-block .category-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.32) 60%,
            rgba(0, 0, 0, 0.45) 100%
        );
    }

    .category-block .category-label > span::after {
        transform: translateX(-50%) scaleX(1);
    }

    /* GRAPHIC DESIGN — tablette */
    .gd-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.8rem;
        max-width: 480px;
    }

    .gd-message {
        max-width: 100%;
        white-space: normal;
    }

    /* VOIR PLUS — tablette : stack vertical */
    .voir-plus-main {
        padding: 7rem 5vw 5rem;
    }

    .voir-plus-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 540px;
    }

    .photo-stack {
        max-width: 360px;
        margin: 0 auto;
    }

    .voir-plus-content {
        max-width: 100%;
        text-align: left;
    }

    /* BIO — stack vertical sur tablette */
    .bio-main {
        padding: 7rem 5vw 5rem;
    }

    .bio-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 540px;
    }

    .bio-photo-frame {
        max-width: 380px;
        margin: 0 auto;
    }

    .bio-content {
        max-width: 100%;
        text-align: left;
    }

    /* CONTACT — tablette */
    .contact-main {
        padding: 7rem 5vw 5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        max-width: 600px;
    }

    .contact-info {
        gap: 2.2rem;
    }

    .contact-intro {
        max-width: 100%;
    }

    /* CV — tablette */
    .cv-main {
        padding: 5rem 3vw 2.5rem;
    }

    .back-button {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .back-button svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 600px) {
    .site-header {
        padding: 1.4rem 1.4rem;
        flex-direction: row;
        align-items: center;
    }

    .main-nav {
        gap: 0.5rem;
        font-size: 0.68rem;
    }

    .nav-sep {
        font-size: 0.65rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icons a {
        width: 17px;
        height: 17px;
    }

    .hero {
        padding: 0 1.2rem;
    }

    .hero-title {
        margin-bottom: 1.2rem;
        letter-spacing: 0.14em;
    }

    .hero-subtitle {
        font-size: 0.66rem;
        letter-spacing: 0.18em;
    }

    .hero-subtitle span {
        letter-spacing: 0.14em;
    }

    .scroll-indicator {
        bottom: 1.8rem;
        width: 18px;
        height: 18px;
    }

    /* VOIR PLUS — mobile */
    .voir-plus-main {
        padding: 6rem 1.4rem 4rem;
    }

    .voir-plus-grid {
        gap: 2.4rem;
    }

    .photo-stack {
        max-width: 100%;
    }

    .voir-plus-content {
        gap: 2rem;
    }

    .voir-plus-name {
        font-size: 1.6rem;
        padding-bottom: 0.9rem;
    }

    .info-title {
        font-size: 0.88rem;
        letter-spacing: 0.18em;
    }

    .info-list {
        font-size: 0.92rem;
    }

    /* Sur mobile, on réduit l'offset des cartes pour qu'elles tiennent dans l'écran */
    .deck-card[data-pos="1"] {
        transform: translate(10px, 9px) rotate(1.5deg);
    }

    .deck-card[data-pos="2"] {
        transform: translate(20px, 18px) rotate(3.5deg);
    }

    /* BIO — mobile */
    .bio-main {
        padding: 6rem 1.5rem 4rem;
    }

    .bio-container {
        gap: 2.4rem;
    }

    .bio-photo-frame {
        max-width: 100%;
    }

    .bio-text p {
        font-size: 0.88rem;
        line-height: 1.78;
        margin-bottom: 1rem;
    }

    .cv-button {
        margin-top: 2rem;
        font-size: 0.72rem;
        letter-spacing: 0.18em;
        gap: 0.7rem;
    }

    .cv-button svg {
        width: 16px;
        height: 16px;
    }

    /* MONTAGE — mobile */
    .montage-slide {
        padding: 4.5rem 1.4rem 4rem;
    }

    .montage-slide-inner {
        gap: 1.4rem;
    }

    .montage-project-title {
        font-size: 1.5rem;
        padding-bottom: 0.7rem;
    }

    .montage-project-title::after {
        width: 30px;
    }

    .montage-description {
        font-size: 0.88rem;
        line-height: 1.78;
    }

    .montage-number {
        font-size: 0.62rem;
        letter-spacing: 0.24em;
    }

    .montage-tools-label {
        font-size: 0.6rem;
        letter-spacing: 0.22em;
    }

    .montage-tools-value {
        font-size: 0.95rem;
    }

    .montage-video-frame video {
        max-height: 40vh;
    }

    /* PHOTOS — mobile */
    .photos-page[data-view="grid"] .photos-main {
        padding: 6rem 1.2rem 3rem;
    }

    .photos-title {
        font-size: 1.4rem;
        letter-spacing: 0.18em;
        margin-bottom: 1.8rem;
        padding-bottom: 1rem;
    }

    .photos-title::after {
        width: 40px;
    }

    .photos-grid {
        gap: 0.8rem;
        max-width: 520px;
    }

    .photos-col {
        gap: 0.8rem;
    }

    /* Carrousel — mobile */
    .photo-slide {
        padding: 4.2rem 3.2rem 2.8rem;
        gap: 1rem;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .carousel-prev { left: 0.6rem; }
    .carousel-next { right: 0.6rem; }

    .photo-slide-subject {
        font-size: 0.95rem;
        letter-spacing: 0.1em;
    }

    .photo-slide-meta {
        font-size: 0.62rem;
        letter-spacing: 0.22em;
    }

    /* Toggle de vue — mobile */
    .view-toggle {
        padding: 0.45rem;
    }

    .photos-page .header-right {
        gap: 0.8rem;
    }

    /* Lightbox mobile */
    .lightbox-grid-btn {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    .lightbox-grid-btn svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-arrow svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-prev {
        left: 0.6rem;
    }

    .lightbox-next {
        right: 0.6rem;
    }

    .lightbox-stage {
        padding: 4rem 3.2rem 3.5rem;
    }

    .lightbox-footer {
        padding: 0 1.2rem;
        bottom: 1rem;
    }

    .lightbox-caption {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        text-align: center;
    }

    .lightbox-counter {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
    }

    /* CATÉGORIES — mobile */
    .category-block {
        aspect-ratio: 5 / 4;
    }

    .category-label > span {
        font-size: clamp(1.4rem, 6.5vw, 2rem);
        letter-spacing: 0.12em;
    }

    /* CONTACT — mobile */
    .contact-main {
        padding: 6rem 1.4rem 4rem;
    }

    .contact-grid {
        gap: 2.8rem;
    }

    .contact-intro {
        font-size: 0.88rem;
        line-height: 1.78;
    }

    .contact-item {
        padding: 1.1rem 1.2rem;
        gap: 1.1rem;
    }

    .contact-item-icon {
        width: 38px;
        height: 38px;
    }

    .contact-item-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-item-label {
        font-size: 0.62rem;
        letter-spacing: 0.22em;
    }

    .contact-item-value {
        font-size: 0.9rem;
    }

    .contact-form {
        gap: 1.4rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .form-submit {
        padding: 1rem 1.2rem;
        font-size: 0.72rem;
        letter-spacing: 0.22em;
    }

    /* CV — mobile */
    .cv-main {
        padding: 4.5rem 1rem 1.5rem;
    }

    .cv-viewer {
        box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    }

    .back-button span {
        display: none;
    }

    .back-button {
        gap: 0;
    }

    .back-button svg {
        width: 22px;
        height: 22px;
    }

    .back-button:hover svg {
        transform: translateX(-3px);
    }
}

@media (max-width: 380px) {
    .main-nav {
        gap: 0.35rem;
        font-size: 0.62rem;
    }

    .hero-title {
        letter-spacing: 0.12em;
    }
}

/* ============================================
   ORIENTATION PAYSAGE — MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-title {
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITÉ — MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
