:root {
    --primary-color: #4F46E5;    /* Indigo plus profond et vibrant */
    --secondary-color: #10B981;  /* Émeraude */
    --accent-color: #F59E0B;     /* Orange ambre */
    --success-color: #22C55E;    /* Vert vif */
    --error-color: #EF4444;      /* Rouge vif */
    --background-color: #F8FAFC; /* Gris bleuté clair */
    --text-color: #1E293B;       /* Slate foncé */
    --shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: radial-gradient(circle at top left, #EEF2FF 0%, var(--background-color) 100%);
    min-height: 100vh;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    letter-spacing: -0.01em;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #9F7AEA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    display: inline-block;
}

h1 span {
    transition: var(--transition);
}

h1:hover span {
    animation: float 3s ease-in-out infinite;
}

.btn {
    border: none;
    border-radius: var(--border-radius);
    padding: 14px 32px;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #818CF8); 
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #34D399);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #94A3B8, #64748B);
    color: white;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.form-control {
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    font-size: 1rem;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background: white;
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--text-color);
    font-size: 1rem;
}

/* Style radio buttons modernes */
input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

input[type="radio"] + label {
    padding: 14px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
}

input[type="radio"] + label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    margin-right: 12px;
    vertical-align: middle;
    transition: var(--transition);
}

input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(159, 122, 234, 0.1));
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
}

input[type="radio"]:checked + label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: inset 0 0 0 4px white;
}

/* Animations améliorées */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

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

/* Style de la section de progression */
.progress-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.9));
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.level-badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.level-badge::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(79, 70, 229, 0.3);
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
}

.level-title {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}

.points-counter {
    font-weight: 600;
    color: #64748B;
    font-size: 0.95rem;
    background: rgba(241, 245, 249, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
}

.progress-modern {
    height: 10px;
    background-color: rgba(226, 232, 240, 0.6);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-modern .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #818CF8);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}

/* Amélioration des sections de contenu */
#aideSection, #quizSection {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease-out;
}

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

/* Style sans card pour askResponse */
#askResponse {
    padding: 0.5rem 0;
    margin-top: 1.5rem;
    transition: var(--transition);
}

/* Style sans card pour quizQuestion et quizEvaluation */
#quizQuestion, #quizEvaluation {
    padding: 0.5rem 0;
    margin-top: 1.5rem;
    transition: var(--transition);
}

#askResponse:not(:empty), #quizQuestion:not(:empty), #quizEvaluation:not(:empty) {
    animation: slideUp 0.5s ease-out forwards;
}

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

/* Informations de l'enfant */
.child-info-card {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(241, 245, 249, 0.9));
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.child-info-card p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.child-info-card i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Style pour la carte de sélection de mode */
.mode-selection-card {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(241, 245, 249, 0.9));
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 14px 16px;
    }
    
    .level-badge {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }
}

/* Styles Google-inspired de index.html */
.google-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.google-logo {
    text-align: center;
    margin-top: 8vh;
    margin-bottom: 30px;
}

.search-container {
    max-width: 650px;
    margin: 0 auto 30px;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 16px 45px;
    padding-right: 90px;
    border-radius: 24px;
    border: 1px solid #dfe1e5;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
    font-size: 16px;
    transition: all 0.3s;
}

.search-bar:hover, 
.search-bar:focus {
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.2);
    border-color: transparent;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
}

.search-submit {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    z-index: 2; /* Assurer que le bouton est au-dessus du texte */
}

/* Styles pour le bouton de caméra */
.search-camera {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2; /* Assurer que le bouton est au-dessus du texte */
}

.search-camera:hover {
    color: var(--accent-color);
}

/* Bouton principal pour lancer la prise de photo (style Material) */
.photo-launch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.photo-launch-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    padding-top: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
}

.photo-launch-btn:hover {
    background: #6157EB;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

.photo-launch-btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0s;
}

/* Styles pour la fenêtre modale de photo */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.photo-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 10% auto;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.photo-modal-header h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--error-color);
}

.photo-modal-body {
    padding: 20px;
}

.photo-instructions {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
}

.camera-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* valeur par défaut */
    overflow: hidden;
    background-color: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 20px;
}

.camera-container video,
.camera-container canvas,
#previewContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#photoPreview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photo-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.photo-field {
    margin-bottom: 15px;
}

.photo-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dfe1e5;
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .photo-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .photo-actions {
        flex-direction: column;
    }
    
    .photo-actions button {
        width: 100%;
    }
}

.child-card {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 20px;
    background: white;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.child-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mode-card {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 20px;
    background: white;
    transition: all 0.3s;
}

.mode-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.app-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #5f6368;
    font-weight: 500;
    transition: all 0.2s;
}

.app-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.content-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    color: #5f6368;
    font-size: 14px;
}

/* Styles améliorés pour quizContent et askResponse */
#quizContent, #askResponse {
    max-width: 650px;
    margin: 0 auto;
}

#quizQuestion, #quizAnswerSection, #quizEvaluation {
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.15);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

#quizQuestion:hover, #quizAnswerSection:hover, #quizEvaluation:hover {
    box-shadow: 0 4px 12px rgba(32, 33, 36, 0.12);
}

#askResponse .response-section {
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.15);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
    background-color: white;
}

#askResponse .response-section:hover {
    box-shadow: 0 4px 12px rgba(32, 33, 36, 0.12);
}

.response-section {
    border-radius: 8px;
    overflow: hidden;
}

.response-section h5 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 16px;
}

.response-content {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #202124;
}

#childAnswer {
    border-radius: 24px;
    border: 1px solid #dfe1e5;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.1);
    transition: all 0.2s;
}

#childAnswer:focus {
    outline: none;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.2);
    border-color: transparent;
}

#validateAnswerBtn, #newQuestionBtn {
    border-radius: 24px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0.25px;
}

#readQuestionBtn, #readResponseBtn, #readEvaluationBtn {
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: 0.25px;
    min-height: 44px;
    line-height: 1.2;
    margin-bottom: 5px;
    color: var(--primary-color);
    border: 1px solid #dadce0;
    background-color: transparent;
}

#readQuestionBtn:hover, #readResponseBtn:hover, #readEvaluationBtn:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.1);
}

.reading-active {
    background-color: #f1f3f4 !important;
    border-color: var(--primary-color) !important;
}

/* Styles pour les alertes */
.alert-success, .alert-warning, .alert-danger {
    border-radius: 8px;
}

/* Animation des points gagnés */
.points-earned {
    position: absolute;
    top: -20px; 
    right: 10px;
    background-color: #5cb85c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 1000;
    animation: float-up 2s forwards;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Styles responsifs supplémentaires */
@media (max-width: 768px) {
    .google-container {
        padding: 15px;
    }
    
    .search-bar {
        padding: 12px 40px;
        font-size: 14px;
    }
    
    .app-tabs {
        gap: 10px;
    }
    
    .app-tab {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    #readQuestionBtn, #readResponseBtn, #readEvaluationBtn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .profile-nav {
        top: 10px;
        right: 10px;
    }
    
    .profile-menu-button {
        font-size: 1.8rem;
        width: 42px;
        height: 42px;
    }
    
    .profile-dropdown {
        width: 250px;
    }
}

/* Barre de navigation avec progression et profil */
.nav-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    z-index: 1000;
}

.nav-progress {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 24px;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 220px;
    transition: all 0.3s ease;
}

.level-badge-small {
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.progress-wrapper {
    flex-grow: 1;
    min-width: 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 4px;
    white-space: nowrap;
}

.level-title-small {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 8px;
}

.points-counter-small {
    color: #5f6368;
    font-size: 0.7rem;
}

.progress-small {
    height: 6px;
    margin-bottom: 0;
}

/* Menu profil style Google */
.profile-nav {
    position: relative;
}

.profile-menu-container {
    position: relative;
}

.profile-menu-button {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-button:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    overflow: hidden;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.profile-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--primary-color);
}

.profile-info {
    padding: 15px 20px;
}

.profile-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.profile-info i {
    width: 20px;
    color: var(--primary-color);
    text-align: center;
    margin-right: 5px;
}

.profile-actions {
    padding: 8px 15px;
}

.profile-actions .btn-outline-primary {
    transition: var(--transition);
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1px solid #dadce0;
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.25px;
    box-shadow: none;
    margin-bottom: 10px;
}

.profile-actions .btn-outline-primary:hover {
    background-color: rgba(79, 70, 229, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.profile-actions .btn-outline-primary:active {
    background-color: rgba(79, 70, 229, 0.1);
}

.profile-actions .btn-outline-danger {
    transition: var(--transition);
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1px solid #dadce0;
    color: #5f6368;
    background-color: transparent;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.25px;
    box-shadow: none;
}

.profile-actions .btn-outline-danger:hover {
    background-color: #f6f6f6;
    color: #d93025;
    border-color: #d93025;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.profile-actions .btn-outline-danger:active {
    background-color: rgba(217, 48, 37, 0.1);
}

/* Styles responsifs supplémentaires */
@media (max-width: 768px) {
    .nav-container {
        top: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .nav-progress {
        padding: 4px 8px;
        max-width: 160px;
    }
    
    .level-badge-small {
        font-size: 1rem;
        width: 28px;
        height: 28px;
    }
    
    .progress-info {
        font-size: 0.65rem;
    }
    
    .progress-small {
        height: 4px;
    }
    
    .profile-menu-button {
        font-size: 1.8rem;
        width: 42px;
        height: 42px;
    }
    
    .profile-dropdown {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .nav-progress {
        max-width: 130px;
    }
    
    .progress-info {
        flex-direction: column;
        line-height: 1.2;
    }
}

/* Style pour le conteneur des badges */
.badges-container {
    margin-top: 20px;
    padding: 15px;
    background-color: transparent;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.badges-title {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 12px;
    font-weight: 500;
}

.badges-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.badge-item:hover {
    transform: scale(1.1);
}

.badge-emoji {
    font-size: 2.5rem;
    margin-bottom: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
}

.badge-level {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #5f6368;
}

/* Media queries pour rendre les badges responsive */
@media (max-width: 768px) {
    .badges-list {
        gap: 20px; /* Réduire l'espacement sur les tablettes */
    }
    
    .badge-emoji {
        font-size: 2.2rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .badges-list {
        gap: 15px; /* Réduire davantage l'espacement sur les mobiles */
    }
    
    .badge-emoji {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .badge-level {
        font-size: 10px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 320px) {
    .badges-list {
        gap: 10px;
    }
    
    .badge-emoji {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
}

/* Styles pour l'indicateur de chargement */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: dots-fade 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 1rem;
    font-weight: 500;
}

.loading-tip {
    font-size: 1rem;
    color: var(--accent-color);
    margin-top: 1rem;
    font-style: italic;
    text-align: center;
    max-width: 80%;
    opacity: 0.9;
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tip-change {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots-fade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Animation de progression pour simuler l'avancement du traitement */
.progress-bar-loading {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
}

.progress-bar-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background-color: var(--primary-color);
    border-radius: 3px;
    animation: loading-progress 2s infinite ease-in-out;
}

@keyframes loading-progress {
    0% {
        left: -30%;
        width: 30%;
    }
    50% {
        width: 60%;
    }
    100% {
        left: 100%;
        width: 30%;
    }
}

/* Ajout des styles pour le message d'erreur */
.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    max-width: 90%;
    width: auto;
    transition: opacity 0.3s ease-in-out;
}

.error-message.fade {
    opacity: 0;
}

.error-message.show {
    opacity: 1;
}

.error-message i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.error-message .btn-close {
    margin-left: 15px;
    padding: 0.5rem;
    opacity: 0.7;
}

.error-message .btn-close:hover {
    opacity: 1;
}

/* Styles pour le statut d'abonnement */
#subscriptionStatus {
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#subscriptionStatus.subscription-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    color: var(--secondary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

#subscriptionStatus.subscription-trial {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
    color: var(--accent-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

#subscriptionStatus.subscription-expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.05));
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#subscriptionStatus.subscription-none {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(156, 163, 175, 0.05));
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

#subscriptionStatus i {
    font-size: 1rem;
} 
#sheetResponse .card {
    background: white;
}

@media print {
  #sheetResponse .card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
    #sheetResponse .card-text p {
    page-break-inside: avoid;
  }
}
