/**
 * Styles pour le footer personnalisé Eliosfair - Structure simplifiée
 * 
 * @package Eliosfair
 * @since 1.0.0
 */

/* Footer Principal */
.eliosfair-footer {
    background-color: var(--copyright-color);
    color: var(--text-white);
    padding: 0;
}

/* Zone principale des widgets */
.footer-main {
    padding: 30px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Container du footer */
.footer-main .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout simple : 3 colonnes égales */
.footer-top-row {
    display: flex;
    gap: 40px;
}

/* 3 colonnes exactement égales */
.footer-widget-area {
    flex: 1;
    min-width: 0;
}

.footer-widget-left {
  text-align: center;
}

/* small map container */
.leaflet-container {
  border-radius: 12px;
}

/* Style pour la carte */
.footer-widget-left iframe,
.footer-widget iframe[src*="maps"],
.footer-widget iframe[src*="google"] {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Titres des widgets */
.footer-widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ast-global-color-0, #0274be);
    display: inline-block;
}

/* Widgets génériques */
.footer-widget {
    margin-bottom: 30px;
}

.footer-widget:last-child {
    margin-bottom: 0;
}

/* Listes dans les widgets */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget ul li:last-child {
    border-bottom: none;
}

/* Liens dans le footer */
.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--ast-global-color-0, #0274be);
}

/* Widget texte */
.footer-widget .textwidget {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Widget de navigation/menu */
.footer-widget .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget .menu-item {
    padding: 8px 0;
}

.footer-widget .menu-item a {
    display: inline-block;
    padding: 5px 0;
    transition: padding-left 0.3s ease;
}

.footer-widget .menu-item a:hover {
    padding-left: 10px;
    color: var(--ast-global-color-0, #0274be);
}

/* Zone Copyright */
.footer-copyright {
    background-color: var(--brand-darker-blue);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-copyright a:hover {
    color: var(--ast-global-color-0, #0274be);
}

/* Icônes sociales */
.footer-widget .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-widget .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-widget .social-icons a:hover {
    background-color: var(--ast-global-color-0, #0274be);
    transform: translateY(-3px);
}

/* Informations de contact */
.footer-widget .contact-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formulaire de contact dans le footer */
.footer-widget input[type="text"],
.footer-widget input[type="email"],
.footer-widget textarea {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 4px;
    margin-bottom: 15px;
}

.footer-widget input[type="text"]:focus,
.footer-widget input[type="email"]:focus,
.footer-widget textarea:focus {
    outline: none;
    border-color: var(--ast-global-color-0, #0274be);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-widget input[type="submit"],
.footer-widget button {
    background-color: var(--ast-global-color-0, #0274be);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-widget input[type="submit"]:hover,
.footer-widget button:hover {
    background-color: #025aa5;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    /* Mobile : tout en colonne unique */
    .footer-top-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-widget-area {
        width: 100%;
    }
    
    .footer-widget-left iframe {
        height: 250px;
    }
    
    .footer-widget-title {
        font-size: 16px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablette : réduire l'espace */
    .footer-top-row {
        gap: 30px;
    }
}

/* Animation d'apparition au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.footer-widget-area:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-widget-area:nth-child(3) {
    animation-delay: 0.2s;
}

/* Support pour le mode sombre du thème si nécessaire */
body.ast-theme-transparent-header .eliosfair-footer {
    margin-top: 0;
}