/* ==========================================================================
   1. LAYOUT MENU PRINCIPAL (Grille 3 colonnes)
   ========================================================================== */

/* Police et conteneur principal */
.layout-menu-grid, 
.layout-menu-grid button {
    font-family: Arial, "Segoe UI", Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Le conteneur principal bloque exactement la hauteur de l'écran */
.layout-menu-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #BDD5FB;
    position: relative;
    overflow: hidden;
}

/* 1. HEADER (Bannière bleue supérieure) */
.layout-menu-grid .app-header {
    background-color: #000080;
    color: #FFFFFF;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 40px;
    box-sizing: border-box;
}

.layout-menu-grid .header-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: bold;
    color: #FFFFFF;
}

/* 2. CONTENU PRINCIPAL (Pousse le footer en bas) */
.layout-menu-grid .app-content {
    flex: 1 1 auto;
    padding: 15px 35px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Zone Logo */
.layout-menu-grid .dashboard-header {
    margin-bottom: 20px;
    width: 100%;
}

.layout-menu-grid .dashboard-logo {
    height: 65px;
    width: auto;
    display: block;
}

/* Grille 3 colonnes */
.layout-menu-grid .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 30px;
    align-items: start;
    width: 100%;
}

.layout-menu-grid .info-group-placeholder {
    min-height: 1px;
}

/* Cartes / Blocs de menu */
.layout-menu-grid .info-group {
    background: #FFFFFF;
    border: 2px solid #000080;
    border-radius: 2px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    overflow: hidden;
}

.layout-menu-grid .list-header {
    background-color: #000080;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 0.92rem;
    padding: 8px 12px;
}

.layout-menu-grid .info-card {
    border-bottom: 1px solid #E0E0E0;
}

.layout-menu-grid .info-card:last-child {
    border-bottom: none;
}

.layout-menu-grid .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.15s;
}

.layout-menu-grid .info-item:hover {
    background-color: #EBF2FF;
}

.layout-menu-grid .info-text h4 {
    margin: 0;
    color: #000080;
    font-size: 0.85rem;
    font-weight: 600;
}

.layout-menu-grid .info-action img {
    width: 16px;
    height: 16px;
    display: block;
}

/* 3. FOOTER (Plaqué strictement en bas) */
.layout-menu-grid .app-footer {
    background-color: #000080;
    color: #FFFFFF;
    padding: 8px 20px;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height: 35px;
    box-sizing: border-box;
    margin-top: auto;
}

.layout-menu-grid .app-footer a {
    color: #FFFF00;
    text-decoration: underline;
    font-weight: bold;
}