:root {
    --vert-fonce: #155f2d;
    --vert-bouton: #8fca3a;
    --vert-bouton-hover: #7bb52d;
    --bleu-lien: #397ab7;
    --texte: #25352b;
    --fond: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--fond);
    color: var(--texte);
    font-family: "Roboto", Arial, sans-serif;
}

.hero {
    display: flex;
    min-height: 375px;
    align-items: center;
    background: var(--vert-fonce);
    color: #fff;
    padding: 48px 24px;
}

.hero__contenu,
.resultats__contenu {
    width: min(880px, 100%);
    margin: 0 auto;
}

h1 {
    margin: 0 0 62px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 400;
    line-height: 1.08;
    text-align: center;
    text-transform: uppercase;
}

h1 span {
    white-space: nowrap;
}

h1 sup {
    font-size: 0.62em;
    text-transform: none;
}

.recherche {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
}

.recherche input {
    width: 100%;
    min-height: 52px;
    border: 3px solid #fff;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    padding: 10px 16px;
}

.recherche input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.recherche input:focus {
    box-shadow: 0 0 0 4px rgba(143, 202, 58, 0.32);
}

.recherche button {
    min-height: 52px;
    border: 0;
    background: var(--vert-bouton);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 12px 22px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.recherche button:hover {
    background: var(--vert-bouton-hover);
}

.recherche button:active {
    transform: translateY(1px);
}

.resultats {
    padding: 62px 24px 90px;
}

.resultats__contenu {
    width: min(880px, 100%);
}

h2 {
    margin: 0 0 8px;
    color: var(--vert-fonce);
    font-size: 1.55rem;
}

.indication {
    margin: 0 0 30px;
    color: #637168;
}

.liste-noms {
    margin: 0;
    padding-left: 30px;
}

.liste-noms li {
    margin: 0 0 11px;
    color: var(--bleu-lien);
    font-size: 1.18rem;
    font-weight: 700;
}

.liste-noms a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.liste-noms a span {
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.liste-noms a:hover,
.liste-noms a:focus-visible {
    color: var(--vert-fonce);
    text-decoration: underline;
}

.liste-noms a:hover span,
.liste-noms a:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

.aucun-resultat {
    margin-top: 24px;
    border-left: 5px solid var(--vert-bouton);
    background: #f3f8f4;
    padding: 18px 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 650px) {
    .hero {
        min-height: 390px;
        padding-inline: 18px;
    }

    h1 {
        margin-bottom: 44px;
        font-size: clamp(1.8rem, 8vw, 2.55rem);
    }

    h1 span {
        white-space: normal;
    }

    .recherche {
        grid-template-columns: 1fr;
    }

    .resultats {
        padding: 42px 22px 70px;
    }

    .liste-noms li {
        font-size: 1.05rem;
    }
}
