/* === Général (mobile first) === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  font-size: 16px;
}

.logo {
  display: block;
  margin: auto;
  width: 100%;
  max-width: 300px;
}

/* === Menu (mobile) === */
.navbar {
  background-color: #333;
  padding: 10px;
}

.menu-icon {
  display: block;
  color: white;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
  text-align: right;
}

.menu-links {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-out;
}

.menu-links a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-bottom: 1px solid #555;
}

.menu-links a:hover {
  background-color: #04AA6D;
}

/* Menu ouvert */
.navbar.open .menu-links {
  max-height: 500px;
}

.navbar.open .menu-icon {
  transform: rotate(90deg); /* simple effet visuel */
}

/* === Contenu principal === */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 10px;
    /* text-align: center; */
}

.table-wrapper {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    margin: 20px 0;
    min-width: 300px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

thead {
    background-color: #eee;
}

/* Par défaut (mobile), on cache les colonnes gauche et droite */
.left, .right {
    display: none;
}

.center {
    padding: 15px;
    background-color: #fff;
}
/* Par défaut (mobile), on cache certaines colonnes */
.hide-mobile {
  display: none;
}
/* === Pied de page === */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
}

.footer a {
  color: #04AA6D;
  text-decoration: none;
  margin: 0 6px;
}

.footer a:hover {
  text-decoration: underline;
}

/* === Écrans larges (desktop) === */
@media screen and (min-width: 768px) {

  .logo { max-width: 500px; }

  .menu-icon { display: none; }

  .menu-links {
    display: flex;
    max-height: none;
    justify-content: center;
  }

  .menu-links a {
    border: none;
    border-right: 1px solid #555;
    padding: 10px 14px;
  }

  .menu-links a:last-child {
    border-right: none;
  }

  .container {
    /* max-width: 1024px; */
    padding: 16px;
    flex-direction: row;
    font-size: 16px;
    margin: auto;
    }

  .left, .right {
        display: block;
        padding: 15px;
        background-color: #f0f0f0;
    }

  .left { width: 20%; }
  .center { width: 60%; }
  .right { width: 20%; }
  .hide-mobile { display: table-cell; }
  .footer { font-size: 15px; }
}
