:root {
    --color-red: #FF0000;
    --color-red-deep: #CC0000;
    --color-gold: #FFD700;
    --color-green: #0a7734;
    --color-green-deep: #085c28;
    --color-white: #FFFFFF;
    --color-black: #0A0A0A;
    --color-gray: #6B7280;
    --color-light-gray: #bdc3c7;
    
    --transition-speed: 0.3s;
    --footer-padding: 40px 0 0;
    --container-padding: 0 20px;
}

/*** Footer Start ***/
.site-footer {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-deep) 100%);
    color: var(--color-white);
    padding: var(--footer-padding);
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-gold), var(--color-red-deep));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1.2fr 1.8fr 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Classes de masquage */
.hide-on-mobile {
    display: flex;
}

.hide-on-tablet {
    display: flex;
}

.hide-on-desktop {
    display: none;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    transition: transform var(--transition-speed) ease;
}

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

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

.social-link {
    color: var(--color-light-gray);
    background: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--color-white);
}

.social-link.facebook:hover {
    background: #1877F2;
}

.social-link.twitter:hover {
    background: #000000;
}

.social-link.instagram:hover {
    background: #d62976;
}

.social-link.youtube:hover {
    background: #CD201F;
}

/* Footer Sections Communes */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-title {
    font-size: 0.8rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red), var(--color-gold));
    border-radius: 2px;
    transition: width var(--transition-speed) ease;
}

.footer-section:hover .footer-title::after {
    width: 60px;
}

/* Liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    padding: 4px 0;
    font-size: 0.85rem;
    position: relative;
}

.footer-links a::before {
    content: '›';
    opacity: 0;
    margin-right: 0;
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    margin-right: 8px;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item i {
    color: var(--color-gold);
    margin-top: 3px;
    font-size: 14px;
    min-width: 18px;
    flex-shrink: 0;
}

.contact-item p,
.contact-item a {
    margin: 0;
    color: var(--color-white);
    line-height: 1.6;
    font-size: 0.85rem;
}

.phone-numbers p {
    margin: 2px 0;
    font-size: 0.8rem;
}

.organization {
    font-weight: 500;
    color: var(--color-white) !important;
}

.email a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    word-break: break-all;
}

.email a:hover {
    color: var(--color-red);
    text-decoration: underline;
}

/* Liens institutionnels */
.institutional-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}

.link-item i {
    color: var(--color-gold);
    font-size: 12px;
    flex-shrink: 0;
}

.link-item a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
}

.link-item a:hover {
    color: var(--color-gold);
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-top: 30px;
}

.footer-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-light-gray);
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--color-light-gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-speed) ease;
}

.legal-links a:hover {
    color: var(--color-gold);
}

/* ======================== */
/* RESPONSIVE - OPTIMISÉ */
/* ======================== */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .hide-on-tablet {
        display: none !important;
    }

    .logo-section {
        align-items: center;
        text-align: center;
    }

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

/* Mobiles */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    /* Masquage des sections sur mobile */
    .hide-on-mobile {
        display: none !important;
    }

    /* Afficher certains éléments uniquement sur mobile */
    .hide-on-desktop {
        display: flex !important;
    }

    .logo-section {
        align-items: center;
        text-align: center;
        order: 1;
    }

    .footer-logo {
        max-width: 140px;
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

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

    .footer-section:hover .footer-title::after {
        width: 80px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        padding-left: 0;
        color: var(--color-gold);
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .contact-item i {
        display: none;
    }

    .link-item {
        justify-content: center;
    }

    .legal-section {
        order: 2;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
        margin-top: 10px;
    }

    /* Footer Bottom */
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .legal-links {
        justify-content: center;
        gap: 15px;
    }

    .legal-links a {
        font-size: 0.75rem;
    }

    /* Version mobile alternative - montrer des infos simplifiées */
    .mobile-footer-info {
        display: block !important;
        text-align: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 10px;
        gap: 15px;
    }

    .footer-logo {
        max-width: 120px;
    }

    .footer-title {
        font-size: 0.95rem;
    }

    .footer-links a,
    .contact-item p,
    .contact-item a,
    .link-item a {
        font-size: 0.75rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    .legal-links {
        gap: 10px;
    }

    .legal-links a {
        font-size: 0.65rem;
    }
}

/* Support des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Impression */
@media print {
    .site-footer {
        background: #f8f9fa !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .site-footer::before {
        display: none !important;
    }
    
    .footer-links a,
    .contact-item a,
    .link-item a {
        color: #000 !important;
    }
}