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

body {
    background: linear-gradient(135deg, rgb(63,63,255), purple);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

/* HERO VIDEO FULLSCREEN */
header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    animation: fadeIn 2s ease forwards;
    opacity: 0;
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 20px #000;
}

.hero-content a {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
}

.hero-content a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.4s;
    border-radius: 50px;
}

.hero-content a:hover::before {
    left: 0;
}

.hero-content a:hover {
    color: #000;
    background: #00f0ff;
    transform: scale(1.05);
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.nav-menu {
    list-style: none;
    display: flex;
    padding: 20px;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.nav-menu li a {
    text-decoration: none;
    color: #111;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 5px;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.active-light {
    background: #f3efe8;
}

/* CONTENT */
main {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 40px 20px;
    color: white;
}

main h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

main h2 {
    font-size: 1.4rem;
    margin-top: 5px;
    font-weight: 500;
}

main h3 {
    margin-top: 40px;
    font-size: 1.3rem;
}

main ul {
    margin-left: 1.2rem;
    margin-top: 10px;
}

main li {
    margin-bottom: 8px;
}

/* SECTIONS */
.section-highlight {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0,0,0,0.45);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}


.section-highlight:hover,
.section-info:hover,
.section-cards:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.1);
}

/* KURIBOH */
#kuriboh {
    margin-top: 30px;
    margin-bottom: 20px;
    background-image:
            linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
            url(https://images.unsplash.com/photo-1518810370118-0fde40f8b0f3?auto=format&fit=crop&w=2089&q=80);
    background-size: cover;
    color: white;
    padding: 3em 2em;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#kuriboh:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* MASCOTTE */
.mascot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: center;
    z-index: 100;
}

.mascot {
    width: 120px;
    cursor: pointer;
    animation: idleBounce 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes idleBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
    75% { transform: translateY(-5px) rotate(1deg); }
}

/* BULLE DE DIALOGUE */
.mascot-bulle {
    display: none;
    position: absolute;
    bottom: 140px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 14px 18px;
    max-width: 300px;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    text-align: left;
}

.mascot-bulle::after {
    content: "";
    position: absolute;
    bottom: -12px;
    right: 30px;
    border-width: 12px 12px 0 12px;
    border-style: solid;
    border-color: rgba(255,255,255,0.95) transparent transparent transparent;
}

.mascot-bulle.visible {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* FADEIN ANIMATION HERO */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px);}
    100% { opacity: 1; transform: translateY(0);}
}
