* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Calendrier Responsive */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.day-name {
    font-weight: bold;
    background: #eee;
    padding: 10px 0;
}

.day {
    padding: 15px 0;
    background: #f9f9f9;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
}

.day:hover {
    background: #e0e0e0;
}

/* Couleurs spécifiques demandées */
.day.has-slots {
    background-color: #2ecc71; /* Vert si dispo (Côté Client) */
    color: white;
}

.day.selected {
    border: 2px solid #3498db;
}

/* Style ajouté pour griser visuellement les jours passés */
.day.past-day {
    color: #bdc3c7 !important;
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
}

.day.past-day:hover {
    background-color: #f8f9fa !important;
}

/* Grille des Heures */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.hour-checkbox, .hour-radio {
    display: none;
}

.hour-label {
    display: block;
    padding: 10px;
    background: #e0e0e0;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

.hour-checkbox:checked + .hour-label, 
.hour-radio:checked + .hour-label {
    background: #3498db;
    color: white;
}

/* ==========================================================================
   ZONE BANNIÈRE PADEL (CORRIGÉE ET SÉCURISÉE)
   ========================================================================== */

.padel-banner {
    display: flex;
    flex-direction: row-reverse; /* Image à droite, texte à gauche sur PC */
    align-items: center;
    justify-content: space-between;
    background-color: #2c3e50;
    color: white;
    width: 100%;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
}

/* Le conteneur global des textes */
.padel-overlay {
    flex: 1;
    padding-right: 20px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

.padel-overlay h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.padel-overlay p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Gestion de la taille de l'image sur PC */
.padel-img {
    max-width: 40%;
    height: 180px;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE MOBILE (Max 600px)
   ========================================================================== */
@media (max-width: 600px) {
    .day {
        padding: 10px 0;
        font-size: 14px;
    }

    /* Mutation de la bannière sur mobile */
    .padel-banner {
        flex-direction: column; /* Aligne les blocs verticalement */
        text-align: center;
        padding: 20px 15px;
    }

    /* On force l'overlay à devenir un conteneur vertical ordonné */
    .padel-overlay {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        width: 100%;
    }

    /* Ordre 1 : Le Titre */
    .padel-overlay h2 {
        order: 1;
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    /* Ordre 2 : L'image au milieu et centrée */
    .padel-img {
        order: 2;
        max-width: 80%;
        height: 140px;
        margin: 0 auto 15px auto; /* Centre parfaitement l'image */
        display: block;
    }

    /* Ordre 3 : Le Paragraphe en bas */
    .padel-overlay p {
        order: 3;
        font-size: 14px;
        text-align: center;
    }
}

/* Alignement de la navigation des clients */
.client-nav {
    display: flex;
    justify-content: flex-start; 
    margin-bottom: 10px;
}

/* Gestion du lien et de l'effet au survol */
.social-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

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

/* Taille et rendu de vos fichiers PNG */
.social-icon {
    width: 48px;  
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Structures tableaux admin & recherche */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.admin-table th {
    background-color: #34495e;
    color: white;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

.nav-links {
    margin-bottom: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

.search-box { 
    background-color: #f8f9fa; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 25px; 
}

.search-box label { 
    font-weight: bold; 
    display: block; 
    margin-bottom: 10px; 
    color: #2c3e50; 
}

.search-box input[type="tel"] { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #cbd5e1; 
    border-radius: 4px; 
    max-width: 300px; 
    font-size: 16px; 
}

.search-box button { 
    background-color: #3498db; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 15px; 
    margin-left: 10px;
    transition: background 0.2s;
}

.search-box button:hover { 
    background-color: #2980b9; 
}

.alert-error {
    color: #e74c3c; 
    font-style: italic; 
    background: #fdedec; 
    padding: 15px; 
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .search-box .search-form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box input[type="tel"] { 
        max-width: 100%; 
        margin-bottom: 10px; 
    }
    .search-box button { 
        width: 100%; 
        margin-left: 0; 
    }
}