/*
* Footer.css - Footer du Portfolio MMI
* Palette: Vieux rose (#C8A2A5), Charbon (#2A2729), Crème (#FEF6ED)
*/

/* === IMPORT DE BASE === */
@import url('https://fonts.googleapis.com/css2?family=League+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Glacial+Indifference:wght@400;700&display=swap');

/* === VARIABLES === */
:root {
    --vieux-rose: #C8A2A5;
    --vieux-rose-dark: #A88285;
    --vieux-rose-light: #DBBBBD;
    --charbon: #2A2729;
    --charbon-light: #403C3F;
    --creme: #FEF6ED;
    --creme-dark: #F0E8DF;
    --white: rgba(255, 255, 255, 0.61);
    --gray: #6D6366;
    --transition: all 0.3s ease;
}

/* === FOOTER PRINCIPAL === */
.footer {
    background: linear-gradient(135deg, var(--charbon) 0%, var(--charbon-light) 100%);
    color: var(--creme);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::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="footerGrain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === TOP SECTION === */
.footer-top {
    padding: 3rem 0 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(200, 162, 165, 0.2);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--vieux-rose);
    padding: 0.5rem;
    background-color: var(--white);
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.1);
    border-color: var(--vieux-rose-light);
    box-shadow: 0 5px 15px rgba(200, 162, 165, 0.3);
}

.footer-brand h2 {
    font-family: 'League Gothic', Impact, sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--creme);
    margin: 0;
}

.footer-brand p {
    font-family: 'Glacial Indifference', Arial, sans-serif;
    color: var(--vieux-rose-light);
    font-size: 1.1rem;
    margin: 0;
}

/* === GRID SECTION === */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-col {
    text-align: center;
}

.footer-col h4 {
    font-family: 'League Gothic', Impact, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--vieux-rose);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--vieux-rose);
    transition: var(--transition);
}

.footer-col:hover h4::after {
    width: 50px;
    background-color: var(--vieux-rose-light);
}

/* === LIENS DE NAVIGATION === */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.footer-links a {
    color: var(--creme);
    text-decoration: none;
    font-family: 'Glacial Indifference', Arial, sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--vieux-rose-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--vieux-rose-light);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

/* === INFORMATIONS DE CONTACT === */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Glacial Indifference', Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--creme);
}

.contact-item i {
    color: var(--vieux-rose);
    width: 16px;
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover i {
    color: var(--vieux-rose-light);
    transform: scale(1.2);
}

.contact-item a {
    color: var(--creme);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--vieux-rose-light);
}

/* === LIENS SOCIAUX === */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--vieux-rose) 0%, var(--vieux-rose-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Glacial Indifference', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(200, 162, 165, 0.3);
    white-space: nowrap;
    min-width: fit-content;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 162, 165, 0.4);
    background: linear-gradient(135deg, var(--vieux-rose-light) 0%, var(--vieux-rose) 100%);
}

.social-link i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover i {
    transform: scale(1.1);
}

.social-link span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* === BOTTOM SECTION === */
.footer-bottom {
    border-top: 1px solid rgba(200, 162, 165, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    margin: 0;
    font-family: 'Glacial Indifference', Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--gray);
}

.footer-bottom p:first-child {
    color: var(--creme);
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-content {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 0;
    }

    .footer-top {
        padding: 2rem 0 1.5rem 0;
    }

    .footer-brand h2 {
        font-size: 1.8rem;
    }

    .footer-brand p {
        font-size: 1rem;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .social-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
        justify-content: center;
    }

    .contact-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 0 1rem;
    }

    .footer-top {
        padding: 1.5rem 0 1rem 0;
    }

    .footer-brand h2 {
        font-size: 1.6rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-grid {
        gap: 2rem;
        padding: 1.5rem 0;
    }

    .footer-col h4 {
        font-size: 1.2rem;
    }

    .social-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.6rem;
        min-width: 120px;
        justify-content: center;
    }

    .social-link i {
        font-size: 1rem;
    }

    .contact-item {
        font-size: 0.85rem;
        gap: 0.6rem;
    }

    .footer-bottom {
        padding: 1.5rem 0;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col {
    animation: fadeInUp 0.6s ease-out;
}

.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; }

/* === ACCESSIBILITÉ === */
.social-link:focus,
.footer-links a:focus,
.contact-item a:focus {
    outline: 2px solid var(--vieux-rose-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === ÉTATS D'INTERACTION === */
.footer-logo:active {
    transform: scale(0.95);
}

.social-link:active {
    transform: translateY(-1px);
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #1a1819 0%, var(--charbon) 100%);
    }
}