/* base.css - Design système pour EJE Club avec navbar rouge */

/* ===== VARIABLES ===== */
:root {
    --primary-red: #781E34;
    --dark-red: #5a1528;
    --light-red: #9a2b48;
    --accent-red: #b3415d;
    --soft-red: #d45d7c;
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-dark: #222222;
    --text-light: #666666;
    
    --shadow: 0 5px 20px rgba(120, 30, 52, 0.1);
    --shadow-hover: 0 10px 30px rgba(120, 30, 52, 0.15);
    --shadow-nav: 0 2px 15px rgba(90, 21, 40, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pure-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

/* ===== NAVBAR ROUGE MODERNE ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    padding: 0.6rem 0;   /* reduced height */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-nav);
    border-bottom: 3px solid var(--soft-red);
}
.navbar-logo img {
    height: 45px;   /* smaller */
    width: auto;
    display: block;
}


.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, links right */
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}
.navbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent;
}

.navbar a:hover {
    color: var(--pure-white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    background: linear-gradient(to right, var(--soft-red), var(--pure-white));
    border-radius: 2px;
    transition: var(--transition);
}

.navbar a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Lien actif */
.navbar a.active {
    color: var(--pure-white);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar a.active::after {
    transform: translateX(-50%) scaleX(1);
    background: var(--pure-white);
}

/* Effet au scroll */
.navbar.scrolled {
    padding: 0.8rem 0;
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    box-shadow: 0 4px 20px rgba(90, 21, 40, 0.2);
}

/* ===== LAYOUT UTILITAIRES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--pure-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--accent-red), var(--light-red));
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--pure-white);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--soft-red);
    border-radius: 2px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--soft-red);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== UTILITY CLASSES ===== */
.card {
    background: var(--pure-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(120, 30, 52, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar .container {
        padding: 0 1rem;
        gap: 0.3rem;
    }
    
    .navbar a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        margin: 0.1rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar a {
        width: 100%;
        max-width: 280px;
        padding: 0.7rem;
        margin: 0.1rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    transition: var(--transition);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--light-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}