/* Menu mobile et preloader - styles extraits de base.html */

/* Menu mobile */
.mobile-nav__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    backdrop-filter: blur(10px);
}

.mobile-nav__wrapper.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.mobile-nav__content {
    width: 85%;
    max-width: 350px;
    background-color: #ffffff;
    z-index: 10;
    position: relative;
    height: 100%;
    overflow-y: auto;
    padding: 2rem 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav__wrapper.active .mobile-nav__content {
    transform: translateX(0);
}

.mobile-nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    background: #006837;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 104, 55, 0.2);
}

.mobile-nav__close:hover {
    background: #004d29;
    transform: rotate(90deg);
}

.mobile-nav__content .logo-box {
    padding: 0 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mobile-nav__content .logo-box img {
    max-width: 180px;
    height: auto;
}

.mobile-nav__topbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 2rem 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav__topbar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 104, 55, 0.08);
    color: #006837;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-nav__topbar a:hover {
    background: #006837;
    color: white;
}

.mobile-nav__topbar a i {
    font-size: 1rem;
}

.mobile-nav__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav__menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mobile-nav__menu li a:hover {
    background-color: rgba(0, 104, 55, 0.05);
    color: #006837;
    padding-left: 2.5rem;
}

.mobile-nav__menu .dropdown ul {
    display: none;
    padding: 0;
    background-color: rgba(0, 104, 55, 0.03);
    border-left: 4px solid #006837;
}

.mobile-nav__menu .dropdown.active ul {
    display: block;
}

.mobile-nav__menu .dropdown ul li a {
    padding: 0.8rem 2rem 0.8rem 3rem;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-nav__menu .dropdown ul li a i {
    margin-right: 10px;
    font-size: 1rem;
    color: #006837;
    width: 20px;
    text-align: center;
}

.mobile-nav__menu .dropdown-btn {
    border: none;
    background: none;
    padding: 8px;
    margin-left: 5px;
    color: #666;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-nav__menu .dropdown-btn:hover {
    background-color: rgba(0, 104, 55, 0.1);
}

.mobile-nav__menu .dropdown.active .dropdown-btn {
    background-color: rgba(0, 104, 55, 0.1);
}

.mobile-nav__menu .dropdown.active .dropdown-btn i {
    transform: rotate(180deg);
    color: #006837;
}

.mobile-nav__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.mobile-nav__social a {
    width: 45px;
    height: 45px;
    background: #006837;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 104, 55, 0.2);
    font-size: 1.1rem;
}

.mobile-nav__social a:hover {
    background: #004d29;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 104, 55, 0.3);
}

.mobile-nav__toggler {
    width: 50px;
    height: 50px;
    background: #006837;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 104, 55, 0.2);
}

.mobile-nav__toggler:hover {
    background: #004d29;
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .mobile-nav__toggler {
        display: none;
    }
}

.mobile-nav__content::-webkit-scrollbar {
    width: 5px;
}

.mobile-nav__content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-nav__content::-webkit-scrollbar-thumb {
    background: #006837;
    border-radius: 10px;
}

.mobile-nav__content::-webkit-scrollbar-thumb:hover {
    background: #004d29;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

#preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#2E7D32 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

#preloader.active {
    opacity: 1;
    visibility: visible;
}

.preloader-content {
    text-align: center;
    position: relative;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 400px;
    width: 90%;
}

.preloader-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #2E7D32, #4CAF50);
    border-radius: 5px 5px 0 0;
}

.preloader-logo {
    margin-bottom: 25px;
    animation: pulse 2s infinite;
    position: relative;
}

.preloader-logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #2E7D32, #4CAF50);
    border-radius: 2px;
}

.preloader-logo img {
    height: 70px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.preloader-spinner {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.spinner-circle {
    width: 15px;
    height: 15px;
    background-color: #2E7D32;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}

.spinner-circle:nth-child(1) {
    animation-delay: -0.32s;
    background-color: #2E7D32;
}

.spinner-circle:nth-child(2) {
    animation-delay: -0.16s;
    background-color: #4CAF50;
}

.spinner-circle:nth-child(3) {
    background-color: #81C784;
}

.preloader-text {
    color: #2E7D32;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeInOut 1.5s infinite;
    position: relative;
    padding: 10px 0;
}

.preloader-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #2E7D32, #4CAF50);
    border-radius: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (max-width: 576px) {
    .preloader-content { padding: 20px; }
    .preloader-logo img { height: 50px; }
    .spinner-circle { width: 12px; height: 12px; }
    .preloader-text { font-size: 14px; }
}

/* Client carousel */
.client-carousel {
    padding: 60px 0;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.client-carousel .section-title {
    margin-bottom: 50px;
}

.client-carousel .section-title h2 {
    font-size: 2.5rem;
    color: #006837;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.client-carousel .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #006837, #00a651);
}

.client-carousel .section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 20px;
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .client-carousel { padding: 40px 0; margin-bottom: 60px; }
    .client-carousel .section-title { margin-bottom: 40px; }
    .partner-logo { height: 80px; padding: 15px; margin-bottom: 15px; }
}

@media (max-width: 767px) {
    .client-carousel { padding: 30px 0; margin-bottom: 50px; }
    .client-carousel .section-title { margin-bottom: 30px; }
    .client-carousel .section-title h2 { font-size: 2rem; }
    .partner-logo { height: 70px; padding: 10px; }
}
