@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ============================================================
   BTP DEVIS PRO — CSS NETTOYÉ
   - Règles dupliquées supprimées
   - Sidebar desktop unifiée à 280px
   - Main content aligné sur la sidebar
   - Responsive mobile regroupé
   - Styles fonctionnels conservés
   ============================================================ */

/* ============================================================
   1. BASE / VARIABLES
   ============================================================ */

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

html {
    font-size: 14px;
}

:root {
    --primary: #1E3A8A;
    --secondary: #7C3AED;
    --accent: #06B6D4;
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --border-dark: #334155;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   2. SIDEBAR — DESKTOP
   ============================================================ */

.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.2rem 0.8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    font-weight: bold;
}

.logo i {
    font-size: 1.4rem;
    color: var(--accent);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0.6rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.nav-item i {
    width: 18px;
    font-size: 0.9rem;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.user-info {
    margin-top: auto;
    padding: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.user-name {
    font-weight: bold;
    font-size: 0.7rem;
}

.user-email {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.8);
    border: none;
    color: white;
    padding: 5px 7px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 1);
}

.btn-logout {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* ============================================================
   ASSISTANT IA
   ============================================================ */

/* Variables IA */
:root {
    --ai-start: #8B5CF6;
    --ai-end: #06B6D4;
}

/* ============================================================
   HEADER IA
   ============================================================ */

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

.ia-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ia-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ia-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--ai-start), var(--ai-end), var(--ai-start));
    animation: rotate 4s linear infinite;
    opacity: 0.6;
    filter: blur(6px);
}

.ia-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--dark-bg);
}

.ia-icon {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ia-header-title h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.ia-header-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #C4B5FD;
    margin-left: 10px;
    vertical-align: middle;
}

/* ============================================================
   COMPTEUR
   ============================================================ */

.ia-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ia-counter strong {
    color: var(--warning);
}

.ia-counter-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ia-counter-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success), var(--warning));
    border-radius: 4px;
    transition: width 0.3s;
}

/* ============================================================
   CARTE IA AVEC RAYON LUMINEUX
   ============================================================ */

.ia-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ia-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 300deg,
        var(--ai-start) 320deg,
        var(--ai-end) 340deg,
        var(--accent) 360deg
    );
    animation: rotateBorder 3s linear infinite;
    z-index: -1;
}

.ia-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    background: var(--dark-bg);
    z-index: -1;
}

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

/* ============================================================
   TEXTAREA IA
   ============================================================ */

.ia-textarea-wrapper {
    position: relative;
}

.ia-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    line-height: 1.5;
}

.ia-textarea:focus {
    outline: none;
    border-color: var(--ai-start);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.ia-textarea::placeholder {
    color: #64748B;
}

.ia-textarea-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.ia-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ia-hint i {
    color: var(--ai-start);
}

.ia-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============================================================
   BOUTONS IA
   ============================================================ */

/* Boutons IA */
.btn-ai,
.btn-success,
.btn-warning,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-ai {
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-ai:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #D97706, var(--warning));
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ai-start);
    color: white;
}

/* ============================================================
   FORMULAIRES IA
   ============================================================ */


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

.ia-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ia-form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ia-select {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ia-select:focus {
    outline: none;
    border-color: var(--ai-start);
}

/* ============================================================
   TABLEAU IA
   ============================================================ */

.ia-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    margin-bottom: 1rem;
}

.ia-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ia-table thead {
    background: rgba(139, 92, 246, 0.1);
}

.ia-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #C4B5FD;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ia-table th:last-child {
    text-align: center;
}

.ia-table td {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.ia-table td:last-child {
    text-align: center;
}

.ia-table tbody tr {
    transition: background 0.2s;
}

.ia-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ia-input-inline {
    width: 100%;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ia-input-inline:hover {
    border-color: var(--border-dark);
}

.ia-input-inline:focus {
    outline: none;
    border-color: var(--ai-start);
    background: rgba(0, 0, 0, 0.5);
}

.ia-input-number {
    width: 80px;
    text-align: right;
}

.ia-total-cell {
    font-weight: 600;
    color: var(--success);
}

/* ============================================================
   RÉCAPITULATIF IA
   ============================================================ */

.ia-summary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.ia-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ia-summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.ia-summary-row.total span:last-child {
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}

/* ============================================================
   ACTIONS FINALES IA
   ============================================================ */

.ia-final-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ia-final-actions-left {
    display: flex;
    gap: 0.5rem;
}

.ia-final-actions-right {
    display: flex;
    gap: 0.5rem;
}

/* ============================================================
   VISUALISATION IA
   ============================================================ */

.ia-visualisation {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ia-visualisation.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LOADING IA
   ============================================================ */

.ia-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
}

.ia-loading.visible {
    display: flex;
}

.ia-loading-dots {
    display: flex;
    gap: 6px;
}

.ia-loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ai-start);
    animation: pulse 1.4s ease-in-out infinite;
}

.ia-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--ai-end);
}

.ia-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--ai-start);
}

.ia-loading p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   ASTUCE IA
   ============================================================ */

.ia-tip {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ia-tip i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

.ia-tip-title {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.ia-tip-text strong {
    color: var(--warning);
}

/* ============================================================
   NOTIFICATION TOAST IA
   ============================================================ */

.ia-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.ia-toast {
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ia-toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    animation: progressBar 10s linear forwards;
}

.ia-toast-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ia-toast-content {
    flex: 1;
    min-width: 0;
}

.ia-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.ia-toast-message {
    font-size: 0.85rem;
    opacity: 0.95;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ia-toast-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ia-toast-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ia-toast-btn-primary {
    background: white;
    color: #059669;
}

.ia-toast-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.ia-toast-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.ia-toast-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ia-toast-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.ia-toast-close:hover {
    color: white;
}

/* ============================================================
   ANIMATIONS IA
   ============================================================ */

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

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

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ============================================================
   RESPONSIVE IA
   ============================================================ */

@media (max-width: 768px) {
    .ia-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ia-form-row {
        grid-template-columns: 1fr;
    }

    .ia-textarea-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ia-buttons {
        justify-content: flex-end;
    }

    .ia-final-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ia-final-actions-left,
    .ia-final-actions-right {
        width: 100%;
    }

    .ia-final-actions .btn {
        flex: 1;
    }

    .ia-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================================
   3. CONTENU PRINCIPAL
   ============================================================ */

.main-content {
    flex: 1;
    width: calc(100% - 280px);
    min-height: 100vh;
    margin-left: 280px;
    padding: 1.2rem;
}

.page-content > div {
    margin-bottom: 1rem;
}

/* ============================================================
   4. HEADER / RECHERCHE
   ============================================================ */

.glass-header {
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}

.glass-header h1 {
    font-size: 1.3rem;
}

.header-right {
    position: relative;
    z-index: 1000;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.search-bar input {
    background: none;
    border: none;
    color: white;
    outline: none;
}

.search-box {
    position: relative;
    display: inline-block;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #94A3B8;
}

.search-box input {
    padding-left: 35px !important;
}

.filter-select {
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--accent) !important;
}

#search-results {
    z-index: 99999 !important;
}

/* ============================================================
   5. TITRES
   ============================================================ */

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 0.95rem;
}

/* ============================================================
   6. CARTES / DASHBOARD
   ============================================================ */

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

.glass-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
}

.card-icon i {
    font-size: 1.5rem;
}

.card-title {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
}

.glass-card p {
    max-width: 100%;
    margin: 8px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.glass-card p i.fa-envelope {
    margin-right: 8px;
}

/* ============================================================
   7. TABLEAUX
   ============================================================ */

.table-container {
    padding: 1.5rem;
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
}

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

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    color: var(--text-secondary);
    font-weight: 600;
}

#devis-table-body tr {
    transition: all 0.3s ease;
}

#devis-count {
    animation: fadeIn 0.3s ease;
}

/* ============================================================
   8. BOUTONS
   ============================================================ */

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
}

.btn-icon {
    padding: 6px 10px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.btn-icon.suspend {
    background: #EF4444;
    color: white;
}

.btn-icon.history {
    background: #8B5CF6;
    color: white;
}

/* ============================================================
   9. STATUTS / BADGES
   ============================================================ */

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

#actualites-badge {
    padding: 1px 5px !important;
    border-radius: 8px;
    font-size: 0.6rem !important;
}

/* ============================================================
   10. FORMULAIRES
   ============================================================ */

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: white;
}

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

.materiaux-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.materiaux-item input {
    flex: 1;
    padding: 8px;
    background: var(--dark-bg);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: white;
}

.materiaux-item input:first-child {
    flex: 2;
}

.remove-item {
    padding: 8px;
    background: #EF4444;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.loading {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* ============================================================
   11. MODALES
   ============================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    padding: 2rem;
    overflow-y: auto;
    background: var(--dark-card);
    border-radius: 20px;
}

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

.modal-header h2 {
    font-size: 1.1rem;
}

.modal-header i {
    cursor: pointer;
}

/* ============================================================
   12. ONGLETS
   ============================================================ */

.tab-parametre,
.tab-admin,
.tab-facture,
.tab-archive {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
}

.tab-admin {
    position: relative;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-admin:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
}

.tab-admin.active {
    color: white !important;
}

.tab-admin.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--accent);
    border-radius: 4px;
}

.tab-facture {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-facture:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px 6px 0 0;
}

/* ============================================================
   13. ADMIN
   ============================================================ */

.admin-overview .glass-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-overview .glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-icon-admin {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-icon-admin:hover {
    transform: scale(1.1);
}

/* Boutons d'offres */
.btn-offer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-offer .offer-price {
    padding: 2px 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
}

.btn-offer.starter {
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
}

.btn-offer.starter:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.btn-offer.pro {
    background: linear-gradient(135deg, #1E3A8A, #06B6D4);
    color: white;
}

.btn-offer.pro:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.btn-offer.annuel {
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    color: white;
}

.btn-offer.annuel:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* ============================================================
   14. TARIFS / PRICING MODAL
   ============================================================ */

.pricing-modal {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    padding: 40px;
    overflow-y: auto;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pricing-modal-header {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.pricing-modal-header h2 {
    margin-bottom: 10px;
    font-size: 2rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-modal-header p {
    color: #94A3B8;
}

.pricing-modal-header .close-modal {
    position: absolute;
    top: -20px;
    right: -20px;
    color: #94A3B8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.pricing-modal-header .close-modal:hover {
    color: #F87171;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    position: relative;
    flex: 1;
    min-width: 280px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    padding: 5px 15px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.pricing-card-header {
    margin-bottom: 20px;
    text-align: center;
}

.pricing-icon {
    margin-bottom: 10px;
    font-size: 40px;
}

.pricing-card-header h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.pricing-price {
    color: var(--accent);
    font-size: 2rem;
    font-weight: bold;
}

.pricing-price span {
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: normal;
}

.pricing-saving {
    margin-top: 5px;
    color: #10B981;
    font-size: 0.8rem;
}

.pricing-features {
    margin: 25px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #CBD5E1;
}

.feature i {
    width: 20px;
}

.feature i.fa-check-circle {
    color: #10B981;
}

.feature i.fa-times-circle {
    color: #EF4444;
}

.feature.disabled {
    opacity: 0.5;
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.pricing-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.pricing-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    text-align: center;
}

.pricing-footer strong {
    color: var(--accent);
}

/* ============================================================
   15. NOTIFICATIONS / TOASTS
   ============================================================ */

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: slideInRight 0.3s ease;
    transition: transform 0.2s ease;
}

.toast:hover {
    transform: translateX(-5px);
}

.toast-success {
    background: linear-gradient(135deg, #059669, #10B981);
    border-left: 4px solid #fff;
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    border-left: 4px solid #fff;
    color: white;
}

.toast-info {
    background: linear-gradient(135deg, #1E3A8A, #3B82F6);
    border-left: 4px solid #fff;
    color: white;
}

.toast-warning {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    border-left: 4px solid #fff;
    color: white;
}

.toast i {
    font-size: 22px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.toast-message {
    font-size: 0.8rem;
    opacity: 0.9;
}

.toast-close {
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.notification-toast:hover {
    transform: scale(1.02);
    transition: transform 0.3s;
}

/* ============================================================
   SUPPORT & AVIS
   ============================================================ */

/* Header Support */
.support-header {
    margin-bottom: 2rem;
}

.support-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.support-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   CARTES SUPPORT
   ============================================================ */

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

.support-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.support-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.support-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.support-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.support-card-icon.contact {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
    color: var(--accent);
}

.support-card-icon.avis {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: var(--warning);
}

.support-card-icon.direct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: var(--success);
}

.support-card-title {
    font-size: 1rem;
    font-weight: 600;
}

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

/* ============================================================
   FORMULAIRES SUPPORT
   ============================================================ */

.support-form-group {
    margin-bottom: 1rem;
}

.support-form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.support-select,
.support-input,
.support-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.support-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.support-select:focus,
.support-input:focus,
.support-textarea:focus {
    outline: none;
    border-color: var(--ai-start);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.support-select option {
    background: #1E293B;
    color: white;
}

.support-input::placeholder,
.support-textarea::placeholder {
    color: #64748B;
}

/* ============================================================
   ÉTOILES DE NOTATION
   ============================================================ */

.support-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    justify-content: center;
    padding: 10px 0;
}

.support-star {
    font-size: 2rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.support-star:hover,
.support-star.active {
    color: var(--warning);
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.support-star-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    min-height: 20px;
}

/* ============================================================
   BOUTON SUPPORT
   ============================================================ */

.support-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-btn-contact {
    background: linear-gradient(135deg, #0891B2, var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.support-btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.support-btn-avis {
    background: linear-gradient(135deg, #D97706, var(--warning));
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.support-btn-avis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.support-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   CONTACT DIRECT
   ============================================================ */

.support-direct {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-direct-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.support-direct-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ai-start);
}

.support-direct-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.support-direct-icon.email {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
}

.support-direct-icon.whatsapp {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

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

.support-direct-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.support-direct-value {
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
    word-break: break-all;
}

.support-direct-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.support-direct-link.wa {
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
}

.support-direct-link.wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   HISTORIQUE DES MESSAGES
   ============================================================ */

.support-historique {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.support-historique-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.support-historique-title i {
    color: var(--accent);
}

.support-historique-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

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

.support-historique-content {
    flex: 1;
    min-width: 0;
}

.support-historique-sujet {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.support-historique-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-historique-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.support-historique-statut {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 8px;
}

.support-historique-statut.nouveau {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent);
}

.support-historique-statut.lu {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.support-historique-statut.traite {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* ============================================================
   RÉPONSE ADMIN
   ============================================================ */

.support-reponse {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.support-reponse-label {
    font-weight: 600;
    color: var(--success);
    margin-bottom: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-star {
        font-size: 1.8rem;
    }

    .support-direct-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-direct-link {
        width: 100%;
        justify-content: center;
    }

    .support-historique-item {
        flex-direction: column;
    }
}

/* ============================================================
   16. LANGUES
   ============================================================ */

.language-selector {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.lang-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.lang-btn:hover {
    background: rgba(6, 182, 212, 0.3);
    border-color: var(--accent);
}

/* ============================================================
   17. TOOLTIP
   ============================================================ */

.admin-tooltip {
    position: relative;
    display: inline-block;
}

.admin-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    z-index: 100;
    padding: 5px 10px;
    margin-bottom: 5px;
    transform: translateX(-50%);
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 6px;
    color: white;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* ============================================================
   18. ANIMATIONS
   ============================================================ */

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ============================================================
   19. MENU MOBILE
   ============================================================ */

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    background: rgba(0, 0, 0, 0.5);
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================================
   20. RESPONSIVE — TABLET / MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        left: -280px;
        width: 280px;
        height: 100vh;
        padding: 70px 1rem 1rem;
        background: #0F172A !important;
        backdrop-filter: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: left 0.3s ease;
        z-index: 1001; 
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar .logo,
    .sidebar .nav-menu,
    .sidebar .user-info {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-item {
        color: #E2E8F0 !important;
        background: transparent !important;
    }

    .nav-item.active {
        background: linear-gradient(135deg, #1E3A8A, #7C3AED) !important;
        color: white !important;
    }

    .user-info {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .main-content {
        width: 100%;
        margin-left: 0 !important;
        padding: 1rem;
        padding-top: 60px;
        overflow-x: hidden;
    }

    .glass-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        margin-top: 0;
    }

    .glass-header h1 {
        font-size: 1.3rem;
    }

    .glass-header .header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cards-grid .glass-card {
        padding: 0.75rem;
    }

    .table-container {
        padding: 0.75rem;
        overflow-x: auto;
        border-radius: 16px;
    }

    .data-table {
        min-width: 600px;
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .btn-icon {
        padding: 6px 8px;
        margin: 2px;
    }

    .table-container > div:first-child {
        flex-direction: column;
        align-items: stretch !important;
    }

    .search-box input {
        width: 100% !important;
    }

    .filter-select {
        width: 100%;
    }

    .glass-card p {
        font-size: 0.7rem;
    }

    .glass-card p i {
        width: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }

    .materiaux-item {
        flex-direction: column;
        gap: 8px;
    }

    .materiaux-item input {
        width: 100%;
    }

    #admin-table-body td:last-child div {
        flex-direction: column;
        gap: 5px;
    }

    .btn-offer,
    .btn-icon {
        width: 100%;
        justify-content: center;
    }

    .admin-overview .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tab-admin {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }

    .tab-admin span {
        display: none;
    }

    .pricing-modal {
        padding: 20px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-cards {
        gap: 20px;
    }

    .search-box input {
        width: 180px;
    }

    .filter-select {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   21. RESPONSIVE — PETIT MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .main-content {
        padding: 0.75rem;
        padding-top: 55px;
    }

    .glass-card {
        padding: 1rem;
    }

    .card-value {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .search-box input {
        width: 140px;
    }

    .data-table {
        min-width: 500px;
        font-size: 0.7rem;
    }

    .admin-overview .cards-grid {
        grid-template-columns: 1fr;
    }

    .toast {
        min-width: 0;
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }

    .toast-container {
        right: 15px;
        bottom: 15px;
        left: 15px;
    }
}

/* ============================================================
   ASSISTANT IA — CHAT
   ============================================================ */

/* Variables IA */
:root {
    --ai-start: #8B5CF6;
    --ai-end: #06B6D4;
}

/* ============================================================
   HEADER IA
   ============================================================ */

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

.ia-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ia-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ia-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--ai-start), var(--ai-end), var(--ai-start));
    animation: rotate 4s linear infinite;
    opacity: 0.6;
    filter: blur(6px);
}

.ia-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--dark-bg);
}

.ia-icon {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ia-header-title h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.ia-header-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #C4B5FD;
    margin-left: 10px;
    vertical-align: middle;
}

.ia-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ia-counter strong {
    color: var(--warning);
}

/* ============================================================
   CARTE IA
   ============================================================ */

.ia-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ia-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 300deg,
        var(--ai-start) 320deg,
        var(--ai-end) 340deg,
        var(--accent) 360deg
    );
    animation: rotateBorder 3s linear infinite;
    z-index: -1;
}

.ia-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    background: var(--dark-bg);
    z-index: -1;
}

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

/* ============================================================
   CHAT — ZONE DE MESSAGES
   ============================================================ */

.ia-chat {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.ia-chat::-webkit-scrollbar {
    width: 6px;
}

.ia-chat::-webkit-scrollbar-track {
    background: transparent;
}

.ia-chat::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.ia-chat::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Bulles de messages */
.ia-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeInUp 0.4s ease;
}

.ia-message.user {
    flex-direction: row-reverse;
}

.ia-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.ia-message.ai .ia-message-avatar {
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.ia-message.user .ia-message-avatar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.ia-message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.ia-message.ai .ia-message-bubble {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-top-left-radius: 4px;
    color: var(--text-secondary);
}

.ia-message.user .ia-message-bubble {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-top-right-radius: 4px;
    color: white;
}

.ia-message-bubble strong {
    color: white;
}

.ia-message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* Typing indicator */
.ia-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    border-top-left-radius: 4px;
    width: fit-content;
}

.ia-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ai-start);
    animation: typingPulse 1.4s ease-in-out infinite;
}

.ia-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--ai-end);
}

.ia-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--ai-start);
}

/* ============================================================
   CHAT — ZONE DE SAISIE
   ============================================================ */

.ia-chat-input-wrapper {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.ia-chat-input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    line-height: 1.5;
}

.ia-chat-input:focus {
    outline: none;
    border-color: var(--ai-start);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.ia-chat-input::placeholder {
    color: #64748B;
}

.ia-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.ia-chat-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.ia-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   VISUALISATION
   ============================================================ */

.ia-visualisation {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ia-visualisation.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.ia-visualisation .ia-card {
    padding: 1.5rem;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */

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

.ia-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ia-form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ia-select {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ia-select:focus {
    outline: none;
    border-color: var(--ai-start);
}

/* ============================================================
   TABLEAU
   ============================================================ */

.ia-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    margin-bottom: 1rem;
}

.ia-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ia-table thead {
    background: rgba(139, 92, 246, 0.1);
}

.ia-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #C4B5FD;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ia-table th:last-child {
    text-align: center;
}

.ia-table td {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.ia-table td:last-child {
    text-align: center;
}

.ia-input-inline {
    width: 100%;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ia-input-inline:hover {
    border-color: var(--border-dark);
}

.ia-input-inline:focus {
    outline: none;
    border-color: var(--ai-start);
    background: rgba(0, 0, 0, 0.5);
}

.ia-input-number {
    width: 80px;
    text-align: right;
}

.ia-total-cell {
    font-weight: 600;
    color: var(--success);
}

/* ============================================================
   RÉCAPITULATIF
   ============================================================ */

.ia-summary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.ia-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ia-summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.ia-summary-row.total span:last-child {
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}

/* ============================================================
   BOUTONS IA
   ============================================================ */

.btn-ai,
.btn-success,
.btn-warning,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-ai {
    background: linear-gradient(135deg, var(--ai-start), var(--ai-end));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-ai:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #D97706, var(--warning));
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ai-start);
    color: white;
}

/* ============================================================
   ACTIONS FINALES
   ============================================================ */

.ia-final-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ia-final-actions-left {
    display: flex;
    gap: 0.5rem;
}

.ia-final-actions-right {
    display: flex;
    gap: 0.5rem;
}

/* ============================================================
   ASTUCE
   ============================================================ */

.ia-tip {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ia-tip i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

.ia-tip-title {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.ia-tip-text strong {
    color: var(--warning);
}

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */

.ia-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.ia-toast {
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ia-toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    animation: progressBar 10s linear forwards;
}

.ia-toast-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ia-toast-content {
    flex: 1;
    min-width: 0;
}

.ia-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.ia-toast-message {
    font-size: 0.85rem;
    opacity: 0.95;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ia-toast-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ia-toast-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ia-toast-btn-primary {
    background: white;
    color: #059669;
}

.ia-toast-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.ia-toast-btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.ia-toast-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ia-toast-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.ia-toast-close:hover {
    color: white;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

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

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

@keyframes typingPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ============================================================
   RESPONSIVE IA
   ============================================================ */

@media (max-width: 768px) {
    .ia-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ia-form-row {
        grid-template-columns: 1fr;
    }

    .ia-message-bubble {
        max-width: 85%;
    }

    .ia-final-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ia-final-actions-left,
    .ia-final-actions-right {
        width: 100%;
    }

    .ia-final-actions .btn {
        flex: 1;
    }

    .ia-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
/* ============================================================
   ADMIN — MESSAGES
   ============================================================ */

.admin-messages {
    animation: fadeIn 0.3s ease;
}

.admin-message-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.admin-message-item .btn-secondary,
.admin-message-item .btn-primary {
    transition: all 0.2s ease;
}

.admin-message-item .btn-secondary:hover,
.admin-message-item .btn-primary:hover {
    transform: translateY(-1px);
}

/* ============================================================
   ADMIN — AVIS
   ============================================================ */

.admin-avis {
    animation: fadeIn 0.3s ease;
}

.admin-avis-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-avis-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Barre de répartition */
.admin-avis .glass-card div[style*="overflow:hidden"] {
    transition: width 0.5s ease;
}

/* ============================================================
   BADGE MESSAGES (dans l'onglet)
   ============================================================ */

#admin-messages-badge {
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .admin-message-item > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-message-item > div:first-child > div:last-child {
        width: 100%;
        justify-content: space-between;
    }

    .admin-avis-item > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-message-item .btn-secondary,
    .admin-message-item .btn-primary {
        flex: 1;
        justify-content: center;
    }
}