/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background: #000;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 10000;

    overflow: visible; /* 🔥 autorise le dépassement */
}
.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: #fcd550;
    opacity: 0.85;
}
.nav-links a {
    position: relative;
    padding: 6px 12px;
    border-radius: 20px;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: #fcd550;
}

.nav-links a.active::before {
    content: "";
    position: absolute;
    inset: -6px;

    background: rgba(252, 213, 80, 0.25);
    filter: blur(10px);

    border-radius: 20px;
    z-index: -1;
}


.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #ffd369;
}

.nav-container nav a {
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
}

.nav-container nav a:hover {
    color: #ffd369;
}

/* HERO */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)),
        url("../img/background.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative; /* ANCRE la transition */
    overflow: visible;  /* autorise le débordement */
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: #ffd369;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: #4CAF50;
    color: #fff;
}

.btn-secondary {
    background: #ff9800;
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}


.world-overlay {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.world-overlay h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffd369;
}

.world-overlay p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #ddd;
}

/* CARDS */
.world-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card h3 {
    margin-bottom: 10px;
    color: #ffd369;
}


.hero-transition {
    position: absolute;
    left: 0;
    bottom: -80px; /* ajuste selon la hauteur voulue */

    width: 100%;
    height: 500px;

    background: url("../img/transition-header-section-un.jpg") center bottom / cover no-repeat;

    z-index: 5000; /* AU-DESSUS DE TOUT */
    pointer-events: none; /* évite tout bug de clic */
}
/* SECTION DEUX - FIXE EN PLACE */
.section-deux {
    position: relative; /* ou supprime totalement position */

    width: 100%;
    height: min(80vh, 800px);
    min-height: 400px;

    background-image: url("../img/background-section-deux.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}


.section-deux-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
    max-width: 1200px;
    color: #fff;
}

.section-deux-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffd369;
}

.section-deux-content p {
    font-size: 18px;
    color: #ddd;
}
/* SECTION TROIS - FIXE EN PLACE COMME SECTION DEUX */
.section-trois {
    position: relative;

    width: 100%;
    height: min(60vh, 500px);
    min-height: 300px;

    background-image: url("../img/background-section-trois.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;
}




.wiki-button {
    --size: 320px; /* 🔥 change juste ça */

    position: relative;
    z-index: 2;

    width: var(--size);
    height: var(--size);

    display: block;
    cursor: pointer;
}


/* IMAGE */


/* HOVER */
.wiki-button:hover::before {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

/* CLICK */
.wiki-button:active::before {
    transform: scale(0.97);
}

/* =========================
   FOOTER PREMIUM HAYAMA
========================= */

.footer {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border-top: 2px solid #fcd550;
    color: #ddd;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;

    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* GAUCHE */

.footer-left img {
    max-width: 220px; /* 🔥 un peu plus gros */
    filter: drop-shadow(0 0 30px rgba(252, 213, 80, 0.4));
}

.footer-left {
    display: flex;
    align-items: center; /* base propre */

    margin-left: -80px; /* 🔥 beaucoup plus à gauche */
    margin-top: 20px;   /* 🔥 descend le logo */
}

/* CENTRE */
.footer-center h3,
.footer-right h3 {
    color: #fcd550;
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-center p {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}

/* DROITE */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;

    align-items: flex-start; /* 🔥 texte normal (gauche → droite) */
    text-align: left;

    margin-left: auto; /* 🔥 pousse le bloc à droite */
}


.footer-right a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.2s ease;
}

.footer-right a:hover {
    color: #fcd550;
    transform: translateX(4px);
}

/* SOUS FOOTER */
.footer-bottom {
    border-top: 1px solid rgba(252, 213, 80, 0.3);
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}


/* =========================
   PARTICULES GLOBAL AZURIOM
========================= */

.particles-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* PARTICULE DE BASE */
.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0;
}

/* ANIMATION */
@keyframes float {
    0% {
        transform: translateY(110vh) scale(0);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-10vh) translateX(var(--drift)) scale(1);
        opacity: 0;
    }
}

/* TYPES */
.particle.sparkle {
    background: radial-gradient(circle, rgba(255,215,0,.9), transparent 70%);
    box-shadow: 0 0 12px rgba(255,215,0,.8);
}

.particle.diamond {
    background: radial-gradient(circle, rgba(230,230,255,.9), transparent 70%);
    box-shadow: 0 0 10px rgba(230,230,255,.7);
}

.particle.glow {
    background: radial-gradient(circle, rgba(147,51,234,.8), transparent 70%);
    box-shadow: 0 0 14px rgba(147,51,234,.8);
}

/* MINI ÉTOILES */
.mini-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%,100% { opacity: .2; }
    50% { opacity: 1; }
}

/* ÉTOILE FILANTE */
.shooting-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, gold, transparent);
    border-radius: 50%;
    box-shadow: 0 0 25px gold;
    opacity: 0;
}

/* =========================
   SECTION QUATRE - CAROUSEL
   EFFET ROULEMENT MODERNE
========================= */

.section-quatre {
    width: 100%;
    height: min(70vh, 600px);
    min-height: 420px;

    background: url("../img/background-section-quatre.png") center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   FLÈCHES
========================= */

.carousel-arrow {
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-arrow.left {
    left: 40px;
    background: url("../img/fleche-section-quatre-gauche.png") center / contain no-repeat;
}

.carousel-arrow.right {
    right: 40px;
    background: url("../img/fleche-section-quatre-droite.png") center / contain no-repeat;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

/* =========================
   CAROUSEL - STRUCTURE
========================= */

.carousel {
    position: relative;
    width: 100%;
    height: 300px;
}

/* =========================
   ITEMS
========================= */

.carousel-item {
    width: 220px;
    height: 220px;

    position: absolute;
    left: 50%;
    top: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;

    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    z-index: 1;

transition:
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.9s ease,
    filter 1.2s ease,
    z-index 0s linear 0.8s;


    

}

/* =========================
   POSITIONS
========================= */

/* GAUCHE */
.carousel-item.left {
    transform: translate(-180%, -50%) scale(0.8);
    opacity: 0.6;
    z-index: 2;
    filter: blur(1px);
}

/* CENTRE */
.carousel-item.center,
.carousel-item.active {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 1;
    z-index: 3;

    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));

    /* animation démarre APRES le déplacement */
animation: floatIcon 5s ease-in-out infinite;
animation-delay: 1.1s;

}


/* DROITE */
.carousel-item.right {
    transform: translate(80%, -50%) scale(0.8);
    opacity: 0.6;
    z-index: 2;
    filter: blur(1px);
}

/* =========================
   IMAGES PAR TYPE
========================= */

.carousel-item[data-name="mine"] {
    background-image: url("../img/icone-mine.png");
}

.carousel-item[data-name="skyblock"] {
    background-image: url("../img/icone-skyblock.png");
}

.carousel-item[data-name="openworld"] {
    background-image: url("../img/icone-openworld.png");
}

/* =========================
   TEXTE
========================= */

.carousel-item span {
    margin-top: 15px;
    padding-top: 180px;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
}

/* =========================
   ANIMATION FLOTTANTE
========================= */

@keyframes floatIcon {
    0%   { transform: translate(-50%, -50%) scale(1.25) translateY(0); }
    50%  { transform: translate(-50%, -50%) scale(1.25) translateY(-4px); }
    100% { transform: translate(-50%, -50%) scale(1.25) translateY(0); }
}


#page-transition {
    position: fixed;
    inset: 0;

    /* Mur transparent */
    background: rgba(10, 10, 10, 0.35);

    /* Flou du site derrière */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#page-transition.active {
    opacity: 1;
    pointer-events: all;
}

.loader-container img {
    width: 120px;
    height: 120px;
    animation: fadeInScale 0.4s ease;
}

/* Petite animation douce à l’apparition */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   NAV - UTILISATEUR
========================= */

.nav-links {
    display: flex;
    align-items: center;
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 30px;
}


/* BOUTON CONNEXION */
.login-btn {
    position: absolute;

    width: 120px;
    height: 120px;

    right: 0;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}


.login-btn img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transition: transform 0.25s ease, filter 0.25s ease;
    
}


.login-btn:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 211, 105, 0.8));
}

/* UTILISATEUR CONNECTÉ */
.user-box {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 14px;
    border-radius: 30px;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);

    color: #fff;
    text-decoration: none;
    font-weight: bold;

    transition: background 0.3s, transform 0.2s;
}

.user-box img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.user-box:hover {
    background: rgba(255, 211, 105, 0.15);
    transform: translateY(-1px);
}

/* =========================
   SCROLLBAR HAYAMA
========================= */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-thumb {
    background: #fcd550;
    border-radius: 10px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd86a;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #fcd550 rgba(0,0,0,0.6);
}
