/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #121212; /* Gris foncé pour un contraste plus doux */
    color: #fff; /* Texte blanc pour contraste */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    margin-top: 0;
    padding-top: 0;
    flex: 1;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent; /* Navbar totalement transparente */
    padding: 20px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    position: relative;
}

.nav-links ul li a {
    display: inline-block;
    padding: 10px 25px;
    margin: 0 5px;
    text-decoration: none;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    background-color: #12121280;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s linear;
}

.nav-links ul li a:hover {
    background-color: #fff;
    color: #000;
}

.nav-links ul li a.active {
    border-color: #007bff;
}

.nav-links ul li a.active:hover {
    background-color: #007bff;
    color: #fff;
}



/* Ajouter après les styles .nav-links ul li a */

@keyframes rgb-border {
    0% {
        border-color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
    }
    33% {
        border-color: #00ff00;
        box-shadow: 0 0 20px #00ff00;
    }
    66% {
        border-color: #0000ff;
        box-shadow: 0 0 20px #0000ff;
    }
    100% {
        border-color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
    }
}

@keyframes rgb-color {
    0% { 
        color: #ff0000;
        border-color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
    }
    33% { 
        color: #00ff00;
        border-color: #00ff00;
        box-shadow: 0 0 20px #00ff00;
    }
    66% { 
        color: #0000ff;
        border-color: #0000ff;
        box-shadow: 0 0 20px #0000ff;
    }
    100% { 
        color: #ff0000;
        border-color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
    }
}

@keyframes rgb-all {
    0% { 
        color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
        border-color: #ff0000;
    }
    33% { 
        color: #00ff00;
        box-shadow: 0 0 20px #00ff00;
        border-color: #00ff00;
    }
    66% { 
        color: #0000ff;
        box-shadow: 0 0 20px #0000ff;
        border-color: #0000ff;
    }
    100% { 
        color: #ff0000;
        box-shadow: 0 0 20px #ff0000;
        border-color: #ff0000;
    }
}

/* Style spécifique pour le bouton Jouer */
.nav-links ul li a[href="jouer"] {
    border: 3px solid transparent;
    animation: rgb-border 5s linear infinite;
}

.nav-links ul li a[href="jouer"]:hover {
    animation: rgb-color 5s linear infinite;
    background-color: #12121280;
}

.nav-links ul li a[href="jouer"].active {
    animation: rgb-all 5s linear infinite;
}

.nav-links ul li a[href="jouer"].active:hover {
    animation: rgb-border 5s linear infinite;
}

.logo-container img {
    height: 5em; /* Ajuster selon vos besoins */
    width: 5em;
    margin-right: 10px;
    transition: scale 0.3s ease;
}

.logo-container img:hover {
    scale: 1.1;
}

footer {
    background: #181c24;
    color: #fff;
    padding: 0;
    margin-top: auto;
    border-top: 1px solid #222;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.footer-container.footer-grid {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 20px 0 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-desc p {
    color: #b9dfff;
    font-size: 1.05em;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-social-row {
    display: flex;
    gap: 18px;
    margin-top: 8px;
}

.footer-social-row a {
    color: #b9dfff;
    font-size: 1.7em;
    transition: color 0.2s, transform 0.2s;
}
.footer-social-row a:hover {
    color: #00aaff;
    transform: scale(1.15);
}

.footer-links-col {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
}

.footer-links-col h4 {
    color: #00aaff;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col ul li {
    margin-bottom: 7px;
}

.footer-links-col ul li a {
    color: #b9dfff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.2s;
}
.footer-links-col ul li a:hover {
    color: #00aaff;
    text-decoration: underline;
}

.footer-info h4 {
    color: #00aaff;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    color: #b9dfff;
    font-size: 1em;
}

.footer-logo {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.footer-logo p{
    color: #b9dfff;
    font-size: 1.2em;
    margin-left: 10px;
    font-weight: bold;
    letter-spacing: 0.03em;
}
.footer-logo img {
    height: 2.5em;
    width: 2.5em;
    border-radius: 10px;
    box-shadow: 0 0 10px #00aaff44;
    background: #222;
    padding: 6px;
    transition: transform 0.2s;
}
.footer-logo img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px #00aaff88;
}

.footer-separator {
    border: none;
    border-top: 1px solid #5865f283;
    margin: 24px 0 0 0;
    width: 100%;
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 10px 0;
    font-size: 0.95em;
    color: #b9dfff;
}

@media (max-width: 900px) {
    .footer-container.footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 32px 12px 0 12px;
    }
    .footer-info {
        grid-column: span 2;
        align-items: flex-start;
        margin-top: 20px;
    }
    .footer-links-col {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .footer-container.footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 18px 4vw 0 4vw;
    }
    .footer-col {
        align-items: flex-start;
        width: 100%;
        margin-bottom: 18px;
    }
    .footer-desc {
        margin-bottom: 0;
    }
    .footer-social-row {
        margin-bottom: 18px;
    }
    .footer-links-col {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 18px;
    }
    .footer-links-col > div {
        width: 100%;
        margin-bottom: 18px;
    }
    .footer-links-col h4 {
        margin-top: 12px;
        text-align: center; /* centré */
    }
    .footer-links-col ul {
        text-align: center; /* centré */
    }
    .footer-info {
        margin-top: 0;
        margin-bottom: 18px;
    }
    /* Centrer le logo du footer uniquement */
    .footer-logo {
        margin-top: 12px;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        width: 100%;
    }
    .footer-bottom {
        font-size: 0.93em;
        padding: 12px 0 8px 0;
        text-align: center;
    }
    .footer-separator {
        margin: 18px 0 0 0;
    }
    /* Centrer tout sur mobile */
    .footer-social-row,
    .footer-info ul,
    .footer-info h4 {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
    }
    .footer-desc p{
        text-align: left !important;
        justify-content: left !important;
        align-items: left !important;
        width: 100%;
    }
}

/* Status Page Styles */
.status-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.status-header {
    text-align: center;
    margin-bottom: 3rem;
}

.current-status {
    margin-top: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.status-badge.operational { 
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid #27ae60;
}

.status-badge.degraded { 
    background-color: rgba(243, 156, 18, 0.2);
    color: #f1c40f;
    border: 1px solid #f39c12;
}

.status-badge.partial_outage { 
    background-color: rgba(211, 84, 0, 0.2);
    color: #e67e22;
    border: 1px solid #d35400;
}

.status-badge.major_outage { 
    background-color: rgba(192, 57, 43, 0.2);
    color: #e74c3c;
    border: 1px solid #c0392b;
}

.status-badge.maintenance { 
    background-color: #105685b6;
    color: #3498db;
    border: 1px solid #1974b1;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.operational {
    background-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.status-indicator.degraded {
    background-color: #f1c40f;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.status-indicator.partial_outage {
    background-color: #e67e22;
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.4);
}

.status-indicator.major_outage {
    background-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

.status-indicator.maintenance {
    background-color: #105685b6;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.uptime {
    color: #888;
    font-size: 0.9rem;
}

.incident-history {
    background: #1e1e1e;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.incident-history h2 {
    margin-bottom: 1.5rem;
}

/* Amélioration de la timeline */
.timeline {
    border-left: 2px solid #2d2d2d;
    padding-left: 2rem;
    margin-left: 1rem;
    margin-top: 2rem;
    position: relative;
}

/* Style pour le texte "no incidents" */
.no-incidents {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
    margin: 20px 0;
}

.incident-item {
    background: rgba(45, 45, 45, 0.3);
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
    position: relative;
}

.incident-entry {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.incident-status {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 0.5rem;
}

.incident-status.investigating {
    background-color: #f39c12;
}

.incident-status.identified {
    background-color: #e67e22;
}

.incident-status.monitoring {
    background-color: #3498db;
}

.incident-status.resolved {
    background-color: #2ecc71;
}

.incident-content {
    flex: 1;
    background: #1e1e1e;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.incident-date {
    color: #888;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.incident-service {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Styles pour la page de statut */
.status-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 1rem;
    padding-top: 100px;
}

.status-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}

/* Styles pour la liste des services */
.services-status {
    background: #1e1e1e;
    color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 3rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #2d2d2d;
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: bold;
    color: #fff;
}

.status-badge.investigating { 
    background: #fef3d7; 
    color: #f39c12; 
}

/* Styles pour l'historique des incidents */

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.incident-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.incident-content {
    margin: 1rem 0;
    color: #a0a0a0;
    line-height: 1.5;
}

.incident-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.incident-service {
    font-size: 0.9rem;
    color: #888;
}

/* Style des mises à jour d'incidents */
.update-item {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.update-status {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.update-status.resolved { 
    color: #27ae60; 
}

.update-status.monitoring { 
    color: #3498db; 
}

.update-status.identified { 
    color: #f1c40f; 
}

.update-status.investigating { 
    color: #f39c12; 
}

.update-time {
    color: #999;
    font-size: 0.9rem;
}
/* Style pour le bandeau de statut global */
.global-status {
    width: 100%;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

.global-status i {
    font-size: 1.8rem;
}

.global-status.operational {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid #27ae60;
}

.global-status.degraded {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f1c40f;
    border: 1px solid #f39c12;
}

.global-status.partial_outage {
    background-color: rgba(211, 84, 0, 0.2);
    color: #e67e22;
    border: 1px solid #d35400;
}

.global-status.major_outage {
    background-color: rgba(192, 57, 43, 0.2);
    color: #e74c3c;
    border: 1px solid #c0392b;
}

.global-status.maintenance {
    background-color: #105685b6;
    color: #3498db;
    border: 1px solid #0d639c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour la section héro */
.hero-section {
    position: relative;
    height: 100vh; /* Assure que la section héro occupe toute la hauteur de l'écran */
    padding-top: 65px; /* Compense la hauteur de la barre de navigation fixe */
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Suppression de l'ancien background */
    /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/background.jpg') no-repeat center center; */
    background: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-bg-slideshow,
.hero-bg-slideshow-next {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s;
    pointer-events: none;
}

.hero-bg-slideshow-next {
    opacity: 0;
}

.description-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 90%;
    text-align: center;
    background: none;
    box-shadow: none;
    padding: 0;
}

.description-container h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
    max-width: 800px;
    margin: 0 auto;
}

.description p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Boutons d'action */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center; /* Alignement vertical centré */
    margin-top: 2rem;
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
}

.hero-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s linear;
    text-transform: uppercase;
    display: inline-flex;
    justify-content: center;
    align-items: center; /* Centrage du contenu du bouton */
    min-width: 200px; /* Largeur minimale pour uniformiser les boutons */
    text-align: center;
}

.hero-button i {
    margin-right: 0.5rem; /* Espacement entre l'icône et le texte */
}

.hero-button.primary {
    color: white;
    border: 3px solid transparent;
}

.hero-button.primary:hover {
    border-color: #5865F2;
}

.hero-button.secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.hero-button.secondary:hover {
    background: white;
    color: #000;;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.section-header p {
    color: #888;
    font-size: 1.1rem;
}

/* Styles pour les sous-menus */
.nav-links ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.95);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 10px;
    margin-top: 5px; /* Suppression de la marge */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-links ul li {
    position: relative;
}

/* Ajout d'une zone invisible pour éviter que le menu ne se ferme */
.nav-links ul li:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px; /* Zone tampon invisible */
}

.nav-links ul li:hover > ul {
    display: block;
}

.nav-links ul ul li {
    width: 100%;
}

.nav-links ul ul li a {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: transparent;
}

.nav-links ul ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00aaff;
    transform: translateX(5px);
}

.nav-links ul ul li a i {
    font-size: 16px;
    color: #00aaff;
}

/* --- BURGER MENU & MOBILE NAV --- */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    margin-left: 0;
    margin-right: 0;
    position: static;
}
.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 0;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    position: absolute;
    left: 8px;
    right: 8px;
}
.burger-menu span:nth-child(1) {
    top: 12px;
}
.burger-menu span:nth-child(2) {
    top: 20.5px;
}
.burger-menu span:nth-child(3) {
    top: 29px;
}
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 20.5px;
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 20.5px;
}

/* Menu mobile */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18,18,18,0.98);
    z-index: 2000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 90px;
    width: 100vw;
    height: 100vh;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.mobile-nav.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.mobile-nav ul li {
    width: 100%;
    text-align: center;
    position: relative;
}
.mobile-nav ul li a {
    display: block;
    padding: 18px 0;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    border: none;
    background: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.mobile-nav ul li a.active,
.mobile-nav ul li a:active,
.mobile-nav ul li a:focus {
    color: #00aaff;
}
.mobile-nav ul li a:hover {
    color: #00aaff;
}
.mobile-nav ul li.has-dropdown > a {
    position: relative;
    padding-right: 0; /* plus de padding, la flèche est inline */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* petit espace entre texte et flèche */
}
.mobile-nav ul li.has-dropdown > a:after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2300aaff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"/></svg>') center/18px 18px no-repeat;
    margin-left: 0;
    vertical-align: middle;
    transition: transform 1.1s cubic-bezier(.4,2,.6,1);
    /* plus de position absolute ni right ni top */
    transform: rotate(0deg);
}
.mobile-nav ul li.open > a:after {
    transform: rotate(180deg);
}

/* Animation dropdown encore plus lente */
.mobile-nav ul ul {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 1.2s cubic-bezier(.4,2,.6,1), opacity 0.8s;
    background: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
.mobile-nav ul li.open > ul {
    max-height: 500px;
    opacity: 1;
    transition: max-height 1.3s cubic-bezier(.4,2,.6,1), opacity 0.8s 0.1s;
}

/* Masquer la navbar classique et afficher le burger/menu mobile sur mobile */
@media (max-width: 1040px) {
    .navbar {
        justify-content: center;
        position: fixed;
        left: 0;
        right: 0;
    }
    .burger-menu {
        display: flex !important;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        margin-right: 0;
    }
    .logo-container {
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2002;
    }
    .navbar .nav-links {
        display: none !important;
    }
    .mobile-nav {
        display: flex;
        opacity: 0;
        pointer-events: none;
    }
    .mobile-nav.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .status-section {
        margin: 1rem auto;
        padding: 4rem 1.5rem 0 1.5rem;
    }

    .services-status {
        padding: 1rem;
    }

    .incidents-history h2,
    .incident-date {
        text-align: center;
    }

    .incident-item {
        padding-left: 1rem;
    }

    .update-item {
        padding-left: 0.5rem;
    }

    .update-item:before {
        left: -1.3rem;
    }

    .description-container h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-button {
        width: 95%;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    /* Masquer les boutons de navigation des carousels sur mobile */
    .carousel-controls button,
    .job-controls button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


/* Styles pour la section historique */
.history-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 50px auto;
    max-width: 1200px;
    padding: 100px 20px 0 20px;
    color: #fff;
}

.history-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

/* .history-section .text-content {
    flex: 1;
    max-width: 55%;
}*/

.history-section .text-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 5px solid #00aaff;
    padding-left: 15px;
}

.history-section .text-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 15px;
    text-align: justify;
}

.history-section iframe {
    flex: 1;
    max-width: 40%;
    height: auto;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 30px rgb(0, 170, 255, 0.6);
    border-radius: 25px;
    align-self: center;
}

/* Styles pour l'encadré CALL-TO-ACTION */
.cta-box {
    background: linear-gradient(45deg, #1e1e1e, #2d2d2d);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    width: 100%;
    margin-top: 50px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
    border: 1px solid #00aaff;
}

.cta-box h3 {
    color: #00aaff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #00aaff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #0077cc;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

@media (max-width: 1040px) {
    .history-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .history-content {
        flex-direction: column; /* Ajouter cette ligne */
    }

    .history-section .text-content,
    .history-section iframe {
        max-width: 100%;
    }

    .history-section .text-content h2 {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }

    .cta-box {
        margin: 50px 20px 50px;
        padding: 20px;
    }
}

/* Styles pour la section des actualités */
.news-section {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 1200px;
    position: relative;
}

.news-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff; /* Couleur principale du site */
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 5px solid #00aaff;
    padding-left: 15px;
    text-align: left;
}

.news-carousel {
    position: relative;
    width: 90%;
    margin: 0 auto;
    overflow: visible; /* Permet aux boutons d'être visibles */
}

.news-grid-container {
    overflow: hidden; /* Cache les cartes débordantes */
    position: relative;
    padding: 0 60px; /* Espace pour les boutons */
}

.news-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    position: relative;
    justify-content: center; /* Centrage pour moins de 3 cartes */
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
}

/* Si on a plus de 3 éléments, on adapte l'alignement */
.news-grid.multi-row {
    justify-content: flex-start; /* Alignement à gauche quand il y a beaucoup de cartes */
}

.news-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 350px; /* Limite la largeur maximale */
    background: #1e1e1e;
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    margin: 0 10px; /* Marge horizontale pour l'espacement */
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: calc(100% + 120px); /* Élargit la zone pour les boutons */
    left: -60px; /* Décale pour aligner avec le padding */
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Permet de cliquer à travers */
}

.carousel-controls button {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: #00aaff;
    cursor: pointer;
    pointer-events: auto; /* Réactive les clics sur les boutons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.carousel-controls button:hover {
    background: #00aaff;
    color: white;
    transform: scale(1.1);
}

.carousel-controls .prev {
    left: -60px;
}

.carousel-controls .next {
    right: -60px;
}

.news-card.visible {
    opacity: 1;
    transform: scale(1);
}

.news-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.news-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px; /* Espace pour le bouton */
    flex-grow: 1; /* Permet au texte de prendre tout l'espace disponible */
}

.news-card button {
    margin: auto auto 0 auto; /* Centré horizontalement et poussé vers le bas */
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-self: center; /* Assure le centrage horizontal */
}

.news-card button:hover {
    background: #0056b3;
    transform: scale(1.1);
}

@media (max-width: 1040px) {
    .news-section h2 {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    
    .news-grid-container {
        padding: 0 40px; /* Réduit l'espace pour les boutons sur mobile */
    }
    
    .carousel-controls {
        width: calc(100% + 80px); /* Ajuste la largeur pour les boutons */
        left: -40px; /* Réajuste la position */
    }
    
    .news-card {
        flex: 0 0 calc(100% - 40px);
        max-width: 450px;
        margin: 0 auto;
        min-height: 220px;
    }
    
    .carousel-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-controls .prev {
        left: -30px;
    }
    
    .carousel-controls .next {
        right: -30px;
    }
}

@media (max-width: 768px) {
    .news-grid-container {
        padding: 0 30px; /* Encore moins d'espace sur très petit écran */
    }
    
    .carousel-controls {
        width: calc(100% + 60px);
        left: -30px;
    }
    
    .carousel-controls button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-controls .prev {
        left: -20px;
    }
    
    .carousel-controls .next {
        right: -20px;
    }
}

/* Styles pour le modal */
.modal {
    /* Correction: une seule propriété display */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 0;
    overflow: hidden; /* Empêche le défilement du modal lui-même */
}

.modal-content {
    position: relative;
    background: #1e1e1e;
    color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
    border: 1px solid #00aaff;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal.active {
    display: flex; /* Affiche le modal uniquement quand il est actif */
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.close-modal:hover {
    color: #00aaff;
    background-color: rgba(0, 0, 0, 0.5);
}

#modal-title {
    color: #00aaff;
    margin-bottom: 20px;
    border-left: 5px solid #00aaff;
    padding-left: 15px;
    position: sticky;
    top: 0;
    background: #1e1e1e;
    z-index: 1;
    padding-top: 5px;
    padding-bottom: 5px;
}

#modal-content {
    line-height: 1.6;
    color: #fff;
    overflow-y: auto;
    padding-right: 10px;
    flex-grow: 1;
    max-height: calc(80vh - 100px);
}

/* Personnalisation de la barre de défilement pour le modal */
#modal-content::-webkit-scrollbar {
    width: 8px;
}

#modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#modal-content::-webkit-scrollbar-thumb {
    background: #00aaff;
    border-radius: 10px;
}

#modal-content::-webkit-scrollbar-thumb:hover {
    background: #0077cc;
}

/* Personnalisation pour Firefox */
#modal-content {
    scrollbar-width: thin;
    scrollbar-color: #00aaff rgba(0, 0, 0, 0.2);
}

/* Ajout pour éviter le défilement du body quand modal est ouvert */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal {
        padding: 15px 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 3% auto;
        padding: 20px;
        max-height: 85vh;
    }
    
    #modal-content {
        max-height: calc(85vh - 90px);
    }
}

/* Styles pour la section règlement */
.reglement-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 100px 20px 0 20px;
    color: #fff;
}

.reglement-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reglement-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Ajout de styles pour la date de dernière mise à jour */
.reglement-header .last-update {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    text-align: center;
}

.reglement-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 50px;
    line-height: 2; /* Augmentation de la hauteur des lignes */
    color: #d8d8d8;
}

.reglement-content a {
    color: #00aaff;
}

.reglement-box {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
    border: 1px solid #00aaff;
}

@media (max-width: 1040px) {
    .reglement-section {
        margin: 30px auto;
    }
    
    .reglement-header h2 {
        font-size: 2rem;
    }
    
    .reglement-box {
        padding: 20px;
    }
}

/* Styles pour le bouton retour en haut de page */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 170, 255, 0.8);
    color: white;
    border: none;
    border-radius: 25%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #0077cc;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
}

@media (max-width: 768px) {
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* Styles pour la section des métiers avec carousel */
.job-section {
    position: relative;
    text-align: center;
    margin: 80px auto;
    padding: 0 20px;
    max-width: 1200px;
    overflow: hidden;
}

.job-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-left: 5px solid #00aaff;
    padding-left: 15px;
    text-align: left;
}

.job-carousel {
    position: relative;
    border-radius: 15px;
    padding: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
    overflow: hidden;
    height: 600px; /* Hauteur fixe pour le carousel */
}

.job-carousel:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Augmentation de la transparence (0.3 au lieu de 0.5) */
    z-index: 1;
}

.job-slider {
    position: relative;
    height: 100%;
    z-index: 2;
}

.job-card {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    transform: translateX(50px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
}

.job-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.job-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5); /* Augmentation de la transparence (0.5 au lieu de 0.75) */
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
}

.job-card h3 {
    color: #00aaff;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.job-description {
    text-align: left;
}

.job-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #fff;
}

.job-description ul {
    margin: 15px 0 20px 20px;
    line-height: 1.6;
    list-style-type: none; /* Supprime les puces par défaut */
}

.job-description li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 1.1rem;
    color: #fff;
    list-style-type: none; /* Assurons-nous que les points par défaut sont supprimés */
}

.job-description li:before {
    content: '•'; /* Un seul point au lieu des deux */
    color: #00aaff;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Contrôles du carousel des métiers - Correction de la position */
.job-controls {
    position: absolute;
    top: 50%;
    width: calc(100% - 40px); /* Largeur ajustée pour les marges */
    left: 20px; /* Position ajustée pour l'alignement */
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0; /* Suppression du padding qui décalait les boutons */
}

.job-controls button {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00aaff;
    border-radius: 50%;
    color: #00aaff;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

.job-controls button:hover {
    background: #00aaff;
    color: white;
    transform: scale(1.1);
}

/* Indicateurs de position du carousel des métiers */
.job-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.job-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.job-dot.active {
    background: #00aaff;
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.7);
}

.job-dot:hover {
    background: rgba(0, 170, 255, 0.7);
}

/* Responsive pour le carousel des métiers */
@media (max-width: 1040px) {
    .job-section h2 {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    
    .job-carousel {
        height: 700px;
    }
    
    .job-card {
        padding: 30px 20px;
    }
    
    .job-content {
        padding: 20px;
    }
    
    .job-controls button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .job-card h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .job-carousel {
        height: 750px;
    }
    
    .job-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .job-card h3 {
        font-size: 1.5rem;
    }
    
    .job-description p,
    .job-description li {
        font-size: 1rem;
    }
}

/* Styles pour la nouvelle section staff */
.staff-section {
    text-align: center;
    margin: 80px auto;
    padding: 40px 20px;
    max-width: 1200px;
    position: relative;
}

.staff-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-left: 5px solid #00aaff;
    padding-left: 15px;
    text-align: left;
}

.staff-section h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.team-container {
    position: relative;
    width: 100%;
}

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.staff-card {
    position: relative;
    width: 200px;
    background-color: #181c24;
    border-radius: 15px;
    padding: 20px 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 170, 255, 0.3);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.staff-discord {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 12px;
}

.staff-separator {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #00aaff, transparent);
    margin: 30px auto;
}

.staff-footer {
    margin-top: 30px;
    color: #a0a0a0;
    font-style: italic;
}

.staff-footer p {
    font-size: 16px;
}

/* Styles pour le rôle du staff */
.staff-role {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    margin-top: -2px;
    letter-spacing: 0.5px;
}

/* Couleurs par pôle */
.staff-role-direction {
    color: #203f86;
}
.staff-role-administration {
    color: #87c29a;
}
.staff-role-technique {
    color: #bc66c2;
}
.staff-role-media {
    color: #9e9571;
}

@media (max-width: 768px) {
    .staff-section {
        padding: 30px 10px;
    }
    
    .staff-section h2 {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }

    .staff-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .staff-grid {
        gap: 15px;
    }
    
    .staff-card {
        width: 160px;
        padding: 15px 10px;
    }
    
    .staff-avatar {
        width: 80px;
        height: 80px;
    }
    
    .staff-card h3 {
        font-size: 14px;
    }
    
    .staff-discord {
        font-size: 12px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .staff-separator {
        margin: 20px auto;
    }
}

/* Styles pour la section FAQ */
.faq-section {
    text-align: center;
    margin: 80px auto;
    padding: 0 20px;
    max-width: 1200px;
    position: relative;
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-left: 5px solid #00aaff;
    padding-left: 15px;
    text-align: left;
}

.faq-content {
    width: 100%;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
    text-align: left;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #00aaff;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    flex-grow: 1;
    padding-left: 15px;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: #00aaff;
}

.faq-question i {
    color: #00aaff;
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Animation plus dynamique */
    min-width: 20px;
    text-align: center;
}

.faq-question.active i {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), 
                padding 0.3s ease,
                opacity 0.4s ease;
    padding-left: 35px;
    opacity: 0;
    padding-bottom: 0;
}

.faq-answer.active {
    max-height: 1000px; /* Valeur plus élevée pour s'adapter à tout contenu */
    padding-bottom: 15px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.5, 0, 1, 0), 
                padding 0.3s ease,
                opacity 0.4s ease 0.1s; /* Léger délai pour rendre l'animation plus naturelle */
}

.faq-answer p {
    margin: 0;
    color: #b9b9b9;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer a {
    color: #00aaff;
    text-decoration: none;
    font-weight: bold;
}

.faq-answer a:hover {
    color: #fff;
}

@media (max-width: 1040px) {
    .faq-section h2 {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 30px 15px;
        margin: 50px auto;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
}

/* Styles spécifiques à la page 404 */
.error-404-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-404-container .error-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: inherit; /* hérite de la couleur du parent ou du thème */
}

/* Couleur spécifique pour chaque icône si besoin */
.error-404-container .fa-car-crash {
    color: #e74c3c;
}
.error-404-container .fa-hard-hat {
    color: #ffaa00;
}
.error-404-container .fa-location-arrow {
    color: #fff;
}
.error-404-container .fa-heartbeat {
    color: #fff;
}

.error-404-container h1 {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 8px #000a;
    text-transform: none;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
}

.error-id {
    color: #e74c3c;
    font-size: 2.5rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.2em;
}

/* Style pour le message d'erreur 404 personnalisé */
.error-404-container h1 {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 8px #000a;
    text-transform: none;
    word-break: break-word;
    text-align: center;
    line-height: 1.2;
}

.error-id {
    color: #e74c3c;
    font-size: 2.5rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.2em;
}

.error-404-container p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.error-404-container a,
.error-404-container .revive-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #00aaff;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    margin-top: 1em;
    box-shadow: 0 2px 8px #0002;
}

.error-404-container a:hover,
.error-404-container .revive-btn:hover {
    background: #0077cc;
    color: #fff;
}

.revive-btn {
    background: #27ae60 !important;
    color: #fff !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    margin-top: 1em;
    box-shadow: 0 2px 8px #0002;
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border: none;
}

.revive-btn:hover {
    background: #219150 !important;
    color: #fff !important;
}

.error-404-container .tp-btn {
    background: #007bff;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    margin-top: 1em;
    box-shadow: 0 2px 8px #0002;
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.error-404-container .tp-btn:hover {
    background: #0056b3;
    color: #fff;
}

/* Styles pour la page 404 - couleurs spécifiques */
.error-id,
.error-carkill-red {
    color: #e74c3c;
}

.error-carkill {
    font-size: 0.7em;
    font-weight: normal;
}

/* Responsive pour la page 404 et développement */
@media (max-width: 768px) {
    .error-404-container {
        min-height: 60vh;
        padding: 10rem 1rem 0 1rem;
    }
    .error-404-container .error-icon {
        font-size: 3.5rem;
    }
    .error-404-container h1 {
        font-size: 2rem;
    }
    .error-404-container p {
        font-size: 1rem;
    }
    .error-404-container a,
    .error-404-container .revive-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
}

/* Ajout des styles pour .staff-header-row et .postuler-btn */
.staff-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.staff-header-row h2 {
    margin-bottom: 0;
}

.postuler-btn {
    display: inline-block;
    background: #00aaff;
    color: #fff;
    font-weight: bold;
    border-radius: 25px;
    padding: 14px 36px;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px #00aaff33;
    border: none;
    transition: all 0.2s, transform 0.2s;
    margin-left: 20px;
}

.postuler-btn:hover {
    background: #0077cc;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.postuler-btn i {
    margin-right: 0.6em;
    font-size: 1.1em;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .staff-header-row {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-bottom: 30px;
    }
    .postuler-btn {
        margin-left: 0;
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 12px 0;
        font-size: 1rem;
    }
    .staff-section h2 {
        margin-bottom: 0;
    }
}

/* Notification popup améliorée */
.notif-popup {
    position: fixed;
    right: 32px;
    bottom: 32px;
    min-width: 300px;
    max-width: 380px;
    z-index: 9999;
    background: rgba(18,18,18,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 1.5px 0px rgba(0,0,0,0.10);
    padding: 28px 32px 24px 24px;
    color: #fff;
    transition: opacity 0.35s, transform 0.35s;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Roboto', Arial, sans-serif;
    animation: notif-popup-in 0.5s cubic-bezier(.4,1.4,.6,1);
    backdrop-filter: blur(6px);
    border: 2.5px solid; /* Couleur dynamique en inline */
}
@keyframes notif-popup-in {
    from { opacity: 0; transform: translateY(60px) scale(0.98);}
    to { opacity: 1; transform: translateY(0) scale(1);}
}
.notif-popup .notif-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255,255,255,0.07);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.3em;
    color: #bbb;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 0;
             line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.notif-popup .notif-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.notif-popup .notif-title {
    font-weight: bold;
    font-size: 1.18em;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    line-height: 1.3;
    word-break: break-word;
}
.notif-popup .notif-message {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 2px;
    word-break: break-word;
}
.notif-popup .notif-date {
    font-size: 0.93em;
    color: #e0e0e0;
    margin-top: 6px;
    font-style: italic;
    letter-spacing: 0.01em;
}
.notif-popup-status {
    position: fixed;
    right: 32px;
    bottom: 32px; /* même bottom que la notif classique */
    min-width: 300px;
    max-width: 380px;
    z-index: 10001;
    background: rgba(18,18,18,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 1.5px 0px rgba(0,0,0,0.10);
    padding: 28px 32px 24px 24px;
    color: #fff;
    transition: opacity 0.35s, transform 0.35s;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Roboto', Arial, sans-serif;
    animation: notif-popup-in 0.5s cubic-bezier(.4,1.4,.6,1);
    backdrop-filter: blur(6px);
    border: 2.5px solid #f1c40f;
}
.notif-popup-status .notif-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255,255,255,0.07);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.3em;
    color: #bbb;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.notif-popup-status .notif-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.notif-popup-status .notif-title {
    font-weight: bold;
    font-size: 1.18em;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    line-height: 1.3;
    word-break: break-word;
}
.notif-popup-status .notif-message {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 2px;
    word-break: break-word;
}
.notif-popup-status .notif-message a {
    color: #f1c40f;
    text-decoration: none;
}

.notif-popup-status .notif-message a:hover {
    color: #f39c12;
}

@media (max-width: 600px) {
    .notif-popup,
    .notif-popup-status {
        right: 8px;
        bottom: 8px;
        min-width: 0;
        max-width: 95vw;
        padding: 18px 12px 16px 12px;
    }
    .notif-popup .notif-close,
    .notif-popup-status .notif-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }
}

/* Styles pour la section partenaires */
.partners-section {
    padding: 60px 20px;
    background: transparent;
}
.partners-section .section-header {
    text-align: left;
    margin: 0 auto 40px;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.partners-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00aaff;
    margin-bottom: 12px;
    text-transform: uppercase;
    border-left: 5px solid #00aaff;
    padding-left: 15px;
}
.partners-section .section-header p {
    color: #b9dfff;
    opacity: 0.85;
    font-size: 1.02rem;
    margin: 8px 0 0 15px; /* aligné sous le texte après la bordure */
    padding: 0;
    max-width: 760px;
    line-height: 1.5;
}
@media (max-width: 1040px) {
    .partners-section .section-header {
        align-items: center;
        text-align: center;
        margin: 0 auto 30px;
    }
    .partners-section .section-header h2 {
        text-align: center;
        border-left: none;
        padding-left: 0;
        font-size: 2.2rem;
    }
    .partners-section .section-header p {
        margin: 10px auto 0 auto;
        text-align: center;
        padding: 0 10px;
    }
}
@media (max-width: 768px) {
    .partners-section .section-header {
        margin: 0 auto 26px;
    }
    .partners-section .section-header h2 {
        font-size: 2rem;
    }
    .partners-section .section-header p {
        font-size: 0.95rem;
    }
}
.partners-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-content: center;
    gap: 32px;
    padding: 10px 0;
}
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #181c24; /* même fond que les cartes staff */
    border: 1px solid #222;
    border-radius: 16px;
    padding: 30px 26px 26px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    position: relative;
    min-height: 240px;
}
.partner-card:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00aaff, 0 12px 26px -6px rgba(0, 170, 255, 0.22);
}
.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 2px #00aaff, 0 14px 28px -6px rgba(0, 170, 255, 0.25);
    border-color: #00aaff55;
    background: #1d232b;
}
.partner-card.disabled {
    pointer-events: none;
    opacity: 0.6;
}
.partner-logo {
    width: 100%;
    height: 140px;
    display: grid;
    place-items: center;
    position: relative;
    margin-bottom: 8px;
}
.partner-logo img {
    max-height: 110px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.35));
    transition: transform 0.25s ease;
}
.partner-card:hover .partner-logo img { transform: scale(1.04); }
.partner-external-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #b9dfff;
    opacity: 0.9;
    font-size: 0.9rem;
    background: #121212cc;
    border: 1px solid #2a2f3a;
    border-radius: 8px;
    padding: 6px 7px;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.partner-card:hover .partner-external-icon {
    transform: translateY(-2px);
    color: #00aaff;
    border-color: #00aaff55;
    background: #0d1117cc;
}
.partner-name {
    margin-top: 4px;
    color: #b9dfff;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
}
@media (max-width: 1040px) {
    .partners-grid {
        gap: 28px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .partner-logo { height: 120px; }
    .partner-logo img { max-height: 95px; }
}
@media (max-width: 768px) {
    .partners-grid {
        gap: 18px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .partners-section { padding: 40px 20px; }
    .partner-card { padding: 26px 22px 22px; min-height: 220px; }
    .partner-logo { height: 110px; }
    .partner-logo img { max-height: 85px; }
}

/* === Décorations Noël (activation manuelle via body.christmas) === */

@media (max-width: 768px) {
    body.christmas .navbar::before,
    body.christmas .navbar::after {
        top: -58px;
        height: 86px;
        background-size: 100% 86px;
    }
}

#xmas-snow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 950;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #xmas-snow { display: none; }
}