/* Variables CSS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.support-btn{
    position: fixed;
    bottom: 10px;
    right: 1px;
    z-index: 100;
}

.support-us{

    padding: 25px;
    display: block;
  text-align: center;
}

.support-img{
    width: 200px;
    height: 200px;
  margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.cookie-text i {
    color: var(--warning-color);
    font-size: 1.5rem;
}

.cookie-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    background: var(--bg-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-generate {
    background: var(--bg-gradient);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
    justify-content: center;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

section h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.link{
    text-decoration: unset !important;
    color: unset !important;
}

/* Generator Card */
.generator-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    /*max-width: 600px;*/
    margin: 0 auto;
}

.generator-card h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Form */
.name-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group select,
.form-group input[type="range"],
.form-group input[type="text"]{
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="range"] {
    appearance: none;
    height: 8px;
    background: var(--border-color);
    border: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-gradient);
    cursor: pointer;
}

#quantity-value {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

/* Choix cliquables */
.choice-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.choice-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.choice-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.choice-btn.selected {
    background: var(--bg-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.choice-btn.selected:hover {
    transform: translateY(-2px);
}

.choice-btn i {
    font-size: 0.85rem;
}

/* Conteneur de thèmes */
.themes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.theme-category {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.theme-category h4 {
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-category h4 i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.theme-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
}

.theme-btn.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Indication "En savoir plus" */
.results-info {
    margin: 1rem 0;
    text-align: center;
}

.click-hint {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: pulse-hint 2s infinite;
}

.click-hint i {
    color: var(--primary-color);
    font-size: 1rem;
}

.click-hint strong {
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes pulse-hint {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    }
}

/* Résumé des thèmes sélectionnés */
.themes-summary {
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.themes-summary .text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.themes-summary .fas {
    color: var(--primary-color);
}

/* === MODALS === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

/* === CARTES DE PRÉNOMS === */
.name-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.name-card:hover::before {
    transform: scaleY(1);
}

.name-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.name-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.name-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.name-tag {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.name-meaning {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.name-meaning p {
    margin: 0;
    color: var(--text-color);
    font-style: italic;
    line-height: 1.5;
}

.name-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat i {
    color: var(--primary-color);
}

.name-date {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.name-hover-hint {
    text-align: center;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary-color);
}

.name-card:hover .name-hover-hint {
    opacity: 1;
}

/* === SYSTÈME DE PARTAGE === */
.share-success {
    text-align: center;
    padding: 1rem;
}

.share-info h4 {
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.share-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.share-link-container {
    margin: 1.5rem 0;
}

.share-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.loading-share {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.loading-share i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* === NOTIFICATIONS === */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification {
    animation: slideIn 0.3s ease;
}

/* === COMMENTAIRES === */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h5 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.comment-form input,
.comment-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-content {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: none;
    }
    
    .modal-header {
        border-radius: 0;
    }
    
    .choice-group {
        gap: 0.25rem;
    }
    
    .choice-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .share-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .name-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* === RECENT ACTIVITY SECTION - ACCUEIL === */
.recent-activity {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.activity-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.activity-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-header h3 i {
    color: var(--primary-color);
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.view-all-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* === HOME TABLES === */
.table-container-home {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.home-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.home-table thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.home-table th {
    padding: 8px 6px;
    text-align: left;
    font-weight: 500;
    font-size: 0.8rem;
}

.home-table th:first-child { padding-left: 12px; }
.home-table th:last-child { padding-right: 12px; }

.home-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
    cursor: pointer;
}

.home-table tbody tr:hover {
    background-color: #f8fafc;
}

.home-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.home-table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

.home-table td {
    padding: 10px 6px;
    vertical-align: middle;
}

.home-table td:first-child { padding-left: 12px; }
.home-table td:last-child { padding-right: 12px; }

/* === HOME TABLE CELL STYLES === */
.home-name {
    font-weight: 600;
    color: var(--text-dark);
}

.home-gender {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.home-gender.masculin {
    background-color: #dbeafe;
    color: #1e40af;
}

.home-gender.féminin {
    background-color: #fce7f3;
    color: #be185d;
}

.home-gender.mixte {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.home-theme {
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-stat {
    font-weight: 500;
    text-align: center;
}

.home-stat.likes { color: #dc2626; }
.home-stat.comments { color: #2563eb; }
.home-stat.score { color: var(--primary-color); }

.home-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.home-rank {
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
}

.home-rank.top-3 {
    color: #f59e0b;
}

/* === LOADING MINI === */
.loading-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loading-mini i {
    margin-right: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .home-table {
        font-size: 0.8rem;
    }
    
    .home-table th, .home-table td {
        padding: 6px 4px;
    }
}

@media (max-width: 768px) {
    .recent-activity {
        padding: 2rem 0;
    }
    
    .activity-card {
        padding: 1rem;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .home-table th:nth-child(3),
    .home-table td:nth-child(3) {
        display: none; /* Cacher thème sur mobile */
    }
}

@media (max-width: 576px) {
    .home-table th:nth-child(6),
    .home-table td:nth-child(6) {
        display: none; /* Cacher date sur très petit écran */
    }
}

/* === PAGE POPULAIRES === */
.popular-page {
    padding: 4rem 0 2rem;
    background: var(--bg-light);
}

/* === TABLE CONTAINER === */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* === TABLE STYLES === */
.popular-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.popular-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.popular-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* === COLUMN WIDTHS === */
.rank-col { width: 60px; text-align: center; }
.name-col { width: 120px; }
.gender-col { width: 80px; }
.theme-col { width: 100px; }
.meaning-col { width: 200px; }
.likes-col { width: 50px; text-align: center; }
.comments-col { width: 50px; text-align: center; }
.popularity-col { width: 80px; text-align: center; }
.date-col { width: 90px; }
.actions-col { width: 70px; text-align: center; }

/* === ROW STYLES === */
.popular-name-row {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.popular-name-row:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popular-name-row:nth-child(even) {
    background-color: #f9fafb;
}

.popular-name-row:nth-child(even):hover {
    background-color: #f1f5f9;
}

/* === CELL STYLES === */
.popular-table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* === RANK CELL === */
.rank-cell {
    text-align: center;
    position: relative;
}

.rank-number {
    font-weight: bold;
    font-size: 1rem;
}

.rank-trophy {
    margin-left: 4px;
    font-size: 0.8rem;
}

.rank-trophy.rank-1 { color: #ffd700; }
.rank-trophy.rank-2 { color: #c0c0c0; }
.rank-trophy.rank-3 { color: #cd7f32; }

/* === NAME CELL === */
.name-cell {
    font-weight: 600;
    color: #1f2937;
}

.name-text {
    font-size: 1rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === GENDER CELL === */
.gender-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gender-badge.masculin {
    background-color: #dbeafe;
    color: #1e40af;
}

.gender-badge.féminin {
    background-color: #fce7f3;
    color: #be185d;
}

.gender-badge.mixte {
    background-color: #f3e8ff;
    color: #7c3aed;
}

/* === THEME CELL === */
.theme-tag {
    display: inline-block;
    padding: 3px 6px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* === MEANING CELL === */
.meaning-text {
    color: #6b7280;
    font-style: italic;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* === STATS CELLS === */
.stat-number {
    font-weight: 600;
    color: #374151;
    text-align: center;
    display: block;
}

.likes-cell .stat-number {
    color: #dc2626;
}

.comments-cell .stat-number {
    color: #2563eb;
}

/* === POPULARITY CELL === */
.popularity-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
}

/* === DATE CELL === */
.date-text {
    color: #6b7280;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* === ACTION CELL === */
.action-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.action-btn:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

/* === TABLE RESPONSIVE === */
@media (max-width: 1200px) {
    .meaning-col { width: 150px; }
    .meaning-text { max-width: 130px; }
}

@media (max-width: 992px) {
    .theme-col, .meaning-col { display: none; }
    .popular-table { font-size: 0.8rem; }
    .popular-table th, .popular-table td { padding: 8px 6px; }
}

@media (max-width: 768px) {
    .date-col, .actions-col { display: none; }
    .rank-col { width: 40px; }
    .name-col { width: 100px; }
}

@media (max-width: 576px) {
    .gender-col { display: none; }
    .popularity-col { width: 60px; }
    .table-container { 
        margin: 0 -1rem; 
        border-radius: 0;
    }
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header h2 i {
    color: var(--primary-color);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filtres */
.filters-section {
    margin-bottom: 3rem;
    text-align: center;
}

.filter-tabs {
    display: inline-flex;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: calc(var(--border-radius) - 0.25rem);
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.filter-tab.active {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Cartes des prénoms populaires */
.popular-name-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1rem;
}

.popular-name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.popular-name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.popular-name-card:hover::before {
    transform: scaleY(1);
}

.popularity-badge {
    background: var(--bg-gradient);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.popularity-score {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.popularity-badge small {
    font-size: 0.7rem;
    opacity: 0.9;
}

.name-content {
    flex: 1;
}

.popularity-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.popularity-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Section statistiques */
.stats-page {
    padding: 2rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-header h3 i {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Graphiques */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.chart-card h4 {
    margin: 0 0 2rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card h4 i {
    color: var(--primary-color);
}

.chart-container {
    min-height: 200px;
}

.chart-item {
    margin-bottom: 1rem;
}

.chart-bar {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    height: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    border-radius: var(--border-radius);
    transition: width 0.8s ease;
}

.chart-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.chart-label strong {
    margin-left: auto;
    color: var(--text-dark);
}

/* États vides */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--text-dark);
    margin: 1rem 0;
}

.empty-state p {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.error-message i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

.error-message h3 {
    color: var(--error-color);
    margin: 1rem 0;
}

/* Détails des prénoms */
.name-detail {
    padding: 1rem;
}

.name-detail-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.name-detail-header h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.name-meaning-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.name-meaning-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.name-stats-section {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive pour page populaires */
@media (max-width: 768px) {
    .popular-name-card {
        flex-direction: column;
        text-align: center;
    }
    
    .popularity-badge {
        align-self: center;
        min-width: auto;
        width: fit-content;
        padding: 0.75rem 1.25rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .page-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Options avancées */
.form-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.form-group-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group-toggle label {
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

.advanced-options {
    background: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    transition: var(--transition);
}

.advanced-options.show {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.advanced-options .form-group {
    margin-bottom: 1rem;
}

.advanced-options .form-group:last-child {
    margin-bottom: 0;
}

/* Champ thème personnalisé */
#custom-theme-group {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(102, 126, 234, 0.2);
    margin: 1rem 0;
}

#custom-theme-group input {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    font-weight: 500;
}

#custom-theme-group input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Significations des prénoms */
.name-meaning {
    background: rgba(102, 126, 234, 0.08);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    border-left: 4px solid var(--primary-color);
}

.name-meaning-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.name-meaning-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
}

/* Amélioration des cartes de prénoms */
.name-card-enhanced {
    position: relative;
    overflow: hidden;
}

.name-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--bg-gradient);
    transition: left 0.3s ease;
}

.name-card-enhanced:hover::before {
    left: 0;
}

.name-origin {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(118, 75, 162, 0.1);
    color: var(--secondary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Groupes d'options dans les selects */
optgroup {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

optgroup option {
    font-weight: 400;
    color: var(--text-dark);
    padding-left: 1rem;
}

/* Animations pour les nouvelles fonctionnalités */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Responsiveness pour les nouveaux éléments */
@media (max-width: 768px) {
    .advanced-options {
        padding: 1rem;
    }
    
    .name-meaning {
        padding: 0.5rem;
    }
    
    .form-group-toggle label {
        font-size: 0.9rem;
    }
    
    #custom-theme-group {
        padding: 1rem;
    }
}

/* Système de partage */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    margin: 0;
    flex: 1;
}

#share-list-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    white-space: nowrap;
    transition: var(--transition);
}

#share-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(245, 87, 108, 0.3);
}

/* Listes partagées */
.shared-lists {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05), rgba(245, 87, 108, 0.05));
}

.shared-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.shared-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid var(--accent-color);
}

.shared-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--primary-color);
}

.shared-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.shared-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.shared-card-views {
    background: rgba(240, 147, 251, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
}

.shared-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shared-card-author {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shared-card-count {
    background: var(--bg-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shared-card-date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Modal de partage */
.share-modal-content {
    max-width: 500px;
}

.share-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-form input,
.share-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.share-form input:focus,
.share-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.share-form textarea {
    resize: vertical;
    min-height: 80px;
}

.share-link-container {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.1));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid rgba(240, 147, 251, 0.3);
    margin: 1rem 0;
}

.share-link-title {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-link-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
}

.share-link-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.copy-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-btn:hover {
    background: #e085e8;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--success-color);
}

/* Animations spécifiques au partage */
.share-success {
    animation: shareSuccess 0.6s ease-in-out;
}

@keyframes shareSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: rgba(16, 185, 129, 0.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive pour le partage */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .shared-grid {
        grid-template-columns: 1fr;
    }
    
    .shared-card-meta {
        justify-content: center;
    }
    
    .shared-card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .shared-card-views {
        margin-left: 0;
        align-self: center;
    }

    .share-link-url {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Names Grid */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.name-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.name-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.name-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.name-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.name-tag {
    background: var(--bg-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.name-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-like {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.name-like:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.name-like.liked {
    color: var(--danger-color);
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Themes Chart */
.themes-chart {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.themes-chart h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.theme-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.theme-item:last-child {
    border-bottom: none;
}

.theme-name {
    font-weight: 500;
    color: var(--text-dark);
    text-transform: capitalize;
}

.theme-count {
    background: var(--bg-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

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

/* Comments */
.comments-section {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.comments-section h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-form input,
.comment-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment {
    background: #f9fafb;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    color: var(--text-dark);
    line-height: 1.5;
}

/* Loading */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.loading-container{
    padding: 15px;
      display: flex;
      flex-direction: row;
      gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .names-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* === PAGINATION === */
.pagination-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pagination-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: var(--text-light);
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.page-number {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.page-number.ellipsis {
    background: transparent;
    border: none;
    cursor: default;
    color: var(--text-light);
}

.page-number.ellipsis:hover {
    background: transparent;
    color: var(--text-light);
    transform: none;
}

.pagination-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.page-size-select {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.page-size-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        padding: 1rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-numbers {
        justify-content: center;
    }
    
    .pagination-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-number {
        padding: 0.5rem;
        min-width: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination-size {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .page-numbers {
        max-width: 100%;
        overflow-x: auto;
        padding: 0.25rem;
    }
}

/* === NUAGE DE PRÉNOMS POPULAIRES === */
.popular-cloud-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin-top: 3rem;
}

.popular-cloud-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.popular-cloud-section .section-header h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.popular-cloud-section .section-header h3 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.popular-names-cloud {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    min-height: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.cloud-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.cloud-loading i {
    font-size: 2rem;
    color: var(--primary-color);
}

.name-tag {
    background: var(--bg-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.name-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    filter: brightness(1.1);
}

.name-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.name-tag:hover::before {
    left: 100%;
}

/* Tailles variables pour le nuage */
.name-tag.size-1 { font-size: 0.9rem; }
.name-tag.size-2 { font-size: 1rem; }
.name-tag.size-3 { font-size: 1.1rem; }
.name-tag.size-4 { font-size: 1.3rem; }
.name-tag.size-5 { font-size: 1.5rem; }

/* Couleurs variables */
.name-tag.color-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.name-tag.color-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.name-tag.color-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.name-tag.color-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.name-tag.color-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.name-tag.color-6 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.name-tag.color-7 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.name-tag.color-8 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }

.name-likes {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cloud-footer {
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Animation d'apparition des tags */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.name-tag {
    animation: fadeInUp 0.5s ease forwards;
}

.name-tag:nth-child(1) { animation-delay: 0.1s; }
.name-tag:nth-child(2) { animation-delay: 0.2s; }
.name-tag:nth-child(3) { animation-delay: 0.3s; }
.name-tag:nth-child(4) { animation-delay: 0.4s; }
.name-tag:nth-child(5) { animation-delay: 0.5s; }
.name-tag:nth-child(6) { animation-delay: 0.6s; }
.name-tag:nth-child(7) { animation-delay: 0.7s; }
.name-tag:nth-child(8) { animation-delay: 0.8s; }
.name-tag:nth-child(9) { animation-delay: 0.9s; }
.name-tag:nth-child(10) { animation-delay: 1s; }

/* Responsive pour le nuage */
@media (max-width: 768px) {
    .popular-cloud-section {
        padding: 3rem 0;
    }
    
    .popular-names-cloud {
        padding: 1.5rem;
        gap: 0.75rem;
    }
    
    .name-tag {
        font-size: 0.9rem !important;
        padding: 0.4rem 0.8rem;
    }
    
    .popular-cloud-section .section-header h3 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .popular-names-cloud {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .name-tag {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem;
    }
}

/* === SECTION LISTE PARTAGÉE === */
.shared-list-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-medium);
}

.shared-list-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.shared-list-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shared-list-info h3 i {
    color: var(--primary-color);
}

.shared-list-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.shared-list-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.shared-list-meta i {
    color: var(--secondary-color);
}

.shared-description {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.shared-names-table {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    background: white;
}

.names-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.names-table th,
.names-table td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.names-table th {
    background: var(--bg-gradient);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.names-table tbody tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.names-table tbody tr:hover {
    background-color: #f8fafc;
}

.names-table tbody tr:last-child td {
    border-bottom: none;
}

/* Colonnes spécifiques */
.names-table .name-cell {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.names-table .gender-cell {
    text-align: center;
}

.names-table .gender-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.names-table .gender-badge.masculin {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.names-table .gender-badge.feminin {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.names-table .gender-badge.mixte {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.names-table .theme-cell {
    font-style: italic;
    color: var(--text-light);
}

.names-table .origin-cell {
    color: var(--text-light);
    font-size: 0.9rem;
}

.names-table .meaning-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.names-table .popularity-cell {
    text-align: center;
}

.popularity-stats {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.popularity-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.popularity-stat i {
    font-size: 0.75rem;
}

.popularity-stat.likes i {
    color: #e53e3e;
}

.popularity-stat.comments i {
    color: var(--primary-color);
}

.names-table .actions-cell {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.action-btn.like-btn:hover {
    background: #e53e3e;
}

.action-btn.details-btn:hover {
    background: var(--secondary-color);
}

/* Responsive pour les listes partagées */
@media (max-width: 768px) {
    .shared-list-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .shared-list-section .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .shared-list-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .shared-names-table {
        font-size: 0.85rem;
    }
    
    .names-table th,
    .names-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Cacher certaines colonnes sur mobile */
    .names-table .origin-cell,
    .names-table .meaning-cell {
        display: none;
    }
    
    .names-table th:nth-child(4),
    .names-table th:nth-child(5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .shared-list-section {
        padding: 1rem;
        border-radius: 0;
        margin: 0;
    }
    
    .names-table {
        font-size: 0.8rem;
    }
    
    .names-table th,
    .names-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-btn {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
}
