:root {
    --bg: #f3f8ee;
    --surface: #ffffff;
    --surface-soft: #f9fcf6;
    --surface-green: #eef8e8;
    --line: #d8e7cc;
    --line-strong: #c0d9ad;
    --text: #18343a;
    --text-soft: #5a7174;
    --green: #35c04b;
    --green-dark: #25963a;
    --green-soft: #e6f8e1;
    --blue-soft: #eaf6fb;
    --shadow: 0 18px 45px rgba(23, 72, 29, 0.10);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(83, 197, 78, .12), transparent 22%),
        linear-gradient(180deg, #f9fcf7 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-shell { overflow: hidden; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(249, 252, 247, 0.82);
    border-bottom: 1px solid rgba(192, 217, 173, 0.75);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-weight: 800;
}

.brand-badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    background: linear-gradient(180deg, #50d25c, #2ca93f);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1);
}

.brand-text { text-transform: lowercase; letter-spacing: -.02em; }

.main-nav,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-nav a {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 999px;
}

.main-nav a:hover { background: rgba(53, 192, 75, .08); color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 20px;
    font-weight: 800;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(32, 109, 46, .12);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, var(--green), var(--green-dark));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1);
}

.btn-soft {
    color: var(--text);
    background: rgba(255, 255, 255, .76);
    border-color: var(--line);
}

.btn-lg {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
}

.hero {
    padding: 42px 0 26px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 26px;
    align-items: center;
}

.hero-copy {
    padding: 16px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    color: #2d8a3b;
    font-weight: 800;
    font-size: 13px;
}

.hero h1,
.section-head h2,
.split-copy h2,
.play-copy h2 {
    margin: 16px 0 0;
    line-height: .98;
    letter-spacing: -.04em;
}

.hero h1 { font-size: clamp(42px, 7vw, 72px); max-width: 11ch; }
.section-head h2,
.split-copy h2,
.play-copy h2 { font-size: clamp(32px, 5vw, 48px); }

.hero p,
.split-copy p,
.play-copy p,
.site-footer p,
.community-body p {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.hero p { max-width: 60ch; margin: 18px 0 0; }
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
}

.hero-points li {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-card,
.media-card,
.community-visual {
    border-radius: 28px;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.hero-card-landscape {
    position: absolute;
    inset: 0 0 84px 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.08)),
        url('../images/minecraft-multijoueur.webp') center/cover no-repeat,
        linear-gradient(180deg, #a7ddff 0%, #d8f0ff 38%, #83c86a 39%, #5ab95c 58%, #408b43 100%);
}

.hero-card-landscape::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(160deg, transparent 50%, rgba(255,255,255,.22) 100%),
        radial-gradient(circle at 16% 82%, rgba(255,255,255,.22), transparent 25%);
}

.hero-card-mascot {
    display: none;
}

.hero-card-mascot::before,
.hero-card-mascot::after {
    content: "";
    position: absolute;
    top: 78px;
    width: 22px;
    height: 28px;
    background: #1d3b3d;
    border-radius: 8px;
}
.hero-card-mascot::before { left: 58px; }
.hero-card-mascot::after { right: 58px; }


.section-head {
    margin-bottom: 28px;
}
.section-head-center {
    text-align: center;
    display: grid;
    justify-items: center;
}
.section-head.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 14px; }

.services,
.community,
.stats-band,
.explore-band { padding: 24px 0 28px; }

.service-grid,
.mini-card-grid,
.community-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card,
.mini-card,
.stat-box {
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.service-card {
    padding: 18px 18px 22px;
    border-radius: 24px;
}
.service-icon {
    width: 100%;
    height: 170px;
    display: block;
    border-radius: 18px;
    background-color: var(--surface-green);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 0;
    margin-bottom: 18px;
}
.service-grid .service-card:nth-child(1) .service-icon { background-image: url('../images/minecraft-hebergement.webp'); }
.service-grid .service-card:nth-child(2) .service-icon { background-image: url('../images/minecraft-forum.webp'); }
.service-grid .service-card:nth-child(3) .service-icon { background-image: url('../images/minecraft-liste-serveurs.webp'); }
.service-card h3,
.community-body h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.03em;
}
.service-card p {
    margin: 10px 0 14px;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 15px;
}
.service-card a {
    color: var(--green-dark);
    font-weight: 800;
}

.split-section,
.play-section { padding: 20px 0 28px; }
.split-grid,
.play-grid {
    display: grid;
    grid-template-columns: .98fr 1.02fr;
    gap: 26px;
    align-items: center;
}
.play-grid { grid-template-columns: 1fr 1fr; }

.media-card {
    min-height: 360px;
    background-color: #fff;
}
.media-hosting {
    background:
        linear-gradient(180deg, rgba(19,31,46,.04), rgba(19,31,46,.1)),
        url('../images/minecraft-hebergement.webp') center/cover no-repeat,
        linear-gradient(180deg, #183950 0%, #243a56 34%, #3b6a4d 78%, #7ab25c 100%);
}
.media-hosting::before,
.media-play::before,
.community-forum::before,
.community-list::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.0));
}

.media-play {
    background:
        radial-gradient(circle at 58% 22%, rgba(255,255,255,.12), transparent 16%),
        url('../images/minecraft-serveur-crossplay.webp') center/cover no-repeat,
        linear-gradient(180deg, #b4e4ff 0%, #d8f2ff 35%, #8fd47a 36%, #6abc61 64%, #4f9150 100%);
}

.split-copy,
.play-copy { padding: 10px 6px; }
.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
    display: grid;
    gap: 12px;
}
.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-soft);
    font-weight: 600;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green-dark);
    font-weight: 900;
}
.compact { margin-bottom: 18px; }

.explore-band {
    background: linear-gradient(180deg, rgba(234,246,251,.55), rgba(255,255,255,.0));
}
.mini-card-grid { grid-template-columns: repeat(4, 1fr); }
.mini-card {
    padding: 24px 18px;
    border-radius: 22px;
    text-align: center;
}
.mini-card strong {
    display: block;
    font-size: 18px;
    letter-spacing: -.02em;
}
.mini-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 14px;
}

.ip-box {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.ip-box span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-soft);
    font-weight: 800;
}
.ip-box strong {
    font-size: clamp(20px, 4vw, 28px);
    letter-spacing: -.03em;
    padding: 0 10px 0 10px;
}

.community-grid { grid-template-columns: repeat(2, 1fr); }
.community-card {
    display: grid;
    grid-template-rows: 220px auto;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.community-visual { border-radius: 0; border: 0; box-shadow: none; }
.community-forum {
    background:
        url('../images/minecraft-forum.webp') center/cover no-repeat,
        linear-gradient(180deg, #dff0ff 0%, #eaf7ff 32%, #7fca70 33%, #6abf62 60%, #427448 100%);
}
.community-list {
    background:
        url('../images/minecraft-liste-serveurs.webp') center/cover no-repeat,
        linear-gradient(180deg, #fff0bf 0%, #fff8e4 34%, #95d87d 35%, #77be69 60%, #4a7f4d 100%);
}
.community-body { padding: 24px; }

.stats-band { padding-bottom: 40px; }
.stats-grid { grid-template-columns: repeat(3, 1fr); }
.stat-box {
    padding: 30px 24px;
    border-radius: 26px;
    text-align: center;
}
.stat-box strong {
    display: block;
    font-size: clamp(36px, 5vw, 54px);
    letter-spacing: -.05em;
}
.stat-box span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-weight: 600;
}

.site-footer {
    padding: 36px 0 48px;
    border-top: 1px solid rgba(192, 217, 173, 0.6);
    background: rgba(255,255,255,.35);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr;
    gap: 22px;
}
.footer-brand {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
}
.site-footer h4 {
    margin: 0 0 12px;
    font-size: 15px;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.site-footer li,
.site-footer p,
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 1080px) {
    .main-nav {
        display: flex;
        width: 100%;
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-grid,
    .split-grid,
    .play-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .service-grid,
    .mini-card-grid,
    .stats-grid,
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { min-height: 430px; }
}

@media (max-width: 720px) {
    .topbar-inner,
    .topbar-actions,
    .main-nav { flex-wrap: wrap; }
    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .main-nav a {
        text-align: center;
        padding: 8px 10px;
    }
    .topbar-actions { width: 100%; }
    .topbar-actions .btn { flex: 1; }
    .hero,
    .services,
    .community,
    .stats-band,
    .explore-band,
    .split-section,
    .play-section { padding-top: 18px; }
    .service-grid,
    .mini-card-grid,
    .stats-grid,
    .community-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 100%; }
    .hero-visual { min-height: 360px; }
    .hero-card-mascot {
        width: 150px;
        height: 150px;
    }
    .hero-card-mascot::before,
    .hero-card-mascot::after {
        top: 56px;
        width: 18px;
        height: 24px;
    }
    .hero-card-mascot::before { left: 42px; }
    .hero-card-mascot::after { right: 42px; }
    .community-card { grid-template-rows: 180px auto; }
}


/* Shared public UI copied from the home page look */
.public-body {
    background:
        radial-gradient(circle at top right, rgba(83, 197, 78, .12), transparent 22%),
        linear-gradient(180deg, #f9fcf7 0%, #f3f8ee 100%);
}
.public-page-main {
    padding: 0 0 26px;
}
.public-container {
    width: min(calc(100% - 32px), 1220px);
    margin: 0 auto;
}
.public-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(249, 252, 247, 0.82);
    border-bottom: 1px solid rgba(192, 217, 173, 0.75);
}
.public-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 82px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}
.public-brand {
    display: inline-flex;
    align-items: center;
}
.public-brand img {
    width: 200px;
    max-width: 100%;
    display: block;
}
.public-main-nav,
.public-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.public-main-nav a {
    color: #5a7174;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
}
.public-main-nav a.active,
.public-main-nav a:hover {
    background: rgba(53, 192, 75, .08);
    color: #18343a;
}
.public-main-nav {
    flex: 1 1 320px;
    justify-content: center;
}
.public-topbar-actions {
    justify-content: flex-end;
    flex: 0 1 auto;
}
.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.public-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(32, 109, 46, .12);
}
.public-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #35c04b, #25963a);
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1);
}
.public-btn-soft {
    color: #18343a;
    background: rgba(255, 255, 255, .76);
    border-color: #d8e7cc;
}
.public-btn-lg {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
}
.public-hero {
    padding: 42px 0 26px;
}
.public-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 26px;
    align-items: center;
}
.public-hero-copy {
    padding: 16px 0;
}
.public-hero-copy h1 {
    margin: 0;
    line-height: .98;
    letter-spacing: -.04em;
    font-size: clamp(42px, 7vw, 72px);
    max-width: 11ch;
    color: #18343a;
}
.public-hero-copy p {
    color: #5a7174;
    font-size: 17px;
    line-height: 1.7;
    max-width: 60ch;
    margin: 18px 0 0;
}
.public-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.public-hero-visual img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}
.public-content-shell {
    width: min(calc(100% - 32px), 1220px);
    margin: 0 auto;
}
@media (max-width: 1080px) {
    .public-main-nav {
        display: flex;
        width: 100%;
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
    }
    .public-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .public-topbar-inner,
    .public-topbar-actions,
    .public-main-nav { flex-wrap: wrap; }
    .public-main-nav {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .public-main-nav a {
        text-align: center;
        padding: 8px 10px;
    }
    .public-topbar-actions { width: 100%; }
    .public-topbar-actions .public-btn { flex: 1; min-width: 0; }
    .public-topbar-actions { justify-content: center; }
    .public-hero-copy h1 { max-width: 100%; }
}

/* Unified immersive background copied from the server list */
body,
body.public-body {
    background:
        linear-gradient(180deg, rgba(245, 249, 242, .78), rgba(239, 245, 236, .86)),
        radial-gradient(circle at top left, rgba(53, 192, 75, .18), transparent 24%),
        radial-gradient(circle at right center, rgba(21, 101, 216, .10), transparent 20%),
        url('/images/minecraft.webp') center center / cover no-repeat fixed !important;
    background-attachment: fixed, fixed, fixed, fixed !important;
}

@media (max-width: 1180px) {
    body,
    body.public-body {
        background-position: center top !important;
    }
}

@media (max-width: 760px) {
    body,
    body.public-body {
        background:
            linear-gradient(180deg, rgba(245, 249, 242, .86), rgba(239, 245, 236, .92)),
            url('/images/minecraft-liste-serveurs.webp') center top / cover no-repeat fixed !important;
        background-attachment: fixed, fixed !important;
    }
}



.server-list-seo-block {
    padding-top: 0;
}
#faq-home .community-card,
#why-minecraft-multi .service-card {
    min-height: 100%;
}
#final-cta {
    padding-top: 12px;
}

/* Footer commun Minecraft-Multi */
.mm-footer {
    margin-top: 46px;
    padding: 34px 0 22px;
    border-top: 1px solid rgba(192, 217, 173, .58);
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(238,248,232,.78));
}
.mm-footer-grid,
.footer-grid.mm-footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, .75fr));
    gap: 24px;
    align-items: start;
}
.mm-footer-brand,
.footer-brand.mm-footer-brand {
    display: inline-flex;
    color: var(--text, #1e2b1f);
    text-decoration: none;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.035em;
}
.mm-footer h4 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text, #1e2b1f);
}
.mm-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}
.mm-footer p,
.mm-footer li,
.mm-footer a {
    color: var(--text-soft, #58705d);
}
.mm-footer a {
    text-decoration: none;
    font-weight: 750;
}
.mm-footer a:hover {
    color: var(--text, #1e2b1f);
}
.mm-footer-small {
    margin-top: 10px;
    font-size: 13px;
    opacity: .86;
}
.mm-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(107,132,103,.16);
    color: var(--text-soft, #58705d);
    font-size: 13px;
    font-weight: 750;
}
@media (max-width: 900px) {
    .mm-footer-grid,
    .footer-grid.mm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 620px) {
    .mm-footer-grid,
    .footer-grid.mm-footer-grid {
        grid-template-columns: 1fr;
    }
    .mm-footer-bottom {
        display: grid;
    }
}
