/**
 * theme-switcher.css - Styles pour le sélecteur de thème
 * Partie du projet TrouveTonPadel
 */

/* Styles pour le thème sombre (par défaut) */
[data-bs-theme="dark"] {
    --bs-body-bg: #121212;
    --bs-body-color: #e0e0e0;
    --bs-primary: #C6FF00;
    --bs-primary-rgb: 198, 255, 0;
}

[data-bs-theme="dark"] body {
    background-color: #121212;
    color: #e0e0e0;
}

/* Éléments de navigation */
[data-bs-theme="dark"] .navbar-modern {
    background: rgba(20, 20, 20, 0.3) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-bottom: 1px solid rgba(198, 255, 0, 0.15);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .navbar-brand {
    filter: drop-shadow(0 0 3px rgba(198, 255, 0, 0.2));
}

[data-bs-theme="dark"] .badge.bg-primary {
    box-shadow: 0 0 10px rgba(198, 255, 0, 0.3);
}

/* Sections principales */
[data-bs-theme="dark"] .hero {
    background-color: #121212;
}

[data-bs-theme="dark"] .features {
    background-color: #1e1e1e !important;
}

/* Cartes et conteneurs */
[data-bs-theme="dark"] .card {
    background-color: #2d2d2d;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Formulaires */
[data-bs-theme="dark"] .form-control, 
[data-bs-theme="dark"] .form-select {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control:focus, 
[data-bs-theme="dark"] .form-select:focus {
    background-color: #3a3a3a;
    color: #ffffff;
}

/* Onglets de navigation */
[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #adb5bd;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #2d2d2d;
    color: #ffffff;
    border-bottom-color: #2d2d2d;
}

/* Styles communs pour les boutons en mode light et dark */
.btn-primary, 
.btn-outline-primary {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #C6FF00;
    border-color: #C6FF00;
    color: #000000;
}

[data-bs-theme="dark"] .btn-outline-primary {
    border-color: #C6FF00;
    color: #C6FF00;
}

[data-bs-theme="dark"] .btn-primary:hover, 
[data-bs-theme="dark"] .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(198, 255, 0, 0.3);
    background-color: #d4ff33;
    border-color: #d4ff33;
    color: #000000;
}

/* Icônes spécifiques en mode sombre */
[data-bs-theme="dark"] .bi-trophy,
[data-bs-theme="dark"] .bi-calendar-check,
[data-bs-theme="dark"] .bi-sun-fill {
    color: #ffffff !important; /* Blanc */
}

/* Vous pouvez ajouter d'autres classes d'icônes ici si elles doivent être blanches */
/* Exemple :
[data-bs-theme="dark"] .bi-calendar-event,
[data-bs-theme="dark"] .bi-geo-alt-fill {
    color: #ffffff !important;
}
*/

/* Couleurs spécifiques pour les icônes du theme switcher en mode sombre */
[data-bs-theme="dark"] .theme-switcher-icon.sun {
    color: #C6FF00 !important; /* Doit rester lime en mode sombre */
}

[data-bs-theme="dark"] .theme-switcher-icon.moon {
    color: #FFEB3B !important; /* Jaune, comme demandé pour l'icône lune */
}

/* Styles spécifiques à la page des résultats */
[data-bs-theme="dark"] .results-section {
    background-color: #121212;
}

/* Styles pour la popup des détails de tournoi */
[data-bs-theme="dark"] .tournament-title {
    color: #C6FF00;
}

[data-bs-theme="dark"] .section-title {
    color: #C6FF00;
}

[data-bs-theme="light"] .tournament-title {
    color: #000000;
}

[data-bs-theme="light"] .section-title {
    color: #000000;
}

/* Styles pour les liens de contact dans la popup */
[data-bs-theme="dark"] .contact-link {
    color: #C6FF00;
}

[data-bs-theme="light"] .contact-link {
    color: #000000;
}

/* Styles pour les icônes et éléments d'accent */
[data-bs-theme="dark"] .icon-accent {
    color: #C6FF00;
}

[data-bs-theme="light"] .icon-accent {
    color: #000000;
}

[data-bs-theme="dark"] .spinner-accent {
    color: #C6FF00;
}

[data-bs-theme="light"] .spinner-accent {
    color: #000000;
}

[data-bs-theme="dark"] .club-left-column,
[data-bs-theme="dark"] .slots-right-column {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .days-header,
[data-bs-theme="dark"] .results-header {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .slots-table-header {
    background-color: #1e1e1e;
}

[data-bs-theme="dark"] .slots-table-header-cell {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .slots-table-cell {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .club-name,
[data-bs-theme="dark"] .club-address,
[data-bs-theme="dark"] .day-name,
[data-bs-theme="dark"] .day-date,
[data-bs-theme="dark"] .results-count {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .nav-arrow {
    background-color: #2d2d2d;
    color: #C6FF00;
}

[data-bs-theme="dark"] .nav-arrow:hover {
    background-color: #3a3a3a;
}

.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.theme-switcher-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    margin-right: 8px;
}

.theme-switcher-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-switcher-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switcher-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

.theme-switcher-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .theme-switcher-slider {
    background-color: #C6FF00;
}

input:checked + .theme-switcher-slider:before {
    transform: translateX(26px);
    background-color: #333;
}

.theme-switcher-icon {
    font-size: 14px;
    margin: 0 5px;
}

.theme-switcher-icon.sun {
    color: #C6FF00;
}

.theme-switcher-icon.moon {
    color: #fff;
}

/* Styles pour le thème clair */
[data-bs-theme="light"] {
    --bs-body-bg: #f8f9fa;
    --bs-body-color: #212529;
    --bs-primary: #000000; /* Noir pour le mode clair selon la demande */
    --bs-primary-rgb: 0, 0, 0;
}

/* Navbar en mode clair */
[data-bs-theme="light"] .navbar-modern {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Sections principales */
[data-bs-theme="light"] .hero {
    background-color: #f8f9fa;
}

[data-bs-theme="light"] .features {
    background-color: #ffffff !important;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
}

/* Cartes et formulaires */
[data-bs-theme="light"] .card {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

/* Formulaires */
[data-bs-theme="light"] .form-control, 
[data-bs-theme="light"] .form-select {
    background-color: #fff;
    border-color: #dee2e6;
    color: #212529;
}

[data-bs-theme="light"] .form-control:focus, 
[data-bs-theme="light"] .form-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

/* Toggle de localisation en mode clair */
[data-bs-theme="light"] .form-check-input:checked {
    background-color: #000 !important;
    border-color: #000 !important;
}

/* Style spécifique pour le toggle de localisation */
[data-bs-theme="light"] #use-location-toggle {
    background-color: #f0f0f0 !important;
    border-color: #adb5bd !important;
}

[data-bs-theme="light"] #use-location-toggle:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

[data-bs-theme="light"] .form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23000'/%3e%3c/svg%3e") !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Style spécifique pour le focus du toggle de localisation */
[data-bs-theme="light"] #use-location-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="light"] #use-location-toggle:hover {
    border-color: #adb5bd !important;
}

[data-bs-theme="light"] .form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}



/* Slider de rayon (input range) */
[data-bs-theme="light"] input[type="range"].form-range {
    background-color: transparent;
    --bs-form-range-track-bg: #666 !important;
    --bs-form-range-thumb-bg: #000 !important;
    --bs-form-range-thumb-active-bg: #000 !important;
    --bs-form-range-thumb-focus-box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Piste du slider */
[data-bs-theme="light"] input[type="range"].form-range::-webkit-slider-runnable-track {
    background-color: #666 !important;
    height: 0.5rem;
    border-radius: 1rem;
}

[data-bs-theme="light"] input[type="range"].form-range::-moz-range-track {
    background-color: #666 !important;
    height: 0.5rem;
    border-radius: 1rem;
}

/* Pouce du slider */
[data-bs-theme="light"] input[type="range"].form-range::-webkit-slider-thumb {
    background-color: #000 !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
}

[data-bs-theme="light"] input[type="range"].form-range::-moz-range-thumb {
    background-color: #000 !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
}

/* Surcharge des styles Bootstrap */
[data-bs-theme="light"] .form-range::-webkit-slider-thumb:active {
    background-color: #000 !important;
}

[data-bs-theme="light"] .form-range::-moz-range-thumb:active {
    background-color: #000 !important;
}

/* Logo et éléments de marque */
[data-bs-theme="light"] .navbar-brand img[src*="logo_white.png"] {
    content: url('../images/logo/logo_dark.png');
}

[data-bs-theme="light"] .theme-switcher-label {
    color: #000;
}

/* Icônes en mode clair - toutes en noir */
[data-bs-theme="light"] i.bi {
    color: #000;
}

/* Icônes dans les features - en blanc */
[data-bs-theme="light"] .feature-icon-bg i.bi {
    color: #fff !important;
}

/* Sélecteur de thème */
[data-bs-theme="light"] .theme-switcher-slider {
    background-color: #fff !important;
    border: 1px solid #ddd;
}

[data-bs-theme="light"] .theme-switcher-slider:before {
    background-color: #000 !important;
}

[data-bs-theme="light"] input:checked + .theme-switcher-slider {
    background-color: #fff !important;
    border: 1px solid #ddd;
}

[data-bs-theme="light"] input:checked + .theme-switcher-slider:before {
    background-color: #000 !important;
}

/* Boutons */
[data-bs-theme="light"] .btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

[data-bs-theme="light"] .btn-outline-primary {
    border-color: #000000;
    color: #000000;
}

[data-bs-theme="light"] .btn-primary:hover,
[data-bs-theme="light"] .btn-outline-primary:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

/* Page de résultats */
[data-bs-theme="light"] .results-section {
    background-color: #f8f9fa;
}

[data-bs-theme="light"] .club-left-column,
[data-bs-theme="light"] .slots-right-column,
[data-bs-theme="light"] .days-header,
[data-bs-theme="light"] .results-header {
    background-color: #fff;
    color: #333;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Tableau des créneaux */
[data-bs-theme="light"] .slots-table-header {
    background-color: #f8f9fa;
}

[data-bs-theme="light"] .slots-table-header-cell {
    background-color: #cccccc;
    color: #000000;
    border-bottom: 1px solid #bbbbbb;
}

[data-bs-theme="light"] .slots-table-cell:nth-child(odd) {
    background-color: #f8f9fa;
}

[data-bs-theme="light"] .slots-table-cell:nth-child(even) {
    background-color: #e9ecef;
}

[data-bs-theme="light"] .slot-available {
    color: #000000;
}

[data-bs-theme="light"] .slot-available:hover {
    color: #333333;
}

/* Éléments spécifiques */
[data-bs-theme="light"] .club-name,
[data-bs-theme="light"] .club-address,
[data-bs-theme="light"] .court-type {
    color: #000000 !important;
}

[data-bs-theme="light"] .court-name,
[data-bs-theme="light"] .day-name,
[data-bs-theme="light"] .day-date,
[data-bs-theme="light"] .results-count {
    color: #000000;
}

[data-bs-theme="light"] .club-distance,
[data-bs-theme="light"] .club-address::before,
[data-bs-theme="light"] .icon {
    color: #000000;
}

[data-bs-theme="light"] .nav-arrow {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .nav-arrow:hover {
    background-color: #333333;
    color: #ffffff;
    /* Suppression de la transformation pour éviter que la flèche ne bouge */
}

/* Bouton de réservation */
[data-bs-theme="light"] .reserve-btn {
    background-color: #000000;
    color: #ffffff;
}

[data-bs-theme="light"] .reserve-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Styles pour le modal en mode clair */
[data-bs-theme="light"] .modal-content {
    background-color: #fff;
    color: #333;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Styles pour le modal personnalisé en mode clair */
[data-bs-theme="light"] .custom-modal {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .custom-modal-title {
    color: #000000;
}

[data-bs-theme="light"] .custom-modal-body {
    color: #333333;
}

[data-bs-theme="light"] .custom-modal-button {
    background-color: #000000;
    color: #ffffff;
}

[data-bs-theme="light"] .custom-modal-button:hover {
    background-color: #333333;
}

[data-bs-theme="light"] .modal-header {
    border-bottom: 1px solid #eaeaea;
}

[data-bs-theme="light"] .modal-footer {
    border-top: 1px solid #eaeaea;
}

[data-bs-theme="light"] .modal-title {
    color: #333;
}

/* Styles pour les onglets en mode clair */
[data-bs-theme="light"] .nav-tabs .nav-link {
    color: #000;
    background-color: #fff;
}

[data-bs-theme="light"] .nav-tabs .nav-link.active {
    background-color: #000;
    color: #fff;
    border-bottom-color: #000;
}

/* Style spécifique pour les onglets de créneaux */
[data-bs-theme="light"] #slots-tab {
    color: #000;
    background-color: #fff;
}

[data-bs-theme="light"] #slots-tab.active {
    background-color: #000;
    color: #fff;
}

[data-bs-theme="light"] #slots-tab.active i {
    color: #333;
}

/* Styles pour les badges en mode clair */
[data-bs-theme="light"] .badge.bg-primary {
    background-color: #000 !important;
    color: #fff;
}

/* Styles pour les divs feature-icon-bg en mode clair */
[data-bs-theme="light"] .feature-icon-bg {
    background-color: #000 !important;
    color: #fff;
}

/* Styles pour les textes en mode clair */
[data-bs-theme="light"] h1 {
    color: #000 !important;
}

[data-bs-theme="light"] h2, 
[data-bs-theme="light"] h3, 
[data-bs-theme="light"] h4, 
[data-bs-theme="light"] h5, 
[data-bs-theme="light"] h6 {
    color: #333;
}

[data-bs-theme="light"] p {
    color: #000 !important;
}

/* Styles supprimés pour éviter les conflits */
/**
 * Styles pour l'affichage des informations météo
 * Partie du projet TrouveTonPadel
 */

/* Conteneur des informations météo */
.weather-info {
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    background-color: #3a3a3a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* En-tête des informations météo */
.weather-header {
    font-size: 14px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 8px;
    text-align: center;
}

/* Contenu des informations météo */
.weather-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Icône météo */
.weather-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Détails météo (température et vent) */
.weather-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-left: 10px;
}

/* Température */
.weather-temp {
    font-size: 18px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 4px;
}

/* Vent */
.weather-wind {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #cccccc;
}

.weather-wind svg {
    margin-right: 4px;
}

/* Animation de chargement */
.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #cccccc;
    font-size: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message d'erreur */
.weather-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #ff6b6b;
    font-size: 12px;
}

.weather-error svg {
    margin-right: 5px;
}
/**
 * modal.css - Styles pour les fenêtres modales personnalisées
 * Partie du projet TrouveTonPadel
 */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Utiliser la hauteur du viewport */
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background-color: #222;
    border-radius: 8px;
    max-width: 90%;
    width: 400px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s;
    border: 1px solid #333;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0);
}

.custom-modal-header {
    margin-bottom: 15px;
    text-align: center;
}

.custom-modal-title {
    font-size: 1.5rem;
    color: #C6FF00;
    margin: 0;
    padding: 0;
}

.custom-modal-body {
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.custom-modal-footer {
    display: flex;
    justify-content: center;
}

.custom-modal-button {
    background-color: #C6FF00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.custom-modal-button:hover {
    background-color: #d8ff4d;
}
