/* ========================================
   STYLES COMMUNS - SITE JUDIVA
   ======================================== */

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

/* Variables CSS */
:root {
    --primary-yellow: #DC7D07;
    --dark-bg: #4b4b4b;
    --card-bg: #303030;
    --text-white: #ffffff;
    --text-gray: #e6e6e6;
    
    /* ========================================
       TAILLE DU NAV - Modifie cette valeur !
       ======================================== */
    --nav-height: 60px;
}

/* Body */
body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ========================================
   NAVIGATION
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Nav cachée au scroll (mobile uniquement) */
nav.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

nav.nav-hidden .logo,
nav.nav-hidden .burger {
    pointer-events: none;
}

nav.nav-visible {
    transform: translateY(0);
}

.logo {
    font-size: calc(var(--nav-height) * 0.35);
    font-weight: 700;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo svg,
.logo img {
    height: calc(var(--nav-height) * 0.8);
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover svg,
.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    color: var(--dark-bg);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--dark-bg);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: calc(var(--nav-height) * 0.23);
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    margin-right: 5px;
}

.burger span {
    width: calc(var(--nav-height) * 0.35);
    height: calc(var(--nav-height) * 0.04);
    background: var(--dark-bg);
    margin: calc(var(--nav-height) * 0.055) 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    filter: invert();
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    filter: invert();
}

/* Back Button (portfolio.html) */
.back-button {
    color: var(--dark-bg);
    text-decoration: none;
    padding: 0.6rem 1.8rem;
    border: 2px solid var(--dark-bg);
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 600;
}

.back-button:hover {
    background: var(--primary-yellow);
    color: white;
    border-color: var(--primary-yellow);
}

/* ========================================
   RESPONSIVE NAVIGATION
   ======================================== */

@media (max-width: 968px) 
    {
        .back-button {
        padding: 0.1rem 0.1rem 0 0.6rem;
        font-size: small;
        height: 30px;
        width: 80px;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        color: var(--text-white) !important;
    }

    .nav-links a:hover {
        color: var(--primary-yellow) !important;
    }
}

/* Mobile Landscape - Menu adapté pour petit écran horizontal */
@media (max-width: 968px) and (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        width: 50%;
        max-width: 400px;
        gap: 1rem;
        padding: 1rem 0;
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: calc(var(--nav-height) + 1rem);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--primary-yellow);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 217, 61, 0.3);
}