/* ==========================================================================
   CHARTE GRAPHIQUE GLOBALE : BLEU SOMBRE & OR ÉLÉGANT
   ========================================================================== */

body { 
    /* La police Sansation est chargée via Google Fonts dans le fichier HTML */
    font-family: 'Sansation', 'Segoe UI', Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #0a1128; /* Bleu nuit très sombre */
    color: #e2e8f0; /* Blanc cassé pour une lecture confortable */
    line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #000714; /* Fond encore plus sombre pour le header */
    border-bottom: 2px solid #c5a880; /* Ligne fine couleur Or satiné */
    position: relative;
    z-index: 10; /* S'assure que le menu reste au-dessus de la vidéo */
}

header .logo img { 
    height: 60px; 
    filter: brightness(1.2); /* Ajuste la luminosité du logo */
}

nav a { 
    margin-left: 25px; 
    text-decoration: none; 
    color: #c5a880; /* Couleur Or */
    font-weight: 700; /* Utilise la graisse "Bold" de Sansation */
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover { 
    color: #e6c699; /* Or plus clair au survol */
}

/* ==========================================================================
   CONTENEUR PRINCIPAL
   ========================================================================== */

main { 
    padding: 60px 50px; 
    max-width: 1100px; 
    margin: auto; 
}

h2, h3 { 
    color: #c5a880; /* Titres en Or */
    font-weight: normal;
    letter-spacing: 0.5px;
}

h2 { 
    font-size: 1.8rem; 
    border-bottom: 1px solid #1c2d5a; 
    padding-bottom: 10px; 
    margin-top: 50px; 
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   SECTION HERO VIDÉO (Titre + Sous-titre sur fond vidéo)
   ========================================================================== */

.video-banner-container {
    position: relative;
    /* Force le plein écran horizontal malgré la restriction de <main> */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    /* Compense le padding-top de 60px de <main> pour coller exactement sous le header */
    margin-top: -60px; 
    
    /* Hauteur dynamique : 75% de la hauteur de l'écran du visiteur */
    height: 75vh; 
    min-height: 500px;
    
    overflow: hidden;
    margin-bottom: 60px;
    background-color: #000714;
    
    /* Découpe diagonale (légèrement adoucie pour les grandes hauteurs) */
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    
    /* Flexbox pour centrer le texte à l'intérieur */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Voile sombre pour garantir la lisibilité du texte (plus foncé en bas) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 17, 40, 0.4) 0%, rgba(10, 17, 40, 0.8) 100%);
    z-index: 2;
}

/* Textes sur la vidéo */
.hero-content {
    position: relative;
    z-index: 3; /* Oblige le texte à rester au-dessus de l'overlay et de la vidéo */
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    /* On remonte un peu le texte pour compenser visuellement la diagonale du bas */
    transform: translateY(-20px); 
}

.hero-content h1 {
    color: #c5a880;
    font-size: 3.5rem; 
    margin-top: 0;
    margin-bottom: 20px;
    /* Ombre portée élégante pour détacher le titre de la vidéo */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); 
    font-weight: normal;
}

.hero-content .intro {
    color: #e2e8f0;
    font-size: 1.4rem;
    font-style: italic;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   GRILLE DE L'ÉQUIPE
   ========================================================================== */

.team-grid { 
    display: flex; 
    gap: 30px; 
    margin-top: 30px; 
}

.team-member { 
    background: #111e38; /* Bleu un peu plus clair pour détacher les cartes */
    padding: 30px; 
    border-radius: 4px; 
    flex: 1; 
    border: 1px solid #1c2d5a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.team-member h3 { 
    margin-top: 0; 
    color: #e2e8f0; 
}

/* Stylisation du rôle sous le nom */
.team-member h3 span { 
    color: #c5a880;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

/* Stylisation des initiales en gras (générées par PHP) */
.team-member h3 strong {
    color: #c5a880; /* Optionnel : mettre les initiales en or également */
    font-weight: 700;
}

/* ==========================================================================
   LISTE HORAIRES
   ========================================================================== */

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 10px 0;
    border-bottom: 1px solid #1c2d5a;
}

/* ==========================================================================
   MODAL DE SÉCURITÉ (Professionnels de santé)
   ========================================================================== */

.modal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 7, 20, 0.85); /* Fond transparent sombre */
    align-items: center; 
    justify-content: center; 
    z-index: 1000;
}

.modal-content {
    background: #111e38; 
    padding: 40px; 
    border-radius: 4px; 
    text-align: center; 
    max-width: 450px;
    border: 2px solid #c5a880; /* Bordure Or */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-content h2 {
    margin-top: 0;
    border-bottom: none;
}

.modal-actions { 
    margin-top: 30px; 
    display: flex; 
    justify-content: space-around; 
}

/* ==========================================================================
   BOUTONS
   ==========================================================================
   
   /* Bouton Valider (Couleur Or) */
.btn-confirm {
    flex: 1;
    background: #c5a880;
    color: #0a1128;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-confirm:hover {
    background: #e6c699;
}

/* Bouton Annuler (Couleur Bleu sombre) */
.btn-cancel {
    flex: 1;
    background: #1c2d5a;
    color: #94a3b8;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-cancel:hover {
    background: #283e7c;
    color: #fff;
}