/* ============================================================
   AVIS-TECHNIQUE-CSTB.CSS — Journal AdLucem, article n°06
   Hero interactif (navigateur de documents) + tableau comparatif
   + grille de documents. Réutilise dot-nav / marquee / chapters
   de beton-cire-mur.css (classes .wm-*) pour la cohérence du
   journal ; seuls les éléments propres à cet article sont ici.
   ============================================================ */

.at2 {
    --at2-teal: #1c7d8c;
    --at2-orange: #d98a3d;
}

.at2 * {
    box-sizing: border-box;
}

/* ---------- HERO ---------- */
.at2-hero {
    background: var(--wm-warm);
    color: var(--wm-dark);
    padding: clamp(6.5rem, 13vh, 9.5rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.at2-hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.at2-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    font-size: 0.75rem;
    color: var(--wm-muted);
}

.at2-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.6rem;
    opacity: 0.5;
}

.at2-breadcrumb a {
    color: var(--wm-muted);
    text-decoration: none;
}

.at2-breadcrumb a:hover {
    color: var(--wm-dark);
}

.at2-hero-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--at2-teal);
    margin-bottom: 1.3rem;
}

.at2-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 1.3rem;
    max-width: 16ch;
    color: var(--wm-dark);
}

.at2-hero-title em {
    font-style: italic;
    color: var(--at2-teal);
}

.at2-hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 300;
    color: #3a3632;
    max-width: 46ch;
    margin: 0 0 1.8rem;
    line-height: 1.65;
}

.at2-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.78rem;
    color: var(--wm-muted);
    margin-bottom: 2rem;
}

.at2-meta-sep {
    opacity: 0.5;
}

.at2-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wm-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--wm-dark);
    padding-bottom: 0.2rem;
    transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.at2-hero-cta:hover {
    color: var(--at2-teal);
    border-color: var(--at2-teal);
    gap: 0.75rem;
}

/* ---------- INTERACTIVE DOC BROWSER ---------- */
.at2-doc-browser {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.at2-doc-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.at2-doc-peek {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid var(--wm-border);
    border-radius: 4px;
    box-shadow: 0 20px 45px rgba(14, 14, 14, 0.08);
}

.at2-doc-peek--1 {
    transform: rotate(-4deg) translateY(6px);
}

.at2-doc-peek--2 {
    transform: rotate(3deg) translateY(10px);
}

.at2-doc-display {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--wm-border);
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(14, 14, 14, 0.12);
    padding: 1.8rem 1.8rem 1.5rem;
    text-align: center;
}

/* Tous les logos dans le même cadre que les avis techniques (361 × 233),
   jamais agrandis au-delà de leur taille réelle : ATEx (100 × 54) et
   FDES (200 × 200) étirés deviennent flous. La règle vaut pour toutes les
   images, quel que soit leur nom de fichier. */
.at2-doc-display img {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 1.2rem;
    height: auto;
    aspect-ratio: 361 / 233;
    object-fit: scale-down;
}

.at2-doc-caption {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-top: 1px solid var(--wm-border);
    padding-top: 1rem;
}

.at2-doc-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wm-dark);
}

.at2-doc-ref {
    font-size: 0.8rem;
    color: var(--wm-muted);
}

.at2-doc-count {
    text-align: center;
    font-size: 0.76rem;
    color: var(--wm-muted);
    margin: 1rem 0 0;
}

.at2-doc-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.at2-doc-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--wm-muted);
    background: transparent;
    border: 1px solid var(--wm-border);
    border-radius: 20px;
    padding: 0.45em 0.95em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.at2-doc-tab:hover {
    color: var(--wm-dark);
    border-color: var(--wm-dark);
}

.at2-doc-tab.active {
    color: #fff;
    background: var(--at2-teal);
    border-color: var(--at2-teal);
}

@media (max-width: 1024px) {
    .at2-hero-inner {
        grid-template-columns: 1fr;
    }

    .at2-doc-browser {
        margin-top: 1rem;
    }
}

/* ---------- DOT NAV color override ---------- */
.at2-dotnav a:hover span,
.at2-dotnav a.active span {
    background: var(--at2-teal);
}

/* ---------- STAKES GRID (ch.02) ---------- */
.at2-stakes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--wm-border);
    border: 1px solid var(--wm-border);
    margin-top: 2.2rem;
}

.at2-stake {
    background: var(--wm-warm);
    padding: 1.4rem 1.5rem;
}

.at2-stake-who {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--at2-teal);
    margin-bottom: 0.5rem;
}

.at2-stake p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2a2a2a;
    margin: 0;
}

@media (max-width: 640px) {
    .at2-stakes {
        grid-template-columns: 1fr;
    }
}

/* ---------- COMPARISON TABLE (ch.03) ---------- */
.at2-chapter--wide {
    max-width: 1200px;
}

.at2-table-wrap {
    overflow-x: auto;
    margin: 0 0 1.5rem;
    border: 1px solid var(--wm-border);
}

.at2-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 0.92rem;
}

.at2-table th,
.at2-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--wm-border);
    line-height: 1.55;
    vertical-align: top;
}

.at2-table thead th {
    background: var(--wm-dark);
    color: var(--wm-warm);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.at2-table tbody th {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--wm-dark);
    white-space: nowrap;
    background: rgba(28, 125, 140, 0.05);
}

.at2-table tbody td {
    color: #2a2a2a;
    font-weight: 300;
}

.at2-table tbody tr:last-child th,
.at2-table tbody tr:last-child td {
    border-bottom: none;
}

.at2-table-note {
    font-size: 0.88rem;
    color: var(--wm-muted);
    max-width: 760px;
    line-height: 1.6;
}

/* ---------- READ LIST (ch.05) ---------- */
.at2-read-list li::before {
    color: var(--at2-teal);
}

/* ---------- DOC GRID (ch.04) ---------- */
.at2-doc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--wm-border);
    border: 1px solid var(--wm-border);
    margin-top: 0.5rem;
}

.at2-doc-item {
    background: var(--wm-warm);
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem 1.3rem 1.3rem;
    transition: background 0.2s;
}

.at2-doc-item:hover {
    background: #fff;
}

.at2-doc-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 361 / 233;
    object-fit: scale-down;
    display: block;
    margin-bottom: 1.1rem;
}

.at2-doc-item-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--wm-dark);
    margin: 0 0 0.5rem;
}

.at2-doc-item-body p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--wm-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .at2-doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .at2-doc-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- EN BREF : réponse directe en tête d'article ---------- */
.at2-bref {
    max-width: 1200px;
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.at2-bref > * { max-width: 860px; }
.at2-bref-kicker {
    margin: 0 0 0.9rem;
    padding-top: 1.1rem;
    border-top: 2px solid var(--wm-rust, #8a4b2f);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wm-muted, #6b6b6b);
}
.at2-bref-texte {
    margin: 0;
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    font-weight: 300;
    color: #1c1c1c;
}
.at2-bref-texte strong { font-weight: 600; color: var(--wm-dark, #1a1a1a); }
.at2-bref-texte a,
.at2-bref-liens a {
    color: var(--wm-dark, #1a1a1a);
    text-decoration-color: var(--wm-rust, #8a4b2f);
    text-underline-offset: 3px;
}
.at2-bref-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.8rem;
    margin: 1.1rem 0 0;
    font-size: 0.92rem;
}
