.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* occupe toute la hauteur */
    background: #f9f9f9; /* optionnel, juste pour contraste */
}

.formulaire-section {
    background: #fff;
    width: 800px;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 70px auto 90px auto;

}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.offer-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
}

.offer-title {
    font-size: 1.6rem;
    color: #222;
    font-weight: 600;
    text-transform: capitalize;
}


.formulaire {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Organisation des lignes */
.form-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

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

.form-group.full {
    flex: 1 1 100%;
}

input#telephone {
    width: 49%;
}

label {
    font-weight: 500;
    color: #444;
}

input[type="text"],
input[type="email"] {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: 0.2s;
}

input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* Bloc upload (CV / Lettre) */
.upload {
    position: relative;
    flex: 1;
    background: #fafafa;
    border: 2px dashed #aaa;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload label {
    display: block;
    padding: 2rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

/* Bloc conditions d'utilisation */
.conditions-of-use {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.conditions-of-use {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.conditions-of-use a {
    color: #007bff;
    text-decoration: underline;
}

.conditions-of-use a:hover {
    color: #0056b3;
    text-decoration: none;
}

.conditions-of-use input[type="checkbox"] {
    width: 2em;
    height:1em;
    margin: 0;
}

.conditions-of-use label {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

/* Bouton Postuler */
.btn-postuler {
    align-self: center;
    background: #1c396f;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-left: auto;
    margin-right: 0;
}

.btn-postuler:hover {
    transform: translateY(-2px);
    background: #0a6fad;
}

/* Ligne spéciale des uploads */
.uploads {
    align-items: center;
}

.required {
    color: red;
}


/* ========================= */
/* 📱 Mobile (max 576px)     */
/* ========================= */
@media (max-width: 576px) {
    .formulaire-section {
        width: 95%;
        padding: 1.5rem;
        margin: 120px auto 60px auto;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
    }

    .offer-logo {
        width: 100px;
        height: 100px;
    }

    .offer-title {
        font-size: 1.3rem;
    }

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

    input#telephone {
        width: 100%;
    }

    .upload label {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .btn-postuler {
        width: 100%;
        margin: 1rem 0 0 0;
    }
}

/* ========================= */
/* 📲 Tablette (577px–991px) */
/* ========================= */
@media (min-width: 577px) and (max-width: 991px) {
    .formulaire-section {
        width: 90%;
        padding: 2rem;
    }

    .offer-logo {
        width: 120px;
        height: 120px;
    }

    .offer-title {
        font-size: 1.4rem;
    }

    .form-row {
        flex-wrap: wrap;
    }

    input#telephone {
        width: 70%;
    }

    .btn-postuler {
        align-self: center;
        padding: 0.9rem 1.8rem;
    }
}

/* ========================= */
/* 💻 Desktop (>= 992px)     */
/* ========================= */
@media (min-width: 992px) {
    .formulaire-section {
        width: 800px;
    }
}
