/* ==================== BARRE DE NAVIGATION ==================== */
.navbar {
    background-color: #f8f8f8;
    padding: 10px 20px;
    display: flex;
    gap: 20px;              /* espace entre tous les liens */
    font-family: Arial, sans-serif;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.2s;
}

.navbar a:hover {
    text-decoration: underline;
    color: #000;
}

/* Espace supplémentaire AVANT le dernier lien "Just Boxes" */
.navbar a:last-child {
    margin-left: 20px;
}


/* ==================== CONFIG GLOBALE ==================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f1f1f1;
    color: #000;
}

.grid2 {
    display: grid;
    grid-template-columns: 25% ; /* chaque bloc prend la moitié de la largeur du conteneur */
    justify-content: start;      /* aligne à gauche */
    gap: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


/* ==================== BLOCS CLIQUABLES ==================== */
.bloc {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;         /* pour que l'a englobant fonctionne */
    text-decoration: none;  /* pas de soulignement si <a> englobant */
    color: inherit;         /* couleur du texte hérité */
    cursor: pointer;
}

.bloc:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* COULEURS SECTIONS */
.admin     { background: #fde2e4; }
.invest    { background: #d7e9ff; }
.formation { background: #e8f7d2; }
.emploi    { background: #fff4d6; }
.news	   { background: #9758EA; }


/* ==================== LIENS ET ICÔNES ==================== */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* uniquement les items qui ont icon-bg */
.item.icon-bg img {
    background-color: white;
    padding: 4px;
    border-radius: 4px;
    box-sizing: border-box;
}

/* taille identique partout */
.item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}


/* ==================== MODE SOMBRE ==================== */
body.dark {
    background: #1e1e1e;
    color: #e5e5e5;
}

body.dark a {
    color: #9fc1ff;
}

body.dark .admin     { background: #703f46; }
body.dark .invest    { background: #2f4a66; }
body.dark .formation { background: #3f5638; }
body.dark .emploi    { background: #5e512e; }
body.dark .news	     { background: #9758EA; }

body.dark .item span {
    color: #e5e5e5;
}

/* ==================== BOUTON OUVRIR DOSSIER ==================== */
.open-folder-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #003366, #0055aa);
    color: white;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.open-folder-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.open-folder-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}



/* ==================== PAGE INVEST ==================== */

.invest-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);   /* 5 icônes par ligne */
    gap: 20px;
    text-align: center;
    padding: 10px;
}

.invest-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.invest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}


