/* Styles pour les modals de réservation et CGV */

/* Variables pour cohérence avec le thème du site */
:root {
    --primary-color: #ffbc50;
    --secondary-color: #ffb747;
    --text-color: #333;
    --background-color: #fff;
    --light-orange: #FFF8F3;
    --warning-color: #e74c3c;
    --warning-light: #fff5f5;
    --success-color: #2ecc71;
    --border-radius-lg: 15px;
    --border-radius-md: 10px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal de base - Classes spécifiques pour éviter les conflits */
.voyage-modal, .cgv-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.voyage-modal.show, .cgv-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.voyage-modal-content, .cgv-modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    max-width: 90vw;
    max-height: 98vh;
    overflow: hidden;
    animation: voyageModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    width: 900px;
}

@keyframes voyageModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header de modal - Classes spécifiques */
.voyage-modal-header, .cgv-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.voyage-modal-header h2, .cgv-modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.voyage-modal-close, .cgv-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.voyage-modal-close:hover, .cgv-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body de modal - Classes spécifiques */
.voyage-modal-body, .cgv-modal-body {
    padding: 0;
    overflow-y: auto;
    position: relative;
    flex: 1;
}

/* Spécifique pour la modal CGV */
.cgv-modal-body {
    display: flex;
    flex-direction: column;
}

/* Footer de modal - Classes spécifiques */
.voyage-modal-footer, .cgv-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #e9ecef;
}

/* Boutons */
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 188, 80, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 188, 80, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-secondary {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #212529;
}

/* Styles pour la modal CGV */
.cgv-modal .cgv-modal-content {
    width: 900px;
}

/* Section d'information sur les vols */
.flight-info-section {
    padding: 30px 30px 0 30px;
}

.flight-warning {
    background: var(--warning-light);
    color: var(--text-color);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--warning-color);
    position: relative;
    overflow: hidden;
}

.flight-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e74c3c' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.flight-warning i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
    color: var(--warning-color) !important;
}

.flight-warning h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: var(--warning-color) !important;
    font-weight: 700;
}

.flight-warning p {
    margin: 10px 0;
    line-height: 1.7;
    color: var(--text-color) !important;
    font-size: 1.05rem;
}

.flight-warning strong {
    color: var(--warning-color) !important;
    font-weight: 700;
}

.calendly-cta {
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.calendly-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 14px 24px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 188, 80, 0.3);
    letter-spacing: 0.3px;
}

.calendly-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 188, 80, 0.4);
    color: white;
    background: var(--secondary-color);
}

.calendly-button i {
    margin-right: 10px;
    font-size: 1.1rem;
    padding-top: 13px;
}

/* CGV Content */
.cgv-content {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

/* Styles pour la section des notes importantes */
.cgv-important-notes {
    margin: 20px 30px 30px 30px;
    background-color: #fff3cd !important;
    border: 1px solid #ffeaa7 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    position: relative;
}

.cgv-important-notes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 188, 80, 0.05) 0%, rgba(255, 183, 71, 0.05) 100%);
    border-radius: 8px;
    pointer-events: none;
}

.cgv-important-notes h3 {
    color: #856404 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.cgv-important-notes h4 {
    color: #856404 !important;
    margin-bottom: 10px !important;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.cgv-important-notes p {
    color: #856404 !important;
    margin-bottom: 15px !important;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cgv-important-notes i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.cgv-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.cgv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cgv-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.cgv-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cgv-link i {
    margin-right: 8px;
}

.cgv-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    background: #f8f9fa;
}

/* Checkboxes d'acceptation - Version compacte */
.cgv-acceptance {
    background: linear-gradient(to right, var(--light-orange), white);
    padding: 15px 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    border-top: 1px solid #e9ecef;
}

.checkbox-container {
    background: white;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 188, 80, 0.3);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    min-width: 250px;
}

.checkbox-container:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 188, 80, 0.1);
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-container input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.checkbox-container span {
    flex: 1;
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .voyage-modal-content, .cgv-modal-content {
        width: 95vw;
        margin: 10px;
        max-height: 85vh;
    }

    .voyage-config-modal .voyage-modal-content,
    .cgv-modal .cgv-modal-content {
        width: 95vw;
    }

    .voyage-modal-header, .cgv-modal-header {
        padding: 18px 20px;
    }
    
    .voyage-modal-header h2, .cgv-modal-header h2 {
        font-size: 1.3rem;
    }

    .flight-info-section,
    .cgv-content {
        padding: 20px 20px 0 20px;
    }

    .flight-warning {
        padding: 20px;
    }

    .flight-warning h3 {
        font-size: 1.2rem;
    }
    
    .flight-warning p {
        font-size: 1rem;
    }

    .cgv-scroll {
        max-height: 200px;
    }

    /* Ajustement des checkboxes en responsive */
    .cgv-acceptance {
        padding: 12px 20px;
        flex-direction: column;
    }

    .checkbox-container {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-width: 0;
    }

    .checkbox-container input[type="checkbox"] {
        transform: scale(1.1);
        margin-right: 8px;
    }
    
    .cgv-modal-footer {
        padding: 15px 20px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .calendly-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .cgv-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cgv-header h3 {
        margin-bottom: 0;
    }

    /* Responsive pour les notes importantes */
    .cgv-important-notes {
        margin: 15px 20px 20px 20px !important;
        padding: 15px !important;
    }

    .cgv-important-notes h3 {
        font-size: 1.1rem !important;
    }

    .cgv-important-notes h4 {
        font-size: 0.95rem !important;
    }

    .cgv-important-notes p {
        font-size: 0.9rem !important;
    }

    .summary-line {
        flex-wrap: wrap;
    }

    .summary-line span {
        word-break: break-all;
    }

    .summary-line.total {
        padding-top: 15px;
        border-top: 2px solid var(--primary-color);
    }
}

/* Animation pour les changements de prix */
.price-update {
    animation: priceHighlight 0.5s ease-in-out;
}

@keyframes priceHighlight {
    0% { background-color: transparent; }
    50% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

/* Styles pour les sélecteurs */
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 188, 80, 0.1);
}

/* Styles pour les autres modales et éléments */
.voyage-config-modal .voyage-modal-content {
    width: 800px;
}

.config-step {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.config-step h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Sélecteur de date */
.date-selector input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.date-selector input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 188, 80, 0.1);
}

.date-help {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

/* Affichage de saison */
.season-info {
    text-align: center;
}

.season-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    margin-bottom: 10px;
}

.season-badge span {
    display: block;
}

#season-name {
    font-weight: 600;
    font-size: 1.1rem;
}

#season-price {
    font-size: 0.9rem;
    opacity: 0.9;
}

.season-help {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

/* Compteurs de voyageurs */
.travelers-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.traveler-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.traveler-type label {
    font-weight: 500;
    color: #495057;
}

.counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.counter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.counter-value {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

/* Récapitulatif */
.config-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid var(--primary-color);
    margin: 14px;
}

.config-summary h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    text-align: center;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-line.total {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
}
