/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  display: flex;
  flex-direction: column;
}

/* HEADER et FOOTER */
header,
footer {
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 1600px; /* Limite */
}

/* CONTAINER PRINCIPAL */
.container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1600px; /* Limite */
}

/* ASIDES */
.left,
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 10px;
  align-items: center;
  gap: 10px;
}

/* CENTRE */
.center {
  flex: 2;
  display: flex;
  flex-direction: row;
  padding: 0px 2px;
  gap: 2px;
}

/* CENTRE-GAUCHE et CENTRE-DROIT */
.center-left,
.center-right {
  display: flex;
  flex-direction: column; /* Alignement vertical des boutons */
  gap: 8px; /* Espace entre les boutons */
  flex: 1;
  padding: 20px 0px;
}

/* RESPONSIVE À PARTIR DE 900px */
@media (max-width: 900px) {
  /* les horloges ne sont plus affichées */
  .horloges-container {
    display: none;
  }

  .right {
    display: none;
  }

  .left {
    display: none;
  }

  /* Le footer se met sur deux lignes */
  .footer-texte .ligne1::after {
    content: "\A"; /* saut de ligne */
    white-space: pre; /* permet d'afficher le \A */
  }

  .union {
    display: none;
  }
}

/* RESPONSIVE À PARTIR DE 800px */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
  }

  .center {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  /* ORDONNANCER LES ÉLÉMENTS DANS LE MAIN */

  .center-left {
    order: 2;
    width: 100%;
  }
  .center-right {
    order: 3;
    width: 100%;
  }

  .logo {
    width: 88vw; /* Le logo prend 88% de la largeur de l'écran */
    height: auto;
  }
}
