/* ============================================================
   AxDidatec — Fiche machine single
   ============================================================ */

.axd-machine {
    font-family: 'Inter', sans-serif;
}

/* ── Hero ─────────────────────────────────────────────────── */

.axd-machine__hero {
    background:
        linear-gradient(135deg, rgba(6,5,60,0.92) 0%, rgba(26,24,96,0.85) 100%),
        url('../axdidatec/assets/hero-catalogue.jpg') center 40% / cover no-repeat;
    padding: 48px 0 56px;
}

.axd-machine__hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.axd-machine__hero .axd-catalogue__breadcrumb,
.axd-machine__hero .axd-catalogue__breadcrumb a,
.axd-machine__hero .axd-catalogue__breadcrumb span {
    color: #fff !important;
}

.axd-machine__hero .axd-catalogue__breadcrumb-sep {
    color: rgba(255,255,255,0.5) !important;
}

.axd-machine__hero-body {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 24px;
}

.axd-machine__hero-text {
    flex: 1;
    min-width: 0;
}

.axd-machine__category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E2221B;
    background: rgba(226,34,27,0.12);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.axd-machine__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
}

.axd-machine__ref {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 28px;
}

.axd-machine__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.axd-machine__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, background 0.2s;
    white-space: nowrap;
}

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

.axd-machine__btn--primary {
    background: #E2221B;
    color: #fff;
}

.axd-machine__btn--primary:hover {
    opacity: 0.9;
    color: #fff;
}

.axd-machine__btn--secondary {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
}

.axd-machine__btn--secondary:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.axd-machine__btn--selection {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.axd-machine__btn--selection:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.axd-machine__btn--selection.is-selected {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.axd-machine__hero-img {
    flex-shrink: 0;
    width: 420px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.axd-machine__hero-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}

.axd-machine__img-placeholder {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

/* ── Tabs bar ─────────────────────────────────────────────── */

.axd-machine__tabs-bar {
    background: #fff;
    border-bottom: 1px solid rgba(6,5,60,0.08);
    position: sticky;
    top: 72px;
    z-index: 50;
}

.axd-machine__tabs-inner {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}

.axd-machine__tabs-inner::-webkit-scrollbar { display: none; }

.axd-machine__tab {
    flex-shrink: 0;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(6,5,60,0.5);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.axd-machine__tab:hover {
    color: #06053C;
}

.axd-machine__tab.is-active {
    color: #06053C;
    font-weight: 600;
    border-bottom-color: #E2221B;
}

/* ── Contenu ──────────────────────────────────────────────── */

.axd-machine__content {
    background: #F8F8FC;
    min-height: 400px;
    padding: 48px 0;
}

.axd-machine__content-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.axd-machine__tab-panel {
    display: none;
}

.axd-machine__tab-panel.is-active {
    display: block;
}

/* ── Wysiwyg ──────────────────────────────────────────────── */

.axd-machine__wysiwyg {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    border: 1px solid rgba(6,5,60,0.07);
    font-size: 15px;
    line-height: 1.7;
    color: #06053C;
    max-width: 860px;
}

.axd-machine__wysiwyg h2,
.axd-machine__wysiwyg h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: #06053C;
}

.axd-machine__wysiwyg h2:first-child,
.axd-machine__wysiwyg h3:first-child {
    margin-top: 0;
}

.axd-machine__wysiwyg ul,
.axd-machine__wysiwyg ol {
    padding-left: 20px;
    margin: 12px 0;
}

.axd-machine__wysiwyg li {
    margin-bottom: 6px;
}

.axd-machine__wysiwyg p {
    margin: 0 0 12px;
}

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

/* ── Documents ────────────────────────────────────────────── */

.axd-machine__docs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.axd-machine__doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(6,5,60,0.08);
    text-decoration: none;
    color: #06053C;
    font-size: 14px;
    font-weight: 500;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.axd-machine__doc:hover {
    box-shadow: 0 4px 16px rgba(6,5,60,0.1);
    border-color: rgba(6,5,60,0.15);
    color: #06053C;
}

.axd-machine__doc svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #E2221B;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .axd-machine__hero-body {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .axd-machine__hero-img {
        width: 100%;
        height: 220px;
    }

    .axd-machine__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .axd-machine__hero-inner,
    .axd-machine__tabs-inner,
    .axd-machine__content-inner {
        padding: 0 16px;
    }

    .axd-machine__wysiwyg {
        padding: 20px;
    }
}
