/* ======================================== */
/* VARIABLES CSS - SYSTÈME DE DESIGN       */
/* ======================================== */

:root {
    /* === COULEURS PRIMAIRES === */
    --color-primary-blue: #667eea;
    --color-primary-purple: #667eea;
    --color-primary-light: #4299e1;
    --color-primary-dark: #5a67d8;
    
    /* === COULEURS SÉMANTIQUES === */
    --color-success: #4CAF50;
    --color-success-dark: #45a049;
    --color-success-light: #48bb78;
    --color-success-lighter: #38a169;
    
    /* === COULEURS NEUTRES === */
    --color-white: #ffffff;
    --color-gray-50: #f7fafc;
    --color-gray-100: #f8fafc;
    --color-gray-200: #e2e8f0;
    --color-gray-400: #666666;
    --color-gray-600: #4a5568;
    --color-gray-700: #2d3748;
    --color-gray-900: #1a202c;
    
    /* === OMBRES === */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 4px 12px rgba(102, 126, 234, 0.3);
    --shadow-primary: 0 6px 16px rgba(102, 126, 234, 0.25);
    --shadow-primary-strong: 0 6px 24px rgba(102, 126, 234, 0.5);
    --shadow-purple: 0 6px 32px rgba(118, 75, 162, 0.8);
    --shadow-success: 0 2px 8px rgba(72, 187, 120, 0.3);
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);
    
    /* === BORDURES === */
    --border-width-thin: 1px;
    --border-width-normal: 2px;
    --border-width-thick: 3px;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    
    /* === ESPACEMENTS === */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;

/* ======================================== */
/* ALIGNEMENT DES ICÔNES ÉMOJIS            */
/* ======================================== */

/* Correction de l'alignement des émojis avec le texte - alignement par le bas */
.emoji-icon {
    display: inline-block;
    vertical-align: baseline;  /* Alignement par la ligne de base (bas) */
    line-height: 1;
    margin-right: 0.5rem;
    /* Ajustement pour aligner sur la ligne de base du texte */
    transform: translateY(0.1em);
}

/* Alignement spécial pour les titres */
h1 .emoji-icon {
    font-size: 0.9em;
    margin-right: 0.6rem;
    transform: translateY(0.15em);  /* Plus d'ajustement vers le bas pour les gros titres */
}

h2 .emoji-icon {
    font-size: 0.95em;
    margin-right: 0.5rem;
    transform: translateY(0.12em);
}

h3 .emoji-icon {
    font-size: 1em;
    margin-right: 0.4rem;
    transform: translateY(0.1em);
}

/* Pour les boutons et liens */
.nav-btn .emoji-icon {
    margin-right: 0.4rem;
    transform: translateY(0.08em);  /* Léger décalage vers le bas */
}

/* Pour les onglets */
.tab-button .emoji-icon {
    margin-right: 0.3rem;
    font-size: 0.9em;
    transform: translateY(0.05em);
}
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* === BREAKPOINTS === */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-large: 1400px;
    
    /* === LAYOUT === */
    --max-width-container: 1400px;
    --padding-container: 3rem;
    --gap-main: 1rem;
    
    /* === Z-INDEX SYSTEM === */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-modal: 1000;
    --z-tooltip: 2000;
    --z-overlay: 9999;
    
    /* === TYPOGRAPHIE === */
    --font-size-base: 16px;
    --font-size-lg: 1.2rem;
    --line-height-base: 1.6;
    
    /* === TRANSITIONS === */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* === GRADIENTS === */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-primary-purple) 100%);
    --gradient-primary-alt: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-blue) 100%);
    --gradient-success: linear-gradient(135deg, var(--color-success), var(--color-success-dark));
    --gradient-animated: linear-gradient(45deg, var(--color-primary-blue), var(--color-primary-purple), var(--color-primary-blue), var(--color-primary-dark));
}

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

/* IMPORTANT : Masquer complètement les liens d'achat */
.links a[title="Lien d'achat"] {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: var(--line-height-base);
    color: var(--color-gray-900);
    background-color: var(--color-gray-50);
    /* Optimisations PWA iOS */
    padding-top: env(safe-area-inset-top);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Améliorer les performances de défilement sur iOS */
    -webkit-overflow-scrolling: touch;
    /* 🔧 CORRECTION SCROLL HORIZONTAL */
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Styles pour application PWA en plein écran */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        /* Optimisations spécifiques PWA */
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Désactiver le zoom sur les inputs en mode PWA */
    input, select, textarea {
        font-size: var(--font-size-base) !important;
    }
}

/* Support pour les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   NAVIGATION INTER-ONGLETS POUR LES PIÈCES
   ======================================== */

/* ========================================
   ICÔNES LUCIDE - ALIGNEMENT SIMPLE
   ======================================== */

/* Anti-flickering pour toutes les icônes Lucide */
[data-lucide] {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    min-width: 16px;
    min-height: 16px;
}

/* État initial des icônes non initialisées (avant chargement Lucide) */
[data-lucide]:not([class*="lucide-"]) {
    opacity: 0.3;
}

/* Alignement de base pour toutes les icônes Lucide sauf dans les boutons */
[data-lucide]:not(button [data-lucide]):not(.btn [data-lucide]):not(.btn-icon [data-lucide]):not(.btn-small [data-lucide]):not(.btn-member-action [data-lucide]):not(.action-btn [data-lucide]):not(.visibility-toggle [data-lucide]):not(.copy-btn [data-lucide]):not(.btn-copy-code [data-lucide]) {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

/* Icônes dans les boutons - pas de marge pour centrage parfait */
button [data-lucide], 
.btn [data-lucide], 
.btn-icon [data-lucide], 
.btn-small [data-lucide], 
.btn-member-action [data-lucide],
.action-btn [data-lucide],
.visibility-toggle [data-lucide],
.copy-btn [data-lucide],
.btn-copy-code [data-lucide] {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    width: 16px;
    height: 16px;
}

/* Icônes dans les titres un peu plus grandes */
h1 [data-lucide] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Icônes dans les onglets */
.tab-btn [data-lucide] {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* Styles pour les icônes SVG modernes (legacy) */
.icon-svg {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5em;
    fill: currentColor;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tab-button .icon-svg {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.4em;
}

.mobile-nav-icon .icon-svg {
    width: 1.4em;
    height: 1.4em;
    margin-right: 0;
}

/* Couleurs spécifiques selon l'état */
.tab-button.active .icon-svg {
    fill: url(#gradient-active);
    stroke: url(#gradient-active);
}

.mobile-nav-item.active .icon-svg {
    fill: url(#gradient-active);
    stroke: url(#gradient-active);
}

.mobile-nav-item:not(.active) .icon-svg {
    fill: currentColor;
    opacity: 0.8;
}

/* Styles pour les pièces cliquables dans les événements */
.clickable-piece {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.clickable-piece:hover {
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.clickable-piece .piece-click-indicator {
    opacity: 0;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.clickable-piece:hover .piece-click-indicator {
    opacity: 1;
}

/* Animation de mise en évidence délicate pour les pièces trouvées */
.piece-highlighted {
    position: relative;
    animation: subtlePieceHighlight 3.5s ease-in-out;
    border: var(--border-width-normal) solid var(--color-primary-blue) !important;
    box-shadow: var(--shadow-primary) !important;
    z-index: var(--z-dropdown);
}

/* Version renforcée pour mobile - garantit visibilité */
.piece-highlighted-important {
    border: var(--border-width-thick) solid var(--color-primary-purple) !important;
    box-shadow: var(--shadow-primary-strong) !important;
    z-index: var(--z-dropdown);
    animation: strongPieceHighlight 1s infinite alternate !important;
}

@keyframes strongPieceHighlight {
    0% { box-shadow: var(--shadow-primary-strong); }
    100% { box-shadow: var(--shadow-purple); }
}

.piece-highlighted::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-animated);
    background-size: 300% 300%;
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    animation: gentleBorderGlow 3.5s ease-in-out, gradientShift 3.5s ease-in-out;
}

@keyframes subtlePieceHighlight {
    0% {
        transform: scale(1);
        border-color: var(--color-gray-200);
    }
    15% {
        transform: scale(1.02);
        border-color: var(--color-primary-blue);
    }
    30% {
        transform: scale(1.025);
        border-color: var(--color-primary-dark);
    }
    50% {
        transform: scale(1.02);
        border-color: #667eea;
    }
    70% {
        transform: scale(1.015);
        border-color: #667eea;
    }
    100% {
        transform: scale(1);
        border-color: #667eea;
    }
}

@keyframes gentleBorderGlow {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Amélioration visuelle des piece-items existants */
.piece-item {
    position: relative;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--color-white);
    border: var(--border-width-normal) solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.piece-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin: 0;
    /* Réserver de l'espace pour la flèche sur mobile */
    padding-right: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .clickable-piece:hover {
        transform: none; /* Pas de translation sur mobile */
    }
    
    .piece-click-indicator {
        opacity: 1 !important; /* Toujours visible sur mobile */
        font-size: 1rem;
        right: 8px; /* Réduire un peu l'espace depuis le bord */
    }
    
    /* Ajuster le padding du titre pour plus d'espace avec la flèche sur mobile */
    .piece-item h5 {
        padding-right: 35px; /* Augmenter l'espace réservé pour la flèche */
        font-size: 1rem; /* Légèrement plus petit sur mobile */
    }
    
    .piece-highlighted {
        transform: scale(1.01) !important; /* Mise à l'échelle légèrement plus visible sur mobile */
    }
    
    .piece-highlighted::before {
        opacity: 0.2 !important; /* Effet un peu plus visible sur mobile */
    }
}

/* Header supprimé - remplacé par la navigation */
header {
    display: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Statistiques du site */
.site-statistics {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
    min-width: 80px;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    text-align: center;
}

/* Durée des sections */
.section-duration {
    color: var(--color-gray-400);
    font-weight: normal;
    font-size: 0.9em;
}

/* Résumé des sections */
.section-summary {
    margin-top: 1.5rem; /* Légèrement augmenté de 1rem à 1.5rem */
    padding: 0 2rem 1.5rem; /* Ajout de padding horizontal et bottom pour équilibrer */
}

.summary-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem; /* Augmenté verticalement de 0.75rem à 1rem */
    background: var(--color-gray-100);
    border-radius: 8px;
    border: var(--border-width-thin) solid var(--color-gray-200);
}

.stat-pieces,
.stat-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-gray-600);
}

.stat-pieces::before {
    content: "";
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.25em;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z' fill='%234a5568'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.stat-duration::before {
    content: "";
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.25em;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z' fill='%234a5568'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

@media (max-width: 768px) {
    .summary-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.admin-link {
    background: var(--gradient-success);
    color: var(--color-white);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: -0.025em;
    margin: 0;
    opacity: 0.9;
}

/* Header mobile simplifié - complètement masqué */
.mobile-header {
    display: none !important;
}

/* ======================================== */
/* 🔧 CORRECTION ESPACE VIDE MOBILE/PWA    */
/* ======================================== */

/* Empêcher l'accumulation d'espace vide après navigation entre onglets */
@media (max-width: 1024px) {
    body {
        /* Force la suppression des espaces vides artificiels */
        min-height: 100vh !important;
        height: auto !important;
    }
    
    main {
        /* Garantir que le contenu principal ne génère pas d'espace vide */
        min-height: 0 !important;
        height: auto !important;
        padding-bottom: 0 !important; /* Suppression totale du padding-bottom de base */
    }
    
    /* Correction spécifique après navigation dashboard */
    .tab-content#dashboard {
        min-height: 0 !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }
    
    /* Empêcher les sections de créer des espaces vides */
    .concert-section,
    .dashboard-section,
    .empty-section {
        min-height: 0 !important;
        height: auto !important;
        padding-bottom: 0.5rem !important; /* Minimal pour séparation visuelle */
    }
}

/* PWA: Correction spécifique pour les modes standalone */
@media all and (display-mode: standalone) {
    body {
        padding-bottom: 0 !important;
    }
    
    main {
        padding-bottom: 20px !important; /* Minimal pour navigation flottante */
    }
}

/* ======================================== */

/* Navigation mobile en bas - affichée selon le contexte */
.mobile-bottom-nav {
    display: none; /* Cachée par défaut, affichée via media queries */
}

/* Navigation transformée en header principal */
.tab-navigation {
    background: var(--color-white);
    border-bottom: var(--border-width-thin) solid var(--color-gray-200);
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-normal);
}

.tab-container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-main);
    padding: 0 var(--padding-container);
    transition: all var(--transition-fast);
    position: relative;
}

/* Titre positionné absolument à gauche */
.tab-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: absolute;
    left: 3rem; /* Augmenté de 2rem à 3rem pour correspondre au padding */
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    background: var(--color-gray-50);
    padding: 0.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: var(--border-width-thin) solid var(--color-gray-200);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    align-items: center; /* Centrage vertical */
}

/* 🌊 ANIMATION VAGUE FLUIDE - Indicateur mobile avec couleurs dynamiques */
.tab-buttons::before {
    content: '';
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem; /* CORRIGÉ: tenir compte du padding gauche du conteneur */
    width: var(--tab-indicator-width, 0px);
    background: var(--tab-indicator-color, linear-gradient(135deg, #4299e1 0%, #667eea 100%));
    border-radius: 8px;
    box-shadow: var(--tab-indicator-shadow, 0 2px 8px rgba(66, 153, 225, 0.3));
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: var(--tab-indicator-transform, translateX(0));
    z-index: 1;
    opacity: 1;
}

/* Couleurs spécifiques selon l'onglet actif */
.tab-buttons[data-active-tab="prochains-evenements"]::before {
    --tab-indicator-color: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --tab-indicator-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.tab-buttons[data-active-tab="programmes"]::before {
    --tab-indicator-color: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    --tab-indicator-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.tab-buttons[data-active-tab="partitions"]::before {
    --tab-indicator-color: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    --tab-indicator-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.tab-button {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
    min-width: max-content;
    z-index: 2;
    /* Flexbox pour alignement parfait */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

/* Icônes dans les boutons d'onglets - alignement parfait */
.tab-button i,
.tab-button [data-lucide] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
}

.tab-button svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    margin: 0 !important;
    color: inherit; /* Les icônes héritent de la couleur du bouton */
}

.tab-button:hover {
    color: #2d3748;
    transform: translateY(-1px);
}

.tab-button:hover svg {
    color: inherit; /* S'assurer que les icônes suivent au hover */
}

.tab-button.active {
    color: #ffffff;
    background: transparent;
    transform: translateY(-1px);
}

.tab-button.active svg {
    color: inherit; /* S'assurer que les icônes suivent quand actif */
}

/* Statistiques et recherche positionnées absolument à droite */
.site-statistics {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: all 0.2s ease;
    position: absolute;
    right: 260px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.7rem;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.2);
    transition: transform 0.2s ease;
    min-width: 55px;
    font-size: 0.8rem;
}

.stat-item:hover {
    transform: translateY(-2px);
}

/* Barre de recherche positionnée absolument à droite */
/* Ancienne barre de recherche - MASQUÉE pour le nouveau design */
.search-container {
    display: none !important; /* Masquer l'ancienne barre de recherche */
}

.search-input {
    display: none !important; /* Masquer l'ancien input de recherche */
}

/* Nouvelle barre de recherche intégrée dans l'onglet programmes - VERSION MODERNE */
.in-tab-search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.search-header {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-header h3 {
    display: none; /* Masquer le titre pour plus de sobriété */
}

.in-tab-search-input {
    width: 320px; /* Réduit de 400px à 320px pour design plus discret */
    max-width: 85%;
    padding: var(--spacing-sm) 0.9rem; /* Padding vertical réduit pour design plus compact */
    border: var(--border-width-thin) solid #dee2e6; /* Bordure plus fine et plus subtile */
    border-radius: 20px; /* Légèrement moins arrondi mais moderne */
    font-size: 0.9rem; /* Police un peu plus petite */
    transition: all var(--transition-fast);
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); /* Ombre plus subtile */
    text-align: center; /* Centrer le texte par défaut */
    font-family: inherit;
}

.in-tab-search-input:focus {
    outline: none;
    border-color: var(--color-primary-light); /* Bleu principal du site au lieu du vert */
    box-shadow: 0 0 0 0.1rem rgba(66, 153, 225, 0.12), 0 1px 6px rgba(0,0,0,0.08); /* Focus bleu discret */
    text-align: left; /* Aligner à gauche quand on tape */
    transform: none; /* Pas de translation */
}

.in-tab-search-input::placeholder {
    color: #adb5bd; /* Placeholder plus discret */
    font-style: italic;
    font-size: 0.85rem;
}

/* Styles responsive pour la barre de recherche intégrée - VERSION MODERNE */
@media (max-width: 768px) {
    .in-tab-search-container {
        margin: 0.5rem 1rem 1rem 1rem;
    }
    
    .in-tab-search-input {
        width: 280px; /* Légèrement réduit sur mobile */
        max-width: 90%;
        padding: 0.45rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .in-tab-search-input::placeholder {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .in-tab-search-input {
        width: 260px; /* Encore plus compact sur très petits écrans */
        max-width: 95%;
    }
}

/* ========================================
   🎯 CLASSES SPÉCIFIQUES PAR PLATEFORME PWA
   ======================================== */

/* ========================================
   📱 STYLES SPÉCIFIQUES TABLEAU DE BORD MOBILE
   ======================================== */

.dashboard-section {
    padding: 1rem 1rem 0; /* CORRIGÉ: Supprime le padding-bottom pour éliminer l'espace vide */
    background: var(--color-gray-50);
    min-height: auto; /* CORRIGÉ: suppression du min-height: 100vh qui causait l'espace vide */
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.dashboard-header h2 {
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.dashboard-header p {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.quick-actions-mobile {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.quick-action-btn i {
    width: 24px;
    height: 24px;
}

.orchestras-section-mobile,
.requests-section-mobile {
    margin-bottom: 2rem;
}

.orchestras-section-mobile h3,
.requests-section-mobile h3 {
    color: var(--color-gray-700);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.orchestras-grid-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.orchestra-card-mobile {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    margin-bottom: 16px; /* REMIS: Espacement correct entre les cartes d'orchestres */
}

/* 📱 Amélioration de l'espacement pour la grille des orchestres */
.orchestras-grid-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espacement uniforme entre les cartes */
}

.orchestra-card-mobile h4 {
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.orchestra-card-mobile p {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.orchestra-actions-mobile {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.orchestra-action-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    justify-content: center;
    min-width: 100px;
}

.orchestra-action-btn.primary {
    background: var(--color-primary-light);
    color: white;
}

.orchestra-action-btn.secondary {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

.orchestra-action-btn.danger {
    background: #fed7d7;
    color: #c53030;
}

.orchestra-action-btn:hover {
    transform: translateY(-1px);
}

/* ========================================
   📱 OPTIMISATIONS MOBILE PORTRAIT
   ======================================== */

/* Profil utilisateur mobile dans le tableau de bord */
.user-profile-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0f4ff, #e6f2ff);
    border: 1px solid #d1e7ff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px; /* REMIS: Espace entre infos connexion et bouton créer orchestre */
    margin-top: 16px; /* REMIS: Espace en haut de la carte utilisateur */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-info-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-mobile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details-mobile {
    display: flex;
    flex-direction: column;
}

.user-name-mobile {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.user-role-mobile {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn-mobile {
    background: #ef4444;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logout-btn-mobile:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.logout-btn-mobile i {
    width: 16px;
    height: 16px;
}

/* 📱 Conteneurs de tableau de bord mobile avec espacement amélioré */
#conductor-dashboard,
#musician-dashboard {
    padding: 0 16px 70px 16px; /* CORRIGÉ: Réduit encore de 100px à 70px */
}

/* 🎯 Amélioration de l'espacement des sections d'orchestres */
.orchestras-section-mobile {
    margin-bottom: 20px;
    margin-top: 8px; /* 📱 Espacement réduit pour rapprocher des actions rapides */
}

.orchestras-section-mobile h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

/* 📱 Espacement spécifique pour les actions rapides */
.quick-actions-mobile {
    margin-bottom: 8px; /* Réduit pour rapprocher des orchestres */
    padding-bottom: 2px; /* EXTRÊME: Drastiquement réduit de 12px à 2px */
    border-bottom: 1px solid #f1f5f9; /* Ligne de séparation discrète */
}

/* Redéfinition des actions rapides pour mobile portrait */
@media (max-width: 768px) {
    .quick-actions-mobile {
        display: grid;
        gap: 10px;
        margin-bottom: 8px; /* Cohérent avec le style général */
        grid-template-columns: 1fr;
    }

    .quick-action-btn {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #334155;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
    }

    .quick-action-btn:hover {
        background: #f8fafc;
        border-color: #3b82f6;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

    .quick-action-btn i {
        width: 18px;
        height: 18px;
        color: #3b82f6;
        flex-shrink: 0;
    }

    .quick-action-btn span {
        flex: 1;
        text-align: left;
    }
}

.orchestra-action-btn i {
    width: 14px;
    height: 14px;
}

/* ========================================
   📝 FORMULAIRE DESKTOP - Style sobre et élégant
   ======================================== */

/* Formulaire intégré dans la modal dashboard */
#dashboardModal .create-form-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 1rem 0;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

#dashboardModal .create-form-section .form-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

#dashboardModal .create-form-section .form-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

#dashboardModal .create-form-section .form-close {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#dashboardModal .create-form-section .form-close:hover {
    background: #f3f4f6;
    color: #374151;
}

#dashboardModal .create-form-section .form-close i {
    width: 16px;
    height: 16px;
}

#dashboardModal .create-form-section .create-form {
    padding: 1.25rem;
}

#dashboardModal .create-form-section .form-group {
    margin-bottom: 1rem;
}

#dashboardModal .create-form-section .form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

#dashboardModal .create-form-section .form-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

#dashboardModal .create-form-section .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

#dashboardModal .create-form-section .form-textarea {
    resize: vertical;
    min-height: 70px;
}

#dashboardModal .create-form-section .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 1rem;
}

#dashboardModal .create-form-section .btn-cancel {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

#dashboardModal .create-form-section .btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

#dashboardModal .create-form-section .btn-submit {
    background: #374151;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#dashboardModal .create-form-section .btn-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(55, 65, 81, 0.3);
}

#dashboardModal .create-form-section .btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Formulaire général (fallback pour d'autres contextes) */
.create-form-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
    overflow: hidden;
    max-width: 600px;
    transition: all 0.2s ease;
}

.create-form-section:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.create-form-section .form-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-form-section .form-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.create-form-section .form-close {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.create-form-section .form-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.create-form-section .form-close i {
    width: 18px;
    height: 18px;
}

.create-form-section .create-form {
    padding: 1.5rem;
}

.create-form-section .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

.create-form-section .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.create-form-section .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.create-form-section .form-textarea {
    resize: vertical;
    min-height: 80px;
}

.create-form-section .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 1.5rem;
}

.create-form-section .btn-cancel {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.create-form-section .btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.create-form-section .btn-submit {
    background: #374151;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-form-section .btn-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.2);
}

.create-form-section .btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   📱 FORMULAIRE MOBILE - Conserve l'ancien style
   ======================================== */

.create-form-mobile {
    background: var(--color-white);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
}

.form-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.form-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-close-btn i {
    width: 18px;
    height: 18px;
}

.orchestra-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-700);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition-normal);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 0.1rem rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-help {
    font-size: 0.8rem;
    color: var(--color-gray-600);
    margin-top: 0.3rem;
    font-style: italic;
}

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

.btn-cancel,
.btn-create {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-cancel {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

.btn-create {
    background: var(--gradient-primary);
    color: white;
}

.btn-cancel:hover,
.btn-create:hover {
    transform: translateY(-1px);
}

.btn-create i {
    width: 16px;
    height: 16px;
}

.requests-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-card-mobile {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    border-left: 4px solid var(--color-primary-light);
}

.request-card-mobile h4 {
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.request-card-mobile .request-details {
    color: var(--color-gray-600);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.request-card-mobile .request-date {
    color: var(--color-gray-500);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Responsiveness supplémentaire pour très petits écrans */
@media (max-width: 480px) {
    .dashboard-section {
        padding: 0.5rem;
    }
    
    .quick-actions-mobile {
        flex-direction: column;
    }
    
    .quick-action-btn {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-cancel,
    .btn-create {
        justify-content: center;
    }
    
    .orchestra-actions-mobile {
        flex-direction: column;
    }
}

/* Règles spécifiques pour forcer l'affichage correct */
body.pwa-desktop .mobile-bottom-nav,
body.pwa-ipad-landscape .mobile-bottom-nav {
    display: none !important;
}

body.pwa-desktop .tab-navigation,
body.pwa-ipad-landscape .tab-navigation {
    display: block !important;
}

body.pwa-ios-mobile .tab-navigation,
body.pwa-ipad-portrait .tab-navigation {
    display: none !important;
}

body.pwa-ios-mobile .mobile-bottom-nav,
body.pwa-ipad-portrait .mobile-bottom-nav {
    display: flex !important;
}

/* 🎯 FORCER styles mobile pour tablettes pwa-ios-mobile */
body.pwa-ios-mobile .quick-actions-mobile {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    grid-template-columns: 1fr !important;
}

body.pwa-ios-mobile .quick-action-btn {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    min-width: auto !important;
}

body.pwa-ios-mobile .quick-action-btn:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

body.pwa-ios-mobile .quick-action-btn i {
    width: 18px !important;
    height: 18px !important;
    color: #3b82f6 !important;
    flex-shrink: 0 !important;
}

body.pwa-ios-mobile .quick-action-btn span {
    flex: 1 !important;
    text-align: left !important;
}

/* 🎨 STYLES PROGRAMMES MOBILES pour tablettes pwa-ios-mobile */
body.pwa-ios-mobile .mobile-program-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08) !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

body.pwa-ios-mobile .mobile-program-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}

body.pwa-ios-mobile .program-card-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.25rem !important;
    gap: 1rem !important;
}

body.pwa-ios-mobile .program-main-info {
    flex: 1 !important;
    min-width: 0 !important;
}

body.pwa-ios-mobile .program-title {
    /* 🎆 TAILLE DYNAMIQUE GÉRÉE PAR JAVASCRIPT */
    font-size: 1.375rem !important; /* Fallback initial */
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.3 !important; /* Sera ajusté par JS */
    letter-spacing: -0.02em !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    /* 🔧 AFFICHAGE COMPLET SANS ELLIPSIS */
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    display: block;
}

body.pwa-ios-mobile .program-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

body.pwa-ios-mobile .stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    font-size: 0.875rem !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    background: rgba(102, 126, 234, 0.06) !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(102, 126, 234, 0.12) !important;
}

body.pwa-ios-mobile .stat-icon {
    width: 14px !important;
    height: 14px !important;
    color: #667eea !important;
    flex-shrink: 0 !important;
}

body.pwa-ios-mobile .program-actions {
    flex-shrink: 0 !important;
}

body.pwa-ios-mobile .mobile-pdf-btn {
    background: transparent !important;
    color: #667eea !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

body.pwa-ios-mobile .mobile-pdf-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e0 !important;
    color: #5a67d8 !important;
}

body.pwa-ios-mobile .mobile-pdf-btn svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2 !important;
}

body.pwa-ios-mobile .mobile-program-header {
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    padding: 1rem 1.25rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    margin: 0 0 1rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 0 !important;
}

body.pwa-ios-mobile .mobile-program-header .header-bubble {
    display: none !important;
}

body.pwa-ios-mobile #programmes .pieces-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 0.4rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.pwa-ios-mobile .mobile-program-header {
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    padding: 1rem 1.25rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    margin: 0 0 1rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 0 !important;
}

/* 🎯 FORCER styles mobile pour tablettes pwa-ios-mobile */
body.pwa-ios-mobile .mobile-program-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08) !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

body.pwa-ios-mobile .mobile-program-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}

body.pwa-ios-mobile .program-card-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.25rem !important;
    gap: 1rem !important;
}

/* Ajustements spécifiques pour Mac PWA */
body.pwa-desktop {
    /* Assurer un padding approprié sans dock mobile */
    main {
        padding-bottom: 2rem !important;
    }
}

/* Ajustements spécifiques pour iPad portrait */
body.pwa-ipad-portrait {
    /* Espace supplémentaire pour le dock optimisé */
    main {
        padding-bottom: 0 !important; /* ULTRA-CORRIGÉ: Complètement supprimé pour éliminer l'espace vide */
    }
}

/* ========================================
   🎯 PWA MODE STANDALONE - STRATÉGIE ADAPTATIVE PAR PLATEFORME
   ======================================== */

/* 📱 PWA MOBILE (iPhone uniquement) - Navigation dock */
@media all and (display-mode: standalone) and (max-width: 768px) and (max-height: 1024px) {
    /* S'assurer que le contenu respecte les zones sûres */
    body {
        padding-top: env(safe-area-inset-top) !important;
        padding-left: env(safe-area-inset-left) !important;
        padding-right: env(safe-area-inset-right) !important;
    }
    
    /* Navigation mobile dock pour iPhone */
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: fixed !important;
        bottom: 20px !important; /* 🔧 RESTAURÉ: Espace initial de 20px */
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom)) !important;
        background: transparent !important;
        pointer-events: none !important;
        /* Optimisations performance */
        transform: translateZ(0) !important;
        will-change: transform !important;
    }
    
    .mobile-nav-container {
        display: flex !important;
        pointer-events: auto !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-radius: 25px !important;
        padding: 0.5rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .tab-navigation {
        display: none !important;
    }
}

/* 💻 PWA DESKTOP (Mac, PC) - Navigation header comme le web */
@media all and (display-mode: standalone) and (min-width: 769px) {
    /* S'assurer que le contenu respecte les zones sûres */
    body {
        padding-top: env(safe-area-inset-top) !important;
        padding-left: env(safe-area-inset-left) !important;
        padding-right: env(safe-area-inset-right) !important;
    }
    
    /* Forcer l'affichage de la navigation desktop */
    .tab-navigation {
        display: block !important;
    }
    
    /* Masquer complètement la navigation mobile */
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* Ajuster le padding du contenu principal */
    main {
        padding-bottom: 2rem !important;
    }
}

/* 📱 PWA TABLETTES TOUTES MARQUES (iPad, Android, Windows) - Navigation dock optimisée */
@media all and (display-mode: standalone) and (min-width: 769px) and (max-width: 1366px) and (orientation: portrait) {
    /* Navigation mobile dock pour TOUTES les tablettes en portrait */
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        padding: 1.5rem 2rem calc(1.5rem + env(safe-area-inset-bottom)) !important;
        background: transparent !important;
        pointer-events: none !important;
    }
    
    .mobile-nav-container {
        display: flex !important;
        pointer-events: auto !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-radius: 30px !important;
        padding: 0.75rem 1rem !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        max-width: 400px !important;
        position: relative !important;
        overflow: hidden !important;
        /* ✅ AJOUT: Optimisations performance comme iPhone */
        will-change: transform !important;
        transform: translateZ(0) !important;
    }
    
    /* ✅ CORRECTION: Indicateur animé pour iPad comme iPhone */
    .mobile-nav-container::before {
        content: '' !important;
        position: absolute !important;
        top: 0.75rem !important;
        bottom: 0.75rem !important;
        left: 0.75rem !important;
        width: calc(25% - 0.5rem) !important; /* Modifié pour 4 onglets */
        background: var(--mobile-nav-color, linear-gradient(135deg, #4299e1 0%, #667eea 100%)) !important;
        border-radius: 25px !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: translateX(var(--nav-indicator-position, 0)) !important;
        z-index: 1 !important;
        box-shadow: var(--mobile-nav-shadow, 0 4px 12px rgba(66, 153, 225, 0.3)) !important;
    }

    /* ✅ CORRECTION: Couleurs selon l'onglet actif pour iPad */
    .mobile-nav-container[data-active-tab="prochains-evenements"]::before {
        --mobile-nav-color: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
        --mobile-nav-shadow: 0 4px 12px rgba(72, 187, 120, 0.3) !important;
    }

    .mobile-nav-container[data-active-tab="programmes"]::before {
        --mobile-nav-color: linear-gradient(135deg, #4299e1 0%, #667eea 100%) !important;
        --mobile-nav-shadow: 0 4px 12px rgba(66, 153, 225, 0.3) !important;
    }

    .mobile-nav-container[data-active-tab="partitions"]::before {
        --mobile-nav-color: linear-gradient(135deg, #e53e3e 0%, #c53030 100%) !important;
        --mobile-nav-shadow: 0 4px 12px rgba(229, 62, 62, 0.3) !important;
    }

    .mobile-nav-container[data-active-tab="dashboard"]::before {
        --mobile-nav-color: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%) !important;
        --mobile-nav-shadow: 0 4px 12px rgba(128, 90, 213, 0.3) !important;
    }
    
    /* ✅ CORRECTION: Onglets optimisés pour tablette avec centrage */
    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
        border-radius: 25px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer !important;
        flex: 1 !important;
        min-width: 80px !important;
        position: relative !important;
        z-index: 2 !important;
        background: transparent !important;
        text-align: center !important;
    }
    
    /* ✅ CORRECTION: États actif/inactif comme iPhone */
    .mobile-nav-item.active {
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .mobile-nav-icon {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* ✅ CORRECTION: Couleurs des icônes selon l'état */
    .mobile-nav-item.active .mobile-nav-icon {
        color: #ffffff !important;
        transform: scale(1.1) !important;
    }
    
    .mobile-nav-item:not(.active) .mobile-nav-icon {
        color: #64748b !important;
        transform: scale(0.95) !important;
    }
    
    .mobile-nav-label {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        text-align: center !important;
        line-height: 1.2 !important;
        opacity: 1 !important;
        margin: 0 !important;
    }
    
    /* ✅ CORRECTION: Couleurs des labels selon l'état */
    .mobile-nav-item.active .mobile-nav-label {
        color: #ffffff !important;
        font-weight: 600 !important;
        transform: translateY(-1px) !important;
    }
    
    .mobile-nav-item:not(.active) .mobile-nav-label {
        color: #64748b !important;
        opacity: 0.8 !important;
    }
    
    /* ✅ CORRECTION: Effet hover/tap pour tablette */
    .mobile-nav-item:not(.active):active {
        transform: scale(0.98) !important;
    }
    
    .tab-navigation {
        display: none !important;
    }
}

/* 📱 PWA TABLETTES PAYSAGE (toutes marques) - Navigation desktop */
@media all and (display-mode: standalone) and (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
    /* Forcer l'affichage de la navigation desktop en mode paysage */
    .tab-navigation {
        display: block !important;
    }
    
    /* Masquer complètement la navigation mobile */
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* Ajuster le padding du contenu principal */
    main {
        padding-bottom: 2rem !important;
    }
}

/* Responsive pour interface mobile moderne */
@media (max-width: 768px) {
    /* 🔧 RÈGLE UNIVERSELLE ANTI-DÉBORDEMENT */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 🎯 CLASSES TEMPORAIRES DASHBOARD MOBILE - pour éviter les styles inline persistants */
    .dashboard-mobile-forced {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 1rem !important;
    }
    
    .dashboard-section-mobile-forced {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 1rem !important;
        align-items: stretch !important;
    }
    
    /* Masquer complètement la navigation desktop */
    .tab-navigation {
        display: none;
    }
    
    /* Header mobile complètement supprimé */
    .mobile-header {
        display: none !important;
    }
    
    /* 🎨 Navigation mobile moderne style "floating pill" FIXE */
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: center;
        align-items: center;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: transparent;
        padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
        z-index: 9999 !important;
        pointer-events: none;
    }
    
    /* Container flottant moderne */
    .mobile-nav-container {
        display: flex;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 25px;
        padding: 0.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                    0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        pointer-events: auto;
        position: relative;
        overflow: hidden;
        /* Optimisation pour les performances */
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* Indicateur flottant animé */
    .mobile-nav-container::before {
        content: '';
        position: absolute;
        top: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        width: calc(25% - 0.25rem); /* Modifié pour 4 onglets (25% au lieu de 33.333%) */
        background: var(--mobile-nav-color, linear-gradient(135deg, #4299e1 0%, #667eea 100%));
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(var(--nav-indicator-position, 0));
        z-index: 1;
        box-shadow: var(--mobile-nav-shadow, 0 4px 12px rgba(66, 153, 225, 0.3));
    }

    /* Couleurs de navigation mobile selon l'onglet actif - même système que desktop */
    .mobile-nav-container[data-active-tab="prochains-evenements"]::before {
        --mobile-nav-color: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
        --mobile-nav-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    }

    .mobile-nav-container[data-active-tab="programmes"]::before {
        --mobile-nav-color: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
        --mobile-nav-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    }

    .mobile-nav-container[data-active-tab="partitions"]::before {
        --mobile-nav-color: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
        --mobile-nav-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    }

    .mobile-nav-container[data-active-tab="dashboard"]::before {
        --mobile-nav-color: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
        --mobile-nav-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.75rem 1rem;
        border-radius: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        flex: 1;
        min-width: 60px;
        position: relative;
        z-index: 2;
        background: transparent;
    }
    
    /* Pas d'arrière-plan pour l'état actif - l'indicateur s'en charge */
    .mobile-nav-item.active {
        background: transparent;
        transform: none;
        box-shadow: none;
    }
    
    .mobile-nav-icon {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Icônes toujours colorées, plus de blanc/gris */
    .mobile-nav-item.active .mobile-nav-icon {
        color: #ffffff;
        transform: scale(1.1);
    }
    
    .mobile-nav-item:not(.active) .mobile-nav-icon {
        color: #64748b;
        transform: scale(0.95);
    }
    
    .mobile-nav-label {
        font-size: 0.65rem;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        line-height: 1.2;
        opacity: 1;
    }
    
    .mobile-nav-item.active .mobile-nav-label {
        color: #ffffff;
        font-weight: 600;
        transform: translateY(-1px);
    }
    
    .mobile-nav-item:not(.active) .mobile-nav-label {
        color: #64748b;
        opacity: 0.8;
    }
    
    /* Effet hover/tap subtil */
    .mobile-nav-item:not(.active):active {
        transform: scale(0.98);
    }
    
    /* Header mobile simplifié */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Supprimer complètement la recherche mobile */
    .mobile-search {
        display: none !important;
    }
    
    .mobile-stats {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .mobile-stats .stat-item {
        min-width: 45px;
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Ajuster le contenu principal pour la navigation mobile */
    main {
        padding-bottom: 5px; /* CORRIGÉ: Drastiquement réduit de 80px à 5px */
        padding-top: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        /* 🔧 RENFORCEMENT ANTI-SCROLL HORIZONTAL */
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Assurer que les sections spécifiques ont assez d'espace en bas */
    .partitions-section-clean,
    .tab-content {
        margin-bottom: 2rem;
    }
    
    /* Masquer le lecteur audio modal sur mobile */
    .audio-player {
        display: none !important;
    }
    
    .video-modal {
        display: none !important;
    }
    
    /* Masquer le bouton retour en haut sur mobile */
    .back-to-top {
        display: none !important;
    }
    
    /* Styles pour que les onglets desktop soient cachés sur mobile */
    .tab-content {
        display: none;
    }
    
    .tab-content.active {
        display: block;
    }
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0.5rem; /* CORRIGÉ: Réduit encore plus de 1rem à 0.5rem (8px) pour éliminer l'espace vide */
    /* 🔧 CORRECTION SCROLL HORIZONTAL */
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Modale vidéo YouTube */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
    /* Toujours centré quand affiché */
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-wrapper {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.video-modal-content {
    background: #000000;
    border-radius: 12px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
    display: none; /* Supprimé complètement */
}

.video-controls {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: 0.75rem;
    z-index: 1001;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
}

/* Mini-lecteur audio */
.audio-player {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 6rem; /* Décalé vers la gauche pour éviter le bouton retour en haut */
    background: rgba(45, 55, 72, 0.95);
    color: white;
    z-index: 100; /* Réduit pour ne pas interférer avec le scroll */
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    /* Retirer backdrop-filter qui peut causer des problèmes de scroll */
    /* backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto; /* S'assurer que les événements de pointeur fonctionnent */
    /* Assurer que l'élément ne bloque pas le scroll */
    will-change: transform;
    transform: translateZ(0); /* Forcer l'accélération matérielle */
}

.audio-player.active {
    display: flex;
    animation: slideInUp 0.3s ease;
}

.audio-player-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.audio-info {
    text-align: center;
}

.audio-info span {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
    display: block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.audio-control-btn {
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.audio-control-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #5a67d8 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

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

/* Gestion des onglets */
.tab-content {
    display: none;
    /* 🔧 CORRECTION ESPACE VIDE: Empêcher l'héritage de hauteurs artificielles */
    min-height: 0 !important;
    height: auto !important;
}

.tab-content.active {
    display: block;
    /* 🔧 CORRECTION ESPACE VIDE: Force la taille au contenu réel sur mobile/PWA */
    min-height: 0 !important;
    height: auto !important;
}

/* Sections vides */
.empty-section {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    text-align: center;
}

.empty-content {
    padding: 2rem;
}

.empty-content p {
    margin: 0.5rem 0;
    color: #718096;
}

.empty-content p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
}

/* Sections */
/* 🧪 TEST DESIGN - Section sans fond blanc */
.concert-section {
    margin-bottom: 2.5rem; /* Réduit de 3rem à 2.5rem */
    background: transparent; /* 🧪 RETIRÉ: #ffffff */
    border-radius: 0; /* 🧪 RETIRÉ: 12px */
    padding: 0;
    box-shadow: none; /* 🧪 RETIRÉ: 0 1px 3px rgba(0, 0, 0, 0.05) */
    border: none; /* 🧪 RETIRÉ: 1px solid #e2e8f0 */
    overflow: visible; /* 🧪 CHANGÉ: de hidden à visible */
}

/* Espacement spécial pour la première section dans l'onglet programmes */
#programmes-content .concert-section:first-child {
    margin-top: 1rem; /* Réduit de 2rem à 1rem pour un espacement plus compact */
}

/* Espacement encore plus réduit sur mobile pour l'onglet programmes */
@media (max-width: 768px) {
    #programmes-content .concert-section:first-child {
        margin-top: 0.5rem; /* Espacement minimal sur mobile */
    }
}

/* 🧪 TEST DESIGN - Header de section épuré */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
    background: transparent; /* 🧪 RETIRÉ: #f8fafc */
    padding: 1rem 0; /* 🧪 RÉDUIT: de 1.5rem 2rem à 1rem 0 */
    border-radius: 0; /* 🧪 RETIRÉ: 8px */
    box-shadow: none; /* 🧪 RETIRÉ: 0 1px 3px rgba(0, 0, 0, 0.05) */
    position: relative;
    overflow: visible; /* 🧪 CHANGÉ: de hidden à visible */
}

.section-header h2 {
    color: #2d3748;
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    position: relative;
    display: inline-block; /* Simplement la largeur du texte */
}

.section-header h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4299e1;
    border-radius: 2px;
    margin: 80px auto 0; /* Écart très généreux de 80px */
}

/* Bouton de téléchargement PDF */
.pdf-download-btn {
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    white-space: nowrap;
    height: fit-content;
    margin-top: 0.15rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #5a67d8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

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

/* Anciens styles pour h2 dans les sections sans header */
.concert-section h2 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    font-weight: 600;
    letter-spacing: -0.025em;
    padding: 1.25rem 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    display: inline-block;
}

/* Nouvelle bande bleue étendue pour les titres de sections */
.concert-section h2::before {
    /* Suppression de l'arrière-plan */
    display: none;
}

.concert-section h2:after {
    /* Trait bleu centré sous le texte */
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4299e1;
    border-radius: 2px;
    margin: 20px auto 0; /* Espacement augmenté de 8px à 20px pour cohérence */
}

/* Grid des pièces */
.pieces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem; /* Réduit de 2rem à 1.5rem pour un espacement plus équilibré */
    padding: 1.5rem 2rem 2rem; /* Padding ajusté : moins en haut, normal sur les côtés */
}

/* Cartes des pièces */
/* 🧪 TEST DESIGN - Cartes avec fond renforcé */
.piece-card {
    background: #ffffff; /* Gardé pour contraste */
    border-radius: 12px; /* 🧪 AUGMENTÉ: de 10px à 12px */
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 🧪 RENFORCÉ: ombre plus visible */
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.piece-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #4299e1;
}

.piece-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); /* 🧪 RENFORCÉ: ombre plus marquée */
    border-color: #cbd5e0;
}

.piece-card h3 {
    color: #2d3748;
    font-size: 1.3rem; /* Légèrement réduit de 1.4rem à 1.3rem */
    margin-bottom: 1rem; /* Réduit de 1.2rem à 1rem */
    font-weight: 600;
    line-height: 1.3;
}

.piece-card p {
    margin-bottom: 0.7rem; /* Réduit de 0.8rem à 0.7rem */
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.piece-card strong {
    color: #2d3748;
    font-weight: 600;
}

/* Liens */
.links {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem; /* Réduit de 1.5rem à 1.25rem */
    flex-wrap: wrap;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.links a svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.links a:hover {
    background: linear-gradient(135deg, #3182ce 0%, #5a67d8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* Section financement */
.funding-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #48bb78;
}

.funding-section h2 {
    color: #2d3748;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.funding-section h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #48bb78;
    border-radius: 2px;
}

/* Styles sobres et élégants pour l'onglet Partitions */

/* Message principal d'avertissement */
.main-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-left: 4px solid #e53e3e;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.1);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.notice-icon {
    font-size: 1.8rem;
}

.notice-header h3 {
    color: #c53030;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.notice-text p {
    color: #742a2a;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* Section des exemples */
.examples-section {
    margin: 3rem 0;
}

.examples-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e2e8f0;
}

.examples-icon {
    font-size: 1.5rem;
}

/* Cartes d'exemples */
.example-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.restrictive {
    border-color: #fed7d7;
    background: linear-gradient(135deg, #fff5f5 0%, #fffbfb 100%);
}

.flexible {
    border-color: #c6f6d5;
    background: linear-gradient(135deg, #f0fff4 0%, #fafffe 100%);
}

.example-content p {
    color: #2d3748;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

/* Affichage des formules */
.formula-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.copies-info {
    background: #4a5568;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(74, 85, 104, 0.2);
}

.arrow {
    font-size: 1.5rem;
    color: #4a5568;
    font-weight: bold;
}

.result {
    background: #667eea;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
    flex: 1;
    min-width: 220px;
}

/* Détails d'usage */
.usage-details {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border-left: 3px solid #48bb78;
}

.usage-details p {
    color: #2d3748;
    font-style: italic;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Section téléchargement (conservée) */
.download-section {
    margin: 3rem 0;
}

.download-card {
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.download-icon {
    font-size: 3rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.download-text h4 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.download-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.partitions-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.partitions-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.button-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.partitions-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-notice, .example-card {
        padding: 1.5rem;
    }
    
    .formula-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .examples-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}
.partitions-main-text {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.partitions-main-text p {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.partitions-main-text p:last-child {
    margin-bottom: 0;
}

.highlight {
    background: #fed7aa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #c05621;
}

.download-section {
    text-align: center;
    margin: 2rem 0;
}

.partitions-link {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.partitions-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    text-decoration: none;
    color: white;
}

/* Section partitions existante - nettoyage */
.download-section {
    text-align: center;
    margin: 2rem 0;
}

.download-button-container {
    margin: 2rem 0;
}

.partitions-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.partitions-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.instructions-section {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #e53e3e;
}

.instructions-section h3 {
    color: #c53030;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-text p {
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.instruction-text p:last-child {
    margin-bottom: 0;
}

/* Section partitions - Version sobre et élégante */
.partitions-section-clean {
    background: transparent; /* Retiré le fond blanc pour cohérence avec les autres onglets */
    border-radius: 12px;
    padding: 2rem; /* AJOUT du padding pour cohérence avec les autres onglets */
    box-shadow: none; /* Retiré l'ombre qui n'a plus de sens sans fond */
    border: none; /* Retiré la bordure pour un look plus épuré */
    max-width: 900px;
    margin: 0 auto;
}

.partitions-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f7fafc;
}

.partitions-header h2 {
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.025em;
}

.partitions-content-clean {
    line-height: 1.7;
}

/* Section d'avertissement */
.warning-section {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 4px solid #e53e3e;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.warning-icon {
    font-size: 1.5rem;
    color: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #e53e3e;
}

.warning-header h3 {
    color: #c53030;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.warning-text p {
    color: #742a2a;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* Section des exemples */
.examples-section-clean {
    margin-bottom: 2.5rem;
}

.examples-section-clean h4 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.example-item {
    background: #ffffff; /* Fond blanc pour meilleure lisibilité */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.example-item:last-child {
    margin-bottom: 0;
}

.example-item p {
    color: #2d3748;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.example-item strong {
    color: #1a202c;
    font-weight: 600;
}

.access-section {
    margin-top: 2.5rem;
    min-height: 30px; /* EXTRÊME: Drastiquement réduit de 200px à 30px */
    position: relative;
}

.access-card {
    background: #ffffff; /* Fond blanc pour meilleure lisibilité */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex !important; /* Forcer l'affichage flex */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    gap: 2rem;
    transition: all 0.2s ease;
}

.access-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.access-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.folder-icon {
    font-size: 2.5rem;
    color: #4299e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: #4299e1;
}

.access-text h4 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.access-text p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.access-button {
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.access-button:hover {
    background: linear-gradient(135deg, #3182ce 0%, #5a67d8 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* États vides unifiés avec positionnement fixe et cohérent */
.empty-state {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4rem 2rem 2rem 2rem;
    text-align: center;
    margin: 0;
    /* Positionnement fixe pour éviter les variations selon la taille d'écran */
    display: block;
    min-height: auto;
    transform: none;
}

/* Styles spécifiques pour les modales - annuler le centrage global */
.modal .empty-state,
.modal-content .empty-state,
.dashboard-modal .empty-state,
.musician-modal .empty-state {
    min-height: auto !important;
    transform: none !important;
    display: block !important;
    padding: 0rem 1rem 2rem 1rem !important;
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 250px !important;
}

/* Règle spécifique pour la modale du tableau de bord musicien */
#musicianDashboardModal .empty-state {
    max-width: 250px !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 2rem 1rem !important;
}

/* Positionnement uniforme pour tous les états vides - abandonne le centrage dynamique */
.programmes-section .empty-state,
.next-events-section .empty-state, 
.partitions-section .empty-state,
.partitions-section-clean .empty-state {
    /* Positionnement fixe au lieu du centrage dynamique pour éviter les variations selon la taille d'écran */
    min-height: auto !important;
    transform: none !important;
    display: block !important;
    padding: 4rem 2rem 2rem 2rem !important;
    text-align: center;
    margin-top: 0 !important;
}

/* Uniformisation spécifique pour la section partitions */
#noPartitionsMessage {
    min-height: auto !important;
    transform: none !important;
    display: block !important;
    padding: 4rem 2rem 2rem 2rem !important;
    text-align: center;
    margin-top: 0 !important;
}

/* Uniformisation pour le contenu injecté dans les partitions */
#noPartitionsMessage .empty-state {
    min-height: auto !important;
    transform: none !important;
    display: block !important;
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.empty-state h3 {
    color: #6b7280; /* Gris plus visible */
    font-size: 1.3rem; /* Augmentation de la taille : 1.1rem → 1.3rem */
    font-weight: 500; /* Légèrement plus de poids pour la visibilité */
    margin: 0 0 0.8rem 0;
    opacity: 0.95; /* Opacité encore plus élevée pour la visibilité */
}

.empty-state p {
    color: #6b7280; /* Gris plus visible */
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9; /* Opacité plus élevée pour la lisibilité */
}

.empty-state-icon {
    margin-bottom: 1.5rem;
}

/* Boutons pour les états vides spécifiques aux chefs d'orchestre - Version discrète */
.empty-state-button {
    display: inline-block; /* Changé de inline-flex à inline-block car plus d'icône */
    text-align: center; /* Centrage du texte */
    padding: 8px 16px; /* Padding légèrement augmenté pour compenser l'absence d'icône */
    background: transparent; /* Fond transparent */
    color: #6b7280; /* Même couleur grise que le texte, plus visible */
    border: 1px solid #d1d5db; /* Bordure un peu plus visible */
    border-radius: 6px; /* Coins légèrement plus arrondis pour un look plus moderne */
    font-size: 14px; /* Taille légèrement augmentée */
    font-weight: 400; /* Poids normal */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 12px;
    opacity: 0.95; /* Opacité plus élevée pour être visible */
}

.empty-state-button:hover {
    background: rgba(107, 114, 128, 0.1); /* Fond très léger au hover */
    color: #4b5563; /* Couleur légèrement plus foncée au hover */
    border-color: #9ca3af;
    text-decoration: none;
    opacity: 1; /* Pleine opacité au hover */
}

.empty-state-button i {
    width: 14px !important; /* Plus petit */
    height: 14px !important;
    margin: 0 !important;
    opacity: 0.8; /* Icône un peu plus visible */
}

/* Styles spécifiques pour les chefs d'orchestre */
.empty-state.conductor-specific h3 {
    color: #6b7280; /* Même couleur discrète mais plus visible */
    margin-bottom: 8px;
    opacity: 0.9;
}

.empty-state.conductor-specific p {
    color: #6b7280; /* Même couleur discrète mais plus visible */
    margin-bottom: 16px;
    line-height: 1.5;
    opacity: 0.8;
}

.empty-state-icon svg {
    width: 3rem;
    height: 3rem;
    opacity: 0.3 !important;
    color: #4a5568;
}

/* Message pour partitions non configurées (legacy) */
.no-partitions-message {
    background: transparent; /* Suppression du fond gris */
    border: none; /* Suppression de la bordure */
    border-radius: 0;
    padding: 2rem 2rem;
    text-align: center;
    margin: 0;
    /* Centrage identique aux autres états vides */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto; /* CORRIGÉ: suppression du calc(100vh - 200px) qui causait l'espace vide */
    transform: translateY(-15vh); /* Aligné avec les autres */
}

.no-partitions-message h4 {
    color: #6b7280; /* Même couleur que les autres états vides */
    font-size: 1.3rem; /* Exactement comme .empty-state h3 */
    font-weight: 500; /* Exactement comme .empty-state h3 */
    margin: 0 0 0.8rem 0; /* Exactement comme .empty-state h3 */
    opacity: 0.95; /* Exactement comme .empty-state h3 */
}

.no-partitions-message p {
    color: #6b7280; /* Même couleur que les autres états vides */
    font-size: 0.95rem; /* Exactement comme .empty-state p */
    margin: 0; /* Exactement comme .empty-state p */
    line-height: 1.5; /* Exactement comme .empty-state p */
    opacity: 0.9; /* Exactement comme .empty-state p */
}

/* Responsive pour la section partitions clean */
@media (max-width: 768px) {
    .partitions-section-clean {
        padding: 0; /* Pas de padding pour éviter le décalage */
        margin: 0;
        max-width: none;
        border-radius: 0;
    }
    
    .partitions-header h2 {
        font-size: 1.8rem;
    }
    
    /* 🔧 CORRECTION: Ajouter une marge en haut pour la warning-section sur mobile */
    .warning-section {
        margin-top: 1rem; /* Même espacement que les autres onglets */
    }
    
    .access-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .access-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .partitions-section-clean {
        padding: 0; /* Pas de padding pour éviter le décalage */
        margin: 0;
    }
    
    .partitions-header {
        margin-bottom: 2rem;
    }
    
    .partitions-header h2 {
        font-size: 1.6rem;
    }
    
    .warning-section {
        padding: 1.5rem;
    }
    
    .warning-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .warning-header h3 {
        font-size: 1.1rem;
    }
    
    .warning-text p {
        font-size: 1rem;
    }
    
    .example-item {
        padding: 1.2rem;
    }
    
    .example-item p {
        font-size: 0.95rem;
    }
    
    .access-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

.partitions-card {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.partitions-card h3 {
    color: #d69e2e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-content p {
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.warning-content p:last-child {
    margin-bottom: 0;
}

.download-section {
    margin: 2rem 0;
}

.download-section h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.download-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.download-info h4 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.download-info p {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

.download-btn {
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* Nouveaux styles pour les instructions d'impression */
.partitions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.partitions-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.partitions-access-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 2px solid #e2e8f0;
}

.access-card-icon .icon-large {
    font-size: 3rem;
}

.access-card-content h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.access-card-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.drive-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.drive-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    text-decoration: none;
    color: white;
}

.button-icon {
    font-size: 1.2rem;
}

.button-arrow {
    transition: transform 0.3s ease;
}

.drive-button:hover .button-arrow {
    transform: translateX(3px);
}

.printing-instructions {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.warning-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

.instruction-header h3 {
    color: #c53030;
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
}

.main-rule {
    background: #fed7d7;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid #e53e3e;
}

.main-rule p {
    color: #742a2a;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.examples-section h4 {
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.example-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.example-scenario {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.scenario-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.scenario-text p {
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.scenario-text ul {
    margin: 0;
    padding-left: 1.5rem;
}

.scenario-text li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.highlight {
    background: #fed7aa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #c05621;
}

.copyright-notice-modern {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid #4299e1;
}

.copyright-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.copyright-icon {
    font-size: 1.8rem;
}

.copyright-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.copyright-text p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.engagement-section {
    background: #e6fffa;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #81e6d9;
}

.engagement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.engagement-section p {
    margin: 0;
    color: #234e52;
    font-weight: 500;
}

.usage-tips {
    margin-top: 2rem;
}

.usage-tips h3 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-card h4 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-card p {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Table */
.funding-table {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

thead {
    background: #48bb78;
    color: white;
}

th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
}

tr:nth-child(even) {
    background-color: #f7fafc;
}

tbody tr:hover {
    background-color: #edf2f7;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .tab-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .tab-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .tab-button {
        text-align: center;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .tab-button.active {
        border-right-color: #4299e1;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .pieces-grid {
        grid-template-columns: 1fr;
        padding: 1rem 1.5rem 1.5rem; /* Ajustement pour mobile : moins en haut */
        gap: 1.25rem; /* Légèrement réduit pour mobile */
    }
    
    main {
        padding: 0 1rem 2rem;
    }
    
    .concert-section {
        padding: 0;
        margin-bottom: 2rem; /* Réduit pour mobile */
    }
    
    .links {
        justify-content: center;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    /* Responsive pour la section partitions */
    .partitions-section {
        padding: 1.5rem;
    }
    
    .partitions-card {
        padding: 1.5rem;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .concert-section h2 {
        font-size: 1.4rem;
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    /* Responsive pour les en-têtes de section avec boutons PDF */
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem; /* Réduit de 1.5rem */
        padding: 1.25rem 1.5rem; /* Ajustement padding pour mobile */
        margin-bottom: 1.5rem; /* Réduit pour mobile */
    }
    
    .section-header h2 {
        text-align: center;
        font-size: 1.4rem; /* Légèrement réduit de 1.5rem */
        padding-top: 0;
    }
    
    .pdf-download-btn {
        align-self: center;
        font-size: 0.9rem;
        padding: 0.7rem 1.3rem;
        margin-top: 0;
    }
    
    /* Responsive spécifique pour la section partitions */
    .partitions-section {
        padding: 1rem;
    }
    
    .partitions-section h2 {
        font-size: 1.8rem;
    }
    
    .partitions-card {
        padding: 1.2rem;
    }
    
    .partitions-card h3 {
        font-size: 1.2rem;
    }
    
    .warning-content p {
        font-size: 0.9rem;
    }
    
    .download-section h3,
    .usage-tips h3 {
        font-size: 1.5rem;
    }
    
    .download-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
     .piece-card {
        padding: 1rem;
    }
    
    /* Protection supplémentaire pour les très petits écrans */
    .piece-item h5 {
        padding-right: 40px; /* Plus d'espace pour éviter la superposition */
        font-size: 0.95rem; /* Texte légèrement plus petit */
    }
    
    .piece-click-indicator {
        right: 6px !important; /* Encore plus près du bord */
        font-size: 0.9rem !important; /* Flèche plus petite */
    }

    .links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Responsive pour la modale vidéo */
    .video-modal {
        padding: 1rem;
    }
    
    .video-modal-content {
        max-height: 90vh;
    }
    
    .video-controls {
        top: -50px;
        right: 0;
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .video-container {
        height: 250px;
    }
    
    /* Responsive pour le mini-lecteur */
    .audio-player {
        bottom: 1rem;
        right: 1rem; /* Sur mobile, on garde la position normale car moins de place */
        max-width: 260px;
    }
    
    .audio-player-content {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .audio-info span {
        font-size: 0.85rem;
        max-width: 180px;
    }
    
    .audio-control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour première visite seulement - sera activée par JavaScript */
.concert-section.animate-first-visit {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Highlight effect for sections */
section:target {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% { background-color: rgba(66, 153, 225, 0.1); }
    50% { background-color: rgba(66, 153, 225, 0.05); }
    100% { background-color: transparent; }
}

/* Styles pour la recherche */
.piece-card.search-match {
    /* Pas de bordure bleue, juste un léger effet de mise en valeur */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* ========================================
   STYLES POUR LES PROCHAINS ÉVÉNEMENTS
   ======================================== */

/* Section principale des événements */
.next-events-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section principale des programmes (même style que les événements) */
.programmes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Carte de l'événement principal - Design épuré et compact */
.main-next-event {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* ========================================
   COULEURS SPÉCIFIQUES SELON L'ONGLET ACTIF
   ======================================== */

/* 🟢 ONGLET ÉVÉNEMENTS - Couleurs vertes */
/* Seulement la carte principale en vert */
#prochains-evenements .main-next-event::before {
    background: linear-gradient(90deg, #48bb78, #38a169) !important;
}

/* Les lignes verticales des pièces en vert */
#prochains-evenements .piece-item {
    border-left-color: #48bb78 !important;
}

/* Bouton d'ajout au calendrier en vert avec le même dégradé que l'onglet */
#prochains-evenements .add-to-calendar-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3) !important;
}

#prochains-evenements .add-to-calendar-btn:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%) !important;
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.4) !important;
}

/* Les mini-cartes gardent leurs couleurs d'origine selon le type d'événement */
/* (pas de surcharge, elles utilisent les couleurs définies plus bas dans le CSS) */

/* ========================================
   BOUTON RETOUR EN HAUT - COULEURS DYNAMIQUES
   ======================================== */

/* 🟢 ONGLET ÉVÉNEMENTS - Bouton vert */
.tab-buttons[data-active-tab="prochains-evenements"] ~ * .back-to-top,
body:has(.tab-buttons[data-active-tab="prochains-evenements"]) .back-to-top {
    --back-to-top-bg: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --back-to-top-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* 🔵 ONGLET PROGRAMMES - Bouton bleu (par défaut) */
.tab-buttons[data-active-tab="programmes"] ~ * .back-to-top,
body:has(.tab-buttons[data-active-tab="programmes"]) .back-to-top {
    --back-to-top-bg: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    --back-to-top-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

/* 🔴 ONGLET PARTITIONS - Bouton rouge */
.tab-buttons[data-active-tab="partitions"] ~ * .back-to-top,
body:has(.tab-buttons[data-active-tab="partitions"]) .back-to-top {
    --back-to-top-bg: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    --back-to-top-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Style hover pour le bouton retour en haut */
.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.1);
}

/* 🔵 ONGLET PROGRAMMES - Couleurs bleues (inchangées, pour référence) */
#programmes .section-header h2:after,
#programmes .concert-section h2:after {
    background: #4299e1;
}

#programmes .piece-card:before {
    background: #4299e1;
}

/* 🔴 ONGLET PARTITIONS - Couleurs rouges */
#partitions .partitions-header h2:after,
#partitions .warning-section {
    border-left-color: #e53e3e;
}

/* Icône de dossier en rouge */
#partitions .folder-icon {
    color: #e53e3e !important;
}

#partitions .folder-icon svg {
    fill: #e53e3e !important;
}

/* Bouton d'accès partitions en rouge - PRIORITÉ ABSOLUE */
#partitions .access-section .access-card .access-button {
    background: linear-gradient(135deg, #dc4c4c 0%, #c53030 100%) !important;
    box-shadow: 0 2px 8px rgba(220, 76, 76, 0.3) !important;
    border: none !important;
}

#partitions .access-section .access-card .access-button:hover {
    background: linear-gradient(135deg, #c53030 0%, #b91c1c 100%) !important;
    box-shadow: 0 4px 12px rgba(220, 76, 76, 0.4) !important;
}

/* Sélecteur de secours encore plus spécifique */
div#partitions .access-section .access-card a.access-button {
    background: linear-gradient(135deg, #dc4c4c 0%, #c53030 100%) !important;
}

div#partitions .access-section .access-card a.access-button:hover {
    background: linear-gradient(135deg, #c53030 0%, #b91c1c 100%) !important;
}

/* Styles spécifiques pour l'onglet partitions */
#partitions {
    min-height: 50px; /* EXTRÊME: Drastiquement réduit de 400px à 50px */
    position: relative;
}

#partitions .access-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#partitions .access-card {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    transform: none !important;
    margin: 0 0 2rem 0;
    width: 100%;
    max-width: none;
    /* Supprimer tout style de débogage forcé */
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.main-next-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #667eea);
}

.main-event-content {
    position: relative;
    z-index: 1;
}

/* Header avec indicateur live en haut à droite */
.main-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Container pour la partie gauche du header */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Container pour la partie droite du header */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Indicateur "Live" déplacé en haut à droite */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f7fafc;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #4a5568;
    flex-shrink: 0;
}

/* Bouton d'ajout au calendrier principal */
.add-to-calendar-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
    flex-shrink: 0; /* ✅ Empêche le bouton de rétrécir */
    min-width: 32px; /* ✅ Taille minimum garantie */
}

/* Centrage parfait des icônes Lucide dans le bouton calendrier */
.add-to-calendar-btn i[data-lucide],
.add-to-calendar-btn svg {
    display: block;
    margin: 0 auto;
    line-height: 1;
}

.add-to-calendar-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

/* ✅ Header-right avec protection débordement */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Badge de type d'événement - Plus petit */
.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    position: relative;
}

.event-type-badge.repetition {
    background: #4299e1 !important; /* Bleu pour "répétition pendant les vacances" */
    color: white !important;
}

/* Forcer la couleur pour le badge principal spécifiquement */
.main-event-header .event-type-badge.repetition,
.main-event-header .event-type-badge.event-gray {
    background: rgba(220, 38, 38, 0.1) !important; /* Rouge avec même opacité que petites cartes */
    color: #dc2626 !important;
    font-weight: 600 !important;
}

/* Test spécifique pour event-gray */
.main-event-header .event-type-badge.event-gray {
    background: rgba(220, 38, 38, 0.1) !important; /* Rouge avec même opacité que petites cartes */
    color: #dc2626 !important;
    font-weight: 600 !important;
}

/* Test spécifique pour event-blue (selon commentaires JS, les répétitions) */
.main-event-header .event-type-badge.event-blue {
    background: rgba(2, 132, 199, 0.1) !important; /* Bleu avec même opacité que petites cartes */
    color: #0284c7 !important;
    font-weight: 600 !important;
}

/* Test spécifique pour event-default */
.main-event-header .event-type-badge.event-default {
    background: rgba(107, 114, 128, 0.1) !important;
    color: #374151 !important;
    font-weight: 600 !important;
}

.event-type-badge.concert {
    background: #f56565;
}

.event-type-badge.vacances {
    background: #dc2626 !important; /* Rouge pour "pas de répétition" */
    color: white !important;
}

.event-type-badge.other {
    background: #ed8936;
}

.event-type-badge.custom-event {
    background: #48bb78; /* Vert comme les concerts */
    color: white;
}

/* Couleurs Notion pour les badges d'événements */
.event-type-badge.event-default {
    background: #6b7280;
    color: white;
}

.event-type-badge.event-gray {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.event-type-badge.event-brown {
    background: #92400e;
    color: white;
}

.event-type-badge.event-orange {
    background: #ea580c;
    color: white;
}

.event-type-badge.event-yellow {
    background: #d97706;
    color: white;
}

.event-type-badge.event-green {
    background: rgba(72, 187, 120, 0.1) !important;
    color: #2f855a !important;
}

.event-type-badge.event-blue {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.event-type-badge.event-purple {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

.event-type-badge.event-pink {
    background: rgba(190, 24, 93, 0.1);
    color: #be185d;
}

.event-type-badge.event-red {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Titre d'événement plus sobre */
/* Date et countdown sur une ligne fluide */
.event-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
}

.event-date {
    font-weight: 500;
}

.event-countdown {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #718096;
}

.countdown-number {
    background: #f7fafc;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #4a5568;
}

/* Focus sur les pièces - Layout en colonnes */
.event-pieces {
    margin-bottom: 1rem;
}

.event-pieces h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.pieces-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
}

.piece-item {
    background: #f8fafc;
    padding: 0.8rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.piece-item:hover {
    background: #edf2f7;
    transform: translateX(2px);
    border-left: 4px solid #667eea;
}

.piece-item h5 {
    font-size: 1rem;
    margin-bottom: 0;
    color: #2d3748;
    font-weight: 600;
}

/* Couleurs Notion pour les pièces musicales */
.piece-item.piece-default {
    border-left-color: #6b7280;
}

.piece-item.piece-gray {
    border-left-color: #6b7280;
}

.piece-item.piece-brown {
    border-left-color: #92400e;
}

.piece-item.piece-orange {
    border-left-color: #ea580c;
}

.piece-item.piece-yellow {
    border-left-color: #d97706;
}

.piece-item.piece-green {
    border-left-color: #059669;
}

.piece-item.piece-blue {
    border-left-color: #0284c7;
}

.piece-item.piece-purple {
    border-left-color: #4299e1;
}

.piece-item.piece-pink {
    border-left-color: #be185d;
}

.piece-item.piece-red {
    border-left-color: #dc2626;
}

/* Notes - Plus discrètes */
.event-notes {
    background: #fffaf0;
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #ed8936;
    font-size: 0.85rem;
    color: #744210;
}

/* Aperçu des événements suivants */
.upcoming-events-preview {
    margin-bottom: 2rem;
}

.upcoming-events-preview h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.upcoming-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

/* Mini cartes d'événements - Design épuré */
.mini-event-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mini-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #4299e1);
}

.mini-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mini-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mini-event-type {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Container pour actions à droite des mini-cartes */
.mini-event-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-event-countdown {
    font-size: 0.7rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Bouton calendrier pour mini-cartes */
.mini-add-to-calendar-btn {
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(72, 187, 120, 0.2);
    flex-shrink: 0; /* ✅ Empêche le bouton de rétrécir */
    min-width: 24px; /* ✅ Taille minimum garantie */
}

.mini-add-to-calendar-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.3);
}

/* ✅ Actions container avec protection débordement */
.mini-event-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}

/* ✅ Date container avec protection débordement */
.mini-event-date-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.mini-event-date {
    font-size: 0.85rem;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.mini-event-pieces {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
}

/* Tuile d'événement sélectionnée */
.mini-event-card.selected {
    border: none;
    box-shadow: 
        inset 0 0 0 4px #6b7280,
        0 2px 8px rgba(107, 114, 128, 0.15),
        inset 0 1px 3px rgba(107, 114, 128, 0.1);
    transform: none;
    background: inherit;
}

.mini-event-card.selected .mini-event-type {
    color: inherit;
    font-weight: 600 !important;
}

.mini-event-card.selected .mini-event-date,
.mini-event-card.selected .mini-event-location,
.mini-event-card.selected .mini-event-pieces,
.mini-event-card.selected .mini-event-countdown {
    color: inherit;
}

/* Styles pour les mini-cartes cliquables */
.mini-event-card.clickable-event {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Trigger pour le scroll infini des événements */
.events-load-more-trigger {
    height: 20px;
    margin: 1rem 0;
    /* Invisible mais présent pour l'intersection observer */
}

/* Bouton de retour à l'événement actuel */
.back-to-current-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.back-to-current-btn {
    background: #ed8936;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

.back-to-current-btn:hover {
    background: #dd7724;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
}

/* Section tous les événements */
.all-events-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.all-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.all-events-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.all-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* States de chargement - Version moderne et minimaliste */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #718096;
    font-style: normal;
}

/* Spinner moderne et minimaliste */
.modern-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 1rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center; /* 🚀 CENTRAGE EXPLICITE du texte */
    width: 100%; /* 🚀 S'ASSURER que le texte prend toute la largeur disponible */
}

/* 📱 AMÉLIORATION MOBILE : Centrage parfait du texte de chargement */
@media (max-width: 768px) {
    .modern-loader {
        padding: 2rem 1rem; /* 🚀 RÉDUIRE le padding sur mobile */
        text-align: center; /* 🚀 CENTRAGE au niveau du container */
    }
    
    .loading-text {
        font-size: 0.8125rem; /* 🚀 LÉGÈREMENT plus petit sur mobile */
        line-height: 1.4; /* 🚀 MEILLEURE lisibilité */
        margin-top: 0.75rem; /* 🚀 ESPACEMENT ajusté */
        margin-left: auto; /* 🚀 CENTRAGE parfait */
        margin-right: auto; /* 🚀 CENTRAGE parfait */
        display: block; /* 🚀 S'ASSURER que c'est un block */
        max-width: 280px; /* 🚀 LARGEUR maximale pour éviter les lignes trop longues */
    }
    
    /* 🚀 SPÉCIFIQUE Tableau de bord : Centrage dans le container dashboard */
    .dashboard-section .modern-loader {
        margin: 2rem auto; /* 🚀 CENTRAGE vertical et horizontal */
        width: 100%; /* 🚀 LARGEUR complète */
        display: flex; /* 🚀 FLEX pour centrage optimal */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 200px; /* 🚀 HAUTEUR minimale pour centrage vertical */
    }
    
    /* 🚀 MOBILE TRÈS PETIT ÉCRAN : Centrage renforcé */
    @media (max-width: 480px) {
        .dashboard-section .modern-loader {
            margin: 1rem auto;
            padding: 1.5rem 0.5rem;
            min-height: 180px;
        }
    }
}

/* Adaptations pour les anciens sélecteurs */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #718096;
    font-size: 0.875rem;
}

/* Version compacte pour les petites zones */
.inline-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.inline-loader .spinner {
    width: 20px;
    height: 20px;
    border-width: 1.5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .next-events-section {
        padding: 1rem;
    }
    
    .next-events-header h2 {
        font-size: 1.8rem;
    }
    
    .main-next-event {
        padding: 1.5rem;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upcoming-events-list {
        grid-template-columns: 1fr;
    }
    
    .all-events-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.mini-event-card.repetition::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.mini-event-card.concert::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

.mini-event-card.vacances::before {
    background: linear-gradient(90deg, #818cf8, #6366f1);
}

.mini-event-card.custom-event::before {
    background: linear-gradient(90deg, #48bb78, #38a169); /* Vert comme les concerts */
}

/* Couleurs Notion pour les mini-event-card */
.mini-event-card.event-default::before {
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.mini-event-card.event-gray::before {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.mini-event-card.event-brown::before {
    background: linear-gradient(90deg, #92400e, #78350f);
}

.mini-event-card.event-orange::before {
    background: linear-gradient(90deg, #ea580c, #c2410c);
}

.mini-event-card.event-yellow::before {
    background: linear-gradient(90deg, #d97706, #b45309);
}

.mini-event-card.event-green::before {
    background: linear-gradient(90deg, #059669, #047857);
}

.mini-event-card.event-blue::before {
    background: linear-gradient(90deg, #0284c7, #0369a1);
}

.mini-event-card.event-purple::before {
    background: linear-gradient(90deg, #4299e1, #667eea);
}

.mini-event-card.event-pink::before {
    background: linear-gradient(90deg, #be185d, #9d174d);
}

.mini-event-card.event-red::before {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.mini-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Garder le style de sélection même au hover */
.mini-event-card.selected:hover {
    transform: none;
    box-shadow: 
        inset 0 0 0 4px #6b7280,
        0 2px 8px rgba(107, 114, 128, 0.15),
        inset 0 1px 3px rgba(107, 114, 128, 0.1);
}

/* Changer la couleur de la bande du dessus quand la carte est sélectionnée */
.mini-event-card.selected::before {
    background: linear-gradient(90deg, #6b7280, #4b5563) !important;
}

/* Bouton moderne flat design à gauche du badge */
.back-to-default-btn-modern {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.back-to-default-btn-modern:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #333;
}

.back-to-default-btn-modern:active {
    background: #ddd;
}

.mini-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mini-event-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mini-event-type.repetition {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.mini-event-type.concert {
    background: rgba(255, 107, 107, 0.1);
    color: #c53030;
}

.mini-event-type.vacances {
    background: rgba(129, 140, 248, 0.1);
    color: #5a67d8;
}

.mini-event-type.other {
    background: rgba(236, 201, 75, 0.1);
    color: #d69e2e;
}

.mini-event-type.custom-event {
    background: rgba(72, 187, 120, 0.1); /* Vert avec transparence */
    color: #48bb78; /* Vert comme les concerts */
}

/* Couleurs Notion pour les mini-event-type */
.mini-event-type.event-default {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.mini-event-type.event-gray {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.mini-event-type.event-brown {
    background: rgba(146, 64, 14, 0.1);
    color: #92400e;
}

.mini-event-type.event-orange {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.mini-event-type.event-yellow {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.mini-event-type.event-green {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.mini-event-type.event-blue {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.mini-event-type.event-purple {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

.mini-event-type.event-pink {
    background: rgba(190, 24, 93, 0.1);
    color: #be185d;
}

.mini-event-type.event-red {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.mini-event-date {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

.mini-event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.mini-event-pieces {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.mini-event-notes {
    font-size: 0.85rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
}

/* Section de tous les événements (obsolète - maintenant scroll infini) */
.all-events-section {
    margin-top: 3rem;
}

.all-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.all-events-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.all-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Messages d'état */
.no-events-message {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.no-events-message h3 {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.no-events-message p {
    color: #718096;
}

/* Messages d'état programmes - EXACTEMENT identique aux événements */
.no-programmes-message {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.no-programmes-message h3 {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.no-programmes-message p {
    color: #718096;
}

/* Fausse carte programme vide - Style identique aux mini-event-card mais avec liseré bleu */
.empty-programme-card {
    position: relative;
    border: 2px dashed #e2e8f0 !important;
    text-align: center !important;
    padding: 3rem 1rem !important;
}

.empty-programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd) !important;
}

.empty-programme-card .mini-event-header {
    display: block !important;
    text-align: center !important;
    margin-bottom: 0 !important;
}

.empty-programme-card .mini-event-type {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 0.5rem !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.empty-programme-card .mini-event-actions {
    display: none !important;
}

.empty-programme-card .mini-event-content {
    text-align: center !important;
    padding: 0 !important;
}

.empty-programme-card .mini-event-content p {
    color: #718096 !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

/* Styles pour l'état vide des programmes (même style que les événements) */
.no-programmes-message {
    text-align: center !important;
    padding: 3rem 1rem !important;
    background: white !important;
    border-radius: 16px !important;
    border: 2px dashed #e2e8f0 !important;
    margin: 2rem 0 !important;
    box-sizing: border-box !important;
}

.no-programmes-message h3 {
    font-size: 1.3rem !important;
    color: #4a5568 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
}

.no-programmes-message p {
    color: #718096 !important;
    margin: 0 !important;
}

/* Conteneur programmes pour bien afficher l'état vide */
#programmes-content {
    min-height: auto !important;
    padding: 0 !important;
}

#programmes-content .no-programmes-message {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #718096;
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .next-events-section {
        padding: 1rem;
    }
    
    /* 🚀 CORRECTION MAJEURE : Même padding mobile pour programmes que pour événements */
    .programmes-section {
        padding: 1rem;
    }
    
    .next-events-header h2 {
        font-size: 2rem;
    }
    
    .main-next-event {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .event-title {
        font-size: 1.6rem;
    }
    
    .event-countdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .upcoming-events-list, .all-events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mini-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .all-events-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* 📱 OPTIMISATIONS BOUTONS CALENDRIER MOBILE */
    .add-to-calendar-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .mini-add-to-calendar-btn {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }
    
    /* 📱 CONTENEURS POUR ÉVITER DÉBORDEMENT */
    .event-meta, .mini-event-meta {
        overflow: hidden;
        min-width: 0;
    }
    
    .mini-event-header {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    
    .mini-event-date-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
    }
    
    .mini-event-date {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 📱 DESIGN BULLE CENTRÉE - Titre + Icône PDF */
    
    /* Header mobile avec bulle centrée */
    #programmes .section-header {
        background: transparent;
        padding: 1.5rem 1rem 1rem;
        border-radius: 0;
        margin-bottom: 1rem;
        box-shadow: none;
        border: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    
    /* 🚫 ANCIEN SYSTÈME HEADER-BUBBLE DÉSACTIVÉ - remplacé par mobile-program-header */
    #programmes .section-header .header-bubble {
        display: none !important; /* 🚀 Désactivé - nouveau design mobile */
    }
    
    #programmes .section-header h2 {
        color: #2d3748;
        font-size: 1.5rem;
        text-align: center;
        margin: 0;
        font-weight: 600;
        letter-spacing: -0.02em;
        position: relative;
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        flex: 0 0 auto;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    /* BARRE BLEUE SOUS LES TITRES - RÈGLE DÉFINITIVE */
    #programmes .section-header h2:after {
        display: block !important;
        content: '' !important;
        width: 60px !important;
        height: 3px !important;
        background: #4299e1 !important;
        margin: 80px auto 0 !important;
        border-radius: 2px !important;
    }
    
    /* Icône PDF dans la bulle - ADAPTATIF AVEC TEXTE LONG */
    #programmes .header-bubble .pdf-download-btn {
        background: linear-gradient(135deg, #4299e1 0%, #667eea 100%) !important;
        color: white !important;
        padding: 0.5rem !important;
        border-radius: 6px !important;
        font-size: 0 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3) !important;
        margin: 0.25rem 0 !important; /* 🔄 AJOUTÉ: marges verticales pour les cas où il passe à la ligne */
        margin-top: 0 !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
        border: none !important;
        cursor: pointer !important;
        gap: 0 !important;
        white-space: nowrap !important;
        position: relative !important;
        z-index: auto !important;
        align-self: center !important; /* 🔄 AJOUTÉ: reste centré verticalement */
    }
    
    #programmes .header-bubble .pdf-download-btn svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    #programmes .header-bubble .pdf-download-btn:hover {
        background: linear-gradient(135deg, #3182ce 0%, #5a67d8 100%) !important;
        transform: translateY(-1px) scale(1.03) !important;
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4) !important;
    }
    
    /* Masquer le texte du bouton PDF - garder seulement SVG */
    #programmes .header-bubble .pdf-download-btn .btn-text {
        display: none !important;
    }
    
    #programmes .header-bubble .pdf-download-btn:before {
        display: none !important;
    }
    
    /* Règle spéciale pour les écrans très étroits (<350px) - BOUTON TOUJOURS À DROITE */
    @media (max-width: 350px) {
        #programmes .section-header .header-bubble {
            padding: 0.75rem 1rem !important;
            gap: 0.3rem !important; /* ✨ RÉDUIT: encore plus serré pour petits écrans */
            width: 95% !important;
        }
        
        #programmes .header-bubble h2 {
            font-size: 1.1rem !important; /* ✨ RÉDUIT: de 1.15rem à 1.1rem */
            max-width: calc(100% - 40px) !important; /* ✨ MODIFIÉ: pour laisser de l'espace au bouton */
        }
        
        #programmes .header-bubble .pdf-download-btn {
            width: 28px !important; /* ✨ RÉDUIT: de 32px à 28px pour les petits écrans */
            height: 28px !important;
            min-width: 28px !important;
            min-height: 28px !important;
        }
    }
    
    /* Neutraliser les styles h2 conflictuels dans la bulle - TEXTE ALIGNÉ À GAUCHE SI SUR PLUSIEURS LIGNES */
    #programmes .header-bubble h2 {
        color: #2d3748 !important;
        font-size: 1.25rem !important;
        text-align: left !important; /* ✨ MODIFIÉ: alignement à gauche pour les titres longs sur plusieurs lignes */
        margin: 0 !important;
        font-weight: 600 !important;
        letter-spacing: -0.02em !important;
        position: relative !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        flex: 1 1 auto !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: calc(100% - 50px) !important; 
        padding-right: 0.5rem !important;
    }
    
    /* 🚀 ANTI-FLASH TRANSITIONS - SYSTÈME ROBUSTE */
    #programmes .concert-section {
        opacity: 1;
        transition: opacity 0.2s ease-in-out;
        will-change: auto;
    }
    
    /* État de transition pour éviter le flash pendant les changements DOM */
    #programmes .concert-section.transforming {
        opacity: 0.7;
    }
    
    /* Transition fluide pour les headers lors des changements de layout */
    #programmes .section-header {
        transition: all 0.15s ease-in-out;
    }
    
    /* Éviter le flash initial en masquant le contenu non préparé */
    #programmes .concert-section:not([data-layout]) {
        opacity: 0.8;
    }
    
    /* Révéler le contenu une fois le layout déterminé */
    #programmes .concert-section[data-layout] {
        opacity: 1;
    }
    
    /* 🚀 ANTI-SAUTILLEMENT MOBILE - Empêcher les mouvements non désirés */
    @media (max-width: 768px) {
        /* Stabiliser les contenus d'onglets pendant les transitions mobiles */
        .tab-content {
            transform: translateZ(0); /* Force GPU acceleration */
            will-change: auto;
            position: relative;
        }
        
        /* Empêcher les sauts de scroll pendant les changements d'onglets */
        body.mobile-tab-switching {
            overflow: hidden;
        }
        
        /* Transitions plus fluides pour les onglets mobiles */
        .tab-content.active {
            transition: opacity 0.15s ease-out;
        }
        
        /* Stabiliser les conteneurs programmes */
        #programmes-content,
        #programmes-available-content {
            transform: translateZ(0);
            position: relative;
        }
        
        /* 🎨 NOUVEAU DESIGN MOBILE - Cartes programmes modernes */
        .mobile-program-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
            margin: 0 0 1.5rem 0;
            padding: 0;
            position: relative;
            overflow: hidden;
        }
        
        .mobile-program-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        }
        
        .program-card-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem;
            gap: 1rem;
        }
        
        .program-main-info {
            flex: 1;
            min-width: 0;
        }
        
        .program-title {
            /* 🎆 TAILLE DYNAMIQUE GÉRÉE PAR JAVASCRIPT */
            font-size: 1.375rem !important; /* Fallback initial */
            font-weight: 700 !important;
            color: #2d3748 !important;
            margin: 0 0 0.75rem 0 !important;
            line-height: 1.3 !important; /* Sera ajusté par JS */
            letter-spacing: -0.02em !important;
            word-wrap: break-word;
            overflow-wrap: break-word;
            /* 🔧 AFFICHAGE COMPLET SANS ELLIPSIS */
            max-width: 100%;
            white-space: normal;
            overflow: visible;
            display: block;
        }
        
        .program-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            align-items: center;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.875rem;
            color: #4a5568;
            font-weight: 500;
            background: rgba(102, 126, 234, 0.06);
            padding: 0.375rem 0.75rem;
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.12);
        }
        
        .stat-icon {
            width: 14px;
            height: 14px;
            color: #667eea;
            flex-shrink: 0;
        }
        
        .program-actions {
            flex-shrink: 0;
        }
        
        .mobile-pdf-btn {
            background: transparent; /* 🚀 FOND TRANSPARENT pour subtilité */
            color: #667eea; /* 🚀 COULEUR SUBTILE */
            border: 1px solid #e2e8f0; /* 🚀 BORDURE SUBTILE */
            border-radius: 8px; /* 🚀 LÉGÈREMENT PLUS GRAND */
            padding: 0.5rem; /* 🚀 AUGMENTÉ: bouton plus grand */
            width: auto; /* 🚀 LARGEUR AUTOMATIQUE */
            height: auto; /* 🚀 HAUTEUR AUTOMATIQUE */
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            cursor: pointer;
            flex-shrink: 0;
            /* 🚀 SUPPRESSION des effets flashy */
        }
        
        .mobile-pdf-btn::before {
            display: none; /* 🚀 SUPPRESSION de l'effet de brillance */
        }
        
        .mobile-pdf-btn:hover {
            background: #f8fafc; /* 🚀 FOND TRÈS LÉGER au hover */
            border-color: #cbd5e0; /* 🚀 BORDURE PLUS SUBTILE */
            color: #5a67d8;
            /* 🚀 SUPPRESSION des effets de mouvement et ombre */
        }
        
        .mobile-pdf-btn:active {
            background: #f1f5f9; /* 🚀 FOND LÉGÈREMENT PLUS FONCÉ au clic */
            /* 🚀 SUPPRESSION des effets de mouvement et ombre */
        }
        
        .mobile-pdf-btn svg {
            width: 16px; /* 🚀 AUGMENTÉ: icône plus visible */
            height: 16px; /* 🚀 AUGMENTÉ: icône plus visible */
            stroke-width: 2;
        }
        
        /* Désactiver l'ancienne bulle pour mobile */
        .mobile-program-card .header-bubble {
            display: none !important;
        }
    }
    
    /* Container de pièces mobile délicat - LARGEUR MAXIMISÉE */
    #programmes .pieces-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.4rem; /* 🚀 ALIGNÉ avec mobile-program-header */
        background: transparent;
        border-radius: 0;
        margin-top: 0;
        max-width: 100%;
        box-sizing: border-box;
        /* 🔧 CORRECTION SCROLL HORIZONTAL */
        overflow-x: hidden;
        width: 100%;
    }
    
    /* 🔧 SUPPRESSION COMPLÈTE DU SCROLL HORIZONTAL sur programmes */
    #programmes {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 🔧 S'ASSURER que les cartes de programmes ne débordent pas */
    .mobile-program-card {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* 🔧 CONTRÔLE STRICT des éléments internes */
    .program-card-content {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* 🎨 DESIGN MOBILE SIMPLE ET SOBRE - FORMAT OPTIMISÉ */
    .mobile-program-header {
        display: flex;
        flex-direction: column;
        background: white;
        padding: 1rem 1.25rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        margin: 0 0 1rem 0;
        width: 100%;
        box-sizing: border-box;
        gap: 0; /* 🚀 SUPPRESSION du gap pour contrôle précis */
    }
    
    .mobile-program-header .program-info {
        flex: 1;
        min-width: 0;
        padding-bottom: 0.6rem; /* 🚀 ESPACE SOUS le titre (sans trait) */
        /* 🚀 TRAIT SUPPRIMÉ pour design plus épuré */
        margin-bottom: 0; /* 🚀 SUPPRESSION de la marge puisqu'il n'y a plus de trait */
    }
    
    /* 🚀 NOUVELLE LIGNE : Métadonnées + bouton alignés horizontalement */
    .mobile-program-header .program-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .mobile-program-header h2 {
        color: #2d3748;
        /* 🚀 SUPPRESSION du clamp() - taille maintenant calculée par JavaScript */
        font-size: 18px; /* Fallback au cas où JS échoue */
        font-weight: 600;
        margin: 0 !important; /* 🚀 FORCER margin à zéro */
        padding: 0 !important; /* 🚀 FORCER padding à zéro */
        line-height: 1.2 !important; /* 🚀 ÉQUILIBRÉ: 1.2 pour confort de lecture */
        /* � GESTION AMÉLIORÉE DES TITRES LONGS */
        white-space: normal;
        overflow: visible; /* 🔧 CORRECTION: permettre le débordement contrôlé */
        display: block; /* 🔧 CORRECTION: affichage block normal */
        word-wrap: break-word; /* 🚀 COUPE les mots longs si nécessaire */
        hyphens: auto; /* 🚀 CÉSURE automatique pour l'élégance */
        max-width: 100%;
        /* 🚀 ADAPTATION INTELLIGENTE à l'espace disponible */
        width: 100%;
    }
    
    /* 🔧 ADAPTATION AUTOMATIQUE DE LA TAILLE selon la longueur */
    .mobile-program-header h2[data-length="medium"] {
        font-size: 16px !important; /* Légère réduction */
        line-height: 1.15 !important;
    }
    
    .mobile-program-header h2[data-length="long"] {
        font-size: 14px !important; /* Réduction modérée */
        line-height: 1.1 !important;
    }
    
    .mobile-program-header h2[data-length="very-long"] {
        font-size: 12px !important; /* Réduction importante */
        line-height: 1.05 !important;
    }
    
    .mobile-program-header h2[data-length="extremely-long"] {
        font-size: 11px !important; /* Réduction maximale */
        line-height: 1 !important;
    }
    
    /* 🚫 SUPPRESSION COMPLÈTE du trait bleu après les titres h2 */
    .mobile-program-header h2:after {
        display: none !important;
    }
    
    /* 🚫 SUPPRESSION aussi pour tous les h2 dans le container mobile */
    #programmes .mobile-program-header h2:after {
        display: none !important;
        content: none !important;
    }
    
    .mobile-program-header .program-meta {
        display: flex;
        gap: 0.6rem; /* 🚀 RÉDUIT pour format bandeau */
        flex-wrap: nowrap; /* 🚀 PAS de retour à la ligne - tout horizontal */
        margin: 0;
        align-items: center;
    }
    
    .mobile-program-header .program-meta span {
        background: #f7fafc;
        color: #4a5568;
        padding: 0.2rem 0.5rem; /* 🚀 PLUS COMPACT pour bandeau */
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 500;
    }
    
    .mobile-pdf-btn svg {
        display: block;
    }
    
    /* Cartes délicates pour mobile - LARGEUR OPTIMISÉE */
    #programmes .piece-card {
        background: white;
        border-radius: 12px; /* 🚀 Légèrement arrondi pour cohérence */
        padding: 1.25rem; /* 🚀 Légèrement augmenté pour plus d'espace */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* 🚀 Ombre harmonisée */
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
        margin: 0 0 1rem 0; /* 🚀 SIMPLIFIÉ : juste marge bottom */
    }
    
    #programmes .piece-card:before {
        height: 4px;
        background: #4299e1;
        border-radius: 0;
    }
    
    #programmes .piece-card:hover,
    #programmes .piece-card:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: #cbd5e0;
    }
    
    /* Titre des pièces mobile délicat */
    #programmes .piece-card h3 {
        color: #2d3748;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* Métadonnées compactes */
    #programmes .piece-card p {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        color: #4a5568;
        line-height: 1.4;
    }
    
    /* Liens mobile délicats - comme desktop */
    #programmes .links {
        display: flex;
        gap: 0.8rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    #programmes .links a {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
        color: white;
        text-decoration: none;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 500;
        text-align: center;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        border: 1px solid transparent;
    }
    
    #programmes .links a:hover,
    #programmes .links a:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
        background: linear-gradient(135deg, #3182ce 0%, #5a67d8 100%);
    }
    
    /* Suppression de la barre bleue sur h2 standards */
    #programmes .concert-section h2:after {
        display: none;
    }
    
    /* H2 standards mobile épurés - SANS encadré */
    #programmes .concert-section h2 {
        background: transparent;
        color: #2d3748;
        padding: 1rem 0;
        border-radius: 0;
        font-size: 1.4rem;
        font-weight: 600;
        text-align: left;
        margin-bottom: 1.5rem;
        box-shadow: none;
        border: none;
        display: block;
        letter-spacing: -0.01em;
        position: relative;
    }
}

@media (max-width: 480px) {
    .main-next-event {
        padding: 1rem;
    }
    
    .event-title {
        font-size: 1.4rem;
    }
    
    .mini-event-card {
        padding: 1rem;
    }
    
    .show-all-events-btn, .hide-all-events-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* 📱 ULTRA-MOBILE : Simplifications drastiques */
    .add-to-calendar-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .mini-add-to-calendar-btn {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        border-radius: 4px;
    }
    
    /* 📱 Remplacer texte par points verts sur très petits écrans */
    .live-indicator-text {
        display: none;
    }
    
    .live-dot {
        width: 8px;
        height: 8px;
        margin-right: 0.25rem;
    }
    
    /* 📱 Simplifier l'affichage des dates */
    .mini-event-date {
        font-size: 0.8rem;
    }
    
    /* 📱 Éviter débordement sur très petits écrans */
    .event-meta {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .mini-event-header {
        gap: 0.25rem;
    }
    
    /* 📱 Masquer éléments non-essentiels sur petit mobile */
    .event-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* ========================================
   STYLES POUR LES BULLES DE PIÈCES MUSICALES
   ======================================== */

/* Container pour les bulles de pièces */
.pieces-bubbles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

/* Styles pour les bulles individuelles */
.piece-bubble {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    line-height: 1.2;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Effet hover sur les bulles - Version améliorée plus subtile */
.piece-bubble:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #2d3748;
    border-color: #4299e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bulle pour le compteur "+X autres" */
.piece-bubble.extra {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    color: #718096;
    font-style: italic;
    border-color: #e2e8f0;
}

.piece-bubble.extra:hover {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    color: #4a5568;
    border-color: #a0aec0;
}

/* Bulle pour "Programme à définir" */
.piece-bubble.placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #94a3b8;
    border-color: #e2e8f0;
    font-style: italic;
    opacity: 0.8;
}

.piece-bubble.placeholder:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    border-color: #cbd5e0;
    opacity: 1;
}

/* Mise en page pour les bulles (sans icône) */
.mini-event-pieces {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Responsive pour les bulles sur mobile */
@media (max-width: 480px) {
    .piece-bubble {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 10px;
        max-width: 120px;
    }
    
    .pieces-bubbles-container {
        gap: 0.3rem;
    }
    
    .mini-event-pieces {
        gap: 0.4rem;
    }
}

/* Animation délicate pour l'apparition des bulles */
@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.piece-bubble {
    animation: bubbleAppear 0.3s ease forwards;
}

/* Délai d'animation pour créer un effet en cascade */
.piece-bubble:nth-child(1) { animation-delay: 0ms; }
.piece-bubble:nth-child(2) { animation-delay: 50ms; }
.piece-bubble:nth-child(3) { animation-delay: 150ms; }
.piece-bubble:nth-child(4) { animation-delay: 150ms; }





/* ========================================
   🎭 MODALES ORCHESTRE
   ======================================== */

/* Styles pour les modales d'orchestre - utilisent les styles auth existants mais avec z-index élevé */
#editOrchestraModal,
#deleteOrchestraModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999999 !important; /* Au-dessus de tout, même du dashboard modal */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Contenu des modales - hérite des styles auth mais adapté */
#editOrchestraModal .auth-modal-content,
#deleteOrchestraModal .auth-modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1000000 !important;
}

/* Headers des modales */
#editOrchestraModal .auth-header,
#deleteOrchestraModal .auth-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#editOrchestraModal .auth-title,
#deleteOrchestraModal .auth-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
}

#editOrchestraModal .auth-close,
#deleteOrchestraModal .auth-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#editOrchestraModal .auth-close:hover,
#deleteOrchestraModal .auth-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Formulaires des modales */
#editOrchestraModal .auth-form,
#deleteOrchestraModal .auth-form {
    padding: 0 24px 24px 24px;
}

#editOrchestraModal .auth-form-group,
#deleteOrchestraModal .auth-form-group {
    margin-bottom: 20px;
}

#editOrchestraModal .auth-label,
#deleteOrchestraModal .auth-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

#editOrchestraModal .auth-input,
#deleteOrchestraModal .auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#editOrchestraModal .auth-input:focus,
#deleteOrchestraModal .auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Boutons des modales */
#editOrchestraModal .auth-btn,
#deleteOrchestraModal .auth-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

#editOrchestraModal .auth-btn:hover,
#deleteOrchestraModal .auth-btn:hover {
    transform: translateY(-1px);
}

#editOrchestraModal .auth-btn-primary {
    background-color: #3b82f6;
    color: white;
}

#editOrchestraModal .auth-btn-primary:hover {
    background-color: #2563eb;
}

/* Liens d'annulation */
#editOrchestraModal .auth-form-footer,
#deleteOrchestraModal .auth-form-footer {
    text-align: center;
}

#editOrchestraModal .auth-link,
#deleteOrchestraModal .auth-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

#editOrchestraModal .auth-link:hover,
#deleteOrchestraModal .auth-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    #editOrchestraModal .auth-modal-content,
    #deleteOrchestraModal .auth-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    #editOrchestraModal .auth-header,
    #deleteOrchestraModal .auth-header,
    #editOrchestraModal .auth-form,
    #deleteOrchestraModal .auth-form {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===================================
   MODAL DASHBOARD MINIMALISTE & MODERNE
   =================================== */

/* Styles de base pour les modals dashboard - VERSION SOBRE */
#dashboardModal .auth-modal-content,
#musicianDashboardModal .auth-modal-content {
    max-width: 650px !important;
    width: 90vw !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    margin: 10vh auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
}

/* En-tête minimaliste et sobre */
#dashboardModal .auth-modal-header,
#musicianDashboardModal .auth-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    margin-bottom: 0 !important;
    background: #f8fafc !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #374151 !important;
}

/* Titre de la modal */
#dashboardModal .auth-modal-title,
#musicianDashboardModal .auth-modal-title {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    gap: 8px !important;
}

#dashboardModal .auth-modal-title i,
#musicianDashboardModal .auth-modal-title i,
#dashboardModal .auth-modal-title [data-lucide],
#musicianDashboardModal .auth-modal-title [data-lucide] {
    width: 20px !important;
    height: 20px !important;
    color: #6b7280 !important;
}

/* Bouton de fermeture minimaliste */
#dashboardModal .auth-modal-close,
#musicianDashboardModal .auth-modal-close {
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#dashboardModal .auth-modal-close:hover,
#musicianDashboardModal .auth-modal-close:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

#dashboardModal .auth-modal-close svg,
#musicianDashboardModal .auth-modal-close svg {
    width: 16px !important;
    height: 16px !important;
}

/* Corps de la modal */
#dashboardModal .dashboard-modal-content,
#musicianDashboardModal .dashboard-modal-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 20px !important;
}

/* Section d'actions principale */
#dashboardModal .dashboard-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px 0 20px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 8px !important;
}

/* Bouton créer un orchestre */
#dashboardModal .btn-create-orchestra {
    background: #374151 !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(55, 65, 81, 0.2) !important;
    justify-content: center !important;
    width: auto !important;
    white-space: nowrap !important;
}

#dashboardModal .btn-create-orchestra:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(55, 65, 81, 0.3) !important;
}

#dashboardModal .btn-create-orchestra i,
#dashboardModal .btn-create-orchestra [data-lucide] {
    width: 16px !important;
    height: 16px !important;
}

/* Section rejoindre un orchestre */
#musicianDashboardModal .musician-join-section {
    padding: 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    position: relative !important;
}

#musicianDashboardModal .musician-join-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 3px !important;
    height: 100% !important;
    background: #48bb78 !important;
}

#musicianDashboardModal .join-card {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
}

#musicianDashboardModal .join-card h3 {
    margin: 0 0 8px 0 !important;
    color: #1e293b !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

#musicianDashboardModal .join-card h3 i,
#musicianDashboardModal .join-card h3 [data-lucide] {
    width: 18px !important;
    height: 18px !important;
    color: #48bb78 !important;
}

#musicianDashboardModal .join-card p {
    margin: 0 0 16px 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

#musicianDashboardModal .join-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    justify-content: center !important;
    max-width: 300px !important;
    margin: 0 auto !important;
}

#musicianDashboardModal .code-input {
    flex: 2 !important;
    min-width: 150px !important;
    padding: 10px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    display: block !important;
    box-sizing: border-box !important;
    height: 36px !important;
    background: white !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

#musicianDashboardModal .code-input:focus {
    outline: none !important;
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.1) !important;
}

#musicianDashboardModal .join-btn {
    flex: 0 0 auto !important;
    padding: 10px 16px !important;
    background: #48bb78 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    min-width: auto !important;
    box-sizing: border-box !important;
    height: 36px !important;
    box-shadow: 0 1px 2px rgba(72, 187, 120, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

#musicianDashboardModal .join-btn:hover {
    background: #38a169 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3) !important;
}

#musicianDashboardModal .join-btn i,
#musicianDashboardModal .join-btn [data-lucide] {
    width: 14px !important;
    height: 14px !important;
    margin-right: 4px !important;
}

/* États du bouton join */
#musicianDashboardModal .join-btn.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    animation: successPulse 0.5s ease-out !important;
}

#musicianDashboardModal .join-btn.btn-error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
    animation: errorShake 0.5s ease-out !important;
}

#musicianDashboardModal .join-btn.btn-loading {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transition: opacity 0.2s ease !important;
}

#musicianDashboardModal .join-btn:disabled {
    background: #a0aec0 !important;
    cursor: not-allowed !important;
}

/* Spinner pour boutons - plus compact et élégant */
.btn-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section mes orchestres */
.musician-orchestras-section {
    padding: 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    position: relative !important;
}

.musician-orchestras-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 3px !important;
    height: 100% !important;
    background: #4299e1 !important;
}

.musician-orchestras-section h3 {
    margin: 0 0 12px 0 !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
    z-index: 1 !important;
}

.musician-orchestras-section h3 i,
.musician-orchestras-section h3 [data-lucide] {
    width: 16px !important;
    height: 16px !important;
    color: #4299e1 !important;
}

.musician-orchestras-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 1 !important;
    padding-top: 4px !important; /* Petite marge pour éviter que les cartes en hover sortent du conteneur */
}

/* Liste des orchestres pour les chefs d'orchestre (dashboard modal) */
.orchestras-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 1 !important;
    padding-top: 4px !important; /* Petite marge pour éviter que les cartes en hover sortent du conteneur */
}

.orchestra-card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

.orchestra-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border-color: #4299e1 !important;
}

.orchestra-name {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: calc(100% - 140px) !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

.orchestra-name h4 {
    margin: 0 !important;
    padding: 0 !important;
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
}





.btn-select-orchestra {
    all: unset !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 8px !important;
    border-radius: 6px !important;
    font-size: 0 !important; /* Masquer le texte */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-select-orchestra:hover {
    background: #d1fae5 !important;
    border-color: #86efac !important;
    transform: translateY(-1px) !important;
}

.btn-select-orchestra i {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    font-size: 16px !important;
    color: #059669 !important;
}

.btn-manage-orchestra {
    all: unset !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    padding: 8px !important;
    border-radius: 6px !important;
    font-size: 0 !important; /* Masquer le texte */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-manage-orchestra:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    transform: translateY(-1px) !important;
}

.btn-manage-orchestra i {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    font-size: 16px !important;
    color: #2563eb !important;
}



.btn-delete-orchestra {
    all: unset !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    padding: 8px !important;
    border-radius: 6px !important;
    font-size: 0 !important; /* Masquer le texte */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-delete-orchestra:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    transform: translateY(-1px) !important;
}

.btn-delete-orchestra i {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    font-size: 16px !important;
    color: #dc2626 !important;
}

.orchestra-details {
    display: flex !important;
    gap: 12px !important;
    margin-top: 8px !important;
    position: relative !important;
    z-index: 1 !important;
}

.orchestra-role,
.orchestra-status {
    font-size: 12px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.orchestra-role {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    border: 1px solid #93c5fd !important;
}

.orchestra-status {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}

.orchestra-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    min-width: 110px;
}

.orchestra-actions .btn {
    min-width: 100px;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.orchestra-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 6px;
}

.orchestra-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.orchestra-actions .btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.orchestra-actions .btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Section demandes en attente */
.musician-requests-section {
    padding: 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    position: relative !important;
}

.musician-requests-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 3px !important;
    height: 100% !important;
    background: #f59e0b !important;
}

.musician-requests-section h3 {
    margin: 0 0 12px 0 !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
    z-index: 1 !important;
}

.musician-requests-section h3 i,
.musician-requests-section h3 [data-lucide] {
    width: 16px !important;
    height: 16px !important;
    color: #f59e0b !important;
}

.requests-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 1 !important;
}

.request-item {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.request-item:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border-color: #f59e0b !important;
}

.request-info h4 {
    margin: 0 0 8px 0 !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.request-city {
    color: #64748b !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-weight: 500 !important;
}

.request-meta {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    flex-wrap: wrap !important;
}

.request-date,
.request-code {
    font-size: 12px !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

.request-message {
    margin: 12px 0 0 0 !important;
    padding: 12px 16px !important;
    background: #fefce8 !important;
    border: 1px solid #fbbf24 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #92400e !important;
    font-style: italic !important;
    line-height: 1.5 !important;
}

.request-status {
    flex-shrink: 0 !important;
    margin-left: 16px !important;
}

.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border: 1px solid #e5e7eb !important;
}

.status-pending {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border-color: #fcd34d !important;
    box-shadow: none !important;
    opacity: 1 !important;
    font-size: 11px !important;
    padding: 3px 6px !important;
}

/* États vides et de chargement */
.loading-state,
.empty-orchestras-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.empty-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-orchestras-state h3,
.error-state h3 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.empty-orchestras-state p,
.error-state p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

/* Responsive pour la modal musicien */
@media (max-width: 768px) {
    #musicianDashboardModal .auth-modal-content {
        width: 95%;
        margin: 8px;
        max-height: calc(100vh - 16px);
        padding: 12px;
    }

    .orchestra-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .orchestra-content {
        padding-right: 0;
    }

    .orchestra-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        min-width: auto;
        align-self: flex-end;
    }

    .orchestra-actions .btn {
        min-width: 70px;
        font-size: 12px;
        padding: 6px 10px;
    }

    #musicianDashboardModal .dashboard-modal-content {
        gap: 12px;
    }

    .musician-join-section,
    .musician-orchestras-section,
    .musician-requests-section {
        padding: 12px;
    }

    .join-form {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        width: 100% !important;
        justify-content: stretch !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    .code-input {
        flex: 2 !important;
        min-width: 120px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        display: block !important;
        box-sizing: border-box !important;
        height: 32px !important;
    }

    .join-btn {
        flex: 0 0 auto !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        min-width: auto !important;
        display: flex !important;
        box-sizing: border-box !important;
        height: 32px !important;
    }

    .orchestra-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .orchestra-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .request-item {
        flex-direction: column;
        gap: 10px;
    }

    .request-status {
        align-self: flex-start;
    }
}

/* ========================================
   DISPOSITION DES MEMBRES DE L'ORCHESTRE - V2
   ======================================== */

/* Conteneur principal pour la nouvelle disposition */
.members-layout-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Première rangée : deux cartes côte à côte - Code plus petit, Demandes plus large */
.members-top-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    width: 100%;
}

/* Deuxième rangée : une carte pleine largeur */
.members-bottom-row {
    width: 100%;
}

/* Styles des cartes membres inspirés des item-card */
.members-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    transition: all 0.2s ease;
}

.members-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Structure interne des cartes */
.members-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
}

.members-card .card-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    padding-right: 80px;
}

.members-card .card-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.members-card .top-right-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.members-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ========================================
   STYLES SPÉCIFIQUES POUR LA CARTE CODE D'INVITATION - VERSION ÉPURÉE
   ======================================== */

.invite-code-display {
    margin-bottom: 20px;
}

.code-section-clean {
    background: transparent;
    padding: 0;
}

/* Toggle Switch dans le header de la carte */
.card-header {
    position: relative;
}

.card-toggle-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
}

.card-toggle-switch.active {
    background: #10b981;
    border-color: #059669;
}

.card-toggle-switch .toggle-slider {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

.card-toggle-switch:hover {
    background: #d1d5db;
}

.card-toggle-switch.active:hover {
    background: #059669;
}

/* Effet de grisement sur toute la carte quand inactive */
.members-card.inactive {
    opacity: 0.6;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.members-card.inactive .code-large {
    color: #9ca3af;
}

.members-card.inactive .action-icon {
    opacity: 0.5;
    pointer-events: none;
}

/* Layout principal : Code à gauche, Actions à droite */
.main-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px; /* EXTRÊME: Drastiquement réduit de 30px à 2px */
}

.code-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-large {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 1.5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot-gray {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
}

.status-text-gray {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.actions-side {
    display: flex;
    gap: 8px;
    position: relative;
}

.action-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.action-icon:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Styles pour l'encadrement bleu d'aide */
.help-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
}

.help-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 12px;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

/* Version mobile */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .actions-side {
        justify-content: center;
    }
    
    .code-large {
        font-size: 20px;
        text-align: center;
    }
    
    .status-line {
        justify-content: center;
    }
}

/* ========================================
   STYLES POUR LES DEMANDES EN ATTENTE
   ======================================== */

.requests-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

/* =======================
   DEMANDES EN ATTENTE - DESIGN ORGANISÉ
   ======================= */

.request-item-v2 {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.request-item-v2:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.request-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.request-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.member-instrument {
    padding: 2px 8px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.request-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.member-email {
    color: #6b7280;
}

.request-date {
    color: #9ca3af;
    font-size: 13px;
}

.request-actions-v2 {
    display: flex;
    gap: 10px;
}

.request-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    justify-content: center;
}

.approve-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.approve-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.reject-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.reject-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.request-message-v2 {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

.request-message-v2 i {
    color: #94a3b8;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .request-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .request-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .request-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .request-actions-v2 {
        justify-content: stretch;
    }
    
    .request-btn {
        flex: 1;
    }
}

/* Version responsive : s'empiler verticalement sur mobile */
@media (max-width: 768px) {
    .members-top-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .members-card .card-title {
        font-size: 15px;
        padding-right: 60px;
    }
    
    .members-card .card-subtitle {
        font-size: 12px;
    }
    
    .help-steps {
        gap: 6px;
    }
    
    .step-text {
        font-size: 12px;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn-action-secondary, .btn-action-warning {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* =======================
   CARTES MEMBRES MODERNES
   ======================= */

.member-card-modern {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.member-card-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* ========================================
   � CORRECTION: PROBLÈME ICÔNES MODALE SIGNUP
   ======================================== */

/* Scoper les styles member-role-icon UNIQUEMENT aux pages admin */
body:not(.admin-page) .member-role-icon {
    /* Annuler le positionnement absolu problématique dans les autres pages */
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    display: none !important; /* Masquer complètement sur les pages non-admin */
}

/* Styles originaux UNIQUEMENT pour les pages admin */
body.admin-page .member-role-icon,
.admin-content .member-role-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    display: block;
    flex-shrink: 0;
    clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
    z-index: 2;
}

/* Correction spécifique pour toutes les modales d'authentification */
.auth-modal .member-role-icon,
.auth-modal .member-card-modern .member-role-icon {
    display: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
}

/* S'assurer que les cartes de rôles dans les modales restent normales */
.auth-modal .role-option,
.auth-modal .role-selector {
    position: relative !important;
    overflow: visible !important;
}

.member-role-icon.conductor-corner {
    background: rgba(251, 191, 36, 0.4);
}

.member-role-icon.musician-corner {
    background: rgba(59, 130, 246, 0.4);
}

/* 🔧 CORRECTION: Scoper .role-icon UNIQUEMENT pour les contextes admin */
body.admin-page .member-role-icon .role-icon,
.admin-container .member-role-icon .role-icon,
.admin-content .member-role-icon .role-icon {
    position: absolute !important;
    top: 6px !important;
    right: 0px !important;
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    z-index: 3 !important;
}

/* 🛡️ PROTECTION: S'assurer que les icônes dans les modales restent normales */
.auth-modal .role-icon,
.role-option .role-icon {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    z-index: 1 !important;
}

.conductor-corner .role-icon {
    color: #92400e !important;
    stroke: #92400e !important;
}

.musician-corner .role-icon {
    color: #1e40af !important;
    stroke: #1e40af !important;
}

/* 🆕 NOUVEAU : Styles pour les musiciens virtuels (couleur verte) */
.member-role-icon.virtual-corner {
    background: rgba(34, 197, 94, 0.4);
}

.virtual-corner .role-icon {
    color: #059669 !important;
    stroke: #059669 !important;
}

/* Bouton d'ajout de musicien virtuel */
.btn-add-virtual-member {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-add-virtual-member:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.member-role-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.member-actions-bottom {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.btn-member-action {
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    padding: 0;
}

.btn-member-action:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 2px; /* EXTRÊME: Drastiquement réduit de 20px à 2px */
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.detail-row i {
    color: #9ca3af;
    flex-shrink: 0;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .member-header {
        align-items: center;
    }
    
    .member-avatar {
        width: 36px;
        height: 36px;
    }
    
    .member-name {
        font-size: 15px;
    }
    
    .detail-row {
        font-size: 12px;
    }
}

/* ======================================== 
   FEEDBACK DE COPIE
   ========================================*/

/* Animation subtile du bouton - juste l'icône */
.action-icon.copying {
    transition: all 0.2s ease;
}

.action-icon.copying svg {
    animation: quickCheck 0.8s ease;
    color: #10b981;
}

@keyframes quickCheck {
    0% { 
        transform: scale(1);
    }
    25% { 
        transform: scale(1.2) rotate(-5deg);
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
    }
    75% { 
        transform: scale(1.05);
    }
    100% { 
        transform: scale(1);
    }
}

/* ========================================
   BOUTONS CARTES ACTIONS
   ========================================*/

/* Style par défaut pour tous les card-actions */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

/* Alignement à droite pour les cartes spécifiques - SPÉCIFICITÉ RENFORCÉE */
.item-card.partitions-card .card-actions,
.item-card.settings-card .card-actions,
.partitions-card.item-card .card-actions,
.settings-card.item-card .card-actions {
    justify-content: flex-end !important;
}

/* ========================================
   MODALES MODERNES - STYLES MANQUANTS
   ========================================*/

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

.modal.show {
    display: flex;
}

/* Modal content moderne */
.modal-content.modern {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content.modern {
    transform: translateY(0);
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0;
    background: #f8fafc;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 24px;
    line-height: 1;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Modal body */
.modal-body {
    padding: 0; /* Reset le padding global */
    overflow-y: auto;
    max-height: calc(85vh - 120px);
}

/* Padding spécifique pour chaque section */
.modal-content.modern .tabs-navigation {
    padding: 20px 24px 20px 24px; /* Équilibrer le padding vertical */
    margin: 0;
    border-bottom: 1px solid #f1f5f9;
    /* Correction pour le centrage vertical */
    display: flex;
    align-items: center; /* Centrage vertical des onglets */
    min-height: 60px; /* Hauteur minimale pour avoir de l'espace à centrer */
}

/* S'assurer que les boutons d'onglets dans les modales sont bien centrés */
.modal-content.modern .tabs-navigation .tab-button {
    align-self: center; /* Force l'alignement vertical au centre */
}

.modal-content.modern .tab-content {
    padding: 24px;
    margin: 0;
}

.modal-content.modern .modal-actions {
    padding: 20px 24px 24px 24px;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

/* Reset des marges pour les éléments dans les modales modernes */
.modal-content.modern .tabs-container,
.modal-content.modern .form-row,
.modal-content.modern .form-group,
.modal-content.modern .edit-piece-info {
    margin: 0;
}

.modal-content.modern .form-row {
    margin-bottom: 16px;
}

.modal-content.modern .form-group {
    margin-bottom: 12px;
}

/* S'assurer que les champs de formulaire ne touchent pas les bords */
.modal-content.modern input,
.modal-content.modern textarea,
.modal-content.modern select {
    box-sizing: border-box;
}

/* Actions de la modale */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================
   COLORATION DES ZONES GRISÉES DES CARTES D'ÉVÉNEMENTS
   ======================================== */

/* Background grisé par défaut pour toutes les cartes d'événements */
.item-card.event-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(107, 114, 128, 0.15) !important; /* Test avec opacité plus forte */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
}

/* Concert - teinte verte légère sur les zones grisées */
.item-card.event-card.event-type-concert .card-header {
    background: rgba(72, 187, 120, 0.15) !important; /* Vert plus visible */
}

/* Répétition normale - teinte grise par défaut */
.item-card.event-card.event-type-rehearsal .card-header {
    background: rgba(107, 114, 128, 0.15) !important; /* Gris plus visible */
}

/* Répétition pendant les vacances - teinte bleue légère */
.item-card.event-card.event-type-holiday-rehearsal .card-header {
    background: rgba(2, 132, 199, 0.15) !important; /* Bleu plus visible */
}

/* Pas de répétition - teinte rouge légère */
.item-card.event-card.event-type-no-rehearsal .card-header {
    background: rgba(220, 38, 38, 0.15) !important; /* Rouge plus visible */
}

/* Autres événements - teinte orange légère */
.item-card.event-card.event-type-other .card-header {
    background: rgba(234, 88, 12, 0.15) !important; /* Orange plus visible */
}

/* ========================================
   STYLES POUR LES MESSAGES D'ÉTAT VIDES (CADRE FIN ADAPTATIF)
   ======================================== */

/* Cadre fin qui s'adapte au contenu des messages d'état vides */
.empty-card {
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    padding: 1.5rem 2rem !important;
    text-align: center;
    margin: 1rem auto 1rem auto !important; /* CORRIGÉ: Réduit encore de 2rem à 1rem */
    width: auto !important;
    max-width: fit-content !important;
    /* Forcer l'alignement au centre avec grid */
    grid-column: 1 / -1 !important;
    place-self: center !important;
    /* Simple block display */
    display: block !important;
}

.empty-card h3 {
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 1.3rem !important;
    margin: 0 0 0.8rem 0 !important;
    display: block !important;
    text-align: center !important;
}

/* Masquer complètement les icônes dans les messages d'état vides */
.empty-card h3 i,
.empty-card h3 [data-lucide] {
    display: none !important;
    visibility: hidden !important;
}

.empty-card p {
    color: #9ca3af !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* ========================================
   BOUTONS ACTION-BTN - STYLES MODERNES
   ======================================== */

.action-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
}

.action-btn-primary {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #bbf7d0;
    min-width: 80px;
    width: auto;
    text-align: center;
    white-space: nowrap;
}

.action-btn-primary:hover {
    background: #d1fae5;
    border-color: #86efac;
    transform: translateY(-1px);
}

.action-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn-danger:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* ========================================
   STYLES ADMINISTRATION PAGE
   ======================================== */

/* Layout principal admin */
.admin-container {
    min-height: auto; /* CORRIGÉ: suppression du min-height: 100vh qui causait l'espace vide */
    background: #f8fafc;
}

.admin-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.orchestra-info h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.orchestra-info p {
    margin: 4px 0 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* Navigation intégrée */
.integrated-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
}

.integrated-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.integrated-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #1e293b;
}

.integrated-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.integrated-tab i,
.integrated-tab [data-lucide] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Bouton fermer admin */
.nav-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-btn-icon:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.05);
}

.nav-btn-icon i {
    width: 18px;
    height: 18px;
}

/* Contenu admin */
.admin-content {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE ADMIN MOBILE
   ======================================== */

@media (max-width: 767px) {
    .admin-header {
        flex-direction: column;
        padding: 12px 16px;
        gap: 12px;
        position: relative;
    }
    
    .header-left {
        order: 1;
        text-align: center;
        flex: none;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        flex: none;
        justify-content: stretch;
    }
    
    .header-right {
        order: 2;
        position: absolute;
        top: 12px;
        right: 16px;
        flex: none;
    }
    
    /* Navigation mobile */
    .integrated-tabs {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #f8fafc;
        border-radius: 12px;
        padding: 8px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .integrated-tabs.show {
        display: flex;
        max-height: 300px;
    }
    
    .integrated-tab {
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 8px;
        background: white;
        border: 1px solid #e2e8f0;
        margin: 0;
        width: 100%;
        text-align: left;
        font-size: 15px;
    }
    
    .integrated-tab i {
        margin-right: 12px;
        width: 18px;
        height: 18px;
    }
    
    /* Bouton hamburger */
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #667eea;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        margin: 0 auto 12px auto;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-toggle:hover {
        background: #5a67d8;
        transform: scale(1.05);
    }
    
    .mobile-nav-toggle i {
        width: 20px;
        height: 20px;
    }
    
    /* Orchestra info compact */
    .orchestra-info h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .orchestra-info p {
        font-size: 0.9rem;
        margin: 4px 0 0 0;
        color: #6b7280;
    }
    
    /* Contenu admin mobile */
    .admin-content {
        padding: 16px;
    }
}

/* Desktop - masquer le bouton hamburger */
@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }
    
    .integrated-tabs {
        display: flex;
        max-height: none;
    }
}

/* ========================================
   RESPONSIVE CONTENT MOBILE
   ======================================== */

@media (max-width: 767px) {
    /* Sections plus compactes */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .custom-section-title {
        text-align: left;
    }
    
    .custom-section-title .title-text {
        font-size: 1.4rem;
    }
    
    .custom-section-title .description-text {
        font-size: 0.9rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Grilles adaptatives */
    .items-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .members-top-row {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .members-bottom-row {
        display: grid;
        grid-template-columns: 1fr !important;
    }
    
    /* Cartes compactes */
    .item-card {
        padding: 16px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
    }
    
    /* Boutons touch-friendly */
    .btn-compact {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
    }
    
    /* Actions des cartes empilées */
    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .card-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   MODALES RESPONSIVE
   ======================================== */

@media (max-width: 767px) {
    .modal-content.modern {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        margin: 0;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 20px 20px 16px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        max-height: calc(90vh - 140px);
    }
    
    .modal-content.modern .tab-content {
        padding: 20px;
    }
    
    .modal-content.modern .modal-actions {
        padding: 16px 20px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions button {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    /* Formulaires dans modales */
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-control {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 12px;
        border-radius: 8px;
    }
}

/* ========================================
   DRAG & DROP MOBILE
   ======================================== */

@media (max-width: 767px) {
    .piece-tag {
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
        position: relative;
    }
    
    .piece-tag:active {
        transform: scale(0.95);
        background-color: rgba(99, 102, 241, 0.1);
    }
    
    .drag-over {
        background-color: rgba(34, 197, 94, 0.15) !important;
        border: 2px dashed #22c55e !important;
    }
    
    .drag-over-transfer {
        background-color: rgba(59, 130, 246, 0.15) !important;
        border: 2px dashed #3b82f6 !important;
    }
    
    .pieces-tags {
        min-height: 60px;
        border: 1px dashed transparent;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .pieces-tags.drag-over {
        border-color: #22c55e;
        background-color: rgba(34, 197, 94, 0.05);
    }
    
    /* Indicateur de drag */
    .piece-tag::after {
        content: '⋮⋮';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 12px;
        opacity: 0.7;
    }
}

/* ========================================
   INDICATEUR SWIPE
   ======================================== */

.swipe-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.swipe-indicator.show {
    opacity: 1;
}

/* ========================================
   ÉTATS D'INTERFACE ROBUSTES - NOUVEAUX SYSTÈMES
   ======================================== */

/* État de chargement */
.tab-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin: 1rem 0;
}

.tab-loading-progress {
    margin-bottom: 1.5rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top: 3px solid var(--color-primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tab-loading-message h3 {
    font-size: 1.1rem;
    color: var(--color-gray-700);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tab-loading-details {
    margin-top: 1rem;
    text-align: center;
}

.tab-loading-details small {
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.tab-cancel-button {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--color-gray-400);
    border-radius: 6px;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-cancel-button:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-600);
}

/* État de retry */
.tab-retry-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.02) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    margin: 1rem 0;
}

.retry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

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

.tab-retry-content {
    text-align: center;
    width: 100%;
}

.tab-retry-content h3 {
    font-size: 1.2rem;
    color: #d97706;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.retry-message {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tab-retry-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.tab-retry-button:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tab-auto-retry {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.auto-retry-countdown {
    font-size: 0.9rem;
    color: #d97706;
}

.countdown {
    font-weight: bold;
    font-family: monospace;
}

.tab-retry-details {
    margin-top: 1.5rem;
    width: 100%;
}

.tab-retry-details summary {
    cursor: pointer;
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.tab-retry-details[open] summary {
    margin-bottom: 0.5rem;
}

/* État d'erreur */
.tab-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin: 1rem 0;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
}

.tab-error-content {
    text-align: center;
    width: 100%;
}

.tab-error-content h3 {
    font-size: 1.2rem;
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.error-message {
    color: var(--color-gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.error-suggestion {
    background: rgba(239, 68, 68, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--color-gray-700);
}

.error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.tab-error-retry-button,
.tab-error-reload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tab-error-retry-button {
    background: #ef4444;
    color: white;
}

.tab-error-retry-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tab-error-reload-button {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-400);
}

.tab-error-reload-button:hover {
    background: var(--color-gray-200);
    border-color: var(--color-gray-600);
}

.tab-error-details {
    margin-top: 1.5rem;
    width: 100%;
}

.tab-error-details summary {
    cursor: pointer;
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.error-technical-info {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--color-gray-700);
    text-align: left;
}

.error-technical-info p {
    margin: 0.25rem 0;
}

/* État vide */
.tab-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.02) 0%, rgba(107, 114, 128, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(107, 114, 128, 0.1);
    margin: 1rem 0;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.tab-empty-content {
    text-align: center;
    width: 100%;
}

.tab-empty-content h3 {
    font-size: 1.3rem;
    color: var(--color-gray-700);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-message {
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--color-primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.empty-action-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

/* Classes d'état pour les conteneurs d'onglets */
.tab-loading {
    min-height: 200px;
}

.tab-retry {
    min-height: 250px;
}

.tab-error {
    min-height: 300px;
}

.tab-empty {
    min-height: 350px;
}

/* Responsive */
@media (max-width: 768px) {
    .tab-loading-state,
    .tab-retry-state,
    .tab-error-state,
    .tab-empty-state {
        padding: 2rem 1rem;
        margin: 0.5rem 0;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .tab-error-retry-button,
    .tab-error-reload-button,
    .empty-action-button {
        width: 100%;
        justify-content: center;
    }
    
    .empty-message {
        max-width: none;
    }
}

/* Animation d'entrée pour les états */
.tab-loading-state,
.tab-retry-state,
.tab-error-state,
.tab-empty-state {
    animation: fadeInUp 0.4s ease-out;
}

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

/* ========================================
   🔄 CHANGEMENT D'EMAIL - STYLES
   ======================================== */

/* Container principal pour l'édition d'email */
.email-edit-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 8px;
}

/* Actions pour l'édition d'email */
.email-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Bouton de modification d'email dans l'affichage normal */
.email-edit-btn {
    background: none;
    border: none;
    padding: 4px;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    color: #64748b;
}

.email-edit-btn:hover {
    opacity: 1;
    background: #f1f5f9;
    color: #3b82f6;
}

/* Boutons petits pour les actions d'email */
.btn-primary-small,
.btn-secondary-small {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-small {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary-small:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary-small:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-small {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary-small:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* Notice d'information pour le changement d'email */
.email-change-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
    margin-top: 8px;
}

.email-change-notice i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Message de succès pour le changement d'email */
.email-success-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    animation: fadeInUp 0.3s ease;
    position: relative;
}

.success-icon {
    flex-shrink: 0;
}

.success-content {
    flex-grow: 1;
}

.success-content h4 {
    margin: 0 0 8px 0;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
}

.success-content p {
    margin: 0 0 4px 0;
    color: #166534;
    font-size: 13px;
}

.success-note {
    font-size: 12px;
    color: #15803d;
    font-style: italic;
    line-height: 1.4;
    padding: 8px 0;
}

.success-action {
    font-weight: 600;
    color: #15803d;
    font-size: 13px;
    margin-top: 8px;
}

/* Bouton de fermeture du message de succès */
.success-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #15803d;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-close-btn:hover {
    opacity: 1;
    background: rgba(21, 128, 61, 0.1);
}

/* Message d'erreur pour le changement d'email */
.email-error-message {
    margin-top: 8px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    animation: fadeInUp 0.3s ease;
}

.error-content {
    display: flex;
    align-items: center;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

/* Amélioration de l'affichage normal de l'email */
.auth-form-display {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s ease;
    position: relative;
}

.auth-form-display:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .email-edit-actions {
        flex-direction: column;
    }
    
    .btn-primary-small,
    .btn-secondary-small {
        justify-content: center;
        width: 100%;
    }
    
    .email-edit-container {
        padding: 12px;
    }
    
    .email-success-message {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ========================================