/* Layout CSS - Header, Navigation, Containers */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Header */
.header {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* Fixed Header Variant (for about page) */
.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem 0.5rem 2rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 15, 0.9);
    border-bottom: 1px solid var(--glass-border);
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-100);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo:not(.home):hover {
    color: var(--primary);
}

/* Navigation Link */
.nav-link {
    color: var(--neutral-100);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--accent);
    opacity: 1;
}

.nav-link.active {
    color: var(--neutral-100);
    opacity: 1;
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-4);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-2);
    }
    
    .header {
        left: var(--space-2);
        right: var(--space-2);
    }
    
    .header.fixed {
        padding: 0.5rem 1rem 0.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        top: var(--space-2);
    }
}

/* Les overlays modals et containers gardent leur z-index élevé */
.modal-overlay, .confirmation-overlay, .modal-content, .section-content, .accordion-section {
    position: relative;
    z-index: 1000;
}

.tooltip-description {
    font-size: 0.8875rem;
    color: rgba(186, 186, 186, 0.95);
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin: 0;
    padding: 8px 14px;
    line-height: 1.4;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.32), 0 0 0 2px rgba(0,0,0,0.10);
    pointer-events: none;
    max-width: 320px;
    white-space: normal;
    z-index: 9999;
    filter: drop-shadow(0 0 24px rgba(0,0,0,0.45)) drop-shadow(0 0 8px rgba(0,0,0,0.18));
    backdrop-filter: blur(16px);
}