/* ═══════════════════════════════════════════════════════════════════
   Pages annexes du portfolio — tableau de synthèse E5, mentions légales.
   Mêmes variables et même fond que `index.html`, en version réduite :
   ces pages n'ont ni intro, ni révélation au défilement, ni modales.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:      #05050A;
  --line:    rgba(255,255,255,.09);
  --line2:   rgba(255,255,255,.17);

  --vio:     #8B6CFF;
  --vio-hi:  #B9A5FF;
  --vio-dim: rgba(139,108,255,.13);
  --vio-b:   rgba(139,108,255,.36);

  --t1: #F4F4F7;
  --t2: #A5A5B6;
  --t3: #82829A;

  --font-d: 'Space Grotesk', system-ui, sans-serif;
  --font:   'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    all .25s var(--ease);

  --r: 12px; --r-lg: 18px; --r-pill: 9999px;
  --wrap: 1180px;

  /* Fond plein des cellules figées du tableau : il doit masquer ce qui
     défile dessous, donc pas de transparence ici. */
  --solid: #0A0A12;
}

/* Le « y » de Space Grotesk porte un pied horizontal qui se glisse sous la
   lettre précédente. On emprunte ce seul caractère à DM Sans — même plage de
   graisse que `fonts/fonts.css`, sinon la substitution est ignorée. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/DMSans-VariableFont_opsz_wght.ttf') format('truetype');
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0079;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--t1);
       background: var(--bg); -webkit-font-smoothing: antialiased; text-wrap: pretty;
       min-height: 100svh; display: flex; flex-direction: column; }

/* Le dégradé du site, mais voilé d'emblée : ces pages sont du texte de
   haut en bas, le violet plein y serait illisible. */
#bg    { position: fixed; inset: 0; z-index: -3; pointer-events: none;
         background: radial-gradient(125% 125% at 50% 10%, #000 40%, #63e 100%); }
#veil  { position: fixed; inset: 0; z-index: -2; pointer-events: none;
         background: radial-gradient(120% 90% at 50% 0%, rgba(5,5,10,.62), rgba(4,4,8,.95) 70%); }
#grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
         background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }

::selection { background: rgba(139,108,255,.35); color: #fff; }

a { color: var(--vio-hi); text-decoration-color: var(--vio-b); text-underline-offset: 3px; }
a:hover { color: #D6CBFF; }

:focus-visible { outline: 2px solid var(--vio-hi); outline-offset: 3px; border-radius: 4px; }

/* Lu par les lecteurs d'écran, invisible à l'écran (légende de tableau). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── Barre du haut ──────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
          background: rgba(5,5,10,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
             display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tb-logo { font-family: var(--font-d); font-size: 17px; font-weight: 700; letter-spacing: -.02em;
           color: var(--t1); text-decoration: none; }
.tb-logo span { color: var(--vio-hi); }
.tb-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
           color: var(--t2); text-decoration: none; padding: 9px 16px; border-radius: var(--r-pill);
           border: 1px solid var(--line); transition: var(--t); }
.tb-back:hover { color: var(--t1); border-color: var(--line2); background: rgba(255,255,255,.04); }

/* ── Ossature de page ───────────────────────────────────────────── */
main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 96px; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .16em;
           text-transform: uppercase; color: var(--vio-hi); margin-bottom: 14px; }
h1 { font-family: var(--font-d); font-size: clamp(30px, 5vw, 46px); font-weight: 700;
     line-height: 1.1; letter-spacing: -.035em; }
.subtitle { color: var(--t2); font-size: 17px; margin-top: 12px; max-width: 760px; }

/* ── Texte long (mentions légales) ──────────────────────────────── */
.prose { max-width: 760px; margin-top: 48px; }
.prose section + section { margin-top: 40px; }
.prose h2 { font-family: var(--font-d); font-size: 21px; font-weight: 700; letter-spacing: -.02em;
            color: var(--t1); margin-bottom: 12px;
            display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ''; width: 5px; height: 20px; border-radius: 3px; flex: none;
                    background: linear-gradient(180deg, var(--vio-hi), var(--vio)); }
.prose p { color: var(--t2); }
.prose p + p { margin-top: 12px; }
.prose ul { color: var(--t2); margin-top: 12px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 5px; height: 5px;
                    border-radius: 50%; background: var(--vio-b); }
.prose strong { color: var(--t1); font-weight: 600; }

/* Bloc encadré : coordonnées d'éditeur, d'hébergeur. */
.box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-top: 16px;
       background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); }
.box dl { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 10px 20px; }
.box dt { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); }
.box dd { color: var(--t2); }
.box dd strong { color: var(--t1); font-weight: 600; }
@media (max-width: 620px) {
  .box dl { grid-template-columns: 1fr; gap: 4px; }
  .box dd + dt { margin-top: 12px; }
}

/* ── Pied de page ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 24px; background: rgba(4,4,8,.6); }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center;
           justify-content: center; gap: 10px 22px; flex-wrap: wrap; }
.foot-in a { font-size: 14px; font-weight: 600; color: var(--t3); text-decoration: none; transition: var(--t); }
.foot-in a:hover { color: var(--vio-hi); }
.foot-sep { color: var(--line2); user-select: none; }

/* ═══════════════════════════════════════════════════════════════════
   TABLEAU DE SYNTHÈSE E5
   Une matrice : une réalisation par ligne, une compétence par colonne.
   Large par nature — elle défile horizontalement, la colonne des
   réalisations restant figée à gauche pour garder le repère.
   ═══════════════════════════════════════════════════════════════════ */
.ident { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
         background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); }
.ident dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 26px; }
.ident dt { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .14em;
            text-transform: uppercase; color: var(--t3); margin-bottom: 5px; }
.ident dd { font-size: 16px; color: var(--t1); font-weight: 600; }
.ident dd small { display: block; font-weight: 400; font-size: 14px; color: var(--t2); margin-top: 2px; }
.opt-off { color: var(--t3); font-weight: 400; text-decoration: line-through; }

.scroll-hint { margin-top: 32px; font-size: 13px; color: var(--t3); display: flex; align-items: center; gap: 8px; }
@media (min-width: 1400px) { .scroll-hint { display: none; } }

.e5-scroll { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg);
             background: var(--solid); overscroll-behavior-x: contain; }
/* `fixed` n'est pas un détail de confort : la colonne figée se cale sur un
   `left` en dur, donc les largeurs doivent être celles du `colgroup` et pas
   celles que l'algorithme automatique décide au dernier moment. */
.e5 { table-layout: fixed; border-collapse: separate; border-spacing: 0;
      min-width: 1242px; width: 100%; font-size: 14px; }
.e5 th, .e5 td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
                 vertical-align: top; text-align: left; }
.e5 th:last-child, .e5 td:last-child { border-right: none; }
.e5 tbody tr:last-child th, .e5 tbody tr:last-child td { border-bottom: none; }

/* En-têtes */
.e5 thead th { background: rgba(139,108,255,.09); color: var(--t1); font-weight: 700;
               font-family: var(--font-d); letter-spacing: -.01em; padding: 12px 14px; }
.e5 thead th small { display: block; font-family: var(--font); font-weight: 400;
                     font-size: 12px; color: var(--t3); margin-top: 4px; letter-spacing: 0; }
.e5-corner { position: sticky; left: 0; z-index: 4; background: #15122B; }
.e5-comp-group { text-align: center !important; font-size: 12px; letter-spacing: .12em;
                 text-transform: uppercase; color: var(--vio-hi) !important; }
.e5-comp { font-size: 13px; line-height: 1.28; }
.e5-items td { background: rgba(255,255,255,.022); padding: 10px 12px 12px; }
.e5-items ul { list-style: none; font-size: 11px; line-height: 1.35; color: var(--t3); }
.e5-items li { position: relative; padding-left: 9px; }
.e5-items li + li { margin-top: 5px; }
.e5-items li::before { content: ''; position: absolute; left: 0; top: .5em;
                       width: 3px; height: 3px; border-radius: 50%; background: var(--vio-b); }

/* Bandeau de groupe */
.e5-group th { background: rgba(139,108,255,.14); color: var(--vio-hi); font-family: var(--font-d);
               font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
               padding: 11px 14px; position: sticky; left: 0; }

/* Lignes de réalisation */
.e5-real { position: sticky; left: 0; z-index: 2; background: var(--solid);
           padding: 14px; font-weight: 400;
           border-right: 1px solid var(--line2) !important; }
.e5-real b { display: block; font-family: var(--font-d); font-size: 15px; font-weight: 700;
             color: var(--t1); letter-spacing: -.01em; line-height: 1.25; margin-bottom: 6px; }
.e5-real p { color: var(--t2); font-size: 13px; line-height: 1.5; }
.e5-real .docs { display: block; margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--t3); }
.e5-real .docs b { display: inline; font-family: var(--font); font-size: 12px; font-weight: 600;
                   color: var(--vio-hi); margin: 0; letter-spacing: 0; }
.e5-period { padding: 14px 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--t2); }
.e5-cell { padding: 14px 8px; text-align: center !important; }
.e5-row:hover .e5-real { background: #100F1E; }
.e5-row:hover .e5-cell, .e5-row:hover .e5-period { background: rgba(139,108,255,.05); }

.e5-check { display: inline-flex; align-items: center; justify-content: center;
            width: 24px; height: 24px; border-radius: 50%;
            background: var(--vio-dim); border: 1px solid var(--vio-b); color: var(--vio-hi); }
.e5-empty td { padding: 18px 14px; color: var(--t3); font-style: italic; }

@media (max-width: 720px) {
  .e5 { min-width: 1162px; }
  .e5 col.c-real { width: 240px; }
}

.e5-note { margin-top: 16px; font-size: 13px; color: var(--t3); }

@media (max-width: 720px) {
  .e5-corner, .e5-real { width: 260px; }
  .e5-period-head, .e5-period { left: 260px; }
}

/* Version imprimée — le jury lit souvent sur papier ou en PDF. */
@media print {
  #bg, #veil, #grain, .topbar, footer, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; display: block; }
  main { max-width: none; padding: 0; }
  h1, .prose h2, .ident dd, .e5-real b { color: #000; }
  .prose p, .prose li, .ident dd small, .e5-real p { color: #222; }
  .ident, .box { border: 1px solid #999; background: none; }
  .e5-scroll { overflow: visible; border: 1px solid #999; background: none; }
  .e5 { min-width: 0; font-size: 9pt; }
  .e5 th, .e5 td { border-color: #999; }
  .e5 thead th, .e5-corner, .e5-group th { background: #eee !important; color: #000 !important; position: static !important; }
  .e5-items td { background: none !important; }
  .e5-real, .e5-period { position: static !important; background: none !important; color: #222; }
  .e5-real { border-right: 1px solid #999 !important; }
  .e5-check { border-color: #000; color: #000; background: none; }
}
