/* Styles pour la page d'accueil attractive */

/* Arrière-plan animé */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Formes flottantes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    left: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    left: 70%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    left: 80%;
    animation-delay: 6s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    left: 50%;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Section d'authentification */
.auth-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Colonne Robin */
.robin-column {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.robin-welcome {
    text-align: center;
    color: white;
    max-width: 500px;
}

.robin-image-container {
    position: relative;
    margin-bottom: 30px;
}

.robin-main-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: bobbing 3s ease-in-out infinite;
}

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

.speech-bubble {
    position: absolute;
    top: -20px;
    right: -50px;
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
    max-width: 200px;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.speech-bubble p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

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

/* Fonctionnalités */
.welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

/* Colonne formulaire */
.form-column {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.auth-card-new {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.auth-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 100%;
    animation: rainbowSlide 3s ease infinite;
}

@keyframes rainbowSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Titre */
.auth-title-new {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.title-word {
    display: inline-block;
    margin: 0 5px;
    color: #333;
    animation: titleBounce 2s ease-in-out infinite;
}

.title-word:nth-child(1) { animation-delay: 0s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.4s; }

.title-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleBounce 2s ease-in-out infinite;
    animation-delay: 0.6s;
}

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

/* Sous-titre */
.auth-subtitle-new {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.subtitle-icon {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Formulaire */
.form-container {
    margin-top: 30px;
}

.input-group-new {
    margin-bottom: 25px;
}

.form-label-new {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.label-icon {
    margin-right: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input-new {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input-new:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.input-decoration {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-input-new:focus + .input-decoration {
    width: 100%;
}

/* Bouton d'aventure */
.btn-start-adventure {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-start-adventure:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-start-adventure:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    margin-left: 10px;
    font-size: 1.3rem;
    animation: rocket 2s ease-in-out infinite;
}

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

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn-start-adventure:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Footer */
.auth-footer {
    text-align: center;
}

.footer-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-icon {
    margin: 0 5px;
}

.age-indicator {
    display: inline-block;
}

.age-badge {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

/* Éléments décoratifs */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    font-size: 20px;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star-1 { top: 10%; left: 15%; animation-delay: 0s; }
.star-2 { top: 20%; right: 20%; animation-delay: 0.5s; }
.star-3 { top: 60%; left: 10%; animation-delay: 1s; }
.star-4 { bottom: 30%; right: 15%; animation-delay: 1.5s; }
.star-5 { bottom: 20%; left: 25%; animation-delay: 2s; }
.star-6 { top: 40%; right: 30%; animation-delay: 2.5s; }

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(180deg); 
    }
}

/* Responsive */
@media (max-width: 991px) {
    .robin-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .robin-main-image {
        max-width: 250px;
    }
    
    .speech-bubble {
        position: static;
        margin: 20px auto 0;
        max-width: 250px;
    }
    
    .speech-bubble::before {
        display: none;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 20px auto 0;
    }
    
    .auth-card-new {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .auth-title-new {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .robin-main-image {
        max-width: 200px;
    }
    
    .auth-title-new {
        font-size: 1.5rem;
    }
    
    .auth-subtitle-new {
        font-size: 1rem;
    }
    
    .btn-start-adventure {
        font-size: 1.1rem;
        padding: 15px 25px;
    }
}


/* Robin héroïque en haut de page */
.robin-chatbot-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 60px;
}

.robin-hero-container {
    display: flex;
    align-items: center;
    position: relative;
}

.robin-hero-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: heroGlow 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.robin-hero-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}

@keyframes heroGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.robin-speech-bubble {
    position: absolute;
    left: 55px;
    top: -5px;
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    font-size: 12px;
    animation: bubbleBounce 3s ease-in-out infinite;
}

.robin-speech-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.robin-speech-bubble p {
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

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

.chatbot-toggle-header {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chatbot-toggle-header:hover {
    background: white;
    color: #667eea;
    transform: scale(1.05);
}

/* Ajustement pour le contenu avec header fixe */
.auth-section {
    margin-top: 80px;
}

.main-container {
    margin-top: 80px;
}

/* Robin plus grand dans la page d'accueil */
.robin-main-image {
    max-width: 400px !important;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

/* Bulle parlante plus grande et plus visible */
.speech-bubble {
    position: absolute;
    top: -30px;
    right: -80px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 20px 25px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: heroSpeech 3s ease-in-out infinite;
    max-width: 280px;
    font-weight: 700;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #ff6b6b;
}

.speech-bubble p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes heroSpeech {
    0%, 100% { 
        transform: scale(1) rotate(-1deg); 
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05) rotate(1deg); 
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    }
}

/* Responsive pour Robin héroïque */
@media (max-width: 768px) {
    .robin-chatbot-header {
        padding: 8px 15px;
    }
    
    .robin-hero-image {
        width: 50px;
        height: 50px;
    }
    
    .robin-speech-bubble {
        left: 60px;
        max-width: 200px;
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .chatbot-toggle-header {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .robin-main-image {
        max-width: 280px !important;
    }
    
    .speech-bubble {
        right: -60px;
        max-width: 220px;
        padding: 15px 20px;
    }
    
    .speech-bubble p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .robin-speech-bubble {
        display: none; /* Masquer sur très petits écrans */
    }
    
    .robin-main-image {
        max-width: 250px !important;
    }
    
    .speech-bubble {
        position: static;
        margin: 15px auto 0;
        max-width: 200px;
    }
    
    .speech-bubble::before {
        display: none;
    }
}


/* Cases à cocher juridiques */
.legal-checkboxes {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group.optional {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: white;
    margin: 0;
    transition: all 0.3s ease;
}

.checkbox-group label:hover {
    color: #ffd700;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked + label .checkmark {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
    transform: scale(1.1);
}

.checkbox-group input[type="checkbox"]:checked + label .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 14px;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.checkbox-group a {
    color: #ffd700;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.checkbox-group a:hover {
    color: #ffed4e;
    text-decoration: none;
}

.legal-notice {
    margin-top: 15px;
    text-align: center;
}

.legal-notice p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

/* Bouton désactivé */
.btn-start-adventure[style*="opacity: 0.5"] {
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-start-adventure[style*="opacity: 0.5"]:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Animation d'activation du bouton */
.btn-start-adventure.activated {
    animation: buttonActivate 0.5s ease;
}

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

/* Responsive pour les cases à cocher */
@media (max-width: 768px) {
    .legal-checkboxes {
        padding: 15px;
        margin: 20px 0;
    }
    
    .checkbox-group label {
        font-size: 13px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .legal-notice p {
        font-size: 11px;
    }
}


/* Contrôles musicaux de Robin */
.robin-music-controls {
    margin-top: 15px;
    text-align: center;
}

.robin-song-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: musicPulse 2s ease-in-out infinite;
}

.robin-song-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    animation: none;
}

.robin-song-btn.playing {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    animation: musicPlaying 1s ease-in-out infinite;
}

.robin-song-btn.playing .music-icon {
    animation: musicNote 0.5s ease-in-out infinite;
}

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

@keyframes musicPlaying {
    0%, 100% { box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6); }
}

@keyframes musicNote {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.music-icon {
    font-size: 18px;
    transition: all 0.3s ease;
}

.music-text {
    font-size: 14px;
}

/* Indicateur de lecture audio */
.audio-visualizer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.5s ease;
}

.audio-visualizer.show {
    display: flex;
}

.audio-visualizer .visualizer-bars {
    display: flex;
    gap: 2px;
    align-items: end;
}

.audio-visualizer .bar {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: audioBar 1s ease-in-out infinite;
}

.audio-visualizer .bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.audio-visualizer .bar:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.audio-visualizer .bar:nth-child(5) { height: 6px; animation-delay: 0.4s; }

@keyframes audioBar {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

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

/* Bouton de contrôle audio dans le chatbot */
.chatbot-music-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chatbot-music-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.chatbot-music-btn.playing {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* Responsive pour les contrôles musicaux */
@media (max-width: 768px) {
    .robin-song-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .music-icon {
        font-size: 16px;
    }
    
    .audio-visualizer {
        bottom: 10px;
        right: 10px;
        padding: 12px 15px;
        font-size: 14px;
    }
}



/* Styles améliorés pour les cases à cocher juridiques */
.legal-checkboxes {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.checkbox-group {
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-group.optional {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

/* Masquer la case à cocher par défaut */
.checkbox-group input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

/* Style personnalisé pour la case à cocher */
.checkmark {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border: 2px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkmark:hover {
    border-color: #5a67d8;
    background: linear-gradient(135deg, #eef2ff 0%, #ddd6fe 100%);
    transform: scale(1.05);
}

/* Coche quand la case est cochée */
.checkbox-group input[type="checkbox"]:checked + label .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    animation: checkboxPulse 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + label .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    animation: checkmarkAppear 0.3s ease;
}

@keyframes checkboxPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes checkmarkAppear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Labels des cases à cocher */
.checkbox-group label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    user-select: none;
    flex: 1;
}

.checkbox-group label:hover {
    color: #2d3748;
}

/* Liens dans les labels */
.checkbox-group label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.checkbox-group label a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Indicateur obligatoire */
.checkbox-group label::after {
    content: "";
}

.checkbox-group:not(.optional) label::before {
    content: "";
    position: absolute;
    right: -8px;
    top: 0;
    width: 6px;
    height: 6px;
    background: #e53e3e;
    border-radius: 50%;
    animation: requiredPulse 2s infinite;
}

@keyframes requiredPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Notice légale */
.legal-notice {
    margin-top: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.legal-notice p {
    margin: 0;
    font-size: 12px;
    color: #4a5568;
    font-style: italic;
}

/* Bouton d'aventure amélioré */
.btn-start-adventure {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-start-adventure:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-start-adventure.enabled {
    animation: buttonReady 0.5s ease;
}

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

.btn-start-adventure:disabled,
.btn-start-adventure[style*="pointer-events: none"] {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    box-shadow: 0 4px 15px rgba(160, 174, 192, 0.2);
    cursor: not-allowed;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    margin-left: 8px;
    font-size: 18px;
}

.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.btn-start-adventure:hover .btn-ripple {
    transform: scale(1);
}

/* Responsive pour les cases à cocher */
@media (max-width: 768px) {
    .legal-checkboxes {
        padding: 15px;
        margin: 20px 0;
    }
    
    .checkbox-group label {
        font-size: 13px;
    }
    
    .checkmark {
        width: 20px;
        height: 20px;
    }
    
    .btn-start-adventure {
        padding: 14px 28px;
        font-size: 15px;
    }
}


/* Titre des conditions légales */
.legal-title {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

/* Cases obligatoires avec style renforcé */
.required-checkbox {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e3f2fd;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.required-checkbox:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.required-checkbox label {
    font-weight: 600;
    color: #2c3e50;
}

.required-checkbox label strong {
    color: #1a202c;
}

/* Indicateur obligatoire plus visible */
.required-checkbox::before {
    content: "OBLIGATOIRE";
    position: absolute;
    top: -8px;
    right: 10px;
    background: #e53e3e;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 10;
}



/* Ajustement du contenu principal pour la barre header réduite */
.main-container {
    padding-top: 70px !important;
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .robin-chatbot-header {
        height: 55px;
        padding: 3px 15px;
    }
    
    .robin-hero-image {
        width: 40px;
        height: 40px;
    }
    
    .robin-speech-bubble {
        left: 50px;
        padding: 6px 10px;
        font-size: 11px;
        max-width: 200px;
    }
    
    .main-container {
        padding-top: 65px !important;
    }
}

