/*
Theme Name: Axel Faure Portfolio
Author: Axel Faure
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ==========================================================================
  SECTION 1 : FONT POLICES
   ========================================================================== */
@font-face {
    font-family: 'ArchivoSemiCondensed';
    src: url('fonts/ArchivoSemiCondensed-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ArchivoSemiCondensed';
    src: url('fonts/ArchivoSemiCondensed-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ArchivoSemiCondensed';
    src: url('fonts/ArchivoSemiCondensed-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ArchivoSemiCondensed';
    src: url('fonts/ArchivoSemiCondensed-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ArchivoCondensed';
    src: url('fonts/ArchivoCondensed-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'InputMono';
    src: url('fonts/InputMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   SECTION 2 : DESIGN TOKENS (Variables)
   ========================================================================== */

:root {
    --f-main: 'ArchivoSemiCondensed', sans-serif;
    --f-cond: 'ArchivoCondensed', sans-serif;
    --f-mono: 'InputMono', monospace;
    --w-reg: 400;
    --w-med: 500;
    --w-bold: 600;
    --w-exbold: 700;
    --c-bg: #ffffff;
    --c-text: #000000;    
    --c-subtext: #a1a1a1;     
    /* TAILLES FLUIDES COHÉRENTES (SAUF HEADER) */
    --f-size-xs: clamp(0.68rem, 0.65vw, 0.7rem);
    --f-size-s: clamp(0.72rem, 0.75vw, 0.75rem);
}

/* ==========================================================================
   SECTION 3 : RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-main);
    font-weight: var(--w-reg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

.site-header { flex-shrink: 0; z-index: 100; position: relative; }
.site-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.site-footer { flex-shrink: 0; z-index: 100; position: relative; }

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

button, input, textarea { font: inherit; }

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

/* ==========================================================================
   SECTION 4 : LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: 140rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (max-width: 768px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.section { padding-top: 10px; padding-bottom: 10px; }

[data-barba="wrapper"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

[data-barba="container"] {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* ==========================================================================
   SECTION 5 : LOADER PREMIÈRE VISITE
   ========================================================================== */

#site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--c-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#loader-count, .loader-pct, .loader-word {
    font-family: var(--f-main);
    font-weight: var(--w-med);
    font-size: 0.85rem;
    line-height: 1;
    color: var(--c-subtext);
}

/* ==========================================================================
   SECTION 6 : COMPONENTS (Header / Footer)
   ========================================================================== */
   
.site-logo a {
    font-family: var(--f-cond);
    font-weight: var(--w-bold);
    font-size: 1.5rem;
    line-height: 0.9;
    text-transform: uppercase;
    display: block;
}

.site-logo a:hover { opacity: 1 !important; color: var(--c-text) !important; }

.site-description {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.header-menu-list li a {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    background: none; border: none; padding: 8px 0 8px 8px; z-index: 2001; line-height: 0; cursor: pointer;
    min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}

.menu-toggle svg { width: 28px; height: 28px; fill: var(--c-text); display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-active .icon-burger { display: none; }
.menu-toggle.is-active .icon-close { display: block; }

@media (min-width: 769px) {
    .menu-toggle { display: none !important; }
    .header-inner { display: flex; justify-content: space-between; align-items: flex-start; }
    .header-brand { display: flex; align-items: flex-start; gap: 1vh; }
    .d-indent { display: block; padding-left: 4.4rem; }
    .header-menu-list { display: flex; list-style: none; gap: 1.2rem; }
    .header-menu-list .menu-item a { transition: opacity 0.4s ease, filter 0.4s ease, color 0.4s ease, transform 0.4s ease; }
    .header-menu-list:has(a:hover) .menu-item a:not(:hover) { filter: blur(1.5px); color: var(--c-subtext); opacity: 0.7; }
    .header-menu-list .menu-item a:hover { filter: blur(0px); opacity: 1; color: var(--c-text); transform: scale(1.02); }
}

/* HEADER MOBILE : CENTRAGE AVEC PADDING RÉDUIT */
@media (max-width: 768px) {
    .site-header .container { padding-left: 5vw; padding-right: 5vw; }
    .header-inner { display: flex; justify-content: space-between; align-items: center; }
    .header-brand { display: flex; align-items: flex-start; gap: 8px; }
    .site-logo a { font-size: 1.3rem; }
    .site-description { font-size: 0.65rem; }
    .d-indent { display: block; padding-left: min(7em, 4rem); }
    .menu-toggle { display: flex !important; }
    .site-navigation { position: absolute; top: 100%; left: 0; width: 100%; background: var(--c-bg); z-index: 2000; opacity: 0; transform: translateY(-8px);
     transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
    .site-navigation.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .header-menu-list { display: flex !important; flex-direction: column !important; border-top: 0.5px solid var(--c-subtext); list-style: none; }
    .header-menu-list .menu-item { border-bottom: 0.5px solid var(--c-subtext); width: 100%; }
    .header-menu-list li a { font-size: 0.72rem; padding: 0.5rem 0; text-align: center; display: block; width: 100%; }
}

.footer-inner {
    position: relative; display: flex; justify-content: space-between; align-items: center;
    font-size: var(--f-size-xs); text-transform: uppercase;
}
.footer-inner a, .footer-inner p:last-child { color: var(--c-text); font-weight: var(--w-bold); }

@media (max-width: 768px) {
    .footer-inner { display: flex; font-size: 0.6rem; justify-content: space-between; text-align: center; }
}

/* ==========================================================================
   SECTION 7 : PAGE ABOUT
   ========================================================================== */


/* On garde ton mobile tel quel */
.about-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; 
    height: 100%; padding: 0.5rem; box-sizing: border-box; position: relative; }
.about-inner { width: 100%; max-width: 500px; text-align: left; display: flex; flex-direction: column; 
    gap: 1.8rem; margin: auto 0; padding: 2rem 0; }
.about-intro { display: flex; flex-direction: column; line-height: 1.25; font-weight: var(--w-bold);
    font-size: var(--f-size-s); gap: 10px; text-transform: uppercase; }
.about-bio { font-size: var(--f-size-s); font-weight: var(--w-reg); line-height: 1.25; color: var(--c-subtext);
     text-align: justify; text-align-last: left; text-transform: uppercase; }
.about-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.about-info p { font-size: var(--f-size-s); line-height: 1.3; }
.info-label { font-weight: var(--w-bold); text-transform: uppercase; color: var(--c-text); }
.info-value { font-weight: var(--w-reg); color: var(--c-subtext); text-transform: uppercase; }

/* TABLETTE : On reste sur du centrage total */
@media (min-width: 769px) { .about-page { justify-content: center; align-items: center; padding: 4rem; } .about-inner { max-width: 550px; } }

/* DESKTOP : Centrage horizontal total au lieu du padding-left */
@media (min-width: 1024px) { 
    .about-page { justify-content: center; align-items: center; } 
    .about-inner { max-width: 500px; margin: 0 auto; } 
    .about-info { gap: 1.4rem; margin-top: 3rem; } 
}



/* ==========================================================================
   SECTION 8 : PAGE HOME
   ========================================================================== */

.portfolio-container { flex: 1; display: flex; width: 100%; height: 100vh; height: 100dvh; position: relative; overflow: hidden;
     align-items: center; justify-content: center; gap: 8vw; padding-right: 6vw; background-color: var(--c-bg); }
.side-list { flex: 0 0 320px; display: flex; flex-direction: column; justify-content: center; z-index: 30; gap: 1rem; }
.project-title { font-weight: var(--w-bold); font-size: var(--f-size-s); width: 100%; display: flex; 
    justify-content: space-between; align-items: center; color: var(--c-subtext); transition: color 0.4s ease; cursor: pointer; text-decoration: none; }
.project-title.is-active { color: var(--c-text); }
.p-num { text-align: left; }
.p-name { text-align: right; }
.fixed-visuals { flex: 0 0 380px; display: flex; align-items: center; justify-content: flex-start; z-index: 20; }
.fixed-visuals a { width: 100%; display: block; }
.img-wrap { width: 100%; aspect-ratio: 4/5; position: relative; overflow: hidden; display: block; }
.project-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
    visibility: hidden; z-index: 1; clip-path: inset(100% 0 0 0); }
.project-img.is-active { z-index: 2; }

@media (max-width: 1024px) { 
.portfolio-container { flex-direction: column; justify-content: center; height: 100vh; height: 100dvh; padding: 0; gap: 4.5rem; overflow: hidden; }
.fixed-visuals { order: 2; width: 100%; flex: 0 0 auto; justify-content: center; align-items: center; } 
/* Image boostée +10% (480px max) */
.img-wrap { width: 75vw; max-width: 480px; aspect-ratio: 4/5; margin: 0 auto; } 
/* Liste alignée sur la largeur de l'image */
.side-list { order: 1; flex: 0 0 auto; width: 75vw; max-width: 480px; flex-direction: row; justify-content: space-between; 
    align-items: center; padding: 0; height: auto; z-index: 30; margin: 0 auto; } 
/* Force l'affichage immédiat des 3 titres */
.project-title { display: none !important; flex: 0 0 auto; width: auto; font-size: 0.9rem; gap: 12px; } 
.project-title.is-active, .project-title.is-prev, .project-title.is-next { display: flex !important; } 
.project-title.is-active { opacity: 1; color: var(--c-text); order: 2; } 
.project-title.is-prev { color: var(--c-subtext); order: 1; opacity: 0.3; } 
.project-title.is-next { color: var(--c-subtext); order: 3; opacity: 0.3; } 
}

@media (max-width: 768px) {
.portfolio-container { gap: 3.5rem; }
/* Image recalée pour mobile */
.img-wrap { width: 80vw; max-width: 360px; }
/* Titres alignés sur largeur mobile */
.side-list { width: 80vw; max-width: 360px; justify-content: space-between; }
.project-title { font-size: 0.75rem; }
.project-title.is-prev { display: none !important; }
.project-title.is-active { order: 1; }
.project-title.is-next { order: 2; opacity: 0.4; }
}
@media (max-width: 480px) {
.portfolio-container { gap: 2rem; }
}
/* ==========================================================================
   SECTION 9 : PAGES PROJET - TYPE 1
   ========================================================================== */

.project-page { padding: 15vh 20vw 8vh 20vw; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; align-items: flex-start; position: relative; }
.project-page .project-header { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: stretch; z-index: 1; margin: 0; width: 100%; }
.project-page .project-meta-top { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-bottom: 2rem; }
.project-page .d-info { font-family: var(--f-main); font-size: var(--f-size-s); font-weight: var(--w-med); color: var(--c-subtext); text-transform: uppercase; opacity: 0; visibility: hidden; }
.project-page .d-title { font-family: var(--f-main); font-size: var(--f-size-s); font-weight: var(--w-exbold); color: var(--c-text); text-transform: uppercase; opacity: 0; visibility: hidden; }
.project-page .project-description { font-family: var(--f-main); font-weight: var(--w-med); font-size: var(--f-size-s); line-height: 1.2; color: var(--c-subtext); text-transform: uppercase; text-align: justify; opacity: 0; visibility: hidden; }
.project-page .project-grid { grid-column: 1 / span 2; grid-row: 1; display: flex; gap: 5vw; align-items: stretch; z-index: 0; }
.project-page .grid-col-left { flex: 1; display: flex; flex-direction: column; gap: 5vw; }
.project-page .grid-col-right { flex: 1; display: flex; flex-direction: column; gap: 5vw; margin-top: max(25vh, 180px); }
.project-page .project-grid img { width: 100%; height: auto; display: block; opacity: 0; }
.project-page .project-credits-wrapper { display: flex; justify-content: flex-end; align-items: flex-end; gap: 1rem; margin-top: auto; padding-top: 4vh; width: 100%; }
.project-page .project-credits-label { display: flex; flex-direction: column; font-size: var(--f-size-s); color: var(--c-subtext); text-transform: uppercase; font-weight: var(--w-bold); line-height: 1.2; text-align: left; }
.project-page .project-credits { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--f-size-s); text-transform: uppercase; font-weight: var(--w-bold); line-height: 1.2; text-align: right; }
.project-page .project-footer { grid-column: 1 / span 2; margin-top: 2vh; }
.project-page .project-nav { display: flex; justify-content: space-between; padding: 2vh 0 1vh 0; font-family: var(--f-main); font-weight: var(--w-bold); font-size: var(--f-size-s); text-transform: uppercase; }

@media (max-width: 1280px) { .project-page { padding: 12vh 12vw 8vh 12vw; } .project-page .grid-col-right { margin-top: max(25vh, 200px); } }

@media (max-width: 1024px) { 
    .project-page { padding: 8vh 8vw; column-gap: 4vw; } 
    .project-page .project-header { grid-column: 2; width: 100%; box-sizing: border-box; }
    .project-page .project-grid { grid-column: 1 / span 2; display: flex; gap: 4vw; }
    .project-page .grid-col-right { margin-top: max(15vh, 220px); flex: 1; } 
    .project-page .project-credits-wrapper { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; } 
    .project-page .project-nav { display: flex; justify-content: space-between; padding: 1vh 0; font-family: var(--f-main); font-weight: var(--w-bold); 
    font-size: var(--f-size-s); text-transform: uppercase; }
}

@media (max-width: 768px) {
    .project-page { padding: 5vh 5vw 2.5vh 5vw; display: flex; flex-direction: column; }
    .project-page .project-header { order: 1; margin-bottom: 4vh; grid-column: unset; grid-row: unset; width: 100%; }
    .project-page .project-grid { order: 2; display: flex; flex-direction: column; }
    .project-page .grid-col-left, .project-page .grid-col-right { width: 100%; gap: 5vw; }
    .project-page .grid-col-right { margin-top: 0; }
    .project-page .project-grid img { margin-bottom: 5vw; }
    .project-page .project-meta-top { margin-bottom: 1rem; }
    .project-page .project-description { text-align: left; }
    .project-page .project-credits-wrapper { margin-top: -1rem; margin-bottom: 0rem; }
    .project-page .project-footer { order: 3; width: 100%;}
    .project-page .project-nav { display: flex; justify-content: space-between; padding: 0 0 1vh 0; }
}

/* Styles partagés d-info / d-title / project-description pour type 2, 3 et 4 */
.project-type-2 .d-info,
.project-type-3 .d-info,
.project-type-4 .d-info { font-family: var(--f-main); font-size: var(--f-size-s); font-weight: var(--w-med); color: var(--c-subtext); text-transform: uppercase; opacity: 0; visibility: hidden; }
.project-type-2 .d-title,
.project-type-3 .d-title,
.project-type-4 .d-title { font-family: var(--f-main); font-size: var(--f-size-s); font-weight: var(--w-exbold); color: var(--c-text); text-transform: uppercase; opacity: 0; visibility: hidden; }
.project-type-2 .project-description,
.project-type-3 .project-description,
.project-type-4 .project-description { font-family: var(--f-main); font-weight: var(--w-med); font-size: var(--f-size-s); line-height: 1.2; color: var(--c-subtext); text-transform: uppercase; text-align: justify; opacity: 0; visibility: hidden; }
.project-type-2 .project-meta-top,
.project-type-3 .project-meta-top,
.project-type-4 .project-meta-top { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-bottom: 2rem; }

/* ==========================================================================
   SECTION 10 : PAGES PROJET - TYPE 2
   ========================================================================== */

.project-type-2 { padding: 15vh 20vw 8vh 20vw; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; position: relative; }
.project-type-2 .project-grid-top { grid-column: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; align-items: stretch; margin-bottom: 5vw; }
.project-type-2 .grid-col-left img { width: 100%; height: auto; display: block; margin: 0; }
.project-type-2 .grid-col-right { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; margin: 0; }
.project-type-2 .project-header { margin: 0; padding: 0; }
.project-type-2 .grid-col-right img { width: 100%; height: auto; display: block; margin: 0; }
.project-type-2 .project-full-width { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 5vw; width: 100%; }
.project-type-2 .project-full-width img, .project-type-2 .project-full-width video { width: 100%; height: auto; display: block; }
.project-type-2 .project-footer { grid-column: 1 / span 2; margin-top: 2vh; }
.project-type-2 .project-nav { display: flex; justify-content: space-between; padding: 2vh 0 1vh 0; font-family: var(--f-main); font-weight: var(--w-bold); font-size: var(--f-size-s); text-transform: uppercase; }

@media (max-width: 1280px)
 { .project-type-2 { padding: 12vh 12vw 8vh 12vw; } }

@media (max-width: 1024px)
{ .project-type-2 { padding: 8vh 8vw; column-gap: 4vw; } 
.project-type-2 .project-grid-top { column-gap: 4vw; } }

@media (max-width: 768px) 
{ .project-type-2 { display: flex; flex-direction: column; padding: 5vh 5vw 2.5vh 5vw; }
.project-type-2 .project-grid-top { display: flex; flex-direction: column; } 
.project-type-2 .grid-col-left { display: none; } 
.project-type-2 .grid-col-right { order: 1; display: flex; flex-direction: column;} 
.project-type-2 .project-header { order: -1; margin-bottom: 4vh; }
.project-type-2 .grid-col-right img { order: 3;} }

/* ==========================================================================
   SECTION 11 : PAGES PROJET - TYPE 3
   ========================================================================== */


.project-type-3 { padding: 15vh 20vw 8vh 20vw; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; position: relative; }
.project-type-3 .project-grid-top { grid-column: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; align-items: start; margin-bottom: 0; }
.project-type-3 .grid-col-left { display: flex; flex-direction: column; gap: 5vw; }
.project-type-3 .grid-col-left img { width: 100%; height: auto; display: block; margin: 0; }
.project-type-3 .grid-col-right { display: flex; flex-direction: column; gap: 5vw; align-self: start; margin: 0; }
.project-type-3 .project-header { margin: 0; padding: 0; }
.project-type-3 .grid-col-right img { width: 100%; height: auto; display: block; margin: 0; }
.project-type-3 .project-full-width { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 5vw; width: 100%; margin-top: 5vw; }
.project-type-3 .project-full-width img { width: 100%; height: auto; display: block; }
.project-type-3 .project-footer { grid-column: 1 / span 2; margin-top: 2vh; }
.project-type-3 .project-nav { display: flex; justify-content: space-between; padding: 2vh 0 1vh 0; font-family: var(--f-main); font-weight: var(--w-bold); font-size: var(--f-size-s);
     text-transform: uppercase; }
@media (max-width: 1280px) { .project-type-3 { padding: 12vh 12vw 8vh 12vw; } }
@media (max-width: 1024px) { .project-type-3 { padding: 8vh 8vw; column-gap: 4vw; } .project-type-3 .project-grid-top { column-gap: 4vw; } }
@media (max-width: 768px) { .project-type-3 { display: flex; flex-direction: column; padding: 5vh 5vw 2.5vh 5vw; } .project-type-3 .project-grid-top { display: flex; flex-direction: column; } .project-type-3 .grid-col-left { order: 2; margin-top: 5vw; } .project-type-3 .grid-col-right { order: 1; gap: 5vw; } .project-type-3 .project-header { order: -1; } .project-type-3 .grid-col-right img { order: 3; } }

/* ==========================================================================
   SECTION 12 : PAGES PROJET - TYPE 4
   ========================================================================== */

.project-type-4 { padding: 15vh 20vw 8vh 20vw; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; position: relative; }
.project-type-4 .project-grid-top { grid-column: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; align-items: stretch; margin-bottom: 5vw; }
.project-type-4 .grid-col-left img { width: 100%; height: auto; display: block; margin: 0; }
.project-type-4 .grid-col-right { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; margin: 0; }
.project-type-4 .project-header { margin: 0; padding: 0; }
.project-type-4 .grid-col-right img { width: 100%; height: auto; display: block; margin-left: auto; margin-right: 0; }

.project-type-4 .project-grid-sub { grid-column: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 5vw; margin-bottom: 5vw; }
.project-type-4 .project-grid-sub img { width: 100%; height: auto; display: block; margin: 0; }
.project-type-4 .project-full-width { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 5vw; width: 100%; }
.project-type-4 .project-full-width img, .project-type-4 .project-full-width video { width: 100%; height: auto; display: block; }

.project-type-4 .project-footer { grid-column: 1 / span 2; margin-top: 2vh; width: 100%; }
.project-type-4 .project-nav { display: flex; justify-content: space-between; padding: 2vh 0 1vh 0; font-family: var(--f-main); font-weight: var(--w-bold); font-size: var(--f-size-s); text-transform: uppercase; }

@media (max-width: 1280px) { .project-type-4 { padding: 12vh 12vw 8vh 12vw; } }
@media (max-width: 1024px) { .project-type-4 { padding: 8vh 8vw; column-gap: 4vw; } .project-type-4 .project-grid-top, .project-type-4 .project-grid-sub { column-gap: 4vw; } }
@media (max-width: 768px) { .project-type-4 { display: flex; flex-direction: column; padding: 5vh 5vw 2.5vh 5vw; } .project-type-4 .project-grid-top, .project-type-4 .project-grid-sub { display: flex; flex-direction: column; } .project-type-4 .grid-col-left { display: none; } .project-type-4 .grid-col-right { order: 1; } .project-type-4 .grid-col-right img { width: 100%; margin: 5vw 0; } .project-type-4 .project-header { order: -1; } .project-type-4 .project-grid-sub { order: 2; margin-top: 5vw; gap: 5vw; } .project-type-4 .project-full-width { order: 3; } .project-type-4 .project-footer { order: 4; } }

/* ==========================================================================
   SECTION 13 : CUSTOM PLAYER
   ========================================================================== */

.custom-player { position: relative; width: 100%; background: #000; line-height: 0; aspect-ratio: 16/9; }
.custom-player video { width: 100%; height: auto; display: block; }

/* Masquer la barre de lecture par défaut et ne l'afficher qu'au hover */
.custom-player video::-webkit-media-controls-enclosure { background-color: rgba(255, 255, 255, 0); }
.custom-player video::-webkit-media-controls-panel { display: flex !important; opacity: 0; }
.custom-player:hover video::-webkit-media-controls-panel { opacity: 1; }

/* Supprimer le bouton de lecture central moche sur certains navigateurs */
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* ==========================================================================
   SECTION 14 : PRÉVENTION CLS (aspect-ratio par défaut sur images de grille)
   ========================================================================== */
.project-page .project-grid img,
.project-type-2 .grid-col-left img,
.project-type-2 .grid-col-right img,
.project-type-3 .grid-col-left img,
.project-type-3 .grid-col-right img,
.project-type-4 .grid-col-left img,
.project-type-4 .grid-col-right img,
.project-type-4 .project-grid-sub img { aspect-ratio: auto 2/3; }
.project-type-2 .project-full-width img,
.project-type-3 .project-full-width img,
.project-type-4 .project-full-width img { aspect-ratio: auto 16/9; }

/* Force GPU compositing sur Safari pour les animations clip-path */
.grid-col-left img,
.grid-col-right img,
.project-grid-sub img,
.project-full-width img,
.project-page .project-grid img,
.custom-player {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ==========================================================================
   SECTION 15 : CURSEUR PERSONNALISÉ
   ========================================================================== */

/* ==========================================================================
   SECTION 15 : PAGE 404
   ========================================================================== */

.error-404 { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
.error-code { font-family: var(--f-main); font-weight: var(--w-exbold); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; color: var(--c-text); text-transform: uppercase; }
.error-message { font-family: var(--f-main); font-size: var(--f-size-s); font-weight: var(--w-med); color: var(--c-subtext); text-transform: uppercase; }
.error-link { font-family: var(--f-main); font-size: var(--f-size-s); font-weight: var(--w-bold); color: var(--c-text); text-transform: uppercase; transition: opacity 0.3s ease; }
.error-link:hover { opacity: 0.5; }
