/* Styles personnalisés pour l'application Kermesse */
/* Styles généraux */
body {
    padding-top: 0;
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles de la page d'accueil */
.jumbotron {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

/* Styles des cartes */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 1.5rem;
    height: 100%;
}

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

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Styles pour les grilles de cartes */
.card-deck, .card-group, .card-columns {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.card-deck .card, .card-group .card {
    flex: 1 0 100%;
    margin-right: 15px;
    margin-left: 15px;
    margin-bottom: 30px;
}

/* Styles des boutons */
.btn {
    border-radius: 0.3rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    transition: all 0.2s;
    white-space: normal; /* permet le retour à la ligne pour les petits écrans */
    word-wrap: break-word;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Bouton d'achat de jetons amélioré pour la lisibilité sur petit écran */
.btn-outline-custom {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.btn-outline-custom i {
    margin-right: 0.5rem;
}

/* Styles pour le tableau de bord */
.dashboard-card {
    margin-bottom: 1.5rem;
    height: 100%;
}

.dashboard-card .card-header {
    font-size: 1.1rem;
}

/* Styles pour les stands et créneaux */
.creneau-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.creneau-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.places-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 30px;
    margin-bottom: 0.5rem;
}

/* Styles pour le calendrier */
.fc-event {
    cursor: pointer;
    margin-bottom: 0.3rem;
}

.fc-event-title {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Couleurs pour les badges et statuts */
.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

/* Styles pour les formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Styles pour le pied de page */
footer {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

/* Media queries pour la responsivité */
/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .jumbotron {
        padding: 1.5rem 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.375rem 1rem;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .stand-header {
        padding: 1.5rem 1rem !important;
        text-align: center;
    }
    
    .stand-header h1 {
        font-size: 1.5rem !important;
    }
    
    /* Boutons plus larges sur petits écrans */
    .cta-reservation, .btn-outline-danger, .btn-outline-secondary {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    /* Ajustement des tailles de texte */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    /* Amélioration des espaces dans les créneaux */
    .creneau-header {
        padding: 8px 10px;
    }
    
    .creneau-details {
        padding: 10px;
    }
    
    /* Ajuster la disposition des créneaux sur mobile */
    .col-md-6, .col-lg-3 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .jumbotron {
        padding: 2rem 1.5rem;
    }
    
    .card-deck .card, .card-group .card {
        flex: 0 0 calc(50% - 30px);
    }
    
    .stand-header h1 {
        font-size: 1.75rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.75rem;
    }
    
    .card-deck .card, .card-group .card {
        flex: 0 0 calc(33.333% - 30px);
    }
    
    /* Disposition des créneaux */
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .card-deck .card, .card-group .card {
        flex: 0 0 calc(25% - 30px);
    }
    
    /* Disposition des créneaux par défaut */
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Fix pour les boutons sur tous les écrans */
.btn-group-vertical > .btn,
.btn-group > .btn {
    position: relative;
    flex: 0 1 auto;
}

/* Accessibilité - focus visible */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Couleurs des boutons d'achat adaptées */
.btn-outline-custom:hover {
    color: white !important;
    background-color: #7F7FD5 !important;
}

/* Amélioration des espacements et marges pour les stands */
.stand-info-section {
    margin-bottom: 1.5rem;
}

.stand-detail-item {
    margin-bottom: 0.75rem;
}

/* Aide à la mise à l'échelle des textes pour tous les écrans */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
}