/* ==========================================================================
   ESPACE ADMINISTRATION Zimé-N'Vôlé (BACKOFFICE)
   Style moderne, professionnel, épuré, responsive
   ========================================================================== */

.admin-body {
    background-color: #f8fafc;
    color: #1e293b;
    display: flex;
    min-height: 100vh;
    margin: 0;
}

/* Barre latérale (Sidebar) */
.admin-sidebar {
    width: 260px;
    background: #0f2742;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.25s ease-in-out;
}

.admin-brand {
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.admin-brand a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.admin-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}

.admin-brand span {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.admin-nav {
    padding: 0.90rem 0.65rem;
    flex-grow: 1;
    overflow-y: auto;
}

.admin-nav::-webkit-scrollbar {
    width: 5px;
}

.admin-nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.admin-nav-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 0.4rem 0.65rem 0.2rem 0.65rem;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
}

.admin-nav-heading:first-of-type {
    margin-top: 0;
    padding-top: 0.1rem;
}

/* Groupes de navigation rétractables / déroulables */
.admin-nav-group {
    margin-bottom: 0.25rem;
}

.admin-nav-heading-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 0.45rem 0.65rem;
    margin-top: 0.35rem;
    border-radius: var(--radius-sm, 6px);
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: left;
    user-select: none;
}

.admin-nav-group:first-of-type .admin-nav-heading-btn {
    margin-top: 0;
    padding-top: 0.2rem;
}

.admin-nav-heading-btn:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav-heading-btn:focus-visible {
    outline: 2px solid #004b93;
    outline-offset: 1px;
}

.admin-nav-heading-btn .nav-group-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    color: #64748b;
}

.admin-nav-heading-btn:hover .nav-group-chevron {
    color: #cbd5e1;
}

.admin-nav-group.collapsed .nav-group-chevron {
    transform: rotate(-90deg);
}

.admin-nav-group-content {
    transition: opacity 0.2s ease;
}

.admin-nav-group.collapsed .admin-nav-group-content {
    display: none;
}

.admin-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.4rem 0.65rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.70rem;
    color: #94a3b8;
    border-radius: var(--radius-sm);
    margin-bottom: 0.18rem;
    font-weight: 600;
    font-size: 0.87rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-nav-item.active {
    background: #004b93;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 75, 147, 0.4);
}

.admin-nav-item svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex-shrink: 0;
}

.badge-count {
    margin-left: auto;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
}

/* Pied de la barre latérale & liens de déconnexion/site */
.admin-sidebar-footer {
    padding: 0.65rem 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    flex-shrink: 0;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.70rem;
    color: #94a3b8;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.87rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-sidebar-link svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex-shrink: 0;
}

.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-sidebar-link.text-danger {
    color: #f87171;
}

.admin-sidebar-link.text-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Voile d'ombrage mobile */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 23, 46, 0.55);
    backdrop-filter: blur(2px);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.admin-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Conteneur principal (Main Wrapper) */
.admin-main,
.admin-main-wrapper {
    margin-left: 260px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    transition: margin-left 0.25s ease-in-out, width 0.25s ease-in-out;
}

/* Barre de navigation supérieure (Header Admin) */
.admin-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 80;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    gap: 1rem;
}

.admin-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.admin-sidebar-toggle:hover {
    background: #e2e8f0;
    color: #004b93;
}

.admin-sidebar-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-topbar-title h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.admin-user-info {
    text-align: right;
    line-height: 1.35;
}

/* Contenu de la page */
.admin-content {
    padding: 1.75rem 2rem;
    flex-grow: 1;
    min-width: 0;
}

/* En-tête de page standardisé */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-page-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #03172e;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.3px;
}

.admin-page-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

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

/* Cartes et panneaux */
.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

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

/* Grilles adaptatives */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

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

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.admin-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

/* Alertes & Notifications */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0;
}

.alert-succes, .alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-erreur, .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Icônes dans les boutons */
.btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0;
}

.metric-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.metric-card,
.metric-card-link {
    cursor: pointer;
}

a.metric-card:hover,
.metric-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #004b93;
}

.metric-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: #03172e;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.metric-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #eff6ff;
    color: #004b93;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex-shrink: 0;
}

/* Tables d'administration */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: #f8fafc;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.badge-active { background: #e8f7ee; color: #166534; }
.badge-inactive { background: #fef2f2; color: #991b1b; }
.badge-unread { background: #ffedd5; color: #9a3412; }
.badge-read { background: #f1f5f9; color: #475569; }

/* Mot de passe avec oeil */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #0f172a;
}

/* WYSIWYG Editor */
.wysiwyg-wrapper {
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.wysiwyg-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.wysiwyg-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #334155;
    transition: var(--transition);
}

.wysiwyg-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wysiwyg-content {
    min-height: 220px;
    padding: 1.25rem;
    outline: none;
    line-height: 1.7;
}

/* Modals personnalisés (interdiction alert/confirm - AI_RULES.md) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 23, 46, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: var(--transition);
}

.modal-backdrop:not(.active) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.modal-backdrop:not(.active) * {
    pointer-events: none !important;
}

.modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-backdrop.active * {
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 520px;
    padding: 2.2rem;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
    }
    .admin-main,
    .admin-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .admin-topbar {
        padding: 0 1rem;
        height: 60px;
    }
    .admin-sidebar-toggle {
        display: inline-flex !important;
    }
    .admin-content {
        padding: 1.25rem 1rem;
    }
    .admin-user-info {
        display: none;
    }
}

@media (max-width: 640px) {
    .metrics-grid,
    .admin-grid-2,
    .admin-grid-3,
    .admin-grid-4 {
        grid-template-columns: 1fr !important;
    }
    .admin-page-header,
    .admin-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .admin-card {
        padding: 1.25rem 1rem;
    }
    .admin-topbar-title h2 {
        font-size: 0.95rem;
        max-width: 200px;
    }
}

/* Placeholder pour l'éditeur WYSIWYG quand vide */
.wysiwyg-content:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
    font-style: italic;
}

/* Gestion et redimensionnement d'images dans l'éditeur */
.wysiwyg-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: outline 0.15s ease, box-shadow 0.15s ease;
    display: inline-block;
}

.wysiwyg-content img.wysiwyg-img-selected {
    outline: 3px solid #004b93 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(0, 75, 147, 0.25) !important;
}

.wysiwyg-image-toolbar {
    position: absolute;
    background: #03172e;
    color: #ffffff;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    z-index: 100;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    font-size: 0.78rem;
    animation: fadeIn 0.15s ease-out;
}

.wysiwyg-image-toolbar span.toolbar-label {
    font-weight: 700;
    color: #94a3b8;
    margin-right: 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.wysiwyg-image-toolbar button {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: background 0.15s;
}

.wysiwyg-image-toolbar button:hover {
    background: #004b93;
    color: #ffffff;
    border-color: #004b93;
}

.wysiwyg-image-toolbar button.btn-img-suppr {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fca5a5;
    margin-left: 0.25rem;
}

.wysiwyg-image-toolbar button.btn-img-suppr:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Aperçu Live du Bandeau Défilant */
.bandeau-live-preview-box {
    background: #03172e;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid #004b93;
    position: relative;
}

.bandeau-preview-aspect {
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.3s ease;
}

.bandeau-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 23, 46, 0.4) 0%, rgba(3, 23, 46, 0.65) 100%);
    pointer-events: none;
}

.bandeau-preview-watermark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 75, 147, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Cadre et poignées interactives de redimensionnement de l'image au curseur */
.wysiwyg-resize-box {
    position: absolute;
    border: 2px dashed #004b93;
    pointer-events: none;
    z-index: 90;
    box-sizing: border-box;
}

.wysiwyg-resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 2px solid #004b93;
    border-radius: 2px;
    pointer-events: auto;
    z-index: 95;
    box-sizing: border-box;
}

.wysiwyg-resize-handle.handle-nw { top: -5px; left: -5px; cursor: nwse-resize; }
.wysiwyg-resize-handle.handle-ne { top: -5px; right: -5px; cursor: nesw-resize; }
.wysiwyg-resize-handle.handle-se { bottom: -5px; right: -5px; cursor: nwse-resize; width: 12px; height: 12px; background: #004b93; }
.wysiwyg-resize-handle.handle-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.wysiwyg-resize-handle.handle-e {
    top: 0;
    right: -5px;
    width: 10px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    border: none;
}
.wysiwyg-resize-handle.handle-w {
    top: 0;
    left: -5px;
    width: 10px;
    height: 100%;
    cursor: ew-resize;
    background: transparent;
    border: none;
}
.wysiwyg-resize-handle.handle-s {
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    cursor: ns-resize;
    background: transparent;
    border: none;
}

/* Carrousel interactif multi-slides pour prévisualisation bandeau */
.bandeau-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 280px;
    overflow: hidden;
    background: #03172e;
}

.bandeau-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.bandeau-carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.bandeau-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(3, 23, 46, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
}

.bandeau-carousel-arrow svg {
    pointer-events: none;
}

.bandeau-carousel-arrow:hover {
    background: #004b93;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.bandeau-carousel-arrow.prev { left: 1rem; }
.bandeau-carousel-arrow.next { right: 1rem; }

.bandeau-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 30;
    pointer-events: auto;
}

.bandeau-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.bandeau-carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

.bandeau-carousel-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.badge-slide-actuelle {
    background: #22c55e;
    color: #ffffff;
}

.badge-slide-existante {
    background: rgba(0, 75, 147, 0.9);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

/* Styles pour la modale d'aperçu d'article */
.modal-apercu-article-card .content-box img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.25rem 0;
    display: block;
}

.modal-apercu-article-card .content-box h2,
.modal-apercu-article-card .content-box h3 {
    color: #03172e;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
}

.modal-apercu-article-card .content-box blockquote {
    border-left: 4px solid #004b93;
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: #475569;
    background: #f8fafc;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.modal-apercu-article-card .content-box ul,
.modal-apercu-article-card .content-box ol {
    margin: 1rem 0 1rem 1.75rem;
    padding: 0;
}

.modal-apercu-article-card .content-box p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* Photos zoomables au clic dans l'administration */
.photo-zoomable {
    cursor: zoom-in !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.photo-zoomable:hover,
.photo-zoomable:focus {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 14px rgba(0, 75, 147, 0.35) !important;
    outline: none;
}

.photo-zoomable:hover img,
.photo-zoomable:focus img {
    transform: scale(1.06);
}



