/* =========================================
   EN-TÊTE & NAVIGATION (Header)
========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

#site-logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--secondary-color); 
}

.hamburger { display: none; }

/* =========================================
   PIED DE PAGE (FOOTER)
========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   RESPONSIVE MENU BURGER
========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block; 
        cursor: pointer;
    }
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease;
        background-color: var(--primary-color);
    }
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-links li { margin: 25px 0; }
    .nav-links.active { left: 0; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* =========================================
   EN-TÊTE DES PAGES SECONDAIRES (Page Header)
========================================= */
.page-header {
    background-color: var(--sorbonne-navy);
    color: var(--white);
    padding: 80px 0 40px 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* =========================================
   BOUTON CTA DANS LA NAVIGATION ("Adhérer")
========================================= */
.nav-links a.btn-nav {
    background-color: var(--guinea-green);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a.btn-nav:hover,
.nav-links a.btn-nav.active {
    background-color: #007a3d;
    color: var(--white);
}

/* =========================================
   MESSAGES DE FORMULAIRE (contact / adhésion)
========================================= */
.form-status {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.form-status.success {
    display: block;
    background-color: #e3f5ec;
    color: #1b7a44;
    border: 1px solid #b6e2c8;
}

.form-status.error {
    display: block;
    background-color: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

.field-hint {
    font-weight: normal;
    font-size: 0.8rem;
    color: #888;
}

/* =========================================
   PIED DE PAGE ENRICHI
========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 0;
    padding: 0;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding: 50px 20px 40px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--white);
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--guinea-yellow);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a,
.footer-brand a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--guinea-yellow);
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.footer-social a {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
}

.footer-social a:hover {
    border-color: var(--guinea-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
}

/* =========================================
   PAGE 404
========================================= */
.error-section {
    padding: 90px 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--guinea-red);
    line-height: 1;
    margin-bottom: 10px;
}

.error-section h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}