﻿@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


h4, h5 {
    color: #b51217; 
    font-weight: 600;
}
/* Labels des formulaires */
form .form-label {
    color: #b51217; 
    font-weight: bold; 
    font-size: 1rem;
}

/* Couleur personnalisée du header */
.table thead.thead-custom th {
    background-color: #b51217 !important;
    color: #fff !important;
}

/* Bouton "Créer" */
.btn-custom-create {
    background-color: #e0e0e0; /* gris clair */
    color: #000; /* texte noir */
    border: 1px solid #b51217;
    font-weight: 500;
    margin-left: 5px;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    font-family: "Segoe UI", "Segoe UI Symbol", Arial, sans-serif;
    display: inline-flex;
    align-items: center;
}
    /* Emoji personnalisé avant le texte */
    .btn-custom-create::before {
        content: "➕\FE0E"; 
        color: #b51217; 
        margin-right: 6px; 
        font-size: 1.1em; 
    }
    /* Hover */
    .btn-custom-create:hover {
        background-color: #c0c0c0; /* gris plus foncé */
        color: #000;
        border-color: #999;
        text-decoration: none;
    }

/* Bouton modifier (✏️) */
.btn-outline-primary {
    border-color: #b51217;
    color: black;
}
    .btn-outline-primary:hover {
        background-color: #b51217;
        color: #fff; 
    }

/* Bouton détails (ℹ️) */
.btn-outline-info {
    border-color: #b51217;
    color: #6c757d;
}
    .btn-outline-info:hover {
        background-color: #b51217;
        color: #fff;
    }

/* Bouton supprimer (🗑️) */
.btn-outline-danger {
    border-color: #b51217;
    color: #b51217;
}
    .btn-outline-danger:hover {
        background-color: #b51217;
        color: #fff;
    }

.sidebar-separator {
    border-top: 2px double #c0c0c0;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 4px;
}
    .sidebar-separator::after {
        content: "";
        position: absolute;
        top: 0;
        left: -50%;
        width: 50%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        animation: separator-bounce 1.5s infinite alternate ease-in-out;
    }
@keyframes separator-bounce {
    from {
        left: -50%;
        opacity: 0.2;
    }

    to {
        left: 100%;
        opacity: 0.5;
    }
}

.sidebar {
    min-width: 220px;
    max-width: 260px;
    width: auto;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: #fff;
}

/* Titres BackOffice / FrontOffice */
.sidebar-title {
    background-color: #213864 !important; 
    color: #c0c0c0; 
    width: 100%;
    padding: 8px 12px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    border-top: 1px solid rgba(255,255,255,0.15);
}
    .sidebar-title:hover {
        background-color: #1a2e56;
        color: #fff;
    }

    .sidebar-title i {
        font-size: 0.8rem;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }
        .sidebar-title i.toggle-icon {
            font-size: 0.8rem;
            margin-left: 8px;
            transition: transform 0.3s ease; /* animation fluide */
        }

            .sidebar-title i.toggle-icon.rotate {
                transform: rotate(180deg); /* rotation pour ouverture */
            }
.sidebar-links {
    display: none;
    flex-direction: column;
    background-color: inherit;
}

    .sidebar-links.open {
        display: flex;
    }

    .sidebar-links a {
        color: #fff;
        padding: 6px 12px !important;
        display: flex;
        align-items: center;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .sidebar-links a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .sidebar-links a i {
            margin-right: 8px;
        }

/* Lien actif */
.nav-link.selected {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}

.logo {
    text-align: center;
    padding: 12px 0;
}

    .logo img {
        max-width: 140px;
    }

.menu-toggle {
    display: none; /* remplacé par .sidebar-title */
}

.submenu {
    display: none; /* remplacé par .sidebar-links */
}

    .submenu.open {
        display: flex;
    }