/* ===== Global ===== */
html, body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
    background: linear-gradient(90deg, #d2e1de 0%, white 30%, white 70%, #d2e1de 100%);
    justify-content: flex-start;
    align-items: center;
}

/* ===== Barre d'info (si utilisée) ===== */
.content {
    display: block;
    width: 100%;
    height: 22px;
    background: #FFCCCC;
    color: black;
    text-align: center;
    line-height: 22px;
}

/* ===== Titre et raccourcis ===== */
h1 {
    display: flex;
    width: calc(100% - 40px);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 0 0;
    padding-left: 40px;
}

.shortcuts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.shortcuts .shortcutTitle {
    margin-left: 20px;
    font-size: medium;
    font-weight: bold;
}

.shortcuts .shortcutContent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    border-radius: 20px;
    border: solid 1px #CCCCCC;
    padding: 5px;
}

.shortcuts .shortcutContent a {
    display: flex;
    flex-direction: column;
    width: 40px;
    height: 40px;
    font-size: 0; /* texte caché par défaut */
    margin: 10px;
    padding: 10px;
    border-radius: 15px;
    border: solid 1px #CCCCCC55;
    box-shadow: 3px 3px 5px #AAAAAA, inset 2px 2px 2px #FFF;
    background: transparent;
    color: black;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.shortcuts .shortcutContent a:hover {
    transform: translateY(-8px);
    font-size: 10px; /* affiche le texte au hover */
}

/* ===== Menu principal ===== */
menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin: 15px 0 0 0;
    padding: 0;
    z-index: 10;
}

menu .mainMenu {
    position: relative;
    display: flex;
    flex: 1;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 15px 15px 0 0;
    transition: border-radius 0.3s, opacity 0.3s;
}

/* Couleurs par onglet */
menu .mainMenu:nth-child(1) { background: hsl(40, 100%, 70%); }
menu .mainMenu:nth-child(2) { background: hsl(220, 100%, 80%); }
menu .mainMenu:nth-child(3) { background: hsl(170, 60%, 70%); }
menu .mainMenu:nth-child(4) { background: hsl(120, 80%, 85%); }
menu .mainMenu:nth-child(5) { background: hsl(60, 100%, 80%); }
menu .mainMenu:nth-child(6) { background: hsl(300, 100%, 80%); }

menu .mainMenu:not(:hover) {
    opacity: 0.6;
    border-radius: 15px 15px 15px 15px;
}

/* ===== Drawer (sous-menu) ===== */
.drawer {
    display: none; /* caché par défaut */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    list-style: none;
    background: inherit;
    padding: 0;
    margin: 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.menu:hover .drawer,
.mainMenu:hover .drawer,
menu .mainMenu:hover .drawer {
    display: flex; /* apparaît au survol */
    overflow: hidden;
}

/* ===== Titres de sous-menu ===== */
.lnkTitle {
    font-weight: bold;
    color: black;
    text-decoration: underline;
    padding: 5px 0;
}

/* ===== Lignes de sous-menu ===== */
.link {
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    padding-left: 20px;
    cursor: pointer;
}

.link a {
    color: black;
    text-decoration: none;
}

.link a:visited {
    color: black;
}

.link:hover {
    background: #ffffff88;
}

/* ===== Formulaire de recherche ===== */
.researchForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.researchInput {
    width: 30%;
    height: 40px;
    border-radius: 10px;
    padding: 5px 10px;
}

.researchButton {
    width: 10%;
    height: 40px;
    margin-top: 10px;
    border-radius: 10px;
    border-top: 2px solid black;
    cursor: pointer;
    background: white;
}

.researchButton:hover {
    background: lightcyan;
}

.researchResult {
    display: block;
    width: 100%;
    margin-top: 10px;
    overflow-y: auto;
}

/* ===== Résultats de recherche ===== */
.resultTr {
    background: transparent;
}

.resultTr:hover {
    background: #ffff7755;
}

.resultTr.selected {
    background: #7777FF77;
}
