
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --night: #030817;
    --blue: #16baff;
    --cyan: #8bf2ff;
    --white: #edf8ff;
}

body {
    background: var(--night);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    height: 80px;
    padding: 0 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #030817;
    border-bottom: 1px solid #112541;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-symbol {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: white;
    background: linear-gradient(135deg, #0874ff, #8bf2ff);
    box-shadow: 0 0 20px #0874ff55;
}

.cyan {
    color: var(--cyan);
}

nav {
    display: flex;
    gap: 28px;
    font-size: 13px;
    color: #afc1df;
}

nav a:hover {
    color: var(--cyan);
}

.hero {
    min-height: 690px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 90px 20px;
    background:
        radial-gradient(ellipse at 50% 40%,
            #092f63 0%, transparent 42%),
        radial-gradient(ellipse at 90% 80%,
            #061f4b 0%, transparent 35%),
        linear-gradient(180deg, #030817, #06132c);
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #b8f5ff 1px, transparent 1.5px),
        radial-gradient(circle, #178cff 1px, transparent 1.5px),
        radial-gradient(circle, #ffffff 1px, transparent 1.5px);
    background-size: 97px 113px, 157px 139px, 211px 193px;
    background-position: 10px 20px, 50px 70px, 100px 10px;
    opacity: 0.55;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.tag {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--cyan);
    margin-bottom: 28px;
}

h1 {
    font-size: clamp(55px, 10vw, 112px);
    line-height: 0.95;
    letter-spacing: -5px;
    font-weight: 1000;
    color: #ffb13d;
    text-shadow:
        0 3px 0 #b95d16,
        0 7px 0 #63330f,
        0 0 38px #ff9b293d;
}

.smp {
    display: block;
    margin-top: 10px;
    color: #9df5ff;
    font-size: 0.8em;
    text-shadow:
        0 3px 0 #1672b8,
        0 0 30px #00cfff66;
}

.motto {
    margin-top: 38px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
}

.motto span {
    color: var(--blue);
    padding: 0 8px;
}

.description {
    max-width: 520px;
    margin: 22px auto 0;
    color: #b3c6e2;
    font-size: 15px;
    line-height: 1.9;
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 25px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}

.button:hover {
    transform: translateY(-3px);
}

.play {
    color: #031126;
    background: linear-gradient(110deg, #40dfff, #b4f8ff);
    box-shadow: 0 0 25px #13baff55;
}

.discord {
    border: 1px solid #278dff;
    color: white;
    background: #07142d;
}

.discord:hover {
    background: #102b50;
}

.footer-note {
    margin-top: 55px;
    color: #7088aa;
    font-size: 10px;
    letter-spacing: 4px;
}

.server-section {
    padding: 85px 20px;
    text-align: center;
    border-top: 1px solid #12233f;
    background: #050c1c;
}

.server-section h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 18px;
}

.server-section > p:not(.tag) {
    color: #aabbd5;
    line-height: 1.8;
    margin-bottom: 24px;
}

.small {
    font-size: 11px;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 30px 15px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #7d91af;
    border-top: 1px solid #12233f;
}

@media (max-width: 700px) {
    .navbar {
        height: auto;
        min-height: 75px;
        padding: 18px 5%;
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero {
        min-height: 620px;
        padding: 70px 18px;
    }

    h1 {
        letter-spacing: -2px;
    }

    .motto {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .description {
        font-size: 14px;
    }
}

/* ✨ ANIMATIONS DES ÉTOILES — HORIZON SMP */

.stars {
    animation: starDrift 100s linear infinite;
    will-change: background-position;
}

/* Les étoiles scintillent doucement */
.stars::before,
.stars::after {
    content: "";
    position: absolute;
    inset: -50%;
    pointer-events: none;
    background-repeat: repeat;
}

/* Petites étoiles cyan */
.stars::before {
    background-image:
        radial-gradient(circle, #a8f6ff 1.2px, transparent 2px),
        radial-gradient(circle, #24cfff 1px, transparent 2px),
        radial-gradient(circle, #ffffff 1px, transparent 2px);

    background-size: 173px 157px, 239px 211px, 307px 263px;
    background-position: 20px 30px, 90px 110px, 150px 60px;

    animation: twinkle 4s ease-in-out infinite alternate;
}

/* Quelques étoiles plus lumineuses */
.stars::after {
    background-image:
        radial-gradient(circle, #8bf2ff 1.5px, transparent 3px),
        radial-gradient(circle, #ffffff 1px, transparent 2.5px);

    background-size: 283px 251px, 197px 223px;
    background-position: 60px 80px, 120px 40px;

    animation: twinkle 6s ease-in-out infinite alternate-reverse;
    opacity: 0.5;
}

/* Déplacement lent du ciel étoilé */
@keyframes starDrift {
    from {
        background-position: 10px 20px, 50px 70px, 100px 10px;
    }

    to {
        background-position: 110px 120px, -50px 170px, 200px -90px;
    }
}

/* Variation de luminosité */
@keyframes twinkle {
    0% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.45;
    }
}

/* Respecte les préférences de réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .stars,
    .stars::before,
    .stars::after {
        animation: none;
        will-change: auto;
    }
}

/* CORRECTIF DES ÉTOILES ANIMÉES */

.hero {
    isolation: isolate;
}

.stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;

    background-image:
        radial-gradient(circle, #b8f5ff 1.5px, transparent 2px),
        radial-gradient(circle, #28cfff 1px, transparent 2px),
        radial-gradient(circle, #ffffff 1px, transparent 2px);

    background-size: 97px 113px, 157px 139px, 211px 193px;
    background-position: 10px 20px, 50px 70px, 100px 10px;

    animation: horizonStarsMove 35s linear infinite;
}

.stars::before,
.stars::after {
    content: "";
    position: absolute;
    inset: -100px;
    pointer-events: none;
    background-repeat: repeat;
}

.stars::before {
    background-image:
        radial-gradient(circle, #a8f6ff 2px, transparent 3px),
        radial-gradient(circle, #ffffff 1.5px, transparent 2.5px);
    background-size: 181px 167px, 257px 223px;
    background-position: 20px 40px, 90px 120px;
    animation: horizonTwinkle 2.5s ease-in-out infinite alternate;
}

.stars::after {
    background-image:
        radial-gradient(circle, #23cfff 1.5px, transparent 3px);
    background-size: 137px 149px;
    background-position: 50px 30px;
    animation: horizonTwinkle 4s ease-in-out infinite alternate-reverse;
}

@keyframes horizonStarsMove {
    from {
        background-position: 10px 20px, 50px 70px, 100px 10px;
    }

    to {
        background-position: 110px 120px, -50px 170px, 200px -90px;
    }
}

@keyframes horizonTwinkle {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stars,
    .stars::before,
    .stars::after {
        animation: none;
    }
}

/* ===== HORIZON SMP : MENU AMÉLIORÉ ===== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 78px;
    background: rgba(3, 8, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(22, 186, 255, 0.22);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.18);

    transition: border-color 0.3s, background 0.3s;
}

.navbar:hover {
    border-bottom-color: rgba(139, 242, 255, 0.5);
}

/* Logo */

.logo {
    gap: 12px;
    transition: transform 0.25s;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-symbol {
    border: 1px solid rgba(190, 245, 255, 0.55);
    box-shadow:
        0 0 12px rgba(22, 186, 255, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.12);
}

/* Liens du menu */

nav a {
    position: relative;
    padding: 10px 0;
    transition: color 0.25s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;
    border-radius: 5px;

    background: linear-gradient(90deg, #16baff, #a8f6ff);
    box-shadow: 0 0 10px rgba(22, 186, 255, 0.5);

    transition: width 0.25s ease;
}

nav a:hover {
    color: #a8f6ff;
}

nav a:hover::after {
    width: 100%;
}

/* Menu plus lisible sur petit écran */

@media (max-width: 700px) {
    .navbar {
        padding: 14px 5%;
        gap: 15px;
    }

    .logo {
        font-size: 14px;
    }

    nav {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 22px;
    }

    nav a {
        font-size: 12px;
    }
}

/* ===== CARTES HORIZON SMP ===== */

.server-section {
    position: relative;
    padding: 90px 8%;
    text-align: center;
    overflow: hidden;
}

.section-description {
    max-width: 650px;
    margin: 18px auto 0;
    color: #aebed8;
    line-height: 1.8;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.feature-card {
    position: relative;
    padding: 34px 26px;
    text-align: left;
    background: linear-gradient(
        145deg,
        rgba(17, 35, 67, 0.85),
        rgba(5, 13, 31, 0.95)
    );
    border: 1px solid rgba(67, 190, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(86, 224, 255, 0.8);
    box-shadow:
        0 15px 40px rgba(0, 153, 255, 0.12),
        0 0 18px rgba(39, 194, 255, 0.08);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 15px;
    background: rgba(35, 183, 255, 0.12);
    border: 1px solid rgba(91, 220, 255, 0.25);
    font-size: 25px;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: #eaf8ff;
    font-size: 22px;
}

.feature-card p {
    margin: 0;
    color: #aebed8;
    line-height: 1.8;
    font-size: 14px;
}

/* Adaptation aux petits écrans */

@media (max-width: 800px) {
    .feature-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 18px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .server-section {
        padding: 65px 6%;
    }
}
/* ===== SECTION DISCORD ===== */

.discord-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 7%;
    text-align: center;
    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 126, 255, 0.13),
            transparent 68%
        ),
        #050b19;
    border-top: 1px solid rgba(55, 183, 255, 0.12);
}

.discord-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.discord-glow {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(0, 145, 255, 0.12);
    filter: blur(100px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.discord-section h2 {
    margin: 18px 0;
    color: #f0f8ff;
    font-size: clamp(30px, 5vw, 48px);
}

.discord-description {
    max-width: 590px;
    margin: 0 auto;
    color: #aebed8;
    font-size: 15px;
    line-height: 1.9;
}

.discord-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding: 17px 27px;
    color: #04101f;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid rgba(177, 239, 255, 0.7);
    border-radius: 10px;
    background: linear-gradient(110deg, #31baff, #a5f0ff);
    box-shadow: 0 0 25px rgba(22, 186, 255, 0.2);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.discord-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(22, 186, 255, 0.4);
}

.discord-arrow {
    font-size: 20px;
}

.discord-note {
    margin-top: 28px;
    color: #6487aa;
    font-size: 10px;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .discord-section {
        padding: 75px 6%;
    }

    .discord-cta {
        padding: 15px 20px;
        gap: 10px;
    }
}
/* ===== FIL D'ACTUALITÉS HORIZON SMP ===== */

.news-timeline {
    position: relative;
    max-width: 760px;
    margin: 50px auto 0;
    text-align: left;
}

.news-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 15px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        #16baff,
        rgba(22, 186, 255, 0.12)
    );
    box-shadow: 0 0 12px rgba(22, 186, 255, 0.35);
}

.news-item {
    position: relative;
    padding-left: 52px;
    margin-bottom: 28px;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-marker {
    position: absolute;
    top: 28px;
    left: 7px;
    width: 18px;
    height: 18px;
    border: 3px solid #16baff;
    border-radius: 50%;
    background: #071126;
    box-shadow: 0 0 14px rgba(22, 186, 255, 0.6);
    z-index: 1;
}

.news-card {
    padding: 26px 30px;
    border: 1px solid rgba(67, 190, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        rgba(17, 35, 67, 0.88),
        rgba(5, 13, 31, 0.96)
    );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateX(6px);
    border-color: rgba(86, 224, 255, 0.65);
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.1);
}

.news-label {
    color: #68ddff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.news-card h3 {
    margin: 12px 0;
    color: #edf9ff;
    font-size: 21px;
}

.news-card p {
    margin: 0;
    color: #aebed8;
    font-size: 14px;
    line-height: 1.8;
}

.news-date {
    display: inline-block;
    margin-top: 18px;
    color: #70cfff;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

@media (max-width: 600px) {
    .news-item {
        padding-left: 38px;
    }

    .news-timeline::before {
        left: 10px;
    }

    .news-marker {
        left: 2px;
    }

    .news-card {
        padding: 22px 18px;
    }

    .news-card h3 {
        font-size: 18px;
    }
}
/* ===== ANIMATIONS AU DÉFILEMENT ===== */

@keyframes horizonReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ===== HORIZON: COSMIQUE + PIXEL ===== */

:root {
    --horizon-cyan: #55ddff;
    --horizon-blue: #168bff;
    --horizon-night: #050b19;
}

/* Fond cosmique subtil */

.hero {
    background-image:
        radial-gradient(
            circle at 50% 45%,
            rgba(0, 115, 255, 0.13),
            transparent 48%
        ),
        linear-gradient(
            180deg,
            rgba(3, 8, 23, 0.05),
            rgba(10, 35, 75, 0.2)
        );
}

/* Petits détails pixelisés dans les cartes */

.feature-card,
.news-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 4px;
    background: var(--horizon-cyan);
    box-shadow: 0 0 14px rgba(85, 221, 255, 0.55);
}

.feature-card::after,
.news-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    background: rgba(85, 221, 255, 0.5);
    clip-path: polygon(
        100% 0,
        100% 100%,
        0 100%
    );
    pointer-events: none;
}

/* Petit effet lumineux au survol */

.feature-card:hover,
.news-card:hover {
    border-color: rgba(85, 221, 255, 0.75);
    box-shadow:
        0 0 0 1px rgba(85, 221, 255, 0.05),
        0 12px 35px rgba(0, 140, 255, 0.12);
}

/* Accessibilité : réduire les animations si nécessaire */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== ACCENTS ORANGE HORIZON ===== */

:root {
    --horizon-orange: #ffad42;
    --horizon-orange-light: #ffd092;
}

/* Petits détails chauds sur les cartes */

.news-card::before,
.feature-card::before {
    background: linear-gradient(
        90deg,
        var(--horizon-orange),
        var(--horizon-orange-light)
    );
    box-shadow: 0 0 10px rgba(255, 173, 66, 0.22);
}

.news-card::after,
.feature-card::after {
    background: rgba(255, 173, 66, 0.45);
    box-shadow: -4px -4px 0 rgba(255, 173, 66, 0.08);
}

/* Contours légèrement dorés au survol */

.news-card:hover,
.feature-card:hover {
    border-color: rgba(255, 173, 66, 0.48);
    box-shadow: 0 10px 28px rgba(255, 145, 35, 0.07);
}

/* Petit reflet chaud sur le logo */

.logo-symbol {
    box-shadow:
        0 0 12px rgba(22, 186, 255, 0.2),
        0 0 18px rgba(255, 173, 66, 0.12);
}
/* ===== TITRE HORIZON SMP : EFFET PREMIUM ===== */

/* HORIZON : profondeur orange */

.hero h1 {
    text-shadow:
        0 2px 0 #d87920,
        0 4px 0 #9e4d17,
        0 0 18px rgba(255, 166, 55, 0.16);
}

/* SMP : lueur cyan */

.hero h1 .smp {
    text-shadow:
        0 2px 0 #168bbd,
        0 4px 0 #08618e,
        0 0 22px rgba(85, 221, 255, 0.3);
    transition: text-shadow 0.3s ease;
}

/* Petite intensification au survol */

.hero h1:hover {
    text-shadow:
        0 2px 0 #d87920,
        0 4px 0 #9e4d17,
        0 0 25px rgba(255, 166, 55, 0.3);
}

.hero h1:hover .smp {
    text-shadow:
        0 2px 0 #168bbd,
        0 4px 0 #08618e,
        0 0 30px rgba(85, 221, 255, 0.5);
}
