*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0b;
    --surface: #131315;
    --surface-2: #1b1b1f;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --red: #e11d24;
    --red-deep: #a3121a;
    --radius: 14px;
    --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --wrap: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.02;
    letter-spacing: 0.01em;
    margin: 0;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--red);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
}

.skip-link:focus {
    left: 8px;
}

/* Bandeau d'annonce */
.announce {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
}

.announce a {
    text-decoration: none;
}

.announce a:hover {
    text-decoration: underline;
}

/* En-tête */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 11, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.brand span {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    gap: 4px;
    margin-right: auto;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav a[aria-current] {
    color: var(--text);
    box-shadow: inset 0 -2px 0 var(--red);
    border-radius: 0;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 700 15px/1 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: var(--red-deep);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Hero accueil */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0.45;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 11, 0.85) 40%, rgba(10, 10, 11, 0.2) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 110px 24px 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 3px;
    background: var(--red);
}

.hero h1 {
    font-size: clamp(44px, 7vw, 92px);
    max-width: 14ch;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.hero-lead {
    max-width: 560px;
    color: #d4d4d8;
    font-size: 18px;
    margin: 22px 0 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 44px;
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    max-width: 620px;
}

.stat strong {
    display: block;
    font-family: var(--display);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.stat strong b {
    font-weight: inherit;
}

.stat strong em {
    font-style: normal;
    color: var(--red);
}

.stat span {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section + .section {
    padding-top: 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.section-head p {
    color: var(--muted);
    margin-top: 8px;
    max-width: 620px;
}

.link-arrow {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow:hover {
    color: var(--red);
}

/* Tuiles catégories */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.cat-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--surface);
}

.cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.cat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.cat-tile-body {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cat-tile h3 {
    font-size: 32px;
}

.cat-tile-count {
    font-size: 13px;
    color: #d4d4d8;
    font-weight: 600;
}

.cat-tile:hover img {
    transform: scale(1.05);
}

.cat-tile:hover {
    border-color: var(--red);
}

/* Cartes produit */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #111;
    overflow: hidden;
}

.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 6px;
}

.badge-popular {
    background: #fff;
    color: #0a0a0b;
}

.media-flag {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
}

.media-flag svg {
    width: 12px;
    height: 12px;
}

.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
}

.card-title {
    font-size: 26px;
    margin: 4px 0 8px;
}

.card-desc {
    font-size: 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}

.card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.card-cta {
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    transition: color 0.15s;
}

.card:hover .card-cta {
    color: var(--text);
}

.card-cta svg,
.link-arrow svg {
    width: 16px;
    height: 16px;
}

/* Avantages */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(225, 29, 36, 0.14);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--muted);
    font-size: 15px;
}

/* Étapes */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    counter-reset: step;
    padding: 0;
    margin: 0;
    list-style: none;
}

.steps li {
    counter-increment: step;
    border-top: 3px solid var(--red);
    padding-top: 18px;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--display);
    font-size: 44px;
    font-weight: 800;
    color: var(--line-strong);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.steps h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.steps p {
    color: var(--muted);
    font-size: 15px;
}

/* FAQ */
.faq {
    max-width: 860px;
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 40px 20px 0;
    font-weight: 700;
    font-size: 17px;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    font-weight: 400;
    color: var(--red);
}

.faq details[open] summary::after {
    content: '–';
}

.faq details p {
    color: var(--muted);
    padding-bottom: 20px;
}

/* Bandeau CTA */
.cta-band {
    background: linear-gradient(120deg, var(--red-deep), var(--red));
    border-radius: var(--radius);
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: clamp(30px, 4vw, 44px);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 6px;
}

.cta-band .btn {
    background: #fff;
    color: #0a0a0b;
}

.cta-band .btn:hover {
    background: #e4e4e7;
}

/* Page catégorie */
.page-head {
    padding: 36px 0 34px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}

.page-head h1 {
    font-size: clamp(38px, 5.5vw, 68px);
    max-width: 20ch;
}

.page-head p {
    color: var(--muted);
    max-width: 760px;
    margin-top: 14px;
    font-size: 17px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--line-strong);
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pills a {
    text-decoration: none;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.cat-pills a:hover {
    color: var(--text);
    border-color: var(--text);
}

/* Page produit */
.product {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    padding: 28px 0 70px;
}

.gallery-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #0f0f10;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    margin: 0;
}

.slide img,
.slide video,
.slide iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
}

.yt-facade {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.yt-facade img {
    object-fit: cover;
    opacity: 0.8;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-nav:hover {
    background: var(--red);
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0 4px;
    scrollbar-width: thin;
}

.thumb {
    position: relative;
    flex: 0 0 96px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #111;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s, border-color 0.15s;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb[aria-current='true'] {
    border-color: var(--red);
    opacity: 1;
}

.thumb:hover {
    opacity: 1;
}

.thumb .thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.thumb .thumb-play svg {
    width: 20px;
    height: 20px;
}

.product-info {
    position: sticky;
    top: 92px;
}

.product-info h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin: 6px 0 14px;
}

.product-info .badge {
    position: static;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.product-price {
    font-family: var(--display);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.product-desc {
    color: #d4d4d8;
    font-size: 17px;
    margin: 20px 0 26px;
}

.buy-box {
    display: grid;
    gap: 10px;
}

.buy-note {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.info-list {
    list-style: none;
    padding: 22px 0 0;
    margin: 26px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.info-list li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    color: #d4d4d8;
}

.info-list svg {
    width: 20px;
    height: 20px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Modale d'achat */
.buy-dialog {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    border-radius: 18px;
    padding: 40px 34px 34px;
    width: min(480px, calc(100% - 32px));
    text-align: center;
}

.buy-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.buy-dialog h2 {
    font-size: 38px;
    margin-bottom: 4px;
}

.buy-dialog .price {
    color: var(--red);
    font-size: 34px;
}

.buy-dialog ol {
    text-align: left;
    color: #d4d4d8;
    margin: 22px 0 28px;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-close svg {
    width: 16px;
    height: 16px;
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Pied de page */
.footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 30px;
    margin-top: 40px;
    color: var(--muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer h2 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 14px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    color: var(--text);
}

.footer .brand {
    margin-bottom: 14px;
    color: var(--text);
}

.footer-legal {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

/* 404 */
.not-found {
    text-align: center;
    padding: 120px 0;
}

.not-found h1 {
    font-size: clamp(60px, 10vw, 120px);
}

.not-found p {
    color: var(--muted);
    margin: 10px 0 28px;
}

@media (max-width: 1280px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header-inner > .btn {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
        gap: 2px;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        font-size: 17px;
        padding: 12px 8px;
    }

    .nav a[aria-current] {
        box-shadow: inset 3px 0 0 var(--red);
        padding-left: 14px;
    }
}

@media (max-width: 860px) {
    .product {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-info {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .wrap {
        padding: 0 16px;
    }

    .hero-inner {
        padding: 70px 16px 60px;
    }

    .hero::after {
        background: linear-gradient(0deg, var(--bg) 10%, rgba(10, 10, 11, 0.7) 100%);
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .section {
        padding: 56px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band {
        padding: 30px 22px;
    }

    .cta-band .btn {
        width: 100%;
    }

    .dialog-actions {
        grid-template-columns: 1fr;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }
}

/* Menu : lien Documentation */
.nav a.nav-docs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-docs svg {
    width: 16px;
    height: 16px;
}

.page-head-link {
    margin-top: 18px !important;
}

.page-head-link svg,
.link-arrow svg:first-child:not(:last-child) {
    width: 18px;
    height: 18px;
}

/* Fiche script : fonctionnalités et prérequis */
.product-details {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 44px;
    padding: 0 0 50px;
    border-top: 1px solid var(--line);
    padding-top: 44px;
}

.product-details h2 {
    font-size: 36px;
    margin-bottom: 18px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: flex;
    gap: 12px;
    color: #d4d4d8;
}

.feature-list svg {
    width: 20px;
    height: 20px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 3px;
}

.req-list,
.doc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-chips {
    margin-top: 18px;
}

.chip {
    font: 13px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 5px 12px;
    color: #d4d4d8;
}

.req-note {
    color: var(--muted);
    margin-top: 18px;
    font-size: 15px;
}

.req-note a {
    color: var(--text);
}

/* Documentation : index */
.doc-group + .doc-group {
    margin-top: 50px;
}

.doc-group > h2 {
    font-size: clamp(30px, 3.5vw, 40px);
}

.doc-group-intro {
    color: var(--muted);
    margin: 8px 0 22px;
    max-width: 720px;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.doc-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.doc-card .feature-icon {
    margin-bottom: 4px;
}

.doc-card h3 {
    font-size: 26px;
}

.doc-card p {
    color: var(--muted);
    font-size: 15px;
}

.doc-card .link-arrow {
    margin-top: auto;
    padding-top: 6px;
}

/* Documentation : page */
.doc-head .card-cat {
    display: block;
    margin-bottom: 6px;
}

.doc-product {
    margin-top: 20px !important;
}

.doc {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.doc-toc {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.doc-toc p {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.doc-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
    border-left: 1px solid var(--line);
}

.doc-toc a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    padding: 6px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
}

.doc-toc a:hover {
    color: var(--text);
}

.doc-toc a.active {
    color: var(--text);
    border-left-color: var(--red);
}

.doc-body {
    max-width: 840px;
}

.doc-body > section {
    padding-bottom: 34px;
    scroll-margin-top: 90px;
}

.doc-body > section + section {
    border-top: 1px solid var(--line);
    padding-top: 34px;
}

.doc-body h2 {
    font-size: clamp(32px, 3.5vw, 42px);
    margin-bottom: 14px;
}

.doc-body h3 {
    font-size: 24px;
    margin: 24px 0 8px;
}

.doc-body p {
    color: #d4d4d8;
    margin-bottom: 12px;
}

.doc-body ul,
.doc-body ol {
    color: #d4d4d8;
    padding-left: 22px;
    margin: 0 0 14px;
}

.doc-body li {
    margin: 5px 0;
}

.doc-body li::marker {
    color: var(--red);
}

.doc-body a {
    color: #fff;
    text-underline-offset: 3px;
}

.doc-body code {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 0.86em;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 5px;
    overflow-wrap: anywhere;
}

.doc-body kbd {
    font-family: var(--body);
    font-size: 0.82em;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 7px;
    background: var(--surface);
    white-space: nowrap;
}

.doc-body .faq summary {
    font-size: 16px;
}

.code {
    margin: 14px 0 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0f0f11;
    overflow: hidden;
}

.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 16px;
    border-bottom: 1px solid var(--line);
    font: 13px ui-monospace, 'Cascadia Mono', Consolas, monospace;
    color: var(--muted);
}

.copy-code {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    padding: 5px 12px;
    font: 600 13px var(--body);
    cursor: pointer;
}

.copy-code:hover {
    border-color: var(--text);
}

.code pre {
    margin: 0;
    padding: 16px;
    overflow: auto;
    max-height: 440px;
    font: 13.5px/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace;
    color: #e4e4e7;
}

.doc-body .code pre code {
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
    overflow-wrap: normal;
}

.callout {
    border-left: 3px solid var(--red);
    background: rgba(225, 29, 36, 0.08);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin: 16px 0 20px;
}

.callout > strong {
    display: block;
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 21px;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout-info {
    border-left-color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.table-wrap {
    overflow-x: auto;
    margin: 14px 0 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.table-wrap th,
.table-wrap td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    color: #d4d4d8;
}

.table-wrap tr:last-child td {
    border-bottom: 0;
}

.table-wrap th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: var(--surface);
}

.table-wrap .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid var(--line-strong);
}

.doc-body .doc-steps {
    list-style: none;
    counter-reset: doc-step;
    padding: 0;
    margin: 18px 0;
}

.doc-steps > li {
    counter-increment: doc-step;
    position: relative;
    padding-left: 54px;
    margin: 0 0 24px;
}

.doc-steps > li::before {
    content: counter(doc-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-steps > li h3 {
    margin: 3px 0 6px;
}

.chain-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.chain-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.chain-step strong {
    display: block;
    font-family: var(--display);
    font-size: 42px;
    line-height: 1;
}

.chain-step b {
    display: block;
    font-weight: 700;
    margin: 4px 0;
}

.chain-step span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.chain-step.final {
    border-color: var(--red);
}

.chain-step.final strong {
    color: var(--red);
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.station {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
}

.station .item {
    font: 12px ui-monospace, 'Cascadia Mono', Consolas, monospace;
    color: var(--red);
}

.doc-body .station h3 {
    margin: 2px 0 8px;
}

.doc-body .station ul {
    margin-bottom: 0;
    font-size: 15px;
}

/* Pied de page : 4 colonnes */
.footer-grid {
    grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
}

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

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .doc {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .doc-toc {
        position: static;
        max-height: none;
    }

    .doc-toc ol {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        border: 0;
    }

    .doc-toc a {
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        padding: 5px 12px;
        margin: 0;
    }

    .product-details {
        grid-template-columns: 1fr;
    }

    .chain-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .station-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
