:root {
    --ola-green: #006A4E;
    --ola-yellow: #FFCE00;
    --ola-red: #D21034;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 70px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.text-ola-green { color: var(--ola-green); }
.text-ola-yellow { color: var(--ola-yellow); }
.text-ola-red { color: var(--ola-red); }
.bg-ola-green { background-color: var(--ola-green); }
.bg-ola-yellow { background-color: var(--ola-yellow); }
.bg-ola-red { background-color: var(--ola-red); }

/* TOPBAR */
.topbar {
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.logo {
    text-decoration: none;
}

.search-bar {
    position: relative;
}

.search-bar input {
    border: 2px solid var(--ola-green);
    padding: 8px 40px 8px 15px;
    font-size: 0.9rem;
    width: 100%;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--ola-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 206, 0, 0.25);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* SUGGESTIONS DE RECHERCHE */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--ola-green);
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    color: #333;
}

.suggestion-item:hover {
    background-color: var(--ola-yellow);
}

.suggestion-item i {
    color: var(--ola-green);
    font-size: 0.85rem;
}

.suggestion-item:last-child {
    border-radius: 0 0 18px 18px;
}

.menu-link {
    text-decoration: none;
    color: var(--ola-green);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
}

.menu-link:hover {
    color: var(--ola-red);
}

.menu-link-icon {
    text-decoration: none;
    color: var(--ola-green);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.menu-link-icon:hover,
.menu-link-icon i:hover {
    color: var(--ola-red);
}

.menu-link-icon i {
    font-size: 1rem;
}

.menu-icon {
    font-size: 1.1rem;
    color: var(--ola-green);
    transition: color 0.3s;
}

.menu-icon:hover {
    color: var(--ola-red);
}

.btn-adhesion {
    background-color: var(--ola-green);
    color: white;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-adhesion:hover {
    background-color: var(--ola-red);
    color: white;
}

/* CATEGORIES NAV */
.categories-nav {
    z-index: 999;
    top: 60px;
}

.fixed-nav {
    position: fixed;
    width: 100%;
}

.category-link {
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-link:hover {
    background-color: var(--ola-yellow);
    color: #333;
}

/* SIDEBAR FILTER */
.sidebar-filter {
    position: sticky;
    top: 140px;
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-section h6 {
    color: var(--ola-green);
    border-bottom: 2px solid var(--ola-yellow);
    padding-bottom: 10px;
}

/* CATÉGORIES VUES SIDEBAR */
#scrollBreadcrumb {
    position: relative;
    transition: all 0.3s ease-in-out;
}

#scrollBreadcrumb.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#scrollCategories .badge {
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#scrollCategories .badge::after {
    content: '→';
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

#scrollCategories .badge:hover {
    transform: translateX(5px);
    background-color: var(--ola-red) !important;
}

#scrollCategories .badge:hover::after {
    opacity: 1;
}

/* PRODUCT CARDS */
.product-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card .price {
    font-size: 1.2rem;
}

.btn-ola-green {
    background-color: var(--ola-green);
    color: white;
    border: none;
}

.btn-ola-green:hover {
    background-color: #004d38;
    color: white;
}

.btn-ola-red {
    background-color: var(--ola-red);
    color: white;
    border: none;
}

.btn-ola-red:hover {
    background-color: #a00828;
    color: white;
}

.btn-outline-ola-green {
    border: 2px solid var(--ola-green);
    color: var(--ola-green);
}

.btn-outline-ola-green:hover {
    background-color: var(--ola-green);
    color: white;
}

.btn-outline-ola-red {
    border: 2px solid var(--ola-red);
    color: var(--ola-red);
}

.btn-outline-ola-red:hover {
    background-color: var(--ola-red);
    color: white;
}

/* CATEGORY SECTIONS */
.category-section {
    scroll-margin-top: 80px;
}

.category-title {
    color: var(--ola-green);
    border-left: 5px solid var(--ola-yellow);
    padding-left: 15px;
}

/* Amélioration du scroll horizontal pour les catégories */
.categories-nav .d-flex {
    scrollbar-width: thin;
    scrollbar-color: var(--ola-green) #f1f1f1;
}

.categories-nav .d-flex::-webkit-scrollbar {
    height: 6px;
}

.categories-nav .d-flex::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.categories-nav .d-flex::-webkit-scrollbar-thumb {
    background: var(--ola-green);
    border-radius: 3px;
}

.categories-nav .d-flex::-webkit-scrollbar-thumb:hover {
    background: var(--ola-red);
}

/* BREADCRUMB STYLES */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.breadcrumb-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: var(--ola-green);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: var(--ola-red);
}

.breadcrumb-item.active {
    color: var(--ola-green);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--ola-yellow);
    font-size: 1.2rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

/* Style spécifique pour la page catégorie avec icône */
.breadcrumb-item.active i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* === SELECTEUR DE LANGUE TOPBAR === */
.language-selector-topbar {
    position: relative;
    margin-left: 10px;
}

.lang-dropdown-topbar {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 50px;
}

.lang-dropdown-topbar:hover {
    border-color: var(--ola-green);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lang-flag-topbar {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

.lang-menu-topbar {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 70px;
    margin-top: 5px;
    display: none;
    z-index: 1001;
}

.lang-menu-topbar.show {
    display: block;
}

.lang-option-topbar {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.lang-option-topbar:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.lang-option-topbar.active {
    background-color: var(--ola-green);
    color: white;
}

.lang-option-topbar.active .lang-flag-topbar {
    border: 1px solid white;
}

.lang-text-topbar {
    font-weight: 500;
}

@media (max-width: 768px) {
    /* ... autres styles ... */

    .language-selector-topbar {
        margin-left: 5px;
        flex-shrink: 0; /* Empêche le rétrécissement */
    }
    
    .lang-dropdown-topbar {
        padding: 5px 6px;
        min-width: 45px;
    }
    
    .lang-flag-topbar {
        width: 16px;
        height: 12px;
    }
    
    .lang-menu-topbar {
        min-width: 65px;
    }
    
    .lang-option-topbar {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    /* ... autres styles ... */

    .language-selector-topbar {
        margin-left: 5px;
        order: 4; /* Place le sélecteur après le bouton Adhésion */
    }
    
    .btn-adhesion {
        order: 3; /* Assure que le bouton Adhésion vient avant */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }
    
    .topbar {
        padding: 8px 0;
    }
    
    .categories-nav {
        top: 100px;
    }
    
    .sidebar-filter {
        position: static;
        margin-bottom: 20px;
        padding: 15px 20px;
    }
    
    #scrollBreadcrumb {
        position: static;
        margin-top: 15px;
    }
    
    .category-section {
        scroll-margin-top: 100px;
    }
    
    .btn-adhesion {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .menu-link-icon span {
        display: none;
    }
    
    .menu-link-icon i {
        font-size: 1.1rem;
    }

    /* Suggestions responsive */
    .search-suggestions {
        max-height: 200px;
    }

    .suggestion-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    #scrollCategories .badge {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .breadcrumb {
        padding: 0.5rem 0;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.3rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #scrollCategories .badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .search-suggestions {
        border-radius: 0 0 15px 15px;
    }

    .suggestion-item:last-child {
        border-radius: 0 0 13px 13px;
    }

    .breadcrumb {
        padding: 0.4rem 0;
    }
    
    .breadcrumb-item {
        font-size: 0.75rem;
    }
    
    .breadcrumb-item.active i {
        font-size: 0.8rem;
        margin-right: 0.3rem;
    }
}

/* Amélioration de l'accessibilité */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-valid {
    border-color: #198754;
    background-image: none;
}

.form-select.is-invalid {
    border-color: #dc3545;
}

.form-select.is-valid {
    border-color: #198754;
}

.form-control:invalid:not(:placeholder-shown):not(.is-valid) {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-section {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--ola-yellow);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ola-yellow);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #495057;
}

.form-select {
    cursor: pointer;
}

/* Cursor pointer pour tous les éléments select */
select {
    cursor: pointer;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ola-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 106, 78, 0.15);
}

.btn-ola-yellow {
    border: 1px solid var(--ola-yellow);
    padding: 0.6rem 1rem;
}

.btn-ola-yellow:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
}

.form-check-input:checked {
    background-color: var(--ola-green);
    border-color: var(--ola-green);
}

.form-check-label {
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

/* Modal des conditions */
#conditionsModal .modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#conditionsModal .modal-header {
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.5rem;
}

#conditionsModal .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
}

.conditions-content {
    line-height: 1.8;
    color: #333;
    font-size: 0.95rem;
}

/* Styles pour le contenu TinyMCE */
.conditions-content h1, 
.conditions-content h2, 
.conditions-content h3,
.conditions-content h4,
.conditions-content h5,
.conditions-content h6 {
    color: var(--ola-green);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.conditions-content h1 {
    font-size: 1.8rem;
}

.conditions-content h2 {
    font-size: 1.5rem;
}

.conditions-content h3 {
    font-size: 1.3rem;
}

.conditions-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.conditions-content ul, 
.conditions-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.conditions-content li {
    margin-bottom: 0.5rem;
}

.conditions-content strong {
    color: var(--ola-green);
    font-weight: 600;
}

.conditions-content em {
    font-style: italic;
}

.conditions-content a {
    color: var(--ola-green);
    text-decoration: underline;
}

.conditions-content a:hover {
    color: var(--ola-red);
}

.conditions-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.conditions-content table th,
.conditions-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.conditions-content table th {
    background-color: var(--ola-green);
    color: white;
    font-weight: 600;
}

.conditions-content blockquote {
    border-left: 4px solid var(--ola-yellow);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

/* Animation pour les alertes */
.alert {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Boutons */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-control, .form-select {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    .btn-ola-yellow {
        padding: 0.5rem 0.8rem;
    }

    #conditionsModal .modal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .card-header h4 {
        font-size: 1.1rem;
    }

    .card-header small {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .form-check-label {
        font-size: 0.85rem;
    }

    /* Empiler les boutons sur mobile */
    .d-md-flex.justify-content-md-end {
        flex-direction: column-reverse;
    }

    .d-grid.gap-2 .btn {
        width: 100%;
    }
}

/* Amélioration de l'accessibilité et validation */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
    padding-right: 0.75rem;
}

.form-control.is-valid {
    border-color: #198754;
    background-image: none;
    padding-right: 0.75rem;
}

.form-select.is-invalid {
    border-color: #dc3545;
}

.form-select.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Indicateur de validation en temps réel pour le login */
#loginStatusContainer {
    min-height: 26px;
    transition: all 0.3s ease;
}

#loginStatus {
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les boutons toggle password */
.input-group .btn-outline-secondary {
    border-color: #ced4da;
    color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--ola-green);
    color: var(--ola-green);
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
}

/* Style pour les champs requis */
.text-danger {
    font-size: 0.9rem;
}

/* Animation du loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Style pour les tooltips */
[title] {
    cursor: help;
}

/* Amélioration du focus pour l'accessibilité */
*:focus-visible {
    outline: 2px solid var(--ola-green);
    outline-offset: 2px;
}

/* Style pour les fichiers */
input[type="file"] {
    padding: 0.5rem;
}

input[type="file"]::file-selector-button {
    background-color: var(--ola-yellow);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #e6b800;
    transform: translateY(-1px);
}

.menu-link,
.menu-link-icon{
    cursor: pointer;
}

/* Styles pour les toasts personnalisés */
.toast {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    min-width: 300px;
    max-width: 400px;
    border: none;
}

.toast.show {
    animation: slideInRight 0.3s ease-out;
}

.toast.hide {
    animation: slideOutRight 0.3s ease-in;
}

.toast.bg-success {
    background: linear-gradient(135deg, #198754, #157347) !important;
}

.toast.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.toast.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #000 !important;
}

.toast.bg-warning .btn-close {
    filter: invert(1);
}

.toast.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #0baccc) !important;
}

.toast-body {
    padding: 12px 16px;
    font-size: 0.9rem;
}

.toast-body ul {
    margin-top: 8px;
}

.toast-body li {
    margin-bottom: 4px;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .position-fixed.p-3 {
        padding: 1rem !important;
        margin-top: 70px !important;
    }
    
    .toast {
        min-width: 280px;
        max-width: 280px;
    }
    
    .toast-body {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
}

/* ========== FOOTER STYLES ========== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin-top: auto;
}

.footer-section {
    padding: 0 15px;
}

.footer-title {
    color: var(--ola-yellow);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--ola-green);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--ola-yellow);
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--ola-green);
    transition: color 0.3s ease;
}

.footer-links a:hover i {
    color: var(--ola-yellow);
}

.footer-contact li {
    color: #d1d1d1;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--ola-yellow);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--ola-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 106, 78, 0.3);
}

.social-link i {
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Couleurs spécifiques pour chaque réseau social au survol */
.social-link[title="Facebook"]:hover {
    background: #3b5998;
}

.social-link[title="Twitter"]:hover {
    background: #1da1f2;
}

.social-link[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link[title="LinkedIn"]:hover {
    background: #0077b5;
}

.social-link[title="YouTube"]:hover {
    background: #ff0000;
}

.social-link[title="WhatsApp"]:hover {
    background: #25d366;
}

/* Footer bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-bottom a {
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--ola-green) !important;
    text-decoration: underline !important;
}

/* Correction de l'alignement des boutons de bascule dans les input-group */
.input-group .btn-outline-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .375rem .75rem; /* Ajustement du padding si nécessaire */
}

/* S'assurer que l'input lui-même est bien aligné */
.input-group input.form-control {
    z-index: 1; /* S'assurer qu'il est au-dessus pour la sélection */
}

/* Responsive */
@media (max-width: 992px) {
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-section {
        padding: 0 10px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li:hover {
        transform: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .footer-contact i {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer {
        padding-top: 2rem !important;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.8rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ========== STYLES POUR LES SPINNERS DE BOUTONS ========== */

/* Spinner Bootstrap personnalisé */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* État de chargement pour les boutons */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    cursor: not-allowed !important;
}

/* Animation du spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border-animation 0.75s linear infinite;
}

@keyframes spinner-border-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Styles spécifiques pour différents types de boutons */
.btn-primary.loading,
.btn-ola-green.loading {
    background-color: rgba(0, 106, 78, 0.8);
    border-color: rgba(0, 106, 78, 0.8);
}

.btn-success.loading {
    background-color: rgba(25, 135, 84, 0.8);
    border-color: rgba(25, 135, 84, 0.8);
}

.btn-danger.loading,
.btn-ola-red.loading {
    background-color: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.8);
}

.btn-warning.loading,
.btn-ola-yellow.loading {
    background-color: rgba(255, 193, 7, 0.8);
    border-color: rgba(255, 193, 7, 0.8);
}

.btn-info.loading {
    background-color: rgba(13, 202, 240, 0.8);
    border-color: rgba(13, 202, 240, 0.8);
}

.btn-secondary.loading {
    background-color: rgba(108, 117, 125, 0.8);
    border-color: rgba(108, 117, 125, 0.8);
}

.btn-dark.loading {
    background-color: rgba(33, 37, 41, 0.8);
    border-color: rgba(33, 37, 41, 0.8);
}

.btn-light.loading {
    background-color: rgba(248, 249, 250, 0.8);
    border-color: rgba(248, 249, 250, 0.8);
    color: rgba(33, 37, 41, 0.8);
}

/* Styles pour les boutons outline en état de chargement */
.btn-outline-primary.loading {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.8);
    color: rgba(13, 110, 253, 0.8);
}

.btn-outline-success.loading {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.8);
    color: rgba(25, 135, 84, 0.8);
}

.btn-outline-danger.loading {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.8);
    color: rgba(220, 53, 69, 0.8);
}

.btn-outline-warning.loading {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.8);
    color: rgba(255, 193, 7, 0.8);
}

.btn-outline-info.loading {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.8);
    color: rgba(13, 202, 240, 0.8);
}

.btn-outline-secondary.loading {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.8);
    color: rgba(108, 117, 125, 0.8);
}

.btn-outline-dark.loading {
    background-color: rgba(33, 37, 41, 0.1);
    border-color: rgba(33, 37, 41, 0.8);
    color: rgba(33, 37, 41, 0.8);
}

.btn-outline-light.loading {
    background-color: rgba(248, 249, 250, 0.1);
    border-color: rgba(248, 249, 250, 0.8);
    color: rgba(248, 249, 250, 0.8);
}

.btn-outline-ola-green.loading {
    background-color: rgba(0, 106, 78, 0.1);
    border-color: rgba(0, 106, 78, 0.8);
    color: rgba(0, 106, 78, 0.8);
}

.btn-outline-ola-red.loading {
    background-color: rgba(210, 16, 52, 0.1);
    border-color: rgba(210, 16, 52, 0.8);
    color: rgba(210, 16, 52, 0.8);
}

/* Animation de pulsation pour les boutons en chargement */
.btn.loading {
    animation: button-loading-pulse 1.5s ease-in-out infinite;
}

@keyframes button-loading-pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.8;
    }
}

/* Styles pour les inputs de type submit */
input[type="submit"].loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    cursor: not-allowed !important;
}

/* Empêcher la sélection de texte sur les boutons en chargement */
.btn.loading {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Styles pour les petits boutons */
.btn-sm.loading .spinner-border {
    width: 0.8rem;
    height: 0.8rem;
    border-width: 0.1em;
}

/* Styles pour les grands boutons */
.btn-lg.loading .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.2em;
}

/* Couleur du spinner selon le type de bouton */
.btn-light.loading .spinner-border,
.btn-outline-light.loading .spinner-border,
.btn-ola-yellow.loading .spinner-border,
.btn-warning.loading .spinner-border {
    color: #333;
}

/* Animation d'apparition du spinner */
.btn.loading .spinner-border {
    animation: spinner-border-animation 0.75s linear infinite, spinner-fade-in 0.3s ease-in;
}

@keyframes spinner-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive - Ajustements pour mobile */
@media (max-width: 768px) {
    .btn.loading {
        font-size: 0.85rem;
    }
    
    .btn.loading .spinner-border {
        width: 0.9rem;
        height: 0.9rem;
    }
}

@media (max-width: 576px) {
    .btn.loading {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn.loading .spinner-border {
        width: 0.8rem;
        height: 0.8rem;
        border-width: 0.12em;
    }
}

/* Classe utilitaire pour désactiver le spinner sur certains boutons */
.no-spinner {
    /* Cette classe empêche l'ajout automatique du spinner */
}

/* Animation de transition douce */
.btn {
    transition: all 0.3s ease, opacity 0.2s ease;
}

/* Amélioration de l'accessibilité */
.btn.loading[aria-label] {
    /* Préserver les labels d'accessibilité */
}

/* Styles pour les boutons avec icônes */
.btn.loading i:not(.spinner-border) {
    display: none;
}

/* Correction pour les boutons dans les input-group */
.input-group .btn.loading {
    z-index: 2;
}

/* Styles pour les liens stylés comme des boutons */
a.btn.loading {
    text-decoration: none;
}

/* Animation spéciale pour les boutons critiques (suppression, etc.) */
.btn-danger.loading,
.btn-ola-red.loading {
    animation: button-loading-pulse 1s ease-in-out infinite, button-danger-glow 2s ease-in-out infinite;
}

@keyframes button-danger-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
    }
}

/* Styles pour les boutons de formulaire spéciaux */
.btn-submit.loading,
.btn-action.loading {
    transform: none;
}

.btn-submit.loading:hover,
.btn-action.loading:hover {
    transform: none;
}