/**
 * Footer Solution CSS
 * Solution unifiée pour le footer et le fond de page
 * Version renforcée pour éviter les conflits
 */

/* Reset complet pour éviter les conflits */
html {
    height: 100% !important;
    background-color: #1a1a1a !important;
    scroll-behavior: smooth !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: #21912d #1a1a1a !important;
}

body {
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #1a1a1a !important;
    position: relative !important;
    overflow-x: hidden !important;
}

/* Structure principale avec z-index renforcé */
.smooth-scroll-container {
    flex: 1 0 auto !important;
    background-color: white !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 68px) !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* CORRECTION PRIORITAIRE POUR LE FOOTER - FORCE LA COULEUR */
.container-fluid.footer,
.footer {
    background: #222 !important;
    background-color: #222 !important;
    color: #fff !important;
    border-top: 5px solid #21912d !important;
    border-style: solid !important;
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Suppression explicite des classes de fond */
.footer.bg-light,
.footer.bg-white,
.footer.bg-dark {
    background: #222 !important;
    background-color: #222 !important;
    background-image: none !important;
}

/* Correction des liens et textes dans le footer */
.footer .footer-item h4 {
    color: #fff !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    position: relative !important;
    padding-bottom: 10px !important;
    text-shadow: none !important;
}

.footer .footer-item h4::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 50px !important;
    height: 3px !important;
    background-color: #21912d !important;
}

.footer .footer-item a,
.footer .footer-item p {
    color: #ccc !important;
    line-height: 30px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 5px !important;
    text-decoration: none !important;
    display: block !important;
    text-shadow: none !important;
}

.footer .footer-item a:hover {
    color: #21912d !important;
    letter-spacing: 0.5px !important;
    transform: translateX(5px) !important;
}

/* Formulaire d'inscription à la newsletter plus cohérent */
.footer .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    height: 45px !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
}

.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer .btn-primary {
    background-color: #21912d !important;
    border-color: #21912d !important;
    color: #fff !important;
    height: 45px !important;
    padding: 10px 25px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.footer .btn-primary:hover {
    background-color: #1a7a24 !important;
    border-color: #1a7a24 !important;
    transform: translateY(-2px) !important;
}

/* Correction pour la section de copyright */
.container-fluid.copyright,
.copyright {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ccc !important;
    padding: 15px 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

/* Suppression explicite des classes de fond sur le copyright */
.copyright.bg-light,
.copyright.bg-white,
.copyright.bg-dark {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    background-image: none !important;
}

.copyright a {
    color: #ccc !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.copyright a:hover {
    color: #21912d !important;
    text-decoration: none !important;
}

/* Boutons sociaux dans le footer */
.btn-square {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 5px !important;
}

.btn-square:hover {
    background: #21912d !important;
    transform: translateY(-2px) !important;
}

/* Scrollbar personnalisée */
html::-webkit-scrollbar {
    width: 8px !important;
}

html::-webkit-scrollbar-track {
    background: #1a1a1a !important;
}

html::-webkit-scrollbar-thumb {
    background-color: #21912d !important;
    border-radius: 4px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding-top: 40px !important;
        padding-bottom: 20px !important;
    }
    
    .footer .footer-item {
        margin-bottom: 30px !important;
    }
    
    .copyright {
        text-align: center !important;
        padding: 15px 0 !important;
    }
    
    .copyright .text-md-start,
    .copyright .text-md-end {
        text-align: center !important;
    }
}

/* Styles modernes pour le footer */
.footer {
    position: relative;
    background: linear-gradient(45deg, #1a1a1a, #222) !important;
    overflow: hidden;
}

/* Effet de motif en arrière-plan */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.footer-item {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.footer h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: #21912d;
    border-radius: 3px;
}

.footer p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.footer-item:hover p {
    color: #fff;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff;
    transform: translateX(10px);
}

.footer a i {
    color: #21912d;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.footer a:hover i {
    transform: rotate(360deg);
}

/* Style du formulaire newsletter */
.footer .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #21912d !important;
    box-shadow: 0 0 15px rgba(33, 145, 45, 0.3);
}

.footer .form-control::placeholder {
    color: #aaa;
}

.footer .btn-primary {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #21912d;
    border: none;
    transition: all 0.3s ease;
}

.footer .btn-primary:hover {
    background: #1a7b23;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 145, 45, 0.4);
}

/* Style de la section copyright */
.copyright {
    background: linear-gradient(45deg, #111, #1a1a1a) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.copyright .text-body {
    color: #aaa !important;
}

.copyright a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: #fff;
}

/* Style des boutons sociaux */
.btn-square {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-square:hover {
    background: #21912d;
    border-color: #21912d;
    transform: translateY(-3px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(33, 145, 45, 0.4);
}

/* Animation du bouton retour en haut */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21912d;
    border-radius: 12px;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.back-to-top:hover {
    background: #1a7b23;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 145, 45, 0.4);
} 