/* Styles pour la page de réservation */
.reservation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.reservation-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reservation-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.reservation-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Étapes */
.step-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.step-container h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

/* Types de consultation */
.consultation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.consultation-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.consultation-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.consultation-card.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.consultation-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.consultation-card.selected .consultation-icon {
    color: white;
}

.consultation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.consultation-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.consultation-card.selected p {
    color: rgba(255, 255, 255, 0.9);
}

.consultation-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.consultation-card.selected .consultation-details {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.duration, .price {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.duration {
    background: #f8f9fa;
    color: #495057;
}

.consultation-card.selected .duration {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.price {
    background: #e8f5e8;
    color: #27ae60;
    font-weight: 700;
}

.consultation-card.selected .price {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Calendrier */
.calendar-container {
    margin-bottom: 2rem;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.nav-button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background: #2980b9;
    transform: scale(1.1);
}

#current-week {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

/* Affichage du prochain créneau disponible */
.next-available-slot {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.next-available-slot h3 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.next-slot-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.next-slot-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.next-slot-detail .label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.next-slot-detail .value {
    font-size: 1.3rem;
    font-weight: 600;
}

.book-next-slot {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
    max-width: 200px;
}

.book-next-slot:hover {
    background: white;
    color: #27ae60;
}

/* Nouveau système d'affichage des créneaux */
.slots-display-container {
    position: relative;
}

.days-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.day-slots-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.day-slots-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.day-header-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.day-header-card .day-name {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-family: 'Playfair Display', serif;
}

.day-header-card .day-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.day-slots-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.day-slot-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-slot-button.available {
    background: #e8f5e8;
    border-color: #27ae60;
    color: #27ae60;
    font-weight: 600;
}

.day-slot-button.available:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.day-slot-button.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.day-slot-button.unavailable {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.day-slot-button.unavailable:hover {
    background: #f8f9fa;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

/* Message quand aucun créneau n'est disponible */
.no-slots-message {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-slots-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.no-slots-message h3 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-slots-message p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Grille de calendrier responsive */
.calendar-grid {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.day-header {
    background: #f8f9fa;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.time-slot {
    background: #f8f9fa;
    padding: 0.8rem 0.3rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-button {
    background: white;
    border: 1px solid #dee2e6;
    padding: 0.8rem 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.8rem;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.slot-button:hover {
    background: #e3f2fd;
    border-color: #3498db;
    color: #3498db;
}

.slot-button.available {
    background: #e8f5e8;
    color: #27ae60;
    border-color: #27ae60;
    font-weight: 600;
}

.slot-button.available:hover {
    background: #27ae60;
    color: white;
    transform: scale(1.02);
}

.slot-button.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 600;
    transform: scale(1.02);
}

.slot-button.unavailable {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.slot-button.unavailable:hover {
    background: #f8f9fa;
    color: #adb5bd;
    transform: none;
}

/* Affichage mobile des créneaux */
.mobile-slots-container {
    display: none;
}

.mobile-day-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-day-header {
    background: #3498db;
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.mobile-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.mobile-slot-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mobile-slot-button.available {
    background: #e8f5e8;
    border-color: #27ae60;
    color: #27ae60;
    font-weight: 600;
}

.mobile-slot-button.available:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
}

.mobile-slot-button.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.mobile-slot-button.unavailable {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Informations du créneau sélectionné */
.selected-slot-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.selected-slot-info h3 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.slot-details p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

/* Formulaire */
.reservation-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

/* Boutons */
.nav-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn.primary {
    background: #3498db;
    color: white;
}

.nav-btn.primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.nav-btn.secondary {
    background: #95a5a6;
    color: white;
}

.nav-btn.secondary:hover {
    background: #7f8c8d;
}

.confirm-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

/* Navigation des étapes */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.modal-header h2 {
    color: #27ae60;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 0 2rem 1rem;
}

.confirmation-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.confirmation-details p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Loading spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .reservation-container {
        padding: 1rem;
    }
    
    .reservation-header h1 {
        font-size: 2rem;
    }
    
    .consultation-types {
        grid-template-columns: 1fr;
    }
    
    /* Masquer la grille desktop et afficher la version mobile */
    .calendar-grid {
        display: none;
    }
    
    .mobile-slots-container {
        display: block;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Améliorer l'affichage du prochain créneau sur mobile */
    .next-slot-info {
        gap: 1rem;
    }
    
    .next-slot-detail .value {
        font-size: 1rem;
    }
    
    /* Navigation du calendrier sur mobile */
    .calendar-navigation {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    #current-week {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .reservation-header h1 {
        font-size: 1.8rem;
    }
    
    .step-container {
        padding: 1.5rem;
    }
    
    .consultation-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .next-available-slot {
        padding: 1rem;
    }
    
    .next-slot-info {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .mobile-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .mobile-slot-button {
        padding: 0.8rem 0.3rem;
        font-size: 0.8rem;
    }
    
    /* Améliorer l'affichage des boutons de navigation */
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    #current-week {
        font-size: 0.9rem;
    }
}

/* Styles spécifiques pour très petits écrans */
@media (max-width: 360px) {
    .reservation-container {
        padding: 0.5rem;
    }
    
    .step-container {
        padding: 1rem;
    }
    
    .mobile-slots-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-slot-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* =================== PAIEMENT STRIPE =================== */

.payment-container {
    max-width: 600px;
    margin: 0 auto;
}

.payment-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.payment-summary h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.summary-details {
    margin-bottom: 1.5rem;
}

.summary-details p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-total {
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.payment-total strong {
    font-size: 1.2rem;
    color: #27ae60;
}

.payment-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.payment-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

/* Conteneur du formulaire de carte */
.card-form-container {
    margin-bottom: 1.5rem;
}

/* Wrapper pour chaque champ de carte */
.card-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.card-input-wrapper .card-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 1;
    pointer-events: none;
}

/* Champs Stripe individuels */
#card-number-element,
#card-expiry-element,
#card-cvc-element {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    background: white;
    transition: border-color 0.3s ease;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
}

/* Focus state pour les champs individuels */
#card-number-element.StripeElement--focus,
#card-expiry-element.StripeElement--focus,
#card-cvc-element.StripeElement--focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Ligne pour date d'expiration et CVC */
.card-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-row .form-group {
    flex: 1;
}

.card-row .card-input-wrapper {
    margin-bottom: 0;
}

#card-errors {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.pay-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.pay-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-info {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

.payment-info i {
    margin-right: 0.5rem;
    color: #3498db;
}

/* Responsive pour le paiement */
@media (max-width: 768px) {
    .payment-container {
        margin: 0 1rem;
    }

    .payment-summary,
    .payment-form {
        padding: 1rem;
    }

    /* Ajustements pour les champs séparés sur mobile */
    .card-input-wrapper {
        margin-bottom: 1rem;
    }

    /* Champs individuels sur mobile */
    #card-number-element,
    #card-expiry-element,
    #card-cvc-element {
        padding: 0.875rem;
        min-height: 50px;
        font-size: 14px;
    }

    /* Ligne pour date et CVC sur mobile */
    .card-row {
        gap: 0.75rem;
    }

    .card-row .form-group {
        flex: 1;
        min-width: 0; /* Permettre la réduction */
    }
}

@media (max-width: 480px) {
    .payment-container {
        margin: 0 0.5rem;
    }

    .payment-summary,
    .payment-form {
        padding: 0.8rem;
    }

    /* Optimisations pour très petits écrans */
    .card-input-wrapper {
        margin-bottom: 1.2rem;
    }

    /* Champs individuels sur petits écrans */
    #card-number-element,
    #card-expiry-element,
    #card-cvc-element {
        padding: 1rem;
        min-height: 52px;
        font-size: 14px;
    }

    /* Icônes plus petites sur mobile */
    .card-icon {
        font-size: 1rem;
        right: 10px;
    }

    /* Ligne pour date et CVC sur très petits écrans */
    .card-row {
        flex-direction: column;
        gap: 1rem;
    }

    .card-row .form-group {
        flex: none;
        width: 100%;
    }

    /* Labels plus petits sur mobile */
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Note de confirmation */
.confirmation-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.confirmation-note p {
    margin: 0;
    color: #27ae60;
    font-size: 0.9rem;
    font-style: italic;
}

.confirmation-note i {
    margin-right: 0.5rem;
}

/* Styles spécifiques pour les éléments Stripe en mode mobile */
.StripeElement--mobile {
    display: block !important;
}

.StripeElement--mobile iframe {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
}

.StripeElement--mobile .__PrivateStripeElement {
    display: block !important;
    margin-bottom: 0.8rem !important;
}

/* Forcer l'affichage vertical des champs Stripe sur tous les mobiles */
@media (max-width: 768px) {
    #card-element iframe {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    #card-element .__PrivateStripeElement {
        display: block !important;
        margin-bottom: 0.8rem !important;
    }

    /* Styles pour éviter les débordements */
    #card-element {
        overflow: hidden;
        position: relative;
    }
}

/* =================== MESSAGE D'ERREUR DE CONNEXION =================== */

.connection-error-message {
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.connection-error-message h3 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.connection-error-message p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.retry-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.retry-button i {
    font-size: 0.9rem;
}

/* Responsive pour le message d'erreur */
@media (max-width: 768px) {
    .connection-error-message {
        padding: 2rem 1.5rem;
    }

    .error-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .connection-error-message h3 {
        font-size: 1.3rem;
    }

    .connection-error-message p {
        font-size: 0.95rem;
    }

    .retry-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .connection-error-message {
        padding: 1.5rem 1rem;
    }

    .error-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .connection-error-message h3 {
        font-size: 1.2rem;
    }

    .connection-error-message p {
        font-size: 0.9rem;
    }

    .retry-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}
