/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    color: white;
    text-align: center;
    background: #060d1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                backdrop-filter 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
}

.header.scrolled {
    background: rgba(6, 13, 26, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header .logo-container {
    display: flex;
    align-items: center;
    margin-left: 25px;
    text-decoration: none;
    color: inherit;
}

.header .logo-container img {
    height: 46px;
    margin-right: 10px;
}

.header .logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: white;
}

.nav {
    display: flex;
    gap: 50px;
    margin-right: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2A6BFF;
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover {
    color: white;
}

.nav a:hover::after {
    width: 100%;
}

/* ===== HERO / CONTAINER ===== */
.container {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('../ressources/boat_id.webp') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(6, 13, 26, 0.78) 0%,
        rgba(6, 13, 26, 0.68) 40%,
        rgba(6, 13, 26, 0.80) 80%,
        rgba(6, 13, 26, 0.97) 100%
    );
    z-index: 1;
}

/* Glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    z-index: 2;
    pointer-events: none;
}

.hero-glow--blue {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2A6BFF 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation: glowFloat1 8s ease-in-out infinite;
}

.hero-glow--purple {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6b3fa0 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation: glowFloat2 10s ease-in-out infinite;
}

.hero-glow--cyan {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6b9fff 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowFloat3 12s ease-in-out infinite;
}

@keyframes glowFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 30px); }
}

@keyframes glowFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -40px); }
}

@keyframes glowFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* ===== HERO CONTENT ===== */
.content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 900px;
}

.content h1 {
    font-size: 62px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.content h1 .accent {
    background: linear-gradient(135deg, #2A6BFF, #6b9fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-cta {
    margin-top: 36px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.hero-cta a {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2A6BFF, #4d8bff);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(42, 107, 255, 0.3);
}

.hero-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(42, 107, 255, 0.45);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.scroll-down i {
    font-size: 20px;
    color: rgba(255,255,255,0.5);
    animation: scrollBounce 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(12px); opacity: 1; }
}

/* ===== PARTICLE CANVAS ===== */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #060d1a;
    width: 100%;
    padding: 60px 0 30px;
    color: white;
}

.footer .top {
    text-align: center;
    opacity: 0.2;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
}

.footer .subtitle {
    font-size: 14px;
    margin-top: 12px;
    letter-spacing: 5px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
}

.subtitle-partner {
    font-size: 13px;
    font-style: italic;
    margin-top: 25px;
    letter-spacing: 3px;
    font-weight: 400;
    color: rgba(255,255,255,0.35);
}

.logo-partner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 0 5%;
}

.logo-partner img {
    max-width: 140px;
    opacity: 0.2;
    width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-partner img:hover {
    opacity: 0.45;
}

.footer .separator {
    width: 90%;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 40px auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    text-align: left;
    gap: 20px;
}

.footer .footer-block {
    text-decoration: none;
}

.footer-block.large {
    flex: 2;
    min-width: 250px;
}

.footer-block.small {
    flex: 1;
    min-width: 180px;
}

.footer-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 24px;
    color: white;
}

.footer-content a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #6b9fff;
}

.footer-block p {
    margin-bottom: 18px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.footer-block i {
    color: #6b9fff;
    font-size: 14px;
    margin-right: 8px;
}

/* Newsletter form */
.newsletter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-input {
    flex: 1;
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-input::placeholder {
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

.footer-input:focus {
    border-color: #2A6BFF;
    background: rgba(42, 107, 255, 0.08);
}

.newsletter-button {
    background: linear-gradient(135deg, #2A6BFF, #4d8bff);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(42, 107, 255, 0.25);
}

.newsletter-button i {
    font-size: 14px;
}

.newsletter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(42, 107, 255, 0.4);
}

/* Footer bottom bar */
.footer .bottom-bar {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 10px auto;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.footer .bottom-bar a {
    text-decoration: none;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s ease;
}

.footer .bottom-bar a:hover {
    color: rgba(255,255,255,0.6);
}

.footer .bottom-text {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ===== SNACKBAR ===== */
.snackbar {
    visibility: hidden;
    min-width: 280px;
    margin-left: -140px;
    background: linear-gradient(135deg, #2A6BFF, #4d8bff);
    color: white;
    text-align: center;
    border-radius: 999px;
    padding: 14px 24px;
    position: fixed;
    z-index: 999;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.snackbar.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.snackbar.error {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
}

/* ===== ENCART POPUP (Glassmorphism) ===== */
.encart-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    color: white;
    border-radius: 20px;
    padding: 24px 28px 24px 24px;
    max-width: 320px;
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: slide-up 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.encart-popup h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.encart-popup p {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin-bottom: 14px;
}

.encart-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2A6BFF, #4d8bff);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(42, 107, 255, 0.3);
}

.encart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(42, 107, 255, 0.5);
}

.encart-close {
    position: absolute;
    top: 12px;
    right: 14px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.encart-close:hover {
    color: white;
    transform: scale(1.2);
}

@keyframes slide-up {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-down {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(50px); opacity: 0; }
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: white;
    z-index: 105;
    margin-right: 25px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: 280px;
        margin-right: 0;
        background: rgba(6, 13, 26, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 28px;
        display: flex;
        border-left: 1px solid rgba(255,255,255,0.06);
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav a {
        font-size: 15px;
        color: rgba(255,255,255,0.72);
    }

    .hamburger {
        display: block;
    }

    .header .logo {
        font-size: 13px;
    }

    .header .logo-container img {
        height: 34px;
    }

    .content h1 {
        font-size: 40px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-glow--blue {
        width: 300px;
        height: 300px;
    }

    .hero-glow--purple {
        width: 250px;
        height: 250px;
    }

    .hero-glow--cyan {
        width: 200px;
        height: 200px;
    }

    .footer .top {
        font-size: 22px;
    }

    .footer .subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .encart-popup {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}
