/* --- STYLES DE BASE --- */

/* Page */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
em,
font,
img,
strong,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

html {
  font-size: 100%; /* évite un bug d'IE 6-7. (1) */
}
body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.8em; /* à adapter pour la police choisie. (3) */
  line-height: 1.4; /* à adapter au design. (4) */
  color: black;
  background: #ffffff;
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1em 0 0.5em 0; /* Rapproche le titre du texte. (5) */
  line-height: 1.2;
  font-weight: bold; /* Valeur par défaut. (6) */
  font-style: normal;
}
h1 {
  font-size: 1.75em;
}
h2 {
  font-size: 1.5em;
}
h3 {
  font-size: 1.25em;
}
h4 {
  font-size: 1em;
}
/* Liens */
a {
  text-decoration: underline;
} /*
a:link { 
  color: #11C; 
} 

a:hover, a:focus, a:active { 
  color: #00F; 
}*/
/* Pas de bordure autour des images dans les liens */
a img {
  border: none;
}
/* Formulaires */
form,
fieldset {
  margin: 0;
  padding: 0;
  border: none;
}
fieldset {
  border: 1px solid #ccc;
  padding: 10px;
}
legend {
  padding: 0px 10px;
  line-height: 0.5em;
  font-weight: bold;
  color: #555;
}
input,
button,
select {
  vertical-align: middle; /* Solution pb. d'alignement. (9) */
}
input[type="text"],
input[type="password"],
input.text,
input.title,
textarea,
select {
  background-color: #fff;
  border: 1px solid #bbb;
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: orange;
}
textarea {
  width: 330px;
  height: 200px;
  padding: 5px;
}

input[type="text"],
input[type="password"],
textarea,
select,
option {
  margin: 0.5em 0;
  padding: 0.1em;
}
option {
  padding: 0.1em;
}
/* Mise en forme simple pour les tableaux */
table {
  margin: 0;
  border: 1px solid #ccc;
  border-collapse: collapse;
  border-spacing: 0;
}
table td,
table th {
  padding: 4px;
  border: 1px solid #ccc;
}
/* styles pour le tableau type */
.tableType {
  font-size: 0.8em;
  color: #444;
}
.tableType th {
  background: #eee;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#f9f9f9),
    to(#d3d3d3)
  );
  background: -moz-linear-gradient(top, #f9f9f9, #d3d3d3);
}
.tableType a {
  color: #555;
  font-weight: bold;
  text-decoration: none;
}
.tableType a:hover {
  text-decoration: underline;
}
/* Styles pour formulaire type */
.bloc {
  float: left;
  width: 50%;
}
.formType {
  font-size: 0.8em;
  color: #444;
}
.formType option {
  font-size: 0.8em;
  color: #444;
}
.formType input[type="text"] {
  width: 250px;
}
.formType span {
  display: block;
  float: left;
}
.btSubmit {
  padding: 5px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #e9e9e9;
  border: solid 1px #555;
  background: #6e6e6e;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#888),
    to(#575757)
  );
  background: -moz-linear-gradient(top, #888, #575757);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
  cursor: pointer;
  color: #eee;
}

.btSubmit:hover {
  background: #616161;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#757575),
    to(#4b4b4b)
  );
  background: -moz-linear-gradient(top, #757575, #4b4b4b);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
}

/* Structure générale de la page */
.wrap {
  overflow: hidden;
  width: 60%;
  margin: 0 auto;
}
@media (max-width: 900px) {
  /* Rajout pour le site GDS85 Wordpress */
  .wrap {
    width: 95%;
    margin: 0 auto;
  }
  #RESULTAT {
    overflow: auto;
  }
}

.wrapMenu,
.wrapTable {
  padding: 5px;
  overflow: hidden;
}
.wrapMenu {
  float: left;
  width: 20%;
}
.wrapMenu ul {
  float: left;
}
.wrapMenu li {
  border-bottom: 1px dotted #ddd;
}
.wrapMenu li a {
  font-size: 0.8em;
  color: #444;
  text-decoration: none;
  display: block;
  padding: 5px 0px 5px 5px;
  border: 1px solid #fff;
}
.wrapMenu li a.actif {
  background: #ddd;
  font-weight: bold;
}
.wrapMenu li a:hover {
  text-decoration: none;
  background: #f0f0f0;
}

#separationPanel {
  float: left;
  width: 8px;
  height: 40px;
  background: #ccc;
  margin-top: 0px;
  position: relative;
  cursor: pointer;
}
#separationPanel:hover {
  background: #eee;
}

#v1.triangle {
  height: 0px;
  width: 0px;
  border-top: 6px solid transparent;
  border-right: 6px solid #555;
  border-bottom: 6px solid transparent;
  border-left: 6px solid transparent;
  margin-top: 13px;
  margin-left: -4px;
}
#v2.triangle {
  height: 0px;
  width: 0px;
  border-top: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #555;
  margin-top: 13px;
  margin-right: -4px;
}

.wrapTable {
  border-left: 2px solid #ccc;
}

/* PAGE DE LOGIN */
#wrapLogin {
  color: #444;
  width: 500px;
  margin: 0 auto;
  border: 1px solid #ddd;
  background: #f3f3f3;
  margin-top: 10%;
  padding: 5px;
  overflow: hidden;
}
.msgAccueil {
  color: #eee;
  font-size: 1.4em;
  border-bottom: 1px solid #ddd;
  padding: 5px;
  background: #6e6e6e;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#888),
    to(#575757)
  );
  background: -moz-linear-gradient(top, #888, #575757);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
}

#formLogin {
  margin-left: 10px;
}
#formLogin span {
  display: block;
  float: left;
  line-height: 30px;
  width: 100px;
}
#formLogin input[type="text"],
#formLogin input[type="password"] {
  width: 200px;
}
#formLogin input[type="submit"] {
  margin-left: 105px;
}

.msgDefaut {
  font-size: 1em;
  color: #900;
  padding-top: 8px;
  margin-left: 105px;
}

/* Menu */
.menu-container {
  background: #f9f9f9;
  padding: 10px 15px;
  position: relative;
  z-index: 50;
}

/* Bouton mobile */
.menu-toggle {
  display: none;
  background: #007abe;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* Menu principal */
.main-nav {
  justify-self: center;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  margin: 2px;
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #222;
  border-radius: 8px;
  background-color: rgb(3, 122, 33);
  color: white;
}
.main-nav a:hover {
  background: rgb(3, 172, 31);
}

.menu-item {
  position: relative;
}
.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pour éviter le "trou" entre menu et sous-menu */
.menu-item.has-submenu:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px; /* zone tampon */
  background: transparent;
}

/* Pour éviter le "trou" entre menu et sous-menu */
.menu-item.has-submenu .submenu:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px; /* zone tampon */
  background: transparent;
}

.caret {
  font-size: 12px;
  transition: transform 0.3s ease;
}
.menu-item-space {
  margin-left: 50px;
}

/* --- Sous-menus desktop --- */
.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 200;
}
.sub-menu .sub-menu {
  left: 100%;
  top: 0;
}

/* Hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .has-submenu:hover > .sub-menu {
    display: block;
  }
}

/* --- Mobile --- */
@media (max-width: 900px) {
  .menu-item{
    margin-right: auto;
  }

  .menu-toggle {
    display: inline-block;
  }
  .nav-wrapper {
    display: none;
  }
  .nav-wrapper.active {
    display: block;
  }

  .main-nav {
    flex-direction: column;
    gap: 0;
  }

  .sub-menu {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
  }
  .menu-item-space {
    margin-left: 0px;
  }

  .menu-item.open > .sub-menu {
    display: block;
    animation: fadeIn 0.25s ease;
  }

  .sub-menu .menu-item a {
    padding-left: 24px;
  }
  .sub-menu .sub-menu {
    left: 10%;
    top: 0;
  }

  .sub-menu .sub-menu .menu-item a {
    padding-left: 40px;
  }

  .menu-item.open > a > .caret {
    transform: rotate(180deg);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-3px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* WORDPRESS PART */
/* Cacher totalement la bannière Complianz (plugin wordpress)*/
#cmplz-manage-consent .cmplz-manage-consent {
  display: none !important;
  visibility: hidden !important;
}

.cmplz-cookiebanner {
  display: none !important;
  visibility: hidden !important;
}
