/* Pilotage Objectif Pro — identité reprise de stage.objectifpro.eu.
   Les jetons ci-dessous sont ceux de la landing, à l'identique : si la charte
   évolue là-bas, il suffit de les remplacer ici. */

:root {
  --blanc: #fff;
  --bleu: #1F4E79;
  --bleu-clair: #2B6396;
  --ciel: #8FC7FF;
  --nuit: #0C1E30;
  --nuit2: #102A42;
  --verre: rgba(255, 255, 255, 0.06);
  --verre-haut: rgba(255, 255, 255, 0.10);
  --bord: rgba(255, 255, 255, 0.14);
  --txt: rgba(255, 255, 255, 0.86);
  --txt2: rgba(255, 255, 255, 0.66);
  --txt3: rgba(255, 255, 255, 0.40);
  --r: 22px;
  --r-petit: 14px;
  --sans: "Lato", system-ui, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;

  /* Signaux propres au pilotage, absents de la landing. */
  --vert: #6FD3A3;
  --ambre: #F0B95A;
  --rouge: #F08585;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Halo bleu discret en haut de page, comme sur la landing. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 420px;
  background: radial-gradient(ellipse 900px 340px at 50% -10%, rgba(143,199,255,.13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Coquille ---------- */

header.coquille {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 30, 48, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bord);
}

.coquille-interieur {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.marque { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.marque img { height: 22px; width: auto; display: block; }
.marque span {
  font-size: 13px;
  color: var(--txt3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--bord);
}

nav.sections { display: flex; gap: 2px; flex: 1; }

nav.sections a {
  color: var(--txt2);
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
nav.sections a:hover { background: var(--verre); color: var(--blanc); }
nav.sections a.actif {
  background: var(--verre-haut);
  color: var(--blanc);
  box-shadow: inset 0 0 0 1px var(--bord);
}
nav.sections a.bientot { color: var(--txt3); cursor: default; }
nav.sections a.bientot:hover { background: none; color: var(--txt3); }

.etat-donnees {
  font-size: 13px;
  color: var(--txt3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 28px 90px;
}

/* ---------- Titres ---------- */

h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--blanc);
}

h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin: 44px 0 14px;
  color: var(--blanc);
}

.convention {
  font-size: 14px;
  color: var(--txt2);
  background: var(--verre);
  border: 1px solid var(--bord);
  border-left: 2px solid var(--ciel);
  padding: 14px 18px;
  border-radius: 0 var(--r-petit) var(--r-petit) 0;
  margin: 0 0 28px;
  max-width: 880px;
}
.convention strong { color: var(--txt); font-weight: 700; }

/* ---------- Cartes ---------- */

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 14px;
}

.carte {
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--r);
  padding: 20px 22px;
}
.carte .libelle {
  font-size: 11px;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 700;
}
.carte .chiffre {
  font-size: 32px;
  font-weight: 900;
  margin-top: 10px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--blanc);
  line-height: 1.1;
}
.carte .note { font-size: 12px; color: var(--txt3); margin-top: 4px; }

/* ---------- Tableau ---------- */

.cadre-table {
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--r);
  overflow: hidden;
}
.cadre-table > table { display: table; }
@media (max-width: 1100px) {
  .cadre-table { overflow-x: auto; }
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th {
  text-align: right;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--bord);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}
th:first-child, th:nth-child(2) { text-align: left; }

td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--txt);
}
td:first-child, td:nth-child(2) { text-align: left; }
td:first-child { color: var(--txt2); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

.zero { color: var(--txt3); }
.manquant { color: var(--ambre); }

.pastille {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(143, 199, 255, 0.10);
  border: 1px solid rgba(143, 199, 255, 0.22);
  color: var(--ciel);
}

/* ---------- États ---------- */

.message {
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--r);
  padding: 24px;
  color: var(--txt2);
  margin-top: 20px;
}
.message.erreur { border-color: rgba(240, 133, 133, 0.45); color: var(--rouge); }

footer.pied {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 48px;
  font-size: 12px;
  color: var(--txt3);
}
