/* ========================================
   FOOTER - TOPCENTER (ORANGE PRINCIPAL)
   Charte: #FF772A (orange principal) & #0D4FD8 (bleu accent)
   Style: Professionnel et Simple
   ======================================== */

/* Variables CSS */
:root {
    --topcenter-orange: #FF772A;
    --topcenter-blue: #0D4FD8;
    --topcenter-orange-light: rgba(255, 119, 42, 0.1);
    --topcenter-blue-light: rgba(13, 79, 216, 0.1);
    --topcenter-orange-dark: #e6671f;
    --footer-bg-main: #FF772A;
    --footer-text: rgba(255, 255, 255, 0.95);
    --footer-text-light: rgba(255, 255, 255, 0.8);
    --footer-border: rgba(255, 255, 255, 0.15);
}

/* Footer principal */
.footer-main {
    background: linear-gradient(135deg, var(--footer-bg-main) 0%, var(--topcenter-orange-dark) 100%);
    color: white;
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* Colonnes du footer */
.footer-row {
    margin-bottom: 2.5rem;
}

.footer-col {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .footer-col-lg {
        margin-bottom: 0;
    }
}

/* Section Logo et Description */
.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-brand i {
    margin-right: 0.75rem;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--topcenter-blue);
}

.footer-description {
    color: var(--footer-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Icônes sociales */
.footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

.footer-social-link:hover {
    background: var(--topcenter-blue);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(13, 79, 216, 0.4);
    border-color: var(--topcenter-blue);
}

/* Titres de sections */
.footer-section-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--topcenter-blue), white);
    border-radius: 1px;
}

/* Listes de liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: var(--footer-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem 0.25rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    border-left: 3px solid transparent;
}

.footer-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
    border-left-color: var(--topcenter-blue);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-link i {
    margin-right: 0.75rem;
    width: 18px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover i {
    opacity: 1;
    color: var(--topcenter-blue);
    transform: scale(1.1);
}

/* Section Contact */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.footer-contact-item:hover {
    background: rgba(13, 79, 216, 0.15);
    border-color: var(--topcenter-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(13, 79, 216, 0.2);
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--topcenter-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    box-shadow: 0 2px 8px rgba(13, 79, 216, 0.3);
}

.footer-contact-text {
    color: var(--footer-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.footer-contact-text strong {
    color: var(--footer-text);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.footer-contact-link {
    color: var(--topcenter-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-contact-link:hover {
    color: white;
    text-decoration: underline;
}

/* Séparateur */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--footer-border), transparent);
    margin: 2.5rem 0;
    position: relative;
}

.footer-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 2px;
    background: var(--topcenter-blue);
    border-radius: 1px;
}

/* Section Copyright */
.footer-copyright {
    padding: 1.75rem 0;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.1);
}

.footer-copyright-text {
    color: var(--footer-text-light);
    margin: 0;
    font-weight: 400;
}

.footer-copyright-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright-link {
    color: var(--footer-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-copyright-link:hover {
    color: var(--topcenter-blue);
    background: rgba(13, 79, 216, 0.2);
    text-decoration: none;
}

.footer-copyright-separator {
    color: var(--footer-text-light);
    font-weight: 300;
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-row {
        margin-bottom: 2rem;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .footer-contact-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .footer-copyright-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        font-size: 1.25rem;
    }
    
    .footer-brand i {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .footer-description {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .footer-section-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .footer-link {
        padding: 0.625rem 0.5rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .footer-divider {
        margin: 1.75rem 0;
    }
    
    .footer-copyright {
        padding: 1.25rem 0;
        font-size: 0.8rem;
    }
    
    .footer-copyright-links {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 0 0.75rem;
    }
    
    .footer-row {
        margin-bottom: 1.5rem;
    }
    
    .footer-col {
        margin-bottom: 1.5rem;
    }
    
    .footer-social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-contact-item {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .footer-copyright-text {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .footer-copyright-links {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}

/* ========================================
   INTERACTIONS ET ANIMATIONS
   ======================================== */
.footer-link,
.footer-social-link,
.footer-copyright-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section-title::after {
    transition: width 0.3s ease;
}

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

.footer-contact-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col {
    animation: fadeInUp 0.7s ease-out forwards;
    opacity: 0;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }
.footer-col:nth-child(4) { animation-delay: 0.4s; }

.footer-copyright {
    animation: fadeInUp 0.9s ease-out forwards;
    opacity: 0;
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
.footer-link:focus,
.footer-social-link:focus,
.footer-copyright-link:focus,
.footer-section-title:focus {
    outline: 2px solid var(--topcenter-blue);
    outline-offset: 2px;
    background: rgba(13, 79, 216, 0.2);
    border-radius: 4px;
    padding: 2px 4px;
}

.footer-contact-item:focus-within {
    outline: 2px solid var(--topcenter-blue);
    outline-offset: 2px;
    background: rgba(13, 79, 216, 0.15);
    border-color: var(--topcenter-blue);
}

/* Support reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .footer-col,
    .footer-copyright,
    .footer-link:hover,
    .footer-social-link:hover,
    .footer-contact-item:hover {
        transform: none;
    }
}

/* Support high contrast */
@media (prefers-contrast: high) {
    .footer-section-title::after {
        height: 3px;
        width: 60px;
        background: var(--topcenter-blue);
    }
    
    .footer-link {
        border-left: 3px solid transparent;
        padding-left: 1rem;
    }
    
    .footer-link:hover {
        border-left-color: var(--topcenter-blue);
        background: rgba(13, 79, 216, 0.1);
    }
    
    .footer-social-link {
        border: 2px solid white;
    }
    
    .footer-contact-item {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Print styles */
@media print {
    .footer-main {
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        padding: 1rem 0 !important;
        box-shadow: none !important;
    }
    
    .footer-brand {
        color: #FF772A !important;
    }
    
    .footer-section-title {
        color: #0D4FD8 !important;
    }
    
    .footer-section-title::after {
        background: #0D4FD8 !important;
    }
    
    .footer-link,
    .footer-social-link,
    .footer-copyright-link {
        color: #000 !important;
    }
    
    .footer-social-link {
        background: transparent !important;
        border: 1px solid #000 !important;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-copyright {
        border-top: 1px solid #000 !important;
    }
}

/* ========================================
   UTILITÉS SPECIFIQUES
   ======================================== */
.footer-link-icon {
    width: 18px;
    text-align: center;
    margin-right: 0.75rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-link:hover .footer-link-icon {
    opacity: 1;
    color: var(--topcenter-blue);
    transform: scale(1.1);
}

/* Fin du fichier footer.css */