/* ==========================================================================
   Accueil — hero, moteur de recherche, enchaînement des sections.
   La recherche est l'élément principal : pas de photographie, pas de titre
   géant.
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--primary-deep);
    color: var(--on-deep-muted);
}

/* Deux arcs discrets, sans image */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    top: -180px;
    right: -120px;
    width: 460px;
    height: 460px;
    border: 60px solid var(--deep-surface);
}

.hero::after {
    bottom: -90px;
    left: -90px;
    width: 220px;
    height: 220px;
    border: 30px solid var(--deep-surface);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-6);
    padding-block: var(--space-6);
}

.hero .eyebrow { color: var(--accent); }

.hero__title {
    max-width: 27ch;
    margin: 0 0 var(--space-3);
    color: var(--on-primary);
}

.hero__lead {
    max-width: 56ch;
    margin: 0 0 var(--space-5);
    color: var(--on-deep-muted);
}

/* --------------------------------------------------------------------------
   Barre de recherche : champs empilés sur mobile, barre horizontale ensuite
   -------------------------------------------------------------------------- */
.search-bar {
    display: grid;
    gap: 1px;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.search-bar__field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid var(--border);
}

.search-bar__field > i {
    position: absolute;
    left: var(--space-3);
    color: var(--text-muted);
    pointer-events: none;
}

.search-bar__field input,
.search-bar__field select {
    width: 100%;
    height: 48px;
    padding: 0 var(--space-3) 0 2.5rem;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    text-overflow: ellipsis;
}

.search-bar__field select { cursor: pointer; }
.search-bar__field input::placeholder { color: var(--text-muted); }

.search-bar__field input:focus,
.search-bar__field select:focus {
    outline: 0;
    box-shadow: inset var(--focus-ring);
}

.search-bar__submit {
    min-height: 48px;
    margin-top: var(--space-2);
}

@media (min-width: 768px) {
    .search-bar {
        grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
        align-items: center;
        gap: 0;
        border-radius: var(--radius-pill);
    }

    .search-bar__field {
        border-bottom: 0;
        border-right: 1px solid var(--border);
    }

    .search-bar__field input,
    .search-bar__field select {
        border-radius: var(--radius-pill);
        font-size: .9375rem;
    }

    .search-bar__submit {
        margin: 0 0 0 var(--space-2);
        border-radius: var(--radius-pill);
    }
}

.hero__popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-4);
}

.hero__popular-label {
    font-size: var(--text-sm);
    color: var(--on-deep-muted);
}

/* --------------------------------------------------------------------------
   Parcours : trouver, préparer, candidater, progresser
   -------------------------------------------------------------------------- */
.hero__journey {
    align-content: center;
    gap: var(--space-2);
    margin: 0;
    padding: var(--space-4);
    border: 1px solid var(--deep-border);
    border-radius: var(--radius-lg);
    background: var(--deep-surface);
    list-style: none;
}

.hero__journey li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
}

.hero__journey li + li { border-top: 1px solid var(--deep-border); padding-top: var(--space-3); }
.hero__journey .icon-tile { border: 1px solid var(--deep-border); }

.hero__journey strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--on-primary);
}

.hero__journey small {
    display: block;
    font-size: var(--text-xs);
    color: var(--on-deep-muted);
}

@media (min-width: 992px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: center;
        padding-block: var(--space-7);
    }
}

/* Sections de l'accueil : resserrées, la page reste compacte */
.section--tight { padding-block: var(--space-5) 0; }
.hero + .section--tight { padding-top: var(--space-5); }
