@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --primary: #6366f1; /* Indigo doux */
    --primary-hover: #4f46e5;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    /* Dégradé pastel animé */
    background: linear-gradient(-45deg, #e0c3fc, #8ec5fc, #ffecd2, #fbc2eb);
    background-size: 400% 400%;
    animation: breathe 15s ease infinite;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes breathe {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6vh 20px 40px; }
.container { width: 100%; max-width: 900px; }

/* === EN-TÊTE === */
.header { text-align: center; margin-bottom: 50px; }
.header h1 { font-size: 3rem; font-weight: 800; color: #0f172a; margin-bottom: 15px; letter-spacing: -1px; }
.header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* === GLASSMORPHISM (Cartes et Formulaires) === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

/* === GRILLE DES OFFRES (INDEX) === */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.job-card { text-decoration: none; display: flex; flex-direction: column; }
.job-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.9); }
.job-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.job-card h2 { color: #0f172a; font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; }
.job-card p { color: var(--text-muted); line-height: 1.6; flex-grow: 1; margin-bottom: 25px; }
.btn-outline { display: inline-block; text-align: center; color: var(--primary); font-weight: 600; padding: 12px 20px; border: 1px solid #cbd5e1; border-radius: 12px; transition: 0.3s; background: white; }
.job-card:hover .btn-outline { background: var(--primary); color: white; border-color: var(--primary); }

/* === PAGE OFFRE & FORMULAIRE === */
.job-recap { margin-bottom: 40px; border-left: 6px solid var(--primary); }
.job-recap h2 { font-size: 2rem; color: #0f172a; margin-bottom: 15px; }
.job-recap .badge { background: rgba(99, 102, 241, 0.1); color: var(--primary); padding: 5px 12px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; display: inline-block; }

.section-title { font-size: 1.3rem; color: var(--primary); font-weight: 700; border-bottom: 2px solid rgba(99, 102, 241, 0.1); padding-bottom: 10px; margin: 40px 0 25px; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-group { margin-bottom: 20px; flex: 1; min-width: 250px; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; color: #334155; }

input, select, textarea {
    width: 100%; padding: 14px 18px; border-radius: 12px;
    border: 1px solid #cbd5e1; background: #ffffff; color: var(--text-dark);
    font-size: 1rem; transition: all 0.2s ease; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
textarea { min-height: 120px; resize: vertical; }

.btn-submit {
    background: var(--primary); color: white; border: none; padding: 16px 32px;
    border-radius: 12px; font-size: 1.1rem; font-weight: 700; width: 100%; cursor: pointer;
    transition: all 0.3s; margin-top: 20px; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-submit:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); }

/* === FOOTER === */
footer { text-align: center; padding: 30px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.5); color: var(--text-muted); font-size: 0.95rem; margin-top: auto; }
footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
