/* ============================================
   HEADER & NAVIGATION STYLES
   ============================================ */

/* Header principal */
.site-header {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 1rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1200px;
    height: 64px;
    border-radius: 50px;
    z-index: 1000;
    border: 1px solid rgba(248, 90, 37, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.site-header:hover {
    border-color: rgba(248, 90, 37, 0.4);
    box-shadow: 0 8px 32px rgba(248, 90, 37, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.logo {
    width: 95px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(248, 90, 37, 0.3));
    flex-shrink: 0;
}

/* Menu navigation desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0 auto;
    margin-left: 0;
    padding: 0;
    height: 100%;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu li a {
    color: #fcb49c;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f85a25, transparent);
    transition: transform 0.3s ease;
}

.nav-menu li a:hover {
    color: #fff;
    background: rgba(248, 90, 37, 0.1);
}

.nav-menu li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Boutons header */
.home-button, .discord-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    height: 42px;
    position: relative;
    overflow: hidden;
}

.home-button {
    background: linear-gradient(135deg, #d34d1f, #f85a25);
    border: 1px solid rgba(248, 90, 37, 0.3);
    color: #fcb49c;
}

.discord-login {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #fff;
}

.home-button:hover, .discord-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 90, 37, 0.4);
}

.discord-login:hover {
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.home-button svg, .discord-login svg {
    margin-right: 0 !important;
    vertical-align: middle;
}

/* Effet ripple sur les boutons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Informations utilisateur */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(248, 90, 37, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(248, 90, 37, 0.5);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#user-name {
    font-size: 15px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Menu déroulant utilisateur */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 90, 37, 0.2);
    border-radius: 16px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-info.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #fcb49c;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: rgba(248, 90, 37, 0.1);
    color: #fff;
}

.user-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(248, 90, 37, 0.2);
    margin: 8px 0;
}

.user-dropdown-item.logout {
    color: #ff6b6b;
}

.user-dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

/* Toggle thème */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 10px;
}

.theme-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fcb49c;
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(248, 90, 37, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fcb49c;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: rgba(248, 90, 37, 0.5);
}

.toggle-switch.active::before {
    left: 23px;
    background: #f85a25;
}

/* Menu hamburger */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #fcb49c;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
}

.hamburger-menu:hover {
    background: rgba(248, 90, 37, 0.1);
    color: #fff;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    margin: auto;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   DROPDOWNS DESKTOP (PC)
   ============================================ */
.has-dropdown {
    position: relative;
    padding-bottom: 10px; /* Zone de tolérance pour le survol */
    margin-bottom: -10px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 90, 37, 0.2);
    border-radius: 16px;
    padding: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.has-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Grille spécifique pour les modules pour éviter un menu trop long */
.dropdown-content.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    min-width: 380px;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #fcb49c;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: rgba(248, 90, 37, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.dropdown-header {
    grid-column: 1 / -1;
    color: #f85a25 !important;
    font-weight: 600;
    background: rgba(248, 90, 37, 0.05);
}

.dropdown-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(248, 90, 37, 0.2);
    margin: 6px 0;
}

/* ============================================
   ACCORDÉONS MOBILE (< 992px)
   ============================================ */
.dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    color: #fcb49c;
}

.dropdown-btn svg {
    transition: transform 0.3s ease;
}

.mobile-sub-menu {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    margin: 5px 0 10px 15px;
    border-left: 2px solid rgba(248, 90, 37, 0.2);
    gap: 5px;
    animation: fadeIn 0.3s ease;
}

.mobile-sub-menu.open {
    display: flex;
}

.dropdown-btn.active svg {
    transform: rotate(180deg);
}

.mobile-sub-item {
    color: rgba(252, 180, 156, 0.8);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
}

.mobile-sub-item.highlight {
    color: #f85a25;
    font-weight: 600;
}

.mobile-sub-item:hover {
    background: rgba(248, 90, 37, 0.1);
    color: #fff;
}

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 104px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1200px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 90, 37, 0.2);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-menu-item {
    display: block;
    color: #fcb49c;
    text-decoration: none;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-bottom: 8px;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background: rgba(248, 90, 37, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(248, 90, 37, 0.2);
    margin: 16px 0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(248, 90, 37, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.mobile-user-info .user-avatar {
    width: 48px;
    height: 48px;
}

.mobile-user-info .user-details {
    flex: 1;
}

.mobile-user-info .user-details strong {
    display: block;
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.mobile-user-info .user-details span {
    font-size: 13px;
    color: #fcb49c;
}

/* Overlay pour fermer le menu mobile */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer-cartouche {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 60px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(248, 90, 37, 0.2);
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-columns > div {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-columns h5 {
    color: #fcb49c;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-columns h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f85a25, transparent);
}

.footer-columns a {
    display: block;
    text-decoration: none;
    color: rgba(252, 180, 156, 0.7);
    margin: 8px 0;
    transition: all 0.3s;
    padding-left: 0;
    position: relative;
}

.footer-columns a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
}

.footer-columns a:hover {
    color: #fcb49c;
    padding-left: 20px;
}

.footer-columns a:hover::before {
    left: 0;
    opacity: 1;
}

.main-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: rgba(252, 180, 156, 0.6);
    gap: 20px;
    flex-wrap: wrap;
}

.main-footer p {
    margin: 0;
    font-size: 14px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch button {
    background: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch button:hover {
    background: rgba(248, 90, 37, 0.1);
}

.lang-switch img {
    width: 20px;
    height: 14px;
}

/* Cookie Bar */
.cookie-bar {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(248, 90, 37, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    text-align: center;
    color: #ccc;
    font-size: 14px;
    animation: slideUpCookie 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUpCookie {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-bar p {
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.cookie-bar a {
    color: #f85a25;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.cookie-bar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #f85a25;
    transition: width 0.3s;
}

.cookie-bar a:hover::after {
    width: 100%;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-buttons button {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-accept {
    background: linear-gradient(135deg, #d34d1f, #f85a25);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 90, 37, 0.2);
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 90, 37, 0.4);
}

.btn-decline {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ============================================
   BANNERS & TOOLTIPS
   ============================================ */

.maintenance-banner-item {
    width: 100%;
    margin-top: 100px;
    padding: 12px 20px;
    position: relative;
    z-index: 99;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-red {
    background: rgba(127, 29, 29, 0.9);
    border-bottom-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.banner-orange {
    background: rgba(120, 53, 15, 0.9); /*Unscheduled*/
    border-bottom-color: rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.banner-green {
    background: rgba(6, 78, 59, 0.9);
    border-bottom-color: rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

.banner-blue {
    background: rgba(30, 58, 138, 0.9);
    border-bottom-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
}

.banner-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.banner-icon:hover {
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    flex: 1;
    font-size: 0.9em;
    line-height: 1.4;
}

.banner-content strong {
    color: #fff;
    margin-right: 8px;
}

.banner-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
    text-transform: uppercase;
}

.banner-details {
    opacity: 0.8;
}

.banner-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 5px;
}

.banner-close:hover {
    opacity: 1;
}

.has-tooltip {
    position: relative;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(248, 90, 37, 0.3);
    color: #fcb49c;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.has-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

@media (max-width: 992px) {
    .nav-menu,
    .home-button,
    .discord-login,
    .user-info {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-container {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .site-header {
        width: calc(100% - 40px);
        top: 10px;
        padding: 0 0.75rem;
        height: 56px;
    }

    .logo {
        width: 75px;
        height: 32px;
    }

    .mobile-menu {
        width: calc(100% - 40px);
        top: 76px;
        max-height: calc(100vh - 96px);
    }
}

@media (max-width: 400px) {
    .site-header {
        width: calc(100% - 20px);
        padding: 0 0.5rem;
        height: 52px;
    }

    .logo {
        width: 65px;
        height: 28px;
    }

    .hamburger-menu {
        width: 36px;
        height: 36px;
    }

    .mobile-menu {
        width: calc(100% - 20px);
        padding: 16px;
    }
}