/* Import de la police Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #990047;
    --primary-hover: #7d003a;
    --secondary-color: #3A8A3D;
    --secondary-hover: #2d6c2f;
    --success-color: #3A8A3D;
    --danger-color: #990047;
    --text-color: #333;
    --light-text: #fff;
    --filter-bg: #fff;
    --filter-active: #990047;
    --filter-hover: #f3f4f6;
    --background-color: #dfe2e6;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

[data-theme="dark"] {
    --text-color: #ffffff;
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --input-background: #333333;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
}



/* Navigation */
.navbar {
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100px;
    display: flex;
    align-items: center;
}

.navbar-scrolled {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles de base pour tous les liens de navigation */
.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

/* État par défaut (non scrollé) pour le header normal */
.navbar-dark .nav-link:not(#loginButton) {
    color: white !important;
}

/* État scrollé pour le header normal et état par défaut pour le header-solid */
.navbar-scrolled .nav-link:not(#loginButton),
.navbar:not(.navbar-dark) .nav-link:not(#loginButton) {
    color: var(--text-color) !important;
}

/* Style spécifique pour le bouton de connexion */


/* Responsive Design */
@media (max-width: 439px) {
  body {
    font-size: 14px; /* Réduire la taille de la police sur très petits écrans */
  }

  .hero-search-container  {
    flex-direction: column;
    align-items: center;
  }

  .display-2 {
    font-size: 2rem !important;
  }

  .publish-text {
    font-size: 1rem !important;
    }

    .hero {
        height: 100vh;
        padding: 0rem;
    }

    #navbarNav {
        background-color: var(--background-color)!important;
        max-width: fit-content !important;
        border-radius: 5px !important;
    }
}

/* Responsive Typography */
@media (max-width: 1500px) {
    .display-2 {
        font-size: 3rem !important;
    }
}

@media (max-width: 1200px) {
    .display-2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 991px) {
    .display-2 {
        font-size: 2rem !important;
    }
}

/* Styles personnalisés */

/* Reset pour assurer le full width */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles généraux */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 80px;
    background-color: var(--background-color);
    min-height: 100vh;
}

/* Hero section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
    margin-top: -60px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    margin-top: -5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-left :20%;
    margin-right:20%;
    text-align: center !important;
}

.hero-content h1 {
    color: white !important;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-search-container {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto;
}

.hero-search-container .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: white;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-search-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.hero-search-container .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
}

.hero-search-container .btn {
    border-radius: 10px;
    background-color: var(--success-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

.hero-search-container .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slogan {
    font-size: 1.25rem !important;
    text-align: center;
}

/*                RESPONSIVE             */

/* Pour les écrans plus petits que 440px */
@media (max-width: 440px) {
    .container.mx-auto.px-4.mt-4 {
        padding: 0.5rem !important;
    }

    .publish-text {
        font-size: 1rem !important;
    }

    .hero {
        height: 100vh;
        padding: 0rem;
    }
    
    .hero-content {
        margin-left: 5% !important;
        margin-right: 5% !important;
        margin-top: 7rem!important;
        padding: 0 !important;
        font-size: 1.5rem !important;
    }

    .navbar-toggler {
        margin-left: auto;
        margin-right: auto;
    }

    .navbar .nav-link {
        color: #333!important;
        transition: color 0.3s ease;
    }

    #navbarNav{
        margin-left: auto;
        margin-right: auto; 
    }

    .filters {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .map-container {
        height: 300px;
        border-radius: 12px;
        overflow: hidden;
    }
    /* Ajustement des marges */
    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* Pour les écrans plus petits que 772px */
@media (min-width: 441px) and (max-width: 771px) {

    .container.mx-auto.px-4.mt-4 {
        padding: 1rem !important;
        max-width: 90% !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        height: 100vh;
        
    }

    .hero-content {
        margin-left: 10% !important;
        margin-right: 10% !important;
    }

    .map-container {
        height: 400px;
        border-radius: 12px;
        overflow: hidden;
    }
}
}

/* Hero section responsive */
@media (min-width: 772px) {
    .hero {
        height: 70vh !important;
        min-height: 500px; /* Pour éviter qu'elle soit trop petite sur les grands écrans en hauteur */
        margin-top: -100px;
    }
}

/* Pour les écrans en dessous de 991px
@media (max-width: 991px) {
    .hero-content {
        margin-left: 10% !important;
        margin-right: 10% !important;
    }
}

/* Pour les écrans plus grand que 992px 
@media (min-width: 992px) {
    .hero-search-container {
        flex-direction: row;
    }
    .hero-search-container .form-control,
    .hero-search-container .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .hero-content {
        margin-left: 10%;
        margin-right: 10%;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }

    .hero-content {
        margin-left: 5%;
        margin-right: 5%;
    }

    .slogan {
        font-size: 1.1rem !important;
        margin-bottom: 2rem;
    }
}

@media (min-width: 772px) {
    .row > .col-md-7 {
        width: 60%;
        padding-right: 1rem !important;
        padding-left: 0rem !important;
    }
    
    .row > .col-md-5 {
        width: 40%;
        padding-left: 1rem !important;
        padding-right: 0rem !important;
    }
}

@media (max-width: 991px) {
    .event-filters,
    .calendar-container {
        min-height: auto;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .image-block {
        flex-direction: column;
    }
    
    .info-block {
        flex-direction: column;
    }
    
    .map-block,
    .organizer-block {
        width: 100%;
    }
}

/* Search bar */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-container .d-flex {
    gap: 1rem;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 1px solid #333;
    border-radius: 10px;
    background: transparent;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
    backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-bar input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
}

.search-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: rgba(255, 255, 255, 0.8);
}

.create-event {
    align-items: center;
    padding: 1rem 1rem;
    color: white;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.create-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* Filtres */
.filters-container {
    background: var(--filter-bg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: var(--filter-hover);
    border: none;
    font-weight: 500;
}

.filter-tab.active {
    background: var(--primary-color);
    color: var(--light-text);
}

.filter-tab:not(.active):hover {
    background: var(--filter-hover);
}

.filter-category {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--filter-hover);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.filter-category span {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.filter-category.active {
    background: var(--primary-color);
    color: var(--light-text);
}

.filter-category:not(.active):hover {
    background: var(--filter-hover);
}

/* Styles du filtre de distance */
.filter-distance {
    margin-top: 0rem;
    padding: 1.5rem;
    background: var(--filter-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-distance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-distance-title {
    font-weight: 500;
    color: var(--text-color);
}

.filter-distance-value {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.filter-distance-value.hidden {
    opacity: 0;
    pointer-events: none;
}

.filter-distance-content {
    display: block;
    margin-top: 0rem;
}

.filter-distance-content.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.filter-distance-content.disabled .form-range {
    cursor: not-allowed;
}

/* Styles pour le range input */
.form-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color) var(--range-progress, 0%), #e9ecef var(--range-progress, 0%));
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Styles pour les ticks */
.range-ticks {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0;
    width: 100%;
}

.tick {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1px;
    transform: translateX(-50%);
}

.tick::before {
    content: '';
    display: block;
    width: 1px;
    height: 6px;
    background-color: #999;
    margin-bottom: 2px;
}

.tick-label {
    font-size: 0.75rem;
    color: #666;
    line-height: 1;
}


/* Styles spécifiques pour les boutons */


/* Styles des pastilles pour tous les boutons */




/* Styles pour les filtres */




/* Styles pour les cartes d'événements - Déplacé vers events.css */
/* .event-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.event-card .card-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-card .card-text {
    color: #666;
    margin-bottom: 1rem;
}

.event-card .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
} */

/* Style du bouton réinitialiser */
.btn-reset {
    color: var(--secondary-color);
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-reset:hover {
    color: var(--success-color);
}

.btn-reset i {
    font-size: 1.1rem;
}

/* Styles des pastilles de catégorie */
.filter-category {
    position: relative;
    padding-right: 2.5rem;
}

.filter-category::after {
    content: attr(data-count);
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary-color);
    color: white;
}

.badge-category {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
}

/* Styles pour le popup des marqueurs */
.event-popup {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.event-popup-image {
    position: relative;
    width: 100%;
}

.event-popup-container {
    padding: 0;
}

.event-popup-container .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.event-popup-container .leaflet-popup-content {
    margin: 0;
    width: 300px !important;
}

.event-popup-container .leaflet-popup-close-button {
    padding: 8px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.event-popup-content {
    background: #fff;
}

.event-popup-content h5 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

.event-popup .badge-category {
    font-size: 0.8rem;
    padding: 4px 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
}

/* Styles pour les marqueurs de la carte */
.marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.marker-icon i {
    font-size: 24px;
    color: #dc3545;
}

.marker-icon.running i {
    color: #198754;
}

.marker-icon.hiking i {
    color: #0d6efd;
}

.marker-icon.cycling i {
    color: #fd7e14;
}

/* Styles pour les popups */
.event-popup-container {
    margin-top: -10px;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 0;
    width: 300px !important;
}

.event-popup {
    background: white;
}

.event-popup-image {
    position: relative;
    width: 100%;
    height: 120px;
}

.event-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-popup-content {
    padding: 15px;
}

/* Thème sombre */
body.dark-theme {
    background-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-theme .navbar {
    background-color: transparent;
}

body.dark-theme .navbar-scrolled {
    background-color: rgba(84, 84, 84, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-theme .event-filters,
body.dark-theme .calendar-container,
body.dark-theme .event-card {
    background-color: #545454 !important;
    border: 1px solid rgba(224, 224, 224, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.dark-theme .btn-light {
    background-color: #5e5e5e;
    border-color: rgba(224, 224, 224, 0.05);
    color: #e0e0e0;
}

body.dark-theme .btn-light:hover {
    background-color: #656565;
    border-color: rgba(224, 224, 224, 0.08);
}

body.dark-theme .nav-link {
    color: #e0e0e0 !important;
}

body.dark-theme .event-card h5,
body.dark-theme .event-card p {
    color: #e0e0e0;
}

body.dark-theme .calendar-header,
body.dark-theme .calendar-body {
    background-color: #545454;
    color: #e0e0e0;
}

body.dark-theme .calendar td {
    background-color: #656565;
    border-color: rgba(224, 224, 224, 0.05);
}

body.dark-theme .calendar td > div {
    color: #ffffff;
}

body.dark-theme .calendar td.other-month {
    background-color: #5e5e5e;
}

body.dark-theme .calendar td.other-month > div {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .calendar td.today {
    background-color: #757575;
    border: 2px solid var(--primary-color);
}

body.dark-theme .calendar td.has-events {
    background-color: var(--secondary-color);
}

body.dark-theme .calendar td.has-events:hover {
    background-color: var(--secondary-hover);
}

body.dark-theme .filter-distance {
    background-color: #656565;
    border-color: rgba(224, 224, 224, 0.05);
    padding: 15px;
    border-radius: 8px;
}

body.dark-theme .filter-distance label {
    color: #ffffff;
}

body.dark-theme .distance-value,
body.dark-theme .tick-label {
    color: #ffffff !important;
}

body.dark-theme .card {
    background-color: #545454;
}

body.dark-theme .card-title {
    color: #ffffff;
}

body.dark-theme .card-text {
    color: #ffffff;
}

body.dark-theme .text-muted,
body.dark-theme .card-text.text-muted {
    color: #e0e0e0 !important;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background-color: #5e5e5e !important;
    border-color: rgba(224, 224, 224, 0.05) !important;
    color: #e0e0e0 !important;
}

body.dark-theme input::placeholder,
body.dark-theme select::placeholder,
body.dark-theme textarea::placeholder {
    color: #c0c0c0 !important;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    background-color: #656565 !important;
    border-color: rgba(224, 224, 224, 0.1) !important;
    box-shadow: 0 0 0 0.25rem rgba(224, 224, 224, 0.15) !important;
}

body.dark-theme .modal-content {
    background-color: #2d2d2d;
    border-color: rgba(224, 224, 224, 0.05);
}

body.dark-theme .modal-header,
body.dark-theme .modal-footer {
    border-color: rgba(224, 224, 224, 0.05);
}

/* Filtre de proximité en mode sombre */
body.dark-theme .filter-distance {
    background-color: #656565;
    border-color: rgba(224, 224, 224, 0.05);
    padding: 15px;
    border-radius: 8px;
}

body.dark-theme .filter-distance label {
    color: #ffffff;
}

body.dark-theme .distance-value,
body.dark-theme .tick-label {
    color: #ffffff !important;
}

/* Liste des événements en blanc */
body.dark-theme .event-list .event-card {
    background-color: #545454;
}

body.dark-theme .event-list .event-card h5 {
    color: #ffffff;
}

body.dark-theme .event-list .event-card .event-date,
body.dark-theme .event-list .event-card .event-location,
body.dark-theme .event-list .event-organizer {
    color: #e0e0e0;
}

body.dark-theme .event-list .event-card .event-details {
    color: #ffffff;
}

/* Header en mode sombre */
body.dark-theme .navbar {
    background-color: transparent;
}

body.dark-theme .navbar-scrolled {
    background-color: rgba(84, 84, 84, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Événements en mode sombre */
body.dark-theme .card {
    background-color: #545454;
}

body.dark-theme .card-title {
    color: #ffffff;
}

body.dark-theme .card-text {
    color: #ffffff;
}

body.dark-theme .text-muted,
body.dark-theme .card-text.text-muted {
    color: #e0e0e0 !important;
}

/* Calendrier en mode sombre */
body.dark-theme .calendar td.has-events {
    background-color: var(--secondary-color);
}

body.dark-theme .calendar td.has-events:hover {
    background-color: var(--secondary-hover);
}

/* Filtre de proximité en mode sombre */
body.dark-theme .filter-distance {
    background-color: #656565;
    border-color: rgba(224, 224, 224, 0.05);
    padding: 15px;
    border-radius: 8px;
}

body.dark-theme .filter-distance label {
    color: #ffffff;
}

body.dark-theme .distance-value,
body.dark-theme .tick-label {
    color: #ffffff !important;
}

/* Événements en mode sombre */
body.dark-theme .card {
    background-color: #545454;
}

body.dark-theme .card .card-title {
    color: #ffffff;
}

body.dark-theme .card .card-text {
    color: #ffffff;
}

body.dark-theme .card .card-text.text-muted,
body.dark-theme .card .text-muted {
    color: #ffffff !important;
}

body.dark-theme .card i.bi {
    color: #ffffff;
}

/* Footer en mode clair et sombre */
footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer h5 {
    color: #333;
    margin-bottom: 1rem;
}

footer p, 
footer a {
    color: #666;
}

footer a:hover {
    color: #333;
    text-decoration: none;
}

/* Footer en mode sombre */
body.dark-theme footer.bg-light {
    background-color: rgba(84, 84, 84, 0.95) !important;
}

body.dark-theme footer h5,
body.dark-theme footer p,
body.dark-theme footer a,
body.dark-theme footer small,
body.dark-theme footer i.bi {
    color: #ffffff !important;
}

body.dark-theme footer a:hover {
    color: #e0e0e0 !important;
}

body.dark-theme footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Barre de recherche en mode sombre */
body.dark-theme .hero-search-container .form-control {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

body.dark-theme .hero-search-container .form-control:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    outline: none !important;
}

body.dark-theme .hero-search-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Styles du modal de login */
#loginModal .modal-dialog {
    max-width: 400px !important;
}

#loginModal .modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 1rem !important;
}

#loginModal .modal-header {
    border: none !important;
    text-align: center !important;
    position: relative !important;
    padding-bottom: 0 !important;
}

#loginModal .modal-title {
    width: 100% !important;
    text-align: center !important;
    font-size: 1.75rem !important;
    color: var(--secondary-color) !important;
}

#loginModal .btn-close {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

#loginModal .form-control {
    padding: 0.75rem 1rem !important;
    border: 2px solid #666 !important;
    border-radius: 10px !important;
}

/* Style du bouton de connexion */
#loginModal .btn-secondary,
#forgotPasswordModal .btn-secondary,
#registerModal .btn-secondary {
    padding: 0.75rem 2.5rem !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    margin: 1rem auto !important;
    min-width: 200px !important;
    background-color: var(--secondary-color) !important;
    border: none !important;
    color: var(--light-text) !important;
}

#loginModal .btn-secondary:hover,
#forgotPasswordModal .btn-secondary:hover,
#registerModal .btn-secondary:hover{
    background-color: var(--secondary-hover) !important;
    color: var(--light-text) !important;
}

/* Style des liens */
#loginModal .text-center {
    text-align: center !important;
    margin-bottom: 0.75rem !important;
}

#loginModal .text-center:last-child {
    margin-bottom: 0 !important;
}

#loginModal a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

#loginModal a:hover {
    color: var(--primary-hover) !important;
}

#loginModal .form-check {
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
}

/* Mode sombre */
body.dark-theme #loginModal .modal-content {
    background-color: #2d2d2d !important;
    color: white !important;
}

body.dark-theme #loginModal .form-control {
    background-color: #3d3d3d !important;
    border-color: #4d4d4d !important;
    color: white !important;
}

/* Styles du modal de login */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-header .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    color: var(--primary-color);
}

.modal-header .btn-close {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 50%;
    opacity: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.modal-header .btn-close:hover {
    background-color: #e9ecef;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
}

/* Styles des champs du formulaire */
.modal .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #666;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(153, 0, 71, 0.1);
}

.modal .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Style du bouton de connexion */
.modal .btn-primary {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 0, 71, 0.2);
}

/* Style des liens */
.modal a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal a:hover {
    color: var(--primary-hover);
}

/* Style de la checkbox */
.modal .form-check {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .form-check-input {
    border: 2px solid #666;
    margin-right: 0.5rem;
}

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

/* Styles pour le mode sombre */
body.dark-theme .modal-content {
    background-color: #2d2d2d;
    color: #ffffff;
}

body.dark-theme .modal-header .btn-close {
    background-color: #3d3d3d;
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-theme .modal .form-control {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: white;
}

body.dark-theme .modal .form-check-input {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
}

body.dark-theme .modal a {
    color: #e0e0e0;
}

body.dark-theme .modal a:hover {
    color: #ffffff;
}

/* Create event link */
.navbar .nav-item a[href="/templates/events/create-event.php"] {
    background: none !important;
    padding: 0.5rem 1rem;
}

/* Login button in navbar */
.navbar .nav-item a[href="#"][data-bs-target="#loginModal"] {
    /*background-color: var(--secondary-color);*/
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: white !important;
}

.navbar .nav-item a[href="#"][data-bs-target="#loginModal"]:hover {
   /* background-color: var(--secondary-hover*/
}

/* Icons in navbar */
.navbar .nav-item .bi {
    font-size: 1.1rem;
}



/* Styles pour les étapes */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
    text-align: center;
}

.step-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active .step-button {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-button {
    background: white;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.step::after {
    content: attr(data-title);
    position: absolute;
    width: max-content;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.rogress-bar{
    color: var(--primary-color);
    
}

/* Styles pour les étapes */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0 1rem;
    text-align: center;
}

.step-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active .step-button {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-button {
    background: white;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.step::after {
    content: attr(data-title);
    position: absolute;
    width: max-content;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Progress bar */
.progress-bar {
    background-color: var(--primary-color)!important;
}


.btn-link {
    color: #2e7d32;
}

.btn-link:hover {
    color: #1b5e20;
}

/* Styles généraux */
h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description {
    line-height: 1.6;
    color: #4a4a4a;
}

/* Styles pour la légende GPX */
.gpx-legend {
    background: white;
    width: 100%;
    display: none;
}

.gpx-routes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gpx-route {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.gpx-route-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gpx-route-color {
    width: 4px;
    height: 100%;
    min-height: 40px;
    border-radius: 2px;
}

.gpx-route-info {
    flex: 1;
}

.gpx-route-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.gpx-route-details {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
}

.gpx-route-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Form validation styles */
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--primary-color) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%230d6efd'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%230d6efd' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: var(--secondary-color);
    border-width: 2px;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--primary-color);

}

.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip,
.was-validated :invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip {
    display: block;
}

/* Toast styles */
.toast-container {
    z-index: 1050;
}

.toast {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.toast .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Styles pour les boutons qui ressemblent à des liens */
.btn-link {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: none;
}

.nav-link.btn-link {
    display: inline-block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
}





/* Styles pour les boutons dans les modales */
.modal .btn-primary {
    width: 100%;
    margin-bottom: 1rem;
}

/* Styles pour les boutons de catégorie */
/* .btn-group-vertical .btn {
    text-align: left;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem !important;
    padding: 0.5rem 1rem;
}

.btn-group-vertical .btn .badge {
    margin-left: 0.5rem;
}

.btn-group-vertical .btn-primary .badge {
    background-color: white !important;
    color: var(--primary-color) !important;
}

.btn-group-vertical .btn-outline-primary .badge {
    background-color: var(--primary-color) !important;
    color: white !important;
} */



/* Styles du conteneur principal */
.main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

@media (min-width: 992px) {
    .main-container {
        grid-template-columns: 300px 1fr;
    }
}

/* Styles des filtres */
.filters-container {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}







/* Styles du calendrier */


/* Dark mode */
body.dark-theme .filters-container,
body.dark-theme .calendar-container {
    background-color: var(--dark-bg-secondary);
}



:root {
    --bs-badge-color: var(--primary-color) !important;
    --bs-badge-bg: white !important;
}