/* --- CONFIGURATION DES COULEURS DES MANCHOTS --- */
:root {
  --blue-manchot: #002D62;   /* Bleu Marine du logo */
  --yellow-manchot: #FFCC00; /* Jaune Or du bandeau */
  --white: #FFFFFF;
  --bg-light: #F9F9F9;       /* Fond de page doux */
  --text-dark: #1A1A1A;      /* Pour une lecture confortable */
}

/* --- STRUCTURE GÉNÉRALE --- */
body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- NAVIGATION / MENU --- */
.yp-navbar {
  background-color: var(--blue-manchot) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 10px 0;
}

.yp-navbar .nav-link {
  color: var(--white) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 10px 20px !important;
}

.yp-navbar .nav-link:hover {
  color: var(--yellow-manchot) !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* --- TITRES (Correction de la redondance) --- */
h1 {
  color: var(--blue-manchot);
  font-weight: 800;
  text-transform: uppercase;
  border-left: 8px solid var(--yellow-manchot); /* Uniquement sur le titre de page */
  padding-left: 20px;
  margin-bottom: 30px;
}

h2 {
  color: var(--blue-manchot);
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #E0E0E0; /* Ligne sobre au lieu du trait jaune vertical */
  margin-top: 40px;
}

h3 {
  color: var(--blue-manchot);
  font-size: 2rem;
  margin-top: 25px;
}

/* --- LISTES À PUCES --- */
ul.custom-list, .yp-content ul {
  list-style: none;
  padding-left: 20px;
}

ul.custom-list li, .yp-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

/* Utilisation du jaune en petite touche pour les puces */
ul.custom-list li::before, .yp-content ul li::before {
  content: "🏐"; /* Icône Volley discrète */
  position: absolute;
  left: 0;
  font-size: 0.9rem;
  color: var(--yellow-manchot);
}

/* --- BOUTONS D'ACTION --- */
.btn-inscription, .yp-button-main {
  background-color: var(--yellow-manchot) !important;
  color: var(--blue-manchot) !important;
  border: none !important;
  padding: 12px 30px !important;
  font-weight: bold !important;
  text-transform: uppercase;
  border-radius: 50px !important; /* Bouton arrondi moderne */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-inscription:hover {
  background-color: var(--blue-manchot) !important;
  color: var(--yellow-manchot) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* --- BLOC D'INFORMATION (Ex: "Séance offerte") --- */
.info-box {
  background-color: var(--white);
  border: 1px solid #E0E0E0;
  border-left: 5px solid var(--blue-manchot);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

/* --- STYLE DU CONTENEUR DE L'ARTICLE (LA CARTE) --- */
/* On cible le conteneur qui a l'ID d'article pour appliquer l'effet de carte */
[data-article-id] {
    background-color: #FFFFFF !important;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block; /* S'assure que le bloc prend bien sa place */
    overflow: hidden;
}

/* Effet au survol de la carte entière */
[data-article-id]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--yellow-manchot);
}

/* --- AJUSTEMENTS DES ÉLÉMENTS INTERNES --- */

/* L'image de l'article */
.news-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover; /* Pour que les images soient uniformes */
}

/* Le titre de l'article */
.news-title a {
    color: var(--blue-manchot) !important;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
}

/* L'introduction (ton bloc de texte) */
.news-intro {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 10px;
    background: transparent !important; /* On enlève le fond ici car il est sur le parent */
}

.zone-social h2{
    text-align: center !important;
}

/* --- CORRECTIONS MENU MOBILE UNIQUEMENT --- */

@media (max-width: 991px) {
  /* FIX : navbar-header doit utiliser flexbox pour bien positionner logo et hamburger */
  .navbar-header {
    height: auto !important;
    min-height: 60px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 10px 15px !important;
  }
  
  /* Le logo à gauche */
  .navbar-brand {
    order: 1 !important;
    margin: 0 !important;
    z-index: 1000 !important;
  }
  
  /* Le hamburger à droite */
  .navbar-toggler,
  .yp-navbar .navbar-toggler {
    order: 2 !important;
    border: 2px solid var(--yellow-manchot) !important;
    padding: 8px 12px !important;
    background-color: rgba(0, 45, 98, 0.9) !important;
    border-radius: 6px !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1001 !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  /* Les barres du hamburger en jaune */
  .navbar-toggler-icon,
  .yp-navbar .navbar-toggler-icon {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFCC00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  /* Assurer que le navbar ne coupe rien */
  .yp-navbar {
    overflow: visible !important;
  }

  /* Menu déroulant mobile avec fond bleu */
  .navbar-collapse,
  .yp-navbar .navbar-collapse {
    background-color: var(--blue-manchot) !important;
    padding: 15px !important;
    margin-top: 10px !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    border-radius: 0 0 8px 8px !important;
    position: relative !important;
    z-index: 999 !important;
    width: calc(100% + 30px) !important;
  }

  /* TEXTE EN BLANC dans le menu mobile */
  .navbar-collapse .nav-link,
  .yp-navbar .navbar-collapse .nav-link,
  .navbar-collapse a,
  .yp-navbar .navbar-collapse a {
    color: var(--white) !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important;
  }
  
  /* Hover en jaune sur mobile aussi */
  .navbar-collapse .nav-link:hover,
  .yp-navbar .navbar-collapse .nav-link:hover {
    color: var(--yellow-manchot) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  .navbar-collapse .nav-link.active,
.yp-navbar .navbar-collapse .nav-link.active,
.navbar-collapse .active > a,
.yp-navbar .navbar-collapse .active > a {
  color: var(--yellow-manchot) !important;
  background-color: rgba(255, 204, 0, 0.15) !important;
  font-weight: 700 !important;
}  
  
  .navbar-collapse .nav-link:last-child,
  .yp-navbar .navbar-collapse .nav-link:last-child {
    border-bottom: none;
  }

  /* Focus visible sur le bouton hamburger */
  .navbar-toggler:focus,
  .yp-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.5) !important;
    outline: none !important;
  }
}