/*
 * Fichier : footer.css
 * Description : Styles spécifiques pour le pied de page du site.
 */

/* Variables de couleur */
:root {
    --primary-blue: #91ceeb;
    --primary-red: #e83a33;
    --primary-green: #309144;
    --primary-yellow: #dcdf4e;
    --light-gray: #ebe9ea;
    --dark-text: #200a0d;
}

/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Footer Styles */
footer {
    background: #000;
    color: white;
    padding: 50px 20px 20px;
    margin-top: auto;
    /* Centrage et marges */
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 50px;
    border-radius: 20px; /* Optionnel, pour un look plus moderne */
}

.footer-container {
    max-width: 1200px; /* La largeur maximale du contenu */
    width: 100%; /* S'assure que le conteneur s'adapte aux écrans plus petits */
    padding: 0 20px; /* Ajoute une marge intérieure de 20px sur les côtés */
    margin: 0 auto; /* Centre le conteneur horizontalement */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-yellow);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 8px;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    color: var(--primary-green);
}

.footer-contact {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    font-size: 1rem;
    color: var(--primary-red);
    margin-right: 15px;
}

.footer-contact div {
    font-size: 0.95rem;
    color: #e0e0e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    /* Centrage et interligne */
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.footer-bottom-text {
    font-size: 1.2rem;
}

.footer-bottom-text strong {
    color: var(--primary-green);
    font-weight: 700;
}

.footer-legal-links {
    margin-top: 10px;
    font-size: 1rem;
}

.footer-legal-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.footer-legal-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    margin-top: 15px;
}

.newsletter-form h3 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

.newsletter-form h3::after {
    background-color: var(--primary-red);
}

.newsletter-form input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.9);
}

.newsletter-form button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.newsletter-form button:hover {
    background-color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-column {
        margin-bottom: 30px;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-column,
    .footer-links,
    .footer-contact,
    .social-links,
    .newsletter-form {
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .footer-links a,
    .footer-contact div {
        text-align: center;
    }
}
