
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(to top, #000000, #17216b);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}


/* TITRE */

#titreaccueil {
    text-align: center;
    margin-top: clamp(20px, 15vh, 5px);
    margin-bottom: clamp(24px, 4vw, 60px);
    color: white;
    font-size: clamp(18px, 2.5vw, 28px);
    letter-spacing: 2px;
}

/* MENU */

.menu-barre {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    display: flex;
    flex-wrap: wrap;            /* passe à la ligne sur petit écran */
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 1.5vw, 15px);
    width: 90%;
    margin: 0 auto clamp(32px, 6vw, 10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.menu-barre a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: clamp(8px, 1.2vw, 12px) clamp(8px, 1.2vw, 15px);
    border-radius: 8px;
    flex: 1;
    min-width: 100px;           /* évite que les liens deviennent trop étroits */
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: clamp(13px, 1.2vw, 16px);
}

/* Soulignement menu */

.menu-barre a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 5px;
    left: 50%;
    background: white;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.menu-barre a:hover::after {
    width: 60%;
}

/* Effet élévation */

.menu-barre a:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* FOOTER */

footer {
    margin-top: auto;
    padding: clamp(14px, 2vw, 25px);
    font-size: clamp(11px, 1vw, 13px);
    text-align: center;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================
   SEARCH
========================= */


/* ============================================================
   Grille d'aide à l'évaluation – E5
   Fond transparent pour intégration sur n'importe quelle page
   ============================================================ */

/* ── Conteneur pour espacement ── */
.grille-wrapper {
  padding: 20px;
}

/* ── Titre ── */
.grille-titre {
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* ── Tableau principal ── */
.grille-table {
  width: 100%;
  max-width: 1200px;     /* limite la largeur */
  margin: 0 auto;        /* centre le tableau */
  border-collapse: collapse;
  background: transparent;
  table-layout: fixed;
  color: #cbd5e1;
}

/* ── Toutes les cellules ── */
.grille-table th,
.grille-table td {
  border: 1px solid #4a4a6a;
  vertical-align: top;
  padding: 6px 8px;
  background: transparent;
  color: #1a1a2e;
  color: #cbd5e1;
}

/* ── En-tête ── */
.grille-table thead th {
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  background: rgba(30, 30, 80, 0.12);
  color: #1a1a2e;
  vertical-align: middle;
  color: #cbd5e1;
}

/* Colonne compétences (1re colonne header) */
.grille-table thead th:first-child {
  text-align: left;
  width: 22%;
  color: #cbd5e1;
}

/* Colonnes niveaux (2 à 6) */
.grille-table thead th.niveau {
  width: 7%;
}

/* Colonne indicateurs (dernière) */
.grille-table thead th.indicateurs {
  width: 29%;
  text-align: left;
}

/* ── Lignes de données ── */
.grille-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.18);
}

.grille-table tbody tr:nth-child(even) td {
  background: rgba(200, 210, 240, 0.15);
}

/* ── Titre de compétence (1re colonne) ── */
.competence-titre {
  font-weight: bold;
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.competence-sous-items {
  font-weight: normal;
  font-size: 10px;
  color: #2a2a4a;
  line-height: 1.5;
  color: #cbd5e1;
}

.competence-sous-items li {
  list-style: none;
  padding-left: 10px;
  position: relative;
}

.competence-sous-items li::before {
  content: "–";
  position: absolute;
  left: 0;
}

/* ── Cellule case à cocher ── */
.td-check {
  text-align: center;
  vertical-align: middle;
  font-size: 16px;
  color: #3a3a6a;
}

/* ── Indicateurs de performance ── */
.td-indicateurs {
  font-style: italic;
  font-size: 10px;
  color: #2a2a4a;
  line-height: 1.6;
}

.td-indicateurs p {
  margin-bottom: 3px;
}

/* ── Ligne capacité (grisée) ── */
.row-capacite td {
  background: rgba(100, 100, 160, 0.12) !important;
}

.row-capacite .competence-titre {
  font-size: 10.5px;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .grille-table {
    font-size: 9px;
    table-layout: auto;
  }

  .grille-table thead th,
  .grille-table tbody td {
    padding: 4px 5px;
  }
}