/* Ligne jaune entre le carousel et le footer : remise en conformité avec son
   propre nom de classe ("yellow-line"), qui utilisait en réalité un dégradé de
   rouges avant cette charte -- alignée sur l'Or Jaune officiel (#FFBF00). */
.footer-yellow-line {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #7a5b00 0%, #b38600 38%, #e0a800 72%, #FFBF00 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 2px 10px rgba(255, 191, 0, 0.35);
    border: none;
}

/* Base Wrapper for Sticky Footer : fond Fer Noir officiel (#000000), charte
   graphique CCM -- remplace l'ancien dégradé rouge/marron (#0d0304…#3a0a0c)
   qui n'était pas un noir de marque. */
.footer-wrapper {
    background-color: #000000;
    color: #fff;
    margin-top: auto; /* Push footer down */
    font-family: inherit;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Typography --- */
.footer-title {
    font-family: "Roboto", sans-serif; /* Montserrat retirée (charte graphique CCM) */
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
    align-self: flex-start;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 2px;
    background-color: #FE1C03; /* Rouge Ardent officiel en accent sur fond noir */
    transition: width 0.3s ease;
}

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

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 15px;
}

/* --- Column 1: About --- */
.footer-about {
    align-items: flex-start;
    padding-right: 20px;
}

.footer-club-logo {
    width: clamp(100px, 10vw, 130px);
    height: auto;
    margin-bottom: 2px;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.4));
}

.devise {
    font-family: "Bebas Neue", cursive;
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1.1;
    color: #fff;
    margin: 5px 0 0 0;
    letter-spacing: 0.5px;
    text-align: left;
}

.devise-break {
    display: block;
}

/* --- Lists (Nav & Legal) --- */
.footer-nav-split {
    display: flex;
    gap: 35px;
}

.footer-nav-list,
.footer-legal-list,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a,
.footer-legal-list a,
.footer-contact-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: "Roboto", sans-serif; /* Montserrat retirée (charte graphique CCM) */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-nav-list a:hover,
.footer-legal-list a:hover {
    color: #FFBF00;
    transform: translateX(6px);
}

.footer-contact-list a:hover {
    color: #fff; 
}

.footer-contact-list a:hover i {
    transform: scale(1.2);
}

.footer-contact-list a i {
    transition: transform 0.3s ease;
}

.footer-contact-list i {
    color: #FE1C03; /* Rouge Ardent officiel */
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* --- Socials --- */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 5px 12px rgba(254, 28, 3, 0.3);
}

.social-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}


/* --- Footer Bottom --- */
.footer-bottom {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: "Roboto", sans-serif; /* Montserrat retirée (charte graphique CCM) */
}

/* --- Media Queries --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        padding: 40px 20px 30px;
    }
    
    /* Centrer la 3e colonne sur tablette pour un meilleur équilibre */
    .footer-legal-col {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        margin-top: 10px;
    }
    
    .footer-legal-col .footer-title {
        align-self: center;
    }
    
    .footer-legal-col .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-legal-col .footer-contact-list,
    .footer-legal-col .footer-legal-list {
        align-items: center;
    }
}

@media (max-width: 650px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 35px 20px 25px;
    }

    .footer-title {
        align-self: center;
        text-align: center;
    }

    .footer-col:hover .footer-title::after,
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
    }

    .footer-about {
        align-items: center;
        text-align: center;
        padding-right: 0;
    }

    .devise {
        text-align: center;
        font-size: 1.8rem; /* Un peu plus petit sur mobile */
    }

    .footer-nav-split {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap; 
        text-align: center;
    }
    
    .footer-nav-split ul {
       min-width: 130px;
    }

    .footer-nav-list,
    .footer-legal-list,
    .footer-contact-list {
        align-items: center;
    }

    .footer-nav-list a:hover,
    .footer-legal-list a:hover {
        transform: translateY(-3px); 
    }

    .footer-contact-list a {
        text-align: center;
        flex-direction: column; 
        gap: 6px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-nav-list a,
    .footer-legal-list a,
    .footer-contact-list a {
        padding: 8px 0; /* Touch targets plus larges */
        min-height: 40px; 
    }
}
