/* ═══════════════════════════════════════════════════════════════════════════
   components.css — Composants réutilisables de l'interface.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══ Boutons ═════════════════════════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-ghost {
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    border-radius: 40px;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
    /* Cible tactile confortable : 44 px minimum (recommandation Apple/WCAG). */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    padding: 14px 30px;
    font-size: 1rem;
    background: var(--orange);
    color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(196, 88, 26, 0.35);
    max-width: 100%;
    letter-spacing: 0.01em;
}
.btn-primary:hover:not(:disabled) { background: var(--orange-h); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
    padding: 11px 22px;
    font-size: 0.84rem;
    background: transparent;
    color: var(--orange);
    border: 1.5px solid var(--orange);
    font-weight: 600;
}
.btn-secondary:hover { background: var(--orange-bg); }

.btn-ghost {
    padding: 10px 18px;
    font-size: 0.8rem;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    font-weight: 600;
}
.btn-ghost:hover { color: var(--orange); border-color: var(--orange); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

/* ══ Écran de consentement ═══════════════════════════════════════════════ */
#consent-screen { max-width: 700px; margin: 24px auto 0; text-align: center; }

.consent-icon { font-size: 2.8rem; margin-bottom: 14px; line-height: 1; }

#consent-screen h2 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--noir);
    margin-bottom: 14px;
}

.consent-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
    background: var(--cream);
    border-radius: var(--r-sm);
    padding: 18px;
    border: 1px solid var(--border);
}
.consent-text strong { color: var(--noir); }
.consent-text ul { margin: 12px 0 12px 18px; }
.consent-text li { margin-bottom: 7px; }

.consent-promise {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--success-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 16px;
    margin-bottom: 22px;
    text-align: left;
}
.consent-promise .icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.2; }
.consent-promise p { font-size: 0.85rem; line-height: 1.6; }
.consent-promise strong { color: var(--success); }

.consent-fineprint { font-size: 0.72rem; color: var(--muted); margin-top: 14px; }

/* Aperçu « ce que nous savons déjà » — la démonstration avant l'argumentaire. */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
@media (min-width: 560px) {
    .preview-grid { grid-template-columns: repeat(3, 1fr); }
}

.preview-item {
    background: var(--cream);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 14px 12px;
    text-align: center;
}
.preview-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
}
.preview-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--orange);
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.preview-unit { font-size: 0.72rem; font-weight: 400; color: var(--muted); }

.preview-ua {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.consent-nojs {
    background: var(--warn-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 16px;
    text-align: left;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* ══ Chargement ══════════════════════════════════════════════════════════ */
.loader {
    width: 46px; height: 46px;
    border: 4px solid var(--cream-2);
    border-bottom-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    /* Un disque qui tourne indéfiniment est exactement ce que la préférence
       « animations réduites » cherche à éviter : on affiche une barre fixe. */
    .loader {
        animation: none;
        border-color: var(--cream-2);
        border-bottom-color: var(--orange);
    }
}

.loading-text { font-size: 0.92rem; color: var(--muted); font-weight: 500; text-align: center; }

.loading-progress {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: var(--cream-2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}
.loading-progress > div {
    height: 100%;
    width: 0;
    background: var(--orange);
    border-radius: 4px;
    transition: width 0.35s ease;
}

/* ══ Badge appareil ══════════════════════════════════════════════════════ */
.device-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--noir);
    background: var(--white);
    border: 1.5px solid var(--orange);
    padding: 10px 18px;
    border-radius: 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(196, 88, 26, 0.12);
    line-height: 1.4;
}
.device-badge .device-icon { font-size: 1.2rem; }
.device-badge .device-sep { color: var(--cream-3); }
.device-badge .device-soft { color: var(--muted); font-weight: 500; }

/* ══ Trois chiffres clés en tête de rapport ══════════════════════════════ */
.key-numbers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
@media (min-width: 560px) {
    .key-numbers { grid-template-columns: repeat(3, 1fr); }
}

.key-number {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--orange);
    border-radius: var(--r-sm);
    padding: 16px 16px;
}
.key-number-value {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
    display: block;
    margin-bottom: 6px;
}
.key-number-label { font-size: 0.83rem; font-weight: 700; color: var(--noir); display: block; margin-bottom: 4px; }
.key-number-note  { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

/* ══ Chapeau de section ══════════════════════════════════════════════════ */
.section-lede {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--muted);
    margin: -4px 0 14px;
    max-width: 74ch;
}
.section-lede strong, .section-lede em { color: var(--text); }
.section-lede em { font-style: normal; font-weight: 600; }

.hint-example {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    font-size: 0.66rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ══ À retenir ═══════════════════════════════════════════════════════════ */
.takeaways { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .takeaways { grid-template-columns: repeat(3, 1fr); } }

.takeaway {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px 16px;
}
.takeaway-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.takeaway-title { font-weight: 700; font-size: 0.92rem; color: var(--noir); margin-bottom: 6px; line-height: 1.35; }
.takeaway-text  { font-size: 0.82rem; line-height: 1.6; color: var(--text); }

/* ══ Cartes de score ═════════════════════════════════════════════════════ */
.score-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
/* Deux colonnes sur tablette, trois sur écran large : les trois indices
   (vie privée, exposition, sécurité du poste) doivent rester lisibles. */
@media (min-width: 680px) {
    .score-duo { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 980px) {
    .score-duo { grid-template-columns: repeat(3, 1fr); }
}

.score-card {
    background: linear-gradient(160deg, var(--white) 0%, var(--cream) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px 18px;
    text-align: center;
}
.score-icon  { font-size: 2rem; margin-bottom: 6px; line-height: 1; }
.score-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px;
}
.score-value {
    font-family: var(--font-serif);
    font-size: 2.8rem; font-weight: 700; line-height: 1; margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.score-tag {
    font-size: 0.82rem; font-weight: 700; padding: 5px 16px;
    border-radius: 20px; display: inline-block; margin-bottom: 14px;
}
.gauge-track {
    height: 10px; background: var(--cream-2); border-radius: 6px;
    overflow: hidden; margin-bottom: 14px;
}
.gauge-fill {
    height: 100%; border-radius: 6px; width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.score-quote {
    font-size: 0.82rem; font-style: italic; line-height: 1.55;
    padding-top: 12px; border-top: 1px solid var(--border);
}
.factor-list { list-style: none; margin-top: 12px; text-align: left; }
.factor-list li {
    font-size: 0.75rem; color: var(--muted);
    padding: 5px 0 5px 18px; position: relative; line-height: 1.45;
}
.factor-list li::before {
    content: '•'; position: absolute; left: 4px;
    color: var(--orange); font-weight: 700;
}
.factor-list:empty { display: none; }
.factor-points {
    font-variant-numeric: tabular-nums;
    color: var(--orange);
    font-weight: 700;
}

/* ══ Bloc récapitulatif ══════════════════════════════════════════════════ */
/* Bloc d'accroche volontairement à contre-courant du reste de la page.
   Ses couleurs sont fixes et ne suivent pas le thème : elles garantissent
   ainsi un contraste correct en mode clair comme en mode sombre, là où des
   variables qui s'inversent produiraient du gris clair sur fond crème. */
.recap-block {
    background: #1a1510;
    color: #f0ece4;
    border-radius: var(--r);
    padding: 26px 20px;
    text-align: center;
    margin-bottom: 26px;
}
.recap-block h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #ffffff;
}
.recap-stat { font-size: 1.02rem; line-height: 1.6; margin-bottom: 14px; }
.recap-stat strong { color: #f0904a; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.recap-block .tagline {
    font-size: 0.92rem;
    color: rgba(240, 236, 228, 0.82);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ══ Cartes de détection ═════════════════════════════════════════════════ */
.detect-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 10px;
}
@media (min-width: 560px) {
    .detect-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

.detect-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 15px 16px;
    position: relative; /* ancre les bulles d'aide */
}
.detect-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.detect-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--noir);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}
.detect-badge {
    font-size: 0.67rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.detect-badge.ok   { background: var(--success-bg); color: var(--success); }
.detect-badge.warn { background: var(--warn-bg);    color: var(--warn); }
.detect-badge.bad  { background: var(--danger-bg);  color: var(--danger); }
.detect-badge.info { background: var(--info-bg);    color: var(--info); }

.detect-value { font-size: 0.8rem; line-height: 1.55; overflow-wrap: anywhere; }
.detect-value code, code.inline {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--orange);
    overflow-wrap: anywhere;
}

/* Origine de la donnée : mesurée, déclarée par le navigateur, ou déduite.
   Cette distinction est au cœur de l'honnêteté de l'outil. */
.data-origin {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.67rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    border: 1px dashed var(--border-strong);
    border-radius: 20px;
    padding: 2px 9px;
}

/* ══ Bulle d'aide accessible (remplace les tooltips au survol) ═══════════ */
/* La version précédente utilisait `[data-tip]:hover::after` : sur tablette et
   smartphone, il n'y a pas de survol — le contenu était donc inatteignable.
   Ici, c'est un vrai bouton : tap, clic, clavier (Entrée/Espace) et Échap. */
.hint {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    width: 20px; height: 20px;
    min-width: 20px;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background var(--ease), color var(--ease);
}
.hint:hover,
.hint[aria-expanded="true"] {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.hint-bubble {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 8px;
    right: 8px;
    z-index: 300;
    background: #2d2820;   /* couleurs fixes : voir .recap-block */
    color: #fdfaf5;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    padding: 10px 13px;
    border-radius: var(--r-xs);
    box-shadow: var(--shadow-lg);
}
.hint-bubble.is-open { display: block; }

.hint-anchor { position: relative; }

/* ══ Tableau des risques — cartes empilées sur petit écran ═══════════════ */
.risk-table-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}

table.risk-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
table.risk-table th {
    background: var(--cream);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
table.risk-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.5;
}
table.risk-table tr:last-child td { border-bottom: none; }
table.risk-table td.col-detected { font-weight: 600; color: var(--noir); width: 24%; }
table.risk-table td.col-usage    { width: 38%; }
table.risk-table td.col-risk     { color: var(--danger); width: 38%; }

/* Sous 760 px : chaque ligne devient une carte lisible, avec les intitulés
   de colonne repris en libellés. Trois colonnes de texte sur un écran de
   360 px sont illisibles — c'était le cas dans la version précédente. */
@media (max-width: 759px) {
    table.risk-table thead { display: none; }
    table.risk-table, table.risk-table tbody, table.risk-table tr, table.risk-table td {
        display: block;
        width: auto;
    }
    table.risk-table tr {
        border-bottom: 1px solid var(--border);
        padding: 6px 0 12px;
    }
    table.risk-table tr:last-child { border-bottom: none; }
    table.risk-table td {
        border-bottom: none;
        padding: 6px 14px;
        width: auto !important;
    }
    table.risk-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--muted);
        margin-bottom: 3px;
    }
    table.risk-table td.col-detected { font-size: 0.88rem; padding-top: 12px; }
}

.empty-state { text-align: center; padding: 22px; font-size: 0.82rem; color: var(--muted); }

/* ══ En-têtes HTTP reçues côté serveur ═══════════════════════════════════ */
.headers-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 18px;
    overflow: hidden;
}
.headers-summary {
    padding: 16px 18px;
    background: var(--orange-bg);
    border-bottom: 1px solid var(--border);
}
.headers-summary-title {
    font-weight: 700; color: var(--noir); font-size: 0.9rem;
    margin-bottom: 6px; overflow-wrap: anywhere;
}
.headers-summary-text { font-size: 0.8rem; line-height: 1.6; }
.headers-summary-text strong { color: var(--orange); }

/* Précision sur l'écart entre l'adresse vue par ce serveur et l'adresse
   publique réelle — cas fréquent dès qu'un NAT s'intercale. */
.ip-note {
    font-size: 0.78rem;
    line-height: 1.6;
    background: var(--info-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xs);
    padding: 11px 13px;
    margin-bottom: 10px;
}
.ip-note strong { color: var(--info); }
.ip-note em { font-style: normal; font-weight: 600; color: var(--noir); }

/* Les deux adresses publiques d'une connexion en double pile. */
.ip-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 8px 0 12px;
}
@media (min-width: 620px) {
    .ip-pair { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
    .ip-pair-item { display: contents; }
}
.ip-pair-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.ip-pair-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 9px;
    white-space: nowrap;
}
.ip-pair code { font-size: 0.82rem; overflow-wrap: anywhere; }

.headers-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.headers-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
table.headers-table tr { border-bottom: 1px solid var(--border); }
table.headers-table tr:last-child { border-bottom: none; }
table.headers-table td { padding: 8px 14px; vertical-align: top; line-height: 1.5; }
table.headers-table td.h-name  { font-weight: 700; color: var(--orange); white-space: nowrap; }
table.headers-table td.h-value { font-size: 0.72rem; overflow-wrap: anywhere; min-width: 180px; }

.headers-toggle {
    width: 100%;
    padding: 12px 18px;
    text-align: center;
    background: var(--cream);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--orange);
    cursor: pointer;
    border: none;
    border-top: 1px solid var(--border);
    min-height: 44px;
}
.headers-toggle:hover { background: var(--cream-2); }

/* ══ Grille des APIs Web ═════════════════════════════════════════════════ */
.api-summary {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--warn-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    font-size: 0.84rem;
    line-height: 1.6;
}
.api-summary strong { color: var(--noir); }

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 6px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.api-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    font-size: 0.74rem;
    line-height: 1.3;
}
.api-chip.available { border-color: var(--success); background: var(--success-bg); color: var(--success); font-weight: 600; }
.api-chip.unavailable { opacity: 0.55; }
.api-chip-icon { flex-shrink: 0; }

/* ══ Empreinte combinée ══════════════════════════════════════════════════ */
.fingerprint-card {
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    padding: 20px 18px;
}
.fp-hash {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--orange);
    background: var(--cream);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-sm);
    padding: 14px 12px;
    text-align: center;
    margin: 14px 0;
    overflow-wrap: anywhere;
}
.fp-signals { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.fp-signal {
    font-size: 0.72rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    color: var(--text);
}
.fp-experiment {
    background: var(--info-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-top: 14px;
}
.fp-experiment strong { color: var(--info); display: block; margin-bottom: 6px; }

/* ══ Recommandations ═════════════════════════════════════════════════════ */
.reco-grid { display: flex; flex-direction: column; gap: 10px; }
.reco-card {
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--r-sm);
    padding: 14px 15px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.reco-dot {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0; background: var(--orange-bg);
}
.reco-title { font-weight: 700; font-size: 0.88rem; color: var(--noir); margin-bottom: 4px; }
.reco-detail { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.reco-detail a { color: var(--orange); }

/* ══ Note de méthodologie ════════════════════════════════════════════════ */
.methodology-note {
    background: var(--info-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 18px;
    margin-top: 24px;
}
.methodology-note > strong {
    display: block; color: var(--info); font-size: 0.86rem; margin-bottom: 8px;
}
.methodology-note p { font-size: 0.81rem; line-height: 1.65; margin-bottom: 10px; }
.methodology-note p:last-child { margin-bottom: 0; }
.methodology-note em { color: var(--noir); font-style: normal; font-weight: 600; }
.methodology-note a { color: var(--orange); }

details.methodology-detail { margin-top: 12px; }
details.methodology-detail > summary {
    cursor: pointer;
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--info);
    padding: 8px 0;
    min-height: 32px;
}
details.methodology-detail table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    margin-top: 8px;
}
details.methodology-detail th,
details.methodology-detail td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
details.methodology-detail th { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
details.methodology-detail td.pts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ══ Notifications discrètes (copie du rapport, etc.) ═══════════════════ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    background: #1a1510;
    color: #f0ece4;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    max-width: calc(100vw - 32px);
    text-align: center;
}

/* ══ Bandeau de tête du rapport ══════════════════════════════════════════ */
.report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.report-head .device-badge { margin-bottom: 0; }

/* ══ Mode simple / détail technique ══════════════════════════════════════ */
/* L'outil s'adresse à tout le monde : les blocs les plus arides sont masqués
   par défaut et révélés à la demande. */
body:not(.show-tech) .is-technical { display: none !important; }

/* ══ Test de blocage des traqueurs ═══════════════════════════════════════ */
.tracker-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 20px 18px;
    margin-top: 16px;
}
@media (min-width: 600px) { .tracker-box { padding: 24px 26px; } }

.tracker-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.tracker-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--noir);
    margin-bottom: 6px;
    line-height: 1.3;
}
.tracker-intro { font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: 60ch; }

.tracker-warning {
    background: var(--warn-bg);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--warn);
    border-radius: var(--r-xs);
    padding: 14px 16px;
    font-size: 0.82rem;
    line-height: 1.65;
    margin-bottom: 16px;
}
.tracker-warning strong { color: var(--noir); }

.tracker-progress { font-size: 0.85rem; color: var(--muted); }

.tracker-verdict {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    padding: 14px;
    border-radius: var(--r-sm);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.tracker-verdict.ok   { background: var(--success-bg); color: var(--success); }
.tracker-verdict.warn { background: var(--warn-bg);    color: var(--warn); }
.tracker-verdict.bad  { background: var(--danger-bg);  color: var(--danger); }

.tracker-list { list-style: none; margin-bottom: 14px; }
.tracker-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    margin-bottom: 6px;
    background: var(--cream);
}
.tracker-list li em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.tracker-list li.is-blocked em { color: var(--success); }
.tracker-list li.is-open    em { color: var(--danger); }

.tracker-comment {
    font-size: 0.85rem;
    line-height: 1.65;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.tracker-comment strong { color: var(--noir); }

/* ══ Actions prioritaires, en tête de rapport ════════════════════════════ */
.priority-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--orange);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 22px 18px;
    margin-bottom: 24px;
}
@media (min-width: 600px) { .priority-box { padding: 26px 28px; } }

.priority-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--noir);
    margin-bottom: 8px;
    line-height: 1.25;
}
.priority-intro { font-size: 0.87rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.priority-intro strong { color: var(--danger); }
.priority-intro a { color: var(--orange); }

.priority-list { list-style: none; counter-reset: prio; }

.priority-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--cream);
    margin-bottom: 8px;
}
.priority-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.priority-text { flex: 1 1 200px; min-width: 0; }
.priority-name { display: block; font-weight: 700; font-size: 0.92rem; color: var(--noir); line-height: 1.35; }
.priority-gain { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }

.priority-tag,
.action-tag {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.priority-tag.critique,  .action-tag.critique  { background: var(--danger-bg);  color: var(--danger); }
.priority-tag.important, .action-tag.important { background: var(--warn-bg);    color: var(--warn); }
.priority-tag.conseille, .action-tag.conseille { background: var(--info-bg);    color: var(--info); }

/* ══ Plan d'action détaillé ══════════════════════════════════════════════ */
.action {
    display: flex;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 16px;
    margin-bottom: 12px;
}
.action-critique  { border-left-color: var(--danger); }
.action-important { border-left-color: var(--warn); }
.action-conseille { border-left-color: var(--info); }

.action-rank {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--cream-2);
    color: var(--noir);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.action-body { flex: 1 1 auto; min-width: 0; }

.action-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}
.action-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--noir);
    line-height: 1.3;
}

.action-why, .action-how {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}
.action-why strong, .action-how strong { color: var(--noir); }
.action-how a { color: var(--orange); }

.action-gain {
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    line-height: 1.5;
}

/* ══ Regroupement par gravité ════════════════════════════════════════════ */
.group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 18px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.group-label::before {
    content: '';
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.group-label:first-child { margin-top: 0; }
.group-alert { color: var(--danger); }
.group-alert::before { background: var(--danger); }
.group-ok { color: var(--success); }
.group-ok::before { background: var(--success); }

/* ══ Fiche « courtier en données » ═══════════════════════════════════════ */
/* Volontairement présentée comme un document administratif : c'est ce
   décalage de forme qui fait comprendre la nature de la collecte. */
.broker {
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 20px 18px;
    margin-top: 16px;
    position: relative;
}
@media (min-width: 600px) { .broker { padding: 26px 28px; } }

.broker-stamp {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--danger);
    border: 1.5px solid var(--danger);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 10px;
    transform: rotate(-1.5deg);
}
.broker-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--noir);
    line-height: 1.3;
    margin-bottom: 8px;
}
.broker-intro { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; max-width: 68ch; }

.broker-list {
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
}
.broker-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 560px) {
    .broker-row { grid-template-columns: 190px 1fr; gap: 14px; align-items: baseline; }
}
.broker-row dt {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.broker-row dd {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--noir);
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.broker-foot {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.65;
}
.broker-foot strong { color: var(--success); }

/* ══ Barre de progression de lecture ═════════════════════════════════════ */
.read-progress-track {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: transparent;
    pointer-events: none;
}
#read-progress {
    height: 100%;
    width: 0;
    background: var(--orange);
    transition: width 0.12s linear;
}
@media (prefers-reduced-motion: reduce) { #read-progress { transition: none; } }

/* ══ Trouvailles affichées pendant l'analyse ═════════════════════════════ */
.loading-findings {
    list-style: none;
    margin-top: 22px;
    width: 100%;
    max-width: 520px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
}
.loading-findings li {
    padding: 7px 12px;
    border-left: 2px solid var(--orange);
    background: var(--cream);
    border-radius: 0 var(--r-xs) var(--r-xs) 0;
    margin-bottom: 6px;
    color: var(--text);
    overflow-wrap: anywhere;
    animation: finding-in 0.35s ease both;
}
.loading-findings li::before {
    content: '› ';
    color: var(--orange);
    font-weight: 700;
}
@keyframes finding-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .loading-findings li { animation: none; }
}

/* ══ Sommaire ════════════════════════════════════════════════════════════ */
.toc {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 20px 18px;
    margin-bottom: 24px;
}
@media (min-width: 600px) { .toc { padding: 22px 26px; } }

.toc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.toc-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--noir);
    line-height: 1.3;
}
.toc-time {
    font-size: 0.75rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}
@media (min-width: 760px) {
    .toc-list { grid-template-columns: 1fr 1fr; column-gap: 22px; }
}

.toc-list a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 6px;
    font-size: 0.86rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--r-xs);
    line-height: 1.45;
    transition: background var(--ease), color var(--ease);
    min-height: 38px;
}
.toc-list a:hover { background: var(--orange-bg); color: var(--orange); }
.toc-list a em {
    font-style: normal;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.8rem;
}

.toc-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--cream-2);
    color: var(--noir);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.toc-list a:hover .toc-num { background: var(--orange); color: #fff; }

/* Les ancres ne doivent pas passer sous la barre de navigation collante. */
.section-title { scroll-margin-top: 78px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 5 — LE LABORATOIRE D'EMPREINTE

   Cette section est la leçon de l'outil : elle montre ce qu'elle explique.
   D'où le vocabulaire visuel particulier — planches de démonstration, jauges
   qualitatives, spécimens de polices — absent du reste du rapport.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Le principe, en trois temps ─────────────────────────────────────────── */
.fp-lesson {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 20px 18px;
    margin-bottom: 22px;
}
@media (min-width: 600px) { .fp-lesson { padding: 24px 26px; } }

.fp-lesson-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.08rem, 3.6vw, 1.3rem);
    color: var(--noir);
    line-height: 1.3;
    margin-bottom: 8px;
}
.fp-lesson-lede { font-size: 0.87rem; color: var(--muted); line-height: 1.65; max-width: 68ch; }

.fp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 16px;
}
@media (min-width: 720px) { .fp-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.fp-steps li {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 16px 15px 15px;
    position: relative;
}
.fp-step-num {
    position: absolute;
    top: -11px; left: 14px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.fp-steps b {
    display: block;
    margin-bottom: 5px;
    font-size: 0.86rem;
    color: var(--noir);
    line-height: 1.35;
}
.fp-steps span:not(.fp-step-num) { display: block; font-size: 0.79rem; line-height: 1.6; color: var(--text); }

.fp-lesson-foot {
    font-size: 0.86rem;
    line-height: 1.6;
    padding: 12px 14px;
    background: var(--orange-bg);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
.fp-lesson-foot strong { color: var(--orange); }

/* ── Intertitre de groupe ────────────────────────────────────────────────── */
.fp-group-head { margin: 26px 0 14px; }
.fp-group-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1rem, 3.4vw, 1.18rem);
    color: var(--noir);
    line-height: 1.3;
    margin-bottom: 6px;
}
.fp-group-lede { font-size: 0.85rem; color: var(--muted); line-height: 1.65; max-width: 72ch; }
.fp-group-lede strong { color: var(--text); }
.fp-scale-note {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.55;
    margin-top: 8px;
    position: relative; /* ancre la bulle d'aide */
}

/* ── Carte d'un test ─────────────────────────────────────────────────────── */
.lab-list { display: grid; grid-template-columns: 1fr; gap: 14px; }

.lab {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative; /* ancre les bulles d'aide */
}

.lab-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px 16px 13px;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
}
.lab-num {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--noir);
    color: var(--cream);
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.lab-heading { flex: 1 1 auto; min-width: 0; }
.lab-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--noir);
    line-height: 1.3;
}
.lab-sub { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* `minmax(0, 1fr)` et non `1fr` : la fenêtre de zoom du test Canvas contient
   une image volontairement six fois trop large. Avec `1fr`, cette largeur
   remonte dans le calcul de la piste et la colonne réclamait plus de 1 500 px
   sur un téléphone — débordement invisible, car `overflow-x: clip` coupait
   sans rien signaler. */
.lab-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
}
@media (min-width: 780px) {
    .lab-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; }
}
.lab-demo, .lab-steps { min-width: 0; }

.lab-steps { display: flex; flex-direction: column; gap: 11px; }
.lab-step { font-size: 0.81rem; line-height: 1.6; }
.lab-step b {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}
.lab-step strong { color: var(--noir); }
.lab-step em { font-style: normal; font-weight: 600; }
.lab-step code {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--orange);
    overflow-wrap: anywhere;
}

.lab-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--cream);
}
.lab-foot .data-origin { margin-top: 0; margin-left: auto; }

.lab-meter { display: flex; align-items: center; gap: 8px; }
.lab-meter-label { font-size: 0.72rem; color: var(--muted); }
.lab-pips { display: inline-flex; gap: 3px; }
.lab-pips i {
    width: 9px; height: 9px;
    border-radius: 2px;
    background: var(--cream-3);
    display: block;
}
.lab-pips i.on { background: var(--orange); }

.lab-empty {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    padding: 26px 14px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--cream);
}

/* ── Démonstration Canvas : l'image, puis ses pixels ─────────────────────── */
.canvas-demo figcaption {
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 6px 0 12px;
}
.canvas-demo figcaption:last-child { margin-bottom: 0; }
.canvas-demo figcaption strong { color: var(--text); }

.canvas-shot {
    display: block;
    width: 100%;
    max-width: 330px;
    height: auto;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xs);
}

/* Fenêtre de zoom : l'image d'origine y est agrandie sans lissage, de sorte
   que les pixels d'anticrénelage — le cœur de la technique — deviennent
   visibles à l'œil nu. */
.canvas-zoom {
    overflow: hidden;
    width: 100%;
    height: 96px;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xs);
}
.canvas-zoom img {
    display: block;
    max-width: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ── Démonstration WebGL : la réponse brute de la machine ────────────────── */
.gpu-plate {
    background: var(--cream);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 14px 15px;
}
.gpu-plate-label {
    display: block;
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 7px;
}
.gpu-plate-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.gpu-plate-vendor { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 6px; }
.gpu-plate-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.gpu-plate-specs span {
    font-size: 0.7rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 9px;
    color: var(--muted);
}

/* ── Démonstration audio : la courbe réellement calculée ─────────────────── */
.wave-demo {
    background: var(--cream);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 14px 15px;
}
.wave-svg { display: block; width: 100%; height: 80px; }
.wave-axis { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.wave-line {
    fill: none;
    stroke: var(--orange);
    stroke-width: 1.4;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.wave-demo figcaption { font-size: 0.73rem; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.wave-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
}
.wave-value span {
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.wave-value code {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
}

/* ── Démonstration des polices : chacune dans son propre dessin ──────────── */
.lab-bar {
    position: relative;
    height: 26px;
    background: var(--cream-2);
    border-radius: 13px;
    overflow: hidden;
    margin-bottom: 12px;
}
.lab-bar-fill { height: 100%; background: var(--orange-light); border-radius: 13px; }
.lab-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--noir);
}

.font-specimens { display: flex; flex-wrap: wrap; gap: 6px; }
.spec {
    font-size: 0.82rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    padding: 4px 10px;
    color: var(--text);
    line-height: 1.4;
}
.spec.is-absent {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    opacity: 0.75;
    font-size: 0.74rem;
}
.spec.is-more { font-weight: 700; color: var(--orange); border-style: dashed; }

.font-absent { margin-top: 13px; }
.font-absent-label {
    display: block;
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

/* ── Blocs repliés : signaux d'appoint, vocabulaire ──────────────────────── */
details.fold {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin: 18px 0;
    overflow: hidden;
}
details.fold > summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--noir);
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    line-height: 1.45;
    transition: background var(--ease);
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after {
    content: '▼';
    margin-left: auto;
    font-size: 0.66rem;
    color: var(--muted);
    flex-shrink: 0;
}
details.fold[open] > summary::after { content: '▲'; }
details.fold > summary:hover { background: var(--cream); }
details.fold[open] > summary { border-bottom: 1px solid var(--border); }

.fold-count {
    flex-shrink: 0;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 13px;
    background: var(--orange-bg);
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

details.fold > .fold-lede,
details.fold > .detect-grid,
details.fold > .glossary { padding-left: 16px; padding-right: 16px; }
details.fold > .fold-lede {
    padding-top: 14px;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 72ch;
}
details.fold > .detect-grid { padding-top: 14px; padding-bottom: 16px; margin-bottom: 0; }
details.fold > .glossary { padding-top: 6px; padding-bottom: 16px; }

.glossary-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.glossary-row:last-child { border-bottom: none; }
.glossary dt { font-size: 0.85rem; font-weight: 700; color: var(--noir); margin-bottom: 4px; }
.glossary dt i { font-style: italic; font-weight: 400; color: var(--muted); }
.glossary dd { font-size: 0.81rem; line-height: 1.65; color: var(--text); }

/* ── Ce qui protège, ce qui ne protège pas ───────────────────────────────── */
.myth {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 20px 18px;
    margin: 22px 0;
}
@media (min-width: 600px) { .myth { padding: 24px 26px; } }

.myth-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    color: var(--noir);
    line-height: 1.3;
    margin-bottom: 6px;
}
.myth-lede { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; max-width: 68ch; }

.myth-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
@media (min-width: 620px) {
    .myth-row { flex-direction: row; align-items: flex-start; gap: 16px; }
    .myth-verdict { width: 118px; flex-shrink: 0; }
}

.myth-verdict {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
}
.myth-nul     .myth-verdict { background: var(--danger-bg);  color: var(--danger); }
.myth-partiel .myth-verdict { background: var(--warn-bg);    color: var(--warn); }
.myth-utile   .myth-verdict { background: var(--success-bg); color: var(--success); }
.myth-fort    .myth-verdict { background: var(--success-bg); color: var(--success); }

.myth-body { min-width: 0; }
.myth-label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--noir); line-height: 1.35; margin-bottom: 3px; }
.myth-text { font-size: 0.81rem; line-height: 1.65; }
.myth-text strong { color: var(--noir); }
.myth-text em { font-style: normal; font-weight: 600; }

/* Ce qui a été constaté sur CE poste, distingué du propos général. */
.myth-you {
    display: block;
    margin-top: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--orange);
}
.myth-you::before { content: '→ '; }

/* ── Signature combinée : compléments ────────────────────────────────────── */
.fp-signals-label {
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-top: 14px;
}
.fp-excluded {
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 11px 13px;
    margin: 12px 0;
    background: var(--success-bg);
    border-left: 3px solid var(--success);
    border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
.fp-limit { margin-top: 14px; color: var(--muted); }
.fp-limit a { color: var(--orange); }

/* ══ Comparaison position par IP / position réelle ═══════════════════════ */
.geo-verdict {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--r-sm);
    margin-bottom: 14px;
    line-height: 1.2;
}
.geo-verdict.ok   { background: var(--success-bg); color: var(--success); }
.geo-verdict.warn { background: var(--warn-bg);    color: var(--warn); }
.geo-verdict.bad  { background: var(--danger-bg);  color: var(--danger); }

.geo-foot {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.55;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* ══ Éléments réservés au document imprimé ═══════════════════════════════
   Page de garde et pied de page répété : ils n'ont aucun sens à l'écran et
   sont donc masqués ici. print.css étant chargée avec `media="print"`, elle
   ne peut pas s'en charger — elle ne s'applique qu'au moment de l'impression. */
#print-cover,
.print-footer,
.print-only { display: none; }
