/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif; /* Police simple pour coller à l'image */
    color: white;
    overflow: hidden; /* Empêche de scroller si l'image est fixe */
    background-color: #000;
    height: 100vh;
    position: relative;
}

/* ===== L'IMAGE DE FOND ===== */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bg-image {
    /* On force l'image à couvrir tout l'écran sans se déformer */
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    /* Optionnel : floute légèrement l'image si elle est trop nette par rapport au texte */
    /* filter: blur(2px); */ 
}

/* ===== NAVBAR (Le gris exact) ===== */
.navbar {
    background-color: #7a8694; /* Le gris bleuté de ton screen */
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 1500px;
    border-radius: 50px;
    z-index: 1000;
    padding: 5px 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 35px;
    width: auto;
}

/* Liens */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin-left: 20px;
}

.nav-links li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
}

.nav-links li a:hover {
    color: #ffffff;
}

/* ===== CORRECTION DU MENU COMMUNAUTÉ ===== */
.dropdown {
    position: relative;
    height: 50px; /* Prend toute la hauteur de la navbar */
    display: flex;
    align-items: center;
}

/* Le wrapper comble le vide entre le texte et le menu */
.dropdown-wrapper {
    display: none;
    position: absolute;
    top: 100%; /* Juste en dessous du texte */
    left: 50%;
    transform: translateX(-50%);
    padding-top: 15px; /* C'est CE PADDING qui empêche le menu de disparaître */
    z-index: 1001;
}

/* On affiche le wrapper au survol */
.dropdown:hover .dropdown-wrapper {
    display: block;
}

.dropdown-content {
    background-color: #7a8694; /* Même gris que la navbar */
    min-width: 160px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    list-style: none;
    padding: 10px 0;
    overflow: hidden;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    color: #1a1a1a;
    text-align: center;
    font-weight: bold;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== PARTIE DROITE ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.sun-icon {
    font-size: 1.3rem;
    color: #1a1a1a;
}

/* Bouton Anilyse */
.account-section {
    position: relative;
}

.account-btn {
    background-color: #5c6977; /* Gris plus foncé */
    border: none;
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    cursor: pointer;
    color: #1a1a1a;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.account-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 2px;
}

.account-btn .arrow {
    font-size: 1rem;
    transition: transform 0.3s;
}

.account-btn.active .arrow {
    transform: rotate(180deg);
}

/* Menu déroulant compte */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: #7a8694;
    min-width: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    color: #1a1a1a;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-weight: 800;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.logout-link {
    color: #c0392b !important;
}

/* ===== SECTION HERO (TEXTE & BOUTONS) ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 50px;
}

.hero-content h1 {
    font-size: 5rem; /* Très gros texte */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9); /* Ombre forte pour lisibilité */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Boutons */
.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.3rem;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.btn:hover {
    transform: translateY(-3px);
}

/* Bouton Cyan */
.btn-cyan {
    background-color: #2eb8ff;
    color: #000;
}

/* Bouton Gris */
.btn-gray {
    background-color: #d1d5db;
    color: #000;
}
