/* $SPONGE Memecoin - Main Stylesheet */

/* ==================== CSS VARIABLES ==================== */
:root {
    --color-yellow: #FFD93D;
    --color-yellow-dark: #F4C430;
    --color-blue: #00A6FB;
    --color-blue-dark: #0582CA;
    --color-blue-light: #87CEEB;
    --color-coral: #FF6B6B;
    --color-sand: #F5E6D3;
    --color-ocean: #003D82;
    --color-white: #FFFFFF;
    --color-gray: #333333;
    
    --font-display: 'Bangers', cursive;
    --font-hand: 'Patrick Hand', cursive;
    --font-body: 'Poppins', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 217, 61, 0.6);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-gray);
    background: url('../assets/images/bikini-bottom.png') center center / cover fixed no-repeat;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimisation pour appareils tactiles */
.touch-device * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Améliorer les zones tactiles sur mobile */
@media (max-width: 768px) {
    button, a, .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Background 100% visible - aucun overlay */

/* ==================== WELCOME POPUP ==================== */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.welcome-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.popup-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-enter-bikini {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: white;
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
    border: 4px solid #b47a3d;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.btn-enter-bikini:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 217, 61, 0.7);
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
}

.btn-enter-bikini:active {
    transform: scale(0.95);
}

@keyframes popupEntry {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de fermeture */
.welcome-popup.closing {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .btn-enter-bikini {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .btn-enter-bikini {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ==================== FLOATING SPONGEBOB ELEMENTS ==================== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-element {
    position: absolute;
    max-width: 150px;
    opacity: 0.85;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Patrick - Haut gauche */
.patrick {
    top: 12%;
    left: 8%;
    max-width: 100px;
    animation: floatUpDown 6s ease-in-out infinite, floatRotate 12s ease-in-out infinite;
}

/* Gary - Milieu gauche */
.gary {
    top: 48%;
    left: 6%;
    max-width: 90px;
    animation: floatSideways 7s ease-in-out infinite, floatUpDown 10s ease-in-out infinite;
    animation-delay: 1s, 0.5s;
}

/* Squidward - Haut droite */
.squidward {
    top: 18%;
    right: 7%;
    max-width: 105px;
    animation: floatRotate 8s ease-in-out infinite, floatDiagonal 11s ease-in-out infinite;
    animation-delay: 0.5s, 2s;
}

/* Mr. Krabs - Milieu droite */
.krabs {
    top: 52%;
    right: 10%;
    max-width: 95px;
    animation: floatUpDown 7s ease-in-out infinite, floatSideways 13s ease-in-out infinite;
    animation-delay: 2s, 1s;
}

/* Plankton - Bas gauche */
.plankton {
    bottom: 22%;
    left: 10%;
    max-width: 85px;
    animation: floatDiagonal 9s ease-in-out infinite, spin 20s linear infinite;
}

/* Sandy - Haut centre */
.sandy {
    top: 10%;
    left: 42%;
    max-width: 100px;
    animation: floatSideways 10s ease-in-out infinite, floatUpDown 8s ease-in-out infinite;
    animation-delay: 3s, 1.5s;
}

/* Krabby Patty - Centre gauche */
.patty {
    top: 62%;
    left: 18%;
    max-width: 95px;
    animation: spin 15s linear infinite, floatUpDown 7s ease-in-out infinite;
}

/* Spatula - Centre droite */
.spatula {
    top: 68%;
    right: 12%;
    max-width: 90px;
    animation: floatUpDown 6s ease-in-out infinite, floatRotate 14s ease-in-out infinite;
    animation-delay: 1.5s, 0s;
}

/* Clarinet - Bas droite */
.clarinet {
    bottom: 28%;
    right: 15%;
    max-width: 95px;
    animation: floatRotate 8s ease-in-out infinite, floatSideways 11s ease-in-out infinite;
    animation-delay: 2.5s, 1s;
}

/* Anchor - Bas centre */
.anchor {
    bottom: 18%;
    left: 45%;
    max-width: 100px;
    animation: sway 7s ease-in-out infinite, floatUpDown 9s ease-in-out infinite;
    animation-delay: 0s, 2s;
}

/* Jellyfish Net - Haut centre-gauche */
.net {
    top: 32%;
    left: 22%;
    max-width: 90px;
    animation: floatDiagonal 10s ease-in-out infinite, floatRotate 15s ease-in-out infinite;
    animation-delay: 1s, 3s;
}

/* Coral - Bas gauche */
.coral {
    bottom: 12%;
    left: 3%;
    max-width: 105px;
    animation: sway 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Seaweed - Bas centre */
.seaweed {
    bottom: 14%;
    left: 65%;
    max-width: 85px;
    animation: sway 5s ease-in-out infinite, floatSideways 12s ease-in-out infinite;
    animation-delay: 0s, 2s;
}

/* Rock - Bas droite */
.rock {
    bottom: 10%;
    right: 5%;
    max-width: 100px;
    animation: floatUpDown 9s ease-in-out infinite;
    animation-delay: 3s;
}

/* Flower Cloud - Haut droite */
.flower {
    top: 35%;
    right: 20%;
    max-width: 95px;
    animation: floatSideways 11s ease-in-out infinite, floatUpDown 8s ease-in-out infinite;
    animation-delay: 2s, 0.5s;
}

/* Animations pour éléments flottants */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-45px);
    }
}

@keyframes floatSideways {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(40px);
    }
}

@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-35px) rotate(15deg);
    }
}

@keyframes floatDiagonal {
    0%, 100% {
        transform: translate(0px, 0px);
    }
    50% {
        transform: translate(35px, -35px);
    }
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-8deg);
    }
    50% {
        transform: rotate(8deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive - masquer certains éléments sur mobile */
@media (max-width: 768px) {
    .squidward, .sandy, .clarinet, .net, .flower, .anchor {
        display: none;
    }
    
    .float-element {
        max-width: 70px;
    }
    
    /* Réduire l'intensité des animations sur mobile */
    @keyframes floatUpDown {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-25px);
        }
    }
    
    @keyframes floatSideways {
        0%, 100% {
            transform: translateX(0px);
        }
        50% {
            transform: translateX(20px);
        }
    }
}

@media (max-width: 576px) {
    .float-element {
        max-width: 60px;
        opacity: 0.7;
    }
    
    /* Simplifier encore plus les animations sur petits mobiles */
    .patrick, .gary, .krabs, .plankton, .patty, .spatula, .coral, .seaweed, .rock {
        animation-duration: 4s !important;
    }
}

/* ==================== BUBBLES BACKGROUND ==================== */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -150px;
    animation: rise linear infinite;
    pointer-events: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1;
}

.bubble:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(255, 217, 61, 0.6));
}

.bubble-special {
    filter: drop-shadow(0 0 20px rgba(255, 217, 61, 1)) 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            brightness(1.2);
    animation: rise linear infinite, glowPulse 2s ease-in-out infinite;
}

.bubble-special:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 30px rgba(255, 217, 61, 1)) 
            drop-shadow(0 0 20px rgba(255, 255, 255, 1))
            brightness(1.3);
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 217, 61, 1)) 
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
                brightness(1.2);
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(255, 217, 61, 1)) 
                drop-shadow(0 0 20px rgba(255, 255, 255, 1))
                drop-shadow(0 0 50px rgba(255, 200, 0, 0.6))
                brightness(1.4);
    }
}

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50vh) translateX(30px) rotate(180deg);
    }
    100% {
        transform: translateY(-110vh) translateX(-20px) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== AUDIO TOGGLE ==================== */
.audio-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-yellow);
    border: 3px solid var(--color-ocean);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.audio-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .audio-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .audio-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ==================== BUBBLE COUNTER ==================== */
.bubble-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--color-yellow);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 150;
    animation: slideInRight 0.6s ease-out;
}

.counter-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.counter-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#bubbleCount {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-ocean);
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 0 var(--color-yellow);
}

.counter-label {
    font-family: var(--font-hand);
    font-size: 0.8rem;
    color: var(--color-blue-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes slideInRight {
    from {
        transform: translateX(150px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive pour le compteur */
@media (max-width: 768px) {
    .bubble-counter {
        top: 10px;
        right: 10px;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .counter-icon {
        font-size: 2rem;
    }
    
    #bubbleCount {
        font-size: 1.5rem;
    }
    
    .counter-label {
        font-size: 0.7rem;
    }
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: sticky;
    top: 0;
    background: #f0e33f;
    /* Couleur jaune Bob l'Éponge */
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid #b47a3d;
    /* Bordure marron SpongeBob */
    z-index: 100;
    pointer-events: auto;
}

.navbar a,
.navbar button {
    pointer-events: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-ocean);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 968px) {
    .nav-menu {
        gap: 1rem;
    }
}

.nav-link {
    color: var(--color-ocean);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-yellow);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-socials {
    display: flex;
    gap: 1rem;
}

.nav-socials a {
    color: var(--color-ocean);
    transition: var(--transition);
}

.nav-socials a:hover {
    color: var(--color-blue);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-ocean);
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    padding: 150px 0 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    /* Pas de fond - background Bikini Bottom visible */
}

@media (max-width: 968px) {
    .hero {
        padding: 120px 0 120px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
        min-height: 85vh;
    }
}

/* Éléments interactifs du hero cliquables */
.hero a,
.hero button,
.hero .btn {
    pointer-events: auto;
}

.hero-character {
    margin-bottom: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.spongebob-img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-decorations {
    position: relative;
    margin-top: 2rem;
}

.decoration {
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

.pineapple {
    max-width: 200px;
    left: -150px;
    top: -100px;
    animation-delay: 0.5s;
}

.jellyfish {
    max-width: 120px;
    right: -100px;
    top: -80px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@media (max-width: 968px) {
    .spongebob-img {
        max-width: 200px;
    }
    
    .pineapple, .jellyfish {
        display: none; /* Masquer sur mobile pour clarté */
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--color-ocean);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 var(--color-yellow), 0 0 30px rgba(255, 255, 255, 1), 0 0 50px rgba(255, 217, 61, 0.8);
    -webkit-text-stroke: 2px rgba(255, 217, 61, 0.4);
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-family: var(--font-hand);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-ocean);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.9), 2px 2px 5px rgba(255, 217, 61, 0.6);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mindshare Dropdown */
.mindshare-dropdown {
    position: relative;
    display: inline-block;
}

.mindshare-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 10px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid var(--color-yellow);
}

.mindshare-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mindshare-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-ocean);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.mindshare-item:hover {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-coral) 100%);
    color: white;
    transform: translateX(5px);
}

.mindshare-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 217, 61, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mindshare-item:hover .mindshare-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(10deg) scale(1.1);
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mindshare-menu.active {
    animation: slideDown 0.3s ease;
}

/* Responsive pour le dropdown */
@media (max-width: 576px) {
    .mindshare-menu {
        left: 0;
        right: 0;
        transform: none;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        max-width: 280px;
    }
    
    .mindshare-menu.active {
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        width: 100%;
    }
}

.btn-primary {
    background: var(--color-yellow);
    color: var(--color-ocean);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-yellow-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-secondary {
    background: var(--color-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--color-blue-dark);
    transform: scale(1.05);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-dex {
    background: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
    color: white;
    border: 2px solid #00D4AA;
}

.btn-dex:hover {
    background: linear-gradient(135deg, #00B894 0%, #009F7F 100%);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.4);
}

/* Stats hero supprimées - CSS nettoyé */

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ==================== SECTIONS ==================== */
.section {
    position: relative;
    padding: 80px 0;
    z-index: 2;
    pointer-events: none;
    /* Pas de fond sur sections - background visible */
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
}

/* Éléments interactifs cliquables, le reste laisse passer les clics aux bulles */
.section a,
.section button,
.section input,
.section textarea,
.section select,
.section .btn,
.section .card,
.section .feature-card,
.section .step-card,
.section .roadmap-item,
.section .meme-item {
    pointer-events: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-ocean);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 var(--color-yellow), 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 217, 61, 0.6);
    -webkit-text-stroke: 1px rgba(255, 217, 61, 0.3);
}

.section-subtitle {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--color-ocean);
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8), 2px 2px 4px rgba(255, 217, 61, 0.5);
    font-weight: 700;
}

/* About Section */
.about-paragraph {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-yellow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        gap: 1rem;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 217, 61, 0.3);
    transition: var(--transition);
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--color-yellow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-ocean);
    margin-bottom: 0.5rem;
}

/* How to Buy Section */
.steps-container {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 166, 251, 0.2);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .step-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .step-card {
        padding: 1.25rem;
        gap: 1rem;
        border-radius: 15px;
    }
}

.step-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--color-blue);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-yellow);
    background: var(--color-ocean);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .step-number {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .step-number {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
}

.step-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--color-ocean);
    margin-bottom: 0.5rem;
}

.step-text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.link {
    color: var(--color-blue);
    font-weight: 600;
}

.contract-box {
    background: var(--color-sand);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .contract-box {
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }
}

.contract-box code {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

@media (max-width: 576px) {
    .contract-box code {
        font-size: 0.75rem;
        text-align: center;
    }
}

.btn-copy {
    background: var(--color-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.warning-box, .success-box {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.swap-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .swap-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Memes Section */
.memes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .memes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .memes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.meme-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.meme-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.meme-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.meme-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.meme-card:hover .meme-overlay {
    transform: translateY(0);
}

.meme-title {
    color: white;
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.meme-share {
    background: var(--color-yellow);
    color: var(--color-ocean);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Roadmap */
.roadmap-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-blue-light);
}

@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 20px;
    }
}

.roadmap-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .roadmap-item {
        padding-left: 70px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .roadmap-item {
        padding-left: 60px;
        margin-bottom: 1.5rem;
    }
}

.roadmap-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--color-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1;
}

@media (max-width: 768px) {
    .roadmap-marker {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        border-width: 3px;
    }
}

@media (max-width: 576px) {
    .roadmap-marker {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

.roadmap-item.completed .roadmap-marker {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
}

.roadmap-item.active .roadmap-marker {
    background: var(--color-blue);
    border-color: var(--color-blue);
    animation: pulse 2s infinite;
}

.roadmap-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 166, 251, 0.2);
}

@media (max-width: 768px) {
    .roadmap-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .roadmap-content {
        padding: 1rem;
    }
}

.roadmap-item:hover .roadmap-content {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--color-blue);
}

.roadmap-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--color-ocean);
    margin-bottom: 1rem;
}

.roadmap-list {
    list-style: none;
    padding-left: 0;
}

.roadmap-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.roadmap-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-blue);
}

/* Footer */
.footer {
    background: var(--color-ocean);
    color: white;
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.footer a,
.footer button {
    pointer-events: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 2rem;
        justify-content: center;
        text-align: center;
    }
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-yellow);
}

.footer-title {
    font-family: var(--font-display);
    color: var(--color-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-menu li {
    margin-bottom: 0;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--color-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--color-yellow);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* ==================== RESPONSIVE ==================== */

/* Tablette et petits écrans (968px et moins) */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-socials {
        display: none;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .about-paragraph {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* Tablette (768px et moins) */
@media (max-width: 768px) {
    .hero-wave svg {
        height: 40px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .meme-card img {
        height: 250px;
    }
    
    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
        width: 100%;
    }
    
    .footer-menu {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile (576px et moins) */
@media (max-width: 576px) {
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 1.5rem;
    }
    
    .hero-wave svg {
        height: 30px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .meme-card img {
        height: 200px;
    }
    
    .meme-title {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-close {
        top: -35px;
        font-size: 2.5rem;
    }
}

/* Très petits mobiles (400px et moins) */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .bubble-counter {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .counter-icon {
        font-size: 1.5rem;
    }
    
    #bubbleCount {
        font-size: 1.2rem;
    }
    
    .counter-label {
        font-size: 0.6rem;
    }
    
    .audio-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Large screens (1400px et plus) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Optimisation pour mode sombre (si le système le supporte) */
@media (prefers-reduced-motion: reduce) {
    *:not(.bubble):not(.float-element):not(.bubble-special) {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Garder les animations essentielles mais les ralentir */
    .bubble, .bubble-special, .float-element {
        animation-duration: 8s !important;
    }
}

/* Support pour les encoches des smartphones (notch) */
@supports (padding: max(0px)) {
    .navbar .container,
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .audio-toggle {
        right: max(30px, calc(env(safe-area-inset-right) + 10px));
        bottom: max(30px, calc(env(safe-area-inset-bottom) + 10px));
    }
    
    .bubble-counter {
        right: max(20px, calc(env(safe-area-inset-right) + 10px));
        top: max(20px, calc(env(safe-area-inset-top) + 10px));
    }
}
