/* ══════════════════════════════════════════
   COMPLEXE SCOLAIRE SEKOU FOFANA
   Feuille de style — Page Recrutements
   Fichier : css/recrutements.css
══════════════════════════════════════════ */


/* ══════════════════════════════
   VARIABLES & RESET
══════════════════════════════ */

:root {
    --bleu: #0D47A1;
    --bleu-clair: #1565C0;
    --or: #FFD700;
    --vert: #2E7D32;
    --rouge: #C62828;
    --blanc: #ffffff;
    --gris-clair: #f5f7fa;
    --texte: #1a1a2e;
    --texte-doux: #5a6a7e;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--gris-clair);
    color: var(--texte);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.nav-logo-icon {
    height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 500;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-active {
    color: var(--or) !important;
}

.nav-cta {
    background: var(--or) !important;
    color: var(--bleu) !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 8px;
}

.nav-cta:hover {
    background: #FFC107 !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-hamburger span {
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}


/* ══════════════════════════════
   HERO
══════════════════════════════ */

.hero-recrutements {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 60%, #1976D2 100%);
    padding: 80px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-recrutements::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 215, 0, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--or);
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-recrutements h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-recrutements h1 span {
    color: var(--or);
}

.hero-recrutements p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-badges span,
.hero-badges a {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badges a {
    transition: background 0.2s, transform 0.2s;
}

.hero-badges a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.hero-stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-stat-item {
    text-align: center;
    color: white;
}

.hero-stat-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--or);
}

.hero-stat-item span {
    font-size: 0.8rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ══════════════════════════════
   SECTION ANNONCES
══════════════════════════════ */

.section-annonces {
    padding: 70px 5%;
    background: white;
}

.section-avantages {
    padding: 70px 5%;
}

.bg-light {
    background: var(--gris-clair);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: #e8f0fe;
    color: var(--bleu);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--texte);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-title span {
    color: var(--bleu);
}

.section-subtitle {
    color: var(--texte-doux);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ══════════════════════════════
   GRILLE ANNONCES
══════════════════════════════ */

.annonces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}


/* ══════════════════════════════
   CARTE ANNONCE
══════════════════════════════ */

.annonce-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid #e8eeff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.annonce-card:hover {
    border-color: var(--bleu);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(13, 71, 161, 0.12);
}

.annonce-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.annonce-icon {
    font-size: 2rem;
    width: 54px;
    height: 54px;
    background: #e8f0fe;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.annonce-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.annonce-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e8f5e9;
    color: var(--vert);
}

.annonce-tag.urgent {
    background: #fff3e0;
    color: #e65100;
}

.annonce-date {
    font-size: 0.75rem;
    color: var(--texte-doux);
}

.annonce-titre {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--texte);
    line-height: 1.3;
}

.annonce-niveau {
    font-size: 0.85rem;
    color: var(--bleu);
    font-weight: 500;
}

.annonce-desc {
    font-size: 0.88rem;
    color: var(--texte-doux);
    line-height: 1.65;
}

.annonce-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--gris-clair);
    padding: 14px 16px;
    border-radius: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--texte);
}

.detail-item span {
    font-size: 1rem;
}

.btn-postuler {
    margin-top: auto;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.btn-postuler:hover {
    background: linear-gradient(135deg, #0a3d8f, var(--bleu));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

.candidature-spontanee {
    margin-top: 40px;
    padding: 22px 28px;
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    border: 2px solid #c5d9f7;
    border-radius: 16px;
    text-align: center;
}

.candidature-spontanee p {
    font-size: 0.95rem;
    color: var(--texte);
    line-height: 1.7;
}

.candidature-spontanee a {
    color: var(--bleu);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.candidature-spontanee a:hover {
    color: var(--bleu-clair);
}


/* ══════════════════════════════
   AVANTAGES
══════════════════════════════ */

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.avantage-card {
    background: white;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.avantage-card:hover {
    transform: translateY(-6px);
}

.avantage-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}

.avantage-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 10px;
}

.avantage-card p {
    font-size: 0.85rem;
    color: var(--texte-doux);
    line-height: 1.6;
}


/* ══════════════════════════════
   MODAL
══════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 70, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: white;
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: var(--gris-clair);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: var(--texte-doux);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e0e7ff;
    color: var(--bleu);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--texte);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--texte-doux);
}

.modal-header p strong {
    color: var(--bleu);
    font-weight: 600;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texte);
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--texte);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--bleu);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.08);
}

.form-group textarea {
    height: 110px;
    resize: vertical;
}

.btn-envoyer {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
}

.btn-envoyer:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a3d8f, var(--bleu));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

.btn-envoyer:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ══════════════════════════════
   TOAST
══════════════════════════════ */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--texte);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    white-space: normal;
    text-align: center;
    max-width: min(90vw, 420px);
}

.toast.erreur {
    background: var(--rouge);
}

.toast.succes {
    background: var(--vert);
}


/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}


/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 900px) {
    .annonces-grid {
        grid-template-columns: 1fr;
    }
    .avantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-recrutements {
        padding: 50px 5% 40px;
    }
    .hero-stats-bar {
        gap: 24px;
        margin-top: 32px;
    }
    .hero-badges {
        gap: 8px;
    }
    .section-annonces,
    .section-avantages {
        padding: 50px 5%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .avantages-grid {
        grid-template-columns: 1fr;
    }
    .modal {
        padding: 24px 18px;
    }
}