/* =============================================
   RESET & BASE
   ============================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em,
img, ins, kbd, q, s, samp, small, strike, strong,
sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body {
  background: #0099ff none repeat scroll 0 0;
}

/* =============================================
   GLOBAL & STRUCTURE
   ============================================= */
.global {
  display: table;
  margin: 50px auto;
  background: #fff none repeat scroll 0 0;
  padding: 20px 50px 0;
  color: black;
  line-height: 1.4em;
  font: 15px/1.231 arial, helvetica, clean, sans-serif;
  border: 5px hidden #000;
  width: 1200px;
  border-radius: 10px;
}

.main {
  margin: 70px auto 0;
  text-align: center;
  padding-bottom: 5px;
}

.divchargement {
  margin: auto 0 auto auto;
  text-align: center;
  vertical-align: middle;
  padding-bottom: 5px;
}

.divchargement img {
  margin: auto;
}

/* =============================================
   HEADER & FOOTER
   ============================================= */
.header {
  position: relative; /* Contexte pour les éléments en absolu */
  margin-bottom: 30px;
  background-image: url('/images/bindernheim_meteo_logo.png');
  background-repeat: no-repeat;
  width: 1200px;
  height: 222px;
}

.footer {
  text-align: center;
  margin: 0;
  width: 1200px;
  height: 60px;
}
.footer table {
  margin: 0 auto;
  border: 0;
  text-align: center;
}
.footer th,
.footer td,
.footer tr {
  text-align: center;
  vertical-align: middle;
}

/* =============================================
   MENU DE NAVIGATION
   ============================================= */
#navigation {
  width: 1000px;
  position: absolute;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  list-style: none;
  text-align: center;
}

#navigation ul {
  padding: 0;
}

#navigation li {
  display: inline-block;
  margin: 0 1px; /* 10px à gauche et à droite */
  color: #fff;
  background: #c00;
  position: relative;
  vertical-align: middle;
}

#navigation li a {
  display: flex;              /* Passage en flex */
  align-items: center;        /* Centre verticalement */
  justify-content: center;    /* Centre horizontalement */
  height: 40px;               /* Hauteur fixe */
  padding: 0 30px;            /* Padding horizontal (le padding vertical est géré par la hauteur) */
  background: #c00;
  color: #fff;
  border: 1px solid #600;
  font: 1.1em "Trebuchet MS", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

#navigation li a:hover,
#navigation li a:focus,
#navigation li a:active {
  background: #900;
  text-decoration: underline;
}

/* ---------------------------------------------
   SOUS-MENU POUR "Graph"
   --------------------------------------------- */
#navigation li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  background: #c00;
  z-index: 1000;
  min-width: 200px;
}

#navigation li .submenu li {
  display: block;
  margin: 0;
}

#navigation li .submenu li a {
  display: block;
  padding: 4px 20px;
  background: #c00;
  color: #fff;
  border: 1px solid #600;
  font: 1.1em "Trebuchet MS", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  height: 40px;
  line-height: 40px;
  box-sizing: border-box;
}

#navigation li .submenu li a:hover,
#navigation li .submenu li a:focus,
#navigation li .submenu li a:active {
  background: #900;
  text-decoration: underline;
}

#navigation li:hover .submenu {
  display: block;
}

/* =============================================
   MENU GRAPHIQUES (si nécessaire)
   ============================================= */
#navigationgraph ul { }

#navigationgraph li {
  display: inline;
  margin-right: 2px;
  color: #fff;
  background: #c00;
}

#navigationgraph li a {
  padding: 4px 15px;
  background: #c00;
  color: #fff;
  border: 1px solid #600;
  font: 1.1em "Trebuchet MS", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

#navigationgraph li a:hover,
#navigation li a:focus,
#navigation li a:active {
  background: #900;
  text-decoration: underline;
}

/* =============================================
   WAIT FORMETER
   ============================================= */
.waitformeter {
  height: 20px;
  position: relative;
  background: #555;
  border-radius: 25px;
  padding: 10px;
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}

.waitformeter > span {
  display: block;
  height: 100%;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background-color: rgb(43, 194, 83);
  background-image: linear-gradient( center bottom, rgb(43, 194, 83) 37%, rgb(84, 240, 84) 69% );
  box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.3),
              inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* =============================================
   CSS DES GRAPHIQUES
   ============================================= */
.Auto_Scale_switch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.Auto_Scale_switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.Auto_Scale_slider {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 30px;
  transition: background-color 0.4s;
}

.Auto_Scale_slider:before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

.Auto_Scale_switch input:checked + .Auto_Scale_slider {
  background-color: #56d798;
}

.Auto_Scale_switch input:checked + .Auto_Scale_slider:before {
  transform: translateX(30px);
}
