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

:root {
    --aurora-green: #00ff88;
    --aurora-purple: #bb00ff;
    --aurora-blue: #0088ff;
    --aurora-pink: #ff0088;
    --text: #ffffff;
    --glass-bg: rgba(0, 20, 40, 0.3);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
    background: #000814;
}

/* Canvas 3D */
#scene3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    pointer-events: none;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Ligne 1 : Titre à gauche, compteur à droite */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 2rem;
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    text-shadow: 
        0 0 20px rgba(0, 255, 136, 0.4),
        0 0 40px rgba(187, 0, 255, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    margin: 0;
}

/* Compteur rectangulaire */
.counter-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    box-shadow: 
        0 8px 32px rgba(0, 255, 136, 0.2),
        0 0 60px rgba(187, 0, 255, 0.1);
    pointer-events: auto;
    animation: counterGlow 3s ease-in-out infinite;
    min-width: 120px;
}

@keyframes counterGlow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 255, 136, 0.2),
            0 0 60px rgba(187, 0, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(0, 255, 136, 0.4),
            0 0 80px rgba(187, 0, 255, 0.3);
    }
}

.counter-number {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* Message explicatif */
.header-message {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.message-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 
        0 0 10px rgba(0, 255, 136, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    pointer-events: auto;
}

/* Footer crédit */
.footer {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 50;
    text-align: center;
    pointer-events: none; /* Garder pour le footer */
}

.credit {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: auto; /* Ajouter ici pour réactiver sur le texte */
}

.creator-name {
    font-weight: 500;
    color: rgba(0, 255, 136, 0.7);
}

/* Dans style.css, ajouter après la règle .creator-name */

.creator-name a {
    color: rgba(0, 255, 136, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.creator-name a:hover {
    color: rgba(0, 255, 136, 1);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* FAB Button */
.fab {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #000814;
    border: none;
    border-radius: 60px;
    padding: 1.1rem 2.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 255, 136, 0.5),
        0 0 60px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid rgba(0, 255, 136, 0.5);
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 255, 136, 0.5),
            0 0 60px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(0, 255, 136, 0.7),
            0 0 80px rgba(0, 255, 136, 0.5);
    }
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 16px 48px rgba(0, 255, 136, 0.8),
        0 0 100px rgba(0, 255, 136, 0.6);
}

.fab-icon {
    font-size: 1.3rem;
}

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

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 8, 20, 0.85);
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 255, 136, 0.2);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Wish Reveal */
.wish-reveal {
    text-align: center;
    max-width: 650px;
}

.balloon-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}

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

.wish-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text);
    margin: 1.75rem 0;
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wish-author {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.75rem;
    font-style: italic;
    font-weight: 300;
}

.wish-year {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

/* Form */
.modal-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    color: var(--text);
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

textarea,
input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.875rem;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    resize: vertical;
    font-weight: 300;
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

textarea::placeholder,
input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #000814;
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 10px;
    padding: 1.1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    margin-top: 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.5);
}

.submit-icon {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1.25rem 1rem;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .counter-container {
        align-self: flex-end;
        min-width: 110px;
        padding: 0.5rem 1rem;
    }

    .counter-number {
        font-size: 1.75rem;
    }

    .counter-label {
        font-size: 0.65rem;
    }

    .message-text {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .fab {
        bottom: 3.5rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
        padding: 0.95rem 1.75rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .wish-text {
        font-size: 1.25rem;
    }

    .wish-year {
        font-size: 1.85rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}