.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

.order-summary, .payment-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

.order-summary h2, .payment-form h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.vehicle-info, .files-info, .prestations-info, .total-info {
    margin-bottom: 1.5rem;
}

.vehicle-info h3, .files-info h3, .prestations-info h3, .total-info h3 {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.prestations-info ul, .files-info ul {
    list-style: none;
    padding: 0;
}

.prestations-info li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}

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

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

.total-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.payment-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Styles pour la page de succès */
.success-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
    text-align: center;
}

.success-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 3rem;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 2rem;
}

.success-message {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.success-info {
    color: #666;
    margin-bottom: 2rem;
}

.success-actions {
    margin-top: 2rem;
}

#success-cheeckout-icon {
    color: #28a745;
}

/* Styles améliorés pour les pages de checkout */
.checkout-container, .success-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

.order-summary, .payment-form, .success-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-summary:hover, .payment-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.order-summary h2, .payment-form h2, .success-content h3 {
    color: var(--primary-color, #333);
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
    font-weight: 600;
}

.vehicle-info, .files-info, .prestations-info, .total-info {
    margin-bottom: 2rem;
}

.vehicle-info h3, .files-info h3, .prestations-info h3, .total-info h3 {
    color: var(--secondary-color, #555);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.prestations-info ul, .files-info ul {
    list-style: none;
    padding: 0;
}

.prestations-info li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #eee;
}

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

.total-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ddd;
}

.total-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color, #28a745);
}

/* Formulaire de paiement amélioré */
.payment-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Éléments de carte de crédit Stripe */
#card-element {
    padding: 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#card-element:focus-within {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 0, 123, 255), 0.1);
}

#card-errors {
    color: #dc3545;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* Bouton de paiement amélioré */
#submit-button, .btn-back-home {
    background-color: var(--primary-color, #28a745);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submit-button:hover, .btn-back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    background-color: var(--primary-hover, #218838);
}

/* Animation de spinner améliorée */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page de succès améliorée */
.success-container {
    max-width: 800px;
    margin: 5rem auto;
    text-align: center;
}

.success-content {
    position: relative;
    padding: 3rem;
}

.success-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color, #28a745);
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-color, #28a745);
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-message {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color, #333);
    font-weight: 600;
}

.success-info {
    color: var(--secondary-color, #666);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.success-details {
    background: var(--light-bg, #f8f9fa);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.success-details h3 {
    color: var(--secondary-color, #555);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

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

.success-details th, .success-details td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.success-details th {
    text-align: left;
    font-weight: 600;
    color: var(--secondary-color, #555);
}

.success-details tr:last-child td {
    border-top: 2px solid var(--primary-color, #28a745);
    border-bottom: none;
    font-weight: 700;
    color: var(--primary-color, #28a745);
}

.success-actions {
    margin-top: 2.5rem;
}

.btn-back-home {
    display: inline-flex;
    text-decoration: none;
}

.btn-back-home i {
    margin-right: 0.75rem;
}

/* Animations pour améliorer l'expérience utilisateur */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-container, .success-container {
    animation: fadeIn 0.5s ease-out;
}

/* Style pour les fichiers attachés */
.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-bg, #f8f9fa);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-item i {
    margin-right: 0.75rem;
    color: var(--primary-color, #28a745);
    font-size: 1.2rem;
}

/* Styles complémentaires pour harmoniser toutes les pages de checkout */
.container.py-5 {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--light-bg, #f8f9fa);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem;
}

.card-header h4, .card-header h5 {
    margin: 0;
    color: var(--text-color, #333);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    color: var(--secondary-color, #666);
    font-weight: 600;
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: middle;
}

.btn-primary {
    background: var(--primary-color, #007bff);
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-color-dark, #0062cc);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-outline-secondary {
    color: var(--secondary-color, #6c757d);
    border-color: var(--secondary-color, #6c757d);
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color, #6c757d);
    color: white;
}

/* Style spécifique pour la page redirect */
.redirect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
}

.redirect-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color, #007bff);
    animation: spin 1s linear infinite;
    margin: 2rem 0;
}

.redirect-message {
    font-size: 1.2rem;
    color: var(--secondary-color, #666);
    max-width: 500px;
} 

/* ===== Améliorations UI/UX pour le checkout ===== */
/* Grille responsive minimale compatible avec les classes type Bootstrap */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}

.col-md-7, .col-md-5 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .col-md-7 {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }
    .col-md-5 {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
    }
}

.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.text-end { text-align: right; }
.fw-semibold { font-weight: 600; }

/* Titres et textes */
h1, h2, h3, h4 { color: var(--text-color, #222); }
.text-muted { color: var(--secondary-color, #6b7280); }

/* Grille pour informations complémentaires (2 colonnes sur desktop, 1 sur mobile) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.25rem;
}

.form-grid .grid-full { grid-column: 1 / -1; }

@media (min-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Formulaires modernes pilotés par variables BO */
.form-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--text-color, #2d3748);
}

.form-control {
    width: 100%;
    height: 44px;
    background: var(--input-bg, #ffffff);
    color: var(--text-color, #111827);
    border: 1.5px solid var(--input-border, #e5e7eb);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #e50914);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 229, 9, 20), 0.12);
    background: var(--input-focus-bg, #fff);
}

/* Cartes et tableaux harmonisés avec le front */
.card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.card-header {
    background: var(--light-bg, #f8f9fa);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-weight: 600;
}

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

.table th, .table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table th {
    color: var(--secondary-color, #6b7280);
    font-weight: 600;
}

/* Boutons modernisés (s’appuie sur variables BO) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--primary-color, #e50914);
    color: #fff;
    border-color: var(--primary-color, #e50914);
}

.btn-primary:hover {
    box-shadow: 0 8px 16px rgba(var(--primary-rgb, 229, 9, 20), 0.25);
}

.btn-secondary {
    background: rgba(var(--primary-rgb, 229, 9, 20), 0.08);
    color: var(--primary-color, #e50914);
    border-color: rgba(var(--primary-rgb, 229, 9, 20), 0.25);
}

.btn-link {
    background: transparent;
    color: var(--primary-color, #e50914);
    padding-left: 0;
}

/* Conteneur principal (calage avec le front) */
.container { max-width: 1200px; margin: 0 auto; }