/* ==========================================================================
   FOOTER ET BAS DE PAGE
   ========================================================================== */

/* Footer container */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 204, 113, 0.08) 0%, transparent 50%);
    z-index: 1;
}

footer > * {
    position: relative;
    z-index: 2;
}

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

/* Footer columns */
.footer-col h3 {
    color: #3498db;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-col p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-links li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 0.8rem;
    top: 2px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
    transform: translateX(5px);
}

/* Contact info styling */
.footer-col:last-child .footer-links li {
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-col:last-child .footer-links li::before {
    content: '📍';
    font-size: 0.9rem;
}

.footer-col:last-child .footer-links li:first-child::before {
    content: '✉️';
}

.footer-col:last-child .footer-links li:nth-child(2)::before {
    content: '🏠';
}

/* Social sharing section */
.social-sharing {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.social-sharing h4 {
    color: #3498db;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* LinkedIn buttons */
.btn-linkedin,
.btn-linkedin-follow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 5px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
    border: none;
    cursor: pointer;
}

.btn-linkedin::before {
    content: '🔗';
    font-size: 1.1rem;
}

.btn-linkedin-follow::before {
    content: '👤';
    font-size: 1.1rem;
}

.btn-linkedin:hover,
.btn-linkedin-follow:hover {
    background: linear-gradient(135deg, #005885, #004666);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
    color: white;
    text-decoration: none;
}

/* Alternative avec icônes CSS */
.btn-linkedin-icon,
.btn-linkedin-follow-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 5px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
    position: relative;
}

/* Icônes LinkedIn en CSS pur */
.btn-linkedin-icon::before {
    content: '';
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.btn-linkedin-follow-icon::before {
    content: '';
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.btn-linkedin-icon:hover,
.btn-linkedin-follow-icon:hover {
    background: linear-gradient(135deg, #005885, #004666);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
    color: white;
    text-decoration: none;
    animation: linkedinGlow 2s ease-in-out infinite;
}

/* Copyright section */
.copyright {
    border-top: 1px solid rgba(189, 195, 199, 0.3);
    padding-top: 30px;
    text-align: center;
}

.copyright p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

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

/* Tablet */
@media (max-width: 992px) {
    footer {
        padding: 50px 0 20px 0;
        margin-top: 60px;
    }
    
    .footer-grid {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .social-sharing {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .btn-linkedin,
    .btn-linkedin-follow,
    .btn-linkedin-icon,
    .btn-linkedin-follow-icon {
        margin: 5px 5px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 15px 0;
        margin-top: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-col p {
        font-size: 0.95rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        margin-bottom: 10px;
        padding-left: 0;
        text-align: center;
    }
    
    .footer-links li::before {
        display: none;
    }
    
    .social-sharing {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .social-sharing h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .btn-linkedin,
    .btn-linkedin-follow,
    .btn-linkedin-icon,
    .btn-linkedin-follow-icon {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 8px auto;
        padding: 12px 20px;
        justify-content: center;
    }
    
    .copyright {
        padding-top: 20px;
    }
    
    .copyright p {
        font-size: 0.85rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    footer {
        padding: 30px 0 15px 0;
        margin-top: 40px;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-col p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-sharing {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .btn-linkedin,
    .btn-linkedin-follow,
    .btn-linkedin-icon,
    .btn-linkedin-follow-icon {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    footer {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
        margin-top: 40px !important;
        border-top: 2pt solid #000 !important;
    }
    
    footer::before {
        display: none !important;
    }
    
    .footer-col h3 {
        color: #000 !important;
        border-bottom-color: #000 !important;
    }
    
    .footer-col p,
    .footer-links a,
    .footer-links li {
        color: #000 !important;
    }
    
    .social-sharing {
        display: none !important;
    }
    
    .footer-links li::before {
        color: #000 !important;
    }
    
    .copyright p {
        color: #000 !important;
    }
}

/* ==========================================================================
   ANIMATIONS ET EFFETS
   ========================================================================== */

/* Animation fade-in pour le footer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    animation: fadeInUp 0.6s ease-out;
}

/* Effet de survol sur les colonnes */
.footer-col {
    transition: transform 0.3s ease;
}

.footer-col:hover {
    transform: translateY(-3px);
}

/* Effet de gradient sur les boutons LinkedIn */
@keyframes linkedinGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 119, 181, 0.5);
    }
}

.btn-linkedin:hover,
.btn-linkedin-follow:hover
{
    animation: linkedinGlow 2s ease-in-out infinite;
}