/* 1antivirus.fr — « Bulletin d'analyse ». CSS statique, sans framework.
   Un seul élément mémorable : le bandeau de résultats (.bulletin). Tout le reste reste calme. */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/newsreader-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/newsreader-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/newsreader-latin-600-normal.woff2') format('woff2'); }

:root {
  --blouse: #F2F4F3;     /* fond */
  --paillasse: #FBFCFC;  /* surfaces */
  --ardoise: #1B2A33;    /* texte */
  --reactif: #0E7C86;    /* liens, jauges */
  --reactif-fonce: #0A5F67;
  --ambre: #D99A1E;      /* avertissements seulement */
  --ambre-pale: #FAF1DE;
  --tampon: #D9D4EC;     /* encadrés */
  --discret: #4B5B64;    /* texte secondaire (contraste AA sur blouse et paillasse) */
  --filet: rgba(27, 42, 51, .16);
  --graduation: rgba(27, 42, 51, .22);
  --piste: #E1E7E6;

  --titre: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --corps: 'Newsreader', Georgia, 'Times New Roman', serif;

  --gouttiere: clamp(1.1rem, 4vw, 2rem);
  --largeur: 1120px;
  --measure-article: 820px;
  --rayon: 4px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--blouse); color: var(--ardoise); font-family: var(--corps); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--titre); color: var(--ardoise); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--reactif-fonce); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ardoise); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--reactif); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
ul, ol { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--article { max-width: calc(var(--measure-article) + 2 * var(--gouttiere)); }
.saut { position: absolute; left: -999px; top: 0; background: var(--ardoise); color: #fff; padding: .6rem 1rem; z-index: 10; }
.saut:focus { left: 0; }

/* Wrappers d'images à ratio fixe (anti-distorsion) */
.img-hero { width: 100%; aspect-ratio: 16 / 9; max-height: min(75vh, 44vw); overflow: hidden; background: var(--piste); }
@media (max-width: 820px) { .img-hero { max-height: none; } }
.img-card, .img-body { aspect-ratio: 3 / 2; overflow: hidden; background: var(--piste); }
.img-hero img, .img-card img, .img-body img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* En-tête */
.entete { background: var(--paillasse); border-bottom: 1px solid var(--filet); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; padding-block: .5rem; }
.marque { display: inline-flex; align-items: center; gap: .55rem; color: var(--ardoise); text-decoration: none; }
.marque__tube { color: var(--reactif); flex: none; }
.marque__nom { font-family: var(--titre); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.marque__tld { color: var(--discret); font-weight: 500; }
.menu { display: flex; gap: .25rem 1.4rem; flex-wrap: wrap; }
.menu a { font-family: var(--titre); font-weight: 500; font-size: .95rem; color: var(--ardoise); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--reactif); }
.menu a[aria-current='page'] { border-bottom-color: var(--reactif); font-weight: 600; }

/* Hero bord à bord, titre dessous */
.hero__texte { padding-block: 2.2rem 1rem; }
.hero h1 { font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; max-width: 24ch; }
.chapeau { font-size: 1.28rem; line-height: 1.5; color: var(--discret); max-width: 46rem; margin: 1rem 0 0; }
.hero__credit { font-size: .85rem; color: var(--discret); margin: .6rem 0 0; }

/* Accroche d'accueil */
.accroche { padding-block: 1rem 1rem; }
.accroche p { font-size: 1.4rem; line-height: 1.5; max-width: 50rem; margin: 0; }

/* Titres de sections de page */
.conteneur > h2, .methode h2 { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.95rem); letter-spacing: -.015em; margin: 4rem 0 1rem; }

/* ===== Le bandeau de résultats (élément mémorable) ===== */
.bulletin { background: var(--paillasse); border: 1px solid var(--filet); border-left: 4px solid var(--reactif); border-radius: var(--rayon); margin: 2.2rem 0 1rem; overflow: hidden; }
.bulletin__tete { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; flex-wrap: wrap; padding: 1.15rem 1.6rem; border-bottom: 1px solid var(--filet); }
.bulletin__tete h2 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.bulletin__produit { margin: 0; font-style: italic; color: var(--discret); }
.bulletin__corps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--filet); }
.bulletin__groupe { background: var(--paillasse); padding: 1.2rem 1.6rem 1.1rem; display: flex; flex-direction: column; }
.bulletin__groupe:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bulletin__source { margin-bottom: .7rem; }
.bulletin__labo { font-family: var(--titre); font-size: .98rem; line-height: 1.35; margin: 0; }
.bulletin__labo strong { font-weight: 700; }
.bulletin__version { margin: .1rem 0 0; font-size: .92rem; color: var(--discret); font-style: italic; }
.bulletin__mesures { margin: 0 0 .9rem; }
.mesure { display: grid; grid-template-columns: 8.6rem 1fr; align-items: center; gap: .15rem 1rem; padding: .5rem 0; border-top: 1px solid var(--filet); }
.mesure:first-child { border-top: 0; }
.mesure dt { font-family: var(--titre); font-weight: 500; font-size: .92rem; color: var(--discret); }
.mesure dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .8rem; }
.mesure__valeur { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.01em; }
.mesure--jauge .mesure__valeur { order: 2; min-width: 5.4rem; text-align: right; }
.mesure__echelle { order: 3; flex-basis: 100%; font-size: .78rem; line-height: 1.2; color: var(--discret); font-family: var(--titre); }
.jauge { order: 1; position: relative; flex: 1 1 8rem; height: 10px; background: var(--piste); border-radius: 2px; overflow: hidden; }
.jauge__niveau { position: absolute; inset: 0 auto 0 0; width: calc(var(--part) * 100%); background: var(--reactif); border-radius: 2px; transform-origin: left center; }
/* graduation de l'éprouvette : une encoche par unité de l'échelle */
.jauge::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--pas) - 1.5px), var(--paillasse) calc(var(--pas) - 1.5px), var(--paillasse) var(--pas)); }
.bulletin__pied { margin: auto 0 0; display: flex; flex-direction: column; gap: .15rem; font-family: var(--titre); font-size: .85rem; color: var(--discret); }
.bulletin__resume { color: var(--ardoise); font-weight: 600; }
.bulletin__alerte { margin: 0; padding: .95rem 1.6rem; background: var(--ambre-pale); border-top: 1px solid var(--filet); border-left: 4px solid var(--ambre); font-size: .98rem; line-height: 1.45; }

/* Le seul mouvement non sollicité : les jauges se remplissent une fois à l'affichage */
@media (prefers-reduced-motion: no-preference) {
  .jauge__niveau { animation: remplir .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--rang) * 90ms); }
  @keyframes remplir { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Tableaux (bulletin du mois, prix, articles) */
.tableau-defilant { overflow-x: auto; }
table { font-size: 1rem; }
thead th { font-family: var(--titre); font-weight: 600; font-size: .9rem; text-align: left; padding: .65rem .9rem; border-bottom: 2px solid var(--ardoise); white-space: nowrap; }
tbody th, tbody td { padding: .6rem .9rem; border-bottom: 1px solid var(--filet); text-align: left; vertical-align: top; }
tbody th { font-family: var(--titre); font-weight: 600; font-size: .98rem; }
tbody th a { text-decoration-color: rgba(10, 95, 103, .4); }
.num { text-align: right; }
thead th.num { text-align: right; }
.tableau-bulletin { background: var(--paillasse); border-top: 2px solid var(--ardoise); }
.tableau-bulletin thead th { border-top: 0; }
.bulletin-mois__intro { margin-bottom: 1.1rem; color: var(--discret); }
.bulletin-mois__pied { font-size: .95rem; color: var(--discret); margin-top: .9rem; max-width: 50rem; }

/* Registre des éditeurs : liste en 2 colonnes, pas des cards */
.registre__intro { max-width: 46rem; }
.registre { list-style: none; padding: 0; margin: 1.2rem 0 0; columns: 2; column-gap: 3.5rem; }
.registre li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--filet); }
.registre a { font-family: var(--titre); font-weight: 600; font-size: 1.08rem; color: var(--ardoise); text-decoration: none; }
.registre a:hover { color: var(--reactif); text-decoration: underline; }
.registre__note { font-size: .95rem; font-style: italic; color: var(--discret); text-align: right; }

/* Cards */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.6rem; margin-top: 1.6rem; }
.carte { background: var(--paillasse); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
.carte__lien { display: block; height: 100%; color: inherit; text-decoration: none; }
.carte__corps { padding: 1rem 1.15rem 1.2rem; }
.carte__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; font-family: var(--titre); font-size: .82rem; margin: 0 0 .45rem; color: var(--discret); }
.carte__categorie { color: var(--reactif-fonce); font-weight: 600; }
.carte__date { color: var(--discret); font-weight: 400; }
.carte__titre { font-weight: 700; font-size: 1.2rem; line-height: 1.22; letter-spacing: -.01em; }
.carte__lien:hover .carte__titre { text-decoration: underline; text-decoration-color: var(--reactif); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.carte__resume { margin: .6rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--discret); }
.carte--compacte .carte__lien { display: grid; grid-template-columns: 9.5rem 1fr; align-items: stretch; }
.carte--compacte .img-card { aspect-ratio: auto; height: 100%; min-height: 6.5rem; }
.carte--compacte .carte__corps { padding: .8rem 1rem; align-self: center; }
.carte--compacte .carte__titre { font-size: 1.05rem; }

/* Derniers contenus : deux grandes cards, puis quatre compactes */
.derniers__grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
.derniers__suite { margin-top: 1.5rem; font-family: var(--titre); font-weight: 600; }

/* Filtre du blog */
.page-liste h1, .page-texte h1 { font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.025em; padding-top: 2.4rem; }
.filtre { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.filtre a { font-family: var(--titre); font-weight: 500; font-size: .92rem; color: var(--ardoise); text-decoration: none; border: 1px solid var(--graduation); background: var(--paillasse); border-radius: var(--rayon); padding: .4rem .85rem; }
.filtre a:hover { border-color: var(--reactif); }
.filtre a[aria-current='page'] { background: var(--ardoise); border-color: var(--ardoise); color: var(--paillasse); }
.filtre__desc { margin: 1rem 0 0; color: var(--discret); font-style: italic; }
.vide { margin-top: 2rem; color: var(--discret); }

/* Méthode (encadré Tampon) */
.methode { background: var(--tampon); border-radius: var(--rayon); padding: 2rem var(--gouttiere); margin-block: 4rem; }
.methode h2 { margin-top: 0; }
.methode p { max-width: 46rem; margin: 0; }
.methode a { color: var(--ardoise); text-decoration-color: var(--reactif); text-decoration-thickness: 2px; }

/* Article */
.article__meta { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; font-family: var(--titre); font-size: .88rem; color: var(--discret); padding-top: 2rem; margin: 0; }
.article__meta a { color: var(--reactif-fonce); font-weight: 600; }
.article-corps { font-size: 1.1875rem; line-height: 1.65; padding-top: 1.2rem; }
.article-corps h2 { font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em; margin: 2.6rem 0 .8rem; }
.article-corps h3 { font-weight: 600; font-size: 1.25rem; margin: 2rem 0 .6rem; }
.article-corps li { margin-bottom: .45em; }
.article-corps li::marker { color: var(--reactif); }
.article-corps blockquote { margin: 1.8rem 0; padding: 1.1rem 1.5rem; background: var(--tampon); border-radius: var(--rayon); font-style: italic; }
.article-corps blockquote p:last-child { margin-bottom: 0; }
.article-corps table { margin: 1.6rem 0; }
.article-corps .img-body { margin: 2rem 0; border-radius: var(--rayon); }

.prix, .faq, .lies { margin-top: 3.2rem; }
.prix h2, .faq h2, .lies h2 { font-weight: 700; font-size: 1.6rem; letter-spacing: -.015em; margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--filet); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { font-family: var(--titre); font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.faq summary::marker { color: var(--reactif); }
.faq details p { margin: .7rem 0 0; }
.lies ul { padding-left: 1.2rem; }
.lies li { margin-bottom: .45em; }
.lies li::marker { color: var(--reactif); }
.conteneur--article:last-of-type { padding-bottom: 3rem; }

/* Formulaire */
.formulaire { display: grid; gap: 1.2rem; margin-top: 2rem; max-width: 36rem; }
.champ { display: grid; gap: .35rem; }
.champ label { font-family: var(--titre); font-weight: 600; font-size: .95rem; }
.champ input, .champ select, .champ textarea { font: inherit; font-size: 1rem; padding: .65rem .8rem; border: 1px solid #7d8d95; background: var(--paillasse); color: var(--ardoise); border-radius: var(--rayon); width: 100%; }
.champ__aide { font-size: .88rem; color: var(--discret); }
.champ--case { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.champ--case input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; }
.champ--case label { font-family: var(--corps); font-weight: 400; font-size: .98rem; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bouton { font-family: var(--titre); font-weight: 600; font-size: 1rem; background: var(--ardoise); color: #fff; border: 0; border-radius: var(--rayon); padding: .8rem 1.5rem; cursor: pointer; }
.bouton:hover { background: var(--reactif-fonce); }
.bouton:disabled { opacity: .6; cursor: wait; }
.formulaire__retour { margin: 0; padding: .8rem 1rem; border-radius: var(--rayon); font-size: .98rem; }
.formulaire__retour--succes { background: #DCEFE8; }
.formulaire__retour--erreur { background: var(--ambre-pale); border-left: 4px solid var(--ambre); }
.formulaire__retour--info { background: var(--tampon); }
.page-texte .chapeau { margin-bottom: 0; }

/* Pied de page */
.pied { background: var(--ardoise); color: #D5DEE1; margin-top: 4rem; padding-top: 3rem; }
.pied a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.pied a:hover { color: #fff; text-decoration-color: #fff; }
.pied__grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem 3rem; }
.pied__nom { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.pied__titre { font-family: var(--titre); font-weight: 600; color: #fff; margin-bottom: .6rem; }
.pied__texte { font-size: .98rem; max-width: 30rem; margin: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .4rem; }
.pied__bas { margin-top: 2.5rem; padding-block: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; }
.pied__bas p { margin: 0; }

/* Mobile */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .bulletin__corps { grid-template-columns: 1fr; }
  .bulletin__groupe, .bulletin__tete, .bulletin__alerte { padding-inline: 1.1rem; }
  .mesure { grid-template-columns: 1fr; gap: .25rem; }
  .registre { columns: 1; }
  .derniers__grille { grid-template-columns: 1fr; }
  .carte--compacte .carte__lien { grid-template-columns: 7.5rem 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .article-corps { font-size: 1.125rem; }
  .menu { gap: .1rem 1.1rem; }
  .entete__ligne { padding-block: .8rem; }
}

/* Icônes Font Awesome des intertitres (REGLE 4bis) : discrètes, couleur Réactif */
.article-corps h2 > .fa-solid, .conteneur > h2 > .fa-solid { color: var(--reactif, #0E7C86); font-size: .72em; margin-right: .45em; vertical-align: .12em; }

/* Tableaux larges : défilement horizontal dans le tableau, jamais dans la page (mobile) */
@media (max-width: 720px) {
  .article-corps table, main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Sommaire des H2 (avant le premier H2, hors colonne latérale) */
.toc, .article-sommaire { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); padding: 1rem 0; margin: 1.4rem 0 .4rem; font-family: var(--titre); }
.article-sommaire .toc__titre { font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--discret); margin: 0 0 .5rem; }
.article-sommaire .toc__liste { margin: 0; padding-left: 1.3rem; font-size: 1rem; line-height: 1.5; }
.article-sommaire .toc__liste li { margin-bottom: .25rem; }
.article-sommaire .toc__liste li::marker { color: var(--reactif); }
.article-sommaire a { color: var(--reactif-fonce); text-decoration: none; }
.article-sommaire a:hover { text-decoration: underline; }
