/**
 * Styles du Footer
 *
 * @package Evofia
 * @since 1.0.0
 */

/* ==========================================================================
   Section Réseaux Sociaux
   ========================================================================== */

.footer-social {
    position: relative;
}

.footer-social .star-decoration {
    animation: rotate-slow 60s linear infinite;
    opacity: 0.15;
}
.footer-social .star-decoration-no {
    position: absolute; top: -98px; right: 10%; width: 200px; height: 200px;z-index:10;
}
@media (max-width: 991px) {
    .footer-social .star-decoration-no {
        top: -50px;
        right: 5%;
        width: 100px;
        height: 100px;
    }
}
@media (max-width: 767px) {
    .footer-social .star-decoration-no {
        top: -40px;
        right: 5%;
        width: 80px;
        height: 80px;
    }
}
@keyframes rotate-slow {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

.footer-social-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icons {
    margin: 0 auto;
    max-width: 800px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: #D98622 !important;
}

.social-icon:focus {
    outline: 3px solid #46B370;
    outline-offset: 4px;
}

/* ==========================================================================
   Section Widgets
   ========================================================================== */

.footer-widgets {
    font-size: 0.9375rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
}

.footer-description {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-widget {
   /* margin-bottom: 2rem; */
}

.footer-widget .widget-title {
    color: #004052;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #004052;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: #46B370;
    padding-left: 5px;
}

.footer-menu a:focus {
    outline: 2px solid #46B370;
    outline-offset: 2px;
}

/* Widget navigation menu */
.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* display: grid; */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.widget_nav_menu ul li ul.sub-menu {
    list-style: disc;
    padding-left: 1rem;
}

.widget_nav_menu ul li.menu-item-has-children {
/* font-weight: bold; */
}

.widget_nav_menu ul li {
    list-style-position: outside;
    display: list-item;
    margin-top: 10px;
    font-weight: 600;
}

.widget_nav_menu ul li a {
    color: #004052;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: top;
    padding: 0rem 0.2rem;
}

.widget_nav_menu ul li ul.sub-menu li {
    color: #004052;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: top;
    padding: 0rem 0.2rem;
    margin-top:0;
    font-weight: 400;
	width:100%;
}
.widget_nav_menu ul li:not(.menu-item-has-children) a:hover {
    color: #fff !important;
    background:#D98622 !important;
    
}
.widget_nav_menu ul li.menu-item-has-children a, .widget_nav_menu ul li.menu-item-has-children a:hover {
    /* font-weight: bold; */
    color: #004052;
    cursor: default;
    }


.widget_nav_menu ul li.menu-item-has-children a:hover {
    color:#004052 !important;
    background:#fff !important;
    }

.widget_nav_menu ul.sub-menu li a:hover {
    color: #fff !important;
    background:#D98622 !important;
    
}
.widget_nav_menu ul li a:focus, .widget_nav_menu ul li a:active, .widget_nav_menu ul li.current_page_item a {
    color: #D98622 !important;
    background:#fff !important;
    
}

/* Widget HTML personnalisé */
.widget_custom_html .textwidget {
    color: #004052;
}

.widget_custom_html .textwidget a {
    color: #46B370;
    text-decoration: none;
}

.widget_custom_html .textwidget a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Section Légale
   ========================================================================== */

.footer-legal {
    font-size: 0.875rem;
}

.footer-legal p {
    opacity: 0.9;
}

.footer-legal-links a {
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

.footer-legal-links a:focus {
    outline: 2px solid #46B370;
    outline-offset: 2px;
}

.footer-legal-links span {
    opacity: 0.5;
    margin: 0 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .footer-social {
        padding: 50px 0 !important;
    }
    
    .footer-social-title {
        font-size: 2rem !important;
    }
    
    .social-icons {
        gap: 1.5rem !important;
    }
    
    .social-icon {
        font-size: 2rem !important;
        width: 50px;
        height: 50px;
    }
    
    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .widget_nav_menu ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-social {
        padding: 40px 0 !important;
    }
    
    .footer-social-title {
        font-size: 1.75rem !important;
    }
    
    .footer-social-subtitle {
        font-size: 1rem !important;
    }
    
    .star-decoration {
        width: 150px !important;
        height: 150px !important;
    }
    
    .footer-widgets {
        padding: 40px 0 !important;
    }
    
    .footer-menu {
        grid-template-columns: 1fr;
    }
    
    .widget_nav_menu ul {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        text-align: center !important;
    }
    
    .footer-legal .col-md-6 {
        text-align: center !important;
    }
    
    .footer-legal-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .footer-legal-links span {
        display: none;
    }
}

@media (max-width: 575px) {
    .social-icons {
        gap: 1rem !important;
    }
    
    .social-icon {
        font-size: 1.75rem !important;
        width: 45px;
        height: 45px;
    }
    
    .footer-logo img {
        max-height: 60px;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .footer-social {
        display: none !important;
    }
    
    .footer-widgets {
        background-color: white !important;
        padding: 20px 0 !important;
    }
    
    .footer-legal {
        background-color: white !important;
        color: black !important;
    }
    
    .social-icon {
        display: none;
    }
}

/* ==========================================================================
   Accessibilité
   ========================================================================== */

/* Mode contraste élevé */
@media (prefers-contrast: high) {
    .footer-social {
        border-top: 3px solid #D98622;
    }
    
    .social-icon:focus {
        outline-width: 4px;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .footer-widgets {
        background-color: #1a1a1a !important;
    }
    
    .footer-description,
    .footer-menu a,
    .widget_nav_menu ul li a {
        color: #e0e0e0 !important;
    }
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .star-decoration {
        animation: none;
    }
    
    .social-icon,
    .footer-menu a,
    .footer-legal-links a {
        transition: none;
    }
}

