/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #2d5a27; /* Vert forêt */
    --primary-light: #3d6b36; /* Vert forêt clair */
    --primary-dark: #1e3f1a; /* Vert forêt foncé */
    --accent-color: #4ade80; /* Vert clair pour accents */
    --bg-color: #0f0f0f; /* Noir profond */
    --bg-secondary: #1a1a1a; /* Gris très foncé */
    --bg-card: #262626; /* Gris foncé cartes */
    --text-primary: #ffffff; /* Blanc */
    --text-secondary: #a3a3a3; /* Gris clair */
    --text-muted: #737373; /* Gris moyen */
    --border-color: #404040; /* Bordure gris */
    --error-color: #ef4444; /* Rouge erreur */
    --success-color: #22c55e; /* Vert succès */
    --warning-color: #f59e0b; /* Orange warning */
    --info-color: #3b82f6; /* Bleu info */
    --report-color: #dc2626; /* Rouge signalement */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 20%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--accent-color);
}

.nav-menu::before {
    content: '';
    position: absolute;
    height: 40px;  /* Hauteur fixe pour desktop */
    background: rgba(77, 222, 128, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 0;
}

/* Cette classe sera ajoutée dynamiquement par JavaScript */
.nav-menu.initialized::before {
    left: var(--active-left);
    width: var(--active-width);
}

@media (max-width: 768px) {
    .nav-menu::before {
        height: 40px;
        width: var(--active-width) !important;
        left: 50% !important;
        transform: translateX(-50%);
        top: var(--active-top);
    }

    .nav-link {
        width: auto;
        text-align: center;
        padding: 0.8rem 2rem;
        margin: 0 auto;
        display: inline-block;
    }
}

/* ===== AUTHENTIFICATION ===== */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.auth-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.user-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.gestion-btn {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.gestion-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.gradient-text {
    background: linear-gradient(45deg, var(--warning-color), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

/* ===== MODAL AUTHENTIFICATION ===== */
.modal-content {
    max-width: 400px;
    width: 90%;
}

.modal-header {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    padding: 0.25rem;
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.auth-tab.active {
    color: var(--bg-color);
}

.auth-tab-slider {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    background: var(--accent-color);
    transition: transform 0.3s ease;
    border-radius: calc(var(--border-radius) * 0.75);
}

.auth-tab:nth-child(2).active ~ .auth-tab-slider {
    transform: translateX(calc(100% + 0.25rem));
}

@media (max-width: 768px) {
    .auth-tabs {
        max-width: 280px;
    }
    
    .auth-tab {
        font-size: 0.95rem;
        padding: 0.45rem 0;
    }
}

.auth-panels {
    position: relative;
    overflow: hidden;
}

.auth-panel {
    padding: 0 2rem 2rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-panel.active {
    display: block;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
}

.btn-google:hover {
    background: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--text-muted);
}

.separator hr {
    flex: 1;
    border: none;
    height: 1px;
    background: var(--border-color);
}

.separator span {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.auth-form button[type="submit"]:hover {
    background: var(--success-color);
    transform: translateY(-1px);
}

/* ===== SIGNALEMENT ===== */
.card-actions {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.report-btn {
    background: var(--report-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* ===== CONFIRMATION PROBLÈMES ===== */
.confirm-btn {
    background: var(--info-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.confirm-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.problem-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===== GESTION ADMIN ===== */
.admin-stats-dashboard {
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.admin-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    min-width: 120px;
    white-space: nowrap;
}

.admin-tab.active,
.admin-tab:hover {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    min-height: 400px;
}

.admin-overview {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* ===== ÉLÉMENTS DE GESTION ===== */
.admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-filters select,
.admin-filters input {
    flex: 1;
    min-width: 200px;
}

.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.admin-item:hover {
    border-color: var(--accent-color);
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.admin-item-info {
    flex: 1;
}

.admin-item-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.admin-item-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-item-content {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.admin-item-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.no-admin-content {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

/* ===== BADGES DE STATUT ===== */
.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.status-badge.approved {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.status-badge.open {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

.status-badge.resolved {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

.status-badge.unread {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.status-badge.read {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-muted);
}

.status-badge.replied {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

/* ===== BADGES DE TYPE DE CONNEXION ===== */
.connection-type {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connection-type.admin {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.connection-type.user {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

.connection-type.anonymous {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-muted);
}

/* ===== BOUTONS ADMIN ===== */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.edit-btn {
    background: var(--warning-color);
    color: white;
}

.edit-btn:hover {
    background: #d97706;
}

.delete-btn {
    background: var(--error-color);
    color: white;
}

.delete-btn:hover {
    background: #dc2626;
}

.approve-btn {
    background: var(--success-color);
    color: white;
}

.approve-btn:hover {
    background: #16a34a;
}

.read-btn {
    background: var(--info-color);
    color: white;
}

.read-btn:hover {
    background: #2563eb;
}

.reply-btn {
    background: var(--primary-color);
    color: white;
}

.reply-btn:hover {
    background: var(--primary-light);
}

.progress-btn {
    background: var(--warning-color);
    color: white;
}

.progress-btn:hover {
    background: #d97706;
}

.resolve-btn {
    background: var(--success-color);
    color: white;
}

.resolve-btn:hover {
    background: #16a34a;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== SECTIONS ===== */
.section {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    transition: padding-top 0.3s ease;
}

.section.active {
    display: block;
}

/* Ajuster le padding quand le bandeau épinglé est visible */
body.has-pinned-banner .section {
    padding-top: 150px;
}

@media (max-width: 768px) {
    body.has-pinned-banner .section {
        padding-top: 170px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    min-height: calc(100vh - 80px);
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    grid-auto-flow: row;
    grid-auto-rows: auto;
}

.stat-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 120px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    opacity: 1;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .stats-container {
        gap: 0.5rem;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 0.75rem;
        justify-items: center;
        grid-auto-flow: row;
    }
    
    .stat-card {
        padding: 0.875rem;
        width: 140px;
        height: 120px;
    }
    
    .stat-number {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        gap: 0.375rem;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 0.375rem;
        justify-items: center;
        grid-auto-flow: row;
        width: 100%;
    }
    
    .stat-card {
        padding: 0.625rem;
        width: 240px;
        height: 110px;
    }
    
    .stat-number {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        display: block;
        opacity: 1;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== BOUTONS ===== */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* ===== FORMULAIRES ===== */
.suggestion-form-card, .problem-form-card, .contact-form-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.suggestion-form-card h3, .problem-form-card h3, .contact-form-card h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.suggestion-form-card form, .problem-form-card form, .contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input {
    flex: 1;
}

input, textarea, select {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(77, 222, 128, 0.1);
}

/* Style pour la suggestion automatique de catégorie */
select.auto-suggested {
    animation: suggestPulse 0.8s ease-in-out;
    border-color: var(--accent-color);
}

@keyframes suggestPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(77, 222, 128, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(77, 222, 128, 0);
    }
}

textarea {
    min-height: 120px;
    resize: vertical;
}

::placeholder {
    color: var(--text-muted);
}

/* ===== FILTRES ===== */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filters input, .filters select {
    flex: 1;
    min-width: 200px;
}

/* ===== LISTES ===== */
.suggestions-list, .events-list, #problems-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-card, .event-card, .problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.suggestion-card:hover, .event-card:hover, .problem-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.suggestion-header, .problem-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.suggestion-title, .problem-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: 1rem;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.suggestion-description, .problem-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.suggestion-footer, .problem-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
}

.vote-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vote-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

.vote-btn.voted {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.suggestion-meta, .problem-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.comments-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.comments-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ===== CALENDRIER ===== */
.calendar-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calendar-header button {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-header button:hover {
    background: var(--primary-light);
}

.calendar-header h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: var(--bg-secondary);
    padding: 0.6rem 0.2rem;
    text-align: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:hover {
    background: var(--primary-dark);
    color: var(--text-primary);
}

.calendar-day.today {
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: 700;
}

.calendar-day.has-event {
    color: var(--accent-color);
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
}

.calendar-day.has-event:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.calendar-day.has-event:hover::after {
    background: var(--bg-color);
    box-shadow: 0 0 8px var(--bg-color);
}

.calendar-day.other-month {
    color: var(--text-muted);
    background: var(--bg-color);
}

.calendar-header {
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style pour le pop-up des événements */
.event-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.event-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.event-popup-header h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 0;
}

.event-popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.event-popup-close:hover {
    color: var(--text-primary);
}

.event-popup-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-popup-item {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.event-popup-item h5 {
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.event-popup-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* ===== ÉVÉNEMENTS ===== */
.event-card {
    border-left: 4px solid var(--accent-color);
}

.event-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.event-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== DÉLÉGUÉS ===== */
.delegates-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.delegate-card, .role-explanation, .how-it-works {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.delegate-emoji {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.delegate-card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.delegate-card p:nth-child(3) {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.role-explanation ul {
    list-style: none;
    padding-left: 0;
}

.role-explanation li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-explanation li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: 700;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== PRIORITÉS PROBLÈMES ===== */
.priority-low { border-left-color: var(--success-color); }
.priority-medium { border-left-color: var(--warning-color); }
.priority-high { border-left-color: var(--error-color); }

.priority-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.priority-badge.low {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.large-modal {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.close-modal {
    background: var(--error-color);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.close-modal:hover {
    background: #dc2626;
}

.modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.comment-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    position: relative;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-color);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

/* ===== MENTIONS LÉGALES ===== */
.legal-content {
    line-height: 1.7;
}

.legal-content h4 {
    color: var(--accent-color);
    margin: 1.5rem 0 0.8rem 0;
}

.legal-content h4:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gradient-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.gradient-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(77, 222, 128, 0.2) 50%,
        transparent 100%
    );
    transition: none;
    pointer-events: none;
}

.gradient-slide:hover::before {
    left: 100%;
    transition: all 1s ease;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--error-color);
}

.notification.success {
    background: var(--success-color);
}

.notification.info {
    background: var(--info-color);
}

/* ===== CONTENU VIDE ===== */
.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-content h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== FORMULAIRE ADMIN ===== */
.admin-form {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.admin-form h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.admin-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out,
                    opacity 0.3s ease-in-out,
                    visibility 0s linear 0.3s; /* Délai pour la visibilité */
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease-in-out,
                    opacity 0.3s ease-in-out,
                    visibility 0s linear 0s; /* Pas de délai pour la visibilité */
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card {
        width: 100%;
    }

    .stats-row {
        flex-direction: column;
    }

    .filters {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }

    .suggestion-header,
    .problem-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .suggestion-footer,
    .problem-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-actions {
        flex-wrap: wrap;
    }

    .delegates-info {
        grid-template-columns: 1fr;
    }

    .steps {
        gap: 1.5rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        min-width: 50%;
    }

    .modal-content {
        width: 95%;
        height: 80vh;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .calendar-day {
        min-height: 40px;
        font-size: 0.8rem;
    }

    .suggestion-form-card,
    .problem-form-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .nav-logo {
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .auth-buttons {
        gap: 0.5rem;
    }

    .auth-btn,
    .gestion-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .admin-filters {
        flex-direction: column;
    }
}

/* ===== DARK MODE SPÉCIFIQUE ===== */

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Sélection de texte */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus visible pour accessibilité */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* États désactivés */
button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Amélioration des états hover sur tactile */
@media (hover: hover) {
    .suggestion-card:hover,
    .event-card:hover,
    .problem-card:hover {
        transform: translateY(-2px);
    }
    
    .vote-btn:hover {
        transform: scale(1.05);
    }
}

/* Styles pour les éléments signalés */
.reported-item {
    border-color: var(--report-color);
    background: rgba(220, 38, 38, 0.05);
}

.report-count {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--report-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Message d'état pour les éléments */
.item-message {
    background: var(--info-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.item-message.warning {
    background: var(--warning-color);
}

/* Styles pour les stats admin */
.admin-stats-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.75rem auto;
    max-width: 1000px;
    padding: 0 0.5rem;
}

.admin-stats-row {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) * 0.75);
    padding: 0.5rem 0.6rem;
    min-width: 130px;
    flex: 1;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.admin-stat-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.1;
}

.admin-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1;
    margin-top: -2px;
}

/* Responsive design pour les stats admin */
@media (max-width: 768px) {
    .admin-stats-dashboard {
        padding: 0 0.5rem;
    }
    
    .admin-stat-card {
        min-width: calc(50% - 0.5rem);
        padding: 0.6rem;
    }
    
    .admin-stat-number {
        font-size: 1.2rem;
    }
    
    .admin-stat-label {
        font-size: 0.75rem;
    }
}

/* Styles for Privacy Policy */
.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.privacy-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 320px;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-color);
    animation: slide-up 0.3s ease;
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-buttons button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 0;
}

.cookie-buttons a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: underline;
    margin-right: auto;
}

/* Style pour l'affichage de l'email dans l'admin */
.admin-actions .email-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-left: 0.5rem;
}

/* Styles pour les boutons de vote des commentaires */
.comment-actions .vote-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.comment-actions .vote-btn:hover {
    background: var(--bg-card);
    transform: translateY(-1px);
}

.comment-actions .vote-btn.voted {
    background: var(--primary-color);
    color: white;
}

/* Styles pour le formulaire de commentaire */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    position: relative;
}

#comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 180px; /* Espace pour le formulaire */
}

#comment-form {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

#comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    resize: vertical;
}

#comment-form button {
    align-self: flex-start;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.item-message.error {
    background: var(--error-color);
}

.item-message.success {
    background: var(--success-color);
}

/* ===== ACTIVITÉ RÉCENTE (VUE D'ENSEMBLE ADMIN) ===== */
.admin-stats-section {
    margin-bottom: 1.5rem;
}

#recent-activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateX(4px);
    border-color: var(--accent-color);
    background: rgba(77, 222, 128, 0.05);
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.approved {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.status-badge.unread {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

.priority-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
}

.priority-badge.medium {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning-color);
}

.priority-badge.low {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

.no-activity {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive pour l'activité récente */
@media (max-width: 768px) {
    .activity-item {
        padding: 0.8rem;
        gap: 0.75rem;
    }
    
    .activity-icon {
        font-size: 1.3rem;
    }
    
    .activity-title {
        font-size: 0.9rem;
    }
    
    .status-badge,
    .priority-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* ===== ANIMATIONS BIENVENUE ADMIN ===== */
@keyframes fadeIn {
    0% {
        opacity: 0 !important;
    }
    100% {
        opacity: 1 !important;
    }
}

.welcome-text.show {
    animation: fadeIn 0.8s ease-in-out forwards !important;
    opacity: 1 !important;
}

.admin-name-text.show {
    animation: fadeIn 0.8s ease-in-out forwards !important;
    opacity: 1 !important;
}

/* ===== STYLES DORÉS SPÉCIFIQUES À LA SECTION GESTION ===== */
#gestion .admin-tab.active,
#gestion .admin-tab:hover {
    background: #f59e0b !important;
    color: white !important;
}

#gestion .admin-stat-number {
    color: #f59e0b !important;
}

#gestion .btn-primary {
    background: #f59e0b !important;
}

#gestion .btn-primary:hover {
    background: #ea8f08 !important;
}

#gestion .status-badge.approved {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

#gestion .status-badge.resolved {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

#gestion .status-badge.replied {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

/* ===== ONGLET NOUVEAUTÉS ===== */
.updates-section {
    padding: 1rem;
}

.updates-display-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.updates-display-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.updates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.updates-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.updates-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--warning-color);
    border-radius: 50%;
}

.updates-edit-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.updates-edit-section textarea {
    width: 100%;
}

.version-input-wrapper {
    transition: all 0.3s ease;
}

.version-input-wrapper input:focus {
    outline: none;
}

.version-input-wrapper input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .updates-display-content {
        padding: 1.5rem;
    }
    
    .updates-display-content h2 {
        font-size: 1.5rem;
    }
    
    .updates-list li {
        font-size: 1rem;
        padding-left: 1.5rem;
    }
}

/* ===== ANNONCES - UTILISATEUR ===== */
.announcements-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.announcements-filters input,
.announcements-filters select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.announcements-filters input:focus,
.announcements-filters select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.announcements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.announcement-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.announcement-card.closed {
    opacity: 0.7;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.announcement-type-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.announcement-type-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.announcement-type-badge.inscription {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.announcement-type-badge.vote {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.announcement-type-badge.event {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.announcement-type-badge.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.announcement-status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.announcement-status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.announcement-status-badge.closed {
    background: rgba(115, 115, 115, 0.2);
    color: #737373;
}

.announcement-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.announcement-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.announcement-deadline {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.announcement-view-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.announcement-view-btn:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.no-announcements {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Badge annonce épinglée */
.announcement-pinned-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent-color);
    margin-left: 0.5rem;
}

.announcement-card.pinned {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

/* Bandeau annonce épinglée sur page d'accueil */
.pinned-announcement-banner {
    position: fixed;
    top: 65px; /* Sous la navbar */
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
    z-index: 999;
    animation: slideDown 0.4s ease-out;
    border-bottom: 2px solid var(--accent-color);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pinned-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.pinned-banner-text {
    flex: 1;
    min-width: 200px;
}

.pinned-banner-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.pinned-banner-btn {
    padding: 0.7rem 1.5rem;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
    white-space: nowrap;
}

.pinned-banner-btn:hover {
    background: #5eeb94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}

.pinned-banner-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
    line-height: 1;
    border-radius: 6px;
    flex-shrink: 0;
}

.pinned-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Responsive pour le bandeau */
@media (max-width: 768px) {
    .pinned-announcement-banner {
        top: 60px; /* Ajusté pour mobile */
        padding: 0.9rem 1rem;
    }
    
    .pinned-banner-content {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .pinned-banner-text {
        flex: 1 1 100%;
        text-align: center;
        order: 1;
    }
    
    .pinned-banner-title {
        font-size: 0.95rem;
    }
    
    .pinned-banner-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        order: 2;
        flex: 1;
    }
    
    .pinned-banner-close {
        order: 3;
        font-size: 1.3rem;
    }
}

/* Modale d'annonce */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.announcement-modal[style*="flex"] {
    display: flex;
}

.announcement-modal .modal-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.announcement-details {
    padding: 2rem;
}

.announcement-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.announcement-modal .close-modal:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    transform: rotate(90deg);
}

.announcement-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.announcement-details-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.announcement-details-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.announcement-details-content {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
}

/* Formulaire personnalisé */
.custom-form-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.custom-form-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.announcement-custom-form .form-field {
    margin-bottom: 1.5rem;
}

.announcement-custom-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.announcement-custom-form input,
.announcement-custom-form textarea,
.announcement-custom-form select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.announcement-custom-form input:focus,
.announcement-custom-form textarea:focus,
.announcement-custom-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.field-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
}

.form-submitted-message {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    text-align: center;
}

/* Sondage */
.poll-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.poll-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.poll-deadline,
.poll-limit {
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.poll-vote-form {
    margin-top: 1.5rem;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.poll-option:hover {
    border-color: var(--accent-color);
    background: rgba(74, 222, 128, 0.05);
}

.poll-option input[type="radio"],
.poll-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.poll-option label {
    flex: 1;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
}

.poll-auth-required {
    padding: 2rem;
    text-align: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.poll-auth-required p {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.voted-message {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    text-align: center;
    font-weight: 600;
}

.form-deadline {
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.form-deadline.passed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-closed-message {
    padding: 2rem;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-closed-message p {
    color: #ef4444;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-closed-message p:first-child {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Résultats du sondage */
.poll-results {
    margin-top: 1.5rem;
}

.no-votes {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.poll-result-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.poll-result-item.user-voted {
    border-color: var(--accent-color);
    background: rgba(74, 222, 128, 0.05);
}

.poll-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.poll-result-text {
    font-weight: 600;
    color: var(--text-primary);
}

.poll-result-stats {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.poll-result-bar {
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.poll-result-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.5s ease;
}

/* Réactions - Style Discord */
.reactions-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.reactions-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.reactions-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.top-reactions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.quick-reaction-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    background: rgba(74, 222, 128, 0.05);
}

.quick-reaction-btn.active {
    border-color: var(--accent-color);
    background: rgba(74, 222, 128, 0.15);
}

.quick-reaction-btn .reaction-emoji {
    font-size: 1.2rem;
}

.quick-reaction-btn .reaction-count {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.open-reactions-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.open-reactions-btn:hover {
    border-color: var(--accent-color);
    background: rgba(74, 222, 128, 0.05);
    transform: scale(1.05);
}

/* Pop-up de sélection des réactions */
.reaction-picker-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 1rem;
}

.reaction-picker-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.reaction-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.close-picker {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.close-picker:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.reaction-picker-scroll {
    padding: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-secondary);
}

.reaction-picker-scroll::-webkit-scrollbar {
    height: 8px;
}

.reaction-picker-scroll::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.reaction-picker-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.reaction-picker-scroll::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

.picker-reaction-btn {
    position: relative;
    min-width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}

.picker-reaction-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    background: rgba(74, 222, 128, 0.1);
}

.picker-reaction-btn.active {
    border-color: var(--accent-color);
    background: rgba(74, 222, 128, 0.2);
}

.picker-reaction-btn .reaction-emoji {
    font-size: 1.8rem;
}

.picker-reaction-btn .reaction-count-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.picker-reaction-btn.has-count .reaction-count-small {
    color: var(--accent-color);
}

/* ===== ANNONCES - ADMIN ===== */
.admin-announcements {
    padding: 1rem;
}

.announcement-create-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.announcement-create-section h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.poll-config-section,
.custom-form-config-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.poll-config-section h4,
.custom-form-config-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.form-fields-builder {
    margin-top: 1rem;
}

.form-fields-builder h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.form-field-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.field-item-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.field-item-header .field-label {
    flex: 1;
}

.btn-danger {
    padding: 0.5rem 1rem;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-danger-small {
    padding: 0.4rem 0.8rem;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger-small:hover {
    background: #dc2626;
}

.field-item-config {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.field-item-config select {
    flex: 1;
}

.field-advanced-config {
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.announcements-admin-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.announcements-admin-list h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.admin-announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-announcement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.admin-announcement-card:hover {
    border-color: var(--accent-color);
}

.admin-ann-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-ann-type {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-ann-status {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-ann-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.admin-ann-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.admin-ann-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-ann-actions button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Bouton d'épinglage admin */
.btn-pin {
    font-size: 1.2rem !important;
    padding: 0.4rem 0.6rem !important;
    transition: all 0.3s ease;
}

.btn-pin:hover {
    transform: scale(1.1) rotate(12deg);
}

.btn-pin.pinned {
    background: rgba(74, 222, 128, 0.2) !important;
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color);
}

/* Badge épinglée admin */
.pinned-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent-color);
}

.admin-announcement-card.pinned {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

/* Modale personnalisée pour stats */
.custom-stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
    overflow-y: auto;
}

.custom-stats-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    margin: auto;
    box-shadow: var(--shadow-lg);
}

.custom-stats-modal-content .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.custom-stats-modal-content .close-modal:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    transform: rotate(90deg);
}

.stats-modal-content h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.stats-summary {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.stats-summary p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stats-results {
    margin-bottom: 2rem;
}

.stat-option {
    margin-bottom: 1.5rem;
}

.stat-option-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-bar {
    height: 10px;
    background: var(--bg-card);
    border-radius: 5px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.5s ease;
}

.voters-list {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
}

.voter-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.voter-item:last-child {
    border-bottom: none;
}

.form-responses-content h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.responses-list {
    margin-top: 1.5rem;
}

.response-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.response-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.response-data {
    margin-top: 1rem;
}

.response-field {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.response-field strong {
    color: var(--text-primary);
}

/* Tableau des réponses */
.responses-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
}

.responses-actions button {
    flex: 1;
    min-width: 150px;
}

.response-filter {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.responses-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.responses-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.responses-table thead {
    background: var(--bg-secondary);
}

.responses-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.responses-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.responses-table tbody tr:hover {
    background: rgba(74, 222, 128, 0.05);
}

.responses-table tbody tr:last-child td {
    border-bottom: none;
}

.responses-grouped {
    margin-top: 1rem;
}

.response-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.response-group h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-ann-type.inscription,
.admin-ann-status.inscription {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* ===== RESPONSIVE ANNONCES ===== */
@media (max-width: 768px) {
    .announcements-filters {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .announcements-list {
        grid-template-columns: 1fr;
    }
    
    .announcement-card {
        padding: 1.25rem;
    }
    
    .announcement-modal {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .announcement-modal .modal-content {
        max-height: 95vh;
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }
    
    .announcement-modal .close-modal {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .announcement-details {
        padding: 1.25rem;
    }
    
    .announcement-details-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .announcement-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .announcement-details-content {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .custom-form-section,
    .poll-section,
    .reactions-section {
        padding: 1rem;
    }
    
    .reactions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .top-reactions {
        width: 100%;
        justify-content: center;
    }
    
    .open-reactions-btn {
        width: 100%;
    }
    
    .reaction-picker-content {
        max-width: 90vw;
    }
    
    .picker-reaction-btn {
        min-width: 55px;
        height: 55px;
    }
    
    .picker-reaction-btn .reaction-emoji {
        font-size: 1.5rem;
    }
    
    .poll-option {
        padding: 0.75rem;
    }
    
    .admin-announcements-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-create-section {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .admin-ann-actions {
        flex-direction: column;
    }
    
    .admin-ann-actions button {
        width: 100%;
    }
    
    .custom-stats-modal {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .custom-stats-modal-content {
        padding: 1.25rem;
        max-height: 95vh;
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }
    
    .custom-stats-modal-content .close-modal {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .voter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .response-item {
        padding: 1rem;
    }
    
    .responses-actions {
        flex-direction: column;
        padding: 0.75rem;
    }
    
    .responses-actions button,
    .response-filter {
        width: 100%;
        min-width: auto;
    }
    
    .responses-table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .responses-table th,
    .responses-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .response-group {
        padding: 1rem;
    }
}

/* Optimisation pour très petits écrans */
@media (max-width: 480px) {
    .announcement-type-badge,
    .announcement-status-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .announcement-title {
        font-size: 1.1rem;
    }
    
    .announcement-details-title {
        font-size: 1.2rem;
    }
    
    .poll-option label {
        font-size: 0.95rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}
