body {
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #eef2f3, #dfe9f3);
    color: #333;
}

/* Titre principal */
h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Encadré d'informations */
.info-box {
    border: 1px solid #d0d0d0;
    padding: 18px;
    width: 320px;
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Cadre central */
.central-box {
    margin-top: 30px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.central-box h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #34495e;
}

/* Conteneur des boutons */
.button-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Boutons cubes modernes */
.cube-button {
    width: 220px;
    height: 130px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #d0d0d0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Effet hover moderne */
.cube-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    background: #f7f9fc;
}

        /* Conteneur principal */
        .members-container {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            justify-content: center;
        }

        /* Carte membre */
        .member-card {
            width: 300px;
            background: #ffffff;
            border-radius: 14px;
            border: 1px solid #d0d0d0;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transition: 0.25s ease;
        }

        .member-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        }

        .member-photo {
            width: 100%;
            aspect-ratio: 1 / 1;   /* Rend la photo parfaitement carrée */
            object-fit: cover;     /* Recadre proprement */
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.15);
        }

        .member-info p {
            margin: 6px 0;
            font-size: 0.95rem;
        }

        .member-info strong {
            color: #2c3e50;
        }

/* ----------------------------- */
/*            MENU               */
/* ----------------------------- */

.menu {
    margin: 20px auto 40px auto;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    font-weight: 600;
    color: #2c3e50;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.25s ease;
}

.menu a:hover {
    background: #f0f3f7;
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}

/* Responsive */
@media (max-width: 600px) {
    .menu {
        gap: 15px;
        padding: 15px;
    }

    .menu a {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}

/* Tableau */

.table-container {
    display: flex;
    justify-content: center; /* centre le tableau */
  }

  table {
    width: 90%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  thead {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
  }

  th, td {
    padding: 12px 16px;
    text-align: left;
  }

  th {
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
  }

  tbody tr:hover {
    background: #f9fafb;
  }

  tbody tr:last-child {
    border-bottom: none;
  }

  a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
  }

  a:hover {
    text-decoration: underline;
  }
  
/* ----------------------------- */
/*         RESPONSIVE            */
/* ----------------------------- */

/* Tablettes */
@media (max-width: 900px) {
    .cube-button {
        width: 45%;
        height: 120px;
    }
}

/* Mobiles */
@media (max-width: 600px) {
    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .info-box {
        width: 100%;
    }

    .cube-button {
        width: 100%;
        height: 110px;
    }

    .button-container {
        gap: 15px;
    }

    .member-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
      display: block;
      width: 100%;
    }

    thead {
      display: none; /* cache les titres */
    }

    tbody tr {
      margin-bottom: 15px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      padding: 10px;
    }

    td {
      display: flex;
      justify-content: space-between;
      padding: 8px 10px;
      border: none;
      border-bottom: 1px solid #eee;
    }

    td:last-child {
      border-bottom: none;
    }

    /* Labels */
    td::before {
      content: attr(data-label);
      font-weight: 600;
      color: #555;
    }
  }