*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scrollbar-gutter:stable;

}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:#f3f3f3;

    color:#222;

    padding:25px;

    overflow-y:scroll;

}

.conteneur{

    max-width:900px;

    margin:auto;

    background:#ffffff;

    border-radius:12px;

    padding:25px;

    box-shadow:0 0 20px rgba(0,0,0,0.15);

}

.logo {
    width:120px;
    height:auto;
    display:block;
    margin:0 auto 20px auto;
}

.lien-logo {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

h1{

    text-align:center;

    margin-bottom:25px;

    color:#006644;

}


/* ZONE DE RECHERCHE */

.zone-recherche{

    display:flex;

    gap:8px;

    align-items:stretch;

}

#recherche{

    flex:1;

    min-width:0;

    padding:15px;

    font-size:18px;

    border:1px solid #bbbbbb;

    border-radius:8px;

    outline:none;

}

#recherche:focus{

    border-color:#bbbbbb;

}


#recherche:hover{

    border-color:#006644;

}


#recherche::placeholder {

    color:#006644;

    opacity:1;

}


/* BOUTON + */

#ouvrirCategories{

    width:52px;

    flex-shrink:0;

    border:1px solid #bbbbbb;

    border-radius:8px;

    background:#ffffff;

    color:#006644;

    font-size:26px;

    cursor:pointer;

    transition:0.2s;

}

#ouvrirCategories:hover,
#ouvrirCategories:focus{

    border-color:#006644;

    color:#006644;

    outline:none;

}


/* NOMBRE DE MOTS */

#nombreMots{

    margin-top:8px;

    margin-bottom:20px;

    text-align:right;

    color:#777777;

    font-size:12px;

}


/* OVERLAY */

.overlay-categories{

    display:none;

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,0.30);

    backdrop-filter:blur(5px);

    -webkit-backdrop-filter:blur(5px);

    align-items:center;

    justify-content:center;

    padding:20px;

    z-index:1000;

}


/* FENÊTRE DES CATÉGORIES */

.fenetre-categories{

    position:relative;

    width:100%;

    max-width:650px;

    max-height:80vh;

    overflow-y:auto;

    background:#ffffff;

    border-radius:12px;

    padding:30px;

    box-shadow:0 10px 40px rgba(0,0,0,0.25);

}

.fenetre-categories h2{

    text-align:center;

    color:#006644;

    margin-bottom:20px;

}


/* BOUTON FERMER */

#fermerCategories{

    position:absolute;

    top:10px;

    right:12px;

    width:34px;

    height:34px;

    border:none;

    background:transparent;

    color:#777777;

    font-size:28px;

    line-height:1;

    cursor:pointer;

}

#fermerCategories:hover{

    color:#006644;

}


/* CATÉGORIES */

.categories {

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    justify-content:center;

    margin-top:20px;

}

.categories button {

    padding:8px 14px;

    border:1px solid #006644;

    border-radius:8px;

    background:#ffffff;

    color:#006644;

    cursor:pointer;

    transition:0.2s;

}

.categories button:hover{

    background:#006644;

    color:#ffffff;

}


/* RÉSULTATS */

#resultats{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.resultat{

    background:#f8f8f8;

    border-left:5px solid #006644;

    padding:15px;

    border-radius:8px;

}

.corse{

    font-size:22px;

    font-weight:bold;

    color:#006644;

    margin-bottom:8px;

}

.francais{

    font-size:18px;

}

.categorie{

    margin-top:8px;

    color:#666666;

    font-size:14px;

}

.notes{

    margin-top:6px;

    color:#999999;

    font-size:13px;

    font-style:italic;

}

.accueil{

    text-align:center;

    padding:50px 20px;

    color:#777777;

}

.aucun{

    text-align:center;

    color:#c00000;

    font-size:20px;

    padding:40px;

}


/* FOOTER */

footer{

    margin-top:20px;

    padding-top:15px;

    text-align:center;

    font-size:12px;

    color:#777777;

}

footer a{

    color:#006644;

    text-decoration:none;

    font-weight:bold;

}

footer a:hover{

    color:#006644;

    text-decoration:underline;

}


/* MOBILE */

@media(max-width:700px){

    body{

        padding:10px;

    }

    .conteneur{

        padding:20px;

    }

    h1{

        font-size:28px;

    }

    .corse{

        font-size:20px;

    }

    .francais{

        font-size:17px;

    }

    #ouvrirCategories{

        width:48px;

    }

    .fenetre-categories{

        padding:25px 15px;

        max-height:85vh;

    }

}