/* ============================================
   DASHBOARD MODERN - Fichier principal
   Architecture modulaire - Généré automatiquement
   Ne pas modifier directement - Utiliser les modules dans modules/
   ============================================ */

/* ============================================
   LAYOUT BASE - Variables, Reset, Typographie
   ============================================ */

/* Variables CSS principales */
:root {
    --color-primary: #5a5fca;
    --color-primary-dark: #4549a8;
    --color-primary-light: #e8e9f5;
    --color-bg: #FEFCF9;
    --color-bg-secondary: #FAF8F5;
    --color-text: #2C2C2C;
    --color-text-secondary: #6B6B6B;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-out;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   STYLES POUR LE MENU UNIFIED
   ============================================ */

.mc-header {
    background-color: #160c1f;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.mc-header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.mc-header.header-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mc-nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    gap: 1.5rem;
    transition: gap 0.3s ease;
}
.mc-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    min-width: 0;
}
.mc-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.mc-logo:hover {
    color: #e8e9f5;
}
.mc-logo:hover span:first-child {
    color: #e8e9f5;
}
.mc-logo img {
    transition: transform 0.2s;
}
.mc-logo:hover img {
    transform: scale(1.05);
}
.mc-nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}
.mc-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}
.mc-nav-link span {
    color: inherit;
}
.mc-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}
.mc-nav-link-dashboard {
    background: linear-gradient(135deg, rgba(90, 95, 202, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.3);
    color: #ffffff !important;
}
.mc-nav-link-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.mc-nav-link-dashboard:hover::before {
    left: 100%;
}
.mc-nav-link-dashboard:hover {
    background: linear-gradient(135deg, rgba(90, 95, 202, 0.35) 0%, rgba(124, 58, 237, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(90, 95, 202, 0.4);
    transform: translateY(-1px);
    color: #ffffff !important;
}
.dashboard-icon {
    font-size: 1.1rem;
    display: inline-block;
    animation: pulseIcon 2s ease-in-out infinite;
}
@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}
.dashboard-badge {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6));
}
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(5deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-5deg);
    }
}
.mc-nav-link-dropdown {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.mc-nav-link-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}
.mc-nav-link-dropdown span {
    color: inherit;
}
.mc-admin-link {
    color: rgba(255, 255, 255, 0.9) !important;
}
.mc-admin-link:hover {
    color: #ffffff !important;
}
.mc-nav-caret {
    font-size: 0.75rem;
    color: inherit;
}
.mc-dropdown {
    position: relative;
}
.mc-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 0.5rem;
    background: transparent;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mc-dropdown-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mc-dropdown-inner {
    background: #ffffff;
    border: 1px solid rgba(90, 95, 202, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transform-origin: top left;
}
.mc-dropdown-inner-wide {
    min-width: 280px;
    max-height: 600px;
    overflow-y: auto;
}
.mc-dropdown-link {
    display:flex;
    align-items:center;
    gap:0.75rem;
    padding:0.65rem 1rem;
    color:#2d2d41;
    text-decoration:none;
    transition:all 0.2s;
}
.mc-dropdown-link:hover {
    background:rgba(90, 95, 202,.08);
    color:#5a5fca;
}
.mc-dropdown-link-with-badge {
    position: relative;
}
.mc-dropdown-label {
    flex:1;
    font-weight:500;
}
.mc-dropdown-section {
    padding: 0.25rem 0;
}
.mc-dropdown-section-title {
    padding:0.4rem 1rem;
    color:#9ca3af;
    font-size:0.7rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.5px;
}
.mc-dropdown-divider {
    height:1px;
    background:rgba(90,95,202,.15);
    margin:0.5rem 0;
}
.mc-badge-circle {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.25rem;
}
.mc-badge-circle-large {
    width: 20px;
    height: 20px;
}
.mc-help-link {
    color: #2d2d41;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.mc-help-link:hover {
    color:#5a5fca;
}
.mc-user-menu-wrapper {
    position: relative;
}
.mc-user-btn {
    padding: 0.5rem 1rem;
    background: #5a5fca;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(90, 95, 202, 0.2);
    transition: all 0.2s;
}
.mc-user-btn:hover {
    background:#4a4fb8;
    transform: translateY(-1px);
}
.mc-user-counter-badge {
    background: rgba(255,255,255,.15);
    padding:.15rem .4rem;
    border-radius:8px;
    font-size:.72rem;
}
.mc-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    margin-top: 0;
    background: #ffffff;
    border: 1px solid rgba(90, 95, 202, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 480px;
    max-width: 550px;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    overflow: hidden;
}
.mc-user-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}
.mc-user-menu-col-left {
    border-right: 1px solid rgba(90,95,202,.15);
}
.mc-user-menu-section {
    padding: 0.5rem 0;
}
.mc-user-menu-section-flex {
    padding: 0.5rem 0;
    flex: 1;
}
.mc-tag-pill {
    background:rgba(90, 95, 202,.1);
    color:#5a5fca;
    padding:0.15rem 0.5rem;
    border-radius:12px;
    font-size:0.7rem;
    font-weight:600;
}
.mc-user-menu-footer {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(90,95,202,.2);
}
.mc-user-btn-danger,
.mc-user-btn-primary {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0.5rem;
    padding:0.75rem 1rem;
    margin:0 0.5rem 0.5rem;
    text-decoration:none;
    font-weight:600;
    border-radius:8px;
    transition:all 0.2s;
}
.mc-user-btn-danger {
    background:#ef4444;
    color:white;
}
.mc-user-btn-danger:hover {
    background:#dc2626;
    transform:translateY(-1px);
}
.mc-user-btn-danger-inline {
    margin:0;
    box-shadow:0 4px 15px rgba(239, 68, 68, 0.3);
}
.mc-user-btn-danger-inline:hover {
    box-shadow:0 8px 25px rgba(239, 68, 68, 0.4);
}
.mc-user-btn-primary {
    background:#5a5fca;
    color:white;
}
.mc-user-btn-primary:hover {
    background:#4a4fb8;
    transform:translateY(-1px);
}
.burger-btn-connected {
    display: none;
}
.mc-burger {
    background:rgba(255, 255, 255, 0.1);
    border:1px solid rgba(255, 255, 255, 0.2);
    padding:.5rem .75rem;
    border-radius:8px;
    color:#ffffff;
    cursor:pointer;
    font-size:1.5rem;
    line-height:1;
    transition:all 0.3s;
    z-index:1001;
    position: relative;
}
.mc-burger:hover {
    border-color:rgba(255, 255, 255, 0.4);
    background:rgba(255, 255, 255, 0.15);
    color:#ffffff;
}
/* ===== MOBILE - Menu burger overlay ===== */
@media (max-width: 900px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    header nav {
        position: relative;
    }
    
    .mc-nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
    }
    
    .mc-logo-wrapper {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 60px);
        margin-right: 1rem;
    }
    
    .mc-logo img {
        height: 2.5rem !important;
    }
    
    .burger-btn-connected,
    #burgerConnected,
    .mc-burger {
        display: block !important;
        z-index: 10000;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
    
    header nav #burgerConnected.active { 
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    header nav #navLinksConnected { 
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 9999;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        box-sizing: border-box;
        pointer-events: none;
    }
    
    header nav #navLinksConnected .mobile-menu-help-first {
        order: -1 !important;
    }
    
    header nav #navLinksConnected.open { 
        display: flex;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    header nav #navLinksConnected a,
    header nav #navLinksConnected button,
    header nav #navLinksConnected > div {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    header nav #navLinksConnected button {
        text-align: center;
        justify-content: center;
    }
    
    /* Afficher le sélecteur de client dans le menu mobile */
    header nav #navLinksConnected .mc-client-switcher-mobile {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(90,95,202,.2);
        border-bottom: 1px solid rgba(90,95,202,.2);
        margin: 1rem 0;
        order: -1;
    }
    
    header nav #navLinksConnected .mc-client-switcher-mobile .mc-client-select {
        width: 100%;
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    header nav #navLinksConnected .mc-client-switcher-mobile .mc-client-actions {
        justify-content: center;
        gap: 0.5rem;
    }
    
    header nav #navLinksConnected #navUserMenu {
        position: static !important;
        display: block !important;
        margin-top: 0.5rem;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        border: 1px solid rgba(90,95,202,.2);
    }
    
    header nav #navLinksConnected #navUserMenu > div {
        grid-template-columns: 1fr !important;
    }
    
    header nav #navLinksConnected #navUserMenu > div > div {
        border-right: none !important;
        border-bottom: 1px solid rgba(90,95,202,.15);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    header nav #navLinksConnected #navUserMenu > div > div:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    header nav #navLinksConnected #navUserMenu a {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Améliorer la visibilité du texte sur mobile - fond blanc nécessite texte foncé */
    header nav #navLinksConnected a {
        color: #2d2d41 !important;
        font-weight: 500;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background-color 0.2s;
        background-color: transparent !important;
    }
    
    header nav #navLinksConnected a:hover,
    header nav #navLinksConnected a:focus {
        background-color: rgba(90, 95, 202, 0.08) !important;
        color: #5a5fca !important;
    }
    
    header nav #navLinksConnected button,
    header nav #navLinksConnected button#navUserBtn {
        color: #2d2d41 !important;
        background-color: rgba(90, 95, 202, 0.1) !important;
        border: 1px solid rgba(90, 95, 202, 0.2) !important;
    }
    
    header nav #navLinksConnected button:hover,
    header nav #navLinksConnected button#navUserBtn:hover {
        background-color: rgba(90, 95, 202, 0.2) !important;
        color: #5a5fca !important;
    }
    
    /* Style pour les boutons de menu dropdown sur mobile */
    header nav #navLinksConnected #outilsMenuBtn,
    header nav #navLinksConnected #rapportsMenuBtn {
        color: #2d2d41 !important;
        font-weight: 600;
        padding: 0.75rem 1rem;
        background-color: transparent !important;
        border: none !important;
    }
    
    header nav #navLinksConnected #outilsMenuBtn:hover,
    header nav #navLinksConnected #rapportsMenuBtn:hover {
        background-color: rgba(90, 95, 202, 0.08) !important;
        color: #5a5fca !important;
    }
    
    /* Dropdown panels sur mobile - fond blanc avec texte foncé */
    header nav #navLinksConnected .dropdown-panel {
        background: transparent !important;
        position: static !important;
        display: none;
        margin-top: 0.5rem;
        margin-left: 0;
    }
    
    header nav #navLinksConnected .dropdown-panel > div {
        background: #f9fafb !important;
        border: 1px solid rgba(90, 95, 202, 0.2) !important;
        border-radius: 8px;
        box-shadow: none !important;
    }
    
    header nav #navLinksConnected .dropdown-panel a {
        color: #2d2d41 !important;
    }

    /* Dropdowns empilés en mobile */
    header nav .mc-dropdown-panel {
        position: static !important;
        display: none;
        margin-top: 0;
        padding-top: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: 1px solid rgba(90,95,202,.2);
        border-radius: 10px;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    header nav .mc-dropdown-inner {
        min-width: auto;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0.35rem 0;
    }

    header nav .mc-dropdown-panel.show {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DESKTOP - Dropdowns et menus ===== */
@media (min-width: 901px) {
    .dropdown-menu {
        position: relative;
    }
    .dropdown-panel {
        pointer-events: auto;
    }
    /* S'assurer que le menu utilisateur fonctionne correctement sur desktop */
    .mc-user-menu {
        position: absolute !important;
        display: none;
        z-index: 10001 !important;
    }
    .mc-user-menu-wrapper {
        position: relative !important;
    }
    
    /* Masquer le sélecteur mobile sur desktop */
    .mc-client-switcher-mobile {
        display: none !important;
    }
}

/* ===== TABLETTE - Masquer sélecteur mobile ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .mc-client-switcher-mobile {
        display: none !important;
    }
}
/* ============================================
   STYLES RESPONSIVE PAR TAILLE D'ÉCRAN
   ============================================ */

/* ===== DESKTOP (> 1024px) ===== */
@media (min-width: 1025px) {
    .mc-header {
        padding: 1.5rem 0;
    }
    
    .mc-nav {
        gap: 2rem;
        flex-wrap: nowrap;
        padding: 0 2rem;
    }
    
    .mc-logo-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        flex: 0 1 auto;
    }
    
    .mc-logo {
        font-size: 1.75rem;
    }
    
    .mc-logo img {
        height: 2.5rem;
    }
    
    .mc-logo span:first-child {
        font-size: 1.75rem;
    }
    
    .mc-logo span:last-child {
        font-size: 0.75rem;
    }
    
    .mc-client-switcher {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        min-width: 200px;
    }
    
    .mc-client-select {
        min-width: 200px;
        max-width: 280px;
        font-size: 0.875rem;
    }
    
    .mc-nav-links {
        gap: 1.5rem;
    }
    
    .mc-nav-link {
        font-size: 0.95rem;
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }
    
    .mc-nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .mc-user-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .mc-user-menu {
        min-width: 500px;
        max-width: 600px;
    }
    
    .mc-burger,
    #burgerConnected,
    .burger-btn-connected {
        display: none !important;
    }
}

/* ===== TABLETTE (901px - 1024px) ===== */
@media (min-width: 901px) and (max-width: 1024px) {
    .mc-header {
        padding: 1.25rem 0;
    }
    
    .mc-nav {
        flex-wrap: nowrap;
        gap: 1.5rem;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
    }
    
    /* Logo et sélecteur empilés verticalement */
    .mc-logo-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        flex: 0 0 auto;
        min-width: 0;
        max-width: 240px;
    }
    
    .mc-logo {
        font-size: 1.5rem;
        flex-shrink: 0;
        width: 100%;
    }
    
    .mc-logo img {
        height: 2rem !important;
    }
    
    .mc-logo span:first-child {
        font-size: 1.5rem;
    }
    
    .mc-logo span:last-child {
        font-size: 0.65rem;
    }
    
    .mc-client-switcher {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        min-width: 0;
    }
    
    .mc-client-select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: 0.8rem;
        padding: 0.45rem 2rem 0.45rem 0.65rem;
    }
    
    .mc-client-actions {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    /* Menu et bouton utilisateur à droite, alignés verticalement au milieu */
    #navLinksConnected {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        margin-left: auto;
        flex: 0 0 auto;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        flex-direction: row !important;
    }
    
    .mc-nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .mc-nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .mc-user-menu-wrapper {
        display: flex;
        align-items: center;
    }
    
    .mc-user-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .mc-user-menu {
        min-width: 420px;
        max-width: 480px;
        position: absolute !important;
    }
    
    .mc-burger,
    #burgerConnected,
    .burger-btn-connected {
        display: none !important;
    }
    
    /* Dropdowns restent en position absolue sur tablette */
    .mc-dropdown-panel {
        position: absolute !important;
    }
    
    .dropdown-menu .dropdown-panel {
        position: absolute !important;
    }
    
    /* Le burger reste caché sur tablette (menu desktop visible) */
    .mc-burger,
    #burgerConnected,
    .burger-btn-connected {
        display: none !important;
    }
    
    /* Masquer le sélecteur mobile sur tablette */
    .mc-client-switcher-mobile {
        display: none !important;
    }
}

/* ===== MOBILE PETIT ÉCRAN (< 768px) - Ajustements spécifiques ===== */
@media (max-width: 767px) {
    .mc-header {
        padding: 1rem 0;
    }
    
    .mc-nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    /* Logo et burger sur une ligne */
    .mc-logo-wrapper {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
        justify-content: space-between;
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .mc-logo {
        font-size: 1.25rem;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .mc-logo img {
        height: 1.75rem !important;
        flex-shrink: 0;
    }
    
    .mc-logo span:first-child {
        font-size: 1.25rem;
    }
    
    .mc-logo span:last-child {
        font-size: 0.6rem;
    }
    
    /* Sélecteur de client masqué en mobile (visible dans le menu burger) */
    .mc-logo-wrapper .mc-client-switcher {
        display: none !important;
    }
    
    /* Bouton burger visible */
    .mc-burger,
    #burgerConnected,
    .burger-btn-connected {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2;
        flex-shrink: 0;
        position: relative;
        z-index: 10000;
        pointer-events: auto !important;
        cursor: pointer !important;
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
    }
    
    /* Menu mobile en overlay */
    .mc-nav-links {
        order: 3;
        width: 100%;
    }
    
    .mc-nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .mc-nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .dropdown-menu .dropdown-panel {
        position: static !important;
        display: block !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid rgba(90,95,202,.2) !important;
    }
    
    .mc-user-menu {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
    
    .mc-user-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Styles pour le sélecteur de clients */
.mc-client-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex-shrink: 1;
    min-width: 0;
}

/* Masquer le sélecteur mobile par défaut (visible uniquement dans le menu mobile) */
.mc-client-switcher-mobile {
    display: none;
}

.mc-client-select {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
    max-width: 250px;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    flex-shrink: 1;
    box-sizing: border-box;
}

/* Style des options du sélecteur */
.mc-client-select option {
    background: #2d2d41;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Option placeholder (première option) */
.mc-client-select option[value=""] {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-weight: 400;
}

/* Option "Voir tous les sites" */
.mc-client-select option[value="__view_all_sites__"] {
    background: rgba(90, 95, 202, 0.2);
    color: #ffffff;
    font-weight: 600;
}

/* Options de clients normales */
.mc-client-select option:not([value=""]):not([value="__view_all_sites__"]) {
    background: #2d2d41;
    color: #ffffff;
    padding: 0.75rem 1rem;
}

/* Option sélectionnée */
.mc-client-select option:checked {
    background: rgba(90, 95, 202, 0.3) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Focus sur le select */
.mc-client-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(90, 95, 202, 0.2);
}

/* Amélioration visuelle pour le dropdown (WebKit/Blink) */
.mc-client-select::-webkit-scrollbar {
    width: 8px;
}

.mc-client-select::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.mc-client-select::-webkit-scrollbar-thumb {
    background: rgba(90, 95, 202, 0.5);
    border-radius: 4px;
}

.mc-client-select::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 95, 202, 0.7);
}

.mc-client-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.3);
}

.mc-client-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(90, 95, 202, 0.2);
}

.mc-client-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.mc-client-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.mc-client-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    filter: brightness(0) invert(1) brightness(1.1);
}

.mc-client-link:active {
    color: #ffffff !important;
    filter: brightness(0) invert(1) brightness(0.9);
}

/* Menu déroulant pour les actions client */
.mc-client-dropdown {
    position: relative;
}

.mc-client-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(90, 95, 202, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, display 0s 0.2s;
    pointer-events: none;
}

.mc-client-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.mc-client-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #2d2d41;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.mc-client-dropdown-item:hover {
    background: rgba(90, 95, 202, 0.08);
    color: #5a5fca;
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .mc-client-dropdown-menu {
        right: auto;
        left: 0;
    }
}

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

/* ============================================
   MENU-CONNECTED.BLADE.PHP
   STYLES POUR MENU-CONNECTED.BLADE.PHP
   ============================================ */

.burger-btn-connected {
    display: none;
}
@media (max-width: 900px){
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    header nav{ position: relative; }
    .burger-btn-connected {
        display: block !important;
        z-index: 1001;
    }
    header nav #burgerConnected.active{ 
        background: #5a5fca;
        color: #fff;
        border-color: #5a5fca;
    }
    header nav #navLinksConnected{ 
        display: none; 
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        
        border: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        transform: translateX(100%);
        opacity: 0;
        box-sizing: border-box;
    }
    /* Sur mobile, mettre le bouton Aide en premier (en haut du menu, à gauche visuellement) */
    @media (max-width: 900px) {
        header nav #navLinksConnected .mobile-menu-help-first {
            order: -1 !important;
        }
    }
    header nav #navLinksConnected.open{ 
        display: flex;
        transform: translateX(0);
        opacity: 1;
    }
    header nav #navLinksConnected a,
    header nav #navLinksConnected button,
    header nav #navLinksConnected > div{
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    header nav #navLinksConnected button{
        text-align: center;
        justify-content: center;
    }
    header nav #navLinksConnected #navUserMenu{
        position: static !important;
        display: block !important;
        margin-top: 0.5rem;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        border: 1px solid rgba(90,95,202,.2);
    }
    header nav #navLinksConnected #navUserMenu > div{
        grid-template-columns: 1fr !important;
    }
    header nav #navLinksConnected #navUserMenu > div > div{
        border-right: none !important;
        border-bottom: 1px solid rgba(90,95,202,.15);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    header nav #navLinksConnected #navUserMenu > div > div:last-child{
        border-bottom: none;
        margin-bottom: 0;
    }
    header nav #navLinksConnected #navUserMenu a{
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Améliorer la visibilité du texte sur mobile - fond blanc nécessite texte foncé */
    header nav #navLinksConnected a {
        color: #2d2d41 !important;
        font-weight: 500;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background-color 0.2s;
        background-color: transparent !important;
    }
    
    header nav #navLinksConnected a:hover,
    header nav #navLinksConnected a:focus {
        background-color: rgba(90, 95, 202, 0.08) !important;
        color: #5a5fca !important;
    }
    
    header nav #navLinksConnected button,
    header nav #navLinksConnected button#navUserBtn {
        color: #2d2d41 !important;
        background-color: rgba(90, 95, 202, 0.1) !important;
        border: 1px solid rgba(90, 95, 202, 0.2) !important;
    }
    
    header nav #navLinksConnected button:hover,
    header nav #navLinksConnected button#navUserBtn:hover {
        background-color: rgba(90, 95, 202, 0.2) !important;
        color: #5a5fca !important;
    }
    
    /* Style pour les boutons de menu dropdown sur mobile */
    header nav #navLinksConnected #outilsMenuBtn,
    header nav #navLinksConnected #rapportsMenuBtn {
        color: #2d2d41 !important;
        font-weight: 600;
        padding: 0.75rem 1rem;
        background-color: transparent !important;
        border: none !important;
    }
    
    header nav #navLinksConnected #outilsMenuBtn:hover,
    header nav #navLinksConnected #rapportsMenuBtn:hover {
        background-color: rgba(90, 95, 202, 0.08) !important;
        color: #5a5fca !important;
    }
    
    /* Dropdown panels sur mobile - fond blanc avec texte foncé */
    header nav #navLinksConnected .dropdown-panel {
        background: transparent !important;
        position: static !important;
        display: none;
        margin-top: 0.5rem;
        margin-left: 0;
    }
    
    header nav #navLinksConnected .dropdown-panel > div {
        background: #f9fafb !important;
        border: 1px solid rgba(90, 95, 202, 0.2) !important;
        border-radius: 8px;
        box-shadow: none !important;
    }
    
    header nav #navLinksConnected .dropdown-panel a {
        color: #2d2d41 !important;
    }
}

/* Styles pour les dropdowns Outils et Rapports */
@media (min-width: 901px) {
    .dropdown-menu {
        position: relative;
    }
    .dropdown-panel {
        pointer-events: auto;
    }
}
@media (max-width: 900px) {
    .dropdown-menu .dropdown-panel {
        position: static !important;
        display: block !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid rgba(90,95,202,.2) !important;
    }
}

/* ============================================
   MENU-CONNECTED-NEW.BLADE.PHP
   STYLES POUR MENU-CONNECTED-NEW.BLADE.PHP
   ============================================ */

.mc-header {
    background-color: #160c1f;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.mc-nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.mc-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #5a5fca;
    text-decoration: none;
}
.mc-logo:hover {
    color: #4549a8;
}
.mc-nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.mc-nav-link {
    color: #2d2d41;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}
.mc-nav-link:hover {
    color: #5a5fca;
}
.mc-nav-link-dropdown {
    position: relative;
}
.mc-nav-caret {
    font-size: 0.75rem;
}
.mc-dropdown {
    position: relative;
}
.mc-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 0.5rem;
    background: transparent;
    z-index: 10000;
}
.mc-dropdown-inner {
    background: #ffffff;
    border: 1px solid rgba(90, 95, 202, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.mc-dropdown-inner-wide {
    min-width: 280px;
    max-height: 600px;
    overflow-y: auto;
}
.mc-dropdown-link {
    display:flex;
    align-items:center;
    gap:0.75rem;
    padding:0.65rem 1rem;
    color:#2d2d41;
    text-decoration:none;
    transition:all 0.2s;
}
.mc-dropdown-link:hover {
    background:rgba(90, 95, 202,.08);
    color:#5a5fca;
}
.mc-dropdown-link-with-badge {
    position: relative;
}
.mc-dropdown-label {
    flex:1;
    font-weight:500;
}
.mc-dropdown-section {
    padding: 0.25rem 0;
}
.mc-dropdown-section-title {
    padding:0.4rem 1rem;
    color:#9ca3af;
    font-size:0.7rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.5px;
}
.mc-dropdown-divider {
    height:1px;
    background:rgba(90,95,202,.15);
    margin:0.5rem 0;
}
.mc-badge-circle {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.25rem;
}
.mc-badge-circle-large {
    width: 20px;
    height: 20px;
}
.mc-help-link {
    color: #2d2d41;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.mc-help-link:hover {
    color:#5a5fca;
}
.mc-user-menu-wrapper {
    position: relative;
}
.mc-user-btn {
    padding: 0.5rem 1rem;
    background: #5a5fca;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(90, 95, 202, 0.2);
    transition: all 0.2s;
}
.mc-user-btn:hover {
    background:#4a4fb8;
    transform: translateY(-1px);
}
.mc-user-counter-badge {
    background: rgba(255,255,255,.15);
    padding:.15rem .4rem;
    border-radius:8px;
    font-size:.72rem;
}
.mc-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(90, 95, 202, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 480px;
    max-width: 550px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    overflow: hidden;
}
.mc-user-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}
.mc-user-menu-col-left {
    border-right: 1px solid rgba(90,95,202,.15);
}
.mc-user-menu-section {
    padding: 0.5rem 0;
}
.mc-user-menu-section-flex {
    padding: 0.5rem 0;
    flex: 1;
}
.mc-tag-pill {
    background:rgba(90, 95, 202,.1);
    color:#5a5fca;
    padding:0.15rem 0.5rem;
    border-radius:12px;
    font-size:0.7rem;
    font-weight:600;
}
.mc-user-menu-footer {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(90,95,202,.2);
}
.mc-user-btn-danger,
.mc-user-btn-primary {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0.5rem;
    padding:0.75rem 1rem;
    margin:0 0.5rem 0.5rem;
    text-decoration:none;
    font-weight:600;
    border-radius:8px;
    transition:all 0.2s;
}
.mc-user-btn-danger {
    background:#ef4444;
    color:white;
}
.mc-user-btn-danger:hover {
    background:#dc2626;
    transform:translateY(-1px);
}
.mc-user-btn-danger-inline {
    margin:0;
    box-shadow:0 4px 15px rgba(239, 68, 68, 0.3);
}
.mc-user-btn-danger-inline:hover {
    box-shadow:0 8px 25px rgba(239, 68, 68, 0.4);
}
.mc-user-btn-primary {
    background:#5a5fca;
    color:white;
}
.mc-user-btn-primary:hover {
    background:#4a4fb8;
    transform:translateY(-1px);
}
.burger-btn-connected {
    display: none;
}
.mc-burger {
    background:#fff;
    border:1px solid #e5e7eb;
    padding:.5rem .75rem;
    border-radius:8px;
    color:#5a5fca;
    cursor:pointer;
    font-size:1.5rem;
    line-height:1;
    transition:all 0.3s;
    z-index:1001;
}
.mc-burger:hover {
    border-color:#5a5fca;
    color:#4549a8;
}
@media (max-width: 900px){
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    header nav{ position: relative; }
    .burger-btn-connected {
        display: block !important;
        z-index: 1001;
    }
    header nav #burgerConnected.active{ 
        background: #5a5fca;
        color: #fff;
        border-color: #5a5fca;
    }
    header nav #navLinksConnected{ 
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        border: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        box-sizing: border-box;
        pointer-events: none;
    }
    header nav #navLinksConnected .mobile-menu-help-first {
        order: -1 !important;
    }
    header nav #navLinksConnected.open{ 
        display: flex;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    header nav #navLinksConnected a,
    header nav #navLinksConnected button,
    header nav #navLinksConnected > div{
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    header nav #navLinksConnected button{
        text-align: center;
        justify-content: center;
    }
    header nav #navLinksConnected #navUserMenu{
        position: static !important;
        display: block !important;
        margin-top: 0.5rem;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        border: 1px solid rgba(90,95,202,.2);
    }
    header nav #navLinksConnected #navUserMenu > div{
        grid-template-columns: 1fr !important;
    }
    header nav #navLinksConnected #navUserMenu > div > div{
        border-right: none !important;
        border-bottom: 1px solid rgba(90,95,202,.15);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    header nav #navLinksConnected #navUserMenu > div > div:last-child{
        border-bottom: none;
        margin-bottom: 0;
    }
    header nav #navLinksConnected #navUserMenu a{
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Styles pour les dropdowns */
@media (min-width: 901px) {
    .dropdown-menu {
        position: relative;
    }
    .dropdown-panel {
        pointer-events: auto;
    }
}
@media (max-width: 900px) {
    .dropdown-menu .dropdown-panel {
        position: static !important;
        display: block !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid rgba(90,95,202,.2) !important;
    }
}

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

/* ============================================
   MENU-PUBLIC-SIMPLE.BLADE.PHP
   STYLES POUR MENU-PUBLIC-SIMPLE.BLADE.PHP
   ============================================ */

/* Mega-menu hover */
    @media (min-width: 901px) {
        .mega-simple:hover .mega-panel-simple,
        .mega-simple:focus-within .mega-panel-simple {
            display: block;
        }
        
        .mega-trigger:hover {
            color: var(--color-primary);
        }
    }
    
    /* Mobile */
    @media (max-width: 900px) {
        .burger-btn-simple {
            display: block !important;
        }
        
        .nav-links-simple {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            background: var(--color-bg);
            flex-direction: column;
            gap: var(--spacing-md);
            padding: 5rem var(--spacing-lg) var(--spacing-xl);
            z-index: 1000;
            overflow-y: auto;
            transform: translateX(100%);
            transition: transform var(--transition-normal);
        }
        
        .nav-links-simple.open {
            display: flex;
            transform: translateX(0);
        }
        
        .nav-links-simple a,
        .nav-links-simple button {
            width: 100%;
            text-align: left;
            padding: var(--spacing-md);
            border-radius: var(--radius-md);
            border: 1px solid var(--color-border-light);
        }
        
        .mega-panel-simple {
            position: static !important;
            display: block !important;
            width: 100% !important;
            margin-top: var(--spacing-sm) !important;
            transform: none !important;
            box-shadow: none !important;
        }
    }

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

/* ============================================
   MENU-PUBLIC.BLADE.PHP
   STYLES POUR MENU-PUBLIC.BLADE.PHP
   MENU PUBLIC - Styles optimisés avec variables CSS
   ============================================ */

.menu-public-header {
    background: linear-gradient(135deg, #2d2d41 0%, #1a1a2e 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(90, 95, 202, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-public-header:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.06);
}

.menu-public-nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-public-logo {
    font-size: var(--font-size-xl, 1.75rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-primary, #5a5fca);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding: 0.25rem 0;
}

.menu-public-logo img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(90, 95, 202, 0.2));
}

.menu-public-logo:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(90, 95, 202, 0.3));
}

.menu-public-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5a5fca 0%, #F37E05 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-public-logo:hover,
.menu-public-logo:focus {
    color: var(--color-primary-dark, #4549a8);
    transform: translateY(-1px);
}

.menu-public-logo:hover::after,
.menu-public-logo:focus::after {
    width: 100%;
}

.menu-public-logo:hover span:first-child,
.menu-public-logo:focus span:first-child {
    background: linear-gradient(135deg, #5a5fca 0%, #F37E05 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

    .menu-public-burger {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(90, 95, 202, 0.2);
    padding: 0.625rem 1.125rem;
    border-radius: 12px;
    color: var(--color-primary, #5a5fca);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.1);
    pointer-events: auto;
    z-index: 1001;
    position: relative;
}

.menu-public-burger:hover,
.menu-public-burger:focus {
    border-color: var(--color-primary, #5a5fca);
    color: #ffffff;
    background: linear-gradient(135deg, #5a5fca 0%, #F37E05 100%);
    box-shadow: 0 4px 12px rgba(90, 95, 202, 0.3);
    transform: translateY(-2px);
}

.menu-public-burger.active {
    background: linear-gradient(135deg, #5a5fca 0%, #F37E05 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(90, 95, 202, 0.4);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mega-menu {
    position: relative;
}

.mega-trigger {
    background: none;
    border: none;
    color: var(--color-text, #2C2C2C);
    text-decoration: none;
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-sm, 0.95rem);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 0.25rem);
    cursor: pointer;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mega-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(90, 95, 202, 0.1) 0%, rgba(243, 126, 5, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-trigger:hover,
.mega-trigger:focus {
    color: var(--color-primary, #5a5fca);
    outline: none;
    transform: translateY(-1px);
}

.mega-trigger:hover::before,
.mega-trigger:focus::before {
    opacity: 1;
}

.mega-trigger[aria-expanded="true"] {
    color: var(--color-primary, #5a5fca);
    background: rgba(90, 95, 202, 0.08);
}

.mega-trigger[aria-expanded="true"]::before {
    opacity: 1;
}

.mega-arrow {
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.mega-trigger:hover .mega-arrow,
.mega-trigger:focus .mega-arrow {
    transform: translateY(2px);
}

.mega-trigger[aria-expanded="true"] .mega-arrow {
    transform: rotate(180deg) translateY(-2px);
}

.mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    width: 720px;
    max-width: calc(100vw - var(--spacing-lg, 3rem) * 2);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(90, 95, 202, 0.2);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.14),
                0 12px 32px rgba(90, 95, 202, 0.1),
                0 4px 16px rgba(243, 126, 5, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    border-radius: 20px;
    padding: 2rem;
    z-index: 1000;
    margin-top: calc(-1 * 0.5rem);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

/* Zone invisible pour faciliter le clic vers le panel */
.mega-menu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    max-width: calc(100vw - var(--spacing-lg, 3rem) * 2);
    height: var(--spacing-sm, 1rem);
    z-index: 999;
    display: none;
}

.mega-menu:hover::before,
.mega-menu:focus-within::before {
    display: block;
}

.mega-menu:hover .mega-panel,
.mega-menu:focus-within .mega-panel,
.mega-trigger[aria-expanded="true"] + .mega-panel {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-title {
    font-weight: 800;
    background: linear-gradient(135deg, #5a5fca 0%, #F37E05 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(90, 95, 202, 0.15);
    position: relative;
}

.mega-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #5a5fca 0%, #F37E05 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-column:hover .mega-title::after {
    width: 100%;
}

.mega-link {
    display: block;
    color: var(--color-text, #2C2C2C);
    text-decoration: none;
    margin: 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mega-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(135deg, #5a5fca 0%, #F37E05 100%);
    border-radius: 0 2px 2px 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(90, 95, 202, 0.1) 0%, rgba(243, 126, 5, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.mega-link:hover,
.mega-link:focus {
    color: var(--color-primary, #5a5fca);
    font-weight: 600;
    padding-left: 1.25rem;
    transform: translateX(4px);
}

.mega-link:hover::before,
.mega-link:focus::before {
    transform: translateY(-50%) scaleX(1);
}

.mega-link:hover::after,
.mega-link:focus::after {
    opacity: 1;
}

.nav-link {
    color: var(--color-text, #2C2C2C);
    text-decoration: none;
    font-weight: var(--font-weight-medium, 500);
    font-size: var(--font-size-sm, 0.95rem);
    padding: 0.625rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(90, 95, 202, 0.08);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-primary, #5a5fca);
    transform: translateY(-1px);
}

.nav-link:hover::before,
.nav-link:focus::before {
    opacity: 1;
}

.nav-cta {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #5a5fca 0%, #F37E05 100%);
    background-size: 200% auto;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: var(--font-weight-semibold, 600);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(90, 95, 202, 0.3),
                0 2px 8px rgba(243, 126, 5, 0.2);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.nav-cta * {
    color: #ffffff !important;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-cta:hover,
.nav-cta:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(90, 95, 202, 0.4),
                0 4px 12px rgba(243, 126, 5, 0.3);
    background-position: 100% center;
}

.nav-cta:hover::before,
.nav-cta:focus::before {
    left: 100%;
}

.nav-cta:active {
    transform: translateY(0) scale(0.98);
}

.construction-banner {
    background: var(--color-warning-bg, #fef3c7);
    border-bottom: 1px solid var(--color-warning-border, #f59e0b);
    color: var(--color-warning, #92400e);
    text-align: center;
    padding: var(--spacing-xs, 0.5rem) var(--spacing-md, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    position: sticky;
    top: 0;
    z-index: 999;
}

.construction-link {
    color: var(--color-primary, #5a5fca);
    text-decoration: none;
    margin-left: var(--spacing-xs, 0.5rem);
    font-weight: var(--font-weight-semibold, 600);
}

.construction-link:hover,
.construction-link:focus {
    text-decoration: underline;
    outline: 2px solid var(--color-primary-light, #e8e9f5);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 900px) {
    .menu-public-logo {
        font-size: 1.5rem;
        flex: 1;
        min-width: 0;
        margin-right: 1rem;
    }
    .menu-public-logo img {
        height: 2.5rem !important;
        flex-shrink: 0;
    }
    .menu-public-logo span:first-child {
        font-size: 1.25rem;
    }
    .menu-public-logo span:last-child {
        font-size: 0.6rem;
    }
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .menu-public-nav {
        position: relative;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        padding: 0 var(--spacing-md, 1.5rem) !important;
    }
    
    .menu-public-logo {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 70px);
        margin-right: 1rem;
    }
    
    .menu-public-logo > div {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-public-logo span:first-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-public-burger {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        padding: 0.5rem 0.875rem !important;
        border-radius: 10px !important;
        font-size: 1.25rem !important;
    }
    
    /* Styles pour menu-public-simple */
    .header-simple .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        padding: 0 var(--spacing-md, 1.5rem) !important;
    }
    
    .header-simple .nav-container > a {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 70px);
        margin-right: 1rem;
    }
    
    .header-simple .nav-container > a img {
        height: 2.5rem !important;
    }
    
    .header-simple .nav-container .burger-btn-simple {
        display: block !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        order: 2 !important;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        background: var(--color-bg, #ffffff);
        border: none;
        box-shadow: var(--shadow-lg, 0 4px 12px rgba(0, 0, 0, 0.1));
        padding: 5rem var(--spacing-md, 1.5rem) var(--spacing-xl, 2rem);
        flex-direction: column;
        gap: var(--spacing-md, 1rem);
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        transition: transform var(--transition-normal, 0.3s) ease-in-out, 
                    opacity var(--transition-normal, 0.3s) ease-in-out;
        transform: translateX(100%);
        opacity: 0;
        box-sizing: border-box;
    }
    
    .nav-links.open {
        display: flex;
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-links .mega-trigger,
    .nav-links .nav-link {
        width: 100%;
        max-width: 100%;
        padding: var(--spacing-sm, 0.75rem) var(--spacing-md, 1rem);
        border-radius: var(--radius-md, 8px);
        border: 1px solid var(--color-border-light, #e5e7eb);
        background: var(--color-bg-secondary, #FAF8F5);
        text-align: center;
        font-size: var(--font-size-base, 1rem);
        font-weight: var(--font-weight-semibold, 600);
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .nav-links .nav-cta {
        width: 100%;
        max-width: 100%;
        padding: var(--spacing-sm, 0.75rem) var(--spacing-md, 1rem);
        border-radius: var(--radius-md, 8px);
        border: 2px solid #5a5fca;
        background: linear-gradient(135deg, #5a5fca 0%, #F37E05 100%) !important;
        color: #ffffff !important;
        text-align: center;
        font-size: var(--font-size-base, 1rem);
        font-weight: var(--font-weight-semibold, 600);
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-shadow: 0 4px 12px rgba(90, 95, 202, 0.3);
    }
    
    .nav-links .nav-cta:hover,
    .nav-links .nav-cta:focus {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(90, 95, 202, 0.4);
    }
    
    .mega-menu {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mega-panel {
        position: static !important;
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        padding: var(--spacing-xs, 0.5rem) 0 0 var(--spacing-md, 1rem) !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin-top: var(--spacing-xs, 0.5rem) !important;
    }
    
    .mega-grid,
    .mega-grid-2 {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xs, 0.5rem);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mega-link {
        padding: var(--spacing-xs, 0.5rem);
        border: none;
        background: transparent;
        text-align: left;
        font-size: var(--font-size-sm, 0.9rem);
        font-weight: var(--font-weight-medium, 500);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Contextuel mobile : panels repliés par défaut, ouverture contrôlée */
    .mega-panel {
        display: none !important;
    }

    .mega-trigger[aria-expanded="true"] + .mega-panel {
        display: block !important;
    }
}

/* ============================================
   DASHBOARD - Styles spécifiques au dashboard
   ============================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    color: #2d2d41;
}

.container {
    max-width: 100%;
    min-width: 320px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-header {
    margin-bottom: 2rem;
    min-width: 320px;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #5a5fca;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(-45deg, #5a5fca 0px, #5a5fca 15px, #ffffff 15px, #ffffff 20px, #6B4C93 20px, #6B4C93 35px, #ffffff 35px, #ffffff 40px);
    border-radius: 16px 16px 0 0;
    opacity: 0.85;
    z-index: 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 12px;
    background: #fff;
    z-index: 0;
}

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

.stat-card-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 900;
    color: #5a5fca;
}

.stat-card-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #5a5fca;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
}

.action-btn:hover {
    background: #5a5fca;
    color: white;
    border-color: #5a5fca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.primary {
    background: #F37E05;
    color: white;
    border-color: #F37E05;
}

.action-btn.primary:hover {
    background: #d46904;
    box-shadow: 0 4px 12px rgba(243, 126, 5, 0.3);
}

.reports-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.08);
    border: 1px solid rgba(90, 95, 202, 0.1);
}

.reports-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d41;
    margin-bottom: 1.5rem;
}

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

.report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid rgba(90, 95, 202, 0.1);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.report-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(-45deg, #5a5fca 0px, #5a5fca 15px, #ffffff 15px, #ffffff 20px, #6B4C93 20px, #6B4C93 35px, #ffffff 35px, #ffffff 40px);
    border-radius: 12px 12px 0 0;
    opacity: 0.85;
    z-index: 0;
}

.report-item::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 12px;
    background: #f9fafb;
    z-index: 0;
}

.report-item:hover {
    background: #f3f4f6;
    border-color: rgba(90, 95, 202, 0.2);
    transform: translateX(4px);
}

.report-item:hover::after {
    background: #f3f4f6;
}

.report-item-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.report-item-title {
    font-weight: 600;
    color: #2d2d41;
    margin-bottom: 0.25rem;
}

.report-item-meta {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(90, 95, 202, 0.1);
    border: 1px solid rgba(90, 95, 202, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5a5fca;
}

.report-badge.ecommerce {
    background: rgba(243, 126, 5, 0.1);
    border-color: rgba(243, 126, 5, 0.2);
    color: #F37E05;
}

.report-item-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(90, 95, 202, 0.1);
    font-size: 0.875rem;
}

.report-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.report-stat-value {
    font-weight: 700;
    color: #2d2d41;
}

.report-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: rgba(90, 95, 202, 0.1);
    border: 1px solid rgba(90, 95, 202, 0.2);
    border-radius: 8px;
    color: #5a5fca;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #5a5fca;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #5a5fca;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free {
    background: #6b7280;
}

.plan-badge.pro {
    background: #F37E05;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 2.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card-value {
        font-size: 1.75rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .action-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .reports-section {
        padding: 1.5rem;
    }

    .reports-section h2 {
        font-size: 1.35rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-bottom: 3rem;
    }

    .dashboard-header {
        margin-bottom: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: clamp(1.75rem, 5vw, 2rem);
        line-height: 1.2;
    }

    .dashboard-header p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card-label {
        font-size: 0.8rem;
    }

    .stat-card-value {
        font-size: 1.75rem;
    }

    .stat-card-subtitle {
        font-size: 0.8rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .action-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        justify-content: flex-start;
    }

    .reports-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .reports-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .reports-list {
        gap: 0.875rem;
    }

    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .report-item-info {
        width: 100%;
    }

    .report-item-title {
        font-size: 1rem;
    }

    .report-item-meta {
        font-size: 0.8rem;
        gap: 0.375rem;
    }

    .report-item-stats {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }

    .report-item-actions {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .btn-small {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }
}

/* Responsive - Petit mobile */
@media (max-width: 480px) {
    .container {
        padding: 0.875rem;
        padding-bottom: 2.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .dashboard-header p {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .reports-section {
        padding: 1rem;
    }

    .report-item {
        padding: 0.875rem;
    }

    .btn-small {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Responsive - Tableaux et formulaires */
@media (max-width: 1024px) {
    table[style*="min-width"] {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    table[style*="min-width"] thead,
    table[style*="min-width"] tbody,
    table[style*="min-width"] tr {
        display: table;
        width: 100%;
    }

    div[style*="min-width: 300px"],
    div[style*="min-width: 200px"] {
        min-width: 100% !important;
    }

    select[style*="min-width: 300px"],
    select[style*="min-width: 200px"] {
        min-width: 100% !important;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Tableaux scrollables */
    table[style*="min-width"] {
        font-size: 0.875rem;
    }

    table[style*="min-width"] th,
    table[style*="min-width"] td {
        padding: 0.75rem 0.5rem !important;
    }

    /* Formulaires */
    form {
        width: 100%;
    }

    div[style*="display: flex"] {
        flex-wrap: wrap;
    }

    div[style*="flex: 1"] {
        flex: 1 1 100%;
        min-width: 100%;
    }

    /* Sections avec flex */
    div[style*="display: flex; align-items: center; justify-content: space-between"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    div[style*="display: flex; gap"] {
        flex-wrap: wrap;
    }

    /* Boutons dans les headers */
    h2 + a,
    h2 + div[style*="display: flex"] {
        width: 100%;
        margin-top: 0.75rem;
    }

    /* Cards et sections */
    .card-white,
    div[style*="background: #ffffff"],
    div[style*="background:#ffffff"] {
        padding: 1rem !important;
    }

    /* Grilles */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    table[style*="min-width"] {
        font-size: 0.8rem;
    }

    table[style*="min-width"] th,
    table[style*="min-width"] td {
        padding: 0.5rem 0.375rem !important;
    }

    button,
    a[style*="padding"] {
        font-size: 0.85rem !important;
    }

    input,
    select,
    textarea {
        font-size: 0.9rem !important;
    }
}

/* Styles pour les onglets */
.tabs-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
}

.tab-btn:hover {
    background: rgba(90, 95, 202, 0.1) !important;
    color: #5a5fca !important;
    border-color: rgba(90, 95, 202, 0.3) !important;
}

.tab-content {
    animation: fadeIn 0.3s ease-in;
}

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

/* Responsive - Onglets */
@media (max-width: 1024px) {
    .tabs-nav {
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .tabs-nav::-webkit-scrollbar {
        height: 4px;
    }

    .tabs-nav::-webkit-scrollbar-thumb {
        background: rgba(90, 95, 202, 0.3);
        border-radius: 2px;
    }

    .tab-btn {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .tabs-nav {
        gap: 0.375rem;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.875rem !important;
        font-size: 0.85rem !important;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .tabs-nav {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Badges de statut et priorité pour les tickets */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}
.status-open { background: #dbeafe; color: #1e40af; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-solved { background: #d1fae5; color: #065f46; }
.status-closed { background: #e5e7eb; color: #374151; }

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}
.priority-P1 { background: #fee2e2; color: #991b1b; }
.priority-P2 { background: #fef3c7; color: #92400e; }
.priority-P3 { background: #dbeafe; color: #1e40af; }

/* Badges pour factures */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}
.badge-draft { background: #e5e7eb; color: #374151; }
.badge-sent { background: #dbeafe; color: #1e40af; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-overdue { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
    

/* ============================================
   DAILY CHARTS - Styles pour les graphiques quotidiens
   ============================================ */

/* À compléter avec les styles spécifiques */

/* ============================================
   ADMIN - Styles pour les pages admin
   ============================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    color: #2d2d41;
}

/* Styles uniformisés pour toutes les pages admin */
.admin-page-header {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.08);
    border: 2px solid rgba(90, 95, 202, 0.1);
    margin-bottom: 2rem;
    min-width: 320px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 100%;
    min-width: 320px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.header {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.08);
    border: 2px solid rgba(90, 95, 202, 0.1);
    margin-bottom: 2rem;
    min-width: 320px;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    color: #5a5fca;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.08);
    border: 2px solid rgba(90, 95, 202, 0.1);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 95, 202, 0.12);
}

.stat-card h3 {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .value {
    color: #5a5fca;
    font-size: 2rem;
    font-weight: 900;
}

.section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.08);
    border: 2px solid rgba(90, 95, 202, 0.1);
    margin-bottom: 2rem;
}

.section h2 {
    color: #5a5fca;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

th {
    background: rgba(90, 95, 202, 0.08);
    color: #5a5fca;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid rgba(90, 95, 202, 0.2);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(90, 95, 202, 0.1);
    color: #2d2d41;
}

tr:hover {
    background: rgba(90, 95, 202, 0.03);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #5a5fca;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #4a4fb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 95, 202, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #5a5fca;
    border: 2px solid rgba(90, 95, 202, 0.3);
}

.btn-secondary:hover {
    background: rgba(90, 95, 202, 0.05);
}

.metadata {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 0.5rem;
    border-radius: 8px;
    max-width: 400px;
    overflow-x: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(90, 95, 202, 0.08);
    border: 2px solid rgba(90, 95, 202, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(-45deg, #5a5fca 0px, #5a5fca 15px, #ffffff 15px, #ffffff 20px, #6B4C93 20px, #6B4C93 35px, #ffffff 35px, #ffffff 40px);
    border-radius: 16px 16px 0 0;
    opacity: 0.85;
    z-index: 0;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 12px;
    background: #fff;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(90, 95, 202, 0.15);
    border-color: rgba(90, 95, 202, 0.3);
}

.feature-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card-title {
    color: #5a5fca;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.feature-card-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(90, 95, 202, 0.1);
}

.feature-card-stat-value {
    color: #5a5fca;
    font-size: 1.5rem;
    font-weight: 900;
}

.feature-card-stat-label {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #5a5fca;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.feature-card-link:hover {
    color: #4a4fb8;
    gap: 0.75rem;
}

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


/* ============================================
   COMPARATEUR MENSUEL - Styles spécifiques
   ============================================ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #2d2d41;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    background: #ffffff;
    
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(90, 95, 202, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(90, 95, 202, 0.2);
}

h1 {
    color: #5a5fca;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-indicator {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(90, 95, 202, 0.1);
    color: #6b7280;
    font-weight: 600;
    border: 1px solid rgba(90, 95, 202, 0.2);
}

.step.active {
    background: #5a5fca;
    color: white;
    border: 1px solid rgba(90, 95, 202, 0.3);
}

.step.completed {
    background: #10b981;
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #F37E05;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(243, 126, 5, 0.35);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 126, 5, 0.45);
    background: #d46904;
}

.btn-logout {
    background: #ef4444;
    margin-left: 1rem;
}

.form-section {
    background: #ffffff;
    
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(90, 95, 202, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(90, 95, 202, 0.2);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d2d41;
    font-weight: 600;
}

input[type="month"], select, input[type="text"], input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(90, 95, 202, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #ffffff;
    color: #2d2d41;
}

input[type="month"]:focus, select:focus, input[type="text"]:focus, input[type="date"]:focus {
    outline: none;
    border-color: #5a5fca;
    box-shadow: 0 0 0 3px rgba(90, 95, 202, 0.1);
}

.results-section {
    display: grid;
    gap: 2rem;
}

.card {
    background: #ffffff;
    
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(90, 95, 202, 0.1);
    overflow-x: auto;
    border: 1px solid rgba(90, 95, 202, 0.2);
}

h2 {
    color: #5a5fca;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Actions filtre 1‑clic (discrètes au survol) */
.filter-quick {
    opacity: 0;
    transition: opacity .2s ease;
}
tr:hover .filter-quick,
.page-info:hover .filter-quick,
td:hover .filter-quick {
    opacity: 1;
}

/* Conteneur pour le scroll horizontal */
.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Conteneur pour le scroll horizontal - appliquer à tous les tableaux */
.card table,
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

/* Wrapper pour le scroll - à ajouter autour des tableaux si nécessaire */
.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Première colonne fixe pour tous les tableaux */
.card table thead th:first-child,
.card table tbody td:first-child,
table thead th:first-child,
table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #ffffff;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    min-width: 200px;
    max-width: 200px;
    white-space: nowrap;
}

.card table thead th:first-child,
table thead th:first-child {
    z-index: 11;
    background: #5a5fca;
}

.page-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 400px;
}

.page-title {
    font-weight: 600;
    color: #2d2d41;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.page-url {
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
    transition: color 0.2s;
}

.page-url:hover {
    color: #5a5fca;
    white-space: normal;
    word-break: break-all;
}

thead {
    background: #5a5fca;
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(90, 95, 202, 0.2);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

tbody tr {
    color: #2d2d41;
}

tbody tr:nth-child(even) {
    background-color: rgba(90, 95, 202, 0.03);
}

tbody tr:hover {
    background-color: rgba(90, 95, 202, 0.1);
}

.month-column {
    text-align: center;
    min-width: 120px;
}

.metric-value {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 1.25rem;
    }
    table {
        min-width: 600px;
    }
    .header {
        padding: 1.25rem;
    }
    .card {
        padding: 1.25rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    .results-section {
        gap: 1rem;
    }
    .page-info {
        max-width: 100%;
    }
    .page-title {
        font-size: 0.9rem;
    }
    .page-url {
        font-size: 0.7rem;
    }
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .pagination-info {
        font-size: 0.85rem;
    }
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.property-card {
    padding: 1rem;
    border: 2px solid rgba(90, 95, 202, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    color: #2d2d41;
}

.property-card:hover {
    border-color: #5a5fca;
    background: rgba(90, 95, 202, 0.05);
}

.property-card.selected {
    border-color: #5a5fca;
    background: rgba(90, 95, 202, 0.1);
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
}

.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sortable::after {
    content: '⇅';
    position: absolute;
    right: 0.5rem;
    opacity: 0.5;
}

.sortable.asc::after {
    content: '↑';
    opacity: 1;
}

.sortable.desc::after {
    content: '-';
    opacity: 1;
}

.top3-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.125rem;
    white-space: nowrap;
}

.top3-gold {
    background: #fbbf24;
    color: white;
}

.top3-silver {
    background: #9ca3af;
    color: white;
}

.top3-bronze {
    background: #f97316;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: rgba(90, 95, 202, 0.2);
    border: 1px solid rgba(90, 95, 202, 0.3);
    border-radius: 8px;
    color: #2d2d41;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(90, 95, 202, 0.4);
    border-color: rgba(90, 95, 202, 0.5);
    transform: translateY(-2px);
}

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

.pagination-btn.active {
    background: #5a5fca;
    border-color: #5a5fca;
    color: white;
}

.pagination-info {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0 1rem;
}

.hidden-row {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .form-row {
        flex-direction: column;
    }

    .step-indicator {
        flex-direction: column;
        align-items: stretch;
    }
}
    

/* ============================================
   COMPONENTS - Composants réutilisables
   ============================================ */

/* À compléter avec les styles spécifiques */
