/* Force le dropdown du menu Équipe */
.nav_parent {
  position: relative; /* nécessaire pour le positionnement du sous-menu */
}

.nav_sub {
  display: none;       
  position: absolute;  
  top: 100%;           
  left: 0;
  background-color: #fff; 
  min-width: 200px;  
  width: max-content;  
  z-index: 1000;       
  padding: 0.5em 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav_parent:hover .nav_sub {
  display: block;
}

.nav_sub a {
  display: block;
  padding: 0.5em 1em;
  color: #000;          
  text-decoration: none;
}

.nav_sub a:hover {
  background-color: #f0f0f0; 
}

.btn {
  background:#3b82f6;
  color:white;
  padding:10px 20px;
  border-radius:8px;
  text-decoration:none;
}


.page-hero {
  height: 250px; /* ← change CE nombre */
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
}

.sidebar-right {
    position: fixed; /* pour qu'elle reste visible même quand on scroll */
    top: 50%;        /* centré verticalement */
    right: 0;        /* collé à droite */
    transform: translateY(-50%);
    background-color: #00a3a6;
    padding: 10px 5px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;   /* au-dessus de tout */
    width: auto;
    max-width: 200px;
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  color: #FFFFFF;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Bande noire au-dessus des logos */
.top-black-bar {
  width: 100%;
  height: 40px;   /* hauteur de la bande noir*/
  background: #010405; /* même noir que le menu */
  display : block; 
  position: relative;
  z-index: 50 /* au-dessus du header si nécessaire */
}

/* Banderole pleine largeur */
.top-banner {
  width: 100%;
  background: white;
  padding: 15px 0;
  margin-top: 0px;
  position: relative; /* IMPORTANT : pas sticky */ 
  z-index: 10;

}

/* Logos alignés à gauche dans la banderole */
.top-banner-logos {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 30px; /* alignement à gauche */
  width: fit-content; /* IMPORTANT : empêche l’étalement */

}

.top-banner-logos img {
  width: auto;
}

/* Tailles individuelles des logos */
.logo-rf {
  height: 80px;
}
.logo-inrae {
  height: 20px;
}

/* bande avec les menu */
.menu-wrapper { 
  width: 100%;
  z-index: 100;
  background: #010405; 
}


/* Contenu principal */
main {
  padding-top: 8px; /* laisse de la place pour le menu */
}

body {
  display: block !important;
  overflow: visible !important;
}

html, body {
  scroll-padding-top: 0 !important;
}

html, body, #documentTop {
  overflow: visible !important;
  display: block !important;
}

header,
.header {
  position: relative !important;
  top: auto !important;
}

/* Le conteneur du menu devient sticky */
.menu-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #010405;
}

/* SUPPRIME l'espace vide laissé par Clarity */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home-hero {
  height: 400px;
  background-image: url("../images/home-banner.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-content {
  background: rgba(255,255,255,0.8);
  color: white;
  
}

.titre-inrae {
  color: #00a3a6;   /* Bleu officiel INRAE */
  font-weight: bold; /* Optionnel, rend le texte gras */

}

/* Listes à puces */
ul {
  list-style-type: disc; /* affiche des points */
  padding-left: 20px;
  margin-bottom: 1em;
}

ul li {
  line-height: 1.5em;
}

/* Titres */
h1, h3, h4 {
  font-weight: bold;
  margin-top: 0em;
  margin-bottom: 0.em; /* réduit l'espace après le titre */
  text-align: ;
 padding: 0rem 15rem;
}

/* Titres */
h2 {
  font-weight: bold;
  margin-top: 0em;
  margin-bottom: 0.em; /* réduit l'espace après le titre */
  text-align: ;
  padding: 0rem 1rem;

 }


/* Texte normal */
p {
  text-align: justify;  /* justifie le texte comme sur ton image */
  line-height: 1.6em;   /* espace entre les lignes */
  margin-bottom: 1em;
  padding: 0rem 15rem;
}


/* --- Réduction de l'espace dans la page de recherche --- */

/* Supprime l'espace sous les titres des résultats */
#search-results .post_item h3 {
    margin-bottom: 0;
    padding-bottom: 0;
}
/* Supprime l'espace au-dessus des paragraphes des extraits */
#search-results .post_item p {
    margin-top: 0;
    padding-top: 0;
}
/* Réduit un peu l'espace entre deux résultats */
#search-results .post_item {
    margin-bottom: 0em;
}

body::before {
  content: "CUSTOM CSS OK";
  position: fixed;
  top: 1000px;
  left: 0;
  background: red;
  color: white;
  z-index: 999999;
  padding: 5px;
}


