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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5fb;
    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 20px 60px;
    background-color: #f5f5fb;
}

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

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

.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;
}

/* ===== CONTACT TITLE ===== */
.contact-title {
    text-align: center;
    font-size: 46px;
    font-weight: 900;
    color: #00008f;
    margin-bottom: 24px;
    text-transform: none;
}

/* ===== INTRO TEXT ===== */
.intro-text {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== FORM ===== */
#form_contact {
    width: 100%;
    margin: 0 auto;
    padding-top: 10px;
}

/* ===== 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;
    gap: 6px;
}

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

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

.required-star {
    color: #1a1a2e;
}

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

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

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

/* ===== SELECT ===== */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a2e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    color: #5f5f5f;
}

.form-group select.selected {
    color: #1a1a2e;
}

/* ===== TEXTAREA ===== */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

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

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

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

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

/* ===== MENTIONS LÉGALES ===== */
.mentions-bloc {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 28px;
    margin-top: 10px;
}

.mentions-bloc p {
    margin-bottom: 5px;
}

/* ===== SUBMIT BUTTON ===== */
.bouton {
    display: flex;
    justify-content: center;
}

.bouton a {
    display: inline-block;
    background-color: #00008f;
    color: #ffffff;
    font-size: 17px !important;
    line-height: 29px !important;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.3px;
    margin: 26px 10px 5px 3px !important;
    width: auto;
    padding: 6px 54px;
}

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

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

/* ===== FOOTER LINKS ===== */
.footer-links {
    background: #00008f;
    padding: 20px 20px;
}

.footer-links-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.footer-links-inner a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: underline;
    padding: 4px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

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

.contact_form {
    width: 58%;
    margin: 0 auto;
}

.mentions {
    padding: 0px 100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #form_contact {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

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

    .contact-title {
        font-size: 32px;
    }

    .bouton a {
        padding: 14px 32px;
        font-size: 15px;
    }

    .footer-links-inner {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

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

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

    .contact_form {
        width: 100%;
        margin: 0 auto;
    }

    .mentions {
        padding: 0px 0px;
    }
}