/* ==========================================================================
   FOOTER (BAS DE PAGE) - COMPLET & CORRIGÉ
   ========================================================================== */

footer {
    width: 100%; 
    background-color: #dbe0eb; 
    padding: 40px 0;
    margin-top: auto; /* Force le footer en bas si la page a peu de contenu */
    display: flex;
    justify-content: center;
}

.footer-content {
    width: 100%;
    max-width: 1200px; 
    padding: 0 40px;
    display: flex;
    justify-content: space-around; 
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.footer-column h3 {
    font-family: 'rainyhearts', sans-serif;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #212121;
}

/* --- LISTES ET LIENS DU PLAN DU SITE --- */

footer ul.plan {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; 
    gap: 12px; 
    text-align: center;
}

footer ul.plan li a {
    font-family: 'rainyhearts', sans-serif;
    font-size: 1.2rem;
    color: #212121;
    text-decoration: none;
    padding: 4px 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: inline-block;
}

footer ul.plan li a:hover {
    color: #fffaf5;
    background-color: #212121;
    border-color: #212121;
}

footer ul.plan li.prim a {
    font-weight: bold;
}

/* --- STRUCTURES DE SECOURS / AUTRES COLONNES --- */

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE FOOTER (MOBILE)
   ========================================================================== */

@media (max-width: 600px) {
    footer {
        width: 100%; /* Reste à 100% pour que le fond bleu-gris couvre tout l'écran */
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 40px; /* Espace les colonnes lorsqu'elles s'empilent */
        padding: 0 20px;
    }
}