/* =========================================
   TRIPMATE - UI AMÉLIORÉE
   Thème : Navy (#001f3f) - Design Pro
   ========================================= */

/* --- VARIABLES --- */
:root {
    --navy-darkest: #000d1a;
    --navy-dark: #001529;
    --navy-main: #001f3f;
    --navy-light: #003366;
    --navy-lighter: #004080;
    
    --gray-dark: #1a2a3a;
    --gray-medium: #2c3e50;
    --gray-light: #95a5a6;
    
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8a9e;
    
    --accent: #3498db;
    --accent-hover: #2980b9;
    --accent-light: rgba(52, 152, 219, 0.15);
    
    --success: #27ae60;
    --success-bg: rgba(39, 174, 96, 0.15);
    --error: #e74c3c;
    --error-bg: rgba(231, 76, 60, 0.15);
    --warning: #f39c12;
    --warning-bg: rgba(243, 156, 18, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy-main) 50%, var(--navy-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER --- */
.site-header {
    background: rgba(0, 21, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem; /* Plus d'espace entre logo et menu */
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
    color: var(--text-primary);
}

.logo-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem; /* Plus d'espace horizontal */
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
    margin: 0 0.15rem; /* Petit espace entre les liens */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: transform var(--transition-normal);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--spacing-xxl) var(--spacing-xl);
}

/* --- PAGE HEADERS --- */
.page-header {
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-header .text-muted {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* --- BOUTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy-lighter) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--navy-light) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* ✅ Bordure plus subtile */
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--error);
    color: var(--text-primary);
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- CARTES --- */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- FORMULAIRES --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: -0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8c5d6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* --- ALERTES --- */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    font-size: 0.95rem;
    animation: slideInDown 0.3s ease-out;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(39, 174, 96, 0.3);
    color: #58d68d;
}

.alert-error {
    background: var(--error-bg);
    border-color: rgba(231, 76, 60, 0.3);
    color: #ec7063;
}

.alert-warning {
    background: var(--warning-bg);
    border-color: rgba(243, 156, 18, 0.3);
    color: #f5b041;
}

/* --- TABLEAUX --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

th, td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    background: rgba(0, 31, 63, 0.6);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

/* --- BADGES --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-light);
    color: var(--accent);
}

.badge-transport { background: rgba(52, 152, 219, 0.15); color: #5dade2; }
.badge-logement { background: rgba(39, 174, 96, 0.15); color: #58d68d; }
.badge-visite { background: rgba(243, 156, 18, 0.15); color: #f5b041; }
.badge-repas { background: rgba(155, 89, 182, 0.15); color: #bb8fce; }
.badge-activite { background: rgba(231, 76, 60, 0.15); color: #ec7063; }

/* --- FOOTER --- */
.site-footer {
    background: rgba(0, 13, 26, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-xxl) var(--spacing-xl);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-note {
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate {
    animation: fadeInUp 0.5s ease-out backwards;
}

.animate:nth-child(2) { animation-delay: 0.1s; }
.animate:nth-child(3) { animation-delay: 0.2s; }
.animate:nth-child(4) { animation-delay: 0.3s; }
.animate:nth-child(5) { animation-delay: 0.4s; }

/* --- HERO SECTION (Accueil) --- */
.hero {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FEATURES (Accueil) --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-md);
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- VOYAGES GRID --- */
.trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-lg);
}

.trip-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.trip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-md);
}

.trip-card .card-title {
    margin: 0;
    font-size: 1.35rem;
}

.trip-card .card-text {
    margin: 0;
    font-size: 0.95rem;
}

.trip-card-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.trip-card-actions .btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
}

.empty-state .btn {
    margin-top: var(--spacing-md);
}

/* --- STATISTIQUES --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--accent);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.next-trip {
    max-width: 500px;
    margin-left: 0;
}

/* --- PLANNING TIMELINE --- */
.timeline-wrapper {
    position: relative;
    padding: var(--spacing-lg) 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--navy-light), var(--accent), var(--navy-light));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--spacing-md) var(--spacing-xl);
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 3px solid var(--navy-dark);
    border-radius: 50%;
    top: 28px;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--accent-light);
    transition: all var(--transition-fast);
}

.timeline-item.left .timeline-marker {
    right: -7px;
}

.timeline-item.right .timeline-marker {
    left: -7px;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.4);
    box-shadow: 0 0 0 5px var(--accent-light);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.card-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* --- FORM CARD --- */
.form-card {
    max-width: 700px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 var(--spacing-lg);
    }
    
    .main-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .trip-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 var(--spacing-md);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(0, 21, 41, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: none;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active {
        display: block;
        animation: slideInDown 0.3s ease-out;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .trip-grid {
        grid-template-columns: 1fr;
    }
    
    .trip-card-actions {
        flex-direction: column;
    }
    
    .trip-card-actions .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: var(--spacing-md);
        text-align: left !important;
        left: 0 !important;
    }
    
    .timeline-marker {
        left: 13px !important;
        right: auto !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* --- PAGE ACTIONS (Bouton Créer voyage) --- */
.page-actions {
    margin-bottom: 2rem;  /* ✅ Augmente cet espace */
    padding-bottom: 1rem;
}

.page-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
/* --- STATS CARDS CLIQUABLES --- */
.stat-card-clickable {
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
    transition: all var(--transition-normal);
}

.stat-card-clickable:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.stat-card-clickable .stat-arrow {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all var(--transition-fast);
    color: var(--accent);
}

.stat-card-clickable:hover .stat-arrow {
    opacity: 1;
    right: var(--spacing-lg);
}

.stat-card-clickable .stat-icon {
    color: var(--accent);
}

/* --- TABLEAUX AMÉLIORÉS --- */
.table-wrapper table {
    font-size: 0.95rem;
}

.table-wrapper tbody tr {
    cursor: pointer;
    transition: background var(--transition-fast);
}

.table-wrapper tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* --- BARS DE PROGRESSION --- */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* --- TOP VOYAGES --- */
.top-trip-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.top-trip-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(4px);
}
/* Menu utilisateur - espacement et style */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem; /* ✅ Plus d'espace entre éléments */
    margin-left: auto;
}

.user-greeting {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

/* Ajustement spécifique pour le bouton Déconnexion */
.user-menu .btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
}
/* =========================================
   MENU DÉROULANT PROFIL UTILISATEUR
   ========================================= */

.user-menu-wrapper {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.user-profile-btn .user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy-lighter) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.user-profile-btn .user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-profile-btn .chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-profile-btn.active .chevron {
    transform: rotate(180deg);
}

/* Menu déroulant */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 220px;
    background: var(--navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

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

/* Petite flèche au-dessus du menu */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.profile-dropdown-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.profile-dropdown-header .user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.profile-dropdown-header .user-email {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.profile-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.profile-dropdown-menu a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.profile-dropdown-menu a:hover svg {
    opacity: 1;
    color: var(--accent);
}

.profile-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

.profile-dropdown-menu .logout {
    color: var(--error);
}

.profile-dropdown-menu .logout:hover {
    background: var(--error-bg);
    color: var(--error);
}

.profile-dropdown-menu .logout svg {
    color: var(--error);
    opacity: 0.8;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .profile-dropdown {
        right: 50%;
        transform: translateX(50%) translateY(-10px);
        width: 200px;
    }
    
    .profile-dropdown.active {
        transform: translateX(50%) translateY(0);
    }
    
    .user-profile-btn .user-name {
        display: none; /* Cache le nom sur mobile */
    }
}
/* Barre de recherche */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all var(--transition-fast);
    max-width: 500px;
}

.search-container:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-container svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Cartes de voyages - Design sobre */
.trip-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trip-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.trip-card .card-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-card .card-text svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.trip-card-budget {
    padding: 0.75rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    margin: 0.5rem 0;
}

.trip-card-budget strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.trip-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trip-card-actions .btn {
    flex: 1;
    justify-content: center;
}
/* =========================================
   HEADER - BOUTONS CONNEXION/INSCRIPTION

/* Uniformiser TOUS les boutons du menu utilisateur */
.user-menu .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    min-width: auto !important;
    white-space: nowrap;
}

/* Bouton Connexion (outline) */
.user-menu .btn-outline {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--text-secondary) !important;
}

.user-menu .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Bouton Inscription (primary) */
.user-menu .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--navy-lighter) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2) !important;
}

.user-menu .btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

/* Espacement entre les deux boutons */
.user-menu > a + a {
    margin-left: 0.5rem;
}

/* Mobile : boutons pleine largeur */
@media (max-width: 768px) {
    .user-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem !important;
    }
    
    .user-menu .btn {
        flex: 1;
        max-width: 140px;
    }
}
/* =========================================
   PASSWORD VISIBILITY TOGGLE
   ========================================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 2.5rem !important; /* Espace pour l'icône */
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--accent);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}
.logo-img { height: 32px;
    width: auto; display: block; 
    }
