.z18-version-page,
.z18-equipe-page {
    --info-red: #e5483f;
    --info-dark: #262a2f;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.z18-info-hero {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 20px;
    border-radius: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 25%, rgba(229, 72, 63, .22), transparent 25%),
        linear-gradient(120deg, #262a2f, #30363d);
    box-shadow: 0 12px 30px rgba(31, 37, 46, .14);
}

.z18-info-hero-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
}

.z18-info-hero-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    color: #fff;
    background: rgba(229, 72, 63, .2);
    font-size: 23px;
}

.z18-info-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #ff928c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.z18-info-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 29px);
}

.z18-info-hero p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
}

.version-hero-badge {
    min-width: 150px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
}

.version-hero-badge small,
.version-hero-badge strong,
.version-hero-badge span {
    display: block;
}

.version-hero-badge small {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    text-transform: uppercase;
}

.version-hero-badge strong {
    margin-top: 3px;
    color: #fff;
    font-size: 13px;
}

.version-hero-badge span {
    margin-top: 2px;
    color: #ff928c;
    font-size: 10px;
}

.z18-version-page .z18-page-body,
.z18-equipe-page .z18-page-body {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}

.version-current {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid rgba(10, 179, 156, .18);
    border-left: 3px solid #0ab39c;
    border-radius: 10px;
    background: rgba(10, 179, 156, .055);
}

.version-current-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 10px;
    color: #0ab39c;
    background: rgba(10, 179, 156, .11);
    font-size: 20px;
}

.version-current small,
.version-current h2,
.version-current p {
    margin: 0;
}

.version-current small {
    color: #0a927f;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.version-current h2 {
    margin-top: 2px;
    color: #343a40;
    font-size: 15px;
}

.version-current p {
    margin-top: 3px;
    color: #717681;
    font-size: 11px;
}

.version-timeline {
    position: relative;
    padding-left: 22px;
}

.version-timeline::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: 2px;
    background: #e4e7eb;
    content: "";
}

.version-block {
    position: relative;
    margin-bottom: 10px;
    overflow: visible;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 10px;
    background: var(--vz-card-bg, #fff);
    box-shadow: 0 2px 5px rgba(56, 65, 74, .055);
}

.version-block summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    cursor: pointer;
    list-style: none;
}

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

.version-timeline-dot {
    position: absolute;
    top: 24px;
    left: -22px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #adb5bd;
    box-shadow: 0 0 0 1px #d8dce2;
}

.version-block[open] .version-timeline-dot {
    background: #e5483f;
}

.version-summary-copy {
    min-width: 0;
    flex: 1;
}

.version-summary-copy small {
    color: #e5483f;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.version-summary-copy h3 {
    margin: 2px 0 0;
    color: #343a40;
    font-size: 14px;
}

.version-summary-copy p {
    margin: 4px 0 0;
    color: #717681;
    font-size: 11px;
}

.version-toggle {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 7px;
    color: #878a99;
    background: #f3f6f9;
    font-size: 17px;
}

.version-block[open] .version-toggle {
    color: #fff;
    background: #e5483f;
    transform: rotate(180deg);
}

.version-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

.version-section {
    margin: 0;
    padding: 12px;
    border: 1px solid #e8eaee;
    border-radius: 8px;
    background: #fafbfc;
}

.version-section h4 {
    margin: 0 0 8px;
    color: #343a40;
    font-size: 11px;
}

.version-section h4 i {
    margin-right: 3px;
    color: #0ab39c;
}

.version-section ul {
    margin: 0;
    padding-left: 17px;
}

.version-section li {
    margin-bottom: 4px;
    color: #626873;
    font-size: 10px;
    line-height: 1.55;
}

.equipe-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(76px, 1fr));
    gap: 8px;
}

.equipe-hero-stats > div {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    text-align: center;
}

.equipe-hero-stats small,
.equipe-hero-stats strong {
    display: block;
}

.equipe-hero-stats small {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    text-transform: uppercase;
}

.equipe-hero-stats strong {
    margin-top: 2px;
    color: #fff;
    font-size: 18px;
}

.equipe-hero-stats .is-online strong {
    color: #57d59b;
}

.equipe-role-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.equipe-role-chip {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #e4e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(56, 65, 74, .04);
    color: inherit;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.equipe-role-chip:hover {
    border-color: rgba(229, 72, 63, .28);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.equipe-role-chip i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 9px;
    font-size: 18px;
}

.equipe-role-chip span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.equipe-role-chip strong {
    color: #343a40;
    font-size: 13px;
    line-height: 1.2;
}

.equipe-role-chip small {
    color: #878a99;
    font-size: 11px;
}

.equipe-role-chip--admin i { color: #e5483f; background: rgba(229, 72, 63, .1); }
.equipe-role-chip--modo i { color: #299cdb; background: rgba(41, 156, 219, .12); }
.equipe-role-chip--support i { color: #8e44ad; background: rgba(142, 68, 173, .12); }
.equipe-role-chip--scenario i { color: #d99b19; background: rgba(217, 155, 25, .14); }

.equipe-section-blurb {
    display: none;
    margin: 0 auto 0 8px;
    color: #878a99;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
}

.equipe-empty {
    padding: 22px 16px;
    color: #878a99;
    font-size: 13px;
    text-align: center;
}

.equipe-avatar-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #626873;
    font-size: 15px;
    font-weight: 800;
}

body.z18-velzon-test .z18-equipe-page .equipe-section {
    overflow: hidden;
    border: 1px solid var(--vz-border-color, #e9ebec) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(56, 65, 74, .06) !important;
}

body.z18-velzon-test .z18-equipe-page .equipe-section .z18-card-title {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid #e9ebec !important;
    color: #343a40 !important;
    background:
        linear-gradient(180deg, #fff 0%, #fafbfc 100%) !important;
    font-size: 13px;
}

@media (min-width: 900px) {
    .equipe-section-blurb {
        display: inline;
    }
}

.z18-equipe-page .equipe-section .z18-card-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.z18-equipe-page .equipe-section .z18-card-title i {
    font-size: 18px;
}

.z18-equipe-page .equipe-section .z18-card-title strong {
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    color: #e5483f;
    background: rgba(229, 72, 63, .09);
    font-size: 12px;
}

.z18-equipe-page .equipe-section--modo .z18-card-title strong {
    color: #299cdb;
    background: rgba(41, 156, 219, .12);
}

.z18-equipe-page .equipe-section--support .z18-card-title strong {
    color: #8e44ad;
    background: rgba(142, 68, 173, .12);
}

.z18-equipe-page .equipe-section--scenario .z18-card-title strong {
    color: #b8840f;
    background: rgba(217, 155, 25, .14);
}

.z18-equipe-page .equipe-mini-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    padding: 14px;
}

.z18-equipe-page .equipe-mini-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 14px;
    border: 1px solid #e3e6ea;
    border-left: 3px solid #adb5bd;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
    box-shadow: 0 2px 8px rgba(56, 65, 74, .05);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.z18-equipe-page .equipe-mini-card:hover {
    border-color: #d5dae1;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.z18-equipe-page .equipe-role-admin { border-left-color: #e5483f; }
.z18-equipe-page .equipe-role-modo { border-left-color: #299cdb; }
.z18-equipe-page .equipe-role-support { border-left-color: #8e44ad; }
.z18-equipe-page .equipe-role-scenario { border-left-color: #d99b19; }
.z18-equipe-page .equipe-role-autre { border-left-color: #878a99; }

.z18-equipe-page .equipe-mini-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.z18-equipe-page .equipe-grade {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    background: #f8f9fb;
}

.z18-equipe-page .equipe-grade img {
    max-width: 36px;
    max-height: 36px;
}

.z18-equipe-page .equipe-state {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.z18-equipe-page .equipe-state.on {
    color: #078675;
    background: rgba(10, 179, 156, .12);
}

.z18-equipe-page .equipe-state.off {
    color: #878a99;
    background: #eef1f5;
}

.z18-equipe-page .equipe-mini-card h3 {
    margin: 12px 0 3px;
    color: #343a40;
    font-size: 16px;
    line-height: 1.2;
}

.z18-equipe-page .equipe-mini-role {
    color: #626873;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.z18-equipe-page .equipe-role-admin .equipe-mini-role { color: #e5483f; }
.z18-equipe-page .equipe-role-modo .equipe-mini-role { color: #299cdb; }
.z18-equipe-page .equipe-role-support .equipe-mini-role { color: #8e44ad; }
.z18-equipe-page .equipe-role-scenario .equipe-mini-role { color: #b8840f; }

.z18-equipe-page .equipe-mini-info {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.z18-equipe-page .equipe-mini-info span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    color: #626873;
    background: #f6f7f9;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.z18-equipe-page .equipe-mini-info i {
    color: #878a99;
}

.z18-equipe-page .equipe-mini-contact {
    margin-top: auto;
    padding-top: 12px;
}

.z18-equipe-page .equipe-mini-contact a,
.z18-equipe-page .equipe-mini-contact span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #626873;
    background: #eef1f5;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.z18-equipe-page .equipe-mini-contact a:hover {
    color: #fff;
    background: #e5483f;
}

@media (max-width: 960px) {
    .equipe-role-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .equipe-role-nav {
        grid-template-columns: 1fr;
    }

    .z18-equipe-page .equipe-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* Règlement public et joueur */
body.z18-reglement-modern {
    min-width: 0;
    margin: 0;
    color: #343a40;
    background: #f3f6f9;
    font-family: Arial, Helvetica, sans-serif;
}

.z18-reglement-modern .reglement-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    border-bottom: 1px solid rgba(229, 72, 63, .16);
    background: #262a2f;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .13);
}

.reglement-topbar-inner {
    display: flex;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    align-items: center;
    margin: 0 auto;
    gap: 18px;
}

.reglement-brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.reglement-brand span {
    color: #e5483f;
}

.reglement-topbar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
}

.reglement-topbar-title i {
    color: #ff817a;
    font-size: 16px;
}

.reglement-topbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.reglement-topbar-links span {
    color: rgba(255, 255, 255, .56);
    font-size: 10px;
}

.reglement-topbar-links a {
    padding: 8px 10px;
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    font-size: 10px;
    text-decoration: none;
}

.z18-reglement-modern #content > .centered {
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.reglement-page {
    width: 100%;
    padding: 22px 0 32px;
}

.reglement-hero {
    display: flex;
    min-height: 108px;
    align-items: center;
    gap: 15px;
    padding: 17px 20px;
    border-radius: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 25%, rgba(229, 72, 63, .22), transparent 25%),
        linear-gradient(120deg, #262a2f, #30363d);
    box-shadow: 0 12px 30px rgba(31, 37, 46, .14);
}

.reglement-hero-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(229, 72, 63, .2);
    font-size: 23px;
}

.reglement-hero > div {
    min-width: 0;
    flex: 1;
}

.reglement-hero small {
    color: #ff928c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reglement-hero h1 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 27px;
}

.reglement-hero p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
}

.reglement-update {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.reglement-update small,
.reglement-update strong {
    display: block;
}

.reglement-update strong {
    margin-top: 2px;
    color: #fff;
    font-size: 11px;
}

.reglement-card {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #e4e7eb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(56, 65, 74, .055);
}

.z18-reglement-modern .reglement-intro {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(229, 72, 63, .15);
    border-left: 3px solid #e5483f;
    border-radius: 8px;
    color: #626873;
    background: rgba(229, 72, 63, .045);
    font-size: 11px;
}

.z18-reglement-modern .reglement-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
}

.z18-reglement-modern .reglement-sommaire {
    position: sticky;
    top: 80px;
    padding: 11px;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    background: #f8f9fb;
}

.z18-reglement-modern .reglement-sommaire strong {
    padding: 3px 5px 9px;
    color: #343a40;
    font-size: 11px;
    text-transform: uppercase;
}

.z18-reglement-modern .reglement-sommaire a {
    padding: 7px 8px;
    border-radius: 5px;
    color: #626873;
    font-size: 10px;
}

.z18-reglement-modern .reglement-sommaire a:hover {
    color: #e5483f;
    background: rgba(229, 72, 63, .07);
}

.z18-reglement-modern .reglement-section {
    scroll-margin-top: 82px;
    margin: 0 0 10px;
    padding: 14px;
    border: 1px solid #e8eaee;
    border-radius: 8px;
    background: #fff;
}

.z18-reglement-modern .reglement-section h3 {
    margin: 0 0 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #eef0f2;
    color: #343a40;
    font-size: 14px;
}

.z18-reglement-modern .reglement-article {
    margin: 0 0 8px;
    color: #626873;
    font-size: 10px;
    line-height: 1.65;
}

.z18-reglement-modern .reglement-article span {
    display: inline-block;
    min-width: 27px;
    color: #e5483f;
}

.z18-reglement-modern .reglement-actions {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    background: #f8f9fb;
}

.z18-reglement-modern .reglement-actions .button-input {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #e5483f;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.z18-reglement-modern .reglement-actions .button-input.gray {
    color: #626873;
    background: #e9ecef;
}

@media (max-width: 900px) {
    .z18-info-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .version-sections {
        grid-template-columns: minmax(0, 1fr);
    }

    .z18-equipe-page .equipe-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .z18-info-hero,
    .reglement-hero {
        padding: 16px;
    }

    .version-hero-badge,
    .equipe-hero-stats {
        width: 100%;
    }

    .z18-equipe-page .equipe-mini-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .reglement-topbar-title,
    .reglement-topbar-links span {
        display: none;
    }

    .z18-reglement-modern #content > .centered {
        width: calc(100% - 20px) !important;
    }

    .reglement-page {
        padding-top: 10px;
    }

    .reglement-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .reglement-update {
        width: 100%;
    }

    .z18-reglement-modern .reglement-layout {
        display: block;
    }

    .z18-reglement-modern .reglement-sommaire {
        position: static;
        margin-bottom: 12px;
    }
}
