* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    padding-top: 130px; /* 100px original + 30px pour la banderole */
}

/* Banderole Alpha */
.alpha-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: #fbbf24; /* Couleur jaune/orange d'avertissement */
    color: #0f172a;
    z-index: 3000;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.alpha-banner p {
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin: 0;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 30px; /* Décalage sous la banderole */
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.85); /* fond sombre semi-transparent */
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(13, 110, 253, 0.4); /* liseré bleu lumineux */
    box-shadow: 0 3px 12px rgba(13, 110, 253, 0.25); /* ombre bleutée douce */
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO --- */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo-icon {
    font-size: 2em;
    color: #0D6EFD;
    filter: drop-shadow(0 0 12px rgba(13, 110, 253, 0.8));
}

.navbar-logo a {
    text-decoration: none;
}

.navbar-logo-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.6);
}

/* --- MENU LINKS --- */
.navbar-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-item {
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0D6EFD, #0A58CA);
    transition: width 0.3s;
}

.navbar-item:hover {
    color: #0D6EFD;
    text-shadow: 0 0 8px rgba(13, 110, 253, 0.6);
}

.navbar-item:hover::after {
    width: 100%;
}

.navbar-item.active {
    color: #0D6EFD;
}

.navbar-item.active::after {
    width: 100%;
}

/* --- CTA BUTTON --- */
.navbar-btn {
    background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
}

.navbar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(13, 110, 253, 0.7);
}

/* --- DROPDOWN --- */
.navbar-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.navbar-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 25px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
}


.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 20px;
    background: #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    background: #475569;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.user-name {
    color: #e2e8f0;
    font-weight: 600;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideInRight 10s ease-out forwards;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    83% { /* Environ 2.5s sur 3s : reste visible */
        transform: translateX(0);
        opacity: 1;
    }
    100% { /* À 3s : disparaît */
        transform: translateX(0);
        opacity: 0;
    }
}

/* --- CONTACT BUTTON --- */
.contact-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.7);
}

/* --- MODAL --- */
/* --- MODAL MODERNISÉE --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Changé pour un fond plus sombre et opaque */
    backdrop-filter: blur(8px); /* Effet de flou moderne */
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    margin: 5vh auto; /* Centrage vertical plus souple */
    padding: 30px;
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: translateY(0);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header de la modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.4);
}

.close-btn {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #ef4444; /* Rouge au survol */
}

/* Formulaire */
.bug-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-content label {
    font-size: 0.9em;
    font-weight: 600;
    color: #94a3b8; /* Gris clair pour les labels */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style des Inputs, Select et Textarea */
.modal-content input[type="email"],
.modal-content textarea,
.modal-content select {
    padding: 12px 16px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1120; /* Plus sombre que le conteneur */
    color: #fff;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

/* Effets au focus */
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    border-color: #0D6EFD;
    background: #151e32;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15); /* Halo bleu */
}

/* Customisation du select */
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    /* Petite flèche personnalisée */
    content: '▼';
    font-size: 0.8em;
    color: #0D6EFD;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.modal-content select {
    appearance: none;
    cursor: pointer;
}

/* Customisation de l'upload de fichier */
.modal-content input[type="file"] {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 5px;
}

.modal-content input[type="file"]::file-selector-button {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.2s;
    font-weight: 600;
}

.modal-content input[type="file"]::file-selector-button:hover {
    background: #0D6EFD;
    color: white;
    border-color: #0D6EFD;
}

/* Bouton d'envoi */
.submit-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Scrollbar pour le textarea si nécessaire */
textarea::-webkit-scrollbar {
    width: 8px;
}
textarea::-webkit-scrollbar-track {
    background: #0b1120;
}
textarea::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
textarea::-webkit-scrollbar-thumb:hover {
    background: #0D6EFD;
}