/* =====================================================
   JOBSTATION — HERO CORRIGÉ
===================================================== */

.hero {
    position: relative;
    padding: 80px 0 120px;
    background: #fff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    align-items: center;
}

.hero-content {
    min-width: 0;
}

/* TITRES ET TEXTES */

.hero h1 {
    margin: 0 0 25px;
    color: #0b1930;
    font-size: clamp(42px, 4.6vw, 68px);
    line-height: 1.05;
    font-weight: 800;
}

.hero h1 span {
    color: #ff7a00;
}

.hero p {
    margin: 0 0 30px;
    color: #667085;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.65;
}

/* BADGE */

.hero .badge {
    display: inline-block;
    margin-bottom: 26px;
    padding: 10px 22px;
    border-radius: 30px;
    background: #eaf2ff;
    color: #0b1930;
    font-weight: 600;
}

/* BOUTONS */

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    border: none;
    background: #ff7a00;
    color: #fff;
}

.btn-secondary {
    border: 1px solid #ddd;
    background: #fff;
    color: #0b1930;
}

/* RECHERCHE */

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(105px, .75fr) 142px;
    align-items: end;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-top: 38px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.search-field {
    min-width: 0;
    width: 100%;
}

.search-field label {
    display: block;
    margin: 0 0 9px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.search-field input,
.search-field select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    background: #f4f6fa;
    color: #0b1930;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.search-field input::placeholder {
    color: #7b8494;
    opacity: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-field input:focus,
.search-field select:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, .12);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 10px;
    border: none;
    border-radius: 12px;
    background: #ff7a00;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease;
}

.search-btn:hover {
    background: #e66e00;
}

.search-btn:focus-visible {
    outline: 3px solid rgba(255, 122, 0, .28);
    outline-offset: 3px;
}

/* VISUEL HERO */

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 560px;
}

.hero-bg {
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1;
    width: min(430px, 90%);
    height: 560px;
    border-radius: 40px;
    background: linear-gradient(135deg, #315bff, #2447d5);
}

.hero-image img {
    position: relative;
    z-index: 2;
    display: block;
    width: min(470px, 100%);
    max-width: 100%;
    height: auto;
    transform: translateY(-35px);
}

/* CARTES STATISTIQUES */

.hero-card {
    position: absolute;
    z-index: 20;
    width: 170px;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .10);
    box-sizing: border-box;
}

.hero-card h3 {
    margin: 0 0 4px;
    color: #0b1930;
    font-size: 34px;
    line-height: 1.1;
}

.hero-card span {
    color: #667085;
    font-size: 15px;
}

.card-offres {
    top: 90px;
    left: 20px;
}

.card-concours {
    top: 120px;
    right: 10px;
}

.card-bourse {
    bottom: 180px;
    left: 10px;
}

.card-appel {
    bottom: 120px;
    right: 20px;
}

/* TRANSITION */

.hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    border-radius: 60px 60px 0 0;
    background: #f8fafc;
}

/* TABLETTE */

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
        gap: 28px;
    }

    .hero-search {
        grid-template-columns: minmax(0, 1fr) minmax(100px, .7fr);
    }

    .search-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 64px 0 105px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hero h1 {
        font-size: clamp(42px, 6vw, 56px);
    }

    .hero-image {
        min-height: 500px;
    }

    .hero-bg {
        right: 50%;
        transform: translateX(50%);
    }

    .hero-search {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) 150px;
    }

    .search-btn {
        grid-column: auto;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .hero {
        padding: 52px 0 90px;
    }

    .hero h1 {
        font-size: clamp(36px, 8vw, 46px);
    }

    .hero p {
        font-size: 18px;
    }

    .hero-search {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 28px;
        padding: 15px;
    }

    .search-field input,
    .search-field select {
        height: 46px;
    }

    .search-btn {
        grid-column: auto;
        min-height: 48px;
    }

    .hero-image {
        min-height: 430px;
    }

    .hero-image img {
        width: min(380px, 100%);
    }

    .hero-card {
        width: 140px;
        padding: 16px;
    }

    .hero-card h3 {
        font-size: 28px;
    }

    .card-offres { left: 0; }
    .card-concours { right: 0; }
    .card-bourse { bottom: 100px; left: 0; }
    .card-appel { right: 0; bottom: 70px; }
}

/* PETITS ÉCRANS */

@media (max-width: 600px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-image {
        min-height: 360px;
    }

    .hero-image img {
        width: min(320px, 100%);
    }

    .hero-bg {
        width: 300px;
        max-width: 90%;
        height: 380px;
    }

    .hero-card {
        width: 120px;
        padding: 14px;
    }

    .hero-card h3 {
        font-size: 24px;
    }

    .hero-card span {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-btn {
        transition: none;
    }
}