/* ===============================
   Global
================================= */
body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

/* ===============================
   Header Hero
================================= */
header.hero-form {
    background-color: #f9f9f9;
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 2px solid #d32f2f;
}

header.hero-form h1 {
    font-size: 2.8rem;
    color: #d32f2f;
    margin-bottom: 1rem;
    font-weight: bold;
}

header.hero-form p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0.5rem auto;
    color: #555;
}

/* ===============================
   Section Instructions
================================= */
.instructions {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    background-color: #f5f5f5;
    border-left: 6px solid #d32f2f;
    border-radius: 8px;
}

.instructions h2 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.instructions ul {
    margin: 0.5rem 0 0 1.2rem;
}

.instructions li {
    margin-bottom: 0.5rem;
}

/* ===============================
   Formulaire candidature
================================= */
.application-form {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: #fafafa;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.application-form h2 {
    text-align: center;
    color: #d32f2f;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.application-form p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
    font-size: 1rem;
}

.application-form fieldset {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.application-form legend {
    font-weight: bold;
    color: #d32f2f;
    font-size: 1.2rem;
}

.application-form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

.application-form input,
.application-form select,
.application-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.3rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
    border: 2px solid #d32f2f;
    outline: none;
}

/* Textarea Lettre de motivation */
.application-form textarea {
    min-height: 200px;
    resize: vertical;
}

/* Checkbox consentement */
.application-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Bouton soumettre */
.application-form button {
    display: block;
    margin: 2rem auto 0 auto;
    padding: 1rem 2.5rem;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.application-form button:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
}

/* ===============================
   Section Paiement (si nécessaire)
================================= */
.payment-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 12px;
    background-color: #f5f5f5;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.payment-section h2 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: bold;
}

.payment-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.payment-section iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
}

/* ===============================
   Footer
================================= */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    border-top: 2px solid #d32f2f;
    color: #555;
}

.footer p {
    margin: 0.3rem 0;
}

/* ===============================
   Responsive
================================= */
@media (max-width: 1024px) {
    header.hero-form h1 { font-size: 2.4rem; }
    header.hero-form p { font-size: 1.1rem; }
    .application-form { padding: 2rem; }
    .payment-section { padding: 1.5rem; }
}

@media (max-width: 768px) {
    header.hero-form h1 { font-size: 2rem; }
    .application-form fieldset { padding: 1.2rem; }
    .application-form button { width: 100%; padding: 1rem; }
}

@media (max-width: 480px) {
    header.hero-form h1 { font-size: 1.7rem; }
    header.hero-form p { font-size: 1rem; }
    .application-form { padding: 1rem; }
    .payment-section { padding: 1rem; }
}
