/* Configuration de base */
:root {
    --primary-color: #0056b3;
    --secondary-color: #28a745;
    --bg-color: #f4f7f6;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container adaptable */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Navbar Responsive */
.navbar {
    background: #222;
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
}

.nav-brand { 
    display: flex;         /* Aligne le logo et le texte sur la même ligne */
    align-items: center;   /* Centre verticalement le logo par rapport au texte */
    gap: 12px;             /* Espace de 12px entre le logo et le texte */
    font-size: 1.4rem; 
    font-weight: bold; 
    color: #fff; 
    text-decoration: none;
}

/* Style spécifique pour la pastille Logo OMS */
.logo-oms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #fff;      /* Fond blanc pour faire ressortir les lettres */
    color: var(--primary-color); /* Lettres bleues (la couleur de votre thème) */
    border-radius: 6px;          /* Coins légèrement arrondis pour un look moderne */
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.3s;
}

.nav-links a:hover { background: #444; color: #fff; }

/* Formulaires adaptables */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem; /* Évite le zoom automatique sur iPhone */
    width: 100%;
    box-sizing: border-box;
}

/* Boutons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    width: 100%; /* Par défaut plein écran sur mobile */
}

@media (min-width: 768px) {
    .btn { width: auto; } /* Bouton normal sur ordinateur */
}

.btn-success { background: var(--secondary-color); color: white; }

/* Tableaux Responsives (Le scroll horizontal) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    min-width: 600px; /* Force le scroll si trop petit */
}

th, td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: left;
}

/* Grilles pour l'admin (2 colonnes sur PC, 1 sur Mobile) */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .admin-grid { grid-template-columns: 1fr 1fr; }
}
    
    
    
    
    
    
    
    .logo-oms {
    display: inline-block;
    width: 40px; /* Taille du logo */
    height: 40px;
    background-image: url('logo.png'); /* Nom de votre fichier image */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 10px;
}

.brand-text {
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 1px;
}