/* ===== HERO SECTION ===== */
.hero-section {
    padding-top:100px;
}

/* ===== PACKAGE DETAILS ===== */
.package-details {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.package-details h3 {
    color: var(--purple-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.package-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--purple-primary);
}

/* ===== PACKAGE INCLUSIONS ===== */
.package-inclusions {
    border-top: 2px solid var(--beige);
    padding-top: 1.5rem;
}

.package-inclusions h5 {
    color: var(--purple-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.inclusion-section {
    margin-bottom: 1rem;
}

.inclusion-section h6 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--purple-primary);
    font-weight: 600;
}

.inclusion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.inclusion-item:last-child {
    border-bottom: none;
}

.inclusion-item .name {
    font-weight: 500;
}

.inclusion-item .quantity {
    background: var(--purple-primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section h4 {
    color: var(--purple-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--beige);
}

.form-floating > label {
    color: var(--purple-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 0.2rem rgba(118, 58, 136, 0.25);
}

/* ===== PARTICIPANTS SECTIONS ===== */
.package-participants-section {
    margin-bottom: 2rem;
}

.package-participants-section h5 {
    color: var(--purple-secondary);
    margin-bottom: 1rem;
}

.participants-grid {
    display: grid;
    gap: 1.5rem;
}

.participant-card {
    border: 2px solid var(--beige);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fafafa;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.participant-header h6 {
    margin: 0;
    color: var(--purple-primary);
}

.toggle-participant {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

.participant-fields {
    transition: all 0.3s ease;
}

/* ===== DIETARY RESTRICTIONS ===== */
.dietary-restrictions {
    background: #f8f9fa;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.dietary-restrictions h6 {
    color: var(--purple-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}



.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
}

.form-check-label {
    font-weight: 500;
    color: var(--purple-secondary);
    margin-left: 0.5rem;
}

/* ===== SUMMARY SIDEBAR ===== */
.summary-sidebar {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--beige);
}

.summary-card h5 {
    color: var(--purple-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.summary-details table {
    width: 100%;
    border-collapse: collapse;
}

.summary-details table td {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.summary-details table td:last-child {  
    font-weight: 600;
    color: var(--purple-primary); 
    text-align: right;
}

.summary-details table tr:last-child td {
    border-bottom: none;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: #666;
}

.summary-item span:last-child {
    font-weight: 600;
    color: var(--purple-primary);
}

.pricing-summary {
    border-top: 2px solid var(--beige);
    padding-top: 1rem;
}

.base-price {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.options-price {
    display: flex;
    justify-content: space-between;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-primary);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
}

.btn-primary:hover {
    background-color: var(--purple-secondary);
    border-color: var(--purple-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

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

/* ===== ALERTS ===== */
.alert:not(.alert-banner) {
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* ===== FORM VALIDATION ===== */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .package-details,
    .form-section,
    .summary-card {
        padding: 1.5rem;
    }
    
    .package-info {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .participant-header {
        padding: 0.75rem 1rem;
    }
    
    .participant-fields {
        padding: 1rem;
    }
    
    /* Fix pour les labels longs qui débordent */
    .form-floating > label {
        font-size: 0.85rem;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 95%;
    }
    
    .dietary-restrictions .form-floating > label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .package-details,
    .form-section,
    .summary-card {
        padding: 1rem;
    }
    
    .participant-card {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
}

/* ===== OPTIONS D'HÉBERGEMENT ===== */
.options-container .option-card .card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.options-container .option-card .card:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.options-container .option-card .card-title {
    color: var(--purple-primary);
    font-weight: 600;
}

.options-container .option-price {
    color: var(--purple-primary);
    font-size: 0.9rem;
}

/* Styles pour les boutons radio des options "par personne" - même style que planning */
.options-container .option-radio-group {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.options-container .radio-option {
    position: relative;
}

.options-container .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.options-container .radio-label {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--purple-primary) !important;
    background: white !important;
    color: var(--purple-primary) !important;
    min-width: 28px;
    text-align: center;
}

.options-container .radio-option input[type="radio"]:checked + .radio-label {
    background: var(--purple-primary) !important;
    color: white !important;
    border-color: var(--purple-primary) !important;
}

.options-container .radio-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styles pour les contrôles de quantité */
.options-container .qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-container .qty-wrapper .qty-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.options-container .qty-wrapper .option-qty {
    width: 50px;
    height: 30px;
    margin: 0 2px;
    font-size: 0.8rem;
}

/* ===== EXTRA NIGHTS SECTION ===== */
.extra-nights-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    border: 1px dashed var(--purple-primary);
}

.extra-nights-section h5 {
    color: var(--purple-primary);
    font-weight: 600;
}

.extra-night-card {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid #e9ecef;
}

.extra-night-card label {
    font-weight: 500;
    color: var(--purple-primary);
    margin-bottom: 0.5rem;
}

.extra-night-card .input-group {
    max-width: 150px;
}

.extra-night-card .input-group .btn {
    padding: 0.375rem 0.75rem;
}

.extra-night-card .input-group input {
    background: #fff;
}

.extra-night-card small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* ===== EXTRA PRICE IN SIDEBAR ===== */
.extra-price {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--purple-primary);
    border-bottom: 1px dashed #e9ecef;
}

/* ===== SERVICES/SOINS SECTION (style offer-detail) ===== */
.services-cards {
    min-height: 100px;
}

.services-cards .card {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.services-cards .card:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 2px 8px rgba(118, 58, 136, 0.15);
}

.services-cards .service-title {
    color: var(--purple-primary);
    font-size: 1rem;
}

.services-cards .service-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.services-cards .service-details-btn {
    color: var(--purple-primary) !important;
    font-size: 0.85rem;
}

.services-cards .service-details-btn:hover {
    color: var(--purple-secondary) !important;
}

.services-cards .select-service {
    min-width: 100px;
}

.services-cards .select-service.selected {
    background-color: #198754;
    border-color: #198754;
}

/* Panneau participants pour les soins */
.service-participants {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 1rem;
    border-top: 2px solid var(--purple-primary);
}

.participant-quantity-row {
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.participant-quantity-row:hover {
    background-color: #f0e6f5;
}

.participant-name {
    font-weight: 500;
    color: var(--purple-primary);
}

.quantity-controls .btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
    color: white;
}

.quantity-controls .btn:hover {
    background-color: var(--purple-secondary);
    border-color: var(--purple-secondary);
    color: white;
}

.quantity-controls .service-quantity {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.quantity-controls .service-quantity:focus {
    box-shadow: 0 0 0 0.2rem rgba(118, 58, 136, 0.25);
    border-color: var(--purple-primary);
}

/* Modal détails service */
#serviceDetailsModal .modal-body img {
    max-height: 200px;
    object-fit: cover;
}

/* ===== SUMMARY INCLUSIONS & ADDITIONS ===== */
.summary-inclusions,
.summary-additions {
    padding: 0.25rem 0;
}

.summary-inclusions h6,
.summary-additions h6 {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.summary-additions h6 {
    color: var(--purple-primary);
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list.compact li {
    padding: 0.15rem 0;
    font-size: 0.8rem;
    color: #666;
    border-bottom: none;
}

.summary-list.compact li::before {
    content: "•";
    color: var(--purple-primary);
    margin-right: 0.4rem;
}

/* Liste avec prix (pour les ajouts) */
#additions-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#additions-list li::before {
    display: none;
}

.summary-list .item-name {
    color: #666;
    flex: 1;
    padding-right: 0.5rem;
}

.summary-list .item-price {
    font-weight: 600;
    color: var(--purple-primary);
    text-align: right;
    white-space: nowrap;
    font-size: 0.8rem;
}

/* Animation pour les ajouts */
.summary-additions {
    transition: all 0.3s ease;
}

#additions-list li {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}