/* ============================================
   ANIP - Style Général
   Combinaison des couleurs GDB & ASSOCIÉS et ANIP
   ============================================ */

:root {
    /* Couleurs GDB & ASSOCIÉS */
    --gdb-red: #B50717;
    --gdb-red-dark: #8a0512;
    --gdb-black: #1f1f1f;
    --gdb-green: #28a745;
    --gdb-purple: #210f89;

    /* Couleurs ANIP */
    --anip-blue: #0A3764;
    --anip-blue-dark: #082847;
    --anip-gold: #F0A945;
    --anip-gold-dark: #d89230;

    /* Couleurs communes */
    --white: #ffffff;
    --light-gray: #e9ecef;
    --medium-gray: #556080;
    --text-gray: #666666;
    --border-gray: #dddddd;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(181,7,23,0.2);
    --shadow-lg: 0 8px 30px rgba(10,55,100,0.25);
}

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

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gdb-black);
    background-color: var(--white);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--anip-blue) 0%, var(--anip-blue-dark) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--gdb-red);
    padding: 8px 0;
    font-size: 14px;
    color: var(--white);
}

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

.header-top a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.header-top a:hover {
    opacity: 0.8;
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.logo-separator {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--anip-gold), transparent);
}

/* Navigation */
.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover,
.nav a.active {
    background-color: var(--anip-gold);
    color: var(--anip-blue);
    box-shadow: var(--shadow-sm);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--anip-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 80%;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: var(--anip-gold);
    color: var(--anip-blue);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: var(--anip-gold-dark);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

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

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    color: var(--anip-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gdb-red), var(--anip-gold));
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 40px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gdb-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gdb-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--anip-gold);
    color: var(--anip-blue);
}

.btn-secondary:hover {
    background-color: var(--anip-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--anip-blue);
    color: var(--anip-blue);
}

.btn-outline:hover {
    background-color: var(--anip-blue);
    color: var(--white);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--gdb-red);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--anip-gold);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--gdb-black) 0%, var(--anip-blue-dark) 100%);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--anip-gold);
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--gdb-red);
}

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

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

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--anip-gold);
    transform: translateX(5px);
}

.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(240, 169, 69, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--anip-gold);
    color: var(--anip-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--light-gray);
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: var(--anip-gold);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logos-container {
        justify-content: center;
        gap: 15px;
    }

    .logo {
        height: 45px;
    }

    .logo-separator {
        height: 40px;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--anip-blue-dark);
        padding: 20px;
        border-radius: 10px;
        margin-top: 20px;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logos {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 35px;
    }

    .section {
        padding: 40px 0;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Spinner de chargement */
.spinner {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--anip-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
