/**
 * Styles PolyDrive
 */

/* Panneau principal */
.panneau-drive {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panneau-drive.ouvert {
    opacity: 1;
}

.panneau-drive.fermeture {
    opacity: 0;
}

.drive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.drive-contenu {
    position: relative;
    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    height: calc(100% - 40px);
    background: var(--fond-principal, #fff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

/* Header */
.drive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
    background: var(--fond-secondaire, #f5f5f5);
}

.drive-titre {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--texte-principal, #333);
}

.drive-stats {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--texte-secondaire, #666);
    background: var(--fond-tertiaire, #f0f0f0);
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drive-stats i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.drive-titre i {
    color: var(--accent, #6366f1);
}

.drive-actions-header {
    display: flex;
    gap: 8px;
}

/* Navigation */
.drive-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
    background: var(--fond-principal, #fff);
}

.drive-btn-nav {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--fond-tertiaire, #f0f0f0);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.drive-btn-nav:hover:not(:disabled) {
    background: var(--accent, #6366f1);
    color: white;
}

.drive-btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.drive-chemin {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}

.chemin-segment {
    padding: 4px 12px;
    background: var(--fond-tertiaire, #f0f0f0);
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.chemin-segment:hover {
    background: var(--accent, #6366f1);
    color: white;
}

.drive-recherche {
    position: relative;
    width: 250px;
}

.drive-recherche input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--fond-principal, #fff);
    color: var(--texte-principal, #333);
}

.drive-recherche input:focus {
    outline: none;
    border-color: var(--accent, #6366f1);
}

.drive-recherche i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texte-tertiaire, #999);
}

/* Toolbar */
.drive-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
    background: var(--fond-principal, #fff);
    flex-wrap: wrap;
}

.drive-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: var(--fond-tertiaire, #f0f0f0);
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--texte-principal, #333);
}

.drive-btn:hover {
    background: var(--accent, #6366f1);
    color: white;
}

.drive-btn i {
    font-size: 0.875rem;
}

.drive-separateur {
    width: 1px;
    height: 24px;
    background: var(--bordure, #e0e0e0);
    margin: 0 8px;
}

/* Contenu fichiers */
.drive-contenu-fichiers {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.drive-chargement,
.drive-erreur,
.drive-vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    text-align: center;
    color: var(--texte-secondaire, #666);
}

.drive-chargement i,
.drive-erreur i,
.drive-vide i {
    font-size: 3rem;
    opacity: 0.5;
}

.drive-erreur i {
    color: var(--danger, #ef4444);
}

/* Mode liste */
.drive-liste {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drive-liste-header {
    display: grid;
    grid-template-columns: 1fr 100px 80px 100px 60px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--texte-tertiaire, #999);
    border-bottom: 1px solid var(--bordure, #e0e0e0);
}

.drive-ligne {
    display: grid;
    grid-template-columns: 1fr 100px 80px 100px 60px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
}

.drive-ligne:hover {
    background: var(--fond-tertiaire, #f0f0f0);
}

.drive-ligne.selectionne {
    background: var(--accent-light, #e0e7ff);
}

.drive-ligne .col-nom {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.drive-ligne .col-nom i {
    font-size: 1.25rem;
    color: var(--accent, #6366f1);
    flex-shrink: 0;
}

.drive-ligne .col-nom span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-icone-public {
    font-size: 0.75rem !important;
    color: var(--success, #22c55e) !important;
    margin-left: 8px;
}

.drive-ligne .col-type,
.drive-ligne .col-taille,
.drive-ligne .col-date {
    font-size: 0.875rem;
    color: var(--texte-secondaire, #666);
}

.drive-ligne .col-taille {
    font-family: monospace;
}

.drive-ligne .col-actions {
    text-align: center;
}

/* Mode grille */
.drive-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.drive-carte {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.drive-carte:hover {
    border-color: var(--accent, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.drive-carte.selectionne {
    border-color: var(--accent, #6366f1);
    background: var(--accent-light, #e0e7ff);
}

.drive-carte-icone {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent, #6366f1);
    margin-bottom: 12px;
}

.drive-carte-nom {
    font-size: 0.875rem;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.drive-badge-public {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--success, #22c55e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

/* Footer */
.drive-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-top: 1px solid var(--bordure, #e0e0e0);
    background: var(--fond-secondaire, #f5f5f5);
    font-size: 0.875rem;
    color: var(--texte-secondaire, #666);
}

.drive-actions-selection {
    display: flex;
    gap: 8px;
}

.drive-btn-small {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--fond-tertiaire, #f0f0f0);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.drive-btn-small:hover {
    background: var(--accent, #6366f1);
    color: white;
}

.drive-btn-small.drive-btn-danger:hover {
    background: var(--danger, #ef4444);
}

/* Boutons icon */
.drive-btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--texte-principal, #333);
}

.drive-btn-icon:hover {
    background: var(--fond-tertiaire, #f0f0f0);
}

.drive-btn-icon-small {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texte-secondaire, #666);
}

.drive-btn-icon-small:hover {
    background: var(--fond-tertiaire, #f0f0f0);
    color: var(--texte-principal, #333);
}

/* Menu contextuel */
.drive-menu-contextuel {
    position: fixed;
    background: var(--fond-principal, #fff);
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    min-width: 180px;
    overflow: hidden;
}

.drive-menu-contextuel button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--texte-principal, #333);
    text-align: left;
}

.drive-menu-contextuel button:hover {
    background: var(--fond-tertiaire, #f0f0f0);
}

.drive-menu-contextuel button.danger {
    color: var(--danger, #ef4444);
}

.drive-menu-separateur {
    height: 1px;
    background: var(--bordure, #e0e0e0);
    margin: 4px 0;
}

/* Dialogue */
.drive-dialogue {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drive-dialogue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.drive-dialogue-contenu {
    position: relative;
    background: var(--fond-principal, #fff);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.drive-dialogue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
}

.drive-dialogue-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.drive-dialogue-header button {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
}

.drive-dialogue-header button:hover {
    background: var(--fond-tertiaire, #f0f0f0);
}

.drive-dialogue-body {
    padding: 20px;
}

.drive-partage-section {
    margin-bottom: 20px;
}

.drive-partage-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    color: var(--texte-secondaire, #666);
}

.drive-partage-lien {
    display: flex;
    gap: 8px;
}

.drive-partage-lien input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--fond-tertiaire, #f0f0f0);
}

.drive-partage-lien button,
.drive-partage-utilisateur button {
    padding: 10px 16px;
    border: none;
    background: var(--accent, #6366f1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drive-partage-utilisateur {
    display: flex;
    gap: 8px;
}

.drive-partage-utilisateur input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
}

.drive-partage-utilisateur select {
    padding: 10px 12px;
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--fond-principal, #fff);
}

/* Notification */
.drive-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 20px;
    background: var(--fond-principal, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transition: transform 0.3s ease;
}

.drive-notification.visible {
    transform: translateX(-50%) translateY(0);
}

.drive-notification-success {
    border-left: 4px solid var(--success, #22c55e);
}

.drive-notification-success i {
    color: var(--success, #22c55e);
}

.drive-notification-error {
    border-left: 4px solid var(--danger, #ef4444);
}

.drive-notification-error i {
    color: var(--danger, #ef4444);
}

.drive-notification-info {
    border-left: 4px solid var(--accent, #6366f1);
}

.drive-notification-info i {
    color: var(--accent, #6366f1);
}

/* Drag and drop */
.drive-contenu-fichiers.drag-over {
    background: var(--accent-light, #e0e7ff);
    border: 2px dashed var(--accent, #6366f1);
}

.drive-carte.dragging,
.drive-ligne.dragging {
    opacity: 0.5;
}

/* Bouton save to drive dans les blocs de code */
.btn-sauver-drive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: none;
    background: var(--accent, #6366f1);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sauver-drive:hover {
    background: var(--accent-dark, #4f46e5);
    transform: scale(1.05);
}

.btn-sauver-drive i {
    font-size: 11px;
}

/* Bouton d'accès au Drive dans le header */
.btn-drive-header {
    position: relative;
}

.btn-drive-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent, #6366f1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-drive-header:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .drive-contenu {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .drive-navigation {
        flex-wrap: wrap;
    }

    .drive-recherche {
        width: 100%;
        order: 1;
        margin-top: 8px;
    }

    .drive-toolbar {
        overflow-x: auto;
    }

    .drive-liste-header {
        display: none;
    }

    .drive-ligne {
        grid-template-columns: 1fr 60px;
    }

    .drive-ligne .col-type,
    .drive-ligne .col-taille,
    .drive-ligne .col-date {
        display: none;
    }

    .drive-grille {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Boutons contextuels artifacts */
.btn-publier-artifact,
.btn-partager-artifact,
.btn-imprimer-artifact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-publier-artifact {
    background: var(--success, #22c55e);
    color: white;
}

.btn-publier-artifact:hover {
    background: #16a34a;
    transform: scale(1.05);
}

.btn-partager-artifact {
    background: var(--accent, #6366f1);
    color: white;
}

.btn-partager-artifact:hover {
    background: var(--accent-dark, #4f46e5);
    transform: scale(1.05);
}

.btn-imprimer-artifact {
    background: var(--texte-secondaire, #666);
    color: white;
}

.btn-imprimer-artifact:hover {
    background: var(--texte-principal, #333);
    transform: scale(1.05);
}

.btn-publier-artifact i,
.btn-partager-artifact i,
.btn-imprimer-artifact i {
    font-size: 11px;
}

/* Panneau détails fichier */
.drive-panneau-details {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: var(--fond-principal, #fff);
    border-left: 1px solid var(--bordure, #e0e0e0);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.drive-panneau-details.ouvert {
    transform: translateX(0);
}

.drive-panneau-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
}

.drive-panneau-details-header h3 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drive-panneau-details-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drive-details-apercu {
    background: var(--fond-tertiaire, #f5f5f5);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow: hidden;
}

.drive-details-section {
    margin-bottom: 20px;
}

.drive-details-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--texte-tertiaire, #999);
    margin: 0 0 12px 0;
}

.drive-details-info {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
    font-size: 0.875rem;
}

.drive-details-info:last-child {
    border-bottom: none;
}

.drive-details-label {
    color: var(--texte-secondaire, #666);
}

.drive-details-value {
    color: var(--texte-principal, #333);
    font-weight: 500;
}

.drive-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drive-details-tag {
    padding: 4px 10px;
    background: var(--accent-light, #e0e7ff);
    color: var(--accent, #6366f1);
    border-radius: 12px;
    font-size: 0.75rem;
}

.drive-details-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.drive-details-actions .drive-btn {
    justify-content: center;
}

/* Sélecteur d'assets dans zone de saisie */
.drive-asset-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--fond-principal, #fff);
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow: hidden;
    display: none;
}

.drive-asset-picker.visible {
    display: block;
}

.drive-asset-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
    background: var(--fond-secondaire, #f5f5f5);
}

.drive-asset-picker-header h4 {
    margin: 0;
    font-size: 0.875rem;
}

.drive-asset-picker-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
}

.drive-asset-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: var(--fond-tertiaire, #f0f0f0);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.drive-asset-tab:hover,
.drive-asset-tab.active {
    background: var(--accent, #6366f1);
    color: white;
}

.drive-asset-tab i {
    font-size: 1.25rem;
}

.drive-asset-picker-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
}

.drive-asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.drive-asset-item:hover {
    background: var(--fond-tertiaire, #f0f0f0);
}

.drive-asset-item i {
    font-size: 1.25rem;
    color: var(--accent, #6366f1);
}

.drive-asset-item-info {
    flex: 1;
    overflow: hidden;
}

.drive-asset-item-name {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drive-asset-item-date {
    font-size: 0.75rem;
    color: var(--texte-tertiaire, #999);
}

/* Résultats de recherche */
.drive-liste-resultats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.drive-resultat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--fond-principal, #fff);
    border: 1px solid var(--bordure, #e0e0e0);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.drive-resultat:hover {
    background: var(--fond-secondaire, #f5f5f5);
    border-color: var(--accent, #6366f1);
}

.resultat-icone {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fond-tertiaire, #f0f0f0);
    border-radius: 8px;
}

.resultat-icone i {
    font-size: 1.25rem;
    color: var(--accent, #6366f1);
}

.resultat-infos {
    flex: 1;
    min-width: 0;
}

.resultat-nom {
    font-weight: 500;
    color: var(--texte-principal, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resultat-chemin {
    font-size: 0.8rem;
    color: var(--texte-secondaire, #666);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.resultat-chemin:hover {
    color: var(--accent, #6366f1);
    text-decoration: underline;
}

.resultat-date {
    font-size: 0.85rem;
    color: var(--texte-tertiaire, #999);
    white-space: nowrap;
}

.resultat-actions {
    display: flex;
    gap: 4px;
}

/* Sélecteur de dossier modal */
.drive-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.drive-modal {
    background: var(--fond-principal, #fff);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.drive-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bordure, #e0e0e0);
}

.drive-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drive-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.selecteur-chemin {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--fond-secondaire, #f5f5f5);
    border-bottom: 1px solid var(--bordure, #e0e0e0);
    flex-wrap: wrap;
}

.selecteur-liste {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 200px;
    max-height: 300px;
}

.selecteur-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.selecteur-item:hover {
    background: var(--fond-tertiaire, #f0f0f0);
}

.selecteur-item i {
    color: var(--accent, #6366f1);
}

.drive-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--bordure, #e0e0e0);
}

.drive-btn-primary {
    background: var(--accent, #6366f1) !important;
    color: white !important;
}

.drive-btn-primary:hover {
    background: var(--accent-hover, #4f46e5) !important;
}

/* Fil d'Ariane */
.chemin-segment {
    color: var(--texte-secondaire, #666);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.chemin-segment:hover:not(.actif) {
    background: var(--fond-tertiaire, #f0f0f0);
    color: var(--texte-principal, #333);
}

.chemin-segment.actif {
    color: var(--texte-principal, #333);
    font-weight: 500;
    cursor: default;
}

.chemin-separateur {
    color: var(--texte-tertiaire, #999);
    font-size: 0.7rem;
}
