/* Variables CSS - Palette Voyage (cohérente avec le header) */
:root {
    --footer-gradient-start: #2E7D32; /* Vert principal - nature, écologie */
    --footer-gradient-end: #66BB6A;   /* Vert secondaire - croissance, vie */
    --footer-accent: #F5F5DC;         /* Beige - papier recyclé */
    --footer-bg-promo: linear-gradient(135deg, #2E7D32 0%, #66BB6A 50%, #F5F5DC 100%);
    --footer-bg-main: #2E7D32;        /* Vert principal pour le fond principal */
    --footer-bg-copyright: #1B5E20;   /* Vert très foncé pour le copyright */
    --footer-text-light: #F5F5DC;     /* Beige clair pour le texte principal */
    --footer-text-muted: rgba(245, 245, 220, 0.8); /* Beige clair atténué */
    --footer-border: rgba(245, 245, 220, 0.2);     /* Bordures beige translucides */
    --footer-shadow: 0 -4px 20px rgba(46, 125, 50, 0.15); /* Ombre verte subtile */
    --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Variables complémentaires pour la cohérence Artisanatura */
    --footer-earth-tone: #8D6E63;     /* Terre - artisanat, naturel */
    --footer-link-hover: #66BB6A;     /* Vert secondaire pour les survols */
    --footer-widget-bg: rgba(245, 245, 220, 0.05); /* Fond subtil pour les widgets */
    --footer-button-bg: linear-gradient(135deg, #2E7D32, #66BB6A); /* Dégradé pour les boutons */
}

/* FOOTER GÉNÉRAL */
.travel-footer {
    margin-top: auto;
    box-shadow: var(--footer-shadow);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-full-width {
    width: 100%;
    padding: 0 20px;
}

/* SECTION 1: BLOCS PROMOTIONNELS */
.footer-promo-section {
    background: var(--footer-bg-promo);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.footer-promo-section::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.promo-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.promo-block {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--footer-transition);
    position: relative;
    overflow: hidden;
}

.promo-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--footer-transition);
    pointer-events: none;
}

.promo-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.promo-block:hover::before {
    opacity: 1;
}

.promo-block-image {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.promo-block-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--footer-transition);
}

.promo-block:hover .promo-block-image img {
    transform: scale(1.05);
}

.promo-block-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-block-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.promo-block-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--footer-transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.promo-block-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.promo-block-cta svg {
    transition: var(--footer-transition);
}

.promo-block-cta:hover svg {
    transform: translateX(3px);
}

/* Variantes de couleurs pour les blocs */
.promo-block-blue {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(74, 144, 226, 0.1));
}

.promo-block-green {
    background: linear-gradient(135deg, rgba(127, 176, 105, 0.2), rgba(127, 176, 105, 0.1));
}

.promo-block-beige {
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.2), rgba(245, 245, 220, 0.1));
}

/* STYLES POUR LES WIDGETS DANS LES BLOCS PROMO */
.promo-block-widget {
    width: 100%;
    text-align: center;
}

.promo-block-widget .widget {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.promo-block-widget .promo-block-title,
.promo-block-widget .widget-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.promo-block-widget p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.promo-block-widget img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: var(--footer-transition);
}

.promo-block:hover .promo-block-widget img {
    transform: scale(1.05);
}

.promo-block-widget a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--footer-transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 10px;
}

.promo-block-widget a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

/* Styles spéciaux pour les widgets boutons WordPress */
.promo-block-widget .wp-block-button {
    text-align: center;
    margin: 20px 0 0 0;
}

.promo-block-widget .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--footer-transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.promo-block-widget .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white !important;
}

/* Styles pour les widgets image */
.promo-block-widget .wp-block-image {
    margin-bottom: 20px;
    text-align: center;
}

.promo-block-widget .wp-block-image img {
    border-radius: 15px;
    transition: var(--footer-transition);
}

/* Styles pour les widgets texte */
.promo-block-widget .textwidget {
    text-align: center;
}

.promo-block-widget .textwidget h1,
.promo-block-widget .textwidget h2,
.promo-block-widget .textwidget h3,
.promo-block-widget .textwidget h4 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.promo-block-widget .textwidget h3 {
    font-size: 24px;
}

/* Styles pour les listes dans les widgets */
.promo-block-widget ul,
.promo-block-widget ol {
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.promo-block-widget li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* SECTION 2: FOOTER PRINCIPAL */
.footer-main-section {
    background: var(--footer-bg-main);
    padding: 80px 0;
    position: relative;
}

.footer-columns {
    display: grid;
    gap: 40px;
    align-items: flex-start;
}

.footer-columns-1 { grid-template-columns: 1fr; }
.footer-columns-2 { grid-template-columns: repeat(2, 1fr); }
.footer-columns-3 { grid-template-columns: repeat(3, 1fr); }
.footer-columns-4 { grid-template-columns: repeat(4, 1fr); }

.footer-column {
    color: var(--footer-text-light);
}

.footer-column h3,
.footer-column .widget-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--footer-gradient-start), var(--footer-gradient-end)) 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    transition: var(--footer-transition);
}

.footer-column ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--footer-gradient-start);
    font-weight: bold;
    opacity: 0;
    transition: var(--footer-transition);
}

.footer-column ul li:hover {
    transform: translateX(5px);
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding-left: 15px;
}

.footer-column ul li:hover::before {
    opacity: 1;
}

/* Styles spécifiques pour les liens de navigation du footer */
.footer-column .menu-link,
.footer-column .widget_nav_menu a {
    color: var(--footer-text-muted) !important;
    text-decoration: none;
    transition: var(--footer-transition);
    font-size: 15px;
    line-height: 1.6;
    display: block;
    padding: 8px 0;
}

.footer-column .menu-link:hover,
.footer-column .widget_nav_menu a:hover {
    color: white !important;
    text-decoration: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
    border-radius: 5px;
}

.footer-column a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: var(--footer-transition);
    font-size: 15px;
    line-height: 1.6;
}

.footer-column a:hover {
    color: white !important;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateX(3px);
}

.footer-column p {
    color: var(--footer-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Styles spéciaux pour le logo dans la colonne 1 */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(1.2);
}

/* Styles pour la newsletter */
.footer-newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--footer-border);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
    transition: var(--footer-transition);
}

.footer-newsletter-input:focus {
    border-color: var(--footer-gradient-start);
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-input::placeholder {
    color: var(--footer-text-muted);
}

.footer-newsletter-submit {
    background: linear-gradient(135deg, var(--footer-gradient-start), var(--footer-gradient-end));
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--footer-transition);
    white-space: nowrap;
}

.footer-newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Réseaux sociaux */
.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--footer-border);
    border-radius: 50%;
    color: var(--footer-text-light);
    text-decoration: none;
    transition: var(--footer-transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-social-link:hover {
    background: var(--footer-gradient-start);
    border-color: var(--footer-gradient-start);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
    text-decoration: none;
}

/* SECTION 3: COPYRIGHT */
.footer-copyright-section {
    background: var(--footer-bg-copyright);
    padding: 25px 0;
    border-top: 1px solid var(--footer-border);
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    color: var(--footer-text-muted);
    font-size: 14px;
    margin: 0;
}

.copyright-text p {
    margin: 0;
}

.footer-legal-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.footer-legal-menu a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--footer-transition);
    position: relative;
}

.footer-legal-menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--footer-gradient-start);
    transition: var(--footer-transition);
}

.footer-legal-menu a:hover {
    color: var(--footer-gradient-start);
    text-decoration: none;
}

.footer-legal-menu a:hover::after {
    width: 100%;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .footer-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-promo-section {
        padding: 40px 0;
    }
    
    .footer-main-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .promo-blocks-grid {
        grid-template-columns: 1fr;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-container,
    .footer-full-width {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .promo-block {
        padding: 20px;
    }
    
    .promo-block-title {
        font-size: 20px;
    }
    
    .footer-main-section {
        padding: 40px 0;
    }
    
    .footer-column h3,
    .footer-column .widget-title {
        font-size: 18px;
    }
    
    .footer-legal-menu {
        gap: 10px;
    }
    
    .footer-legal-menu a {
        font-size: 12px;
    }
}

/* Amélioration du contraste pour les titres de widget */
.footer-column .widget-title,
.footer-column h3 {
    color: var(--footer-accent) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}



.footer-column .widget_nav_menu ul::-webkit-scrollbar {
    width: 6px;
}

.footer-column .widget_nav_menu ul::-webkit-scrollbar-track {
    background: transparent;
}

.footer-column .widget_nav_menu ul::-webkit-scrollbar-thumb {
    background: var(--footer-gradient-start);
    border-radius: 3px;
}

/* Accessibilité */
.footer-column a:focus,
.footer-column .menu-link:focus,
.footer-column .widget_nav_menu a:focus,
.promo-block-cta:focus,
.footer-social-link:focus,
.footer-legal-menu a:focus {
    outline: 2px solid var(--footer-accent) !important;
    outline-offset: 2px;
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px;
}

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

.footer-column,
.promo-block {
    animation: fadeInUp 0.6s ease-out;
}