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

:root {
    --divine-gold: #ffd700;
    --divine-orange: #ffa500;
    --divine-text: linear-gradient(45deg, #ffd700, #ffa500);
    --divine-blue: #4a90e2;
    --divine-dark-blue: #2c3e50;
    --divine-white: #ffffff;
    --cloud-color: rgba(255, 255, 255, 0.9);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    background: linear-gradient(135deg, #87ceeb, #e0f7ff);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    cursor: url('../assets/cursor.png'), auto;
}

.chat-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: containerAppear 1s ease-out;
    z-index: 1;
    position: relative;
}

.chat-header {
    background: var(--divine-text);
    padding: 20px;
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    color: var(--divine-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.chat-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

.chat-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.7);
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 15px;
    line-height: 1.5;
    position: relative;
    animation: messageAppear 0.3s ease-out;
}

.message.divine {
    background: var(--divine-text);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.message.you {
    background: rgba(74, 144, 226, 0.2);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    color: var(--divine-dark-blue);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.chat-input-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

#userInput {
    flex: 1;
    padding: 15px 25px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--divine-dark-blue);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

#userInput:focus {
    outline: none;
    border-color: var(--divine-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

#sendButton {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    background: var(--divine-text);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

#sendButton:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

#sendButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timer {
    text-align: center;
    padding: 10px;
    color: var(--divine-dark-blue);
    font-size: 0.9em;
    font-weight: 600;
}

.background-particle {
    position: fixed;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 5s linear infinite;
    z-index: 0;
}

.ascending-particle {
    position: fixed;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: ascend 8s linear infinite;
    z-index: 0;
}

.cursor-particles {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

@keyframes sparkle {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

@keyframes ascend {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateY(80vh) scale(1);
        opacity: 0.8;
    }
    80% {
        transform: translateY(20vh) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--divine-text);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        height: 90vh;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-header {
        font-size: 1.5em;
    }
} 

/* Curseurs personnalisés pour les éléments interactifs */
button,
input[type="text"],
.chat-container,
a {
    cursor: url('../assets/cursor.png'), pointer;
}

/* Curseur désactivé pour les éléments non-interactifs */
button:disabled,
input[type="text"]:disabled {
    cursor: not-allowed;
} 

.cursor-trail-point {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.05s ease;
}

.social-links {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 2rem;
    z-index: 2;
}

.social-icon {
    color: var(--divine-gold);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.home-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.home-link a {
    color: var(--divine-gold);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-link a:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .social-icon {
        font-size: 1.5rem;
    }
    
    .home-link a {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .social-icon {
        font-size: 1.2rem;
    }
    
    .home-link a {
        font-size: 1.2rem;
    }
} 

.left-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 35px; /* Augmentation de l'espacement à 35px */
}

.nav-icon {
    color: var(--divine-gold);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    color: var(--divine-white);
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .left-nav {
        gap: 25px; /* Espacement réduit mais toujours confortable sur mobile */
    }
}