/* Base footer styles (tous écrans) */
#terreaux-custom-footer {
    background-color: #f1f1f1;
    width: 100%;
}
.footer-custom-separator-top {
    height: 1px;
    background-color: #000;
    width: 100%;
}
.footer-custom-separator-bottom {
    height: 2px;
    background-color: #ccc;
    margin: 0 auto;
    max-width: 700px;
}
.footer-custom-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-custom-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 5px 0;
    gap: 40px;
}
/* Colonne Logo */
.footer-custom-logo-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-custom-logo img {
    width: 150px!important;
    max-height: unset!important;
    height: auto;
}
.footer-custom-social-title {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    margin-bottom: 5px;
    margin-top: 0;
}
.footer-custom-social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-custom-social {
    display: flex;
    gap: 15px;
}
.footer-custom-social a {
    display: inline-block;
    transition: transform 0.3s ease;
}
.footer-custom-social a:hover {
    transform: scale(1.1);
}
.footer-custom-social img {
    width: 30px;
    height: 30px;
}
.footer-custom-menu-inline {
    font-size: 11px;
    text-align: center;
	margin-bottom:2px;
}
.footer-custom-menu-inline a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.footer-custom-menu-inline a:hover {
    color: #333;
}
/* Colonnes Menu */
.footer-custom-menu-column {
    display: flex;
    flex-direction: column;
}
.footer-custom-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
}
.footer-custom-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-custom-menu a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 500;
}
.footer-custom-menu a:hover {
    color: #333;
}
/* Footer Bottom */
.footer-custom-bottom {
    text-align: center;
}
.footer-custom-copyright {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

/* Desktop uniquement - hauteur fixe footer et panel */
@media (min-width: 769px) {
    #terreaux-custom-footer {
        height: 260px;
        min-height: 260px;
        position: relative;
        z-index: 50;
    }
    
    /* Ajuster la hauteur de la sidebar BuddyBoss */
    .buddypanel {
        height: calc(100vh - 260px) !important;
        min-height: calc(100vh - 260px) !important;
        max-height: calc(100vh - 260px) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 100 !important;
        transform: none !important;
    }
    .buddypanel .side-panel-inner {
        overflow-y: auto !important;
    }
    
    /* S'assurer que le contenu principal a assez de hauteur */
    #content,
    .site-content {
        min-height: calc(100vh - 260px);
    }
}

/* Mobile uniquement */
@media (max-width: 768px) {
    /* Footer responsive */
    #terreaux-custom-footer {
        position: relative;
        height: auto;
        min-height: auto;
        width: 100vw; /* Force pleine largeur */
        margin-left: calc(-50vw + 50%); /* Centre et étend */
        margin-right: calc(-50vw + 50%);
    }
    
	    /* GARDER SUR MOBILE UNIQUEMENT */
    .buddypanel .side-panel-inner {
        height: calc(100% - 60px) !important;
        overflow-y: auto !important;
    }
	
    /* Changer le grid en block pour pouvoir utiliser inline-block */
    .footer-custom-content {
        display: block !important;
        padding: 30px 0;
    }
    
	    /* Logo centré en haut */
    .footer-custom-logo-column {
        margin-bottom: 10px;
        align-items: center;
        text-align: center;
    }
	
    /* Centrer la colonne logo */
    .footer-custom-logo-column {
        align-items: center;
        text-align: center;
    }
    
    /* Social row en colonne sur mobile */
    .footer-custom-social-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Centrer les icônes sociales */
    .footer-custom-social {
        justify-content: center;
    }
    
    /* Menu inline centré */
    .footer-custom-menu-inline {
        text-align: center;
        margin-top: 0;
		margin-bottom:10px;
    }
    
    /* Les deux colonnes de menu côte à côte (48% chacune) */
    .footer-custom-menu-column {
        display: inline-block;
        width: 48%;
        vertical-align: top;
        text-align: center;
    }
    
	    .footer-custom-menu-column:first-of-type {
        margin-right: 4%;
    }
    .footer-custom-menu ul {
        text-align: center;
    }
    
    /* Buddypanel comportement normal */
    .buddypanel {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        position: relative !important;
    }
    

}

/* Responsive Mobile petit écran */
@media (max-width: 480px) {
    .footer-custom-container {
        padding: 0 15px;
    }
    
    .footer-custom-social img {
        width: 25px;
        height: 25px;
    }
    
    .footer-custom-logo img {
        max-width: 120px !important;
    }
    
    .footer-custom-copyright {
        font-size: 12px;
    }
    
    .footer-custom-menu-inline {
        font-size: 11px;
    }
}