:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f8fafc;
    --text-color: #1f2937;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.layout {
    display: flex;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Mode Toggle Styling */
.mode-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.mode-toggle button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mode-toggle button:hover {
    background-color: var(--secondary-color);
}

/* Search Form Styling */
.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 20px 0;
    text-align: center;
}

.search-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-form input[type="text"] {
    padding: 10px;
    width: 300px;
    margin-right: 10px;
}

.search-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--secondary-color);
}

/* Ajustement de la largeur et centrage de la barre de recherche */
.search-bar {
    width: 600px; /* Largeur augmentée */
    margin: 0 auto; /* Centrage horizontal */
    display: block; /* S'assurer qu'elle est un bloc pour le centrage */
}

/* Ajustement de la barre de recherche pour ressembler à l'exemple */
.search-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.search-bar {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-right: 1rem;
}

.search-bar:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.search-buttons {
    display: flex;
    gap: 0.5rem;
}

.search-buttons button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-buttons .filters-button {
    background-color: #e5e7eb;
    color: #1f2937;
}

.search-buttons .filters-button:hover {
    background-color: #d1d5db;
}

.search-buttons .analyze-button {
    background-color: #2563eb;
    color: white;
}

.search-buttons .analyze-button:hover {
    background-color: #1e40af;
}

/* Results Styling */
.result, .raw-data {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.result h2, .raw-data h2 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Raw Data Section */
.raw-data ul {
    list-style: none;
    padding: 0;
}

.raw-data li {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.raw-data a {
    color: var(--primary-color);
    text-decoration: none;
}

.raw-data a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    /* Transformation de la sidebar en navbar bottom mobile */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 1000;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    
    .sidebar-logo {
        display: none; /* Masquer le logo sur mobile */
    }
    
    .sidebar-nav ul {
        display: flex;
        justify-content: space-around;
        padding: 0;
        margin: 0;
    }
    
    .sidebar-nav ul li {
        flex: 1;
        text-align: center;
    }
    
    .sidebar-nav ul li a {
        padding: 10px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
    }
    
    .sidebar-nav ul li a span {
        display: none; /* Masquer le texte pour n'afficher que les icônes */
    }
    
    .sidebar-nav ul li a .nav-icon {
        margin: 0 auto;
        width: 24px;
        height: 24px;
    }
    
    .sidebar-nav .submenu {
        position: absolute;
        bottom: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        margin-left: 0;
        border-left: none;
        border-top: 2px solid #2563eb;
        box-shadow: 0 -5px 10px rgba(0,0,0,0.1);
        padding: 0;
        display: none;
    }
    
    .sidebar-nav .submenu.show {
        display: flex;
        justify-content: space-around;
    }
    
    .sidebar-nav .submenu li {
        flex: 1;
    }
    
    .sidebar-nav .submenu a {
        padding: 15px 5px !important;
    }
    
    .sidebar-nav .submenu a .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-bottom: 70px; /* Espace pour la navbar du bas */
    }
}
.markdown-body {
    box-sizing: border-box;
    min-width: 200px;
    max-width: 980px;
    margin: 0 auto;
    padding: 45px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.markdown-body h1 {
    padding-bottom: .3em;
    border-bottom: 1px solid #eaecef;
}

.markdown-body h2 {
    padding-bottom: .3em;
    border-bottom: 1px solid #eaecef;
}

.markdown-body ul {
    padding-left: 2em;
}

.markdown-body li {
    margin: 0.5em 0;
}

@media (max-width: 767px) {
    .markdown-body {
        padding: 15px;
    }
}
/* Results Styling */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
}

.result-card h4 {
    margin: 0 0 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.result-card p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--secondary-color);
}

.arrow {
    transition: transform 0.2s ease;
}

.card-link:hover .arrow {
    transform: translateX(4px);
}

.markdown-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
}

.markdown-content h1 {
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    font-weight: 700;
    text-align: left;
}

.markdown-content h2 {
    color: #1d4ed8;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    font-weight: 700;
    text-align: left;
}

.markdown-content h3 {
    color: #1e40af;
    font-size: 1.25rem;
    margin: 1.25rem 0 0.75rem;
    font-weight: 600;
    text-align: left;
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content strong, 
.markdown-content b {
    font-weight: 700;
    color: #111827;
}

.markdown-content em {
    font-style: italic;
}

/* Style amélioré pour les tableaux */
.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.markdown-content th {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
}

.markdown-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.markdown-content tr:nth-child(even) {
    background-color: #f9fafb;
}

.markdown-content tr:hover {
    background-color: #f3f4f6;
}

/* Amélioration pour les listes */
.markdown-content ul, 
.markdown-content ol {
    padding-left: 1.75rem;
    margin: 1rem 0;
}

.markdown-content li {
    margin: 0.5rem 0;
}

.markdown-content li > ul,
.markdown-content li > ol {
    margin: 0.25rem 0;
}

/* Style pour les emoji et symboles */
.markdown-content .emoji {
    margin: 0 0.1em;
    font-size: 1.25em;
    line-height: 1;
}

/* Style pour les blocs de citation */
.markdown-content blockquote {
    border-left: 4px solid #3b82f6;
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 0 4px 4px 0;
}

/* Style pour le code */
.markdown-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #ef4444;
}

.markdown-content pre {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: #334155;
}

/* Style pour les séparateurs horizontaux */
.markdown-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* Style pour les liens */
.markdown-content a {
    color: #2563eb;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* Style pour les images */
.markdown-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
}

/* Style pour les citations de code inline */
.markdown-content p > code {
    white-space: nowrap;
}

.sidebar {
    width: 220px;
    background-color: #ffffff;
    border-right: 2px solid #000000;
    position: fixed;
    height: 100%;
    overflow: auto;
    padding-top: 20px;
    z-index: 100;
}

.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #000000;
    display: block;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
    font-weight: 700;
    border: 3px solid #000000 !important;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Styles pour les éléments actifs de la sidebar */
.sidebar .active a {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
    font-weight: 700;
    border-left: 4px solid #000000;
    border-right: 2px solid #000000;
}

.sidebar .active a:hover {
    background-color: #e8e8e8 !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    transform: translateX(2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* Améliorer la visibilité des hovers pour contrer les éléments noirs existants */
.sidebar a:not(.active):hover {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
    font-weight: 700;
    border: 3px solid #000000 !important;
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
    border-top: 2px solid #000000;
}

.user-profile {
    display: flex;
    align-items: center;
}

.notification-icon, .profile-pic {
    margin-left: 15px;
}

.sidebar img {
    width: 150px;
    margin: 20px auto;
    display: block;
}

.submenu {
    background-color: #f5f5f5;
    border-left: 3px solid #000000;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding-left: 20px;
    margin-left: 15px;
}

.submenu a {
    font-size: 16px;
    color: #000000;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.submenu a:hover {
    color: #000000 !important;
    background-color: #f5f5f5 !important;
    font-weight: 700;
    border: 2px solid #000000 !important;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.main-content {
    flex: 1;
    margin-left: 220px;
    width: calc(100% - 220px);
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.content-wrapper {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.markdown-table th {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
}

.markdown-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.markdown-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.markdown-table tr:hover {
    background-color: #f3f4f6;
}

pre.markdown-content {
    background: transparent;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    overflow: visible;
    line-height: 1.6;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4, 
.markdown-content h5, 
.markdown-content h6 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.markdown-content h1 {
    font-size: 2rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content strong,
.markdown-content b {
    font-weight: 700;
}

/* Styles pour les graphiques de tendances */
.trends-section .chart-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.trends-section .full-width {
    width: 100%;
}

.trends-section #trendsOverTime {
    min-height: 400px !important; /* Augmentation de la hauteur minimale */
    height: 500px !important; /* Hauteur définie plus grande */
}

.trends-section .chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.trends-section .stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trends-section .stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trends-section .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trends-section .stat-icon {
    margin-bottom: 15px;
}

.trends-section .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
}

/* Animation pour le graphique */
.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

@media (max-width: 768px) {
    .trends-section .chart-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la page d'abonnement */
.page-abo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.subscription-header {
    text-align: center;
    margin-bottom: 50px;
}

.subscription-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 700;
}

.subscription-header .subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 30px;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    background-color: #f3f4f6;
    border-radius: 50px;
    padding: 5px;
    width: 280px;
    margin: 30px auto;
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: block;
    width: 60px;
    height: 30px;
    background-color: #e5e7eb;
    border-radius: 30px;
    transition: 0.4s;
    margin: 0 10px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .toggle-slider {
    background-color: #2563eb;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-labels {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.toggle-labels span {
    padding: 0 10px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.toggle-labels .active {
    color: #2563eb;
    font-weight: 600;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.pro {
    border: 2px solid #2563eb;
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.pro:hover {
    transform: translateY(-5px) scale(1.05);
}

.card-header {
    margin-bottom: 25px;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
}

.card-header .description {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.price {
    margin-bottom: 25px;
}

.price .starting {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.price .amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
}

.price .amount span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

.cta-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 25px;
}

.primary-btn {
    background-color: #64748b;
    color: white;
}

.secondary-btn {
    background-color: #94a3b8;
    color: white;
}

.primary-btn:hover {
    background-color: #475569;
}

.secondary-btn:hover {
    background-color: #64748b;
}

.features-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #4b5563;
    font-size: 0.95rem;
}

.features-list li svg {
    flex-shrink: 0;
    margin-right: 10px;
    margin-top: 3px;
}

@media (max-width: 992px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        max-width: 100%;
        width: 100%;
    }
    
    .pricing-card.pro {
        transform: none;
        order: -1;
        margin-bottom: 20px;
    }
    
    .pricing-card.pro:hover {
        transform: translateY(-5px);
    }
}

/* Styles pour le Dashboard */
.dashboard-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #f8fafc;
}

/* Section Historique des Recherches */
.search-history-container {
    margin-top: 20px;
}

.search-history-container h2 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 30px;
    font-weight: 600;
}

.search-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.search-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f1f5f9;
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 15px;
}

.search-date {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.score-bar {
    margin: 20px 0;
}

.score-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
    float: left;
}

.score-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-align: right;
    margin-bottom: 5px;
}

.progress-bar {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    clear: both;
}

.progress {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 3px;
}

.card-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.card-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: none;
}

.view-btn {
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    text-align: center;
}

.view-btn:hover {
    background-color: #2563eb;
}

@media (max-width: 768px) {
    .search-cards {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

/* Modification des couleurs pour l'état vide */
.empty-state {
    text-align: center;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px dashed #d1d5db;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.dashboard-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.score-summary {
    margin: 20px 0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.score-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.score-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.progress-bar {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 3px;
}

.score-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
}

.gauge-value {
    position: absolute;
    top: -30px;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #334155;
    background-color: #3b82f6;
    color: white;
    border-radius: 6px;
    padding: 4px 8px;
    z-index: 10;
}

/* Styles pour le formulaire de connexion */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 15px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px;
    background-color: #f8f9fa;
    text-align: center;
}

.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 0.75rem 1rem;
    pointer-events: none;
    color: #6c757d;
    transition: all 0.2s ease-in-out;
}

.form-floating input {
    height: calc(3.5rem + 2px);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease-in-out;
}

.form-floating input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
    font-size: 0.85rem;
    transform: translateY(-1.5rem);
    color: #2563eb;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e3a8a;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.text-primary {
    color: #2563eb;
    text-decoration: none;
}

.text-primary:hover {
    text-decoration: underline;
}