/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #1a1a2e;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 40px 10px 60px;
    background-color: #f5f5fb;
}

/* ===== FORM CONTAINER ===== */
.form-container {
    max-width: 1230px;
    margin: 0 auto;
}

/* ===== PAGE TITLE ===== */
.page-title {
    text-align: center;
    margin-bottom: 32px;
}

.page-title h1 {
    font-size: 46px;
    font-weight: 900;
    color: #00008F;
    text-align: center;
    line-height: 1.2;
}

.page-title .subtitle {
    font-size: 40px;
    font-weight: 400;
    color: #00008f;

}

/* ===== INTRO TEXT ===== */
.intro-text {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #00008b;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===== INFO BANNER ===== */
.info-banner {
    background-color: #ffffff;
    color: #00008f;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    line-height: 1.5;
    border: 1px solid #00008f;
    width: 83%;
    margin: 0 auto;
}

.info-banner .info-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #1a3a8f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    background-color: #00008f;
    color: white;
}

/* ===== FORM ===== */
#form_coord {
    width: 71%;
    margin: 0 auto;
    padding-top: 27px;
}

/* ===== FORM ROW (2 columns) ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== FORM GROUP ===== */
.form-group {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 6px;
}

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

/* ===== LABELS ===== */
.form-group label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.form-group .label-hint {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    display: block;
    margin-top: 2px;
}

/* ===== INPUTS ===== */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 14px 14px;
    border: 1.5px solid #5f5f5f;
    border-radius: 4px;
    font-size: 16px;
    color: #1a1a2e;
    background: #ffffff;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.08);
}

.form-group input::placeholder {
    color: #5f5f5f;
    font-weight: 400;
}

/* ===== MONTANT INPUT WITH € ===== */
.input-euro-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-euro-wrapper input {
    width: 100%;
    padding: 12px 36px 12px 14px;
    border: 1.5px solid #c8c8d8;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1a2e;
    background: #ffffff;
    transition: border-color 0.2s ease;
    outline: none;
    padding-right: 30px !important;
}

.input-euro-wrapper input:focus {
    border-color: #1a3a8f;
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.08);
}

.input-euro-wrapper .euro-symbol {
    position: absolute;
    right: 14px;
    font-size: 23px;
    color: #555;
    pointer-events: none;
    font-weight: 600;
}

/* ===== ERROR MESSAGES ===== */
.univError {
    display: none;
}

.univError p {
    color: #e00000;
    font-size: 12px;
    margin-top: 4px;
}

.has-error .univError {
    display: block;
}

.has-error input {
    border-color: #e00000 !important;
}

/* ===== FILE UPLOAD ZONE ===== */
.ticket-section {
    margin-bottom: 24px;
}

.ticket-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    display: block;
}

.ticket-requirements {
    font-size: 16px;
    color: #5f5f5f;
    margin-bottom: 4px;
}

.ticket-requirements span {
    display: block;
}

.ticket-en-savoir-plus {
    color: #1a3a8f;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    text-decoration: none;
}

.ticket-en-savoir-plus:hover {
    text-decoration: underline;
}

.ticket-en-savoir-plus svg {
    width: 20px;
    height: 20px;
}

.upload-zone {
    border: 2px dashed #1a3a8f;
    border-radius: 6px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover {
    border-color: #1a3a8f;
    background: #f0f4ff;
}

.upload-zone .upload-text {
    color: #1a3a8f;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-zone .upload-or {
    color: #00008f;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.upload-zone .btn-import {
    display: inline-block;
    background-color: #eeeeff;
    color: #1a3a8f;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.upload-zone .btn-import:hover {
    background-color: #e8e8ff;
}

.upload-hint {
    font-size: 16px;
    color: #5F5F5F;
    margin-top: 10px;
}

#file-input {
    display: none;
}

/* ===== PRELEVEMENT AUTOMATIQUE ===== */
.prelevement-section {
    /* margin-bottom: 28px; */
}

.prelevement-question {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 14px;
}

.prelevement-btns {
    display: flex;
    justify-content: center;
    gap: 0;
}

.prelevement-btns input[type="radio"] {
    display: none;
}

.prelevement-btns label {
    display: inline-block;
    padding: 15px 49px;
    border: 2px solid #1a3a8f;
    font-size: 18px;
    font-weight: 600;
    color: #1a3a8f;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    background: #ffffff;
}

.prelevement-btns label:first-of-type {
    border-radius: 4px 0 0 4px;
    border-right: 1px solid #1a3a8f;
}

.prelevement-btns label:last-of-type {
    border-radius: 0 4px 4px 0;
    border-left: 1px solid #1a3a8f;
}

.prelevement-btns input[type="radio"]:checked+label {
    background-color: #1a3a8f;
    color: #ffffff;
}

/* ===== RECAPTCHA ===== */
#recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* ===== CHECKBOXES ===== */
.bl_checkbox {
    margin-top: 0px !important;
}

.check_ligne {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

.check_src {
    display: none;
}

.check_btn {
    width: 23px;
    height: 23px;
    min-width: 18px;
    border: 2px solid #999999;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 2px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
    position: relative;
}

.check_src:checked+.check_btn {
    background-color: #1a3a8f;
    border-color: #1a3a8f;
}

.check_src:checked+.check_btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.check_label {
    font-size: 20px;
    color: #00008f;
    /* line-height: 1.5; */
}

.bouton a div {
    font-size: 18px !important;
    line-height: 29px !important;
}

.check_label a {
    color: #1a3a8f;
    font-weight: 700;
    text-decoration: underline;
}

/* ===== MENTIONS LÉGALES ===== */
.mentions-bloc {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
}

/* ===== SUBMIT BUTTON ===== */
.bouton {
    display: flex;
    justify-content: center;
    margin-top: 1px !important;
    margin-bottom: 30px;
}

.bouton a {
    display: inline-block;
    background-color: #1a3a8f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 23px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.3px;
    margin: 22px 0px 0px 0px;
    width: auto;
}

.bouton a:hover {
    background-color: #122d72;
    transform: translateY(-1px);
}

.bouton a:active {
    transform: translateY(0);
}

/* ===== FOOTER MENTIONS ===== */
.footer-mentions {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 28px 20px;
}

.footer-mentions-inner {
    max-width: 760px;
    margin: 0 auto;
    font-size: 11px;
    color: #444;
    line-height: 1.7;
}

.footer-mentions-inner p {
    margin-bottom: 6px;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 16px 20px;
}

.footer-links-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
}

.footer-links-inner a {
    color: #1a3a8f;
    font-size: 12px;
    text-decoration: underline;
    padding-right: 16px;
    margin-right: 8px;
    border-right: 1px solid #ccc;
}

.footer-links-inner a:last-child {
    border-right: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 620px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .page-title h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .page-title .subtitle {
        font-size: 24px;
        line-height: 16px;
    }

    .prelevement-btns label {
        padding: 11px 28px;
        font-size: 16px;
    }

    .bouton a {
        /* padding: 14px 40px; */
        padding: 11px 19px; font-size: 14px;
    }

    .intro-text {
        font-size: 20px;
    }

    .info-banner {
        width: 100%;
        align-items: flex-start;
        font-size: 16px;
        display: flex;
    }

    #form_coord {
        width: 100%;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group .label-hint {
        font-size: 14px;
    }

    .upload-zone {
        padding: 0px 0px !important;
    }

    .upload-zone .btn-import {
        width: 100%;
    }

    .upload-zone .btn-import {
        width: 97%;
        margin: 1.5%;
        font-size: 16px;
    }

    .upload-hint {
        font-size: 14px;
    }

    .prelevement-question {
        font-size: 18px;
        text-align: left;
    }

    .prelevement-btns {
        display: flex;
        justify-content: flex-start;
    }

    .check_label {
        font-size: 18px;
    }

    .bouton a div {
        font-size: 16px;
    }

    #mentions {
        font-size: 14px;
    }
    .check_ligne {
        display: flex;
        align-items: flex-start;
        justify-content: start;
        gap: 10px;
    }
}

/* ── UPLOAD ZONE ── */
.upload-zone {
    border: 2px dashed #1a3a8f;
    border-radius: 6px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: border-color .2s, background .2s;
}

.upload-zone:hover {
    background: #f0f4ff;
}

.upload-zone.drag-over {
    border-color: #00008f;
    background: #eef2ff;
}

.upload-zone .upload-text {
    color: #1a3a8f;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-zone .upload-or {
    color: #00008f;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.upload-zone .btn-import {
    display: inline-block;
    background: #eeeeff;
    color: #1a3a8f;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background .2s;
}

.upload-zone .btn-import:hover {
    background: #e8e8ff;
}

.upload-hint {
    font-size: 16px;
    color: #5f5f5f;
    margin-top: 10px;
}

#file-input {
    display: none;
}

/* ── FILE PREVIEW CARD ── */
.file-preview {
    display: none;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #d0d8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 12px;
    animation: slideIn .25s ease;
}

.file-preview.visible {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thumbnail */
.file-thumb {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-thumb img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0;
}

.file-thumb .pdf-icon svg {
    width: 32px;
    height: 32px;
}

/* Info */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 16px;
    color: #5f5f5f;
    margin-top: 2px;
}

/* Action buttons */
.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.file-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .1s;
}

.file-btn:active {
    transform: scale(.92);
}

.btn-view {
    background: #eeeeff;
    color: #00008f;
}

.btn-view:hover {
    background: #dde4ff;
}

.btn-delete {
    background: #eeeeff;
    color: #00008f;
}

.btn-delete:hover {
    background: #dde4ff;
}

.file-btn svg {
    width: 18px;
    height: 18px;
}

/* ── LIGHTBOX PREVIEW ── */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lb-overlay.open {
    display: flex;
}

.lb-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .4);
    animation: popIn .2s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
}

.lb-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    max-width: 320px;
    truncate: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.lb-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: background .15s;
}

.lb-close:hover {
    background: #e0e0e0;
}

.lb-body {
    padding: 16px;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-body img {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 4px;
}

.lb-body iframe {
    width: 80vw;
    height: 75vh;
    border: none;
}

/* Error */
.univError {
    display: none;
}

.univError p {
    color: #e00000;
    font-size: 12px;
    margin-top: 4px;
}

.has-error .univError {
    display: block;
}

.has-error .upload-zone {
    border-color: #e00000;
}

@media (max-width: 480px) {
    .upload-zone {
        padding: 20px 12px;
    }

    .upload-zone .upload-text,
    .upload-zone .upload-or,
    .upload-zone .btn-import {
        font-size: 16px;
    }

    .file-name {
        font-size: 14px;
    }
}

/* Style pour les messages dynamiques Oui/Non */
.info-reponse {
    display: none;
    color: #00008f;
    text-align: center;
    line-height: 1.4;
}

/* --- VERSION WEB (Desktop) --- */
@media (min-width: 621px) {
    .info-reponse {
        font-size: 20px;
        margin-top: 14px;
        margin-bottom: -11px;
    }
}

/* --- VERSION MOBILE --- */
@media (max-width: 620px) {
    .info-reponse {
        font-size: 16px;
        margin-top: 12px;
        margin-bottom: 5px;
        text-align: left;
    }
}