/*
  radar.megga.io : le radar des failles, dans sa DA (celle de son panneau sur megga.io, bloc .rd de
  public/css/site.css) : orange signal #FF5A1F, encre #140800, Archivo variable très large, l'écran
  circulaire, ses anneaux, son balayage et ses échos.

  L'outil se lit sur une feuille blanche bordée d'encre : c'est une liste de veille, la lecture passe
  avant l'effet. L'orange ne sert jamais de couleur de texte sur le blanc (contraste trop faible) :
  seulement en fond, en marque et sur l'encre.

  Le bandeau MEGGA a sa propre feuille (ecosystem.css), identique aux autres sites.
*/

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-tight-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-tight-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-tight-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-tight-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-tight-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-tight-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --orange: #ff5a1f;
  --encre: #140800;
  --papier: #ffffff;
  --doux: #5c4a40;
  --filet: #e7dcd5;
  --teinte: #fff1ea;
  --gut: clamp(16px, 3.6vw, 48px);
  --max: 1360px;
  --police: 'Archivo', 'Arial', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--orange); color: var(--encre);
  font: 450 16px/1.5 var(--police); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--encre); color: var(--orange); }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px;
  background: var(--encre); color: var(--orange); font-weight: 700; text-decoration: none;
}
.skip:focus { left: 12px; }

/* ── La barre du haut ─────────────────────────────────────────────────────────────────────── */

.top {
  display: flex; align-items: center; gap: 14px;
  max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 20px var(--gut);
}
.top__brand { display: inline-flex; color: var(--encre); }
.top__logo { display: block; height: 18px; width: auto; }
.top__sep { width: 2px; height: 18px; background: var(--encre); }
.top__product { font-size: 15px; line-height: 20px; font-weight: 760; font-stretch: 112%; text-decoration: none; }
.top__lang { display: flex; gap: 4px; margin-left: auto; }
.top__lang-link {
  display: inline-block; min-width: 40px; padding: 6px 8px; border: 2px solid var(--encre);
  text-align: center; font-size: 13px; line-height: 16px; font-weight: 700; font-stretch: 110%; text-decoration: none;
}
.top__lang-link[aria-current='true'] { background: var(--encre); color: var(--orange); }
@media (hover: hover) { .top__lang-link:not([aria-current='true']):hover { background: var(--teinte); } }
@media (max-width: 420px) { .top__product { font-size: 13px; } .top__logo { height: 15px; } }

/* ── L'accueil : le mot, la promesse, l'écran ─────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: center;
  gap: clamp(28px, 5vw, 80px);
  max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) var(--gut) clamp(40px, 6vw, 88px);
}
.hero__title {
  margin: 0; font-size: clamp(96px, 17vw, 260px); line-height: 0.8; font-weight: 820; font-stretch: 125%;
  letter-spacing: -0.04em;
}
.hero__lede { margin: 28px 0 0; max-width: 24ch; font-size: clamp(23px, 2.5vw, 36px); line-height: 1.18; font-weight: 640; font-stretch: 108%; letter-spacing: -0.012em; text-wrap: balance; }
.hero__sub { margin: 18px 0 0; max-width: 40ch; font-size: 17px; line-height: 1.5; font-weight: 480; }
.statut { min-height: 26px; margin: 22px 0 0; font-size: 15px; line-height: 1.5; font-weight: 520; font-variant-numeric: tabular-nums; }
.statut__n { font-weight: 820; font-stretch: 125%; font-size: 1.25em; }
.statut__date { white-space: nowrap; }
.statut__alerte { display: inline-block; padding: 4px 10px; background: var(--encre); color: var(--orange); font-weight: 700; }

.scope { position: relative; justify-self: center; width: 100%; max-width: 520px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.scope svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope__ring { fill: none; stroke: var(--encre); stroke-width: 1.6; }
.scope__axis { stroke: var(--encre); stroke-width: 1.2; stroke-dasharray: 2 7; }
.scope__center { fill: var(--encre); }
.scope__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(20, 8, 0, 0) 0deg 300deg, rgba(20, 8, 0, 0.05) 318deg, rgba(20, 8, 0, 0.3) 358.6deg, rgba(20, 8, 0, 0.85) 359.3deg, rgba(20, 8, 0, 0) 360deg);
  animation: tour 6s linear infinite;
}
/* Un écho par faille : il s'allume quand le balayage passe sur lui (retard posé par radar.js). */
.echo { fill: var(--encre); opacity: 0.32; animation: ping 6s linear infinite; }
.echo--critique { opacity: 0.5; }
@keyframes tour { to { transform: rotate(360deg); } }
@keyframes ping { 0% { opacity: 1; } 45% { opacity: 0.3; } 100% { opacity: 0.3; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .scope { max-width: 360px; }
}
/* Au téléphone, l'écran laisse la place à l'outil : la question arrive sans long défilement. */
@media (max-width: 600px) {
  .hero { padding-bottom: 32px; }
  .scope { max-width: 248px; justify-self: start; }
}

/* ── L'outil : la feuille blanche bordée d'encre ──────────────────────────────────────────── */

.outil { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); scroll-margin-top: 12px; }
.outil__inner { background: var(--papier); border: 3px solid var(--encre); padding: clamp(20px, 4vw, 56px); }
.outil__q { margin: 0; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.05; font-weight: 780; font-stretch: 118%; letter-spacing: -0.02em; }

.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pastille {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--encre); border-radius: 0; background: var(--papier); color: var(--encre);
  font-size: 15px; line-height: 20px; font-weight: 620; font-stretch: 100%; cursor: pointer;
}
/* Coché ou non se voit sans la couleur : le petit carré se remplit. */
.pastille[aria-pressed]::before { content: ''; width: 10px; height: 10px; flex: none; border: 2px solid currentColor; }
.pastille[aria-pressed='true'] { background: var(--encre); color: var(--orange); }
.pastille[aria-pressed='true']::before { background: currentColor; }
.pastille--rare { display: none; }
.rares-ouverts .pastille--rare { display: inline-flex; }
.pastille--plus { border-style: dashed; font-weight: 760; font-stretch: 112%; }
.pastille--plus:empty { display: none; }
.pastille--tout { font-weight: 760; font-stretch: 112%; }
@media (hover: hover) { .pastille:not([aria-pressed='true']):hover { background: var(--teinte); } }
:focus-visible.pastille { outline-offset: 3px; }

.outil__prive { margin: 14px 0 0; font-size: 14px; line-height: 20px; color: var(--doux); }

.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-height: 44px; margin-top: clamp(28px, 4vw, 44px); }
.verdict__n { font-size: clamp(60px, 9vw, 124px); line-height: 0.85; font-weight: 820; font-stretch: 125%; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.verdict__n:empty { display: none; }
.verdict__v { font-size: clamp(19px, 2vw, 24px); line-height: 1.25; font-weight: 660; font-stretch: 104%; }
.verdict--alerte .verdict__n { box-shadow: inset 0 -0.16em 0 var(--orange); }
.verdict--ancien { display: inline-flex; padding: 12px 16px; background: var(--encre); color: var(--orange); }
.verdict--ancien .verdict__v { font-size: 18px; }
.outil__sous { min-height: 21px; margin: 10px 0 0; font-size: 14px; line-height: 21px; color: var(--doux); font-variant-numeric: tabular-nums; }

/* ── Une ligne par faille ─────────────────────────────────────────────────────────────────── */

.failles { margin: 20px 0 0; padding: 0; list-style: none; }
.faille {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: 'point ouvrir maj' '. detail detail';
  column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--filet);
}
.faille:last-child { border-bottom: 1px solid var(--filet); }
.faille__point { grid-area: point; width: 14px; height: 14px; margin-top: 4px; border: 2px solid var(--encre); background: var(--papier); }
.faille--critique .faille__point { background: var(--orange); }
.faille__ouvrir {
  grid-area: ouvrir; display: grid; gap: 2px; width: 100%; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer;
}
.faille__nom { font-size: 17px; line-height: 22px; font-weight: 680; font-stretch: 100%; overflow-wrap: anywhere; }
.faille__neuf { display: inline-block; padding: 1px 6px; background: var(--orange); font-style: normal; font-size: 12px; line-height: 16px; font-weight: 760; vertical-align: 2px; }
.faille__risque { font-size: 15px; line-height: 21px; color: #3a2a21; }
.faille__quand { font-size: 13px; line-height: 18px; color: var(--doux); font-variant-numeric: tabular-nums; }
.faille__ouvrir[aria-expanded='true'] .faille__nom { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) { .faille__ouvrir:hover .faille__nom { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.faille__maj {
  grid-area: maj; align-self: start; padding: 7px 10px; border: 2px solid var(--encre);
  font-size: 13px; line-height: 16px; font-weight: 760; font-stretch: 110%; text-decoration: none; white-space: nowrap;
}
@media (hover: hover) { .faille__maj:hover { background: var(--encre); color: var(--orange); } }
.faille__detail { grid-area: detail; margin-top: 12px; padding: 14px 16px; border-left: 4px solid var(--orange); background: var(--teinte); }
.faille__etapes { margin: 0; padding-left: 20px; font-size: 15px; line-height: 22px; font-weight: 520; }
.faille__etapes li + li { margin-top: 4px; }
.faille__signaux { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.signal { display: inline-block; padding: 3px 8px; border: 1.5px solid var(--encre); font-size: 13px; line-height: 18px; font-weight: 640; }
.signal--rancon { background: var(--encre); color: var(--orange); }
a.signal--bacs { text-decoration: underline; text-underline-offset: 3px; }
.faille__meta { margin: 10px 0 0; font-size: 13px; line-height: 19px; color: var(--doux); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .faille { grid-template-areas: 'point ouvrir ouvrir' '. maj maj' '. detail detail'; }
  .faille__maj { justify-self: start; margin-top: 10px; }
}

.suite {
  display: inline-block; margin-top: 18px; padding: 12px 18px; border: 2px solid var(--encre); background: var(--papier);
  font-weight: 720; font-stretch: 110%; cursor: pointer;
}
@media (hover: hover) { .suite:hover { background: var(--teinte); } }
.aide {
  display: table; margin-top: 24px; padding: 14px 20px; background: var(--encre); color: var(--orange);
  font-size: 16px; line-height: 20px; font-weight: 760; font-stretch: 112%; text-decoration: none;
}
@media (hover: hover) { .aide:hover { background: #3a1a08; } }
.outil__note { margin: 32px 0 0; padding-top: 14px; border-top: 3px solid var(--encre); font-size: 15px; line-height: 21px; font-weight: 640; }

.sources {
  max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 22px var(--gut) clamp(40px, 6vw, 72px);
  font-size: 13px; line-height: 19px; font-weight: 500;
}

/* ── La page 404, dans la même DA ─────────────────────────────────────────────────────────── */

.perdu { max-width: calc(860px + 2 * var(--gut)); margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gut) clamp(64px, 10vw, 140px); }
.perdu__code { margin: 0; font-size: clamp(96px, 18vw, 220px); line-height: 0.8; font-weight: 820; font-stretch: 125%; letter-spacing: -0.04em; }
.perdu__title { margin: 28px 0 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 760; font-stretch: 112%; }
.perdu__lede { margin: 14px 0 0; max-width: 44ch; font-size: 17px; line-height: 1.5; }

/* ── Réduire les animations ───────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .scope__sweep { animation: none; }
  .echo { animation: none; }
}
