/* Déclaration de la police Bootzy TM */
@font-face {
    font-family: 'Bootzy TM';
    src: url('fonts/BootzyTM.ttf') format('truetype'),
         url('src/fonts/BootzyTM.woff') format('woff'),
         url('src/fonts/BootzyTM.otf') format('opentype'),
         url('src/fonts/BootzyTM.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #ffffff;
    --text-primary: #222222;
    --text-title: #1a1a1a;
    --text-secondary: #222222;
    --accent-color: #ff8fab;
    --btn-shadow: rgba(255, 143, 171, 0.3);
    --nav-link-color: #2b2b2b;
    --placeholder-bg: #f9d1dc;
    --dropdown-bg: #ffffff;
    --dropdown-border: rgba(0, 0, 0, 0.08);
    --gutter-mobile: max(20px, env(safe-area-inset-left));
    --gutter-mobile-right: max(20px, env(safe-area-inset-right));
}

body.dark-mode {
    --bg-color: #121214;
    --text-primary: #f0f0f0;
    --text-title: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-color: #fdd38b;
    --btn-shadow: rgba(253, 211, 139, 0.2);
    --nav-link-color: #e0e0e0;
    --placeholder-bg: #3a2b20;
    --dropdown-bg: #1b1b1f;
    --dropdown-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Header (Bureau) */
.navbar {
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1000;
}

/* Conteneur des icônes à gauche (Maison + Portfolio) */
.nav-icons {
    position: absolute;
    left: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1002;
}

.home-icon {
    width: 28px;
    height: 28px;
    color: var(--nav-link-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.3s ease;
}

.home-icon:hover {
    transform: scale(1.15);
    color: var(--accent-color);
}

.home-icon svg {
    width: 100%;
    height: 100%;
}

/* Bouton burger caché sur bureau */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-link-color);
    padding: 6px;
    z-index: 1002;
}

.nav-panel {
    display: contents;
}

.nav-links {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    font-family: 'Figtree', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-link-color);
    transition: opacity 0.2s, color 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links span {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.nav-controls {
    position: absolute;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    color: var(--nav-link-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-option {
    opacity: 0.4;
    font-weight: 700;
}

.lang-option.active {
    opacity: 1;
    color: var(--accent-color);
}

.lang-divider {
    opacity: 0.3;
}

.theme-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
}

/* Titre principal & Titres de sections */
.title-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 10px 0 30px 0;
    z-index: 50;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
}

.page-title {
    font-family: 'Bootzy TM', 'Montserrat', sans-serif;
    font-size: 3.8rem;
    color: var(--accent-color);
    text-transform: lowercase;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.arrow-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.dropdown-header.active .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    box-shadow: 0 4px 15px var(--btn-shadow);
    display: none;
    min-width: 200px;
    z-index: 60;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Structure Principale sans espace superflu en bas */
.multimedia-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px 30px 15px;
    width: 100%;
}

.category-section {
    margin-bottom: 20px;
}

.category-section.last-section {
    margin-bottom: 10px;
}

.category-title {
    font-family: 'Bootzy TM', 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--accent-color);
    font-weight: normal;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
}

/* --- CARROUSEL VIDÉO --- */
.video-carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.click-instruction {
    font-family: 'Figtree', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.video-card {
    position: absolute;
    width: 580px;
    height: 360px;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity, filter, box-shadow;
    transition: transform 0.95s cubic-bezier(0.12, 0.8, 0.15, 1), 
                opacity 0.95s cubic-bezier(0.12, 0.8, 0.15, 1), 
                filter 0.95s cubic-bezier(0.12, 0.8, 0.15, 1),
                box-shadow 0.95s cubic-bezier(0.12, 0.8, 0.15, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    transition: transform 0.4s ease;
}

.video-card.pos-center {
    z-index: 10;
    left: 50%;
    transform: translateX(-50%) scale(1);
    box-shadow: 0 18px 40px var(--btn-shadow);
    opacity: 1;
    filter: brightness(1);
}

.video-card.pos-center:hover .card-cover {
    transform: scale(1.03);
}

.video-card.pos-left {
    z-index: 5;
    left: 50%;
    transform: translateX(-110%) scale(0.75);
    opacity: 0.75;
    filter: brightness(0.88);
}

.video-card.pos-right {
    z-index: 5;
    left: 50%;
    transform: translateX(10%) scale(0.75);
    opacity: 0.75;
    filter: brightness(0.88);
}

.video-card.pos-left:hover,
.video-card.pos-right:hover {
    opacity: 0.95;
    filter: brightness(0.98);
}

/* Brief */
.video-brief-container {
    max-width: 650px;
    width: 100%;
    margin-top: 15px;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-brief-container h3 {
    font-family: 'Bootzy TM', 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: normal;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.05em;
}

.video-brief-container p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: justify;
    text-align-last: center;
}

/* --- SECTION PHOTOS --- */
.photo-gallery-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 15px;
}

.photo-gallery-section .category-title {
    padding-left: 20px;
}

.photo-wall {
    display: flex;
    gap: 12px;
    width: 100%;
    background-color: var(--bg-color);
}

.photo-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-item {
    position: relative;
    width: 100%;
    background-color: var(--placeholder-bg);
    border: 4px solid #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .photo-item {
    border-color: #121214;
}

.photo-item.aspect-square {
    aspect-ratio: 1 / 1;
}

.photo-item.aspect-tall {
    aspect-ratio: 3 / 4;
}

.photo-item.aspect-wide {
    aspect-ratio: 4 / 3;
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.placeholder-label {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-color);
    opacity: 0.8;
    z-index: 1;
    text-transform: lowercase;
}

.photo-item:hover {
    transform: scale(1.015);
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ligne de séparation identique à Concept & Rédaction (Pleine largeur) */
.section-divider {
    border: none;
    height: 8px;
    background-color: var(--accent-color);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 50px;
    margin-bottom: 60px;
    transition: background-color 0.4s ease;
}

/* =========================================
   ADAPTABILITÉ MOBILE, MENU DÉROULANT & POLICE
   ========================================= */
@media (max-width: 900px) {
    /* Tout ce qui était en police Bootzy TM passe en Montserrat Black sur téléphone */
    .page-title,
    .category-title,
    .video-brief-container h3 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        letter-spacing: 0.01em;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .category-title {
        font-size: 1.75rem;
    }

    .video-brief-container h3 {
        font-size: 1.3rem;
    }

    /* Navbar identique à l'accueil */
    .navbar {
        padding: max(18px, env(safe-area-inset-top)) var(--gutter-mobile-right) 18px var(--gutter-mobile);
        justify-content: space-between;
    }

    .nav-icons {
        position: static;
        gap: 14px;
    }

    .home-icon {
        width: 26px;
        height: 26px;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .mobile-menu-btn:hover {
        color: var(--accent-color);
    }

    .burger-lines,
    .burger-lines::before,
    .burger-lines::after {
        display: block;
        width: 22px;
        height: 2.5px;
        background-color: currentColor;
        border-radius: 2px;
        position: relative;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .burger-lines::before,
    .burger-lines::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .burger-lines::before { top: -7px; }
    .burger-lines::after { top: 7px; }

    .mobile-menu-btn[aria-expanded="true"] .burger-lines {
        background-color: transparent;
    }
    .mobile-menu-btn[aria-expanded="true"] .burger-lines::before {
        top: 0;
        transform: rotate(45deg);
    }
    .mobile-menu-btn[aria-expanded="true"] .burger-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Menu déroulant sous le header */
    .nav-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        position: absolute;
        top: 100%;
        left: var(--gutter-mobile);
        right: var(--gutter-mobile-right);
        background-color: var(--dropdown-bg);
        border: 1px solid var(--dropdown-border);
        border-radius: 18px;
        padding: 18px 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        z-index: 999;
    }

    .nav-panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 1.05rem;
    }

    .nav-dot {
        display: none;
    }

    .nav-controls {
        position: static;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--dropdown-border);
        gap: 12px;
    }

    .title-container {
        padding: 0 var(--gutter-mobile-right) 0 var(--gutter-mobile);
        margin: 8px 0 20px 0;
    }

    .multimedia-content {
        padding: 0 var(--gutter-mobile-right) max(44px, calc(28px + env(safe-area-inset-bottom))) var(--gutter-mobile);
    }

    .video-stage {
        height: 280px;
    }

    .video-card {
        width: 300px;
        height: 188px;
    }

    .video-brief-container p {
        text-align: center;
        text-align-last: center;
        font-size: 0.86rem;
    }

    .photo-gallery-section {
        width: 100%;
        position: static;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .photo-gallery-section .category-title {
        padding-left: 0;
    }

    .photo-wall {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.55rem;
        text-align: center;
    }

    .photo-gallery-section .category-title {
        padding-left: 0;
        text-align: center;
    }

    .video-stage {
        height: 240px;
    }

    .video-card {
        width: 240px;
        height: 150px;
    }
}