/* --------------------------------------------- */
/* DESIGN MODERNE & INSTITUTIONNEL ENT LFIHM     */
/* --------------------------------------------- */

body {
    font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
    background-color: #fafafa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------- */
/* BARRE UTILISATEUR EN HAUT À DROITE            */
/* --------------------------------------------- */
.user-bar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    padding: 1.1rem 2rem 1.1rem 1.5rem;
    background: linear-gradient(90deg, #23225b 90%, #003366 100%);
    color: #fff;
    font-weight: 600;
    border-bottom-left-radius: 18px;
    display: flex;
    align-items: center;
    box-shadow: -1px 4px 8px rgba(35,34,91,0.07);
    min-width: 240px;
}
.user-bar .user-name {
    margin-right: 18px;
    font-size: 1.07rem;
    letter-spacing: 0.5px;
}
.user-bar .logout-icon {
    color: #fff;
    font-size: 1.33rem;
    margin-left: 8px;
    transition: color 0.23s;
    cursor: pointer;
    background: none;
    border: none;
}
.user-bar .logout-icon:hover {
    color: #ffd700;
    text-shadow: 0 1px 7px #23225b44;
}

/* --------------------------------------------- */
/* BOUTONS TRANSPARENTS, ÉPURÉS, INSTITUTIONNELS */
/* --------------------------------------------- */
.btn-ent, .btn-admin, .btn-logout {
    display: inline-block;
    padding: 0.53rem 1.18rem;
    border: 2px solid #5a1f68;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.99rem;
    background: transparent;
    color: #23225b;
    text-decoration: none;
    cursor: pointer;
    transition: 
        background 0.21s,
        color 0.21s,
        border-color 0.23s,
        transform 0.17s,
        box-shadow 0.19s;
    box-shadow: 0 2px 7px rgba(35,34,91, 0.09);
    margin: 0 0.21rem;
}
.btn-ent     { border-color: #23225b; }
.btn-admin   { border-color: #c51162; }
.btn-logout  { border-color: #757575; }

.btn-ent:hover, .btn-admin:hover, .btn-logout:hover {
    background: rgba(35,34,91,0.05);
    color: #c51162;
    border-color: #c51162;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px #5a1f6830;
    opacity: 0.97;
}

/* --------------------------------------------- */
/* RUBAN ET ENCADREMENTS SECTIONS               */
/* --------------------------------------------- */
.section-encadre {
    background: #fff;
    border-radius: 12px;
    margin: 2rem 0 2.3rem 0;
    box-shadow: 0 4px 22px rgba(90, 31, 104, 0.09);
    padding: 2.1rem 2.1rem 1.3rem 2.1rem;
    position: relative;
}
.ruban-titre {
    display: inline-block;
    position: absolute;
    top: -21px;
    left: 18px;
    background: linear-gradient(90deg, #5a1f68 85%, #003366 100%);
    color: #fff;
    padding: 0.52rem 2.1rem 0.62rem 1.35rem;
    font-size: 1.29rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 14px;
    box-shadow: 0 2px 12px #23225b19;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.sous-titre-section {
    color: #5a1f68;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.4px;
}
.trait-section {
    border: none;
    border-top: 1.6px solid #ece7ff;
    margin: 2.2rem 0 1.5rem 0;
}

/* --------------------------------------------- */
/* TABLEAUX STYLÉS                              */
/* --------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.2rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(35,34,91, 0.10);
    border-radius: 6px;
    overflow: hidden;
}
thead tr {
    background: linear-gradient(90deg, #5a1f68 85%, #003366 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}
th, td {
    padding: 0.92rem 1.1rem;
    border-bottom: 1px solid #ece7ff;
}
tbody tr:hover {
    background: #f0f8ff;
    transition: background 0.18s;
}

/* --------------------------------------------- */
/* FORMULAIRES                                  */
/* --------------------------------------------- */
input[type="text"], input[type="password"], input[type="email"],
select, textarea {
    width: 100%;
    padding: 0.68rem;
    margin-top: 0.5rem;
    border: 1.4px solid #b9b1d1;
    border-radius: 6px;
    transition: border-color 0.23s, box-shadow 0.23s;
    font-size: 0.99rem;
    background: #f8f8fb;
}
input[type="file"] {
    margin-top: 0.4rem;
}
input:focus, select:focus, textarea:focus {
    border-color: #5a1f68;
    box-shadow: 0 0 6px #5a1f6830;
}

/* --------------------------------------------- */
/* LIENS ET LISTES                              */
/* --------------------------------------------- */
a {
    color: #003366;
    text-decoration: none;
    transition: color 0.21s;
}
a:hover {
    color: #c51162;
    text-decoration: underline;
}
ul li {
    transition: background-color 0.23s, box-shadow 0.23s;
    padding: 0.23rem 0.47rem;
    border-radius: 5px;
}
ul li:hover {
    background-color: #f0f8ff;
    box-shadow: 0 2px 8px #00336613;
}

/* --------------------------------------------- */
/* MESSAGES ET ERREURS                          */
/* --------------------------------------------- */
.success {
    color: #388e3c;
    font-weight: 600;
    text-align: center;
    font-size: 1.04rem;
}
.error {
    color: #d32f2f;
    font-weight: 600;
    text-align: center;
    font-size: 1.04rem;
}

/* --------------------------------------------- */
/* FOOTER & RÉSEAUX SOCIAUX                     */
/* --------------------------------------------- */
.lfihm-footer, footer {
    margin-top: 1.25rem;
    background: #23225b;
    color: #fff;
    font-size: 0.82rem;
    text-align: center;
    padding: 0.7rem 0 0.37rem 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -2px 10px #23225b13;
    position: relative;
}
.footer-links, .footer-social {
    margin-bottom: 0.6rem;
}
.social-icon, .footer-social a {
    display: inline-block;
    margin: 0 7px;
    color: #fff;
    font-size: 1.17rem;
    background: #3e3a74;
    border-radius: 50%;
    width: 1.84rem;
    height: 1.84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.19s, color 0.18s, transform 0.12s;
}
.social-icon:hover, .footer-social a:hover {
    background: #c51162;
    color: #ffd700;
    transform: scale(1.13) rotate(-6deg);
    box-shadow: 0 4px 12px #c5116240;
}
.footer-separator {
    width: 75%;
    margin: 0.7rem auto 0.9rem auto;
    border-top: 1.2px solid #fff3;
}
.footer-copyright {
    color: #d6d6ff;
    font-size: 0.83rem;
    letter-spacing: 0.13px;
    margin-top: 0.18rem;
    margin-bottom: 0.08rem;
}

/* --------------------------------------------- */
/* HEADER LFHM                                   */
/* --------------------------------------------- */
.lfihm-header {
    width: 100%;
    background: linear-gradient(90deg, #23225b 0%, #5a1f68 100%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0;
    margin-bottom: 0.5rem;
}
.lfihm-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 2vw;
}
.logo-link img.lfihm-logo {
    height: 56px;
    max-width: 210px;
}
.user-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-welcome {
    color: #fff;
    font-weight: 500;
    font-size: 1.09rem;
    margin-right: 0.34rem;
    letter-spacing: 0.5px;
}
.logout-icon {
    color: #fff;
    font-size: 1.39rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50%;
    background: rgba(90,31,104,0.09);
    transition: background 0.19s, color 0.17s;
    border: none;
}
.logout-icon:hover { background: #d32f2f; color: #fff; }