/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
    --color-bg-primary: #111;
    --color-bg-light: #1e1e1e;
    --color-bg-secondary: #252525;
    --color-gold: #cba135;
    --color-gold-hover: #d9b84a;
    --color-white: #ffffff;
    --color-cream: #f5f0e6;
    --color-light-gray: #9c9c9cff;
    --color-text-muted: #aaa;
    --color-text-light: #e8e4dc;

    --font-display: 'Exo 2', sans-serif;
    --font-body: 'Carlito', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.7);
}

* {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-cream);
    font-family: var(--font-body);
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, h4, .uk-navbar-nav > li > a {
    font-family: var(--font-display);
}

a { color: var(--color-gold); }
a:hover { 
    color: var(--color-cream); 
    text-decoration: none}

.section p{
    text-align: justify;
    
    
}

/* Effet de survol doré sur les liens et icônes */
.hover-gold:hover {
    color: var(--color-gold) !important;
    text-decoration: underline;
    transition: color 0.3s ease;
}

/* Survol des icônes UIkit */
.uk-list li span[uk-icon]:hover {
    color: var(--color-gold-hover) !important;
    transform: scale(1.1);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* ============================================
   NAVBAR - LOGO
   ============================================ */

/* Logo Desktop */
.uk-navbar-left .uk-logo img.navbar-logo {
    height: 50px;
    width: auto;
    margin-left: 20px;
}

/* Logo Mobile - Taille naturelle (fichier séparé) */
.uk-hidden@s .uk-logo img.navbar-logo-mobile {
    height: auto;
    width: auto;
    max-height: 40px;
    display: block;
}

/* Ajustement du conteneur mobile */
.uk-hidden@s .uk-navbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ============================================
   NAVIGATION (FIXE) - PADDING HARMONISÉ
   ============================================ */
.uk-navbar-container {
    background: var(--color-bg-light) !important;
    border-bottom: 1px solid rgba(203, 161, 53, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

}

/* Mobile uniquement */
@media (max-width: 640px) {
    .uk-navbar-container {
        background: var(--color-bg-light) !important;
        padding: 40px 20px !important;
    }
}

@media (min-width: 640px) {
    .uk-navbar-container {
        background: var(--color-bg-light) !important;
        padding: 0 0px !important;
    }
}


.uk-navbar-nav {
    gap: 20px; // Ecart entre les entrées du menu
}

.uk-navbar-nav > li > a {
    color: var(--color-white);
    font-weight: 500;
    transition: var(--transition-fast);
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a {
    color: var(--color-gold);
}

.uk-navbar-toggle { color: var(--color-gold); }

/* ============================================
   BURGER BUTTON
   ============================================ */
.mobile-menu-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.mobile-menu-btn span {
    color: var(--color-gold) !important;
}

.mobile-menu-btn:hover span {
    color: var(--color-gold-hover) !important;
}

/* ============================================
   MENU MOBILE
   ============================================ */
.mobile-menu-drop {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-bg-light); /* Pas de !important - plus stable */
    border-bottom: 2px solid var(--color-gold);
    border-radius: 0 0 10px 10px;
    padding: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible; /* IMPORTANT - garde le fond solide */
}

.mobile-menu-drop.mobile-menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-drop .uk-nav-default {
    text-align: center;
}

.mobile-menu-drop .uk-nav-default > li > a {
    color: var(--color-white);
    font-size: 1.2rem;
    padding: 15px 20px;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.mobile-menu-drop .uk-nav-default > li > a:hover {
    color: var(--color-gold);
    background: rgba(203, 161, 53, 0.1);
}

.mobile-menu-drop .uk-nav-header {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    padding: 0 20px 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(203, 161, 53, 0.3);
}

/* --- ACCORDÉON MOBILE --- */
.mobile-menu-drop .uk-nav-sub {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 0 20px 15px 20px;
    padding: 10px 0;
    list-style: none;
    text-align: center;
}

.mobile-menu-drop .uk-parent.uk-open > .uk-nav-sub {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-drop .uk-nav-sub li > a {
    color: var(--color-text-light);
    font-size: 1.1rem;
    padding: 10px 20px;
    border-bottom: none;
    display: block;
    text-align: center;
}

.mobile-menu-drop .uk-nav-sub li > a:hover {
    color: var(--color-gold);
    background: transparent;
}

.mobile-menu-drop .uk-nav-sub li > a::before {
    content: ">";
    color: var(--color-gold);
    margin-right: 10px;
    display: inline-block;
    width: 10px; 
}

.mobile-menu-drop .uk-parent.uk-open > a span {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* ============================================
   MENU DESKTOP - SOUS-MENUS CENTRÉS
   ============================================ */
.uk-navbar-nav > li.uk-parent {
    position: relative;
}

.uk-navbar-dropdown {
    background: var(--color-bg-light);
    border: 1px solid rgba(203, 161, 53, 0.3);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 10px 0;
    min-width: 200px;
    
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    top: 100% !important;
    z-index: 1002;
}

.uk-navbar-dropdown-nav {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

.uk-navbar-dropdown-nav > li {
    margin: 0 !important;
}

.uk-navbar-dropdown-nav > li > a {
    color: var(--color-white);
    padding: 10px 20px;
    font-size: 1rem;
    text-align: left !important;
    margin: 0 !important;
}

.uk-navbar-dropdown-nav > li > a:hover {
    color: var(--color-gold);
    background: rgba(203, 161, 53, 0.1);
}

.uk-navbar-dropdown-icon {
    color: var(--color-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom:0;
    margin-bottom:0;
}
#accueil.hero-section{
    background: url('DJI_0529.JPG') center/cover no-repeat;
    min-height: 75vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.95));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo-desktop {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 960px) {
    .hero-logo-desktop {
        display: none;
    }
}

h1.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.2rem!important;
    color: var(--color-gold) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
#accueil .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
    color: var(--color-gold) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}


.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    color: var(--color-cream);
}

.scroll-indicator {
    animation: bounce 2s infinite;
    opacity: 0.7;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold) !important;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ============================================
   SECTIONS GÉNÉRALES
   ============================================ */
.section {
    padding: 4rem 0;
}

.section-title {
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* ============================================
   COMPOSANTS SPÉCIFIQUES
   ============================================ */
.tech-card, .story-card, .uk-card-default, .uk-card-secondary {
    background: var(--color-bg-light);
    border: 1px solid rgba(203, 161, 53, 0.2);
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition-medium);
    height: 100%;
    color: var(--color-text-light);
}

.tech-card:hover, .story-card:hover, .uk-card-default:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-gold);
}

.tech-card{
    padding:25px 25px 0 25px;
}

.tech-card h3, .story-card h3 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-top: 0;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tech-list li { padding: 8px 0; }
.tech-list li strong { color: var(--color-gold); }

.uk-button-primary {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    border-radius: 3px;
    color: var(--color-bg-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}
.uk-button-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    color: var(--color-bg-primary);
    transform: scale(1.02);
}


/* ============================================
   SCULPTURES À L'HONNEUR
   ============================================ */
.sculpture-card {
    background: var(--color-bg-light);
    border: 1px solid rgba(203, 161, 53, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sculpture-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-gold);
}

.sculpture-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: block;
}

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

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

.sculpture-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sculpture-title {
    color: var(--color-gold);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: var(--font-display);
    margin-top: 0;
}

.sculpture-desc {
    color: var(--color-white);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}




/* ============================================
   LIGHTBOX PERSONNALISÉE (UIKIT OVERWRITE)
   ============================================ */

/* Fond de la modale : Noir très transparent pour laisser respirer l'image */
.uk-lightbox-page {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Navigation (flèches) : Couleur or */
.uk-lightbox-controls > li > a {
    color: var(--color-gold) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: var(--transition-fast);
}

.uk-lightbox-controls > li > a:hover {
    color: var(--color-gold-hover) !important;
    transform: scale(1.1);
}

/* Bouton fermer (X) */
.uk-lightbox-controls > li:nth-child(1) > a {
    color: var(--color-white) !important;
}

/* Overlay du bas (Titre + Description) */
.uk-lightbox-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: var(--color-cream) !important;
    padding: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
    backdrop-filter: blur(2px); /* Effet de flou subtil */
}

/* Typographie dans la lightbox */
.uk-lightbox-caption h3 {
    color: var(--color-gold) !important;
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.uk-lightbox-caption p {
    color: var(--color-white) !important;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Ajustements Mobile Portrait */
@media (max-width: 640px) {
    .uk-lightbox-caption h3 {
        font-size: 1.4rem;
    }
    .uk-lightbox-caption p {
        font-size: 0.95rem;
    }
    /* Réduire un peu le padding sur mobile pour gagner de la hauteur d'image */
    .uk-lightbox-caption {
        padding: 15px;
    }
}








/* ============================================
   ACCORDÉON (FAQ)
   ============================================ */
.uk-accordion-title {
    color: var(--color-light-gray);
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom:10px!important;
}

.accordion-icon {
    transition: transform var(--transition-fast);
    display: inline-flex;
    color: var(--color-gold);
}

.uk-open > .uk-accordion-title .accordion-icon {
    transform: rotate(180deg);
}

.uk-accordion-content {
    color: var(--color-text-light);
    margin-bottom: 20px;
    padding-bottom: 0px;
}

.uk-text-large {
    font-size: 1.1rem;
}

/* ============================================
   VIDEO WRAPPER
   ============================================ */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0a0a0a;
    color: var(--color-text-muted);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(203, 161, 53, 0.2);
}
footer a { color: var(--color-gold); }
footer a:hover { color: var(--color-gold-hover); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.6rem; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2rem; }
    .hero-section {
        padding-top: 70px;
        min-height: 65vh;
    }
    .uk-text-lead { font-size: 1rem; }
    .tech-card, .story-card { padding: 15px; }
}