/* ================================
   COMMON.CSS - Styles communs à toutes les pages
   ================================ */

/* Variables CSS */
:root {
    --noir-profond: #0D0D0D;
    --blanc-pur: #FFFFFF;
    --gris-argent: #BFBFBF;
    --dore-leger: #C9A15D;
    --cuivre: #B87333;
    --bleu-electrique: #2D6CF6;
    
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(13, 13, 13, 0.2);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--noir-profond);
    color: var(--blanc-pur);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER - Commun à toutes les pages
   ================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(191, 191, 191, 0.1);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--blanc-pur);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--dore-leger);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--dore-leger);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--dore-leger);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--blanc-pur);
    margin: 3px 0;
    transition: 0.3s;
}

/* ================================
   SECTIONS COMMUNES
   ================================ */

section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--blanc-pur);
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--dore-leger);
    margin: 0 auto;
}

/* ================================
   FOOTER - Commun à toutes les pages
   ================================ */

.footer {
    background: var(--noir-profond);
    border-top: 1px solid rgba(191, 191, 191, 0.1);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--gris-argent);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--blanc-pur);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gris-argent);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--dore-leger);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gris-argent);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--dore-leger);
    color: var(--noir-profond);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(191, 191, 191, 0.1);
    margin-bottom: 20px;
}

.footer-bottom p {
    color: var(--gris-argent);
    font-size: 0.9rem;
}

/* ================================
   ANIMATIONS COMMUNES
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) rotate(45deg);
    }
}

/* ================================
   RESPONSIVE DESIGN COMMUN
   ================================ */

@media (max-width: 768px) {
    .header .container {
        height: 70px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    section {
        padding: 80px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}