/**
 * @brief AltoWithCSS3, a theme for Dotclear 2
 *
 * @package Dotclear
 * @subpackage Theme
 *
 * @author Pierre Van Glabeke
 * @copyright http://creativecommons.org/licenses/by-nc/2.0/fr/
 */

#nav { display: none; }

/* SimpleMenu Modernisé */
#top {
  padding-bottom: 11px;
}

#navsm {
  display: block;
  clear: both;
  margin: 0 29px 45px;
  padding: 0;
}

#supranav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  background: none;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 4px solid #ecfa65; /* Trait de continuité en bas du bloc de menu */
}

#supranav li {
 
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #ecfa65;
  border-radius: 5px 5px 0 0;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#supranav li a {
  display: block;
  padding: 0.25rem 0.20rem;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

#supranav li.active {
  background-color: #e3e6eb;
  border-radius: 5px 5px 0 0;
}

#supranav li.active a {
  color: #111;
}

#supranav li:hover {
  background-color: #e3e6eb;
  transform: translateY(-2px);
}

#supranav li a:hover {
  color: #005577;
}

/* Support IE6 (conservé tel quel pour rétrocompatibilité) */
* html #navsm li {
  float: left;
  text-decoration: none;
}

* html #navsm li a {
  float: left;
  margin-left: 4px;
  text-decoration: none;
}


#supranav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start; /* alignement à gauche */
  gap: 12px; /* espace entre les items */
  background: none;
  padding: 0.5rem 0;
  margin: 0 0 2rem;
  list-style: none;
  border-bottom: 4px solid #ecfa65;
}

#supranav li {
  font-size: 1rem; /* plus gros texte */
  font-weight: 600;
  background-color: #ecfa65;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

#supranav li a {
  display: block;
  padding: 0.75rem 1.25rem; /* zone cliquable plus grande */
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

#supranav li.active {
  background-color: #e3e6eb;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15) inset;
}

#supranav li.active a {
  color: #111;
}

#supranav li:hover {
  background-color: #e3e6eb;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

#supranav li a:hover {
  color: #005577;
}
