/* =========================================
   STYLE.CSS - MINIMALIST PORTFOLIO
   ========================================= */

/* --- CSS Variables --- */
:root {
    --bg-color: #ffffff;
    --text-color: #555555; /* Gris sombre neutre en attente */
    --accent-color: #888888; /* Gris moyen neutre en attente */
    --accent-secondary: #999999;
    --accent-tertiary: #aaaaaa;
    --text-muted: #777777;
    --text-muted-rgb: 119, 119, 119;
    --border-color: #e5e5e5;
    --font-primary: 'Outfit', sans-serif;
    --font-nav: var(--font-nav-name, 'variex'), sans-serif;
    /* Logo Colors & Positions */
    --logo-color: #666666; /* Gris neutre en attente */
    --logo-top-final: 40px;
    --logo-left-final: 40px;
    --logo-height-final: 80px;
    --logo-intro-height: 80vh; 
    --frame-thickness: 12px;
    --border-radius: 8px;
    --font-section-title: var(--font-titles-name, 'tarieke'), 'variex', sans-serif;
    --font-size-base: 1rem;
    --font-size-nav: 0.9rem;
    --font-size-titles: 1.3rem;
    --font-size-dates: 0.8rem;
    --font-size-buttons: 0.85rem;
    --color-menu: #ffffff;
    --color-menu-hover: #FF033E;
    --color-footer-bg: #0e000a;

    /* Mapped Colors */
    --mapped-section-title: var(--accent-color);
    --mapped-sub-section-title: var(--accent-tertiary);
    --mapped-sub-sub-section-title: var(--text-color);
    --mapped-meta-title: var(--text-muted);
    --mapped-nav-active: var(--accent-color);
    --mapped-button-bg: var(--accent-color);
    --mapped-button-secondary-bg: var(--text-color);
    --mapped-button-text: #ffffff;
    --mapped-price: var(--text-muted);
    --mapped-tag-color: var(--accent-color);
}

@media (max-width: 768px) {
    :root {
        --logo-top-final: 23px; /* Descendu encore de 3px (20px -> 23px) */
        --logo-left-final: 35px; 
        --logo-height-final: 90px;
    }
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

.italic {
    font-style: italic;
}

/* CADRE INTEGRAL - RESPONSIVE MODES */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    border: var(--frame-thickness) solid var(--frame-color); /* Adaptive Frame color */
    pointer-events: none;
    z-index: 999;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Fixed White Header Banner on Scroll --- */
.header-bg-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px; /* Increased by 10px as requested */
    background-color: #ffffff;
    z-index: 10000; /* On top of frame (9999) to cover side spaces */
    transform: translateY(-100%);
    transition: transform 0.4s ease, opacity 0.4s ease, height 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

/* Pseudo-element for border-bottom and shadow clipped to the frame content area */
.header-bg-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: -1;
    clip-path: inset(0px 0px -20px 0px);
    pointer-events: none;
}


body.is-not-home-view .header-bg-banner {
    transform: translateY(0);
    opacity: 1;
}

/* Hard-hide banner on Home for Desktop to ensure immersive look */
body.is-home-view .header-bg-banner {
    display: none !important;
}

@media (max-width: 768px) {
    /* Prevent accidental white bar on mobile home */
    body.is-home-view .header-bg-banner {
        display: none !important;
    }
}

img {
    max-width: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Layout --- */
/* ---- Logo Container ---- */
.logo-container {
    position: fixed;
    z-index: 10010; /* Placé au-dessus du bandeau (10000) */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* default resting position (non-intro) */
    top: var(--logo-top-final);
    left: var(--logo-left-final);
    transition: top 2.2s cubic-bezier(0.85, 0, 0.15, 1), 
                left 2.2s cubic-bezier(0.85, 0, 0.15, 1),
                transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

/* --- Intro state: center horizontally at ~80% width --- */
.logo-container.intro {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65vw;
    max-width: 1700px; /* Ne dépasse jamais plus de 1700 pixels de large */
    height: auto !important;
    max-height: 80vh;
    z-index: 10011; /* Placé au-dessus */
    animation: logoIntroOpacity 3.5s ease forwards;
    transition: none;
}

/* Disable animation/transition when skipping intro */
.logo-container.no-intro,
.logo-container.no-intro img,
.logo-container.no-intro svg {
    transition: none !important;
    animation: none !important;
}

/* The img and svg handle size + opacity animation */
.logo-container img,
.logo-container svg {
    height: var(--logo-height-final);
    width: auto;
    display: block;
    /* Filtre par défaut pour le PNG */
    filter: brightness(0) saturate(100%) invert(24%) sepia(87%) saturate(7489%) hue-rotate(344deg) brightness(101%) contrast(106%);
    opacity: 0.9;
    transition: height 1.2s cubic-bezier(0.85, 0, 0.15, 1), 
                filter 1.2s ease,
                opacity 1.2s ease;
}

/* Règle spécifique pour le SVG vectoriel */
.logo-container svg {
    filter: none !important;
}

.logo-container svg path {
    fill: var(--logo-color) !important;
    transition: fill 0.5s ease;
}

/* Coloration blanche sur la page d'accueil (Home Hero) après l'intro */
body.is-home-view .logo-container:not(.intro) svg path {
    fill: #ffffff !important;
}

/* Animation de changement de couleur continu désactivée pour garder le logo fixe */
body.is-not-home-view .logo-container:not(.intro) svg path,
body.mobile-menu-open .logo-container:not(.intro) svg path {
    fill: var(--logo-color) !important;
}


/* Intro image: large (80% page width equivalent) + fade animation */
/* Added high specificity to override .is-home-view AND .is-not-home-view states */
body .logo-container.intro img,
body .logo-container.intro svg {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

body .logo-container.intro svg path {
    fill: #ffffff !important;
}


@media (max-width: 768px) {
    .logo-container.intro img,
    .logo-container.intro svg {
        width: 100% !important;
        height: auto !important;
    }
}

@keyframes logoIntroOpacity {
    0%   { opacity: 0; }
    15%  { opacity: 0.9; }     /* Apparition progressive */
    100% { opacity: 0.9; }     /* Reste à 90% */
}

/* Annulation immédiate de l'intro si scrolled au démarrage (évite le FOUC) */
body.init-scrolled .logo-container,
body.init-scrolled .logo-container.intro {
    position: fixed !important;
    top: 0 !important;
    left: var(--logo-left-final) !important;
    transform: none !important;
    width: auto !important;
    height: 70px !important;
    z-index: 10010 !important;
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
}

body.init-scrolled .logo-container img,
body.init-scrolled .logo-container svg,
body.init-scrolled .logo-container.intro img,
body.init-scrolled .logo-container.intro svg {
    width: auto !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
    filter: brightness(0) saturate(100%) invert(24%) sepia(87%) saturate(7489%) hue-rotate(344deg) brightness(101%) contrast(106%) !important;
}

@media (min-width: 769px) {
    body.init-scrolled .logo-container img,
    body.init-scrolled .logo-container svg,
    body.init-scrolled .logo-container.intro img,
    body.init-scrolled .logo-container.intro svg {
        height: 44px !important;
    }
}

@media (max-width: 768px) {
    body.init-scrolled .logo-container img,
    body.init-scrolled .logo-container svg,
    body.init-scrolled .logo-container.intro img,
    body.init-scrolled .logo-container.intro svg {
        height: 40px !important;
    }
}

body.init-scrolled .logo-container svg path,
body.init-scrolled .logo-container.intro svg path {
    fill: var(--logo-color) !important;
}

/* Menu must appear immediately (no animation) */
.nav-links, .top-right-extras {
    animation: none;
    opacity: 1;
}

.nav-minimal {
    position: fixed;
    top: 40px; 
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10020; /* Increased to stay on top of header-bg-banner (10000) */
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.4s ease, padding 0.4s ease, border-radius 0.4s ease;
    display: flex;
    justify-content: center;
    border-radius: 30px;
}

@media (min-width: 769px) {
    /* White background when scrolling away from Home */
    /* BACKGROUND SUPPRESSED as requested, replaced by header-bg-banner */
    body.is-not-home-view .nav-minimal {
        background-color: transparent;
        padding: 2px 15px;
        top: 0; /* Align to the top of the white banner */
        height: 70px; /* Align to the top of the white banner */
        display: flex;
        align-items: center;
    }
}

/* Removed nav-item override for uniformity */


.content-area {
    width: 100%;
}

@media (min-width: 769px) {
    /* --- Dynamic Home State (Fullscreen) --- */
    body.is-home-view .nav-minimal {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -20px);
    }

    body.is-home-view.show-menu .nav-minimal,
    body.is-home-view .nav-minimal:hover,
    body.is-home-view:has(.top-right-extras:hover) .nav-minimal {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    /* Animation d'apparition/escamotage du menu (Home Intro) */
    body.menu-pulse .nav-minimal {
        animation: menuPulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes menuPulse {
        0% { transform: translate(-50%, 0); opacity: 0; }
        15% { transform: translate(-50%, 0); opacity: 1; }
        60% { transform: translate(-50%, 0); opacity: 1; }
        100% { transform: translate(-50%, -20px); opacity: 0; }
    }
}

/* Navigation Item Style - Pure White (No Outline) */
.nav-item, .nav-item i {
    color: var(--color-menu, #ffffff) !important;
    text-shadow: none;
}

@media (min-width: 769px) {
    /* Ensure top-right-extras are always at the correct top/right position */
    .top-right-extras {
        position: fixed;
        top: 40px; 
        right: 60px;
        z-index: 10020; /* Increased to stay on top of header-bg-banner (10000) */
        display: flex;
        align-items: center;
        gap: 18px; /* Increased for spacing */
        font-size: 0.8rem;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Dynamic Home State visibility for Top Extras */
    body.is-home-view .top-right-extras {
        opacity: 0;
        pointer-events: none;
        transform: translate(0, -20px);
    }

    body.is-home-view.show-menu .top-right-extras,
    body.is-home-view .top-right-extras:hover,
    body.is-home-view:has(.nav-minimal:hover) .top-right-extras {
        opacity: 1;
        pointer-events: auto;
        transform: translate(0, 0);
    }

    /* Animation d'apparition/escamotage du menu pour les extras (Home Intro) */
    body.menu-pulse .top-right-extras {
        animation: extraMenuPulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes extraMenuPulse {
        0% { transform: translate(0, -20px); opacity: 0; }
        15% { transform: translate(0, 0); opacity: 1; }
        60% { transform: translate(0, 0); opacity: 1; }
        100% { transform: translate(0, -20px); opacity: 0; }
    }

    /* Vertical alignment fix for home state */
    body.is-home-view .top-right-extras,
    body.is-home-view .nav-minimal {
        top: 40px;
        height: 40px; /* Force a consistent height for easier vertical centering */
        display: flex;
        align-items: center;
    }

    /* Non-Home view: Always visible and centered in 70px banner */
    body.is-not-home-view .top-right-extras {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate(0, 0) !important;
        background-color: transparent;
        top: 0;
        height: 70px;
        display: flex;
        align-items: center;
    }
}

/* --- Nav Links --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 14px; /* Increased for a premium feel */
    align-items: center;
}

/* Nav Item Styling for Menu & Extras */
.nav-item, .nav-item-extra, .nav-extra-divider {
    color: var(--color-menu, #ffffff) !important;
    text-shadow: none;
    font-family: var(--font-nav);
    font-weight: 300 !important;
    transition: opacity 0.3s ease; /* On retire color du transition pour un changement instantané */
    display: inline-flex;
    flex-direction: row; /* Alignement horizontal (icône à gauche) */
    align-items: center;
    position: relative;
    padding: 0 4px; 
    text-decoration: none;
    white-space: nowrap;
}

/* Technique du pseudo-élément déplacée sur le span pour plus de précision */
.nav-item span {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.nav-item span::after {
    display: block;
    content: attr(data-stable-text);
    font-weight: 400; /* Poids cible du survol */
    height: 0;
    color: transparent;
    overflow: hidden;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

/* Shop icon styling - CRITICAL FIX FOR ALIGNMENT AND SIZE */
.nav-item .feather, 
.nav-item svg,
.nav-item-extra .feather,
.nav-item-extra svg {
    width: 16px !important; 
    height: 16px !important; 
    stroke: currentColor !important; 
    stroke-width: 2px; 
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.nav-item .feather, 
.nav-item svg {
    margin-right: 6px !important; 
    transform: translateY(1px); /* Ajustement pour alignement parfait */
}

/* Thicker shop and instagram icons when hovered or selected */
.nav-item:hover .feather,
.nav-item.active .feather,
.nav-item-extra:hover .feather,
.nav-item-extra.active .feather {
    stroke: var(--color-menu-hover, var(--logo-color)) !important;
    transition: stroke 0.3s ease;
    stroke-width: 3px !important;
}

.nav-item:hover, 
.nav-item.active {
    color: var(--color-menu-hover, var(--logo-color)) !important;
    font-weight: 400 !important; /* Regular weight on hover/active */
    /* Halo removed as requested */
}

/* Force SVG stroke to be red when parent is active/hovered */
.nav-item:hover .feather,
.nav-item.active .feather {
    stroke: var(--color-menu-hover, var(--logo-color)) !important;
    stroke-width: 3px !important; /* More pronounced thickness */
    /* Halo removed as requested */
}

.lang-switch {
    display: flex;
    align-items: center;
    line-height: 1; /* Match nav items */
    font-family: var(--font-nav); /* Variex for nav items like FR/EN */
}

.nav-extra-divider {
    padding: 0 1px; /* Even tighter spacing for the slash */
    line-height: 1;
}

.nav-item-extra {
    line-height: 1;
    font-weight: 300 !important; /* Default Light */
}

/* Localized weight for active language */
.nav-item-extra.active {
    font-weight: 400 !important; /* Regular */
    color: inherit !important;
}

/* On ordinateur seulement, on gère les couleurs survolées/actives normalement */
@media (min-width: 769px) {
    .nav-item:hover, 
    .nav-item.active,
    .nav-item:hover i,
    .nav-item.active i,
    .nav-item:hover svg,
    .nav-item.active svg,
    .nav-item:hover span,
    .nav-item.active span,
    .nav-item-extra:hover,
    .nav-item-extra.active,
    .nav-item-extra:hover svg,
    .nav-item-extra.active svg {
        color: var(--color-menu-hover, var(--logo-color)) !important;
        stroke: var(--color-menu-hover, var(--logo-color)) !important;
        font-weight: 400 !important;
    }
}



.instagram-link .feather {
    width: 16px;
    height: 16px;
}

.hamburger-btn {
    display: none;
    position: fixed;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: #fff; /* Default on dark hero */
    cursor: pointer;
    padding: 0;
    z-index: 1000000 !important; /* Top of everything including menu */
    transition: color 0.4s ease;
}

body.is-not-home-view .hamburger-btn {
    top: 0;
    height: 70px;
    color: #000;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
    .hamburger-btn svg {
        width: 29px !important;
        height: 29px !important;
    }
    .nav-minimal {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
                background-color: rgba(255, 255, 255, 0.6) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px); /* Premium blur effect */
        -webkit-backdrop-filter: blur(15px);
        display: none; /* Controlled by .mobile-active */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        z-index: 999999 !important;
        transform: none !important;
        opacity: 1 !important; /* Force opacity to 1 despite is-home-view on mobile */
        pointer-events: auto !important;
        border-radius: 0;
        padding-top: 100px;
        animation: rollDown 0.4s ease-out;
    }

    @keyframes rollDown {
        from { transform: translateY(-100%); }
        to { transform: translateY(0); }
    }

    .nav-minimal.mobile-active {
        display: flex;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px; /* Homogeneous balanced gap */
        width: 100%;
        padding: 0; 
        margin: 0;
    }

    .nav-item {
        font-size: 1.7rem !important; /* Homogeneous font size (approx 27px) */
        color: #000 !important;
        font-weight: 300 !important;
        transition: color 0.3s ease;
    }

    .nav-item.active,
    .nav-item:active {
        color: var(--color-menu-hover, var(--logo-color)) !important; /* Rouge au clic/actif */
    }

    .nav-item svg,
    .nav-item-extra svg {
        stroke: var(--color-menu, #000) !important;
    }
    
    .nav-item .feather,
    .nav-item svg {
        width: 22px !important; /* Corrected specificity to override the 16px desktop style */
        height: 22px !important;
        margin-right: 8px !important;
        transform: translateY(2px);
    }

    .nav-item.active svg,
    .nav-item-extra.active svg {
        stroke: var(--color-menu-hover, var(--logo-color)) !important;
    }

    /* Force customized menu color for NORMAL mobile menu items when menu is open */
    body.mobile-menu-open .nav-item:not(.active),
    body.mobile-menu-open .nav-item:not(.active) span,
    body.mobile-menu-open .nav-item-extra,
    body.mobile-menu-open .lang-btn,
    body.mobile-menu-open .nav-extra-divider {
        color: var(--color-menu, #000) !important;
    }
    
    /* Ensure active/tapped item is ALWAYS red on mobile */
    body.mobile-menu-open .nav-item.active,
    body.mobile-menu-open .nav-item.active span,
    body.mobile-menu-open .nav-item:active,
    body.mobile-menu-open .nav-item:active span,
    body.mobile-menu-open .nav-item-extra:active,
    body.mobile-menu-open .nav-item-extra:active span {
        color: var(--color-menu-hover, var(--logo-color)) !important;
    }

    body.mobile-menu-open .nav-item.active svg,
    body.mobile-menu-open .nav-item:active svg,
    body.mobile-menu-open .nav-item-extra.active svg,
    body.mobile-menu-open .nav-item-extra:active svg {
        stroke: var(--color-menu-hover, var(--logo-color)) !important;
    }
    
    body.mobile-menu-open .hamburger-btn {
        color: #000 !important; /* Visible on white overlay */
    }

    /* Logo must STAY visible on mobile and allow intro animation to function */
    .logo-container {
        z-index: 10001; /* Lowered from 1000001 to stay behind cart/modals */
        top: var(--logo-top-final);
        left: var(--logo-left-final);
        height: 70px; /* Center-ish height for mobile header area */
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    /* Ensure the active/clicked item uses the menu hover color on mobile (Overriding EVERYTHING) */
    .nav-minimal.mobile-active .nav-item.active,
    .nav-minimal.mobile-active .nav-item.active span,
    .nav-minimal.mobile-active .nav-item:active,
    .nav-minimal.mobile-active .nav-item:active span,
    .nav-minimal.mobile-active .nav-item:hover,
    .nav-minimal.mobile-active .nav-item:hover span {
        color: var(--color-menu-hover, var(--logo-color)) !important;
    }
    
    .nav-minimal.mobile-active .nav-item.active svg,
    .nav-minimal.mobile-active .nav-item:hover svg {
        stroke: var(--color-menu-hover, var(--logo-color)) !important;
    }

    /* Section-view logo on mobile (Smaller/Red) */
    body.is-not-home-view .logo-container img {
        height: 48px; /* Enlarge by 20% (40px * 1.2 = 48px) */
        opacity: 1;
        filter: invert(13%) sepia(100%) saturate(7483%) hue-rotate(345deg) brightness(98%) contrast(110%);
    }

    /* Home-view logo on mobile (Immersive/White) handled by --logo-top-final variables */
    body.is-home-view .logo-container {
        pointer-events: auto;
    }
    
    body.is-home-view .logo-container img,
    body.is-home-view .logo-container svg {
        height: 48px; /* Enlarge by 20% (40px * 1.2 = 48px) */
    }

    body.is-home-view .logo-container img {
        filter: brightness(0) invert(1);
    }
    
    /* Logo d'intro mobile : 85% de la largeur de l'écran en portrait, et centrage forcé */
    .logo-container.intro {
        width: 85vw;
        height: auto !important;
        max-height: 80vh;
        left: 50% !important;
        top: 50% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .logo-container.intro img,
    .logo-container.intro svg {
        width: 100% !important;
        height: auto !important;
    }
    
    body.mobile-menu-open .logo-container img,
    body.mobile-menu-open .logo-container svg {
        opacity: 1 !important;
        height: 48px !important; /* Keep size stable when menu is open (40px * 1.2 = 48px) */
    }

    body.mobile-menu-open .logo-container img {
        filter: brightness(0) saturate(100%) invert(24%) sepia(87%) saturate(7489%) hue-rotate(344deg) brightness(101%) contrast(106%) !important;
    }

    /* Hide TOP-RIGHT EXTRAS on mobile as they are moved inside */
    .top-right-extras {
        display: none !important;
    }

    /* Mobile-only menu items inline inside nav-links */
    .mobile-menu-spacer {
        display: block !important;
        height: 24px !important;
        width: 100%;
    }
    .mobile-menu-insta {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        margin-top: 12px;
    }
    .mobile-menu-insta svg,
    .mobile-menu-insta .feather {
        width: 23px !important; /* Increased by 10% (from 21px) */
        height: 23px !important;
        stroke: var(--color-menu, #470011) !important;
        transition: stroke 0.3s ease;
    }
    body.dark-mode .mobile-menu-insta svg {
        stroke: #f2ece8 !important;
    }
    .mobile-menu-lang {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        margin-top: 12px;
    }
    .mobile-lang {
        font-family: var(--font-nav), sans-serif;
        font-size: 1.35rem !important; /* Reduced by 20% (from 1.7rem) */
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 10px; /* Reduced gap slightly to fit smaller font size */
    }
    .mobile-lang .nav-item-extra {
        font-size: 1.35rem !important; /* Reduced by 20% (from 1.7rem) */
        font-weight: 300 !important;
        color: var(--color-menu, #470011) !important;
    }
    .mobile-lang .nav-item-extra.active {
        font-weight: 400 !important;
        color: var(--color-menu, #470011) !important;
    }
    body.dark-mode .mobile-lang .nav-item-extra,
    body.dark-mode .mobile-lang .nav-item-extra.active {
        color: #f2ece8 !important;
    }
}

.sidebar-footer {
    display: none;
}

/* --- Section Layout for OnePage --- */
.page-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px; /* Plus d'espace intérieur pour aérer */
    border-bottom: none; /* Dividers removed definitively */
    box-sizing: border-box;
    scroll-margin-top: 70px; /* Offset for sticky header */
    scroll-snap-align: start; /* Magnetize section to top */
    scroll-snap-stop: normal;
}
#section-home {
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
}

/* Alternance de fond des sections (Mode Clair) */
#section-news,
#section-portfolio,
#section-commissions,
#section-shop {
    background-color: #ffffff !important;
}
#section-about,
#section-contact {
    background-color: var(--alternance-bg-color, #EDE5DE) !important;
    position: relative;
    z-index: 1000; /* Passes on top of body::before (z-index 999) to cover the white frame */
}

/* Alternance de fond des sections (Mode Nuit) */
body.dark-mode #section-news,
body.dark-mode #section-portfolio,
body.dark-mode #section-commissions,
body.dark-mode #section-shop {
    background-color: var(--bg-color, #1c1410) !important;
}
body.dark-mode #section-about,
body.dark-mode #section-contact {
    background-color: #271e18 !important; /* Brun chaud plus clair pour l'alternance sombre */
    position: relative;
    z-index: 1000;
}

/* Suppression des traits de séparation pour des transitions de couleur nettes */
.section-divider {
    display: none !important;
}

/* --- Section Divider --- */
.section-divider {
    width: 10%; /* 10% de la largeur de l'écran */
    height: 1px; /* Trait très fin de 1px */
    border: none;
    background-color: var(--accent-secondary, #FF4603); /* Couleur d'accent secondaire (orange/corail) */
    margin: 50px auto 90px auto; /* Décalage */
    opacity: 0.8;
}

@media (max-width: 768px) {
    .section-divider {
        width: 30%; /* 30% de la largeur de l'écran sur mobile */
    }
}

/* --- Révélation au Scroll Vertical (Style Épuré) --- */

/* Base commune pour la révélation verticale des sections (sauf Hero d'accueil) */
.page-section:not(#section-home) {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* État révélé : retour au neutre */
.page-section:not(#section-home).revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Révélation native via Scroll-Driven Animations (si supporté par le navigateur) */
@supports (animation-timeline: view()) {
    .page-section:not(#section-home) {
        transition: none;
        opacity: 1;
        transform: none;
        animation: revealSectionVertical both;
        animation-timeline: view();
        animation-range: entry 5% cover 30%;
    }
}

@keyframes revealSectionVertical {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.parcours-timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
    font-family: var(--font-primary);
}

#section-home {
    padding: 0;
    position: relative;
    height: 100vh;
    height: 100dvh;
}

/* Desktop-only large home logo */
@media (min-width: 769px) {
    .is-home-view .logo-container img,
    .is-home-view .logo-container svg {
        height: 80px; /* Large size on Desktop Home */
    }
}

.is-home-view .logo-container img,
.is-home-view .logo-container svg {
    opacity: 0.9;
}

.is-home-view .logo-container img {
    filter: brightness(0) invert(1); /* White on Home Hero */
}

body.is-not-home-view .logo-container {
    top: 0 !important;
    height: 70px !important; /* Matches the new banner height */
}

/* Color transition for all devices (except intro) */
body.is-not-home-view .logo-container:not(.intro) img {
    filter: brightness(0) saturate(100%) invert(24%) sepia(87%) saturate(7489%) hue-rotate(344deg) brightness(101%) contrast(106%); /* Perfect Red #FF033E equivalent */
    opacity: 1;
}

body.is-not-home-view .logo-container:not(.intro) svg {
    opacity: 1;
}


/* Ensure the banner is visible and logo size is stable on scroll */
@media (min-width: 769px) {
    body.is-not-home-view .logo-container:not(.intro) img,
    body.is-not-home-view .logo-container:not(.intro) svg {
        height: 44px; /* Desktop scroll height */
    }
}

/* Mobile-only scroll height (stabilize at 40px) */
@media (max-width: 768px) {
    body.is-not-home-view .logo-container:not(.intro) img,
    body.is-not-home-view .logo-container:not(.intro) svg {
        height: 40px; /* Maintenir la taille réduite pour les rubriques (navigation rouge) */
    }
}

/* Specific nav item colors based on page context - Desktop ONLY to avoid mobile conflicts */
@media (min-width: 769px) {
    .is-home-view .nav-item, 
    .is-home-view .nav-item i, 
    .is-home-view .nav-item svg,
    .is-home-view .nav-item-extra, 
    .is-home-view .nav-item-extra svg,
    .is-home-view .nav-extra-divider {
        color: #fff !important;
        stroke: #fff !important;
    }

    .is-not-home-view .nav-item, 
    .is-not-home-view .nav-item i, 
    .is-not-home-view .nav-item svg,
    .is-not-home-view .nav-item-extra, 
    .is-not-home-view .nav-item-extra svg,
    .is-not-home-view .nav-extra-divider {
        color: var(--color-menu-other, #000) !important;
        stroke: var(--color-menu-other, #000) !important;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1em;
}

.section-title-main {
    display: none; /* Cacher le titre de section redondant */
    font-family: var(--font-section-title);
    font-size: var(--font-size-titles, 1.3rem); /* Reduced by 1/3 from 2rem */
    text-align: left;
    margin-left: 10vw; /* Aligned with 10% offset as requested */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 80px;
    font-weight: 100; /* Very thin */
    color: var(--mapped-section-title);
}

@media (max-width: 768px) {
    .section-title-main {
        font-size: calc(var(--font-size-titles, 1.3rem) * 0.65); /* Reduced by 1/3 from 1.25rem, proportional scaling */
        margin-bottom: 40px;
    }
}

/* --- Section Home (Fullscreen) --- */
#section-home {
    padding: 0;
}

.fullscreen-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px; /* Respect white border */
    background-color: var(--hero-bg-color, #000000);
    border-radius: var(--border-radius); /* Adjusted from 12px to 8px */
    overflow: hidden;
}

/* Subtle Top Gradient for menu readability */
.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 150px; /* Gradient height */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 10;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll; /* Évite les lags de parallax si existant */
        background-position: center center;
    }
}

.hero-slide.active {
    opacity: 1;
}

.hero-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-align: center;
    width: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-caption.visible {
    opacity: 1;
}

.hero-caption-title {
    font-family: var(--font-nav);
    font-size: clamp(1.17rem, 2.34vw, 1.56rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
}

.hero-dots-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0; /* Resserré partout */
    z-index: 9999; 
    pointer-events: auto;
}

.hero-dot {
    width: 18px; /* Zone compacte */
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
}

.hero-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.hero-dot:hover::after {
    background-color: rgba(255, 255, 255, 1);
}

.hero-dot.active::after {
    background-color: #ffffff;
    transform: scale(1.1);
}

/* Invisible zone to detect mouse movement on home to show menu */
.menu-trigger-zone {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 50;
}

/* --- Portfolio Grid Section --- */
#section-portfolio {
    padding: 50px 40px 60px 40px; /* Harmonized with other sections */
    position: relative;
    z-index: 1;
}

.gallery-horizontal {
    display: flex;
    height: 100vh;
    height: 100dvh;
    padding: 60px;
    gap: 40px;
    align-items: center;
}

.gallery-item {
    height: 75vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius); /* Adjusted from 12px to 8px */
}

.item-caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

/* --- Grids (Series, Commissions & Shop) --- */
.grid-gallery {
    column-count: 3;
    column-gap: 60px;
    padding: 20px 10vw;
}

#commissions-grid-front {
    column-count: 2;
}

.grid-gallery.desktop-masonry {
    display: flex !important;
    column-count: unset !important;
    column-gap: unset !important;
    gap: 60px !important;
    align-items: flex-start !important; /* Prevents columns from stretching vertically */
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-gallery, #commissions-grid-front {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 20px;
    }
}

.project-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
    break-inside: avoid;
    cursor: pointer;
    text-decoration: none;
}

.desktop-masonry .project-card {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .project-card {
        margin-bottom: 15px;
    }
}

.project-overlay {
    position: absolute;
    bottom: 2.5%; left: 2.5%;
    width: 95%; height: 95%;
    background-color: rgba(255, 255, 255, 0.88); /* Lightened/brightened background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 20px 20px 12px 20px; /* Comfortable padding top and bottom */
    z-index: 10;
    box-sizing: border-box;
    transform: translateY(105%);
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-overlay,
.project-card.active .project-overlay {
    transform: translateY(0);
}

.project-overlay-name {
    font-family: var(--font-nav);
    font-size: 1.38rem;
    font-weight: 500 !important; /* Variex courant / regular */
    color: var(--text-color);
    margin-bottom: 6px; /* Added air between Title and Legend */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.project-overlay-legend {
    font-family: var(--font-primary);
    font-size: 1.02rem;
    color: var(--text-color);
    font-weight: 400;
    margin-top: 0; /* Reset negative margin */
    margin-bottom: 1px; /* Tiny space between Legend and Date */
    line-height: 1.25;
}

.project-overlay-date {
    font-family: var(--font-primary);
    font-size: 0.96rem;
    color: var(--text-muted); /* Muted color to differentiate from location/legend */
    font-weight: 400;
    margin-top: 0; /* Reset negative margin */
    margin-bottom: 4px; /* Space before description */
    line-height: 1.25;
}

.project-overlay-short-desc {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    color: var(--text-color);
    font-weight: 300;
    margin-top: 4px; /* Reduced from 6px */
    line-height: 1.45;
    opacity: 0.85;
    max-width: 90%;
    
    /* Flexbox scrolling configurations */
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent !important;
}

body.dark-mode .project-overlay-short-desc {
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent !important;
}

/* Minimalist scrollbars for project-overlay-short-desc (Safari, Chrome, Webkit) */
.project-overlay-short-desc::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
    display: block !important;
}

.project-overlay-short-desc::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03) !important;
    border-radius: 4px !important;
}

body.dark-mode .project-overlay-short-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03) !important;
}

.project-overlay-short-desc::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px !important;
    transition: background 0.3s ease !important;
}

body.dark-mode .project-overlay-short-desc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
}

.project-overlay-short-desc:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .project-overlay-short-desc:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45) !important;
}

.project-overlay-short-desc::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color) !important;
}

/* Base image container */
.project-image-container {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    border-radius: var(--border-radius);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    mix-blend-mode: darken;
}

.project-card:hover .project-image-container {
    box-shadow: none;
}

.project-card:hover .project-image-container img {
    transform: none !important;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card-title {
    font-family: var(--font-nav), sans-serif;
    font-weight: 300 !important; /* Variex fin */
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin-top: 12px;
    color: var(--text-color, #470011);
    transition: opacity 0.35s ease;
}

.project-title-arrow {
    display: none;
}

/* Disabled fade out of title to allow button morph on hover */
/*
.project-card:hover .project-card-title {
    opacity: 0;
}
*/

.nav-item {
    font-family: var(--font-nav);
    font-size: var(--font-size-nav, 0.9rem);
    text-transform: lowercase;
    transition: color 0.3s ease, font-weight 0.3s ease, font-size 0.4s ease;
    padding: 0 8px;
    font-weight: 300 !important;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    color: var(--color-menu, var(--text-color));
    text-decoration: none;
}

.nav-item:hover, .nav-item.active {
    font-weight: 400 !important;
    color: var(--color-menu-hover, var(--mapped-nav-active));
}

/* End of projects styles */

.grid-item img {
    width: 100%;
    height: auto;
}

.grid-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-muted);
}


/* --- About Section --- */
.about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 52px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10vw;
}

.about-bio-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-portrait-wrapper {
    width: 36%;
    min-width: 180px;
    position: relative;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.about-portrait-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    filter: grayscale(1);
    transition: filter 0.4s ease;
}

.about-portrait-wrapper:hover img {
    filter: grayscale(0);
}

.edition-cover {
    position: relative;
    overflow: hidden;
}

/* Local color overlays to multiply white background into the section background color */
.about-portrait-wrapper::after,
.edition-cover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--alternance-bg-color, #EDE5DE) !important;
    mix-blend-mode: multiply !important;
    pointer-events: none;
    transition: background-color 0.4s ease;
}

.about-portrait-wrapper::after {
    border-radius: 4px;
}

.edition-cover::after {
    border-radius: 2px;
}

.about-text-container {
    width: 64%;
    display: flex;
    flex-direction: column;
}

.about-text {
    width: 100%;
    font-size: 0.9em; /* Réduit de ~20% (1.1rem -> 0.9rem) */
    line-height: 1.6;
    color: var(--text-color);
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 4.8rem; /* Décalage de 3 lignes (3 * 1.6) */
    position: relative;
}

.about-text.collapsed::after {
    display: none;
}

.about-text.expanded::after {
    opacity: 0;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--accent-secondary);
    font-family: var(--font-nav);
    font-size: calc(var(--font-size-buttons, 0.85rem) * (0.75 / 0.85));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0;
    margin-top: 15px;
    display: none;
    width: fit-content;
    font-weight: 600;
}

.btn-read-more:hover {
    color: var(--text-color);
}

.bio-sub-section {
    margin-top: 0;
}

.bio-sub-title {
    font-family: var(--font-nav);
    font-size: 1.125rem; /* Agrandit de 50% (0.75rem -> 1.125rem) */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    color: var(--mapped-sub-section-title);
    font-weight: 600;
}

.bio-dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-list-item {
    display: flex;
    gap: 24px;
    font-size: 0.75em; /* Réduit (0.9rem -> 0.75rem) */
    line-height: 1.4;
}

.bio-item-year {
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    min-width: 40px;
    color: var(--text-color);
}

.bio-item-content {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--text-color);
}

.bio-list-item .sub-sub-title {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color) !important;
    font-weight: 400;
}

.bio-list-item .meta-detail,
.bio-list-item .bio-item-desc {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color) !important;
    font-weight: 300;
}

.editions-grid-front {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .about-content {
        padding: 0 20px;
        gap: 30px;
    }
    .about-bio-row {
        flex-direction: column;
        gap: 24px;
    }
    .about-portrait {
        width: 78%;
        margin: 0 auto;
    }
    .about-text-container {
        width: 100%;
    }
    .about-text {
        width: 100%;
        margin-top: 0; /* Pas de décalage sur mobile */
        text-align: left;
        font-size: 1rem;
    }
    .btn-read-more {
        margin-left: 0;
        margin-right: auto;
    }
    .bio-list-item {
        gap: 15px;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .content-area {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-links li {
        margin-bottom: 0;
    }
    
    #section-portfolio, .page-section {
        padding: 40px 20px;
    }
    
    .gallery-horizontal {
        padding: 40px 20px;
        height: 60vh;
    }
    
    .gallery-item {
        height: 50vh;
    }

    .about-content {
        flex-direction: column;
    }
    
    .about-portrait {
        width: 78%;
        margin: 0 auto;
    }
}

/* =============================================
   PROJECT LIGHTBOX — Scroll Horizontal
   ============================================= */
.project-lightbox, .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
}

.project-lightbox.open, .lightbox.open {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    background: #fff;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInModal 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px; /* Thin header to maximize image space */
    border-bottom: 1px solid #eee;
    height: 74px; /* Stable height to prevent shifting */
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-header > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

/* When slideshow is NOT active, keep header in-flow, but transparent and borderless. Put close button on the left */
.project-lightbox:not(.slideshow-active) .lightbox-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    justify-content: flex-start; /* Pulls close button to the left */
}

.project-lightbox:not(.slideshow-active) .lightbox-header > div:first-child {
    display: none !important; /* Hide title container entirely from layout */
}

.project-lightbox:not(.slideshow-active) .lightbox-close {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.12); /* Slightly stronger border */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1); /* Stronger shadow */
}

body.dark-mode .project-lightbox:not(.slideshow-active) .lightbox-close {
    background: rgba(34, 26, 20, 0.9);
    color: #f2ece8;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.lightbox-title {
    font-size: 1.2rem; /* Adjusted for inline look */
    font-weight: 500 !important; /* Variex courant */
    font-family: var(--font-nav); /* Varix */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-legend {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: var(--font-nav), sans-serif; /* Variex */
    font-weight: 300 !important; /* Variex light */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-lightbox.slideshow-active .lightbox-title,
.project-lightbox.slideshow-active .lightbox-legend {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    background: none;
    border: none;
    width: 54px; /* Increased from 48px */
    height: 54px; /* Increased from 48px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent);
    transform: rotate(90deg) scale(1.05); /* Added slight scale */
}

.lightbox-close svg {
    width: 24px; /* Increased from 20px */
    height: 24px; /* Increased from 20px */
    display: block;
}

.lightbox-scroll {
    position: absolute;
    top: -20px;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex;
    gap: 40px; /* Space between images in the row */
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    padding-left: 50%;
    padding-right: 50%;
    align-items: stretch;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Force standard horizontal scrollbar visibility on Safari 18+ and Firefox */
.project-lightbox .lightbox-scroll {
    scrollbar-width: thin !important;
    scrollbar-color: color-mix(in srgb, var(--text-muted) 30%, transparent) transparent !important;
}

/* Highly specific rules to override global scrollbar transparency for horizontal scrollbar */
.project-lightbox .lightbox-scroll::-webkit-scrollbar {
    height: 8px !important;
    display: block !important;
}
.project-lightbox .lightbox-scroll::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--text-muted) 5%, transparent) !important;
    border-radius: 4px !important;
    background-clip: padding-box !important;
    border-top: 3px solid transparent !important;
}
.project-lightbox .lightbox-scroll::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--text-muted) 30%, transparent) !important;
    border-radius: 4px !important;
    background-clip: padding-box !important;
    border-top: 3px solid transparent !important;
    transition: background-color 0.2s ease !important;
}
.project-lightbox .lightbox-scroll:hover::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--text-muted) 55%, transparent) !important;
}
.project-lightbox .lightbox-scroll::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in srgb, var(--text-muted) 80%, transparent) !important;
}

.lightbox-img-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    height: 100%;
    box-sizing: border-box;
    position: relative; /* Position anchor for selection button */
}
.lightbox-img-item:has(.lightbox-select-btn:hover),
.lightbox-img-wrapper:has(.lightbox-select-btn:hover),
.lightbox-img-container:has(.lightbox-select-btn:hover) {
    z-index: 100 !important; /* Raise parent item stacks above other images to prevent tooltip overlap */
}

.lightbox-img-wrapper {
    flex: 1;
    display: flex;
    align-items: center; /* Center images vertically to ensure identical top and bottom margins */
    justify-content: center;
    min-height: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    transform: translateY(20px) !important; /* Offset container shift */
}

.lightbox-img-item img {
    box-sizing: border-box;
    max-height: calc(100vh - 280px); /* Raised images to leave space at the bottom */
    max-width: 90vw;
    width: auto;
    object-fit: contain;
    border-radius: var(--slideshow-border-radius, 8px) !important; /* Responds to the slideshow_border_radius setting */
    display: block;
    box-shadow: none;
    border: none;
}

.lightbox-img-meta {
    position: absolute !important;
    top: calc(100% + 18px); /* Lowered the legend by 18px below the bottom edge of the image */
    left: 0;
    right: 0;
    margin: 0;
    min-height: 40px;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center; /* Center content horizontally */
    width: 100%;
    box-sizing: border-box;
    padding: 0 2px; /* Tiny padding to align with image edges */
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
}

/* Hide captions dynamically */
.project-lightbox.hide-captions .lightbox-img-title {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lightbox-img-title {
    font-size: 0.9rem;
    font-weight: 200;
    font-family: 'Outfit', sans-serif;
    margin: 0 10px; /* Centered with a small padding at the sides */
    line-height: 1.3;
    text-align: center; /* Center the text for reading comfort */
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Clamp to exactly 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-img-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
}

.lightbox-no-images {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

/* Card hover: pointer cursor */
.project-card {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox-panel { height: 100%; border-radius: 0; }
    .lightbox-header { padding: 18px 20px 14px; }
    .lightbox-scroll { padding-left: 50%; padding-right: 50%; gap: 30px; }
    .lightbox-img-item img {
        max-height: calc(100vh - 280px) !important;
        padding: 0 !important; /* Removed padding so rounded corners of the photo pixels are visible */
        border-radius: var(--slideshow-border-radius, 8px) !important; /* Responds to the slideshow_border_radius setting */
    }
    .lightbox-img-meta {
        margin-bottom: 45px;
    }
    
    .lightbox-text-panel {
        width: 100% !important;
        height: 100% !important;
    }
    .lightbox-actions-container {
        bottom: 16px !important;
        right: 16px !important;
        gap: 8px !important;
    }
    .lightbox-text-trigger,
    .lightbox-captions-trigger {
        padding: 8px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }
    .lightbox-text-trigger svg,
    .lightbox-captions-trigger svg {
        width: 14px !important;
        height: 14px !important;
    }
    .lightbox-controls {
        bottom: 120px !important; /* Raised by 50px (from 70px) for layout balance */
        padding: 0 12px !important;
        gap: 10px !important;
        height: 70px !important;
        width: 340px !important; /* Slightly increased to fit 1.4x scale nicely */
        max-width: 92vw !important;
        border-radius: 35px !important;
    }
    .lightbox-control-btn {
        padding: 3px !important; /* Reduced padding to fit smaller screen widths */
    }
    .lightbox-control-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    .lightbox-control-btn.play-pause-btn svg {
        width: 30px !important; /* Enlarged by 30%+ compared to standard icons */
        height: 30px !important;
    }
    .lightbox-control-btn.play-pause-btn {
        margin: 0 8px !important; /* Extra spacing around central play/pause icon */
    }
    .lightbox-control-btn.arrow-btn svg {
        width: 34px !important;
        height: 34px !important;
    }
    .lightbox-controls-center {
        gap: 10px !important;
    }
    .lightbox-controls-row {
        gap: 10px !important;
    }
    .lightbox-speed-value {
        bottom: 2px !important; /* Lowered by 3px to vertical center align */
        font-size: 0.75rem !important;
    }
    .spacebar-hint {
        display: none !important;
    }
    .lightbox-intro-item {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 24px !important;
        height: 100% !important;
    }
    .lightbox-intro-description {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    .lightbox-play-wrapper {
        align-self: center !important;
        margin-top: 20px !important;
    }
    /* Fix event dispatch on mobile by ignoring inner icon/svg/span elements during click events */
    .btn-play-project *,
    .lightbox-control-btn *,
    .lightbox-actions-container button *,
    .lightbox-close * {
        pointer-events: none !important;
    }
}

/* Inactivity fade-out transitions */
.lightbox-header,
.lightbox-controls,
.lightbox-actions-container {
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s, box-shadow 0.2s;
    opacity: 1;
    visibility: visible;
}

/* When the show-controls class is NOT present on the parent */
.project-lightbox:not(.show-controls):not(.slideshow-active) .lightbox-header,
.project-lightbox:not(.show-controls) .lightbox-actions-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.project-lightbox:not(.show-controls) .lightbox-controls {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(40px); /* Snappy slide down */
    transition: opacity 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53), transform 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53), visibility 0.2s;
}

/* Hide controls pad when slideshow is not active (intro phase) */
.project-lightbox:not(.slideshow-active) .lightbox-controls {
    display: none !important;
}

.lightbox-controls {
    position: absolute;
    bottom: calc(15vh - 10px); /* Positioned relative to bottom white space */
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.65); /* Light frosted glass background with high translucency */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-color); /* Bordeaux-brown color of the buttons */
    border: 1px solid rgba(71, 0, 17, 0.15); /* Bordeaux-brown contour with transparency */
    border-radius: 45px; /* Perfect pill shape (half of height 90px) */
    width: 480px; /* Stable width for layout */
    max-width: 95vw;
    height: 90px; /* Adjusted height for 1.4x scale */
    box-sizing: border-box;
    padding: 0 20px; /* Outer padding for endpoints */
    box-shadow: 0 0 25px 8px rgba(71, 0, 17, 0.09), 0 10px 30px rgba(0, 0, 0, 0.05); /* Bordeaux-brown halo + soft drop shadow */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Arrow buttons pushed to outer edges */
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.lightbox-controls:hover {
    background-color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 0 30px 10px rgba(71, 0, 17, 0.12), 0 10px 30px rgba(0, 0, 0, 0.08);
}

.lightbox-controls-center {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-controls-row {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjusted gap for 1.4x scale */
}

.lightbox-control-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lightbox-control-btn.play-pause-btn {
    margin: 0 12px; /* Extra spacing around central play/pause icon on desktop */
}

.lightbox-control-btn:hover {
    color: var(--accent, #e74c3c);
    transform: scale(1.15);
}

.lightbox-control-btn svg {
    width: 28px;
    height: 28px;
    display: block;
}

.lightbox-control-btn.arrow-btn svg {
    width: 48px;
    height: 48px;
}

.lightbox-control-btn.play-pause-btn svg {
    width: 40px; /* Enlarged by 30%+ compared to standard 28px icons */
    height: 40px;
}

.lightbox-control-btn.reset-btn svg,
.lightbox-control-btn.skip-btn svg {
    width: 25px;
    height: 25px;
}

.lightbox-control-btn.speed-btn svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.5px;
}

.lightbox-speed-value {
    position: absolute;
    bottom: 7px; /* Lowered by 3px to vertical center align */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 300;
    font-family: var(--font-primary);
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
    letter-spacing: 0.02em;
}

.lightbox-actions-container {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-text-trigger {
    background-color: var(--text-color); /* Matches the slideshow play button */
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 22px;
    font-family: var(--font-nav); /* Varix */
    font-size: 0.9rem;
    font-weight: 400; /* Format courant */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-captions-trigger {
    background-color: var(--text-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 22px;
    font-family: var(--font-nav); /* Varix */
    font-size: 0.85rem;
    font-weight: 300; /* Light typography */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 0.75; /* More discrete by default */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-text-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #610017;
}

.lightbox-captions-trigger:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: #610017;
}

.lightbox-text-trigger svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.lightbox-captions-trigger svg {
    width: 20px; /* 20% larger than 16px */
    height: 20px;
    stroke-width: 2px;
}

.lightbox-text-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 495px;
    height: 100%;
    background-color: #fff;
    z-index: 1002;
    box-shadow: none; /* Removed from here to prevent bleeding when panel is closed */
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-left: 1px solid #eee;
}

.lightbox-text-panel.open {
    transform: translateX(0);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15); /* Apply shadow only when panel is open */
}

.lightbox-text-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.lightbox-text-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lightbox-text-close {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-text-close:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.lightbox-text-close svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5px;
}

.lightbox-text-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.lightbox-text-project-title {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: var(--font-primary);
    color: #1c1410;
    margin-bottom: 8px;
}

.lightbox-text-project-legend {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-primary);
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.lightbox-text-description {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
}

/* =============================================
   DYNAMIC LISTS (BIO / COMMISSIONS)
   ============================================= */
.bio-dynamic-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-list-item {
    font-family: var(--font-primary);
    font-size: 0.95em;
    line-height: 1.4;
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.bio-item-year {
    font-family: 'Outfit', sans-serif;
    font-size: calc(var(--font-size-dates, 0.8rem) * (0.78 / 0.8));
    color: var(--text-color);
    flex-shrink: 0;
    min-width: 36px;
    font-weight: 200;
    letter-spacing: 0.02em;
}

.bio-item-content {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    flex: 1;
}

.bio-list-item strong {
    font-weight: 400;
}

.bio-list-item .item-meta {
    color: var(--text-muted);
}

.commission-item {
    text-align: left;
}

.commission-name {
    font-family: var(--font-primary);
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 4px;
}

.commission-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-primary);
}

.empty-state-front {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.bio-category-title {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 30px 0 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--logo-color);
    padding-bottom: 4px;
    display: inline-block;
    min-width: 120px;
}

.bio-category-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =============================================
   EDITIONS SECTION
   ============================================= */
.editions-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 40px 0;
    margin-left: 10vw; /* 10% of page width as requested */
}

.edition-card {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    cursor: default;
}

@media (max-width: 768px) {
    .edition-card {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
}

.edition-card-cover {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .edition-card-cover {
        width: 100%;
        max-width: 400px;
    }
}

.edition-card:hover .edition-card-cover {
    transform: translateY(-8px);
}

.edition-card-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    transition: transform 0.4s ease;
}

.edition-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: var(--text-muted);
}

.edition-card-info {
    margin-top: 16px;
}

.edition-card-title {
    font-family: var(--font-nav);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.edition-card-meta {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.edition-card-specs {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.edition-spec-tag {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    color: var(--text-muted);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 9px;
    white-space: nowrap;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-layout {
    display: flex;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
}
.contact-form-wrap {
    width: 100%;
    max-width: 780px;
}
#contact-form {
    max-width: 580px;
    margin: 0 auto 50px auto;
}
.meet-options-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 300;
}
.meet-options-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.meet-options-list li svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    vertical-align: middle;
}
@media (min-width: 769px) {
    .meet-options-list li {
        white-space: nowrap;
    }
}

.contact-title {
    font-family: var(--font-nav);
    font-size: 1.28rem; /* Agrandit de 50% (0.85rem -> 1.28rem) */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mapped-sub-section-title);
    margin: 0 0 12px;
}

.contact-detail {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 4px;
}

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

.contact-link {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.contact-link:hover { color: var(--accent-color); }

.contact-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
}

.contact-column {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .contact-columns {
        flex-direction: column;
        gap: 40px;
    }
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.01rem; /* Agrandit de 40% (0.72rem -> 1.01rem) */
    font-weight: 600; /* Plus épais */
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid var(--accent-tertiary, #FFB803); /* Ligne jaune accent tertiaire */
    background: transparent;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif; /* Même typo que la rubrique */
    font-weight: 400; /* Regular */
    font-size: 1.1rem; /* Agrandit le texte saisi */
}

.contact-input::placeholder {
    color: var(--color-placeholder);
    opacity: 1;
    font-family: 'Outfit', sans-serif; /* Même typo que la rubrique */
    font-weight: 400;
    font-size: 1.1rem; /* Agrandit le placeholder */
}
.contact-input:focus {
    border-bottom: 2px solid var(--accent);
}
#section-contact .contact-input:focus {
    outline: 2px solid var(--mapped-sub-section-title);
    outline-offset: 4px;
    border-radius: 2px;
    border-bottom-color: var(--mapped-sub-section-title);
}
.contact-textarea {
    resize: none;
    min-height: 100px;
    font-family: 'Outfit', sans-serif; /* Même typo que la rubrique */
    font-weight: 400;
    font-size: 1.1rem; /* Agrandit le texte saisi */
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centrage horizontal */
    gap: 10px;
    padding: 14px 28px; /* Padding légèrement augmenté pour le confort */
    background: var(--mapped-button-secondary-bg);
    color: #fff;
    border: 1px solid var(--mapped-button-secondary-bg); /* Pour l'alignement avec le bouton borduré */
    font-family: var(--font-nav), sans-serif;
    font-weight: normal;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--border-radius); /* Coins arrondis assortis à la boutique */
    transition: all 0.2s ease;
    letter-spacing: 0.08em;
    flex: 1; /* Largeur équilibrée */
}

.contact-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.contact-submit:not(:disabled):hover {
    background: transparent;
    color: var(--mapped-button-secondary-bg);
    border-color: var(--mapped-button-secondary-bg);
}
.contact-submit svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.5; }

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contact-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centrage horizontal */
    gap: 10px;
    padding: 14px 28px; /* Même padding que submit */
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    font-family: var(--font-nav), sans-serif;
    font-weight: normal;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--border-radius); /* Coins arrondis assortis à la boutique */
    transition: all 0.2s ease;
    letter-spacing: 0.08em;
    flex: 1; /* Largeur équilibrée */
    white-space: nowrap;
}

.contact-button-secondary:hover {
    background: var(--text-color);
    color: var(--bg-color, #ffffff);
    border-color: var(--text-color);
}

.contact-button-secondary svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* --- Bouton Cal.eu personnalisé (Prendre rendez-vous) --- */
.btn-meet-cal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px; /* Même padding que submit */
    background: var(--mapped-button-secondary-bg);
    border: 1px solid var(--mapped-button-secondary-bg);
    color: #fff;
    border-radius: var(--border-radius); /* Coins arrondis assortis à la boutique */
    font-family: var(--font-nav), sans-serif;
    font-size: 0.95rem; /* Même taille que submit */
    text-transform: uppercase;
    letter-spacing: 0.12em; /* Moins étroit, plus de respiration */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease; /* Même transition que submit */
    white-space: nowrap;
    width: auto;
}

.btn-meet-cal svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.btn-meet-cal:hover {
    background: transparent;
    color: var(--mapped-button-secondary-bg);
    border-color: var(--mapped-button-secondary-bg);
}

.contact-antispam {
    display: none;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Switch Toggle */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ddd; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:focus + .slider { box-shadow: 0 0 1px var(--accent); }
input:checked + .slider:before { transform: translateX(20px); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.contact-antispam.hidden { display: none; }

.contact-success {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2a7a4c;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 16px 0;
}

.contact-success svg { width: 20px; height: 20px; stroke: #2a7a4c; }

/* --- SHOP & CART UI --- */
#section-shop {
    padding-left: 15%;
    padding-right: 15%;
}

.shop-intro-container {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.shop-intro-text {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

.shop-carousel-outer {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
}

.shop-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Dégradé d'opacité aux extrémités */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-nav {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-nav:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
}

.shop-carousel {
    display: flex;
    gap: 40px;
    will-change: transform;
}

.shop-carousel-subtitle {
    font-family: var(--font-nav);
    font-size: 1.2rem; /* Agrandit de 50% (0.8rem -> 1.2rem) */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 25px;
    color: var(--mapped-sub-section-title);
    font-weight: 400;
}

.shop-carousel-description {
    font-family: var(--font-primary);
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
    max-width: 680px;
    margin: 30px auto 40px auto;
    letter-spacing: 0.03em;
    padding: 0 20px;
}

.shop-grid-title {
    font-family: var(--font-nav);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 60px 0 30px;
    color: var(--mapped-shop-title);
}

.btn-shop-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    min-width: 320px;
    height: 80px;
    box-sizing: border-box;
    padding: 0 48px;
    background: var(--mapped-button-bg);
    color: var(--mapped-button-text);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-nav);
    font-size: calc(var(--font-size-buttons, 0.85rem) * (1.25 / 0.85));
    font-weight: normal; /* Regular Variex font weight */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn-shop-picker:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    background: var(--accent-color); /* Couleur d'accent primaire survol */
}

.btn-track-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    min-width: 320px;
    height: 80px;
    box-sizing: border-box;
    padding: 0 48px;
    background: transparent;
    border: 2px solid var(--accent-color); /* Couleur d'accent primaire */
    color: var(--accent-color); /* Couleur d'accent primaire */
    border-radius: var(--border-radius, 8px);
    font-family: var(--font-nav), sans-serif;
    font-size: calc(var(--font-size-buttons, 0.85rem) * (1.25 / 0.85)); /* Même taille que btn-shop-picker */
    font-weight: normal; /* Regular Variex font weight */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.btn-shop-picker svg,
.btn-track-order svg {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
}
.btn-shop-picker span,
.btn-track-order span {
    position: relative;
    top: -3px; /* visual alignment tweak for Variex baseline */
    line-height: 1;
}

.btn-track-order:hover {
    background: var(--accent-color);
    color: var(--bg-color, #ffffff);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.shop-picker-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px;
    background: transparent;
}

.shop-picker-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-picker-group-title {
    font-family: var(--font-nav);
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.shop-picker-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
}

.shop-picker-item {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.shop-picker-item:hover {
    transform: translateY(-4px);
}

.shop-picker-img-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-picker-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.shop-picker-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: transparent;
    z-index: 10;
}
.shop-picker-checkbox:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    border-color: #ffffff;
}
.shop-picker-checkbox.checked {
    background: var(--accent-secondary, #FF4603);
    border-color: var(--accent-secondary, #FF4603);
    color: #ffffff;
}
.shop-picker-checkbox svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 3;
}

.shop-picker-item-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 8px;
    text-align: center;
    transition: color 0.2s ease;
}

.shop-picker-item:hover .shop-picker-item-title {
    color: #ffffff;
}
.shop-picker-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--accent-secondary, #FF4603); /* Couleur orange secondaire active */
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: normal; /* Regular weight */
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-nav), sans-serif;
}
.shop-picker-item:hover .shop-picker-buy-btn {
    background: color-mix(in srgb, var(--accent-secondary, #FF4603) 85%, #000);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-secondary, #FF4603) 40%, transparent);
}
.shop-picker-buy-btn svg {
    width: 18px !important; /* Picto panier plus gros */
    height: 18px !important;
    stroke-width: 2.8; /* Picto panier plus épais */
}
.shop-carousel-item {
    flex: 0 0 160px; /* Réduit de 50% (320px -> 160px) */
    width: 160px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.4s ease;
}

.shop-carousel-item:hover {
    transform: translateY(-5px);
}

.shop-carousel-img-link {
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    mix-blend-mode: darken;
}

.shop-carousel-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    border-radius: 4px;
}

.shop-carousel-item:hover .shop-carousel-img {
    transform: scale(1.05);
}

.shop-carousel-project {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 300 !important;
}

.shop-carousel-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-card {
    background: transparent;
    transition: transform 0.3s ease;
    text-align: center; /* Tout centrer */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-img-container {
    width: 70%; /* Réduit de 30% */
    margin: 0 auto 15px auto; /* Centré horizontalement */
    overflow: hidden;
    background: transparent;
    border-radius: var(--border-radius);
    mix-blend-mode: darken;
}

.product-img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--mapped-shop-title);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--mapped-price);
}

.btn-buy {
    width: 100%;
    padding: 12px;
    background: var(--mapped-button-bg);
    color: var(--mapped-button-text);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-buttons, 0.85rem);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Bouton réduit pour la grille boutique */
.product-card .btn-buy {
    font-family: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    width: auto;
    min-width: 140px;
    padding: 10px 20px;
    font-size: calc(var(--font-size-buttons, 0.85rem) * (0.7 / 0.85));
    margin: auto auto 0 auto;
    display: block;
    background: var(--mapped-button-bg);
    color: var(--mapped-button-text);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--mapped-button-bg), transparent 70%);
}

/* Floating Cart Icon */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--mapped-cart-bg);
    color: var(--mapped-cart-icon);
    border-radius: 50%;
    display: none; /* Masqué par défaut */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.cart-floating-btn:hover {
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--logo-color);
    color: #fff;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Custom scrollbars for cart/checkout drawer are defined in the unified scrollbar section at the end of the file */

/* Cart Drawer — Dark Premium */
.cart-drawer {
    position: fixed;
    top: 20px;
    right: -100%;
    bottom: 20px;
    width: 420px;
    max-width: calc(100% - 40px);
    background: rgba(24, 24, 24, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffffff;
    z-index: 2000000; /* Over everything including mobile menu and dots */
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none; /* Prevent bleeding when closed */
}

.cart-drawer.open {
    right: 20px;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3); /* Apply shadow only when open */
}

.cart-header {
    padding: 12px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.cart-header .lightbox-close {
    color: rgba(255, 255, 255, 0.6);
    margin-right: -10px;
}

.cart-header .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.checkout-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-img {
    width: 60px;
    height: 75px;
    border-radius: 4px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    color: #ffffff;
}

.cart-item-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}
.cart-item-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #1a1a1a; /* Fond opaque solide */
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.cart-item-remove:hover {
    background: var(--accent-secondary, #FF4603);
    border-color: var(--accent-secondary, #FF4603);
    color: #ffffff;
    transform: scale(1.08);
}
.cart-item-remove svg {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 2.5;
}

.cart-footer {
    padding: 30px 40px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Checkout Form Inner */
.checkout-form-inner {
    padding: 16px 30px; /* Reduced vertical padding */
    flex: 1;
    overflow-y: auto;
}

.checkout-form-inner h4 {
    color: #ffffff;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.checkout-form-inner .contact-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: var(--border-radius);
    padding: 12px 14px;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

.checkout-form-inner .contact-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.checkout-form-inner .contact-input:focus {
    outline: none;
    border-color: var(--mapped-button-bg, #FF4603);
}

.checkout-back {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    transition: color 0.2s ease;
}

.checkout-back:hover {
    color: #ffffff;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    color: #ffffff;
    transition: border-color 0.2s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--mapped-button-bg, #FF4603);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px; /* Compact padding */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

.payment-option:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.payment-option.selected {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.payment-option strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
}

.payment-option small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Buy / Action Button */
.cart-drawer .btn-buy,
.checkout-form-inner .btn-buy {
    background: var(--mapped-button-bg, #FF4603);
    color: var(--mapped-button-text, #ffffff);
    border: none;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    font-size: calc(var(--font-size-buttons, 0.85rem) * (0.9 / 0.85));
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-drawer .btn-buy:hover,
.checkout-form-inner .btn-buy:hover {
    background: color-mix(in srgb, var(--mapped-button-bg, #FF4603) 85%, #000);
}

.cart-drawer .btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Order Summary */
.order-summary {
    color: rgba(255, 255, 255, 0.5);
}

/* Overrides for inline styles inside cart steps */
.cart-drawer #confirm-title {
    color: #ffffff !important;
}

.cart-drawer #confirm-order-id {
    color: rgba(255, 255, 255, 0.6) !important;
}

.cart-drawer #confirm-transfer-info {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.cart-drawer #confirm-transfer-info p {
    color: #ffffff !important;
}

.cart-drawer #confirm-transfer-info strong {
    color: #ffffff !important;
}

.cart-drawer #confirm-transfer-info span {
    color: rgba(255, 255, 255, 0.6) !important;
}

.cart-drawer p[data-t="Confirmation email sent."] {
    color: rgba(255, 255, 255, 0.6) !important;
}

.cart-drawer p[data-t="Your cart is empty."] {
    color: rgba(255, 255, 255, 0.5) !important;
}

.cart-drawer p[data-t="A 6-digit code will be sent."],
.cart-drawer p[data-t="Code received by email:"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Order Summary Recap overrides for dynamic JS HTML */
.cart-drawer #order-summary-recap div {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}
.cart-drawer #order-summary-recap div > span {
    color: #ffffff !important;
}
.cart-drawer #order-summary-recap div[style*="text-muted"] span,
.cart-drawer #order-summary-recap div[style*="text-muted"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Shop Option Modal */
.product-options-modal {
    position: fixed;
    inset: 0;
    z-index: 1900000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}

.product-options-modal.open {
    display: flex;
}

.options-content {
    background: var(--bg-color, #ffffff);
    color: var(--text-color, #470011);
    padding: 40px 32px 32px 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color, #f2eef0);
    box-shadow: 0 20px 40px rgba(71, 0, 17, 0.12);
    position: relative;
}

.options-content .modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-color, #470011);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-content .modal-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.options-content .modal-close-btn svg {
    width: 20px;
    height: 20px;
}

#opt-product-price {
    color: var(--text-color, #470011) !important;
    font-size: 1.25rem;
    font-weight: 500;
}

.option-group {
    margin-bottom: 24px;
}

.option-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--text-color, #470011);
    font-weight: 600;
}

.option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-choice {
    padding: 8px 16px;
    border: 1px solid rgba(71, 0, 17, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted, #8a6b71);
    background: transparent;
}

.option-choice:hover {
    border-color: rgba(71, 0, 17, 0.4);
    color: var(--text-color, #470011);
}

.option-choice.selected {
    border-color: var(--text-color, #470011);
    background: var(--text-color, #470011);
    color: #ffffff;
}

@media (max-width: 768px) {
    .cart-drawer {
        top: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        right: -100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
    }
    .cart-drawer.open {
        right: 0 !important;
    }
    .cart-drawer .cart-header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
        height: auto !important;
    }
    /* Hide the floating menu burger button when cart is open on mobile to avoid overlapping */
    body:has(.cart-drawer.open) #burger-btn {
        display: none !important;
    }
}

/* --- Informational Banner --- */
.info-banner {
    position: fixed;
    z-index: 1850000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    background: color-mix(in srgb, var(--banner-bg, #ffffff) 50%, transparent); /* 50% opacity by default */
    border-radius: var(--border-radius); /* Rounded all corners for a floating effect */
    color: var(--banner-color, #000);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    pointer-events: auto;
    left: 40px;
    right: 40px;
    
    /* Default variables values */
    --banner-bg: #ffffff;
    --banner-color: #000000;
}

/* Options de thème pour le bandeau d'information (Accueil / Hero) */
.info-banner.state-home[data-banner-bg-home="accent-primary"] {
    --banner-bg: var(--accent-color);
    --banner-color: #ffffff;
}
.info-banner.state-home[data-banner-bg-home="accent-secondary"] {
    --banner-bg: var(--accent-secondary);
    --banner-color: #ffffff;
}
.info-banner.state-home[data-banner-bg-home="accent-tertiary"] {
    --banner-bg: var(--accent-tertiary);
    --banner-color: #ffffff;
}
.info-banner.state-home[data-banner-bg-home="black"] {
    --banner-bg: #000000;
    --banner-color: #ffffff;
}
.info-banner.state-home[data-banner-bg-home="white"] {
    --banner-bg: #ffffff;
    --banner-color: #470011;
}

/* Options de thème pour le bandeau d'information (Pages du site) */
.info-banner.state-section[data-banner-bg-section="accent-primary"] {
    --banner-bg: var(--accent-color);
    --banner-color: #ffffff;
}
.info-banner.state-section[data-banner-bg-section="accent-secondary"] {
    --banner-bg: var(--accent-secondary);
    --banner-color: #ffffff;
}
.info-banner.state-section[data-banner-bg-section="accent-tertiary"] {
    --banner-bg: var(--accent-tertiary);
    --banner-color: #ffffff;
}
.info-banner.state-section[data-banner-bg-section="black"] {
    --banner-bg: #000000;
    --banner-color: #ffffff;
}
.info-banner.state-section[data-banner-bg-section="white"] {
    --banner-bg: #ffffff;
    --banner-color: #470011;
}

/* Etat Accueil : Bas de page, hauteur divisée par 2 */
.info-banner.state-home {
    bottom: 40px;
    height: 11.11vh; /* Divisé par 2 (au lieu de 22.22vh) */
    font-family: var(--font-nav);
    font-size: 1.02rem; /* Aligné sur la taille hors-hero */
    font-weight: 300;
    text-align: center;
    padding: 20px 80px; /* Padding vertical réduit */
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), color-mix(in srgb, var(--banner-bg) 50%, transparent) !important; /* 5% de noir superposé + Transparence conservée à 50% */
    color: var(--banner-color) !important;
}

/* Etat Section : Sous le menu (avec transparence conservée et hauteur +30%) */
.info-banner.state-section {
    top: 85px; /* Floating below the header */
    height: 65px; /* Augmenté de 30% (de 50px à 65px) */
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), color-mix(in srgb, var(--banner-bg) 50%, transparent) !important; /* 5% de noir superposé + Transparence conservée à 50% */
    color: var(--banner-color) !important;
    box-shadow: none; /* Removed halo */
    font-family: var(--font-primary);
    font-size: 1.02rem; /* Augmenté de 20% pour une meilleure lisibilité */
    font-weight: 400;
    padding: 0 50px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Specific scaling for section banner */
.info-banner.state-section .banner-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
}

.info-banner-content {
    max-width: 1200px;
    width: 100%;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between prefix and message */
    
    /* Fade out at left and right edges */
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.banner-prefix {
    font-family: var(--font-nav) !important;
    font-weight: 500 !important; /* Variex Courant / Regular */
    letter-spacing: 0.05em;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.banner-message {
    font-family: var(--font-primary) !important;
    font-weight: 400 !important; /* Outfit 400 */
}

/* relative font size for the message to scale nicely across viewports */
.info-banner.state-home .banner-message {
    font-size: 1.15em !important; /* +15% (Aligné avec le reste du site) */
}

.info-banner.state-section .banner-message {
    font-size: 1.15em !important; /* +15% */
}

.banner-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px; /* Épaisseur harmonisée */
    color: inherit !important;
    stroke: currentColor !important;
}

.blink {
    animation: bannerBlink 1s step-start infinite;
}

/* System Modal (Admin Login) */
.modal-system {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-system.visible {
    opacity: 1;
    pointer-events: auto;
}
.modal-system-content {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.modal-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}
.modal-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5px;
}

@keyframes bannerBlink {
    50% { opacity: 0; }
}

/* Marquee Logic */
.banner-marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.banner-marquee > span {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-right: 50px;
    animation: marquee 20s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.info-banner.state-home .banner-marquee > span {
    animation-duration: 30s; /* Slower on big banner */
}

.info-banner.state-section .info-banner-close {
    right: 20px;
}

.info-banner-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 25px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid color-mix(in srgb, var(--banner-color) 35%, transparent);
    color: var(--banner-color) !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}
.info-banner-close:hover {
    background: color-mix(in srgb, var(--banner-color) 15%, transparent);
    border-color: var(--banner-color);
    transform: translateY(-50%) scale(1.08);
}
.info-banner-close svg, .info-banner-close i {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2.8px !important;
}

.info-banner-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--banner-color, #000);
    color: var(--banner-bg, #fff);
    border: none;
    border-radius: 24px;
    padding: 8px 18px; /* Larger padding for a more prominent button */
    font-family: 'Outfit', var(--font-primary), sans-serif !important;
    font-size: 1.02rem !important; /* Matches banner text size */
    font-weight: 400 !important; /* Outfit 400, matches message weight */
    text-decoration: none !important;
    white-space: nowrap;
    margin-left: 15px;
    margin-right: 55px; /* Space for the absolute close button */
    z-index: 10;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.info-banner-action-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}
.info-banner-action-btn:active {
    transform: scale(0.97);
}

.info-banner.banner-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.info-banner.state-home.banner-hidden { transform: translateY(100px); }
.info-banner.state-section.banner-hidden { transform: translateY(-30px); }

@media (max-width: 768px) {
    .info-banner-action-btn {
        font-size: 0.92rem !important; /* Matches mobile message size */
        padding: 6px 12px !important;
        margin-right: 40px !important;
        margin-left: 8px !important;
        border-radius: 20px !important;
    }
    .info-banner.state-home {
        bottom: 30px;
        left: 30px;
        right: 30px;
        height: 8vh; /* Réduit de 80% (de 40vh à 8vh) */
        font-size: 0.92rem; /* Réduit de 10% */
        padding: 0 45px 0 15px; /* Espace pour le bouton fermer à droite */
    }
    
    .info-banner.state-home .banner-message {
        font-size: 1.15em !important; /* Aligné sur le message hors-hero */
    }
    
    .info-banner .banner-icon {
        width: 22px !important; /* Réduit de 10% (de 24px à 22px) */
        height: 22px !important;
    }
    
    .info-banner.state-home .banner-icon {
        margin-right: 8px;
        stroke-width: 2.2px !important; /* Picto rendu plus épais */
    }
    
    .info-banner-close {
        right: 12px;
        width: 26px;
        height: 26px;
    }
    
    .info-banner-close svg, .info-banner-close i {
        width: 11px !important;
        height: 11px !important;
        stroke-width: 2.8px !important;
    }
    
    .info-banner.state-section {
        top: 80px;
        left: 20px;
        right: 20px;
        font-size: 0.92rem; /* Réduit de 10% */
    }
}

/* =============================================
   DARK MODE — Mode Nuit Premium (Brun chaud)
   ============================================= */

/* Smooth transition on all color-related properties */
body, body * {
    transition-property: background-color, color, border-color, box-shadow, fill, stroke;
    transition-duration: 0.35s;
    transition-timing-function: ease;
}

/* Exclure les éléments qui ont besoin de leurs propres transitions (slides, animations) */
.hero-slide, .hero-slide *, .intro *, .slideshow-container, .slideshow-container * {
    transition-property: opacity !important;
}

/* --- Dark Mode Toggle Button --- */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    display: none !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dark-mode-toggle:hover {
    opacity: 0.7;
    transform: scale(1.1);
}
.dark-mode-toggle svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    stroke-width: 2px;
}

/* --- Dark Mode Root Overrides (Brun chaud) --- */
body.dark-mode {
    --bg-color: #1c1410;
    --text-color: #f2ece8;
    --text-muted: #c0a8a0;
    --text-muted-rgb: 192, 168, 160;
    --border-color: #3a2c24;
    --color-placeholder: #8a7068;
}

/* Cadre intégral — brun visible autour de la homepage */
body.dark-mode::before {
    border-color: #2e2018;
}

/* Background body */
body.dark-mode {
    background-color: #1c1410;
    color: #f2ece8;
}

/* --- Header Banner (scroll) --- */
body.dark-mode .header-bg-banner {
    background-color: #221a14;
}

body.dark-mode .header-bg-banner::after {
    border-bottom-color: #3a2c24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* --- Navigation Items on non-home (scrolled) --- */
@media (min-width: 769px) {
    body.dark-mode.is-not-home-view .nav-item,
    body.dark-mode.is-not-home-view .nav-item i,
    body.dark-mode.is-not-home-view .nav-item svg,
    body.dark-mode.is-not-home-view .nav-item-extra,
    body.dark-mode.is-not-home-view .nav-item-extra svg,
    body.dark-mode.is-not-home-view .nav-extra-divider {
        color: #f2ece8 !important;
        stroke: #f2ece8 !important;
    }
}

/* Hamburger button on non-home */
body.dark-mode.is-not-home-view .hamburger-btn {
    color: #f2ece8;
}

/* --- Mobile Menu Backdrop --- */
@media (max-width: 768px) {
    body.dark-mode .nav-minimal {
        background-color: rgba(28, 20, 16, 0.92) !important;
    }
    body.dark-mode .nav-item {
        color: #f2ece8 !important;
    }
    body.dark-mode .nav-item svg,
    body.dark-mode .nav-item-extra svg {
        stroke: #f2ece8 !important;
    }
    body.dark-mode .hamburger-btn svg {
        stroke: currentColor !important;
    }
}

/* --- Project Cards --- */
body.dark-mode .project-overlay {
    background-color: rgba(28, 20, 16, 0.8);
}
body.dark-mode .project-overlay-name,
body.dark-mode .project-overlay-legend,
body.dark-mode .project-overlay-date,
body.dark-mode .project-overlay-short-desc {
    color: #f2ece8;
}
body.dark-mode .project-image-container {
    background-color: transparent;
    mix-blend-mode: lighten;
}
body.dark-mode .project-image-container img {
    filter: invert(1);
}
body.dark-mode .project-card:hover .project-image-container {
    box-shadow: none;
}

/* --- About Section --- */
body.dark-mode .about-text.collapsed::after {
    display: none;
}
body.dark-mode .about-portrait-wrapper img {
    filter: invert(1);
    mix-blend-mode: screen !important;
}
body.dark-mode .about-portrait-wrapper:hover img {
    filter: invert(1);
}
body.dark-mode .edition-cover img {
    mix-blend-mode: normal !important;
}
body.dark-mode .about-portrait-wrapper::after,
body.dark-mode .edition-cover::after {
    display: none !important;
}

/* --- Bio Category Title --- */
body.dark-mode .bio-category-title {
    border-bottom-color: var(--logo-color);
}

/* --- Edition Cards — textes lisibles --- */
body.dark-mode .edition-card-title {
    color: #f2ece8;
}
body.dark-mode .edition-card-meta {
    color: #c0a8a0;
}
body.dark-mode .edition-spec-tag {
    color: #c0a8a0;
    border-color: #4a3830;
}

/* --- Commission Items --- */
body.dark-mode .commission-name {
    color: #f2ece8;
}
body.dark-mode .commission-meta {
    color: #c0a8a0;
}

/* --- Bio Items --- */
body.dark-mode .bio-item-content {
    color: #f2ece8;
}
body.dark-mode .bio-item-year {
    color: var(--text-color);
}

/* --- Lightbox --- */
body.dark-mode .lightbox-panel {
    background: #221a14;
}
body.dark-mode .lightbox-header {
    border-bottom-color: #3a2c24;
}
body.dark-mode .lightbox-title {
    color: #f2ece8;
}
body.dark-mode .lightbox-close {
    color: #c0a8a0;
}
body.dark-mode .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f2ece8;
}
body.dark-mode .lightbox-scroll::-webkit-scrollbar-track { background: #271e18; }
body.dark-mode .lightbox-scroll::-webkit-scrollbar-thumb { background: #4a3830; }
body.dark-mode .lightbox-no-images { color: #c0a8a0; }

body.dark-mode .lightbox-controls {
    background-color: rgba(34, 26, 20, 0.75);
    color: #f2ece8;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .lightbox-text-trigger,
body.dark-mode .lightbox-captions-trigger {
    background-color: #f2ece8;
    color: #1c1410;
}
body.dark-mode .lightbox-text-trigger:hover,
body.dark-mode .lightbox-captions-trigger:hover {
    background-color: #e0d8d0;
}
body.dark-mode .lightbox-text-panel {
    background-color: #221a14;
    border-left-color: #3a2c24;
    box-shadow: none; /* Prevent bleeding in dark mode when closed */
}
body.dark-mode .lightbox-text-panel.open {
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.35); /* Apply shadow only when open */
}
body.dark-mode .lightbox-text-header {
    border-bottom-color: #3a2c24;
}
body.dark-mode .lightbox-text-title {
    color: #f2ece8;
}
body.dark-mode .lightbox-text-close {
    color: #c0a8a0;
}
body.dark-mode .lightbox-text-close:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f2ece8;
}
body.dark-mode .lightbox-text-project-title {
    color: #f2ece8;
}
body.dark-mode .lightbox-text-project-legend {
    color: #c0a8a0;
    border-bottom-color: #3a2c24;
}
body.dark-mode .lightbox-text-description {
    color: #e0d8d0;
}

/* --- Contact Section --- */
body.dark-mode .contact-input {
    border-bottom-color: #f2ece8;
    color: #f2ece8;
}
body.dark-mode .contact-input:focus {
    border-bottom-color: var(--accent-color);
}
body.dark-mode .contact-submit {
    background: #f2ece8;
    color: #1c1410;
    border-color: #f2ece8;
}
body.dark-mode .contact-submit:not(:disabled):hover {
    background: #ddd4d0;
}
body.dark-mode .contact-button-secondary {
    background: transparent;
    color: #f2ece8;
    border-color: #f2ece8;
}
body.dark-mode .contact-button-secondary:hover {
    background: rgba(242, 236, 232, 0.1);
    border-color: #ddd4d0;
}

/* --- Product Cards (Shop) --- */
body.dark-mode .product-card {
    background: transparent;
}
body.dark-mode .product-img-container {
    background: transparent;
    mix-blend-mode: lighten;
}
body.dark-mode .product-img-container img {
    filter: invert(1);
}

/* --- Carousel Items (Shop) --- */
body.dark-mode .shop-carousel-img-link {
    mix-blend-mode: lighten;
}
body.dark-mode .shop-carousel-img {
    filter: invert(1);
}

/* --- Edition Covers Placeholder --- */
body.dark-mode .edition-card-cover-placeholder {
    background: #271e18;
}

/* --- Switch Toggle --- */
body.dark-mode .slider {
    background-color: #4a3830;
}

/* --- Info Banner (Home) --- */
body.dark-mode .info-banner {
    background: rgba(28, 20, 16, 0.65);
    color: #f2ece8;
    --banner-bg: #1c1410;
    --banner-color: #f2ece8;
}
body.dark-mode .info-banner.state-home {
    background: rgba(28, 20, 16, 0.65);
}

/* --- System Modal (Admin Login) --- */
body.dark-mode .modal-system-content {
    background: #271e18;
    color: #f2ece8;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- Parcours Timeline --- */
body.dark-mode .parcours-timeline {
    border-left-color: #3a2c24;
}

/* --- Shop Carousel Text --- */
body.dark-mode .shop-carousel-project,
body.dark-mode .shop-carousel-title {
    color: #f2ece8;
}

/* =============================================
   LIGHTBOX INTRO CARD & PLAY BUTTON
   ============================================= */
.lightbox-intro-item {
    width: 410px; /* Reduced by 10% (from 456px) */
    max-width: 85vw;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    padding: 40px; /* Balanced padding since header is in flow */
    box-sizing: border-box;
    color: var(--text-color);
    opacity: 1;
    transform: translateX(0) translateY(20px) !important;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    scroll-snap-align: center;
    z-index: 10;
}

.lightbox-intro-item.fade-out {
    opacity: 0;
    transform: translateX(-40px) translateY(20px) !important;
    pointer-events: none;
}

.lightbox-intro-title {
    font-size: 1.6rem;
    font-family: var(--font-nav); /* Varix courant */
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 400; /* non gras (courant) */
}

.lightbox-intro-legend {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-primary); /* typo courant */
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.lightbox-intro-description {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-color);
    font-family: var(--font-primary);
    margin-bottom: 30px;
    max-height: 50vh;
    overflow-y: scroll !important;
    padding-right: 12px;
    white-space: pre-wrap;
}

/* Force standard scrollbar visibility on Safari 18+ and Firefox (bypassing global scrollbar-width: none) */
.project-lightbox .lightbox-intro-description {
    scrollbar-width: thin !important;
    scrollbar-color: color-mix(in srgb, var(--text-muted) 30%, transparent) transparent !important;
}

/* Highly specific rules to override global scrollbar transparency */
.project-lightbox .lightbox-intro-description::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
    display: block !important;
}
.project-lightbox .lightbox-intro-description::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--text-muted) 5%, transparent) !important;
    border-radius: 4px !important;
    background-clip: padding-box !important;
    border-left: 3px solid transparent !important;
}
.project-lightbox .lightbox-intro-description::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--text-muted) 30%, transparent) !important;
    border-radius: 4px !important;
    background-clip: padding-box !important;
    border-left: 3px solid transparent !important;
    transition: background-color 0.2s ease !important;
}
.project-lightbox .lightbox-intro-description:hover::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--text-muted) 55%, transparent) !important;
}
.project-lightbox .lightbox-intro-description::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in srgb, var(--text-muted) 80%, transparent) !important;
}

/* The play button inside the intro text */
.btn-play-project {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-color);
    color: #fff;
    touch-action: manipulation;
    border: none;
    padding: 12px 24px;
    font-size: var(--font-size-buttons, 0.85rem);
    font-weight: 500; /* Standard medium weight */
    font-family: var(--font-nav); /* Varix */
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(71, 0, 17, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-play-project:hover {
    background: #610017;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(71, 0, 17, 0.25);
}

.btn-play-project svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Dark mode overrides for intro card */
body.dark-mode .lightbox-intro-item {
    color: #f2ece8;
}
body.dark-mode .lightbox-intro-title {
    color: #f2ece8;
}
body.dark-mode .lightbox-intro-description {
    color: #f2ece8;
}
body.dark-mode .btn-play-project {
    background: #f2ece8;
    color: #1c1410;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
body.dark-mode .btn-play-project:hover {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Text trigger highlighted state when starting slideshow */
.lightbox-text-trigger.highlight {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1.05);
}

.lightbox-play-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the spacebar hint under the play button */
    align-self: flex-start; /* Left-align the button on desktop */
    gap: 8px;
    margin-top: 0;
}

.spacebar-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.75;
    font-family: var(--font-primary);
    margin-left: 0; /* Centered */
}

body.dark-mode .spacebar-hint {
    color: #c0a8a0;
}

/* Hide burger menu button when lightbox is open */
body.lightbox-open .hamburger-btn {
    display: none !important;
}

/* Rotation Hint for Mobile Portrait */
.lightbox-rotation-hint {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(71, 0, 17, 0.08); /* Bordeaux-brown transparent background */
    color: var(--text-color);
    padding: 10px 24px;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    border-bottom: 1px solid rgba(71, 0, 17, 0.12);
    z-index: 1002;
    position: relative;
}

.rotate-phone-icon {
    width: 16px;
    height: 16px;
    animation: rotatePhone 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes rotatePhone {
    0%, 100% { transform: rotate(0deg); }
    40%, 60% { transform: rotate(90deg); }
}

.close-hint-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-hint-btn:hover {
    background-color: rgba(71, 0, 17, 0.1);
}

.close-hint-btn svg {
    width: 14px;
    height: 14px;
}

/* Dark mode styles for rotation hint */
body.dark-mode .lightbox-rotation-hint {
    background-color: rgba(242, 236, 232, 0.08);
    color: #f2ece8;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .close-hint-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Show only on mobile screen widths in portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    body.lightbox-open .lightbox-rotation-hint:not(.dismissed) {
        display: flex;
    }
}

/* Disable scroll snapping on desktop to allow precise programmatic scroll capping */
@media (min-width: 769px) {
    .lightbox-scroll {
        scroll-snap-type: none !important;
    }
    .lightbox-intro-item,
    .lightbox-img-item {
        scroll-snap-align: none !important;
    }
}

/* Mobile intro logo landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .logo-container.intro {
        width: 65vw !important;
    }
}

/* --- Trial: Section Watermark Overlays --- */
.page-section {
    position: relative;
    z-index: 1;
}

.page-section .section-title-main {
    display: none; /* Hide default section titles */
}

.section-watermark {
    position: absolute;
    top: -50px;
    left: 8vw;
    font-family: var(--font-nav), sans-serif;
    font-weight: normal; /* Regular Variex */
    font-size: min(70vw, 800px);
    line-height: 0.7;
    color: var(--accent-secondary, #FF4603); /* Couleur d'accent secondaire (orange/corail) */
    opacity: 0.2; /* Transparent overlay at 20% */
    z-index: 5; /* Foreground z-index above images (z-index 1) but below text elements (z-index 11) */
    mix-blend-mode: normal;
    pointer-events: none; /* Make clicks pass through to card elements */
    user-select: none;
}

/* Ensure watermarks (z-index 2) layer on top of section content */
.grid-gallery,
.about-content,
.instagram-carousel-container,
.editions-grid-front,
.shop-carousel-wrapper,
.shop-carousel-double-mobile {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .section-watermark {
        top: -30px;
        left: 5vw;
        font-size: min(80vw, 400px);
    }
}

/* Shop watermark language dynamic content */
#watermark-shop::before {
    content: "B";
}

body[data-lang="en"] #watermark-shop::before {
    content: "S";
}

/* Force sub-sections, text wrappers and action elements to layer on top of section watermark overlay */
.bio-sub-section,
.contact-column,
.shop-carousel-wrapper,
.shop-carousel-double-mobile,
.bio-sub-title,
.contact-title,
.shop-carousel-subtitle,
.about-text-container,
.contact-layout,
.shop-intro-container,
.page-section button,
.page-section .contact-submit,
.page-section .btn-shop-picker,
.page-section .btn-read-more,
.page-section .btn-buy,
.page-section .carousel-nav {
    position: relative;
    z-index: 11;
}

/* --- Table Lumineuse / Lightbox photo selection --- */
.lightbox-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    border: 1px solid rgba(var(--text-muted-rgb), 0.4) !important; /* Contour plus fin marron clair */
    background-color: transparent !important; /* Bouton évidé */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-muted) !important; /* + marron clair */
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: absolute !important;
    right: -42px !important; /* 10px to the right of the image (outside) */
    bottom: -42px !important; /* 10px below the bottom edge of the image (outside) */
    top: auto !important;
    z-index: 1002 !important;
}

@media (max-width: 768px) {
    .lightbox-select-btn {
        right: 0 !important;
        top: -45px !important;
        bottom: auto !important;
        background-color: transparent !important;
        border: 1px solid rgba(var(--text-muted-rgb), 0.4) !important;
        color: var(--text-muted) !important;
    }
    
    body.dark-mode .lightbox-select-btn {
        background-color: transparent !important;
        border-color: rgba(var(--text-muted-rgb), 0.3) !important;
        color: var(--text-muted) !important;
    }
    
    .carousel-nav {
        display: none !important;
    }
    
    .slideshow-container {
        top: 20px !important;
        left: 20px !important;
        right: 20px !important;
        bottom: 20px !important;
        border-radius: 24px !important;
    }
    
    .shop-carousel-outer {
        margin-bottom: 10px !important;
    }
    
    .shop-carousel-description {
        margin-top: 15px !important;
    }
    
    .btn-shop-picker {
        min-width: unset !important;
        width: calc(100% - 20px) !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        display: inline-flex !important;
        padding: 0 20px !important;
        gap: 8px !important;
    }
    
    .shop-carousel-wrapper {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 20px 20px 20px !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .shop-carousel {
        gap: 20px !important;
    }
    
    .shop-carousel-item {
        flex: 0 0 180px !important;
        width: 180px !important;
        min-width: 180px !important;
        scroll-snap-align: start !important;
    }

    /* Enlarge modal height to 95vh on mobile to show even more content */
    .shop-picker-panel {
        height: 95% !important;
        max-height: 95vh !important;
        width: 95% !important;
    }
    
    /* Header padding and gap reduction */
    .shop-picker-header {
        padding: 15px 20px 10px 20px !important;
        gap: 10px !important;
    }
    
    /* Tab buttons size reduction and spacing */
    .lightbox-switcher {
        padding: 3px !important;
        border-radius: 8px !important;
    }
    .lightbox-tab-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
    }
    .lightbox-tab-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Dynamic actions bar on mobile: side-by-side buttons */
    #shop-picker-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 8px 15px !important;
        justify-content: space-between !important;
    }
    #shop-picker-actions .shop-picker-action-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        letter-spacing: 0.02em !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }
    #shop-picker-actions .shop-picker-action-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Scroll view optimizations */
    .shop-picker-scroll {
        padding: 15px !important;
        gap: 20px !important;
    }
    
    /* Group items layout */
    .shop-picker-group {
        gap: 10px !important;
    }
    .shop-picker-group-title {
        font-size: 0.8rem !important;
        padding-bottom: 6px !important;
    }
    
    /* Images grid: 3 columns on mobile, smaller gap */
    .shop-picker-images {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
        gap: 10px !important;
    }
    
    /* Image wrappers and titles */
    .shop-picker-img-wrapper {
        height: 75px !important;
    }
    .shop-picker-item-title {
        font-size: 0.62rem !important;
        margin-top: 4px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Checkbox size adjustments for mobile */
    .shop-picker-checkbox {
        width: 20px !important;
        height: 20px !important;
        top: 4px !important;
        left: 4px !important;
    }
    .shop-picker-checkbox svg {
        width: 10px !important;
        height: 10px !important;
    }
    
    /* Hide hover effects that don't apply on mobile */
    .shop-picker-hover-view {
        display: none !important;
    }
}

/* Custom instant tooltip */
.lightbox-select-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 145%; /* Raised higher to avoid overlap with bottom of images */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(242, 236, 232, 0.88); /* Translucent light cream background matching button theme */
    backdrop-filter: blur(4px); /* Lets what is behind show through */
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-color); /* Bordeaux typography from button style */
    padding: 8px 14px; /* Thicker/larger padding */
    border-radius: 20px; /* Rounded pill style like the button */
    font-size: 0.75rem; /* Typo from button theme */
    font-family: var(--font-primary), sans-serif;
    font-weight: 500; /* Thicker font weight */
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, transform 0.12s ease;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--text-muted-rgb), 0.35); /* Léger cadre marron, très léger */
    z-index: 10000;
}
.lightbox-select-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.lightbox-select-btn::before {
    content: "";
    position: absolute;
    bottom: 132%; /* Raised in sync with the tooltip bubble */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(242, 236, 232, 0.88) transparent transparent transparent; /* Translucent arrow matching tooltip background */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, transform 0.12s ease;
    pointer-events: none;
    z-index: 9999;
}
.lightbox-select-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.lightbox-select-btn svg {
    color: var(--text-muted) !important;
    stroke: var(--text-muted) !important;
    stroke-width: 1.5px !important; /* Légèrement épaissi */
    width: 18px !important;
    height: 18px !important;
}
.lightbox-select-btn:hover {
    transform: scale(1.05);
    background-color: rgba(var(--text-muted-rgb), 0.1) !important;
    border-color: var(--text-muted) !important;
    z-index: 10010 !important; /* Raise button stack on hover */
}
.lightbox-select-btn.selected {
    background-color: var(--text-muted) !important; /* Marron clair */
    border-color: var(--text-muted) !important;
    color: var(--bg-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}
.lightbox-select-btn.selected svg {
    color: var(--bg-color) !important;
    stroke: var(--bg-color) !important;
    stroke-width: 2px !important; /* Coche blanche */
}
.lightbox-select-btn.selected:hover {
    background-color: var(--text-color) !important; /* Devient marron foncé au survol */
    border-color: var(--text-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

body.dark-mode .lightbox-select-btn {
    border-color: rgba(var(--text-muted-rgb), 0.3) !important;
    background-color: transparent !important;
}
body.dark-mode .lightbox-select-btn svg {
    color: var(--text-color) !important;
    stroke: var(--text-color) !important;
}
body.dark-mode .lightbox-select-btn:hover {
    background-color: rgba(var(--text-muted-rgb), 0.1) !important;
    border-color: rgba(var(--text-muted-rgb), 0.5) !important;
}
body.dark-mode .lightbox-select-btn::after {
    background: rgba(34, 26, 20, 0.88); /* Translucent dark brown in dark mode */
    color: var(--text-color); /* Light beige text in dark mode */
    border: 1px solid rgba(var(--text-muted-rgb), 0.35);
}
body.dark-mode .lightbox-select-btn::before {
    border-color: rgba(34, 26, 20, 0.88) transparent transparent transparent;
}

/* --- Centered Modal for Table Lumineuse (90% width / 90% height) --- */
.shop-picker-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000000;
    align-items: center;
    justify-content: center;
}
.shop-picker-modal.open {
    display: flex;
}
.shop-picker-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05); /* Non assombri (très léger voile) */
    backdrop-filter: blur(4px); /* Légèrement flouté */
    -webkit-backdrop-filter: blur(4px);
}
.shop-picker-panel {
    position: relative;
    z-index: 1;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 90vh;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.8); /* Noir à 80% d'opacité */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    animation: zoomInModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomInModal {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.shop-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-picker-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.shop-picker-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.shop-picker-action-btn:active {
    transform: translateY(0);
    box-shadow: none;
}
.lightbox-switcher {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lightbox-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}
.lightbox-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.lightbox-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.shop-picker-invite-banner {
    padding: 14px 20px;
    background: rgba(255, 70, 3, 0.08);
    border-left: 3px solid var(--accent-secondary, #FF4603);
    margin: 15px 30px 10px 30px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.shop-picker-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 10px 30px 15px;
    background: transparent;
    border: none;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}
.shop-picker-hint svg {
    color: var(--accent-secondary, #FF4603);
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.shop-picker-filter-btn,
.shop-picker-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-nav), sans-serif;
    font-size: 0.9rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    height: 48px;
    outline: none;
}

.shop-picker-filter-btn {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.shop-picker-filter-btn:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

.shop-picker-add-to-cart-btn {
    background: var(--accent-secondary, #FF4603);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 10px 25px rgba(255, 70, 3, 0.25);
}

.shop-picker-add-to-cart-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 70, 3, 0.35);
    background: color-mix(in srgb, var(--accent-secondary, #FF4603) 85%, #000);
}
.shop-picker-title {
    font-family: var(--font-nav), sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin: 0;
    color: #ffffff !important;
}
.shop-picker-close,
.shop-picker-clear-header-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.shop-picker-close:hover,
.shop-picker-clear-header-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.08);
}
.shop-picker-close svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Empty state styling inside modal */
.shop-picker-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}
.shop-picker-empty-icon {
    margin-bottom: 20px;
    color: #ffffff !important; /* Couleur blanche pour l'icône */
    width: 56px !important;
    height: 56px !important;
    stroke-width: 1px !important; /* Lignes plus fines pour le picto */
}
svg.shop-picker-empty-icon {
    width: 56px !important;
    height: 56px !important;
    stroke-width: 1px !important;
}
.shop-picker-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}
.shop-picker-empty-text {
    font-size: 0.9rem;
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}
.shop-picker-empty-text strong {
    color: var(--accent-secondary, #FF4603) !important; /* Couleur orange secondaire */
}
.shop-picker-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 24px;
    background: var(--accent-secondary, #FF4603); /* Couleur orange secondaire */
    color: #ffffff !important;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}
.shop-picker-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-secondary, #FF4603) 70%, transparent);
}

/* --- Split Cart Items Layout --- */
.cart-item-split {
    display: flex;
    gap: 15px;
    width: 100%;
}

.cart-item-photo-col {
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
    box-sizing: border-box;
}

.cart-item-photo-col.has-photo {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.04);
}

.cart-item-photo-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #1a1a1a; /* Fond opaque solide */
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.cart-item-photo-remove-btn:hover {
    background: var(--accent-secondary, #FF4603);
    border-color: var(--accent-secondary, #FF4603);
    color: #ffffff;
    transform: scale(1.08);
}
.cart-item-photo-remove-btn svg {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 2.5;
}

.cart-item-photo-img-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-photo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-photo-title-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 2px 0;
}

.cart-item-photo-placeholder-text {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 2px;
    line-height: 1.2;
}

.cart-item-photo-action-btn {
    font-size: 0.65rem;
    padding: 4px 10px;
    background: var(--accent-secondary, #FF4603);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}
.cart-item-photo-action-btn:hover {
    background: color-mix(in srgb, var(--accent-secondary, #FF4603) 85%, #000);
}

.cart-item-photo-links {
    display: flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.cart-item-photo-link {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px;
    transition: color 0.2s ease;
}
.cart-item-photo-link:hover {
    color: #ffffff;
}
.cart-item-photo-link.remove-link {
    color: rgba(255, 99, 71, 0.8);
}
.cart-item-photo-link.remove-link:hover {
    color: rgb(255, 99, 71);
}

.cart-item-prestation-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Empêche le débordement flex */
}

.cart-item-prestation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cart-item-prestation-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.cart-item-prestation-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item-prestation-btn {
    font-size: 0.68rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.cart-item-prestation-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.cart-item-prestation-price {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 6px;
}

/* --- Hover View Overlay in Table Lumineuse --- */
.shop-picker-hover-view {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none; /* Let clicks pass to wrapper */
}
.shop-picker-img-wrapper:hover .shop-picker-hover-view {
    opacity: 1;
}
.shop-picker-hover-view svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.2;
    color: #ffffff;
}
.shop-picker-hover-view span {
    font-size: 0.72rem;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Centered Large Image Preview Modal --- */
.shop-picker-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 3100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.shop-picker-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
}
.shop-picker-preview-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: shopPickerModalFade 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.shop-picker-preview-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.shop-picker-preview-close:hover {
    background: #fff;
    color: #000;
}
.shop-picker-preview-img-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 70vh;
}
.shop-picker-preview-img-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
.shop-picker-preview-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--accent-secondary, #FF4603);
    color: #fff !important;
    border: none;
    border-radius: 24px;
    font-family: var(--font-nav), sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(255, 70, 3, 0.25);
    outline: none;
}
.shop-picker-preview-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 70, 3, 0.35);
    background: color-mix(in srgb, var(--accent-secondary, #FF4603) 85%, #000);
}

/* --- Rich Multi-Column Static Footer --- */
.site-footer {
    background-color: var(--color-footer-bg, color-mix(in srgb, var(--accent-color, #FF03BC) 35%, #0e000a));
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 8vw 0 8vw;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 0.6fr 1fr 1fr 1fr 1.4fr;
    gap: 24px;
    margin-bottom: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.footer-logo-svg {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    max-width: 400px;
    display: block;
}

.footer-logo-svg path {
    fill: #ffffff !important;
}

.footer-col-title {
    font-family: var(--font-nav), sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 6px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--accent-tertiary, #FFB803);
}

.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-info-item i,
.footer-info-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-tertiary, #FFB803) !important;
    flex-shrink: 0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list .footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links-list .footer-link:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

.footer-network-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.btn-footer-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: var(--border-radius, 8px);
    text-decoration: none;
    font-size: calc(var(--font-size-buttons, 0.85rem) * (0.9 / 0.85));
    font-weight: 500;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
    transition: all 0.25s ease;
    margin-bottom: 15px;
}

.btn-footer-instagram:hover {
    background-color: var(--accent-tertiary, #FFB803);
    border-color: var(--accent-tertiary, #FFB803);
}

.footer-newsletter-wrap {
    width: 100%;
    max-width: 320px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.footer-newsletter-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--border-radius, 8px);
    font-family: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.footer-newsletter-input:focus {
    border-color: var(--accent-tertiary, #FFB803);
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-footer-subscribe {
    background-color: var(--accent-tertiary, #FFB803);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--border-radius, 8px);
    font-family: inherit;
    font-size: var(--font-size-buttons, 0.85rem);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-footer-subscribe:hover {
    background-color: color-mix(in srgb, var(--accent-tertiary, #FFB803) 85%, #000);
}

.footer-consent-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-consent-checkbox {
    margin-top: 3px;
    accent-color: var(--accent-tertiary, #FFB803);
    cursor: pointer;
}

.footer-consent-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0 0 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 25px 0;
}

@media (min-width: 768px) {
    main {
        padding-bottom: 0 !important;
    }
}

/* --- Instagram Carousel Section --- */
.instagram-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.instagram-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.instagram-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.instagram-post-card {
    flex: 0 0 calc(20% - 16px);
    scroll-snap-align: start;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .instagram-post-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .instagram-post-card {
        flex: 0 0 280px;
    }
    .instagram-carousel-container {
        padding: 0 15px;
    }
}

.insta-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background-color: #111111;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.instagram-post-card:hover .insta-image-wrapper {
    transform: translateY(-5px);
}

.insta-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.instagram-post-card:hover img {
    transform: scale(1.08);
}

.insta-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.82);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.instagram-post-card:hover .insta-hover-overlay {
    opacity: 1;
}

.insta-hover-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.insta-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.insta-stat-item svg,
.insta-stat-item i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.insta-hover-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

/* Nav Buttons */
.insta-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    outline: none;
}

.insta-nav-btn:hover {
    background-color: var(--accent-tertiary, #FFB803);
    border-color: var(--accent-tertiary, #FFB803);
    color: #0e000a;
}

.insta-nav-btn.prev {
    left: 10px;
}

.insta-nav-btn.next {
    right: 10px;
}

@media (max-width: 768px) {
    .insta-nav-btn {
        display: none;
    }
}

.instagram-footer-link-wrap {
    text-align: center;
    margin-top: 20px;
}

.btn-instagram-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-instagram-profile i,
.btn-instagram-profile svg {
    width: 18px;
    height: 18px;
}

.btn-instagram-profile:hover {
    background-color: var(--accent-tertiary, #FFB803);
    border-color: var(--accent-tertiary, #FFB803);
    color: #0e000a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 184, 3, 0.3);
}

/* --- News Section & Grid --- */
.news-block-header {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 20px;
    padding: 0 40px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-block-title {
    font-family: var(--font-title), sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto 60px;
    padding: 0 40px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    .news-block-header {
        padding: 0 20px;
    }
}

.news-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-image.placeholder-image {
    color: var(--text-muted);
}

.news-card-image.placeholder-image svg,
.news-card-image.placeholder-image i {
    width: 48px;
    height: 48px;
    stroke-width: 1;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    font-size: var(--font-size-dates, 0.8rem);
    font-weight: 600;
    color: var(--accent-tertiary, #FFB803);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.news-card-title {
    font-family: var(--font-title), sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 12px;
    line-height: 1.3;
}

.news-card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for Editions */
@media (max-width: 768px) {
    #editions-list-front .edition-card {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    #editions-list-front .edition-cover {
        width: 100% !important;
        max-width: 240px !important;
    }
    #editions-list-front .edition-info {
        width: 100% !important;
    }
}

.edition-desc-wrapper.collapsed::after {
    display: none;
}
.edition-desc-wrapper.expanded::after {
    display: none;
}

/* --- Sticky Lightbox Button --- */
#sticky-lightbox-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-color, #fff);
    color: var(--text-color, #470011);
    border: 1px solid var(--text-color, #470011);
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(71, 0, 17, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-nav), sans-serif;
    font-weight: 300 !important; /* Variex fin */
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    z-index: 2100; /* Float above the lightbox (z-index 2000) and other layers */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#sticky-lightbox-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#sticky-lightbox-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(71, 0, 17, 0.2);
    background: var(--text-color, #470011);
    color: var(--bg-color, #fff);
}

#sticky-lightbox-btn i {
    width: 14px;
    height: 14px;
}

/* --- Cart Lightbox Info Banner (Always light-on-dark for the premium cart drawer) --- */
.cart-lightbox-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 40px 20px 40px; /* Aligned with 40px drawer padding */
    padding: 12px 16px; /* Matches standard button padding */
    width: auto; /* Fits inside margins */
    background: rgba(255, 255, 255, 0.05); /* Light grey tint on dark background */
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.76rem; /* Compact size */
    font-family: 'Outfit', sans-serif; /* Clean font */
    font-weight: 400 !important;
    text-transform: none;
    letter-spacing: 0.05em; /* Premium layout */
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box; /* Includes border and padding */
    white-space: nowrap; /* Force single line */
    overflow: hidden;
}

.cart-lightbox-banner:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Style the SVG/Icon dynamically once replaced by Feather */
.cart-lightbox-banner svg,
.cart-lightbox-banner i {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* --- Slideshow Active (Cinematic Mode) --- */
.project-lightbox.slideshow-active:not(.show-controls) .lightbox-header {
    border-bottom: 1px solid transparent !important;
}

.project-lightbox.slideshow-active:not(.show-controls) .lightbox-legend,
.project-lightbox.slideshow-active:not(.show-controls) .lightbox-close,
.project-lightbox.slideshow-active:not(.show-controls) .lightbox-text-trigger,
.project-lightbox.slideshow-active:not(.show-controls) .lightbox-captions-trigger {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.project-lightbox.slideshow-active:not(.show-controls) .lightbox-title {
    opacity: 0.35 !important;
    visibility: visible !important;
    font-weight: 300 !important; /* Variex fin */
}

/* --- Modal Scrollbar Configurations & Auto-Hide Styles --- */

/* 1. Base rule: Hide scrollbars by default */
.project-lightbox, .project-lightbox *,
.shop-picker-modal, .shop-picker-modal *,
.product-options-modal, .product-options-modal *,
.modal-system, .modal-system *,
.cart-drawer, .cart-drawer *,
.lightbox-text-panel, .lightbox-text-panel * {
    scrollbar-width: none !important; /* Firefox: hide by default */
    transition: scrollbar-color 0.3s ease;
}

/* 2. Show scrollbar on Firefox when scrolling */
.project-lightbox.is-scrolling, .project-lightbox *.is-scrolling,
.shop-picker-modal.is-scrolling, .shop-picker-modal *.is-scrolling,
.product-options-modal.is-scrolling, .product-options-modal *.is-scrolling,
.modal-system.is-scrolling, .modal-system *.is-scrolling,
.cart-drawer.is-scrolling, .cart-drawer *.is-scrolling,
.lightbox-text-panel.is-scrolling, .lightbox-text-panel *.is-scrolling {
    scrollbar-width: thin !important; /* Firefox: show thin scrollbar */
}

/* 3. Firefox scrollbar colors matching modal color theme */
/* Dark modals (Firefox): Dark scrollbars */
.project-lightbox.is-scrolling,
.shop-picker-modal.is-scrolling,
.cart-drawer.is-scrolling,
.lightbox-text-panel.is-scrolling,
body.dark-mode .product-options-modal.is-scrolling,
body.dark-mode .modal-system.is-scrolling {
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent !important;
}
/* Light modals (Firefox): Light scrollbars */
.product-options-modal.is-scrolling,
.modal-system.is-scrolling {
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent !important;
}

/* 4. Custom scrollbar for Chrome/Safari/Webkit */
.project-lightbox::-webkit-scrollbar, .project-lightbox *::-webkit-scrollbar,
.shop-picker-modal::-webkit-scrollbar, .shop-picker-modal *::-webkit-scrollbar,
.product-options-modal::-webkit-scrollbar, .product-options-modal *::-webkit-scrollbar,
.modal-system::-webkit-scrollbar, .modal-system *::-webkit-scrollbar,
.cart-drawer::-webkit-scrollbar, .cart-drawer *::-webkit-scrollbar,
.lightbox-text-panel::-webkit-scrollbar, .lightbox-text-panel *::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    display: block !important;
}

.project-lightbox::-webkit-scrollbar-track, .project-lightbox *::-webkit-scrollbar-track,
.shop-picker-modal::-webkit-scrollbar-track, .shop-picker-modal *::-webkit-scrollbar-track,
.product-options-modal::-webkit-scrollbar-track, .product-options-modal *::-webkit-scrollbar-track,
.modal-system::-webkit-scrollbar-track, .modal-system *::-webkit-scrollbar-track,
.cart-drawer::-webkit-scrollbar-track, .cart-drawer *::-webkit-scrollbar-track,
.lightbox-text-panel::-webkit-scrollbar-track, .lightbox-text-panel *::-webkit-scrollbar-track {
    background: transparent !important; /* Always transparent track (removes white bands) */
}

/* 5. Custom scrollbar thumb defaults (invisible by default) */
.project-lightbox::-webkit-scrollbar-thumb, .project-lightbox *::-webkit-scrollbar-thumb,
.shop-picker-modal::-webkit-scrollbar-thumb, .shop-picker-modal *::-webkit-scrollbar-thumb,
.product-options-modal::-webkit-scrollbar-thumb, .product-options-modal *::-webkit-scrollbar-thumb,
.modal-system::-webkit-scrollbar-thumb, .modal-system *::-webkit-scrollbar-thumb,
.cart-drawer::-webkit-scrollbar-thumb, .cart-drawer *::-webkit-scrollbar-thumb,
.lightbox-text-panel::-webkit-scrollbar-thumb, .lightbox-text-panel *::-webkit-scrollbar-thumb {
    background-color: transparent !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
}

/* 6. Dark modals: Scrollbar thumb when active is DARK (black/grey) */
.project-lightbox.is-scrolling::-webkit-scrollbar-thumb, .project-lightbox *.is-scrolling::-webkit-scrollbar-thumb,
.shop-picker-modal.is-scrolling::-webkit-scrollbar-thumb, .shop-picker-modal *.is-scrolling::-webkit-scrollbar-thumb,
.cart-drawer.is-scrolling::-webkit-scrollbar-thumb, .cart-drawer *.is-scrolling::-webkit-scrollbar-thumb,
.lightbox-text-panel.is-scrolling::-webkit-scrollbar-thumb, .lightbox-text-panel *.is-scrolling::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.45) !important;
}
.project-lightbox.is-scrolling::-webkit-scrollbar-thumb:hover, .project-lightbox *.is-scrolling::-webkit-scrollbar-thumb:hover,
.shop-picker-modal.is-scrolling::-webkit-scrollbar-thumb:hover, .shop-picker-modal *.is-scrolling::-webkit-scrollbar-thumb:hover,
.cart-drawer.is-scrolling::-webkit-scrollbar-thumb:hover, .cart-drawer *.is-scrolling::-webkit-scrollbar-thumb:hover,
.lightbox-text-panel.is-scrolling::-webkit-scrollbar-thumb:hover, .lightbox-text-panel *.is-scrolling::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.65) !important;
}

/* 7. Light modals: Scrollbar thumb when active is LIGHT (white) */
.product-options-modal.is-scrolling::-webkit-scrollbar-thumb, .product-options-modal *.is-scrolling::-webkit-scrollbar-thumb,
.modal-system.is-scrolling::-webkit-scrollbar-thumb, .modal-system *.is-scrolling::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.45) !important;
}
.product-options-modal.is-scrolling::-webkit-scrollbar-thumb:hover, .product-options-modal *.is-scrolling::-webkit-scrollbar-thumb:hover,
.modal-system.is-scrolling::-webkit-scrollbar-thumb:hover, .modal-system *.is-scrolling::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.65) !important;
}

/* Dark mode override for light modals (turns scrollbar to dark style) */
body.dark-mode .product-options-modal.is-scrolling::-webkit-scrollbar-thumb,
body.dark-mode .product-options-modal *.is-scrolling::-webkit-scrollbar-thumb,
body.dark-mode .modal-system.is-scrolling::-webkit-scrollbar-thumb,
body.dark-mode .modal-system *.is-scrolling::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/* Prestation Selector choices */
.prestation-choice-item {
    transition: all 0.25s ease !important;
}
.prestation-choice-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(4px);
}
.prestation-choice-item.current:hover {
    border-color: var(--accent-secondary, #FF4603) !important;
    transform: none;
}

/* --- Mobile Project Overlay & Info Button --- */
.mobile-info-trigger,
.mobile-close-btn,
.project-action-btn {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    /* Standalone Info Trigger Button (frosted white glass as per user's "plutot blanc" feedback) */
    .mobile-info-trigger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.72) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        color: var(--text-color, #470011) !important;
        cursor: pointer;
        padding: 0;
        z-index: 9;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }
    
    /* Expand touch area for easier tapping on mobile */
    .mobile-info-trigger::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
    
    .mobile-info-trigger:active {
        transform: scale(0.92);
        background-color: rgba(255, 255, 255, 0.85) !important;
    }
    
    body.dark-mode .mobile-info-trigger {
        background-color: rgba(28, 20, 16, 0.72) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #f2ece8 !important;
    }
    
    .mobile-info-trigger svg {
        width: 20px;
        height: 20px;
        stroke-width: 2.5px;
    }
    
    /* Close Button inside Overlay */
    .mobile-close-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 auto 10px auto !important;
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
        aspect-ratio: 1/1 !important;
        border-radius: 50% !important;
        background-color: rgba(0, 0, 0, 0.04) !important;
        border: none !important;
        color: var(--text-color) !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 12 !important;
    }
    
    body.dark-mode .mobile-close-btn {
        background-color: rgba(255, 255, 255, 0.08) !important;
        color: #f2ece8 !important;
    }
    
    .mobile-close-btn svg {
        width: 20px !important;
        height: 20px !important;
        stroke-width: 2.5px !important;
    }
    
    /* Project Action Button to Enter Project/Gallery */
    .project-action-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
        padding: 10px 24px;
        background-color: #4a3028 !important;
        color: #ffffff !important;
        border: none;
        border-radius: 20px;
        font-family: var(--font-nav);
        font-size: 0.78rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
        transition: background-color 0.25s, transform 0.15s;
        width: auto;
        align-self: center;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    }
    
    .project-action-btn:active {
        transform: scale(0.97);
        opacity: 0.95;
    }
    
    body.dark-mode .project-action-btn {
        background-color: #5c3d33 !important;
    }
    
    /* Project card overlay positioning on mobile - completely hidden under by default */
    .project-overlay {
        transform: translateY(105%) !important;
        opacity: 1 !important;
        pointer-events: none !important;
        height: 95% !important;
        max-height: 95% !important;
        padding: 12px 12px 8px 12px !important;
        border-radius: var(--border-radius) !important;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        overflow-y: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Remove automatic peeking active overlay */
    .project-card.active .project-overlay {
        transform: translateY(105%) !important;
    }
    
    /* Slide up on click */
    .project-overlay.expanded,
    .project-card.active .project-overlay.expanded {
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Keep title inside overlay hidden since it's already under the card */
    .project-overlay-name {
        display: none !important;
    }
    
    /* Spacings for legend and date */
    .project-overlay-legend,
    .project-overlay-date {
        padding-right: 8px;
        padding-left: 8px;
        text-align: center;
    }
    
    /* Make the project title under the visual regular/courant weight (400) when active in viewport */
    .project-card.active .project-card-title {
        font-weight: 400 !important; /* Variex courant / regular */
        opacity: 1 !important;
    }
    
    /* Soften description scrolling behavior in mobile overlay if description overflows */
    .project-overlay-short-desc {
        font-size: 0.94rem !important;
        flex: 1 !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-right: 8px;
        margin-bottom: 4px;
    }
}

/* ==========================================================================
   🔗 GLOBAL DYNAMIC TITLE BUTTON (Desktop Hover & Mobile Info-Active)
   ========================================================================== */

/* Base transition for card title to morph smoothly */
.project-card-title {
    position: relative !important;
    z-index: 12 !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, color 0.25s ease, padding 0.25s ease, border-radius 0.25s ease, margin 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease !important;
}

/* 1. Mobile active info button styles (class-based, works on all devices) */
.project-card.info-active .project-card-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #4a3028 !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 24px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08) !important;
    margin: 14px auto 0 auto !important;
    width: max-content !important;
    max-width: 90% !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

.project-card.info-active .project-card-title span {
    line-height: 1 !important;
    display: inline-block !important;
}

body.dark-mode .project-card.info-active .project-card-title {
    background-color: #5c3d33 !important;
}

.project-card.info-active .project-card-title:active {
    transform: scale(0.97);
    opacity: 0.95 !important;
}

.project-title-arrow {
    display: none !important;
}

.project-card.info-active .project-title-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: 8px !important;
    stroke-width: 3.5px !important; /* Thickened arrow */
}

/* 2. Desktop hover button styles (ONLY on mouse-pointer devices and screen width > 768px) */
@media (hover: hover) and (min-width: 769px) {
    .project-card:hover .project-card-title {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #4a3028 !important;
        color: #ffffff !important;
        padding: 10px 24px !important;
        border-radius: 24px !important;
        font-size: 0.78rem !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.08) !important;
        margin: 14px auto 0 auto !important;
        width: max-content !important;
        max-width: 90% !important;
        line-height: 1 !important;
        opacity: 1 !important;
    }
    
    .project-card:hover .project-card-title span {
        line-height: 1 !important;
        display: inline-block !important;
    }
    
    body.dark-mode .project-card:hover .project-card-title {
        background-color: #5c3d33 !important;
    }
    
    .project-card:hover .project-card-title:active {
        transform: scale(0.97);
        opacity: 0.95 !important;
    }
    
    .project-card:hover .project-title-arrow {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 14px !important;
        height: 14px !important;
        margin-left: 8px !important;
        stroke-width: 3.5px !important;
    }
}

/* =============================================
   COMMISSION CUSTOM PRESENTATION & MODAL
   ============================================= */
.commission-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 60px;
    break-inside: avoid;
    cursor: pointer;
    text-decoration: none;
}

.desktop-masonry .commission-card {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .commission-card {
        margin-bottom: 30px;
    }
}

.commission-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.commission-card:hover .commission-image-container {
    transform: scale(1.03);
}

.commission-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.commission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.commission-card:hover .commission-overlay,
.commission-card.in-view .commission-overlay {
    opacity: 1;
}

.commission-hover-icon {
    color: var(--text-color, #470011); /* Brand maroon color */
    background: rgba(138, 107, 113, 0.18); /* Light brownish/muted translucent color */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(138, 107, 113, 0.25);
    border-radius: 50%;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.commission-hover-icon svg {
    width: 26px;
    height: 26px;
}

.commission-card:hover .commission-hover-icon {
    transform: scale(1.1);
}


/* Modal 95% of viewport */
/* Modal full-width under the menu header */
.commission-gallery-modal {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    z-index: 10005; /* Above header background, under logo/nav */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.commission-gallery-modal.open {
    opacity: 1;
    visibility: visible;
}

.commission-gallery-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
}

body.dark-mode .commission-gallery-overlay {
    background: #121011;
}

.commission-gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    padding: 30px 8vw 0 8vw; /* No bottom padding here to let content scroll to the very bottom */
    box-sizing: border-box;
    z-index: 2;
    overflow: hidden;
}

.commission-modal-close {
    position: fixed;
    top: 90px;
    right: 40px;
    z-index: 10025; /* Higher than top nav and floating pill */
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    color: var(--text-color, #470011) !important; /* Brand maroon color */
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.2s, color 0.2s, transform 0.3s ease;
}

body.dark-mode .commission-modal-close {
    background: #ffffff !important; /* White circle background for contrast */
    color: var(--text-color, #470011) !important; /* Maroon cross */
    border-color: rgba(255, 255, 255, 0.2);
}

.commission-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

body.dark-mode .commission-modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
}

.commission-modal-images {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-right: 15px;
    padding-bottom: 150px; /* Padding to clear the floating pill when fully scrolled */
    align-items: center;
}

.commission-modal-images::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    display: block !important;
}

.commission-modal-images::-webkit-scrollbar-track {
    background: transparent !important;
}

.commission-modal-images::-webkit-scrollbar-thumb {
    background-color: transparent !important; /* Hidden by default */
    border-radius: 3px !important;
    transition: background-color 0.3s ease !important;
}

/* Elegant Scrollbar thumb matching the project section */
.commission-modal-images.is-scrolling::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--text-muted) 30%, transparent) !important;
}

.commission-modal-images.is-scrolling::-webkit-scrollbar-thumb:hover {
    background-color: color-mix(in srgb, var(--text-muted) 55%, transparent) !important;
}

.commission-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.commission-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: none !important;
}

.commission-modal-meta {
    margin-top: 15px;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.commission-modal-img-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: var(--text, #111);
}

body.dark-mode .commission-modal-img-title {
    color: #fff;
}

.commission-modal-img-desc {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.8rem;
    color: var(--text-muted, #777);
    margin: 0;
    line-height: 1.4;
}

/* Bulle / Pilule d'information flottante */
.commission-floating-pill {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 12px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 10020;
    max-width: 90%;
    width: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.commission-floating-pill.pill-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.dark-mode .commission-floating-pill {
    background: rgba(18, 16, 17, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.commission-pill-title {
    font-family: var(--font-nav), sans-serif; /* Variex */
    font-weight: 300 !important; /* Variex fin */
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text, #111); /* Main color */
}

body.dark-mode .commission-pill-title {
    color: #fff;
}

.commission-pill-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted, #777); /* Secondary color */
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .commission-gallery-modal {
        top: 60px;
        height: calc(100vh - 60px);
    }
    .commission-gallery-content {
        padding: 20px 5vw 0 5vw;
    }
    .commission-modal-images {
        gap: 40px;
        padding-bottom: 120px;
    }
    .commission-modal-images::-webkit-scrollbar {
        display: none !important; /* Hide scrollbars completely on mobile */
    }
    .commission-modal-img {
        max-height: 60vh;
    }
    .commission-modal-close {
        top: 75px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .commission-floating-pill {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        border-radius: 16px 16px 0 0; /* Rounded rectangle style matching the bottom safe area */
        border: none !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05) !important;
        padding: 12px 16px env(safe-area-inset-bottom, 12px) 16px;
        background: rgba(255, 255, 255, 0.45) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }
    body.dark-mode .commission-floating-pill {
        background: rgba(18, 16, 17, 0.45) !important;
    }
    .commission-modal-img-title {
        font-size: 0.8rem !important;
    }
    .commission-modal-img-desc {
        font-size: 0.72rem !important;
    }
}

/* Custom fix for mobile landscape mode in projects/lightbox */
@media (max-width: 950px) and (orientation: landscape) {
    /* 1. Make the lightbox images larger */
    .lightbox-img-item img {
        max-height: calc(100vh - 100px) !important;
        max-width: 85vw !important;
    }

    /* 2. Position the image caption and keep it visible */
    .lightbox-img-meta {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    .lightbox-img-title {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important; /* Limit to 2 lines to save vertical space */
        line-height: 1.2 !important;
    }

    /* 3. Position control bar and actions bar at the bottom to prevent overlapping with centered images */
    .lightbox-controls {
        bottom: 12px !important;
        padding: 0 16px !important;
        gap: 10px !important;
        height: 70px !important;
        width: 380px !important;
        max-width: 90vw !important;
        border-radius: 35px !important;
    }
    .lightbox-control-btn {
        padding: 6px !important;
    }
    .lightbox-control-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
    .lightbox-control-btn.arrow-btn svg {
        width: 36px !important;
        height: 36px !important;
    }
    .lightbox-controls-center {
        gap: 12px !important;
    }
    .lightbox-controls-row {
        gap: 12px !important;
    }
    .lightbox-speed-value {
        bottom: 2px !important; /* Lowered by 3px to vertical center align */
        font-size: 0.75rem !important;
    }

    .lightbox-actions-container {
        bottom: 12px !important;
        right: max(16px, env(safe-area-inset-right, 16px)) !important;
        gap: 8px !important;
    }
    .lightbox-text-trigger,
    .lightbox-captions-trigger {
        padding: 8px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }
    .lightbox-text-trigger svg,
    .lightbox-captions-trigger svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* 4. Optimize the project introduction card so text fits on small landscape screens */
    .lightbox-intro-item {
        padding: 20px 24px !important;
        padding-top: 50px !important; /* Force padding-top to override JS calculation */
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    .lightbox-intro-title {
        font-size: 1.3rem !important;
        margin-bottom: 4px !important;
    }

    .lightbox-intro-legend {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }

    .lightbox-intro-description {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        max-height: 35vh !important; /* Restrict description height and keep it scrollable */
        margin-bottom: 15px !important;
        padding-right: 8px !important;
    }

    .lightbox-play-wrapper {
        align-self: center !important;
        margin-top: 0 !important;
    }

    .btn-play-project {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    /* 5. Ensure fullscreen container takes full dimensions and accounts for safe areas */
    .project-lightbox, .lightbox-panel {
        width: 100vw !important;
        width: 100dvw !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    /* 6. Make the header transparent and floating */
    .project-lightbox .lightbox-header {
        background: transparent !important;
        border-bottom: none !important;
        height: auto !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1010 !important;
        pointer-events: none !important;
        padding: 15px max(15px, env(safe-area-inset-right, 15px)) !important;
    }

    .project-lightbox .lightbox-header > div:first-child,
    .project-lightbox .lightbox-close {
        pointer-events: auto !important;
    }

    /* 7. Close button floating style in all landscape states */
    .project-lightbox .lightbox-close {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1) !important;
    }

    body.dark-mode .project-lightbox .lightbox-close {
        background: rgba(34, 26, 20, 0.9) !important;
        color: #f2ece8 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    }

    /* 8. Title overlay styles: fade out completely on inactivity */
    .project-lightbox.slideshow-active:not(.show-controls) .lightbox-title {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 9. Title text appearance (no white background, clean floating text) */
    .project-lightbox.slideshow-active .lightbox-title {
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: var(--text-color) !important;
    }

    body.dark-mode .project-lightbox.slideshow-active .lightbox-title {
        color: #f2ece8 !important;
    }

    .project-lightbox.slideshow-active .lightbox-legend {
        font-size: 0.75rem !important;
        color: var(--text-muted) !important;
    }

    /* 10. Hide spacebar hint in landscape mode */
    .spacebar-hint {
        display: none !important;
    }
}

/* Spinner animation for lightbox pagination sentinel */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   DOUBLE CARROUSEL BOUTIQUE MOBILE (ANIMATION ET TAILLES RÉDUITES)
   ========================================================================== */

/* Visibilité responsivée par défaut */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    
    .shop-carousel-double-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        overflow: hidden;
        padding: 10px 0;
        mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    }
    
    .shop-carousel-row {
        width: 100%;
        overflow: hidden;
        position: relative;
        white-space: nowrap;
    }
    
    .shop-carousel-row .shop-carousel {
        display: flex;
        gap: 0 !important;
        width: max-content;
        will-change: transform;
    }
    
    /* Vitesse lente et fluide pour les deux lignes (divisée par 2) */
    .shop-carousel-row-1 .shop-carousel {
        animation: shopMarqueeLeft 60s linear infinite;
    }
    
    .shop-carousel-row-2 .shop-carousel {
        animation: shopMarqueeRight 60s linear infinite;
    }
    
    /* Réduction de moitié de la taille des images sur mobile (90px) */
    .shop-carousel-row .shop-carousel-item {
        flex: 0 0 90px !important;
        width: 90px !important;
        min-width: 90px !important;
        margin-right: 20px !important; /* Marge fixe pour un défilement infini fluide */
        scroll-snap-align: unset !important;
        display: inline-flex;
        flex-direction: column;
        text-align: center;
        vertical-align: top;
    }
    
    .shop-carousel-row .shop-carousel-img-link {
        margin-bottom: 8px !important;
        border-radius: 4px !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        width: 90px !important;
        height: 110px !important; /* Hauteur fixe pour permettre l'alignement vertical */
    }
    
    .shop-carousel-row-1 .shop-carousel-img-link {
        align-items: flex-end !important;
    }
    
    .shop-carousel-row-2 .shop-carousel-img-link {
        align-items: flex-start !important;
    }
    
    .shop-carousel-row .shop-carousel-img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block;
        transition: transform 0.6s ease;
        object-fit: contain !important;
        border-radius: 4px !important;
    }
    
    .shop-carousel-row .shop-carousel-project {
        display: none !important;
    }
    
    .shop-carousel-row .shop-carousel-title {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        white-space: normal;
    }
}

/* Hover/touch active state pause option only on desktop/mouse */
@media (max-width: 768px) and (hover: hover) {
    .shop-carousel-row:hover .shop-carousel {
        animation-play-state: paused;
    }
}

/* Animations Marquee Infinies */
@keyframes shopMarqueeLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes shopMarqueeRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}




/* --- Continue to Shop Button --- */
.btn-shop-picker-continue {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
    transition: all 0.2s ease;
}

.btn-shop-picker-continue:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

@media (max-width: 480px) {
    .btn-shop-picker-continue span {
        display: none;
    }
    .btn-shop-picker-continue {
        padding: 6px 8px !important;
    }
}
