/* ==========================
   DESIGN GLOBAL – SAVE ASSIST
   Style général moderne & responsive
   ========================== */

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

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #e0f2fe 0, #eef2ff 35%, #f9fafb 75%, #fef9c3 100%);
    color: #111827;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

/* Variables CSS */
:root {
    --primary: #E91E63; /* Magenta du logo */
    --primary-soft: rgba(233, 30, 99, 0.1);
    --primary-dark: #C2185B;
    --secondary: #0ea5e9;
    --accent: #4f46e5; /* Bleu pour complémenter */
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;

    --bg-main: rgba(255, 255, 255, 0.85);
    --bg-elevated: rgba(255, 255, 255, 0.95);
    --border-subtle: rgba(148, 163, 184, 0.3);

    --text-main: #111827;
    --text-muted: #6b7280;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.22);
}

/* Container principal (dans <main class="container">) */
.container {
    max-width: 1140px;
    margin: 4.5rem auto 2.5rem;
    padding: 1.5rem;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 1.25rem;
        margin-top: 4.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 1.25rem;
        margin-top: 4.5rem;
    }
}

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

@media (max-width: 480px) {
    .container {
        padding: 0.875rem;
        margin-top: 3.5rem;
    }
}

/* ==========================
   BARRE DE NAVIGATION
   ========================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(
        135deg,
        rgba(233, 30, 99, 0.98) 0%,
        rgba(233, 30, 99, 0.95) 50%,
        rgba(194, 24, 91, 0.98) 100%
    );
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease;
    height: 50px;
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: translateY(-1px) scale(1.02);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.2s ease;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-logo:hover .logo-image {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.logo-subtitle {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -2px;
}

/* Menu de navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu li a i {
    font-size: 0.95rem;
    width: 1.1rem;
    text-align: center;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-menu li a:hover::before,
.nav-menu li a:focus-visible::before {
    opacity: 1;
}

.nav-menu li a:hover,
.nav-menu li a:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-menu li a.active::before {
    opacity: 0;
}

/* Badge de notification dans le menu */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #ffffff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    margin-left: 0.25rem;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    }
}

.nav-menu li a:hover .nav-badge {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

/* Menu déroulant */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    position: relative;
}

.nav-dropdown > a .dropdown-chevron {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.nav-dropdown.active > a .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    list-style: none;
    margin: 0;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dropdown-menu li a i {
    width: 1.25rem;
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-menu li a.active {
    background: rgba(233, 30, 99, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.dropdown-menu li a .nav-badge {
    margin-left: auto;
}

/* Menu utilisateur */
.nav-user {
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.user-button.active {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: capitalize;
}

.user-chevron {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

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

/* Menu déroulant utilisateur */
.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-menu-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.user-menu-info small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-menu-body {
    padding: 0.5rem;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
}

.user-menu-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
}

.user-menu-item:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    transform: translateX(4px);
}

.user-menu-item.text-danger {
    color: #ef4444;
}

.user-menu-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.user-menu-item.text-danger i {
    color: #ef4444;
}

.user-menu-divider {
    border: none;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    margin: 0.5rem 0;
}

/* Toggle menu mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive navbar */
/* Tablette et écrans moyens (1024px - 1200px) */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0.75rem 1.5rem;
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-menu li a {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .nav-menu li a span {
        display: inline;
    }
    
    .user-button {
        padding: 0.5rem 0.875rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-role {
        font-size: 0.7rem;
    }
}

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.75rem 1.25rem;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 0.2rem;
    }
    
    .nav-menu li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-menu li a i {
        font-size: 0.9rem;
    }
    
    .logo-image {
        max-width: 180px;
        padding: 0.4rem 0.875rem;
    }
    
    .user-info {
        display: none;
    }
    
    .user-button {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
}

/* Mobile (480px - 768px) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }
    
    .nav-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    .nav-logo {
        height: 40px;
        flex-shrink: 0;
        order: 1;
    }
    
    .nav-logo .logo-image {
        height: 40px;
        max-width: 150px;
        padding: 0.4rem 0.75rem;
    }
    
    .nav-user {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(233, 30, 99, 0.98), rgba(194, 24, 91, 0.98));
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        width: 100%;
        padding: 0.875rem 1rem;
        justify-content: flex-start;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .nav-menu li a i {
        width: 1.5rem;
        font-size: 1rem;
    }
    
    /* Menu déroulant sur mobile */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown > a {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 1rem;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
    
    .dropdown-menu li a.active {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    .user-info {
        display: none;
    }
    
    .user-button {
        padding: 0.5rem;
        gap: 0;
    }
    
    .user-avatar {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    
    .user-menu {
        right: 1rem;
        left: auto;
        min-width: 260px;
        max-width: calc(100vw - 2rem);
    }
}

/* Très petit mobile (< 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    
    .nav-logo {
        height: 36px;
    }
    
    .nav-logo .logo-image {
        height: 36px;
        max-width: 120px;
        padding: 0.3rem 0.625rem;
    }
    
    .nav-toggle {
        padding: 0.4rem;
    }
    
    .nav-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .nav-menu {
        top: 60px;
        padding: 0.875rem;
        gap: 0.4rem;
    }
    
    .nav-menu li a {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .nav-menu li a i {
        width: 1.25rem;
        font-size: 0.95rem;
    }
    
    .user-button {
        padding: 0.4rem;
    }
    
    .user-avatar {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .user-menu {
        min-width: calc(100vw - 1.5rem);
        right: 0.75rem;
        left: 0.75rem;
    }
    
    .user-menu-header {
        padding: 1rem;
    }
    
    .user-menu-avatar {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .user-menu-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Orientation paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu li a {
        padding: 0.625rem 1rem;
    }
}

/* Modal de confirmation de déconnexion */
.logout-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logout-confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

.logout-confirm-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.logout-confirm-modal.show .logout-confirm-content {
    transform: scale(1) translateY(0);
}

.logout-confirm-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-confirm-icon i {
    font-size: 2rem;
    color: #ef4444;
}

.logout-confirm-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.logout-confirm-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.logout-confirm-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.logout-confirm-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-main);
}

.btn-cancel:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-1px);
}

.btn-confirm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

@media (max-width: 480px) {
    .logout-confirm-content {
        padding: 1.5rem;
    }
    
    .logout-confirm-buttons {
        flex-direction: column;
    }
    
    .logout-confirm-buttons button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================
   CARTES & BLOC PRINCIPAL
   ========================== */
.card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.13) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.14) 0, transparent 52%);
    opacity: 0.45;
    pointer-events: none;
}

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

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

.card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-title i {
    color: var(--primary);
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Titres de page */
.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-title span {
    color: var(--primary);
}

.page-description {
    margin-top: -0.75rem;
    margin-bottom: 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================
   BOUTONS
   ========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: #f9fafb;
    box-shadow: 0 12px 25px rgba(233, 30, 99, 0.45);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C2185B, #AD1457);
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(194, 24, 91, 0.55);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.btn-outline:hover {
    background: var(--primary-soft);
}

.btn-danger {
    background: linear-gradient(135deg, #f97373, #ef4444);
    color: #fef2f2;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ==========================
   FORMULAIRES
   ========================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-control,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"] {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-main);
    background: rgba(248, 250, 252, 0.92);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.10s ease;
}

textarea {
    border-radius: 1rem;
    min-height: 120px;
    resize: vertical;
}

.form-control:focus,
select:focus,
textarea:focus,
input:focus {
    border-color: rgba(79, 70, 229, 0.75);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.35);
    background: #f9fafb;
    transform: translateY(-0.5px);
}

.form-helper {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.15rem;
}

/* ==========================
   TABLES (listes stagiaires / rendez-vous)
   ========================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

thead {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.95));
    color: #e5e7eb;
}

thead th {
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 0.9rem;
    font-weight: 600;
}

tbody tr {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.98);
}

tbody tr:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.35);
}

td {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: #111827;
}

td .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ==========================
   BADGES & STATUTS
   ========================== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Badges de statut stagiaires */
.badge-statut-rsa {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e3a8a;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-statut-cpf {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-statut-transi-pro {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-statut-france-travail {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-statut-mission-locale {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-statut-plie {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #831843;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-statut-maillon {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0c4a6e;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Badges génériques */
.badge-actif,
.badge-prévu {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-inactif,
.badge-annulé {
    background-color: #fee2e2;
    color: #991b1b;
}

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

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

.badge-info {
    background-color: #e0f2fe;
    color: #075985;
}

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

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

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

.badge-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

/* Badge formation */
.badge-formation {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--primary-dark);
    border: 1px solid rgba(79, 70, 229, 0.2);
    font-weight: 600;
}

/* Badge test effectué */
.test-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    min-width: 120px;
}

.test-effectue {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #065f46;
}

.test-effectue i {
    color: var(--success);
    margin-right: 0.4rem;
}

.test-effectue small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.test-non-effectue {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.test-non-effectue i {
    color: var(--warning);
    margin-right: 0.4rem;
}

/* ==========================
   DASHBOARD – STATISTIQUES
   (reprend et modernise styles existants)
   ========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.35) 0, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.3) 0, transparent 45%);
    opacity: 0.5;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(129, 140, 248, 0.7);
}

.stat-icon {
    position: relative;
    z-index: 1;
    font-size: 1.7rem;
    width: 3.1rem;
    height: 3.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #f9fafb;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.28);
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.stat-danger .stat-icon {
    background: linear-gradient(135deg, #fb7185, #ef4444);
}

.stat-purple .stat-icon {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

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

.stat-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--text-main);
}

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

.stat-trend {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.stat-trend i {
    font-size: 0.8rem;
}

/* ==========================
   NOTIFICATIONS DASHBOARD
   ========================== */
.dashboard-notifications {
    margin-bottom: 2rem;
}

.notification-alert {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 2px solid;
    background: var(--bg-elevated);
    animation: slideInDown 0.4s ease-out;
}

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

.notification-urgent {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
}

.notification-info {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.05));
}

.notification-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.notification-urgent .notification-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-content {
    flex: 1;
}

.notification-content h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.notification-content h3 i {
    color: var(--warning);
}

.notification-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.notification-rdv-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.notification-rdv-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--warning);
    position: relative;
}

.notification-rdv-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--warning), var(--danger));
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.rdv-notif-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.rdv-notif-time i {
    color: var(--primary);
}

.rdv-notif-time strong {
    font-weight: 700;
    color: var(--text-main);
}

.rdv-notif-stagiaire {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.rdv-notif-stagiaire i {
    color: var(--primary);
}

.rdv-notif-motif {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.rdv-notif-motif i {
    color: var(--info);
    margin-top: 0.2rem;
}

.notification-rdv-item .badge {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.notification-more {
    margin-top: 0.5rem;
    text-align: center;
}

.notification-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .notification-alert {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .notification-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .notification-content h3 {
        font-size: 1.1rem;
    }
    
    .notification-actions {
        width: 100%;
    }
    
    .notification-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================
   LISTES – RENDEZ-VOUS & STAGIAIRES
   ========================== */
.dashboard-content {
    display: grid;
    grid-template-columns: 2.1fr 1.6fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Variante pleine largeur pour le tableau du dashboard (page d'accueil) */
.dashboard-content-full {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

.rdv-list,
.stagiaires-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.rdv-item,
.stagiaire-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-md);
    border: 1px solid rgba(209, 213, 219, 0.75);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: background 0.18s ease, transform 0.16s ease, box-shadow 0.2s ease, border-color 0.18s ease;
}

.rdv-item:hover,
.stagiaire-item:hover {
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(129, 140, 248, 0.35);
    border-color: rgba(129, 140, 248, 0.85);
}

/* Sélecteur résultat test dans le dashboard */
.resultat-test-form select {
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.rdv-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #E91E63, #0ea5e9);
    color: #f9fafb;
    border-radius: 1rem;
    padding: 0.45rem 0.55rem;
    min-width: 3.1rem;
    text-align: center;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.45);
}

.rdv-day {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.rdv-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.rdv-details {
    flex: 1;
}

.rdv-details h4 {
    margin-bottom: 0.2rem;
    color: var(--text-main);
    font-weight: 600;
}

.rdv-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.rdv-motif {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
}

.rdv-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

@media (max-width: 640px) {
    .rdv-item,
    .stagiaire-item {
        align-items: flex-start;
    }

    .rdv-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.stagiaire-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #E91E63, #C2185B);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 12px 28px rgba(129, 140, 248, 0.65);
}

.stagiaire-info {
    flex: 1;
}

.stagiaire-info h4 {
    margin-bottom: 0.18rem;
    color: var(--text-main);
    font-weight: 600;
}

.stagiaire-info p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.18rem;
}

.stagiaire-info i {
    margin-right: 0.3rem;
    color: var(--primary);
}

/* ==========================
   ÉTAT VIDE
   ========================== */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 2.8rem;
    margin-bottom: 0.7rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ==========================
   UTILITAIRES
   ========================== */
.text-muted {
    color: var(--text-muted);
}

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

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.pill {
    border-radius: 999px;
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-hover);
}

/* ==========================
   PAGE STAGIAIRES
   ========================== */
.stagiaires-page {
    padding: 0;
}

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

.page-header .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.page-header .page-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .page-actions .btn {
        flex: 1;
    }
}

/* Alertes */
.alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

.alert i {
    font-size: 1rem;
}

.alert-success {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.4);
    color: #14532d;
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
    color: #7f1d1d;
}

/* Filtres stagiaires */
.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-group {
    min-width: 220px;
    flex: 1;
}

@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }
}

/* Quick stats */
.quick-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-stat i {
    font-size: 1.1rem;
    color: var(--primary);
}

.quick-stat.stat-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.05));
    border-color: rgba(22, 163, 74, 0.3);
}

.quick-stat.stat-success i {
    color: var(--success);
}

.quick-stat.stat-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.quick-stat.stat-warning i {
    color: var(--warning);
}

/* Tableau stagiaires */
/* Tableau stagiaires amélioré */
.table-responsive,
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 1000px;
}

.table-responsive thead th {
    white-space: nowrap;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-responsive tbody td {
    padding: 1rem 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
}

.table-responsive tbody tr:hover {
    background: rgba(79, 70, 229, 0.03);
    transition: background 0.2s ease;
}

.table-responsive tbody tr:last-child td {
    border-bottom: none;
}

/* Vue cartes mobile pour stagiaires */
.stagiaires-cards-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.stagiaire-card-mobile {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.stagiaire-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-mobile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.card-mobile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.card-mobile-title {
    flex: 1;
    min-width: 0;
}

.card-mobile-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-mobile-body {
    margin-bottom: 1rem;
}

.card-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.info-item i {
    color: var(--primary);
    width: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.info-item span {
    flex: 1;
    word-break: break-word;
}

.card-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.card-mobile-actions .btn {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    justify-content: center;
}

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

.btn-view {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.btn-view:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

/* Responsive tableau stagiaires */
@media (max-width: 1024px) {
    .table-responsive table {
        min-width: 900px;
    }
    
    .table-responsive thead th {
        padding: 0.75rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .table-responsive tbody td {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .stagiaire-cell {
        gap: 0.5rem;
    }
    
    .stagiaire-avatar {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }
    
    .contact-info {
        gap: 0.3rem;
    }
    
    .contact-info span {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Masquer le tableau sur mobile */
    .table-desktop {
        display: none;
    }
    
    /* Afficher les cartes sur mobile */
    .stagiaires-cards-mobile {
        display: flex;
    }
    
    .stagiaire-card-mobile {
        padding: 1rem;
    }
    
    .card-mobile-header {
        gap: 0.75rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
    }
    
    .card-mobile-avatar {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
    
    .card-mobile-title h3 {
        font-size: 1rem;
    }
    
    .info-item {
        font-size: 0.85rem;
        gap: 0.625rem;
    }
    
    .info-item i {
        width: 1.1rem;
        font-size: 0.9rem;
    }
    
    .info-item .test-badge {
        min-width: auto;
        width: 100%;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .card-mobile-actions {
        flex-direction: column;
    }
    
    .card-mobile-actions .btn {
        width: 100%;
        min-width: 100%;
    }
    
    .card-mobile-actions .btn-sm {
        padding: 0.625rem;
    }
}

@media (max-width: 480px) {
    .stagiaire-card-mobile {
        padding: 0.875rem;
    }
    
    .card-mobile-avatar {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 0.95rem;
    }
    
    .card-mobile-title h3 {
        font-size: 0.95rem;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Section title dans les modals */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-subtle);
}

.section-title:first-child {
    margin-top: 0;
}

.section-title i {
    color: var(--primary);
    font-size: 1rem;
}

/* Warning box moderne */
.warning-box-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.05));
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.warning-box-modern i {
    color: var(--danger);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.warning-box-modern p {
    margin: 0.5rem 0;
    color: var(--text-main);
    line-height: 1.6;
}

.warning-box-modern ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    color: var(--text-muted);
}

.warning-box-modern li {
    margin: 0.4rem 0;
    list-style-type: disc;
}

.warning-box-modern strong {
    color: var(--danger);
    font-weight: 700;
}

/* Cellules du tableau stagiaires */
.stagiaire-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stagiaire-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.stagiaire-cell strong {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--primary);
    width: 16px;
    font-size: 0.85rem;
}

/* Actions / icônes */
.actions,
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.12);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.95);
    color: #4b5563;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-icon i {
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: #eef2ff;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(129, 140, 248, 0.4);
    border-color: rgba(129, 140, 248, 0.9);
}

.btn-edit {
    border-color: rgba(59, 130, 246, 0.45);
}

.btn-view,
.btn-info {
    border-color: rgba(16, 185, 129, 0.4);
}

.btn-info:hover {
    background: #d1fae5;
    color: #065f46;
}

.btn-delete {
    border-color: rgba(239, 68, 68, 0.45);
}

.btn-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Modals génériques */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(18px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-large {
    max-width: 780px;
}

.modal-small {
    max-width: 460px;
}

.modal-header,
.modal-footer {
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}

.modal-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.modal-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 i {
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem 1.6rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: calc(90vh - 140px);
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 70, 229, 0.3) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.5);
}

.close-modal {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.4rem;
    color: #6b7280;
    transition: color 0.18s ease, transform 0.14s ease;
}

.close-modal:hover {
    color: #111827;
    transform: rotate(6deg);
}

/* Layout des champs dans les modals */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(79, 70, 229, 0.15);
}

.form-section-title i {
    font-size: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-section {
    margin-bottom: 1.25rem;
}

.form-section h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #111827;
}

.form-section h3 i {
    color: var(--primary);
}

.form-divider {
    height: 1px;
    margin: 0.75rem 0 1rem;
    border: none;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.6), transparent);
}

.form-help,
.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-right: 0.3rem;
}

.required {
    color: #dc2626;
}

.text-danger {
    color: #b91c1c;
}

/* Styles pour les erreurs de formulaire */
.form-group.has-error .form-control {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group.has-error .form-control:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.error-message i {
    font-size: 0.75rem;
}

.form-control.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 640px) {
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ==========================
   PAGE RENDEZ-VOUS
   ========================== */
.rendez-vous-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 640px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
    }
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 768px) {
    .filter-actions {
        width: 100%;
    }
    
    .filter-actions .btn {
        flex: 1;
    }
}

/* Statistiques rapides rendez-vous */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.22s ease;
}

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

.quick-stat i {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #f9fafb;
}

.quick-stat.stat-info i {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.quick-stat.stat-warning i {
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.quick-stat.stat-success i {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.quick-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.quick-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Timeline des rendez-vous */
.rdv-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.date-separator {
    position: relative;
    margin: 1.5rem 0 1rem;
    text-align: center;
}

.date-separator::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.5), transparent);
}

.date-separator span {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--bg-elevated);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

/* Cartes de rendez-vous */
.rdv-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.rdv-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.rdv-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(129, 140, 248, 0.7);
}

.rdv-card:hover::before {
    width: 5px;
}

.rdv-card.rdv-prévu::before {
    background: linear-gradient(180deg, #facc15, #f59e0b);
}

.rdv-card.rdv-confirmé::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.rdv-card.rdv-terminé::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.rdv-card.rdv-annulé::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.rdv-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.rdv-time i {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.rdv-time span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.rdv-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rdv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.rdv-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.rdv-header h3 i {
    color: var(--primary);
    font-size: 0.95rem;
}

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

.rdv-motif {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.rdv-motif i {
    color: var(--primary);
    margin-top: 0.2rem;
}

.rdv-motif strong {
    color: var(--text-main);
    font-weight: 600;
}

.rdv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.rdv-contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rdv-contact i {
    color: var(--primary);
    font-size: 0.9rem;
}

.rdv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f0fdf4;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.5);
}

.btn-info {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #f0f9ff;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.4);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #fffbeb;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.5);
}

@media (max-width: 640px) {
    .rdv-card {
        flex-direction: column;
    }
    
    .rdv-time {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }
    
    .rdv-time i {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .rdv-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rdv-actions {
        justify-content: stretch;
    }
    
    .rdv-actions .btn {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================
   CALENDRIER DES RENDEZ-VOUS
   ========================== */
.calendrier-page {
    width: 100%;
}

.calendrier-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.calendrier-navigation .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.mois-actuel {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    text-align: center;
    flex: 1;
}

.stats-mois {
    margin-bottom: 1.5rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.stat-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.calendrier-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.calendrier-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.5rem;
}

.calendrier-table thead th {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.08));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.calendrier-table tbody td {
    padding: 0;
    vertical-align: top;
    height: 120px;
    min-height: 120px;
}

.jour-vide {
    background: transparent;
    border: none;
}

.jour-calendrier {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    transition: all 0.2s ease;
    cursor: default;
}

.jour-calendrier:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.jour-aujourdhui {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.12));
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

.jour-aujourdhui .jour-numero {
    color: var(--primary);
    font-weight: 700;
}

.jour-numero {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.4rem;
    display: inline-block;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.1);
}

.rdv-jour {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 85px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
}

.rdv-jour::-webkit-scrollbar {
    width: 4px;
}

.rdv-jour::-webkit-scrollbar-track {
    background: transparent;
}

.rdv-jour::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.3);
    border-radius: 10px;
}

.rdv-jour::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.5);
}

.rdv-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    line-height: 1.3;
}

.rdv-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rdv-item.rdv-prévu {
    border-left-color: #facc15;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.15), rgba(250, 204, 21, 0.05));
}

.rdv-item.rdv-confirmé {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
}

.rdv-item.rdv-terminé {
    border-left-color: #22c55e;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
}

.rdv-item.rdv-annulé {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
}

.rdv-heure {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.7rem;
}

.rdv-nom {
    color: var(--text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendrier-legende {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.calendrier-legende h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.legende-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.legende-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border-left: 3px solid;
}

.legende-color.rdv-prévu {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.15), rgba(250, 204, 21, 0.05));
    border-left-color: #facc15;
}

.legende-color.rdv-confirmé {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-left-color: #3b82f6;
}

.legende-color.rdv-terminé {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-left-color: #22c55e;
}

.legende-color.rdv-annulé {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border-left-color: #ef4444;
}

/* Modal détails RDV dans calendrier */
.rdv-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(79, 70, 229, 0.2);
}

.detail-section h3 i {
    color: var(--primary);
    font-size: 0.95rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-item span {
    font-size: 0.95rem;
    color: var(--text-main);
}

.detail-section.full-width p {
    margin: 0;
    padding: 0.75rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    color: var(--text-main);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .calendrier-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendrier-navigation .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .mois-actuel {
        font-size: 1.25rem;
    }
    
    .calendrier-card {
        padding: 1rem;
    }
    
    .calendrier-table {
        border-spacing: 0.25rem;
    }
    
    .calendrier-table tbody td {
        height: 100px;
        min-height: 100px;
    }
    
    .jour-numero {
        font-size: 0.85rem;
    }
    
    .rdv-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }
    
    .rdv-heure,
    .rdv-nom {
        font-size: 0.65rem;
    }
    
    .rdv-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .legende-items {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .calendrier-table thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem;
    }
    
    .calendrier-table tbody td {
        height: 80px;
        min-height: 80px;
    }
    
    .rdv-jour {
        max-height: 60px;
    }
}

/* ==========================
   TIMELINE RENDEZ-VOUS
   ========================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-date-group {
    margin-bottom: 2rem;
}

.timeline-date {
    position: relative;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.timeline-date-group:first-child .timeline-date {
    margin-top: 0;
}

.timeline-date h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.3), transparent);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2), 0 4px 12px rgba(79, 70, 229, 0.3);
    z-index: 1;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3), 0 6px 20px rgba(233, 30, 99, 0.4);
}

.timeline-item.timeline-prévu .timeline-marker {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2), 0 4px 12px rgba(250, 204, 21, 0.3);
}

.timeline-item.timeline-confirmé .timeline-marker {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.3);
}

.timeline-item.timeline-terminé .timeline-marker {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 4px 12px rgba(34, 197, 94, 0.3);
}

.timeline-item.timeline-annulé .timeline-marker {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 0 4px 12px rgba(239, 68, 68, 0.3);
}

.timeline-content {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.timeline-item.timeline-prévu .timeline-content::before {
    background: linear-gradient(180deg, #facc15, #f59e0b);
}

.timeline-item.timeline-confirmé .timeline-content::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.timeline-item.timeline-terminé .timeline-content::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.timeline-item.timeline-annulé .timeline-content::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.5);
}

.timeline-content:hover::before {
    width: 5px;
}

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

.timeline-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(79, 70, 229, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.timeline-time i {
    color: var(--primary);
    font-size: 0.85rem;
}

.timeline-body {
    margin-bottom: 1rem;
}

.timeline-body h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.75rem 0;
}

.timeline-body h4 i {
    color: var(--primary);
    font-size: 0.95rem;
}

.timeline-motif {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    padding: 0.75rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.timeline-motif i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.timeline-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.timeline-contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-contact i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
}

.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

/* Boutons de statut */
.btn-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-confirmer {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-confirmer:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-terminer {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-terminer:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-annuler {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-annuler:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(148, 163, 184, 0.4);
}

.empty-state i {
    font-size: 4rem;
    color: rgba(148, 163, 184, 0.5);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* Alert warning */
.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-warning i {
    color: #f59e0b;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        width: 0.875rem;
        height: 0.875rem;
        left: 0.25rem;
    }
    
    .timeline-content {
        padding: 1rem 1.25rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-actions {
        flex-direction: column;
    }
    
    .btn-status {
        width: 100%;
        justify-content: center;
    }
    
    .timeline-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================
   PAGE DE CONNEXION
   ========================== */
body.login-page {
    background: radial-gradient(circle at top left, #e0f2fe 0, #eef2ff 35%, #f9fafb 75%, #fef9c3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Scrollbar personnalisée pour la page de login */
body.login-page::-webkit-scrollbar {
    width: 10px;
}

body.login-page::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

body.login-page::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(14, 165, 233, 0.5));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body.login-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(14, 165, 233, 0.7));
    background-clip: padding-box;
}

/* Pour Firefox */
body.login-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 70, 229, 0.5) rgba(148, 163, 184, 0.1);
}

body.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15) 0, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    margin: 2rem auto;
    padding: 1rem 0;
}

.login-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-logo .logo-image {
    height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.login-form {
    margin-top: 2rem;
}

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

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.login-form .form-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.login-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.login-form .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.login-form .form-group > div {
    position: relative;
}

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

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

.password-toggle i,
.toggle-password i {
    font-size: 1rem;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

/* Indicateur de force du mot de passe */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(148, 163, 184, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
}

/* Indicateur de correspondance des mots de passe */
.password-match {
    margin-top: 0.5rem;
}

.match-text {
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    user-select: none;
}

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

.checkbox-label span {
    color: var(--text-muted);
}

.login-form .btn-primary,
.login-submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
    transition: all 0.3s ease;
}

.login-submit-btn::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;
}

.login-submit-btn:hover::before {
    left: 100%;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, #C2185B, #AD1457);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-submit-btn .btn-content,
.login-submit-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-submit-btn .btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.login-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.login-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.login-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-link a i {
    font-size: 0.85rem;
}

.login-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 1rem 0;
}

.login-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    padding: 0.75rem 1rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.login-info i {
    color: var(--primary);
    font-size: 0.9rem;
}

.login-info strong {
    color: var(--text-main);
    font-weight: 600;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

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

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert-error i {
    color: #ef4444;
    font-size: 1.1rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-success i {
    color: #10b981;
    font-size: 1.1rem;
}

.login-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.05), rgba(14, 165, 233, 0.05));
    border-radius: 50%;
    animation: waveAnimation 20s ease-in-out infinite;
}

.wave1 {
    top: -50%;
    left: -50%;
    animation-delay: 0s;
}

.wave2 {
    top: -40%;
    right: -50%;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.05), rgba(79, 70, 229, 0.05));
}

.wave3 {
    bottom: -50%;
    left: -30%;
    animation-delay: 10s;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.05), rgba(79, 70, 229, 0.05));
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@media (max-width: 640px) {
    body.login-page {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-logo .logo-image {
        height: 80px;
        max-width: 250px;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   PAGE PROFIL
   ============================================ */
.profil-page {
    padding: 0;
}

.profil-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profil-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

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

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

.info-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.info-item label i {
    color: var(--primary);
}

.info-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.required {
    color: var(--danger);
    font-weight: 700;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .profil-container {
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-info {
        flex-direction: column;
        text-align: center;
        font-size: 0.8rem;
    }
}

/* ============================================
   PAGE NOTIFICATIONS
   ============================================ */
.notifications-page {
    padding: 2rem 0;
}

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

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

.notification-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.notification-email i {
    color: var(--primary);
}

.notification-rdv {
    line-height: 1.6;
}

.notification-rdv strong {
    color: var(--text-main);
    font-weight: 600;
}

.notification-rdv small {
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

.notification-rdv small i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.notifications-page .stat-card {
    padding: 1.5rem;
}

.notifications-page .stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notifications-page .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.notifications-page .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   PAGE ENVOI EMAIL
   ============================================ */
.envoi-email-page {
    padding: 0;
}

.destinataires-selection {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--bg-elevated);
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.selection-count {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary);
}

.stagiaires-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stagiaire-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.stagiaire-checkbox:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.stagiaire-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.stagiaire-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.stagiaire-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.stagiaire-info > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stagiaire-info strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.stagiaire-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.formation-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.preview-container {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.preview-header {
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.preview-content {
    padding: 1.5rem;
    background: white;
    min-height: 200px;
}

@media (max-width: 768px) {
    .notifications-page .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .selection-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .selection-count {
        margin-left: 0;
        text-align: center;
    }
    
    .stagiaires-list {
        max-height: 300px;
    }
    
    .editor-toolbar {
        justify-content: center;
    }
    
    .file-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-area i {
        font-size: 2rem;
    }
}

/* ============================================
   FORMULAIRE EMAIL PROFESSIONNEL V2
   ============================================ */
.email-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.header-text h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

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

.results-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.results-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.results-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-header h3 i {
    color: var(--success);
}

.results-body {
    padding: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

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

.results-table thead {
    background: var(--bg-elevated);
}

.results-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-subtle);
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cell-name {
    font-weight: 600;
    color: var(--text-main);
}

.cell-email {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.email-composer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.composer-section {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08) 0%, rgba(233, 30, 99, 0.03) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.section-title h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

.section-body {
    padding: 1.5rem;
}

.recipients-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 1rem;
}

.controls-left {
    display: flex;
    gap: 0.75rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.recipient-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.recipient-count.has-selection {
    color: var(--primary);
}

.recipient-count strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.recipients-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.recipients-list::-webkit-scrollbar {
    width: 6px;
}

.recipients-list::-webkit-scrollbar-track {
    background: transparent;
}

.recipients-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.recipient-item {
    position: relative;
}

.recipient-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.recipient-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.recipient-label:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}

.recipient-checkbox:checked + .recipient-label {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.recipient-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.recipient-details {
    flex: 1;
    min-width: 0;
}

.recipient-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recipient-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.recipient-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.empty-recipients {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-recipients i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
}

.field-label i {
    color: var(--primary);
}

.required-mark {
    color: var(--danger);
    font-weight: 700;
}

.optional-mark {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.field-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(233, 30, 99, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.field-help i {
    color: var(--primary);
}

.field-help code {
    background: rgba(233, 30, 99, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary);
    font-weight: 600;
}

.field-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.field-textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
    background: white;
}

.field-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.upload-zone {
    position: relative;
    border: 3px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: scale(1.01);
}

.upload-content {
    pointer-events: none;
}

.upload-icon-large {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.upload-content p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
}

.upload-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.upload-formats {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.attachments-display {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-display-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.attachment-display-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attachment-display-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.attachment-display-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.attachment-display-info {
    flex: 1;
    min-width: 0;
}

.attachment-display-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.attachment-display-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.attachment-remove-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.composer-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid var(--border-subtle);
}

.action-btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-preview {
    background: white;
    border: 2px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-preview:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-reset {
    background: white;
    border: 2px solid var(--border-subtle);
    color: var(--text-muted);
}

.btn-reset:hover {
    border-color: var(--text-muted);
    background: var(--text-muted);
    color: white;
}

.btn-send-primary {
    background: var(--primary);
    color: white;
    min-width: 160px;
    justify-content: center;
}

.btn-send-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-send-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .email-header {
        padding: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .recipients-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls-left {
        justify-content: center;
    }
    
    .recipient-count {
        justify-content: center;
    }
    
    .recipients-list {
        grid-template-columns: 1fr;
    }
    
    .composer-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FORMULAIRE EMAIL PROFESSIONNEL
   ============================================ */
.email-form-pro {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(233, 30, 99, 0.05) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.required-badge,
.optional-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.optional-badge {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

.section-content {
    padding: 1.25rem;
}

.selection-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.selection-info {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-info i {
    color: var(--primary);
}

.stagiaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.stagiaires-grid::-webkit-scrollbar {
    width: 6px;
}

.stagiaires-grid::-webkit-scrollbar-track {
    background: transparent;
}

.stagiaires-grid::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.stagiaire-card {
    position: relative;
}

.stagiaire-checkbox-card {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stagiaire-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-content {
    background: white;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stagiaire-checkbox-card:hover .card-content {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}

.stagiaire-checkbox-card input[type="checkbox"]:checked + .card-content {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.card-formation {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.editor-help {
    margin-bottom: 0.75rem;
}

.help-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    background: rgba(233, 30, 99, 0.05);
    border-radius: var(--radius-sm);
}

.help-text i {
    color: var(--primary);
}

.help-text code {
    background: rgba(233, 30, 99, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--primary);
    font-weight: 600;
}

.email-textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
}

.file-upload-wrapper {
    margin-top: 0.5rem;
}

.file-upload-box {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.file-upload-box.dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-text {
    margin-bottom: 0.75rem;
}

.upload-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.upload-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upload-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.file-input-hidden {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.attachments-preview {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attachment-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.attachment-preview-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.attachment-preview-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.attachment-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.attachment-details {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.attachment-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-actions-pro {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.btn-send {
    min-width: 180px;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.page-description {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.preview-field {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.preview-field strong {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .stagiaires-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-actions-pro {
        flex-direction: column;
    }
    
    .btn-send {
        width: 100%;
    }
    
    .selection-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .selection-info {
        margin-left: 0;
        justify-content: center;
    }
    
    .stagiaires-grid {
        grid-template-columns: 1fr;
    }
}

/* Champs améliorés */
.form-control-lg {
    font-size: 1.1rem;
    padding: 0.875rem 1rem;
}

.email-editor {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
}

/* Barre d'outils éditeur */
.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    flex-wrap: wrap;
}

.btn-editor {
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-main);
}

.btn-editor:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-editor i {
    margin-right: 0.25rem;
}

/* Zone de téléchargement */
.attachments-container {
    margin-top: 0.5rem;
}

.file-upload-area {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-elevated);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.file-upload-area p {
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--text-main);
}

.file-upload-area small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Liste des pièces jointes */
.attachments-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.attachment-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.attachment-info i {
    font-size: 1.5rem;
    color: var(--primary);
}

.attachment-info > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attachment-info strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.attachment-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-remove-attachment {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-remove-attachment:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

/* ==========================
   PAGE DOCUMENTS STAGIAIRE
   ========================== */
.documents-page {
    padding: 0;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.document-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.document-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.05));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.document-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.document-meta i {
    font-size: 0.75rem;
}

.document-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-view {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.btn-view:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

/* Responsive documents */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .document-card {
        flex-direction: column;
        padding: 1rem;
    }
    
    .document-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .document-icon i {
        font-size: 1.5rem;
    }
    
    .document-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
    
    .upload-form {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .document-card {
        padding: 0.875rem;
    }
    
    .document-name {
        font-size: 0.9rem;
    }
    
    .document-description {
        font-size: 0.8rem;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================
   RESPONSIVE GLOBAL - TOUTES LES PAGES
   ========================== */

/* Tablette et écrans moyens (1024px - 1200px) */
@media (max-width: 1200px) {
    /* Cartes de statistiques */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem 1.1rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        width: 2.8rem;
        height: 2.8rem;
    }
    
    .stat-content h3 {
        font-size: 1.25rem;
    }
    
    /* Tableaux */
    table {
        min-width: 600px;
    }
    
    thead th {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }
    
    td {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Modals */
    .modal-content {
        max-width: 90%;
    }
    
    .modal-large {
        max-width: 95%;
    }
    
    /* Formulaires */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Page header */
    .page-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .page-actions {
        flex-wrap: wrap;
    }
}

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
    /* Cartes de statistiques */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 0.875rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 1.4rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.15rem;
    }
    
    /* Dashboard content */
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    /* Tableaux */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 700px;
    }
    
    /* Cards */
    .card {
        padding: 1.25rem 1.4rem;
    }
    
    /* Boutons */
    .btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.875rem;
    }
    
    .btn-icon {
        width: 2rem;
        height: 2rem;
    }
    
    /* Notifications */
    .notification-alert {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile (480px - 768px) */
@media (max-width: 768px) {
    /* Cartes de statistiques */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
    }
    
    .stat-icon {
        font-size: 1.3rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .stat-content h3 {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Tableaux - Mode carte sur mobile */
    .table-wrapper {
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
        font-size: 0.85rem;
    }
    
    thead th {
        padding: 0.5rem 0.625rem;
        font-size: 0.7rem;
    }
    
    td {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }
    
    /* Actions dans les tableaux */
    td .actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }
    
    /* Cards */
    .card {
        padding: 1rem 1.25rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .page-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Formulaires */
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    /* Filtres */
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    /* Modals */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 100%;
        border-radius: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Boutons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        width: 100%;
    }
    
    .btn-block {
        width: 100%;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.625rem;
    }
    
    /* Notifications */
    .notification-alert {
        padding: 1rem 1.25rem;
    }
    
    /* Dashboard */
    .dashboard-content {
        gap: 1rem;
    }
    
    .rdv-list,
    .stagiaires-list {
        gap: 0.75rem;
    }
    
    /* Calendrier */
    .calendrier-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendrier-table {
        font-size: 0.8rem;
    }
    
    .calendrier-table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    /* Quick stats */
    .quick-stats {
        flex-direction: column;
    }
    
    .quick-stat {
        width: 100%;
    }
}

/* Très petit mobile (< 480px) */
@media (max-width: 480px) {
    /* Cartes de statistiques */
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-icon {
        font-size: 1.2rem;
        width: 2rem;
        height: 2rem;
    }
    
    .stat-content h3 {
        font-size: 1rem;
    }
    
    /* Tableaux */
    table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    thead th {
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }
    
    td {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Cards */
    .card {
        padding: 0.875rem 1rem;
    }
    
    /* Page title */
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-title i {
        font-size: 1.1rem;
    }
    
    /* Formulaires */
    .form-control {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    /* Boutons */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .btn i {
        font-size: 0.85rem;
    }
    
    /* Modals */
    .modal-header h2 {
        font-size: 1rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    /* Calendrier */
    .calendrier-table thead th {
        padding: 0.4rem 0.2rem;
        font-size: 0.65rem;
    }
    
    .rdv-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }
    
    .rdv-heure {
        font-size: 0.65rem;
    }
    
    .rdv-nom {
        font-size: 0.65rem;
    }
    
    /* Legende */
    .legende-items {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* User menu */
    .user-menu {
        min-width: calc(100vw - 1.5rem);
    }
    
    /* Action buttons */
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn-icon {
        width: 100%;
        justify-content: center;
    }
}

/* Orientation paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-body {
        max-height: calc(90vh - 140px);
        overflow-y: auto;
    }
}

/* Amélioration du scroll sur mobile */
@media (max-width: 768px) {
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .table-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }
}

/* ============================================
   LISTE DES RENDEZ-VOUS - TABLEAU
   ============================================ */
.rdv-row {
    transition: all 0.2s ease;
}

.rdv-row:hover {
    background: rgba(233, 30, 99, 0.03);
}

.rdv-row-prévu {
    border-left: 4px solid var(--warning);
}

.rdv-row-confirmé {
    border-left: 4px solid var(--info);
}

.rdv-row-terminé {
    border-left: 4px solid var(--success);
}

.rdv-row-annulé {
    border-left: 4px solid var(--danger);
    opacity: 0.7;
}

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

.rdv-date-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rdv-day-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    min-width: 35px;
}

.rdv-day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.rdv-month {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.rdv-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rdv-time i {
    color: var(--primary);
}

.rdv-stagiaire {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rdv-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.rdv-motif {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 300px;
}

.rdv-motif i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.rdv-motif span {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .rdv-datetime {
        gap: 0.25rem;
    }
    
    .rdv-day-number {
        font-size: 1.2rem;
    }
    
    .rdv-day-name,
    .rdv-month {
        font-size: 0.7rem;
    }
    
    .rdv-time {
        font-size: 0.8rem;
    }
    
    .rdv-motif {
        max-width: 200px;
    }
    
    .rdv-motif span {
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
}

