/**
 * RDB IDFM - Styles principaux
 * Design moderne inspiré d'Île-de-France Mobilités
 */

/* Import Google Fonts - Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

/* Variables CSS - Couleurs officielles IDFM */
:root {
    /* Couleurs IDFM */
    --idfm-blue: #1972d2;
    --idfm-blue-dark: #155ba6;
    --idfm-blue-light: #4d94dd;
    --idfm-purple: #7c3aed;
    --idfm-purple-light: #a78bfa;

    /* Gris */
    --idfm-gray-50: #f9fafb;
    --idfm-gray-100: #f3f4f6;
    --idfm-gray-200: #e5e7eb;
    --idfm-gray-300: #d1d5db;
    --idfm-gray-400: #9ca3af;
    --idfm-gray-500: #6b7280;
    --idfm-gray-600: #4b5563;
    --idfm-gray-700: #374151;
    --idfm-gray-800: #1f2937;
    --idfm-gray-900: #111827;

    /* Couleurs sémantiques */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Police */
    --font-main: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 10px 30px -5px rgba(25, 114, 210, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Couleurs de fond et texte (mode clair par défaut) */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f0f4ff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
}

/* Mode sombre */
[data-theme="dark"] {
    /* Gris inversés pour le mode sombre */
    --idfm-gray-50: #111827;
    --idfm-gray-100: #1f2937;
    --idfm-gray-200: #374151;
    --idfm-gray-300: #4b5563;
    --idfm-gray-400: #6b7280;
    --idfm-gray-500: #9ca3af;
    --idfm-gray-600: #d1d5db;
    --idfm-gray-700: #e5e7eb;
    --idfm-gray-800: #f3f4f6;
    --idfm-gray-900: #f9fafb;

    /* Couleurs de fond et texte (mode sombre) */
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #0f172a;
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-tertiary: #d1d5db;
    --border-color: #374151;
    --card-bg: #1f2937;

    /* Ombres adaptées au mode sombre */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--idfm-blue) 0%, var(--idfm-blue-light) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--card-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--idfm-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.logo:hover .logo-icon {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-5deg);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Toggle thème */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: white;
    margin: 0 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Par défaut, afficher le soleil (mode clair) et cacher la lune */
[data-theme="light"] .theme-toggle .sun-icon,
.theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon,
.theme-toggle .moon-icon {
    display: none;
}

/* En mode sombre, afficher la lune et cacher le soleil */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Animation du toggle */
.theme-toggle svg {
    animation: rotate-in 0.3s ease-out;
}

@keyframes rotate-in {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Navigation */
nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a.active {
    background: var(--card-bg);
    color: var(--idfm-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.nav-item-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 100;
    pointer-events: none;
    line-height: 1;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 3px 8px rgba(239, 68, 68, 0.7);
    }
}

[data-theme="dark"] .new-badge {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

/* Main content */
main {
    flex: 1;
    padding: 3rem 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--idfm-gray-900) 0%, var(--idfm-gray-800) 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer p {
    opacity: 0.9;
    font-size: 0.9375rem;
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.9375rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--idfm-blue) 0%, var(--idfm-blue-dark) 100%);
    color: white;
}

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

.btn-secondary {
    background: var(--idfm-gray-100);
    color: var(--idfm-gray-800);
}

.btn-secondary:hover {
    background: var(--idfm-gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 12px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--idfm-blue-light);
}

.card-header {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.badge-success {
    background: var(--success-light);
    color: #065f46;
}

[data-theme="dark"] .badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.badge-warning {
    background: var(--warning-light);
    color: #92400e;
}

[data-theme="dark"] .badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.badge-danger {
    background: var(--danger-light);
    color: #991b1b;
}

[data-theme="dark"] .badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.badge-info {
    background: var(--info-light);
    color: #1e40af;
}

[data-theme="dark"] .badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.badge-primary {
    background: #dbeafe;
    color: var(--idfm-blue-dark);
}

/* Stats boxes */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-box {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.stat-box:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--idfm-blue);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--idfm-blue);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--idfm-gray-600);
    margin-top: 0.75rem;
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--idfm-gray-900);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    background: var(--card-bg);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}

.form-control:hover {
    border-color: var(--idfm-gray-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--idfm-blue);
    box-shadow: 0 0 0 4px rgba(25, 114, 210, 0.1);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-text {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Incidents list */
.incident-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--idfm-blue);
    transition: all var(--transition-base);
}

.incident-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(4px);
    border-left-width: 6px;
}

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

.line-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    color: white;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.incident-meta {
    font-size: 0.875rem;
    color: var(--idfm-gray-600);
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.incident-vote {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--idfm-gray-600);
}

.vote-btn {
    background: linear-gradient(135deg, var(--idfm-blue) 0%, var(--idfm-blue-light) 100%);
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.vote-btn:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-blue);
}

.vote-btn:active {
    transform: scale(1.05);
}

/* Filters */
.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem 1rem;
}

.spinner {
    border: 4px solid var(--idfm-gray-200);
    border-top: 4px solid var(--idfm-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Alert messages */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-color: var(--success);
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.alert-error {
    background: var(--danger-light);
    color: #991b1b;
    border-color: var(--danger);
}

[data-theme="dark"] .alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border-color: var(--info);
}

[data-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-color: var(--warning);
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-base);
}

[data-theme="dark"] .modal {
    background: rgba(0, 0, 0, 0.85);
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--transition-base);
}

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

.modal-header {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: var(--idfm-gray-900);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--idfm-blue) 0%, var(--idfm-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    color: var(--idfm-gray-600);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}

/* Grid utilities */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Header compact */
    header .container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .logo {
        padding: 0 1rem;
    }

    .logo-text h1 {
        font-size: 1.125rem;
    }

    .logo-text p {
        font-size: 0.6875rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }

    /* Menu horizontal scrollable (swipeable) */
    nav {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 1rem 0.5rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    /* Cacher la scrollbar */
    nav::-webkit-scrollbar {
        display: none;
    }

    /* Boutons compacts pour swipe */
    nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    /* Indicateur de scroll (subtil) */
    nav::after {
        content: '';
        flex: 0 0 1px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .incident-header {
        flex-direction: column;
    }

    .card {
        padding: 1.25rem;
    }

    .stat-box {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        padding: 1.5rem;
    }

    /* Navigation ultra-compacte sur petits écrans */
    nav a {
        padding: 0.5rem 0.875rem;
    }
}

/* Icônes seulement sur très petits écrans */
@media (max-width: 380px) {
    nav .nav-text {
        display: none;
    }

    nav .nav-icon {
        font-size: 1.25rem;
    }

    nav a {
        padding: 0.625rem !important;
        min-width: 44px;
        justify-content: center;
    }
}

/* ============================================
   BOUTON FLOTTANT MOBILE
   ============================================ */
.quick-report-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    cursor: pointer;
    z-index: 90;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .quick-report-fab {
        display: flex !important;
    }

    .quick-report-fab:active {
        transform: scale(0.9);
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mb-8 { margin-bottom: 4rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}
