


/* ----- menu lego ----- */
/* Conteneur principal en colonne */
.menu_vertical_container {
    display: flex;
    flex-direction: column; /* Aligne les items verticalement */
    gap: 10px;              /* Espace entre chaque ligne */
    margin: 20px 0;
}

/* Chaque ligne du menu */
.menu_vertical_item {
    transition: transform 0.2s ease;
}

.menu_link {
    display: flex;          /* Aligne l'image et le texte sur la même ligne */
    align-items: center;    /* Centre verticalement le texte par rapport à l'image */
    text-decoration: none;
    color: #333;            /* Couleur du texte par défaut */
}

/* L'image */
.img_stack {
    width: 35px;
    height: 35px;
    margin-right: 15px;     /* Espace entre l'image et le texte */
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Le texte */
.menu_text {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 14px;
}

/* Effets de survol */
.menu_vertical_item:hover {
    transform: translateX(5px); /* Petit décalage vers la droite au survol */
}

.menu_vertical_item:hover .menu_text {
    color: #00529B; /* Le texte change de couleur au survol (optionnel) */
}

/* Style pour l'élément actif */
.img_stack.active {
    border: 2px solid #FFD700;
    filter: brightness(0.9);
    box-shadow: none;
}

.active_text {
    color: #999; /* Texte grisé pour la page active */
}



/* -------- titre des pages -----------*/

/* Style du titre principal pour l page index_lego*/
main h1 {
    text-align: center;         /* Centre le texte */
    color: #00529B;            /* Votre bleu fétiche */
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.1rem;         /* Taille généreuse */
    font-weight: 800;          /* Très gras pour l'aspect brique/solide */
    text-transform: uppercase; /* Majuscules pour plus d'impact */
    letter-spacing: 2px;       /* Espacement des lettres */
    margin: 5px 0 5px 0;     /* Espacement haut/bas */
    position: relative;        /* Nécessaire pour la petite barre déco */
    display: block;            /* S'assure qu'il prend toute la largeur pour centrer */
}




/* pour les boutons graphiques */

    .icon-30 {
        width: 30px;
        height: 30px;
        /*margin-top: 5px;*/
        margin-top:0;
        display: block;      /* Évite l'espace résiduel sous l'image */
    }

/* ------------ pour les boutons textes  -------*/

.btn-texte {
    display: inline-block;
    color: white !important;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-align: center;
    
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    outline:none;
    line-height: 1;
    /*height: 40px;*/
}


/* boutons texte */
.btn-texte.btn-ok                 { background-color: #28a745; box-shadow: 0 4px  6px rgba(40, 167, 69, 0.2); }
.btn-texte.btn-ok:hover           { background-color: #1e7e34; box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3); transform: translateY(-2px); }

.btn-texte.btn-ko                 { background-color: #dc3545; box-shadow: 0 4px  6px rgba(220, 53, 69, 0.2); }
.btn-texte.btn-ko:hover           { background-color: #bd2130; box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3); transform: translateY(-2px); }

.btn-texte.btn-annuler            { background-color: #ff9800; box-shadow: 0 4px  6px rgba(255, 152, 0, 0.2); }
.btn-texte.btn-annuler:hover      { background-color: #e68a00; box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3); transform: translateY(-2px); }

.btn-texte.btn-retour             { background-color: #4A90E2; box-shadow: 0 4px  6px rgba(74, 144,226, 0.2);  position: fixed; bottom: 20px; left: 220px; z-index: 1000; }
.btn-texte.btn-retour:hover       { background-color: #357ABD; box-shadow: 0 6px 12px rgba(74, 144,226, 0.3); transform: translateY(-2px); }
.btn-texte.btn-retour.dans-cadre  { position: relative; bottom: auto; left: auto; z-index: auto; }

.btn-texte.btn-enregistrer        { background-color: #28a745; box-shadow: 0 4px  6px rgba(40, 167, 69, 0.2); }
.btn-texte.btn-enregistrer:hover  { background-color: #1e7e34; box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3); transform: translateY(-2px); }

.btn-texte.btn-top                { background-color: #4169E1; box-shadow: 0 4px  6px rgba(65, 105,225, 0.2); position: fixed; bottom: 20px; right: 20px; z-index: 1000;  }
.btn-texte.btn-top:hover          { background-color: #3152B3; box-shadow: 0 6px 12px rgba(65, 105,225, 0.3); transform: translateY(-2px); }

.btn-texte.btn-filtrer            { background-color: #8B4513; box-shadow: 0 4px  6px rgba(139, 69, 19, 0.2); }
.btn-texte.btn-filtrer:hover      { background-color: #6B3410; box-shadow: 0 6px 12px rgba(139, 69, 19, 0.3); transform: translateY(-2px); }

.btn-texte.btn-choisir            { background-color: #007bff; box-shadow: 0 4px  6px rgba(0, 123, 255, 0.2); }
.btn-texte.btn-choisir:hover      { background-color: #0056b3; box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3); transform: translateY(-2px); }

.btn-texte.btn-raz                { background-color: #8E44AD; box-shadow: 0 4px 6px rgba(142, 68, 173, 0.2); }
.btn-texte.btn-raz:hover          { background-color: #703688; box-shadow: 0 6px 12px rgba(142, 68, 173, 0.3); transform: translateY(-2px); }

.btn-texte.btn-supprimer          { background-color: #dc3545; box-shadow: 0 4px  6px rgba(220, 53, 69, 0.2); }
.btn-texte.btn-supprimer:hover    { background-color: #bd2130; box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3); transform: translateY(-2px); }

.btn-texte.btn-ajouter            { background-color: #28a745; box-shadow: 0 4px  6px rgba(40, 167, 69, 0.2); }
.btn-texte.btn-ajouter:hover      { background-color: #1e7e34; box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3); transform: translateY(-2px); }

.btn-texte.btn-modifier           { background-color: #ff9800; box-shadow: 0 4px  6px rgba(255, 152, 0, 0.2); }
.btn-texte.btn-modifier:hover     { background-color: #e68a00; box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3); transform: translateY(-2px); }

