﻿/* Styles pour la page détail voyage */
.voyage-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.voyage-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1A1F36 0%, #2C3E50 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.voyage-title h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: white;
}

.voyage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0.9;
}

    .voyage-meta span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.9rem;
    }

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-modifier, .btn-nouvelle-activite {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modifier {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn-nouvelle-activite {
    background: #D4AF37;
    color: #1A1F36;
}

    .btn-modifier:hover, .btn-nouvelle-activite:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

/* Statistiques */
.voyage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1A1F36;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Onglets */
.tabs-container {
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: white;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #e0e0e0;
}

    .tab:last-child {
        border-right: none;
    }

    .tab.active {
        background: #3E8EDE;
        color: white;
    }

    .tab:hover:not(.active) {
        background: #f8f9fa;
        color: #3E8EDE;
    }

/* Contenu des onglets */
.tab-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Chronologie */
.chronologie-container {
    padding: 1.5rem;
}

.no-activities {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.btn-nouvelle-activite-large {
    background: #3E8EDE;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

    .btn-nouvelle-activite-large:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(62,142,222,0.3);
    }

.jour-groupe {
    margin-bottom: 2rem;
}

.jour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1rem;
}

    .jour-header h3 {
        color: #1A1F36;
        margin: 0;
        text-transform: capitalize;
    }

.jour-count {
    color: #666;
    font-size: 0.9rem;
}

.activites-jour {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activite-card {
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ccc;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

    .activite-card:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.activite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.activite-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-icon {
    font-size: 1.2rem;
}

.type-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.activite-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-docs, .btn-edit, .btn-delete {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

    .btn-docs:hover {
        background: rgba(111,66,193,0.1);
    }

    .btn-edit:hover {
        background: rgba(62,142,222,0.1);
    }

    .btn-delete:hover {
        background: rgba(220,53,69,0.1);
    }

.activite-content h4 {
    color: #1A1F36;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.activite-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-icon {
    font-size: 1rem;
}

.activite-description {
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #D4AF37;
}

.activite-documents {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.documents-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(62,142,222,0.1);
    color: #3E8EDE;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.statut-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.statut-primary {
    background: #cce7ff;
    color: #004085;
}

.statut-secondary {
    background: #d6d8db;
    color: #383d41;
}

.statut-success {
    background: #d4edda;
    color: #155724;
}

.statut-info {
    background: #d1ecf1;
    color: #0c5460;
}

.statut-danger {
    background: #f8d7da;
    color: #721c24;
}

.contact-info {
    color: #666;
    font-size: 0.8rem;
}

/* Catégories */
.categories-container {
    padding: 1.5rem;
}

.type-groupe {
    margin-bottom: 2rem;
}

.type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.type-icon-large {
    font-size: 2rem;
}

.type-header h3 {
    margin: 0;
    flex: 1;
    color: #1A1F36;
}

.type-count {
    color: #666;
    font-size: 0.9rem;
}

.type-activites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-left: 1rem;
}

.activite-card-compact {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

    .activite-card-compact:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

    .compact-header h5 {
        margin: 0;
        color: #1A1F36;
        font-size: 1rem;
    }

.compact-date {
    color: #666;
    font-size: 0.8rem;
}

.compact-lieu {
    color: #666;
    font-size: 0.9rem;
}

/* Budget */
.budget-container {
    padding: 1.5rem;
}

.budget-summary {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 8px;
}

    .budget-summary h3 {
        margin: 0 0 1rem 0;
        opacity: 0.9;
    }

.total-amount {
    font-size: 3rem;
    font-weight: bold;
}

.budget-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.budget-category {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.category-total {
    color: #28a745;
    font-size: 1.1rem;
}

.category-items {
    padding: 1rem;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .budget-item:last-child {
        border-bottom: none;
    }

/* Styles pour la page activité */
.activite-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.activite-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: white;
}

.voyage-info {
    display: flex;
    gap: 1rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

    .voyage-info span {
        font-size: 0.9rem;
    }

.activite-form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6f42c1;
}

    .form-section h3 {
        margin: 0 0 1rem 0;
        color: #1A1F36;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.activite-preview {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .activite-preview h3 {
        color: #1A1F36;
        margin: 0 0 1rem 0;
    }

.preview-card {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-type {
    font-weight: 600;
    color: #6f42c1;
}

.preview-statut {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.preview-card h4 {
    color: #1A1F36;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-item {
    color: #555;
    font-size: 0.9rem;
}

    .preview-item strong {
        margin-right: 0.5rem;
    }

/* Types d'input spéciaux */
input[type="time"] {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    input[type="time"]:focus {
        outline: none;
        border-color: #6f42c1;
        box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
    }

/* Styles pour le gestionnaire de documents */
.documents-manager {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

    .documents-header h4 {
        margin: 0;
        color: #1A1F36;
        font-size: 1.1rem;
    }

.btn-add-document {
    background: #3E8EDE;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .btn-add-document:hover {
        background: #2C5282;
        transform: translateY(-1px);
    }

/* Section d'upload */
.upload-section {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.file-name {
    color: #1A1F36;
    font-weight: 500;
}

.file-size {
    color: #666;
}

.document-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.form-select {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-upload {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-upload:hover:not(:disabled) {
        background: #218838;
        transform: translateY(-1px);
    }

    .btn-upload:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.upload-message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-weight: 500;
}

    .upload-message.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .upload-message.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

/* Liste des documents */
.documents-list {
    padding: 1rem;
}

.no-documents {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.document-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .document-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.document-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-icon {
    font-size: 1.1rem;
}

.type-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.document-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-preview, .btn-download, .btn-delete-doc {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
}

    .btn-preview:hover {
        background: rgba(62,142,222,0.1);
    }

    .btn-download:hover {
        background: rgba(40,167,69,0.1);
    }

    .btn-delete-doc:hover {
        background: rgba(220,53,69,0.1);
    }

.document-content {
    padding: 1rem;
}

    .document-content h5 {
        margin: 0 0 0.5rem 0;
        color: #1A1F36;
        font-size: 1rem;
    }

.document-description {
    color: #555;
    font-style: italic;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.document-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

/* Aperçu d'image */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

.image-preview-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-close-preview {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-small {
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Page de détail des documents */
.documents-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.documents-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-info h1 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: white;
}

.header-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: white;
    opacity: 0.95;
}

.activite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0.9;
}

    .activite-meta span {
        font-size: 0.9rem;
    }

.documents-detail-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

    /* Amélioration du gestionnaire de documents en mode page complète */
    .documents-detail-content .documents-manager {
        background: transparent;
        border: none;
        border-radius: 0;
        margin-top: 0;
    }

    .documents-detail-content .documents-header {
        background: #f8f9fa;
    }

/* Responsive pour la page de détail documents */
@media (max-width: 768px) {
    .documents-detail-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .activite-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .documents-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .document-details {
        grid-template-columns: 1fr;
    }

    .document-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .document-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .upload-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .activite-form-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .voyage-info {
        justify-content: center;
    }

    .form-section {
        padding: 1rem;
    }

    .preview-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .voyage-detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .voyage-meta {
        justify-content: center;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

        .tab:last-child {
            border-bottom: none;
        }

    .type-activites {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .activite-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .activite-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Vos styles existants */
.layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    background-color: #1A1F36;
    color: white;
    padding: 0;
    height: 60px;
}

    .topbar .logo {
        width: 200px; /* Même largeur que la sidebar */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        border-right: 1px solid #ccc;
        flex-shrink: 0;
    }

    .topbar .topmenu {
        flex: 1;
        display: flex;
        align-items: center;
        padding-left: 1rem;
    }

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D4AF37;
}

.topmenu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

    .topmenu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        cursor: pointer;
    }

        .topmenu a:hover {
            color: #3E8EDE;
        }

.main {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

    .sidebar li {
        margin-bottom: 0.5rem;
    }

    .sidebar a {
        display: block;
        text-decoration: none;
        color: #495057;
        padding: 0.75rem 1.5rem;
        font-weight: 350;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        position: relative;
    }

        .sidebar a:hover {
            color: #3E8EDE;
            background: linear-gradient(90deg, rgba(62,142,222,0.1) 0%, rgba(62,142,222,0.05) 100%);
            border-left-color: #3E8EDE;
            transform: translateX(3px);
        }

        .sidebar a:active {
            background: linear-gradient(90deg, rgba(62,142,222,0.15) 0%, rgba(62,142,222,0.08) 100%);
        }

        .sidebar a::before {
            content: "▶";
            position: absolute;
            left: 0.8rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            color: #3E8EDE;
            font-size: 0.7rem;
        }

        .sidebar a:hover::before {
            opacity: 1;
        }

    .sidebar p {
        color: #6c757d;
        font-style: italic;
        text-align: center;
        margin: 2rem 1rem;
        padding: 1rem;
        background: rgba(62,142,222,0.05);
        border-radius: 8px;
        border: 1px dashed #3E8EDE;
    }

.content {
    flex: 1;
    padding: 2rem;
    background-color: #F4F6FA;
}

/* Styles pour la page Voyages */
.voyages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.voyages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

    .voyages-header h1 {
        color: #1A1F36;
        font-size: 2rem;
        margin: 0;
    }

.btn-nouveau-voyage {
    background: linear-gradient(135deg, #3E8EDE, #2C5282);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(62, 142, 222, 0.3);
}

    .btn-nouveau-voyage:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(62, 142, 222, 0.4);
    }

.btn-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.voyages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.voyage-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

    .voyage-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .voyage-card.en-cours {
        border-left: 4px solid #28a745;
    }

    .voyage-card.a-venir {
        border-left: 4px solid #3E8EDE;
    }

.voyage-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .status-badge.en-cours {
        background: #d4edda;
        color: #155724;
    }

    .status-badge.a-venir {
        background: #cce7ff;
        color: #004085;
    }

.voyage-nom {
    color: #1A1F36;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    padding-right: 5rem;
}

.voyage-info {
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

    .info-item.duree {
        border-top: 1px solid #e0e0e0;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        font-weight: 600;
    }

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.voyage-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 3px solid #D4AF37;
}

    .voyage-description p {
        margin: 0;
        color: #555;
        font-style: italic;
    }
/* Galerie photos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .photo-card:hover {
        transform: scale(1.05);
    }

    .photo-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 15px;
}

    .photo-overlay p {
        margin: 0;
        font-size: 0.9em;
    }

/* Journal */
.journal-entry {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #667eea;
}

    .journal-entry:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

.journal-header {
    margin-bottom: 15px;
}

    .journal-header h4 {
        margin: 0 0 10px 0;
        color: #333;
        font-size: 1.4em;
    }

.journal-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #666;
}

.journal-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.voyage-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-details, .btn-modifier, .btn-supprimer {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-details {
    background: #3E8EDE;
    color: white;
}

    .btn-details:hover {
        background: #2C5282;
        transform: translateY(-2px);
    }

.btn-modifier {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

    .btn-modifier:hover {
        background: #e9ecef;
        color: #3E8EDE;
    }

.btn-supprimer {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

    .btn-supprimer:hover {
        background: #f1b0b7;
    }

.loading, .no-voyages {
    text-align: center;
    padding: 3rem;
    color: #666;
}

    .no-voyages h3 {
        color: #1A1F36;
        margin-bottom: 1rem;
    }

/* Styles pour les formulaires de voyage */
.voyage-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.voyage-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

    .voyage-form-header h1 {
        color: #1A1F36;
        font-size: 2rem;
        margin: 0;
    }

.btn-retour {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-retour:hover {
        background: #e9ecef;
        color: #3E8EDE;
    }

.voyage-form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.voyage-info-banner {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3E8EDE;
    display: flex;
    justify-content: space-between;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-input, .form-textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: #3E8EDE;
        box-shadow: 0 0 0 3px rgba(62, 142, 222, 0.1);
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.validation-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.voyage-preview {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .voyage-preview h3 {
        color: #1A1F36;
        margin: 0 0 1rem 0;
        font-size: 1.2rem;
    }

.preview-card {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.preview-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .preview-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .preview-item strong {
        color: #495057;
        margin-right: 0.5rem;
    }

.voyage-changes {
    margin-bottom: 2rem;
}

.changes-banner {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changes-icon {
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.btn-apercu {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-apercu:hover {
        background: #e9ecef;
        color: #3E8EDE;
    }

.btn-creer, .btn-sauvegarder {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

    .btn-creer:hover, .btn-sauvegarder:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }

    .btn-creer:disabled, .btn-sauvegarder:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.btn-annuler {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-annuler:hover {
        background: #5a6268;
    }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3E8EDE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container, .error-container {
    text-align: center;
    padding: 3rem;
    color: #666;
}

    .error-container h2 {
        color: #dc3545;
        margin-bottom: 1rem;
    }

/* Styles pour l'autocomplétion de destination */
.destination-autocomplete {
    position: relative;
    width: 100%;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.destination-input {
    width: 100%;
    padding: 0.75rem;
    padding-right: 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .destination-input:focus {
        outline: none;
        border-color: #3E8EDE;
        box-shadow: 0 0 0 3px rgba(62, 142, 222, 0.1);
    }

.loading-indicator {
    position: absolute;
    right: 0.75rem;
    pointer-events: none;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3E8EDE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .suggestion-item:hover,
    .suggestion-item.selected {
        background-color: #f8f9fa;
    }

    .suggestion-item.selected {
        background-color: rgba(62, 142, 222, 0.1);
        border-left: 3px solid #3E8EDE;
    }

.suggestion-main {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.suggestion-secondary {
    font-size: 0.85rem;
    color: #666;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .suggestions-dropdown {
        max-height: 200px;
    }

    .suggestion-item {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .voyage-form-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .voyage-form-card {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .voyages-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .voyages-grid {
        grid-template-columns: 1fr;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    #blazor-error-ui .reload {
        color: #0066cc;
        text-decoration: none;
        margin-right: 2rem;
    }

        #blazor-error-ui .reload:hover {
            text-decoration: underline;
        }
gmp-place-autocomplete {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    padding: 4px;
    display: block;
}
.hidden-destination {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
.hidden-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    .vol-details-card

{
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.vol-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

    .header-info p,
    .vol-section p {
        margin: 0.3rem 0;
    }

.vol-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
}

}