@import url('fonts/fonts.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  --bg: #0b0b11;
  --line: rgba(255, 255, 255, 0.11);
  --txt: #f4f5f7;
  --muted: #9ca1ab;
  --accent: #ffd21e;
}
::selection { background: rgba(255, 210, 30, 0.25); }

body {
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- barre du haut ---- */
.l-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 17, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.l-nav .in {
  max-width: 880px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.l-nav img { height: 24px; width: auto; display: block; }
.l-nav a.retour {
  font-size: 13.5px;
  font-weight: 500;
  color: #b9bdc4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 4px;
  transition: color 0.25s ease;
}
.l-nav a.retour:hover { color: var(--accent); }

/* ---- contenu ---- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 70px 24px 90px;
  position: relative;
}
main::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  /* jamais plus large que la page, sinon débordement horizontal sur mobile */
  width: min(900px, 100%);
  height: 460px;
  background: radial-gradient(closest-side, rgba(255, 205, 60, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 30, 0.3);
  background: linear-gradient(180deg, rgba(255, 210, 30, 0.14), rgba(255, 210, 30, 0.05));
  font-size: 11.5px;
  font-weight: 500;
  color: #ffe07a;
}
h1 {
  margin: 20px 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 30%, #a8adb5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.maj { font-size: 13px; color: var(--muted); margin-bottom: 44px; }

h2 {
  margin: 46px 0 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 600; color: #e8eaee; }
p, li { font-size: 14.5px; line-height: 1.8; color: #b9bdc4; }
p + p { margin-top: 12px; }
ul, ol { margin: 12px 0 12px 22px; }
li { margin-bottom: 8px; }
strong { color: #f2f3f5; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  margin: 18px 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* encadré signalant une information que l'éditeur doit renseigner */
.todo {
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255, 120, 60, 0.07);
  border: 1px dashed rgba(255, 150, 60, 0.5);
  font-size: 13.5px;
  line-height: 1.7;
  color: #ffc9a3;
}
.todo b { color: #ffd9bd; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #e8eaee; font-weight: 600; background: rgba(255,255,255,0.03); }
td { color: #b9bdc4; }

footer {
  border-top: 1px solid var(--line);
  padding: 34px 24px 60px;
  text-align: center;
}
footer p { font-size: 12.5px; color: #6d717a; }
footer a { margin: 0 10px; font-size: 13px; }

@media (max-width: 620px) {
  main { padding: 44px 20px 70px; }
  table, thead, tbody, th, td, tr { display: block; }
  th { display: none; }
  td { border: none; padding: 4px 0; }
  /* en colonne, la 1re cellule sert d'intitulé : on masque l'attribut
     dupliqué et on met la cellule elle-même en évidence */
  td:first-child { color: #e8eaee; font-weight: 600; margin-top: 10px; }
  td[data-l]::before { content: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
