body { background-color: #f8f9fa; }

header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.navbar {
    background: linear-gradient(180deg, rgb(255, 0, 0) 0%, rgb(185, 17, 17) 100%);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* ou fixed si tu veux qu’elle reste en haut */
    z-index: 10000; /* au-dessus de l’overlay */
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

/* === Onglets rouge vif === */
.nav-tabs .nav-link {
    color: #495057; 
    background-color: #e9ecef; 
    border: 1px solid #dee2e6;
    border-bottom-color: transparent;
    font-weight: 600;
    border-radius: 0.375rem 0.375rem 0 0;
    transition: all 0.2s;
}
.nav-tabs .nav-link.active {
    color: #fff; 
    background-color: #ff0019; 
    border-color: #dc3545 #dc3545 #fff;
}

.burger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0, 15px);
}

.burger.active span:nth-child(2) {
  opacity: 0 !important;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0, -15px);
}

#overlayMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255,0,0,0.99);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 135px; /* espace pour le header */
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9998;
}


#overlayMenu.show {
    transform: translateX(0);
    opacity: 1;
}

#overlayMenu > ul {
    list-style: none;
    padding: 0;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

#overlayMenu > ul > li {
    margin-bottom: 0.8rem;
    position: relative;
}

#overlayMenu > ul > li > a {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    color: #fff;
    background-color: rgba(0,0,0,0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

#overlayMenu > ul > li > a:hover {
    background-color: #fff;
    color: #ff0000;
    transform: translateX(5px);
}

.submenu {
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-5px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 250px; 
}

.submenu.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.submenu a {
    font-size: 1rem;
    padding: 0.3rem 0.8rem; 
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    display: block;
}

.submenu a:hover {
    background-color: #ffffff;
    color: #ff0000;
    transform: translateX(5px);
}

.has-submenu > a::after {
    content: ''; 
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.form-switch .form-check-input:checked {
    background-color: #ff3b3b; /* Rouge vif */
    border-color: #ff3b3b;
    box-shadow: 0 0 5px rgba(255, 59, 59, 0.6);
}
