/* ============================================
   PROVENCE TOUR - PAGE RÉSERVATION ÉLÉGANTE
   Design premium optimisé
   ============================================ */

:root {
    --primary: #1473ff;
    --primary-dark: #0d5dd8;
    --success: #10b981;
    --danger: #ef4444;
    --text: #1a1a1a;
    --text-light: #666;
    --text-lighter: #999;
    --border: #e5e5e5;
    --bg-page: #f8f9fb;
    --bg-card: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

.ptr-checkout-elegant {
    min-height: 100vh;
    background: var(--bg-page);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   HEADER NAVIGATION
   ============================================ */

.ptr-header-nav {
    max-width: 1300px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ptr-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.ptr-back-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.ptr-breadcrumb {
    font-size: 13px;
    color: var(--text-lighter);
    font-weight: 500;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.ptr-main-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 28px;
    align-items: start;
}

/* ============================================
   SECTION VOYAGE (GAUCHE)
   ============================================ */

.ptr-voyage-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Image principale (taille réduite) */
.ptr-main-image {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ptr-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ptr-main-image:hover img {
    transform: scale(1.03);
}

.ptr-promo-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Galerie miniatures */
.ptr-thumbs-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.ptr-thumb-item {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.ptr-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ptr-thumb-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ptr-thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(20, 115, 255, 0.2);
}

/* Header voyage */
.ptr-voyage-header {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.ptr-voyage-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.ptr-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ptr-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.ptr-tag-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.ptr-tag-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* Description */
.ptr-description-box {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.ptr-description-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
}

.ptr-description-box p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Inclusions */
.ptr-inclusions-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 28px;
    border-radius: 16px;
    border: 2px solid #bbf7d0;
    box-shadow: var(--shadow-sm);
}

.ptr-inclusions-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
    margin: 0 0 20px;
}

.ptr-inclusions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ptr-inclusion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* ============================================
   SECTION RÉSERVATION (DROITE)
   ============================================ */

.ptr-booking-section {
    position: sticky;
    top: 24px;
}

.ptr-booking-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Carte prix */
.ptr-price-card {
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    margin-bottom: 28px;
    border: 2px solid #bae6fd;
}

.ptr-price-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.ptr-old-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.ptr-old-price {
    text-decoration: line-through;
    color: var(--text-lighter);
    font-size: 18px;
}

.ptr-old-price-sub {
    text-decoration: line-through;
    color: var(--text-lighter);
    font-size: 14px;
}

.ptr-new-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ptr-price-primary {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.ptr-price-secondary {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
}

/* Formulaire */
.ptr-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ptr-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ptr-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.ptr-form-title svg {
    opacity: 0.7;
}

.ptr-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ptr-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.ptr-input-group input {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    box-sizing: border-box;
}

.ptr-input-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 115, 255, 0.1);
}

.ptr-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Fix alignement inputs */
.ptr-input-group input {
    box-sizing: border-box;
}

.ptr-divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 8px 0;
}

/* Options devise */
.ptr-currency-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptr-currency-option {
    position: relative;
    cursor: pointer;
}

.ptr-currency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ptr-currency-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.ptr-currency-option:hover .ptr-currency-content {
    border-color: var(--primary);
    background: #f8faff;
}

.ptr-currency-option.active .ptr-currency-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 0 0 3px rgba(20, 115, 255, 0.15);
}

.ptr-currency-flag {
    font-size: 28px;
    line-height: 1;
}

.ptr-currency-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ptr-currency-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.ptr-currency-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.ptr-check-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ptr-currency-option.active .ptr-check-icon {
    opacity: 1;
}

.ptr-check-icon svg {
    color: var(--success);
}

/* Payment Element */
.ptr-payment-element {
    padding: 18px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.ptr-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

.ptr-message.error {
    background: #fee;
    color: #c00;
    border: 2px solid #fcc;
}

/* Bouton submit */
.ptr-submit-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(20, 115, 255, 0.3);
    font-family: inherit;
}

.ptr-submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 115, 255, 0.4);
}

.ptr-submit-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.ptr-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ptr-btn-label {
    flex: 1;
}

.ptr-btn-price {
    font-size: 18px;
    font-weight: 800;
}

/* Sécurité */
.ptr-security-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.ptr-security-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.ptr-security-item svg {
    opacity: 0.6;
}

/* Complet */
.ptr-soldout-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #fee 0%, #fed 100%);
    border: 2px solid #fcc;
    border-radius: 16px;
    color: var(--danger);
    font-weight: 700;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .ptr-main-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .ptr-booking-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .ptr-checkout-elegant {
        padding: 16px;
    }
    
    .ptr-header-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ptr-main-image {
        height: 280px;
    }
    
    .ptr-thumbs-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ptr-voyage-header h1 {
        font-size: 26px;
    }
    
    .ptr-inclusions-grid {
        grid-template-columns: 1fr;
    }
    
    .ptr-booking-card {
        padding: 24px;
    }
    
    .ptr-price-primary {
        font-size: 30px;
    }
    
    .ptr-input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ptr-thumbs-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ptr-voyage-header h1 {
        font-size: 22px;
    }
    
    .ptr-security-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .ptr-submit-button {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ptr-voyage-section,
.ptr-booking-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.ptr-booking-card {
    animation-delay: 0.15s;
}