
:root {
    --header-h: 56px;
    --crumb-h: 44px;
}
.breadcrumb {
    position: sticky;
    top: var(--header-h, 56px);
    z-index: 90;
    display: flex;
    align-items: center;
    height: var(--crumb-h);
    width: 100vw;
    box-sizing: border-box;
    background: rgba(4, 4, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    margin: 0 0 0 calc(50% - 50vw);
    padding: 0 80px;
}
.breadcrumb::-webkit-scrollbar {
    display: none;
}
.breadcrumb > * {
    flex: 0 0 auto;
}
.breadcrumb a {
    color: var(--text-lo, rgba(255, 255, 255, 0.58));
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--accent-60, rgba(255, 255, 255, 0.60));
}
.breadcrumb .sep {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 10px;
    font-size: 9px;
    user-select: none;
}
.breadcrumb .category-tag {
    color: var(--accent-60, rgba(255, 255, 255, 0.60));
}
.breadcrumb .current {
    color: var(--accent-85, rgba(255, 255, 255, 0.85));
}
.dossier-breadcrumb,
.tool-breadcrumb,
.alc-breadcrumb,
.intro-crumb,
.eff-crumb {
    position: sticky;
    top: var(--header-h, 56px);
    z-index: 90;
    display: flex;
    align-items: center;
    height: var(--crumb-h);
    width: 100vw;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 0 0 calc(50% - 50vw);
    padding: 0 80px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(4, 4, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    color: var(--text-lo, rgba(255, 255, 255, 0.58));
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    scrollbar-width: none;
}

.dossier-breadcrumb::-webkit-scrollbar,
.tool-breadcrumb::-webkit-scrollbar,
.alc-breadcrumb::-webkit-scrollbar,
.intro-crumb::-webkit-scrollbar,
.eff-crumb::-webkit-scrollbar { display: none; }
.dossier-breadcrumb > *,
.tool-breadcrumb > *,
.alc-breadcrumb > *,
.intro-crumb > *,
.eff-crumb > * { flex: 0 0 auto; }
.dossier-breadcrumb a,
.tool-breadcrumb a,
.alc-breadcrumb a,
.intro-crumb a,
.eff-crumb a {
    color: var(--text-lo, rgba(255, 255, 255, 0.58));
    text-decoration: none;
    transition: color 0.2s;
}
.dossier-breadcrumb a:hover,
.tool-breadcrumb a:hover,
.alc-breadcrumb a:hover,
.intro-crumb a:hover,
.eff-crumb a:hover { color: var(--accent-60, rgba(255, 255, 255, 0.60)); }
.dossier-breadcrumb .sep,
.tool-breadcrumb .sep,
.alc-breadcrumb .sep,
.intro-crumb .sep,
.eff-crumb .sep,
.alc-breadcrumb span[aria-hidden] {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 9px;
    user-select: none;
}
.dossier-breadcrumb .here,
.tool-breadcrumb .here,
.alc-breadcrumb [aria-current],
.intro-crumb [aria-current],
.eff-crumb [aria-current] {
    color: var(--accent-85, rgba(255, 255, 255, 0.85));
}
.cat-index-v3 .dossier-breadcrumb .here {
    color: var(--category-color, var(--accent));
}
body.tool-autodiag .tool-breadcrumb,
body.tool-alcoolemie .alc-breadcrumb {
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .breadcrumb,
    .dossier-breadcrumb,
    .tool-breadcrumb,
    .alc-breadcrumb,
    .intro-crumb,
    .eff-crumb {
        padding-right: 32px;
        padding-left: 32px;
    }
}
@media (max-width: 640px) {
    .breadcrumb,
    .dossier-breadcrumb,
    .tool-breadcrumb,
    .alc-breadcrumb,
    .intro-crumb,
    .eff-crumb {
        width: 100vw;
        padding-right: 18px;
        padding-left: 18px;
        font-size: 10px;
        letter-spacing: 0.10em;
    }
    .breadcrumb .sep,
    .dossier-breadcrumb .sep,
    .tool-breadcrumb .sep,
    .alc-breadcrumb .sep,
    .intro-crumb .sep,
    .eff-crumb .sep,
    .alc-breadcrumb span[aria-hidden] {
        margin-right: 6px;
        margin-left: 6px;
    }
    .breadcrumb a:first-child,
    .breadcrumb .sep:first-of-type,
    .dossier-breadcrumb a:first-child,
    .dossier-breadcrumb .sep:first-of-type,
    .tool-breadcrumb a:first-child,
    .tool-breadcrumb .sep:first-of-type,
    .alc-breadcrumb a:first-child,
    .alc-breadcrumb span[aria-hidden]:first-of-type,
    .intro-crumb a:first-child,
    .intro-crumb .sep:first-of-type,
    .eff-crumb a:first-child,
    .eff-crumb .sep:first-of-type { display: none; }
}

/* ── Header du site ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(4, 4, 10, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1200px;
    height: var(--header-h, 56px);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    width: auto;
    height: 28px;
}

.logo-text {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 4px;
}

.logo-text em {
    color: var(--accent);
    font-style: normal;
}

.site-search {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.site-search-form {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
}

.site-search-form::before {
    content: '';
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    background: url('../assets/icons/search.svg') no-repeat center / contain;
    filter: brightness(0) invert(1);
    opacity: 0.45;
    pointer-events: none;
}

.site-search-input {
    width: 100%;
    padding: 7px 12px 7px 40px;
    border: 1px solid var(--border-hi);
    border-radius: 4px;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-mid);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-search-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.site-search-input::placeholder {
    color: var(--text-lo);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translateY(-50%) scale(0.92);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.site-search-clear.is-visible {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 0s;
}

.site-search-clear:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-search-button {
    display: none !important;
}

.search-suggestions {
    position: absolute;
    z-index: 2000;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 360px;
    overflow: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    background: rgba(10, 10, 20, 0.98);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
    list-style: none;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-mid);
    cursor: pointer;
    font-size: 13px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.search-suggestion-item:hover,
.search-suggestion-item.focused,
.search-suggestion-item[aria-selected="true"] {
    border-color: var(--border-hi);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-hi);
}

.search-suggestion-item strong {
    font-weight: 600;
}

.search-suggestion-item .suggestion-meta {
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-lo);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-suggestion-seeall {
    justify-content: center;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    border-style: dashed;
    background: transparent;
    color: var(--accent);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.search-suggestion-seeall:hover,
.search-suggestion-seeall.focused,
.search-suggestion-seeall[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.search-suggestion-empty {
    padding: 10px 12px;
    color: var(--text-lo);
    cursor: default;
    font-size: 12px;
    font-style: italic;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--text-lo);
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-link:hover {
    border-color: var(--border-hi);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-mid);
}

.nav-link .nav-icon,
.nav-link > img,
.nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.55;
}

.nav-link .nav-icon,
.nav-link > img {
    filter: brightness(0) invert(1);
}

.nav-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        gap: 20px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 8px;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 16px;
        gap: 12px;
    }

    .nav-label {
        display: none;
    }

    .nav-link {
        padding: 8px;
    }

    .site-logo {
        height: 24px;
    }
}

@media (max-width: 600px) {
    .site-search-form {
        max-width: 100%;
    }

    .site-search-input {
        font-size: 13px;
    }
}

/* ── Footer du site ── */
.page-footer,
.site-footer {
    position: relative;
    z-index: 10;
    overflow: hidden;
    margin-top: var(--section-gap, 120px);
    padding: 64px 0 32px;
    border-top: 1px solid var(--accent-08);
    background: #0a0a10;
}

/* ── Sticky footer des pages-outils ──
   Sur les pages courtes, le footer reste collé en bas de l'écran.
   Les trois règles vont ensemble : ne pas les séparer. */
body.tool-autodiag,
body.tool-alcoolemie {
    display: flex;
    flex-direction: column;
}

body.tool-autodiag > .wrap,
body.tool-alcoolemie > .wrap {
    flex: 1 0 auto;
}

body.tool-autodiag > .site-footer,
body.tool-alcoolemie > .site-footer {
    flex-shrink: 0;
}

.page-footer::before,
.site-footer::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.18) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
}

.page-footer .footer-container,
.site-footer .footer-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.page-footer .footer-column,
.site-footer .footer-column,
.page-footer .footer-logo-area,
.site-footer .footer-logo-area {
    display: flex;
    flex-direction: column;
}

.page-footer .footer-column,
.site-footer .footer-column { gap: 10px; }
.page-footer .footer-logo-area,
.site-footer .footer-logo-area { gap: 6px; }

.page-footer .footer-brand,
.site-footer .footer-brand {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-decoration: none;
    text-shadow: 0 0 12px var(--accent-30);
    transition: text-shadow 0.3s ease;
}

.page-footer .footer-brand:hover,
.site-footer .footer-brand:hover { text-shadow: 0 0 24px var(--accent-60); }

.page-footer .footer-mission,
.site-footer .footer-mission {
    max-width: 340px;
    color: var(--text-lo);
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.8;
}

.page-footer .footer-column h3,
.site-footer .footer-column h3 {
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent-08);
    color: var(--accent-60);
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.page-footer .footer-nav,
.site-footer .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-footer .footer-nav a,
.site-footer .footer-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-lo);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-footer .footer-nav a::before,
.site-footer .footer-nav a::before {
    content: '>';
    color: var(--accent-30);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.page-footer .footer-nav a:hover,
.site-footer .footer-nav a:hover { color: var(--accent); transform: translateX(6px); }
.page-footer .footer-nav a:hover::before,
.site-footer .footer-nav a:hover::before { opacity: 1; transform: translateX(0); }

.page-footer .footer-socials-row,
.site-footer .footer-socials-row { display: flex; gap: 10px; margin-top: 16px; }

.page-footer .footer-social-link,
.site-footer .footer-social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-hi);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.page-footer .footer-social-link::after,
.site-footer .footer-social-link::after { content: none !important; display: none !important; }

.page-footer .footer-social-link img,
.site-footer .footer-social-link img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    opacity: 0.5;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.page-footer .footer-social-link:hover,
.site-footer .footer-social-link:hover {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-30);
    transform: translateY(-3px);
}

.page-footer .footer-social-link:hover img,
.site-footer .footer-social-link:hover img { filter: brightness(0); opacity: 1; }

.page-footer .footer-status-box,
.site-footer .footer-status-box {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--border-hi);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.page-footer .status-header,
.site-footer .status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--accent-60);
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 0.15em;
}

.page-footer .status-indicator,
.site-footer .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.page-footer .status-info,
.site-footer .status-info {
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    line-height: 1.6;
}

.page-footer .footer-association,
.site-footer .footer-association {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.page-footer .footer-bottom-bar,
.site-footer .footer-bottom-bar {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.page-footer .footer-copyright,
.site-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-footer .footer-legal-links,
.site-footer .footer-legal-links { display: flex; gap: 24px; }

.page-footer .footer-legal-links a,
.site-footer .footer-legal-links a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-footer .footer-legal-links a:hover,
.site-footer .footer-legal-links a:hover { color: var(--accent-60); }

@media (max-width: 1024px) {
    .page-footer .footer-container,
    .site-footer .footer-container { grid-template-columns: 1.5fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
    .page-footer,
    .site-footer { padding: 48px 0 24px; }
    .page-footer .footer-container,
    .site-footer .footer-container { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
    .page-footer .footer-bottom-bar,
    .site-footer .footer-bottom-bar { flex-direction: column; gap: 12px; padding: 20px 20px 0; text-align: center; }
    .page-footer .footer-legal-links,
    .site-footer .footer-legal-links { flex-direction: column; gap: 10px; }

    /* Mention RdR (pages drogue & dossier) : rapatriée depuis
       style-dossier-v2.css / style-drogues-v2.css. */
    .page-footer .footer-rdr-notice,
    .site-footer .footer-rdr-notice { padding: 0 20px; }
}

/* ══════════════════════════════════════════════════════════════
   COLONNES DE LECTURE ÉLARGIES (+12 % env.) — override global
   ──────────────────────────────────────────────────────────────
   Centralise l'élargissement des blocs de texte et conteneurs
   pour tout le site. Le préfixe `html body` garantit une
   spécificité supérieure aux règles des feuilles de page,
   quel que soit l'ordre de chargement.

   Anciennes valeurs → nouvelles :
     .container            1100 → 1240
     .dossier-container    1200 → 1340   (layout avec rail)
     panel-v2              1000 → 1120
     paragraphes / listes   860 →  960
     .dossier-intro         740 →  830
     .drug-title-body       700 →  790
     .post-full / éditeur   800 →  900
     .auteur-wrap           920 → 1030
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Largeurs de texte (sans risque : bornées par le conteneur) ── */
html body .subsection p,
html body .section > p,
html body .subsection ul:not([class]),
html body .subsection ol:not([class]),
html body .section > ul:not([class]),
html body .section > ol:not([class]) {
	max-width: 960px;
}
html body .keylist > li { max-width: 960px; }
html body .drug-title-body { max-width: 790px; }
html body .dossier-intro,
html body .article-content .intro-text { max-width: 830px; }
html body .consentement-guide-card { max-width: 1100px; }
html body .consentement-guide-card__body p { max-width: 765px; }

/* Blogs */
html body .post-full,
html body .editor-container { max-width: 900px; }

/* Auteurs */
html body .auteur-wrap { max-width: 1030px; }
html body .abio p { max-width: 78ch; }
html body .auteurs-index { max-width: 1240px; }
html body .auteurs-index-intro { max-width: 76ch; }

/* Outils */
html body.tool-autodiag .wrap { max-width: 790px; }
html body.tool-anatomie .am-content { max-width: 1160px; }
html body.tool-echelle .wrap { max-width: 1250px; }

/* Index catégorie V3 : la largeur du lede est portée directement
   par cat-index-v3.css (72ch) — plus d'override ici. */

/* ── 2. Conteneurs des pages à rail fixe (drogues, dossiers) ──
   Élargis uniquement quand la place existe, pour ne pas faire
   chevaucher le rail latéral / la vidéo épinglée sur les
   écrans intermédiaires (1024–1439px : anciennes largeurs). */
@media (min-width: 1440px) {
	html body .container { max-width: 1240px; }
	html body .dossier-container { max-width: 1340px; }
	html body.dossier-panel-v2 .dossier-container { max-width: 1120px; }
}

/* La vidéo épinglée est entièrement décrite dans
   video-pin-block.css : largeur de référence --vp-col: 1120px,
   masquage sous 1440px (en deçà, la gouttière du panel-v2 élargi
   ne suffit plus). Rien à surcharger ici. */
