/* --- CONFIGURATION DASHBOARD --- */
.dashboard {
    display: flex;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

/* --- BARRE LATÉRALE --- */
.sidebar {
    width: 350px;
    background-color: #f1f5f9; /* Gris clair pro */
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    z-index: 10;
}

.profile-section h2 {
    border-left: none; /* On enlève la bordure bleue ici */
    padding-left: 0;
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--dark);
}

.avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

.intro {
    font-size: 0.9rem;
    color: #64748b;
    margin: 20px 0;
}

/* Navigation latérale */
.side-nav {
    margin-top: 40px;
    flex-grow: 1;
}

.side-nav ul { list-style: none; padding: 0; }

.nav-item {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.btn-side {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* --- CONTENU DROITE (ZONE DE DOCUMENTATION) --- */
.main-content {
    flex-grow: 1;
    position: relative;
    background-color: #ffffff; /* Fond blanc pour la lecture */
    overflow-y: auto; /* Permet de scroller le texte */
    height: 100vh;
}

/* On réutilise hero-full mais comme un en-tête de page */
/* --- EN-TÊTE DE LA DOCUMENTATION CENTRÉ --- */
#hero-full.doc-header {
    height: 350px; /* On augmente légèrement la hauteur pour l'impact visuel */
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('../fond_index.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    text-align: center;      /* Centre le texte */
    color: white;
    padding: 0 20px;
}

#hero-full.doc-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    border: none; /* On s'assure qu'il n'y a pas de bordure à gauche ici */
}

#hero-full.doc-header .subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Conteneur pour centrer et limiter la largeur du texte */
.doc-container {
    max-width: 1200px;
    margin: -50px auto 50px auto; 
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    z-index: 5;
}

/* Typographie des documents */
.doc-container h2 {
    color: var(--dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin: 40px 0 20px 0;
}

.doc-container h3 {
    margin-top: 30px;
    color: var(--primary);
}

.doc-container p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #475569;
}

/* Liste des preuves / boutons */
.evidence-box {
    background: #f8fafc;
    border: 1px dashed var(--primary);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}
/* Grille des missions */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Style des cartes */
.mission-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.mission-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.mission-info h3 {
    margin: 0 0 10px 0 !important; /* Force le reset du margin h3 du container */
    font-size: 1.1rem;
}

.mission-info p {
    font-size: 0.9rem !important;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Badges d'état */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #475569;
}

.badge.pdf {
    background: #fee2e2;
    color: #ef4444;
}

.img-project {
    max-width: 100%;    /* L'image ne dépassera jamais la largeur du bloc blanc */
    max-height: 600px; /* Ajoute cette ligne pour garder un format équilibré */
    object-fit: cover; /* Optionnel : pour que l'image remplisse bien le cadre sans se déformer */
    height: auto;       /* Garde les proportions de l'image (pas d'écrasement) */
    display: block;     /* Permet de manipuler l'image comme un bloc */
    margin: 20px auto;  /* Centre l'image et ajoute de l'espace en haut/bas */
    border-radius: 8px; /* Optionnel : arrondit les coins pour un look plus moderne */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Optionnel : ajoute une légère ombre pour la profondeur */
}

/* Style du gros titre */
h2 {
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Correction du bouton (Fini le blanc sur blanc) */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    
    /* COULEUR : On utilise un fond sombre (bleu Proxmox ou gris foncé) 
       pour que le texte blanc soit parfaitement lisible */
    background-color: #2c3e50; 
    color: #ffffff !important; /* Texte forcé en blanc */
    
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.btn-download:hover {
    background-color: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color); /* Rappel de ta couleur d'accentuation */
}