.bloc-recap {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.card {
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-center {
    text-align: center;
}

.form-title {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff7a00;
}

.form-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 6px;
    margin-bottom: 24px;
}
.separator {
    margin: 48px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.recap-table {
    width: 100%;
    border-collapse: collapse;
}

.recap-table thead th {
    background: #fff4eb;
    color: #ff7a00;
    font-weight: 600;
    padding: 14px;
    text-align: left;
    border-bottom: 2px solid #ff7a00;
}

.recap-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.recap-table tbody tr:hover {
    background: #fff9f3;
}

.recap-table tfoot .total-row td {
    font-weight: 700;
    background: #fff4eb;
    border-top: 2px solid #ff7a00;
    color: #333;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        overflow-y: auto;
    }
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* ===============================
   BOUTONS
================================ */
.navigation-button {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-primary {
    background: #ff7a00;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.25);
    transition: all 0.4s ease;
}

.btn-primary:hover::after {
    left: 0;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: #ff7a00 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    outline: none;
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(255,122,0,0.4);
}

@media (max-width: 768px) {
    .bloc-recap {
        padding: 16px;
    }

    .card {
        padding: 20px;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .navigation-button {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .card:hover {
        transform: none;
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }
}

/* ===============================
   MODALS
================================ */
.pdf-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.4s ease;
}

.pdf-modal-content {
    position: relative;
    margin: 100px auto 20px auto;
    width: 85%;
    max-width: 1000px;
    height: calc(100% - 140px);
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 16px 24px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.pdf-modal-download {
    background-color: #ff7900;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.pdf-modal-download:hover {
    background-color: #e06b00;
}

.pdf-modal-close {
    color: #555;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s ease;
}

.pdf-modal-close:hover {
    color: black;
}

.pdf-modal iframe {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        margin: 80px auto 20px auto;
        height: calc(100% - 120px);
    }

    .pdf-modal-header h3 {
        font-size: 18px;
    }

    .pdf-modal-download {
        padding: 5px 10px;
        font-size: 14px;
    }

    .pdf-modal-close {
        font-size: 24px;
    }
}