/*
 Theme Name:   L'herbe à l'Aise
 Theme URI:    https://gd6d.fr
 Description:  A child theme of Twenty Nineteen WordPress theme.
 Author:       Olivier GOBET
 Author URI:   https://gd6d.fr
 Template:     twentynineteen
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

@import url("../twentynineteen/style.css");


/* Ligne d’onglets */
.subnav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;          /* Une seule ligne */
  justify-content: space-between;
  align-items: stretch;       /* Tous les li ont la même hauteur */

}

/* Chaque onglet */
.subnav__menu > li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;              /* li devient un conteneur flex */
}

/* Lien d’onglet */
.subnav__menu > li > a {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;  /* texte en bas */
  align-items: center;        /* centre horizontalement */
  text-align: center;         /* >>> centre les lignes de texte */
    font-size: 0.8rem;
  padding: 0.25rem 0.1rem 0.75rem;
  border: 1px solid transparent;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
color:#8b8b8b; 
  line-height: 1.2;
  white-space: normal;        /* permet les retours à la ligne */
}



/* Hover / focus */
.subnav__menu > li > a:hover,
.subnav__menu > li > a:focus {
  color: hsl(0, 100%, 33%);
}


/* Onglet actif = page courante */
.subnav__menu > .current-menu-item > a,
.subnav__menu > .current_page_item > a {
  color: hsl(0, 100%, 33%);
  border-color: #ccc;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;        /* fait « remonter » l’onglet sur la bordure */
}


/* Légers ajustements sur petits écrans */
@media (max-width: 600px) {
  .subnav__menu > li > a {
    padding: 0.5rem 0.25rem 1rem;
    font-size: 0.85rem;
  }
}


/* --- Menu déroulant (mobile) --- */

/* Par défaut : caché en desktop */
.subnav-dropdown-wrapper {
  display: none;
}

.subnav__select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1rem;
}

/* Sous 1024px : on affiche le select et (optionnel) on cache les onglets */
@media (max-width: 1023px) {

  .subnav-dropdown-wrapper {
    display: block;
    margin-bottom: 1.5rem;
  }

  .subnav__select {
    display: block;
  }

  /* Si tu veux basculer complètement sur le select en mobile */
  .subnav__menu {
    display: none;
  }
}
