body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
}

/* === CLASSE UTILITAIRE POUR MASQUER VISUELLEMENT === */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    margin-left: -20px;
}

.logo a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.8em;
    font-weight: bold;
    display: inline-block;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    padding: 10px 5px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav li.active a {
    color: #ff6600;
}

/* === MENU UTILISATEUR === */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: none;
    border: none;
    color: #333;
    padding: 10px 5px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
    font-family: inherit;
}

.user-menu-btn:hover {
    color: #ff6600;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    z-index: 1001;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.user-menu-dropdown a:hover {
    background-color: #f8f9fa;
    color: #ff6600;
}

.user-menu-dropdown a:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.user-menu-dropdown a:last-child {
    border-top: 1px solid #e7e7e7;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

/* AU0.1 — Bouton de déconnexion stylé comme un lien (form POST + CSRF). */
.user-menu-dropdown .logout-form {
    margin: 0;
    padding: 0;
}

.user-menu-dropdown .logout-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-top: 1px solid #e7e7e7;
    color: #333;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.user-menu-dropdown .logout-link:hover {
    background-color: #f8f9fa;
    color: #ff6600;
}

/* === HERO SECTION (styles génériques pour sections hero) === */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    background-color: #ff6600;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
    color: #000;
}

/* === VIDEO SECTION ET CARROUSEL DE TEXTE === */
#video-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#text-carousel {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 45px 65px;
    border-radius: 10px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.text-slide {
    display: none;
    animation: fadeEffect 1.5s;
}

.text-slide.active {
    display: block;
}

.text-slide h2 {
    font-size: 3.0em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.text-slide p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.discover-button {
    display: inline-block;
    background-color: #ff6600;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.discover-button:hover {
    background-color: #fff;
    color: #000;
    /* transform: translateY(-2px); */
}

@keyframes fadeEffect {
    from {opacity: .4}
    to {opacity: 1}
}

/* === FOOTER === */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: #aaa;
    text-align: center;
    padding: 15px 0;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer-left {
    position: relative;
    left: -20px;
    white-space: nowrap;
}

.footer-left a {
    color: #ccc;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-left a:hover {
    color: #fff;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin: 0;
    font-size: 0.9em;
}

.footer-right {
    position: relative;
    right: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-right img {
    height: 60px;
    width: 60px;
    display: block;
    border-radius: 3px;
    margin-bottom: 5px;
}

.qr-caption {
    font-size: 0.8em;
    color: #ccc;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .footer-left {
        left: -100px;
    }
    .footer-right {
        right: -100px;
    }
}

@media (max-width: 992px) {
    .footer-left {
        left: -50px;
    }
    .footer-right {
        right: -50px;
    }
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === BURGER MENU === */
/* DÉSACTIVÉ - Conflit avec Bootstrap */
/*
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
*/

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    /* Header responsive */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        margin-left: 0;
    }
    
    .logo img {
        height: 70px;
        width: auto;
    }
    
    .logo {
        order: 1;
    }
    
    /* Burger menu */
    /* DÉSACTIVÉ - Conflit avec Bootstrap */
    /*
    .burger-menu {
        display: flex;
        order: 2;
    }
    */
    
    /* Navigation mobile */
    /* DÉSACTIVÉ - Conflit avec Bootstrap */
    /*
    .main-nav {
        display: none;
        position: relative;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #e7e7e7;
        order: 3;
    }
    
    .main-nav.show {
        display: block;
    }
    */
    
    .main-nav ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
    }
    
    .main-nav a:hover {
        background-color: #f8f9fa;
        color: #ff6600;
    }
    
    /* User menu mobile */
    .user-menu {
        position: static;
        width: 100%;
    }
    
    .user-menu-btn {
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        padding: 15px 20px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
    }
    
    .user-menu-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-top: 0;
        width: 100%;
    }
    
    .user-menu-dropdown.show {
        display: block;
    }
    
    .user-menu-dropdown a {
        padding: 10px 30px;
        font-size: 14px;
        border-bottom: 1px solid #e9ecef;
        display: block;
        color: #333;
        text-decoration: none;
    }
    
    .user-menu-dropdown a:hover {
        background-color: #e9ecef;
        color: #ff6600;
    }
    
    /* Hero section mobile */
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    /* Video section mobile */
    #video-section {
        min-height: 60vh;
    }

    #text-carousel {
        padding: 30px 40px;
        max-width: 90%;
    }

    .text-slide h2 {
        font-size: 2.0em;
    }
    
    .text-slide p {
        font-size: 1.1em;
    }
    
    .discover-button {
        padding: 12px 22px;
        font-size: 1.1em;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .footer-left, .footer-right {
        position: static;
        left: auto;
        right: auto;
        margin-bottom: 15px;
    }
    
    .footer-center {
        order: -1;
        margin-bottom: 15px;
    }
    
    .footer-left a {
        margin: 0 5px;
    }
    
    .footer-right img {
        height: 50px;
        width: 50px;
        margin-bottom: 5px;
    }
    
    .qr-caption {
        font-size: 0.75em;
    }
}

/* === RESPONSIVE TRÈS PETITS ÉCRANS === */
@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }
    
    #text-carousel {
        padding: 20px 25px;
        max-width: 95%;
    }
    
    .text-slide h2 {
        font-size: 1.6em;
    }
    
    .text-slide p {
        font-size: 1em;
    }
    
    .discover-button {
        padding: 10px 18px;
        font-size: 1em;
    }
    
    .main-nav a {
        padding: 12px 15px;
    }
    
    .user-menu-btn {
        padding: 12px 15px;
    }
    
    .user-menu-dropdown a {
        padding: 8px 25px;
    }
}

/* === NAVIGATION ACTIVE === */
.navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler {
    background-color: transparent;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    margin: 0 0 10px 0;
    color: #aaa;
}

.cookie-banner button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 3px;
    cursor: pointer;
}

.cookie-banner button:hover {
    background-color: #d80303f4;
}

.cookie-banner button.secondary {
    background-color: #555;
}

.cookie-banner button.secondary:hover {
    background-color: #777;
}

/* === STYLES BUTTONS === */
.btn-orange {
    background-color: #ff6600 !important;
    color: #fff !important;
}

.btn-orange:hover {
    background-color: #fff !important;
    color: #ff6600 !important;
    border: 1px solid #ff6600 !important;
}

/* === BOUTONS DE RETOUR UNIFORMES === */
.dashboard-back-button,
.back-button-uniform {
    display: inline-block;
    background-color: #ff6600;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none !important;
    margin-bottom: 18px;
    margin-top: 5px;
    margin-left: 0;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(249,4,4,0.08);
    border: 1px solid transparent;
}

.dashboard-back-button:hover,
.back-button-uniform:hover {
    background-color: #fff !important;
    color: #ff6600 !important;
    border: 1px solid #ff6600;
    box-shadow: 0 4px 12px rgba(249,4,4,0.13);
    text-decoration: none !important;
}
