/* Styles personnalisés pour CMTCH */

/* Gradient pour le hero */
.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Animation pour les cartes */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Animation pour les icônes */
.fa-tennis-ball {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Styles pour les badges */
.badge {
    font-size: 0.9em;
    padding: 0.5em 1em;
}

/* Styles pour les boutons réseaux sociaux */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Animation pour les statistiques */
.card .fw-bold {
    transition: color 0.3s ease;
}

.card:hover .fw-bold {
    color: #007bff !important;
}

/* Styles pour les sections */
section {
    position: relative;
}

/* Effet de parallaxe léger */
.hero {
    background-attachment: fixed;
    background-size: cover;
}

/* Styles pour les icônes circulaires */
.rounded-circle {
    transition: transform 0.3s ease;
}

.card:hover .rounded-circle {
    transform: scale(1.1);
}

/* Styles pour les listes */
.list-unstyled li {
    padding: 0.25rem 0;
    transition: padding-left 0.3s ease;
}

.list-unstyled li:hover {
    padding-left: 0.5rem;
}

/* Styles pour les liens */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Styles pour les boutons d'action */
.btn {
    transition: all 0.3s ease;
    border-radius: 25px;
}

/* ===== STYLES MOBILE OPTIMISÉS ===== */

/* Navigation mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(30, 58, 138, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-link {
        padding: 12px 15px !important;
        margin: 5px 0;
        border-radius: 10px;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 500;
    }
    
    .mobile-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    
    .mobile-section-title {
        color: #fbbf24;
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 20px 0 10px 0;
        padding: 0 15px;
        border-left: 3px solid #fbbf24;
    }
    
    .mobile-user-info {
        background: rgba(255, 255, 255, 0.1);
        padding: 15px;
        border-radius: 10px;
        margin: 10px 0;
        text-align: center;
        font-size: 18px;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
    }
    
    /* Navigation principale sur mobile */
    .navbar-nav .nav-item .nav-link {
        padding: 8px 12px !important;
        font-size: 14px;
    }
    
    .navbar-nav .nav-item .nav-link i {
        font-size: 16px;
    }
    
    /* Masquer le texte sur très petits écrans */
    @media (max-width: 575.98px) {
        .navbar-nav .nav-item .nav-link {
            font-size: 12px;
        }
        
        .navbar-nav .nav-item .nav-link i {
            font-size: 14px;
        }
    }
}

/* Optimisations pour petits écrans */
@media (max-width: 767.98px) {
    .hero {
        padding: 80px 0 !important;
        min-height: 60vh !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Amélioration des formulaires mobile */
    .form-control, .form-select {
        font-size: 16px !important; /* Évite le zoom sur iOS */
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    /* Optimisation des tableaux mobile */
    .table-responsive {
        border-radius: 10px;
        overflow: hidden;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th, .table td {
        padding: 12px 8px;
        vertical-align: middle;
    }
    
    /* Boutons d'action mobile */
    .btn-sm {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* Amélioration des modals mobile */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
    }
}

/* Optimisations pour très petits écrans */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
    
    /* Navigation ultra-compacte */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    /* Amélioration des cartes */
    .card {
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Optimisation des listes */
    .list-group-item {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 5px;
    }
    
    /* Amélioration des alertes */
    .alert {
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 1rem;
    }
    
    /* Optimisation des badges */
    .badge {
        font-size: 0.8em;
        padding: 0.4em 0.8em;
        border-radius: 20px;
    }
}

/* Améliorations tactiles */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px; /* Taille minimale recommandée pour le tactile */
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    /* Amélioration des zones de clic */
    .card {
        cursor: pointer;
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    /* Optimisation des boutons d'action */
    .action-buttons .btn {
        margin: 2px;
        min-width: 44px;
    }
}

/* Animations fluides pour mobile */
@media (prefers-reduced-motion: no-preference) {
    .mobile-nav-link {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .card {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Optimisations pour l'orientation paysage sur mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: 50vh !important;
        padding: 60px 0 !important;
    }
    
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Amélioration de l'accessibilité mobile */
@media (max-width: 767.98px) {
    /* Focus visible pour la navigation */
    .nav-link:focus {
        outline: 2px solid #fbbf24;
        outline-offset: 2px;
        border-radius: 8px;
    }
    
    /* Amélioration du contraste */
    .text-muted {
        color: #6c757d !important;
    }
    
    /* Optimisation des icônes */
    .fas, .far, .fab {
        font-size: 1.1em;
    }
    
    /* Planning jour mobile : un court à la fois */
    .mobile-day-schedule {
        margin-top: 0.5rem;
    }

    .mobile-court-tabs {
        position: sticky;
        top: var(--nav-visible-h, 0px);
        z-index: 5;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.4rem;
        padding: 0.5rem 0 0.75rem;
        background: #f8fafc;
    }

    .mobile-court-tab {
        min-height: 44px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: #fff;
        color: #1e3a8a;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.15;
        padding: 0.4rem 0.25rem;
        white-space: normal;
    }

    .mobile-court-tab.is-active {
        background: #1e3a8a;
        border-color: #1e3a8a;
        color: #fff;
        box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
    }

    .mobile-court-panel {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding-bottom: 4.5rem;
    }

    .mobile-slot-row {
        display: grid;
        grid-template-columns: 4.6rem minmax(0, 1fr);
        gap: 0.55rem;
        align-items: center;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 0.55rem 0.65rem;
    }

    .mobile-slot-row.is-free {
        border-color: #bbf7d0;
        background: #f0fdf4;
    }

    .mobile-slot-row.is-reserved {
        border-color: #fecaca;
        background: #fff7f7;
    }

    .mobile-slot-row.is-own {
        border-color: #86efac;
        background: #f0fdf4;
    }

    .mobile-slot-time {
        font-size: 0.82rem;
        font-weight: 700;
        color: #1e3a8a;
        line-height: 1.2;
        word-break: break-word;
    }

    .mobile-slot-action {
        min-width: 0;
    }

    .mobile-slot-available {
        width: 100%;
        min-height: 44px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 10px;
    }

    .mobile-slot-reserved {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding: 0.15rem 0;
        border-left: 3px solid #dc3545;
        padding-left: 0.55rem;
        font-size: 0.84rem;
    }

    .mobile-own-reservation {
        border-left-color: #16a34a;
    }

    .mobile-reservation-details {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        min-width: 0;
    }

    .mobile-player-line {
        color: #64748b;
        font-size: 0.78rem;
        overflow-wrap: anywhere;
    }

    .mobile-slot-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .mobile-slot-buttons .btn,
    .mobile-alert-form .btn {
        min-height: 36px;
    }

    .mobile-week-day {
        min-height: 64px;
    }

    .mobile-month-week-header,
    .mobile-month-week {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.25rem;
        text-align: center;
        margin-bottom: 0.35rem;
    }

    .mobile-month-day {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #e5e7eb;
        color: #1e3a8a;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-month-day.other-month {
        color: #94a3b8;
        background: #f8fafc;
    }
    
    /* Amélioration des réservations utilisateur mobile */
    .mobile-user-reservations {
        background: white;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .mobile-reservation-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
        margin-bottom: 10px;
        border-left: 4px solid #007bff;
    }
    
    .mobile-reservation-info {
        flex: 1;
    }
    
    .mobile-reservation-time {
        font-weight: 600;
        color: #1e3a8a;
        font-size: 14px;
    }
    
    .mobile-reservation-court {
        color: #6c757d;
        font-size: 13px;
    }
    
    .mobile-reservation-actions {
        display: flex;
        gap: 5px;
    }
    
    .mobile-reservation-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 44px;
    }
    
    /* Styles pour les articles mobiles */
    .mobile-articles {
        margin-top: 1rem;
    }
    
    .mobile-article-item {
        background: white;
        border-radius: 15px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    /* Styles pour les images d'articles - redimensionnement sans coupe */
.article-image-container img,
.card-img-top[src*="article_images"],
.article-image {
    object-fit: contain !important;
    background-color: #f8f9fa;
    padding: 8px;
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    border-radius: 8px;
}

/* Styles spécifiques pour les cartes Bootstrap */
.card-img-top {
    object-fit: contain !important;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 8px 8px 0 0;
    max-height: 250px !important;
}

.mobile-article-image {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
    }
    
    .mobile-article-image .article-image {
        max-height: 200px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    .mobile-article-content {
        padding: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-article-date {
        color: #6c757d;
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .mobile-article-title {
        font-weight: 600;
        color: #1e3a8a;
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 1.3;
    }
    
    .mobile-article-excerpt {
        color: #6c757d;
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
        flex: 1;
    }
    
    .mobile-article-content .btn {
        align-self: flex-start;
        font-size: 13px;
        padding: 8px 16px;
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Styles pour les cartes de statistiques */
.card .text-primary,
.card .text-success,
.card .text-warning,
.card .text-info {
    transition: all 0.3s ease;
}

.card:hover .text-primary {
    color: #0056b3 !important;
}

.card:hover .text-success {
    color: #155724 !important;
}

.card:hover .text-warning {
    color: #856404 !important;
}

.card:hover .text-info {
    color: #0c5460 !important;
}

/* Styles pour les horaires et tarifs */
.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Styles pour les réseaux sociaux */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive design */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Animation d'entrée pour les sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.8s ease-out;
}

/* Styles pour les emojis */
.emoji {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* Styles pour les cartes de contact */
.card-body .btn-sm {
    border-radius: 20px;
    padding: 0.375rem 1rem;
}

/* Effet de survol pour les liens de contact */
.card-body a:hover {
    color: #007bff !important;
    text-decoration: underline;
}

/* Styles pour les badges de prix */
.badge.bg-primary,
.badge.bg-success,
.badge.bg-warning,
.badge.bg-info {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Animation pour les icônes de services */
.card .fa-2x {
    transition: transform 0.3s ease;
}

.card:hover .fa-2x {
    transform: scale(1.1);
}

/* Styles pour le texte de présentation */
.lead {
    line-height: 1.8;
    font-weight: 400;
}

/* Styles pour les titres */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Styles pour les cartes de statistiques */
.card .h4 {
    font-size: 2rem;
    font-weight: 700;
}

/* Effet de profondeur pour les cartes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Styles pour les sections avec fond coloré */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Styles pour les boutons d'action principale */
.btn-light {
    background-color: #fff;
    border-color: #fff;
    color: #007bff;
    font-weight: 600;
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #0056b3;
}

/* Styles pour les boutons outline */
.btn-outline-light {
    border-color: #fff;
    color: #fff;
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #007bff;
}

/* Animation pour les éléments de la liste des services */
.list-unstyled li i {
    transition: transform 0.3s ease;
}

.list-unstyled li:hover i {
    transform: scale(1.2);
}

/* Styles pour les cartes d'horaires et tarifs */
.card .bg-light {
    background-color: #e9ecef !important;
    border-radius: 8px;
}

/* Styles pour les liens de réseaux sociaux */
.btn-primary,
.btn-danger,
.btn-info,
.btn-success {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Effet de pulsation pour les icônes importantes */
.fa-tennis-ball,
.fa-trophy,
.fa-users {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Styles pour les sections de présentation */
.text-primary {
    color: #007bff !important;
}

/* Styles pour les cartes de statistiques au survol */
.card:hover {
    border-color: #007bff;
}

/* Styles pour les boutons de contact */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info {
    font-weight: 600;
    border-width: 2px;
}

/* Animation pour les éléments de la page */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== STYLES PWA (Progressive Web App) ===== */

/* Mode standalone (app installée) */
.pwa-standalone {
    /* Ajustements pour le mode standalone */
}

.pwa-standalone .navbar {
    /* Ajuster la navbar pour le mode standalone */
    padding-top: env(safe-area-inset-top, 0);
}

.pwa-standalone .main-content {
    /* Ajuster le contenu principal */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Bouton d'installation PWA */
.pwa-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #2c5530 0%, #1e3a8a 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(44, 85, 48, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44, 85, 48, 0.6);
}

.pwa-install-button:active {
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(44, 85, 48, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(44, 85, 48, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(44, 85, 48, 0.4);
    }
}

/* Améliorations mobile pour PWA */
@media (max-width: 768px) {
    .pwa-standalone .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .pwa-standalone .navbar-brand {
        font-size: 1.2rem;
    }
    
    .pwa-standalone .btn {
        min-height: 44px; /* Taille minimale recommandée pour les touches tactiles */
    }
    
    .pwa-standalone .form-control {
        min-height: 44px;
    }
    
    /* Améliorer l'espacement pour les doigts */
    .pwa-standalone .nav-link {
        padding: 12px 16px;
    }
    
    .pwa-standalone .card {
        margin-bottom: 20px;
    }
}

/* Mode paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .pwa-standalone .hero {
        min-height: 60vh;
    }
    
    .pwa-standalone .navbar {
        padding: 8px 0;
    }
}

/* Améliorations pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .pwa-standalone .btn:hover {
        transform: none; /* Désactiver les effets hover sur les écrans tactiles */
    }
    
    .pwa-standalone .card:hover {
        transform: none;
    }
    
    /* Améliorer la visibilité des éléments interactifs */
    .pwa-standalone .btn {
        border: 2px solid transparent;
    }
    
    .pwa-standalone .btn:active {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Styles pour les notifications PWA */
.pwa-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c5530;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Améliorations pour l'accessibilité PWA */
.pwa-standalone .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour la navigation au clavier */
.pwa-standalone .btn:focus,
.pwa-standalone .form-control:focus,
.pwa-standalone .nav-link:focus {
    outline: 2px solid #2c5530;
    outline-offset: 2px;
}

/* Mode sombre pour PWA (si supporté) */
@media (prefers-color-scheme: dark) {
    .pwa-standalone {
        --bs-body-bg: #1a1a1a;
        --bs-body-color: #ffffff;
    }
    
    .pwa-standalone .card {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .pwa-standalone .navbar {
        background-color: #1a1a1a !important;
    }
}

/* Bouton flottant « Installer l'app » */
.install-app-float {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: #198754;
}

.install-app-float .install-app-main {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: none;
}

.install-app-float .install-app-close {
    width: 30px;
    height: 30px;
    margin-right: 3px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
}

body.has-install-btn {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

body.modal-open .install-app-float,
body.install-btn-hidden .install-app-float {
    display: none;
}

/* Météo au club */
.weather-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.weather-strip {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.weather-hour {
    flex: 0 0 64px;
    text-align: center;
    border: 1px solid #e0f2fe;
    background: #f0f9ff;
    border-radius: 10px;
    padding: 0.35rem 0.2rem;
    font-size: 0.75rem;
    color: #1e3a8a;
}

.weather-hour .wh-time {
    font-weight: 700;
}

.weather-hour .wh-icon {
    font-size: 1.25rem;
    margin: 0.2rem 0;
    color: #f59e0b;
}

.weather-hour .fa-cloud,
.weather-hour .fa-smog {
    color: #64748b;
}

.weather-hour .fa-cloud-rain,
.weather-hour .fa-cloud-showers-heavy,
.weather-hour .fa-cloud-sun-rain {
    color: #2563eb;
}

.weather-hour .wh-temp {
    font-size: 0.95rem;
    font-weight: 700;
}

.weather-hour .wh-rain,
.weather-hour .wh-wind {
    color: #475569;
    white-space: nowrap;
}

.weather-hour.is-risk {
    border-color: #fca5a5;
    background: #fef2f2;
}

.weather-hour.is-risk .wh-rain,
.weather-hour.is-risk .wh-wind {
    color: #b91c1c;
    font-weight: 600;
}

/* Créneaux réservés à l'équipe */
.schedule-table:not(.week-view) .half-team {
    display: block;
    min-height: 32px;
    height: 100%;
    width: 100%;
    background: repeating-linear-gradient(135deg, #e0e7ff, #e0e7ff 6px, #c7d2fe 6px, #c7d2fe 12px);
    color: #3730a3;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 32px;
    cursor: not-allowed;
}

.legend-color.team {
    background: repeating-linear-gradient(135deg, #e0e7ff, #e0e7ff 3px, #c7d2fe 3px, #c7d2fe 6px);
}

.mobile-slot-row.is-team {
    border-color: #c7d2fe;
    background: repeating-linear-gradient(135deg, #eef2ff, #eef2ff 8px, #e0e7ff 8px, #e0e7ff 16px);
    color: #3730a3;
    font-weight: 600;
}

/* Choix des séances d'une série */
.series-session-list {
    max-height: 240px;
    overflow-y: auto;
    margin-top: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    background: #f8fafc;
}

.series-session-item {
    display: flex;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.4rem 0.2rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.85rem;
    cursor: pointer;
}

.series-session-item:last-child {
    border-bottom: 0;
}

/* Vue réservations téléphone / tablette (< lg) */
.mobile-day-schedule {
    margin-top: 0.5rem;
}

.mobile-court-tabs {
    position: sticky;
    top: var(--nav-visible-h, 0px);
    z-index: 5;
    transition: top 0.3s ease;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.5rem 0 0.75rem;
    background: #f8fafc;
}

.mobile-court-tab {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
    padding: 0.4rem 0.25rem;
    white-space: normal;
}

.mobile-court-tab.is-active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.mobile-court-panel {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-bottom: 4.5rem;
}

.mobile-slot-row {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
}

.mobile-slot-row.is-free {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.mobile-slot-row.is-reserved {
    border-color: #fecaca;
    background: #fff7f7;
}

.mobile-slot-row.is-own {
    border-color: #86efac;
    background: #f0fdf4;
}

.mobile-slot-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.2;
    word-break: break-word;
}

.mobile-slot-action {
    min-width: 0;
}

.mobile-slot-available {
    width: 100%;
    min-height: 44px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
}

.mobile-slot-reserved {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.15rem 0 0.15rem 0.55rem;
    border-left: 3px solid #dc3545;
    font-size: 0.84rem;
}

.mobile-own-reservation {
    border-left-color: #16a34a;
}

.mobile-reservation-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mobile-player-line {
    color: #64748b;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.mobile-slot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mobile-slot-buttons .btn,
.mobile-alert-form .btn {
    min-height: 36px;
}

.mobile-week-day {
    min-height: 64px;
}

.mobile-month-week-header,
.mobile-month-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    text-align: center;
    margin-bottom: 0.35rem;
}

.mobile-month-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

.mobile-month-day.other-month {
    color: #94a3b8;
    background: #f8fafc;
}

.mobile-month-day {
    position: relative;
}

.mobile-month-day.has-bookings {
    border-color: #fca5a5;
    background: #fff1f2;
}

.mobile-month-dot {
    position: absolute;
    top: 2px;
    right: 3px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.62rem;
    line-height: 15px;
    text-align: center;
}