/* ═══════════════════════════════════════════════════════════════
   ANATOMIE SECTION — Logo Communication — anatomie.css
   Section "Anatomie" WebP allégée, partagée par les 5 produits
   Sélecteurs scopés à .product-template .anatomie
   ═══════════════════════════════════════════════════════════════ */

/* ─── WRAPPER ───────────────────────────────────────────────── */
.product-template .anatomie {
    padding: clamp(80px, 10vh, 140px) 0;
    background: #fff;
    position: relative;
}
.product-template .anatomie-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ─── HEADER ────────────────────────────────────────────────── */
.product-template .anatomie-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: clamp(60px, 8vh, 96px);
}
.product-template .anatomie-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}
.product-template .anatomie-kicker::before,
.product-template .anatomie-kicker::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--border);
}
.product-template .anatomie-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0;
    max-width: 780px;
}
.product-template .anatomie-title .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.product-template .anatomie-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.55;
    margin: 0;
}

/* ─── BODY GRID ─────────────────────────────────────────────── */
.product-template .anatomie-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
}

/* ─── VISUAL (image WebP + gradient bg) ─────────────────────── */
.product-template .anatomie-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #b01d2c 0%, #5b21b6 55%, #1e40af 100%);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-template .anatomie-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
}
.product-template .anatomie-visual::after {
    content: "";
    position: absolute;
    inset: auto 8% 6% 8%;
    height: 22%;
    background: radial-gradient(ellipse at center top, rgba(0,0,0,0.4) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}
.product-template .anatomie-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 24px;
}

/* ─── PLATE LABELS ──────────────────────────────────────────── */
.product-template .plate-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 5;
    background: #1a1a22;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.product-template .plate-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 8px rgba(91,33,182,0.5);
}
.product-template .plate-label::after {
    content: "";
    position: absolute;
    width: 38px;
    height: 1px;
    background: rgba(255,255,255,0.25);
    top: 50%;
}

/* Label positions — defaults (left-aligned) */
.product-template .label-1 { top: 18%; left: 6%; }
.product-template .label-1::after { left: calc(100% + 4px); }
.product-template .label-2 { top: 46%; left: 6%; }
.product-template .label-2::after { left: calc(100% + 4px); }
.product-template .label-3 { top: 74%; left: 6%; }
.product-template .label-3::after { left: calc(100% + 4px); }

/* Overrides per product — Lettres Boîtier (4:5 aspect ratio) */
#page-lettres-boitiers .anatomie-visual { aspect-ratio: 4 / 5; }
#page-lettres-boitiers .label-1 { top: 16%; }
#page-lettres-boitiers .label-2 { top: 44%; }
#page-lettres-boitiers .label-3 { bottom: 16%; top: auto; }

/* Overrides — Néon LED (labels repositioned) */
#page-neon-led .label-1 { top: 30%; left: auto; right: 6%; }
#page-neon-led .label-1::after { left: auto; right: calc(100% + 4px); }
#page-neon-led .label-2 { top: 52%; left: 6%; }

/* Overrides — PVC (2 labels only) */
#page-lettres-pvc .label-1 { top: 25%; }
#page-lettres-pvc .label-2 { top: 60%; }

/* Overrides — Drapeau (3 labels) */
#page-drapeau .label-1 { top: 22%; }
#page-drapeau .label-2 { top: 48%; }
#page-drapeau .label-3 { top: 74%; }

/* ─── LAYERS LIST (right column) ────────────────────────────── */
.product-template .layers-list {
    display: flex;
    flex-direction: column;
}
.product-template .layer-item {
    position: relative;
    padding: clamp(20px, 3vh, 32px) 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 20px;
    align-items: start;
    transition: padding 0.4s var(--ease);
}
.product-template .layer-item:last-child {
    border-bottom: 1px solid var(--border);
}
.product-template .layer-item:hover { padding-left: 8px; }
.product-template .layer-num {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    line-height: 1;
}
.product-template .layer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-template .layer-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}
.product-template .layer-name .accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.product-template .layer-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.product-template .layer-spec {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-subtle);
    letter-spacing: 0.04em;
    white-space: nowrap;
    align-self: start;
}

/* ─── FOOTER (stats + CTA) ──────────────────────────────────── */
.product-template .anatomie-foot {
    margin-top: clamp(60px, 8vh, 96px);
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.product-template .anatomie-stats {
    display: flex;
    gap: clamp(32px, 5vw, 60px);
}
.product-template .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-template .stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    line-height: 1;
}
.product-template .stat-num.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.product-template .stat-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}
.product-template .anatomie-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}
.product-template .anatomie-cta:hover {
    background: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(91,33,182,0.3);
}
.product-template .anatomie-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.product-template .anatomie-cta:hover svg {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px) — aligné sur hero-product.css
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .product-template .anatomie-body {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .product-template .anatomie-visual {
        aspect-ratio: 1 / 1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    /* Reset product-specific aspect ratios on mobile */
    #page-lettres-boitiers .anatomie-visual { aspect-ratio: 1 / 1; }
}
