/* === Réinitialisation et correction de l'affichage mobile === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-color: white;
    height: 100vh;
}

/* === Header : Logo à gauche et titre centré === */
.header {
    background-color: #0071ce;
    padding: 10px 20px;
    width: 100%;
}

/* === Conteneur du logo et du texte === */
.container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre les éléments */
    width: 100%;
    max-width: 1200px;
    margin: auto;
    gap: 10px;
}

/* === Logo ajusté pour mobile === */
.logo img {
    width: 120px; /* Taille réduite pour mobile */
    height: auto;
}

/* === Conteneur du texte centré === */
.nav-container {
    flex-grow: 1;
    text-align: center;
}

.nav {
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Style des Sections === */
.department {
    margin: 20px auto;
    max-width: 1300px;
    padding: 10px;
}

.department h2 {
    text-align: left;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0071ce;
    padding-bottom: 10px;
    border-bottom: 3px solid #0071ce;
}

/* === Espacement entre les lignes de panels === */
.panel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adaptatif */
    gap: 20px 15px; /* 20px entre les lignes, 15px entre les colonnes */
    margin-top: 15px;
    width: 100%;
    padding: 0 10px;
}


/* === Alignement du bouton "Réserver un RDV" en bas à droite === */
.panel {
    width: 100%;
    max-width: 350px;
    margin: auto;
    height: auto;
    background-color: #f0f0f0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 260px; /* Assure une hauteur minimale pour le panel */
}
/* === Styles des Textes dans les Panels === */
.name {
    font-weight: bold;
    font-size: 1.1rem;
    color: black;
    margin-bottom: 5px;
}

.role {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

/* === Icônes en bleu et alignement des infos === */
.info {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.info i {
    color: #0071ce; /* Icônes en bleu */
}
/* === Bouton en bas à droite === */
.rdv-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #0071ce;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rdv-btn:hover {
    background-color: #005bb5;
}

/* === Responsive Design === */

/* 📱 Pour tablettes et petits écrans */
@media screen and (max-width: 768px) {
    .container {
        justify-content: center; /* Centre le texte */
    }

    .logo img {
        width: 100px; /* Réduction du logo */
    }

    .panel-container {
        grid-template-columns: repeat(1, 1fr); /* 1 panel par ligne */
        padding: 0 5px; /* Ajustement des marges */
    }
}

/* 📱 Pour petits smartphones */
@media screen and (max-width: 480px) {
    .container {
        justify-content: center;
    }

    .logo img {
        width: 80px; /* Encore plus petit */
    }

    .panel-container {
        grid-template-columns: repeat(1, 1fr);
        padding: 0 5px; /* Élimine la zone blanche */
    }
}
