﻿/**
 * FTI75 — Pages métier (réservation, contrat, paiement, calendrier)
 */

.fti75-booking {
    background: #f7f4ee;
    padding: 2rem 0 4rem;
}

.fti75-booking__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.fti75-booking__inner--wide {
    max-width: 1200px;
}

.fti75-booking__inner--contract {
    max-width: 1000px;
}

.fti75-booking h1 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    font-weight: 600 !important;
    color: #0c1118 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em;
}

.fti75-booking .lead,
.fti75-booking p.lead {
    font-size: 1.0625rem !important;
    color: #5c6672 !important;
    margin-bottom: 2rem !important;
}

/* Fil d'étapes */
.fti75-reservation-steps {
    margin-bottom: 2rem;
}

.fti75-reservation-steps ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fti75-reservation-steps .fti75-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5c6672;
}

.fti75-reservation-steps .fti75-step a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fti75-reservation-steps .fti75-step.is-done {
    background: rgba(201, 169, 98, 0.12);
    color: #0c1118;
}

.fti75-reservation-steps .fti75-step.is-current {
    background: #0c1118;
    border-color: #0c1118;
    color: #c9a962;
}

.fti75-reservation-steps .fti75-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(12, 17, 24, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.fti75-reservation-steps .is-current .fti75-step-num {
    background: #c9a962;
    color: #0c1118;
}

/* Cartes */
.fti75-card {
    background: #fff !important;
    border-radius: 2px !important;
    border: 1px solid rgba(201, 169, 98, 0.2) !important;
    box-shadow: 0 4px 24px rgba(12, 17, 24, 0.06) !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
}

.fti75-card h2,
.fti75-booking .form-section h2 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #0c1118 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c9a962;
}

/* Alertes */
.fti75-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    border-left: 4px solid;
}

.fti75-alert--success {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #1b5e20;
}

.fti75-alert--warning {
    background: #fff8e1;
    border-color: #c9a962;
    color: #5c4a1f;
}

.fti75-alert--error {
    background: #fce8e8;
    border-color: #c62828;
    color: #7f1d1d;
}

.fti75-alert--info {
    background: #e8f0f8;
    border-color: #1565c0;
    color: #0d3c6e;
}

/* Boutons */
.fti75-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.fti75-btn--primary,
.fti75-booking .btn-primary,
.fti75-booking #create-order-btn,
.fti75-booking #save-signature {
    background: #c9a962 !important;
    color: #0c1118 !important;
    border: none !important;
}

.fti75-btn--primary:hover,
.fti75-booking .btn-primary:hover {
    background: #b8954f !important;
    color: #0c1118 !important;
}

.fti75-btn--secondary,
.fti75-booking #clear-signature {
    background: #5c6672 !important;
    color: #fff !important;
}

/* Formulaires */
.fti75-booking .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0c1118 !important;
    font-size: 0.875rem;
}

.fti75-booking .form-control,
.fti75-booking input[type="text"],
.fti75-booking input[type="email"],
.fti75-booking input[type="tel"],
.fti75-booking input[type="date"],
.fti75-booking input[type="time"],
.fti75-booking select,
.fti75-booking textarea {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border: 1px solid rgba(201, 169, 98, 0.35) !important;
    border-radius: 2px !important;
    font-size: 1rem !important;
    background: #fff !important;
    color: #0c1118 !important;
    box-sizing: border-box;
}

.fti75-booking .form-control:focus,
.fti75-booking input:focus,
.fti75-booking select:focus,
.fti75-booking textarea:focus {
    outline: none;
    border-color: #c9a962 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.fti75-booking input[type="checkbox"] {
    accent-color: #c9a962;
    width: 18px;
    height: 18px;
}

.fti75-booking .form-section {
    margin-bottom: 2rem;
}

.fti75-booking .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Montant highlight */
.fti75-amount-box {
    background: linear-gradient(135deg, #0c1118 0%, #1a2332 100%) !important;
    padding: 1.5rem !important;
    border-radius: 2px !important;
    text-align: center;
}

.fti75-amount-box__label {
    font-size: 0.875rem;
    color: rgba(247, 244, 238, 0.8);
    margin-bottom: 0.5rem;
}

.fti75-amount-box__value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #c9a962;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.fti75-amount-box__detail {
    font-size: 0.875rem;
    color: rgba(247, 244, 238, 0.7);
    margin-top: 0.5rem;
}

/* Calendrier */
.fti75-booking .vehicule-info-card {
    background: #fff !important;
    border-left: 4px solid #c9a962 !important;
    padding: 1.25rem !important;
    border-radius: 2px !important;
    box-shadow: 0 2px 12px rgba(12, 17, 24, 0.06) !important;
}

.fti75-booking .vehicule-info-card h3 {
    color: #0c1118 !important;
}

.fti75-booking .calendrier-container {
    background: #fff !important;
    border: 1px solid rgba(201, 169, 98, 0.2) !important;
    border-radius: 2px !important;
    box-shadow: 0 4px 24px rgba(12, 17, 24, 0.06) !important;
    padding: 1.5rem !important;
}

.fti75-booking .fc .fc-button-primary {
    background: #0c1118 !important;
    border-color: #0c1118 !important;
}

.fti75-booking .fc .fc-button-primary:hover {
    background: #1a2332 !important;
}

.fti75-booking .fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #c9a962 !important;
    border-color: #c9a962 !important;
    color: #0c1118 !important;
}

/* Contrat signature */
.fti75-booking #signature-canvas {
    border: 2px solid rgba(201, 169, 98, 0.4) !important;
    border-radius: 2px !important;
    max-width: 100%;
    height: auto;
}

.fti75-booking .signature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .fti75-reservation-steps ol {
        flex-direction: column;
    }

    .fti75-booking {
        padding: 1.25rem 0 3rem;
    }

    .fti75-card {
        padding: 1.25rem !important;
    }

    .fti75-btn,
    .fti75-booking .btn-primary,
    .fti75-booking #create-order-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
