/* === Variables & Base === */
:root {
    --cmrap-navy: #0a2a5e;
    --cmrap-blue: #00aeef;
    --cmrap-primary: #0d1d67;
    --cmrap-secondary: #4285f4;
    --cmrap-orange: #f7941d;
    --cmrap-red: #ed1c24;
    --cmrap-yellow: #ffd700;
    --cmrap-dark: #1a1a2e;
}

body {
    font-family: "CareemSans", sans-serif;
    color: var(--cmrap-dark);
    /* background: #f5f6fa;*/
    background: #fff;
    font-weight: 400;
}

/* === Header Top Bar === */
.header-top {
    background: var(--cmrap-navy);
    color: #fff;
    font-size: 0.85rem;
}

/* === Logo === */
.logo-img {
    height: 48px;
    width: auto;
}
.gov-logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    background: transparent;
}

/* === Prix (USD/EUR + équivalent CDF) === */
.price-amount {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    cursor: pointer;
    user-select: none;
}
.price-amount .amount-primary {
    font-weight: 600;
}
.price-amount .amount-toggle {
    font-size: 0.65rem;
    opacity: 0.55;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0 4px;
    line-height: 1.2;
}
.price-amount:hover .amount-toggle {
    opacity: 0.95;
}
.price-amount .amount-cdf {
    font-size: 0.72rem;
    opacity: 0.75;
    white-space: nowrap;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(160deg, #0a2a5e 0%, #1565c0 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -5%;
    width: 480px;
    height: 480px;
    background: rgba(255, 255, 255, 0.07);
    opacity: 1;
    border-radius: 50%;
}

.stat-box {
    text-align: center;
    min-width: 100px;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cmrap-orange);
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

/* === Recherche Avancée === */
.search-advanced {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
}
.search-filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.search-filter-item {
    flex: 1;
    min-width: 160px;
    text-align: left;
}
.search-filter-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 4px;
    padding-left: 2px;
}
.search-filter-select {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
    color: #333 !important;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.search-filter-select:focus {
    border-color: var(--cmrap-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.25) !important;
}
.search-filter-select:disabled {
    background-color: rgba(200, 200, 200, 0.6) !important;
    cursor: not-allowed;
    opacity: 0.65;
}
.search-advanced .input-group .form-control {
    border-radius: 8px 0 0 8px !important;
}
.search-advanced .input-group .btn {
    border-radius: 0 8px 8px 0 !important;
}
@media (max-width: 768px) {
    .search-filters-row {
        flex-direction: column;
        gap: 8px;
    }
    .search-filter-item {
        min-width: 100%;
    }
}

/* === Filtres Catégories === */
.btn-filter {
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    padding: 8px 18px;
    transition: all 0.2s;
}
.btn-filter:hover {
    border-color: var(--cmrap-blue);
    color: var(--cmrap-blue);
}
.btn-filter.active {
    background: var(--cmrap-blue);
    color: #fff;
    border-color: var(--cmrap-blue);
}

/* === Section Title === */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cmrap-navy);
}

/* === Service Cards === */
.service-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    border: 1px solid #eef0f5;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.15);
    border-left-color: var(--cmrap-orange);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.card-title {
    color: var(--cmrap-navy);
    font-weight: 600;
}

.badge-category {
    background: #e3f2fd;
    color: var(--cmrap-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.detail-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--cmrap-orange);
    font-weight: 600;
}

/* === Category Cards === */
.categorie-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px 30px;
    text-align: center;
    border: 1px solid #eef0f5;
    box-shadow: 0 4px 16px rgba(10, 42, 94, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.categorie-card::before {
    display: none;
}
.categorie-card::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.05),
        rgba(247, 148, 29, 0.05)
    );
    transition: all 0.4s;
}
.categorie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(10, 42, 94, 0.14);
    border-color: rgba(0, 174, 239, 0.25);
}
.categorie-card:hover::before {
    display: none;
}
.categorie-card:hover::after {
    bottom: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.08),
        rgba(247, 148, 29, 0.08)
    );
}
.categorie-card-icon {
    font-size: 3rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(10, 42, 94, 0.06),
        rgba(0, 174, 239, 0.08)
    );
    transition: all 0.35s;
    line-height: 1;
}
.categorie-card:hover .categorie-card-icon {
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.12),
        rgba(247, 148, 29, 0.1)
    );
    transform: scale(1.08);
}
.categorie-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--cmrap-navy);
    margin: 14px 0 16px;
    line-height: 1.35;
}
.categorie-card-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    background: rgba(0, 174, 239, 0.06);
    padding: 8px 20px;
    border-radius: 50px;
}
.categorie-card-count .count-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cmrap-blue);
    line-height: 1;
}
.categorie-card-count .count-label {
    font-size: 0.82rem;
    color: #8c95a6;
    font-weight: 500;
}
.categorie-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--cmrap-orange);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--cmrap-orange);
    transition: all 0.3s;
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.categorie-card-link i {
    transition: transform 0.3s;
}
.categorie-card:hover .categorie-card-link {
    background: transparent;
    color: var(--cmrap-orange);
    border-color: var(--cmrap-orange);
    opacity: 0.85;
}
.categorie-card:hover .categorie-card-link i {
    transform: translateX(3px);
}

/* === Service Detail === */
.service-detail-header {
    background: linear-gradient(135deg, var(--cmrap-navy), var(--cmrap-blue));
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

/* Informations pratiques card */
.info-pratiques-card {
    border-radius: 12px !important;
    overflow: hidden;
}
.info-pratiques-header {
    background: linear-gradient(135deg, var(--cmrap-navy), var(--cmrap-blue));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}
.info-pratiques-header i {
    font-size: 1.3rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f5;
    transition: background 0.2s;
}
.info-item:hover {
    background: #f8f9fb;
}
.info-item-last {
    border-bottom: none;
}
.info-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #8c95a6;
}
.info-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cmrap-navy);
    line-height: 1.35;
}

.hover-bg:hover {
    background: #f5f6fa;
}

/* === Commentaires Section === */
.commentaires-section {
    border-radius: 12px !important;
}
.comment-form-wrapper {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eef0f5;
}
.comment-form-wrapper .input-group-text {
    background: #fff;
    border-right: none;
    color: var(--cmrap-blue);
}
.comment-form-wrapper .form-control {
    border-left: none;
}
.comment-form-wrapper .form-control:focus {
    box-shadow: none;
    border-color: var(--cmrap-blue);
}
.comment-form-wrapper .input-group .form-control:focus ~ .input-group-text,
.comment-form-wrapper .input-group:focus-within .input-group-text {
    border-color: var(--cmrap-blue);
}
.comment-form-wrapper textarea.form-control {
    border-left: 1px solid #dee2e6;
}
.comment-form-wrapper textarea.form-control:focus {
    border-color: var(--cmrap-blue);
}
.btn-comment-submit {
    background: linear-gradient(135deg, var(--cmrap-navy), var(--cmrap-blue));
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-comment-submit:hover {
    background: linear-gradient(135deg, var(--cmrap-blue), var(--cmrap-navy));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #eef0f5;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cmrap-navy), var(--cmrap-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.comment-body {
    flex: 1;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.comment-author {
    color: var(--cmrap-navy);
    font-size: 0.95rem;
}
.comment-date {
    font-size: 0.78rem;
    color: #8c95a6;
}
.comment-text {
    margin: 0;
    color: #444;
    line-height: 1.6;
    font-size: 0.92rem;
}

/* === Section Ministre === */
.ministre-section {
    background: linear-gradient(135deg, #f0f4fa 0%, #e8f4fd 100%);
}
.ministre-photo-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 42, 94, 0.18);
    border: 4px solid #fff;
}
.ministre-photo-main img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #f8fafc;
    display: block;
}
.ministre-photo-thumb {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 42, 94, 0.12);
    border: 3px solid #fff;
    transition: transform 0.3s;
}
.ministre-photo-thumb:hover {
    transform: scale(1.03);
}
.ministre-photo-thumb img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8fafc;
    display: block;
}
.ministre-info {
    padding-left: 10px;
}
.ministre-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cmrap-navy), var(--cmrap-blue));
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.ministre-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cmrap-navy);
    margin-bottom: 6px;
}
.ministre-title {
    color: var(--cmrap-blue);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.ministre-desc {
    color: #444;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.ministre-desc p:last-child {
    margin-bottom: 0;
}
.ministre-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ministre-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--cmrap-blue);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.ministre-action-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.15);
}
.ministre-action-item i {
    font-size: 1.3rem;
    color: #555;
    min-width: 24px;
}
.ministre-action-item span {
    font-weight: 600;
    color: var(--cmrap-navy);
    font-size: 0.92rem;
}
@media (max-width: 991.98px) {
    .ministre-photo-main img {
        height: 300px;
    }
    .ministre-info {
        padding-left: 0;
        margin-top: 10px;
    }
    .ministre-name {
        font-size: 1.6rem;
    }
}

/* === Contact Section === */
.contact-section {
    background: #fff;
}
.contact-card {
    border-radius: 12px;
    background: #f5f6fa;
    height: 100%;
    transition: transform 0.2s;
}
.contact-card:hover {
    transform: translateY(-3px);
}
.contact-icon {
    font-size: 2rem;
    color: var(--cmrap-blue);
    display: block;
    margin-bottom: 8px;
}

/* === Footer === */
.footer-main {
    background: var(--cmrap-secondary);
    color: #fff;
    font-size: 0.85rem;
}
.footer-main .footer-accent {
    color: var(--cmrap-orange);
}
.footer-nav-link {
    color: #fff;
    text-decoration: none;
}
.footer-nav-link:hover {
    color: #fff;
    text-decoration: none;
}

/* === Search Form === */
.search-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.25);
    border-color: var(--cmrap-blue);
}
.search-form .btn-danger {
    background: var(--cmrap-orange);
    border-color: var(--cmrap-orange);
}
.search-form .btn-danger:hover {
    background: #e0850f;
    border-color: #e0850f;
}

/* === Navbar === */
.navbar .nav-link.active {
    color: var(--cmrap-blue) !important;
    font-weight: 600;
}

/* Language dropdown — no blue active state */
#langDropdown ~ .dropdown-menu .dropdown-item.active,
#langDropdown ~ .dropdown-menu .dropdown-item:active {
    background-color: #f8f9fa;
    color: var(--cmrap-navy);
    font-weight: 600;
}
#langDropdown ~ .dropdown-menu .dropdown-item:hover {
    background-color: #f0f2f5;
    color: var(--cmrap-navy);
}

/* === Pagination === */
.pagination .page-link {
    color: var(--cmrap-blue);
}
.pagination .page-item.active .page-link {
    background-color: var(--cmrap-blue);
    border-color: var(--cmrap-blue);
    color: #fff;
}

/* === Admin === */

/* Layout */
.admin-body {
    font-family: "Inter", sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    height: 100vh;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--cmrap-navy) 0%, #071d45 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    overflow: hidden;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}
.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}
.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cmrap-blue), var(--cmrap-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}
.sidebar-user-info {
    display: flex;
    flex-direction: column;
}
.sidebar-user-name {
    font-size: 0.88rem;
    font-weight: 600;
}
.sidebar-user-role {
    font-size: 0.72rem;
    opacity: 0.5;
}
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 20px;
}
.sidebar-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}
.sidebar-nav-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
    padding: 10px 14px 6px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.sidebar-link.active {
    background: linear-gradient(135deg, var(--cmrap-blue), #0098d0);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}
.sidebar-link i {
    font-size: 1.15rem;
    min-width: 20px;
}
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logout {
    width: 100%;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
.sidebar-logout:hover {
    background: rgba(237, 28, 36, 0.15);
    color: var(--cmrap-red);
}

/* Main area */
.admin-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background: #fff;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8eaef;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-title {
    font-weight: 700;
    color: var(--cmrap-navy);
    font-size: 1.25rem;
}
.topbar-date {
    font-size: 0.82rem;
    color: #8c95a6;
    font-weight: 500;
}
.admin-content {
    padding: 28px 30px;
    flex: 1;
}

/* Stat cards */
.admin-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f5;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.admin-stat-info {
    display: flex;
    flex-direction: column;
}
.admin-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cmrap-navy);
    line-height: 1;
}
.admin-stat-label {
    font-size: 0.82rem;
    color: #8c95a6;
    font-weight: 500;
    margin-top: 4px;
}

/* Table cards */
.admin-table-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f5;
    overflow: hidden;
}
.admin-table-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef0f5;
}
.admin-table-body {
    overflow-x: auto;
}
.admin-table thead {
    background: #f8f9fb;
}
.admin-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8c95a6;
    font-weight: 700;
    border-bottom: none;
    padding: 14px 20px;
}
.admin-table tbody td {
    padding: 14px 20px;
    vertical-align: middle;
    border-color: #f0f2f5;
    font-size: 0.9rem;
}
.admin-table tbody tr {
    transition: background 0.15s;
}
.admin-table tbody tr:hover {
    background: #f8f9fb;
}
.admin-badge-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(0, 174, 239, 0.1);
    color: var(--cmrap-blue);
}

/* Buttons */
.admin-btn-primary {
    background: linear-gradient(135deg, var(--cmrap-navy), var(--cmrap-blue));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 22px;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.admin-btn-primary:hover {
    background: linear-gradient(135deg, var(--cmrap-blue), var(--cmrap-navy));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.25);
}
.admin-btn-secondary {
    background: #fff;
    color: var(--cmrap-navy);
    border: 1px solid #dde0e7;
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 22px;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.admin-btn-secondary:hover {
    background: #f0f2f5;
    color: var(--cmrap-navy);
    border-color: #c5c9d2;
}
.admin-btn-edit {
    background: rgba(0, 174, 239, 0.1);
    color: var(--cmrap-blue);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s;
}
.admin-btn-edit:hover {
    background: var(--cmrap-blue);
    color: #fff;
}
.admin-btn-delete {
    background: rgba(237, 28, 36, 0.08);
    color: var(--cmrap-red);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s;
}
.admin-btn-delete:hover {
    background: var(--cmrap-red);
    color: #fff;
}

/* Form cards */
.admin-form-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f5;
    overflow: hidden;
}
.admin-form-body {
    padding: 28px;
}
.admin-form-body .form-label {
    font-size: 0.85rem;
    color: var(--cmrap-navy);
}
.admin-form-body .form-control,
.admin-form-body .form-select {
    border-radius: 8px;
    border: 1px solid #dde0e7;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.admin-form-body .form-control:focus,
.admin-form-body .form-select:focus {
    border-color: var(--cmrap-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}
.admin-form-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eef0f5;
    display: flex;
    gap: 12px;
}

/* Alerts */
.admin-alert-success {
    background: rgba(0, 174, 239, 0.08);
    border: 1px solid rgba(0, 174, 239, 0.2);
    color: var(--cmrap-navy);
    border-radius: 10px;
    font-weight: 500;
}
.admin-alert-error {
    background: rgba(237, 28, 36, 0.06);
    border: 1px solid rgba(237, 28, 36, 0.15);
    color: var(--cmrap-red);
    border-radius: 10px;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-content {
        padding: 20px 16px;
    }
    .admin-topbar {
        padding: 12px 16px;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .logo-img {
        height: 38px;
    }
    .gov-logo-img {
        height: 42px;
        width: 42px;
    }
    .pouvoir-card {
        padding: 28px 20px;
    }
    .pouvoir-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    .pouvoir-card-title {
        font-size: 1.15rem;
    }
}

/* === Pouvoir Cards === */
.pouvoir-card {
    background: #fff;
    border-radius: 24px;
    padding: 44px 30px 36px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(10, 42, 94, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eef0f5;
}
.pouvoir-card::before {
    display: none;
}
.pouvoir-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 42, 94, 0.15);
    border-color: rgba(0, 174, 239, 0.25);
}
.pouvoir-card:hover::before {
    display: none;
}
.pouvoir-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 22px;
    transition: all 0.35s;
}
.pouvoir-card-1 .pouvoir-card-icon,
.pouvoir-card-2 .pouvoir-card-icon,
.pouvoir-card-3 .pouvoir-card-icon {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}
.pouvoir-card:hover .pouvoir-card-icon {
    transform: scale(1.1);
}
.pouvoir-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cmrap-navy);
    margin-bottom: 10px;
}
.pouvoir-card-desc {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 22px;
    line-height: 1.55;
    flex: 1;
}
.pouvoir-card-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    background: rgba(0, 174, 239, 0.06);
    padding: 10px 24px;
    border-radius: 50px;
}
.pouvoir-card-count .count-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cmrap-blue);
    line-height: 1;
}
.pouvoir-card-count .count-label {
    font-size: 0.85rem;
    color: #8c95a6;
    font-weight: 500;
}
.pouvoir-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cmrap-orange);
    padding: 8px 22px;
    border-radius: 50px;
    border: 2px solid var(--cmrap-orange);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}
.pouvoir-card-link i {
    transition: transform 0.3s;
}
.pouvoir-card:hover .pouvoir-card-link {
    background: transparent;
    color: var(--cmrap-orange);
    border-color: var(--cmrap-orange);
    opacity: 0.85;
}
.pouvoir-card:hover .pouvoir-card-link i {
    transform: translateX(3px);
}

/* === Ministère Cards === */
.ministere-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 22px 28px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(10, 42, 94, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef0f5;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.ministere-card::before {
    display: none;
}
.ministere-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 36px rgba(10, 42, 94, 0.13);
    border-color: rgba(0, 174, 239, 0.25);
}
.ministere-card:hover::before {
    display: none;
}
.ministere-card-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.05);
    color: #222;
    transition: all 0.35s;
    line-height: 1;
}
.ministere-card:hover .ministere-card-icon {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
    transform: scale(1.06);
}
.ministere-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cmrap-navy);
    margin: 10px 0 16px;
    line-height: 1.35;
    flex: 1;
}
.ministere-card-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 16px;
    background: rgba(0, 174, 239, 0.06);
    padding: 6px 18px;
    border-radius: 50px;
}
.ministere-card-count .count-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cmrap-blue);
    line-height: 1;
}
.ministere-card-count .count-label {
    font-size: 0.78rem;
    color: #8c95a6;
    font-weight: 500;
}
.ministere-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cmrap-orange);
    padding: 5px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--cmrap-orange);
    transition: all 0.3s;
    margin-top: auto;
}
.ministere-card-link i {
    transition: transform 0.3s;
}
.ministere-card:hover .ministere-card-link {
    background: transparent;
    color: var(--cmrap-orange);
    border-color: var(--cmrap-orange);
    opacity: 0.85;
}
.ministere-card:hover .ministere-card-link i {
    transform: translateX(3px);
}

/* === Badge Pouvoir === */
.badge-pouvoir {
    background: rgba(10, 42, 94, 0.1);
    color: var(--cmrap-navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* === Category Group (services grouped by category) === */
.categorie-group {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(10, 42, 94, 0.05);
    border: 1px solid #eef0f5;
}
.categorie-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #eef0f5;
}
.categorie-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cmrap-navy);
    margin: 0;
}
.categorie-group-title i {
    color: var(--cmrap-navy);
}

/* === Breadcrumb === */
.breadcrumb {
    background: transparent;
    padding: 8px 0;
    font-size: 0.88rem;
}
.breadcrumb-item a {
    color: var(--cmrap-blue);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item a:hover {
    color: var(--cmrap-navy);
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* === Buttons override : aplatir les d\u00e9grad\u00e9s, look simple et l\u00e9ger === */
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.btn-secondary,
.btn-dark {
    background-image: none !important;
    box-shadow: none !important;
}
.btn-primary {
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    background-color: var(--bs-btn-bg) !important;
    border-color: var(--bs-btn-border-color) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-border-color) !important;
}
.btn-comment-submit,
.admin-btn-primary {
    background: #0d6efd !important;
    background-image: none !important;
    box-shadow: none !important;
}
.btn-comment-submit:hover,
.admin-btn-primary:hover {
    background: #0b5ed7 !important;
    background-image: none !important;
}

/* === Autocomplete intelligente === */
.autocomplete-dropdown {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(10, 42, 94, 0.13);
    border: 1.5px solid #e3e7f0;
    margin-top: 2px;
    min-width: 260px;
    max-width: 100vw;
    max-height: 340px;
    overflow-y: auto;
    font-size: 1rem;
    z-index: 1000;
}
.autocomplete-group {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cmrap-blue);
    padding: 8px 16px 4px 16px;
    border-bottom: 1px solid #f0f2f7;
    background: #f8fafd;
}
.autocomplete-item {
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.autocomplete-item.active,
.autocomplete-item:hover {
    background: linear-gradient(90deg, var(--cmrap-blue), var(--cmrap-orange));
    color: #fff;
}
.autocomplete-empty {
    padding: 16px;
    color: #888;
    text-align: center;
}

/* ================================================================
   SERVICES LISTING — Améliorations visuelles (style uniquement)
   ================================================================ */

/* Breadcrumb — pilule discrète */
.breadcrumb {
    background: rgba(10, 42, 94, 0.04);
    border: 1px solid rgba(10, 42, 94, 0.09);
    border-radius: 8px;
    padding: 8px 16px !important;
    width: fit-content;
}
.breadcrumb-item a {
    font-weight: 600;
}

/* Section-title — trait orange à gauche */
.section-title {
    border-left: 4px solid var(--cmrap-orange);
    padding-left: 12px;
    line-height: 1.25;
}

/* Boutons de vue — état actif navy */
.view-mode-group .view-mode-btn.active {
    background-color: var(--cmrap-navy) !important;
    border-color: var(--cmrap-navy) !important;
    color: #fff !important;
}

/* Ministère cards — barre accent haut au survol */
.ministere-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cmrap-blue), var(--cmrap-orange));
    border-radius: 18px 18px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.ministere-card:hover::after {
    opacity: 1;
}

/* Catégorie group — accent bleu sur séparateur du header */
.categorie-group-header {
    border-bottom-color: rgba(0, 174, 239, 0.25);
}
.categorie-group-title i {
    color: var(--cmrap-blue);
}

/* Service cards — transition de la border-left fluide */
.service-card {
    border-left-width: 3px;
    border-left-color: transparent;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-left-color 0.2s;
}
.service-card:hover {
    border-left-color: var(--cmrap-orange);
}

/* Table services — header navy + ombre douce */
.services-table {
    box-shadow: 0 2px 16px rgba(10, 42, 94, 0.07);
    border-radius: 10px;
    overflow: hidden;
}
.table-header-row th,
.services-table > thead > tr > th {
    background: linear-gradient(135deg, var(--cmrap-navy) 0%, #1565c0 100%);
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 16px;
    border: none !important;
}
.service-table-row td {
    padding: 11px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #eef0f5;
    transition: background 0.15s;
}
.service-table-row:hover td {
    background: #f0f7ff;
}
.service-table-row:hover td:first-child {
    border-left: 3px solid var(--cmrap-orange);
    padding-left: 13px;
}

/* Bouton Voir détails — couleur brand */
.services-table .btn-primary {
    background-color: var(--cmrap-blue) !important;
    border-color: var(--cmrap-blue) !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 5px 14px;
    border-radius: 8px !important;
    transition:
        background-color 0.2s,
        transform 0.15s;
}
.services-table .btn-primary:hover {
    background-color: var(--cmrap-navy) !important;
    border-color: var(--cmrap-navy) !important;
    transform: translateY(-1px);
}
.services-table .btn-primary:active {
    transform: none;
}

/* Reset display table (après modèles précédents) */
.services-table {
    display: table !important;
}
.services-table thead {
    display: table-header-group !important;
}
.services-table tbody {
    display: table-row-group !important;
}
.tree-row {
    display: table-row !important;
}
.tree-row td {
    display: table-cell !important;
}

/* ================================================================= */
/* === V2 � VISUAL REFRESH (2026) � appended, overrides earlier === */
/* ================================================================= */

/* --- Skip link (accessibilité) --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cmrap-navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 3px solid var(--cmrap-orange);
    outline-offset: 2px;
}

/* --- Focus visible global --- */
:focus-visible {
    outline: 2px solid var(--cmrap-blue);
    outline-offset: 2px;
    border-radius: 4px;
}
.navbar :focus-visible,
.hero-search-card :focus-visible {
    outline-color: var(--cmrap-orange);
}

/* --- Bandeau institutionnel officiel --- */
.official-banner {
    background: linear-gradient(90deg, #061c40 0%, #0a2a5e 60%, #061c40 100%);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    padding: 6px 0;
    border-bottom: 3px solid var(--cmrap-orange);
    position: relative;
}
.official-banner-text strong {
    color: #fff;
    font-weight: 700;
}
.official-banner-text span {
    opacity: 0.85;
}
.official-flag-strip {
    display: inline-block;
    width: 26px;
    height: 17px;
    border-radius: 2px;
    background-color: #007fbc;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'><rect width='60' height='40' fill='%23007fbc'/><polygon points='0,40 60,0 60,4 4,40' fill='%23f7d117'/><polygon points='0,40 60,0 60,2 2,40' fill='%23ce1126'/><polygon points='0,40 4,40 60,4 60,0' fill='%23f7d117' opacity='0'/><polygon points='60,0 4,40 60,40' fill='none'/><g transform='translate(11,10)'><polygon points='0,-6 1.76,-1.85 6,-1.85 2.62,0.71 4.24,4.85 0,2.4 -4.24,4.85 -2.62,0.71 -6,-1.85 -1.76,-1.85' fill='%23f7d117'/></g></svg>");
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.official-badge i {
    color: var(--cmrap-yellow);
}
.official-banner-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.75rem;
}
.official-banner-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Cacher l'ancien header-top s'il existe encore ailleurs */
body > .header-top {
    display: none !important;
}

/* --- Navbar brand renforcé --- */
.brand-title-block {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-title {
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--cmrap-navy);
    letter-spacing: -0.01em;
}
.brand-subtitle {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 1px;
}
.navbar {
    border-bottom: 1px solid #eef0f5;
}
.navbar .nav-link {
    font-weight: 500;
    color: #37475a;
    border-radius: 8px;
    padding: 0.5rem 0.85rem !important;
    transition:
        background 0.15s,
        color 0.15s;
}
.navbar .nav-link:hover {
    background: #f1f5f9;
    color: var(--cmrap-navy) !important;
}
.navbar .nav-link.active {
    background: rgba(0, 174, 239, 0.08);
}

/* --- HERO REFRESH --- */
.hero-section {
    background: linear-gradient(180deg, #020e26 0%, #031a3f 100%);
    padding: 72px 0 88px !important;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}
.hero-section::before {
    display: none !important;
}
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hero-decor-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
}
.hero-decor-shape-1 {
    top: -120px;
    right: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 65%
    );
}
.hero-decor-shape-2 {
    bottom: -140px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(
        circle at center,
        rgba(247, 148, 29, 0.15) 0%,
        transparent 65%
    );
}
.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1180px;
}
.hero-grid {
    display: block;
}
.hero-content {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.hero-building-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 62%;
    user-select: none;
    pointer-events: none;
}
.hero-building-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 72% 62% at 50% 34%,
            rgba(2, 14, 38, 0.66) 0%,
            rgba(2, 14, 38, 0.3) 55%,
            rgba(2, 14, 38, 0) 82%
        ),
        linear-gradient(
            180deg,
            rgba(2, 14, 38, 0.55) 0%,
            rgba(2, 14, 38, 0.12) 42%,
            rgba(2, 14, 38, 0.42) 100%
        );
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-eyebrow i {
    color: var(--cmrap-yellow);
    font-size: 0.95rem;
}
.hero-title {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem) !important;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.hero-subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.18rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 460px;
    line-height: 1.55;
    margin-left: auto;
    margin-right: auto;
}

/* Carte de recherche hero */
.hero-search-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 16px !important;
    padding: 0 !important;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none;
}
.hero-search-inputgroup {
    box-shadow: 0 14px 40px rgba(6, 22, 60, 0.35);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    padding: 6px;
}
.hero-search-inputgroup .hero-search-icon,
.hero-search-inputgroup .hero-search-input.form-control {
    background: #fff !important;
    border: 0 !important;
}
.hero-search-icon {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-right: 0 !important;
    color: var(--cmrap-navy) !important;
    padding-left: 18px !important;
    padding-right: 8px !important;
    font-size: 1.1rem;
}
.hero-search-input.form-control {
    border: 1px solid #e2e8f0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 14px 16px !important;
    font-size: 1.02rem !important;
    box-shadow: none !important;
}
.hero-search-input.form-control::placeholder {
    color: #94a3b8;
}
.hero-search-input.form-control:focus {
    border-color: #e2e8f0 !important;
}
.hero-search-btn.btn-danger {
    background: linear-gradient(135deg, #d62828 0%, #9d1c1c 100%) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0 30px !important;
    font-size: 1rem !important;
    letter-spacing: 0.01em;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(214, 40, 40, 0.4);
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        filter 0.15s;
}
.hero-search-btn.btn-danger:hover,
.hero-search-btn.btn-danger:focus {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(214, 40, 40, 0.55);
    transform: translateY(-1px);
}
.hero-filters-toggle {
    background: transparent;
    border: 1px dashed rgba(10, 42, 94, 0.25);
    color: var(--cmrap-navy);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 30px;
    transition: all 0.15s;
}
.hero-filters-toggle:hover {
    background: rgba(0, 174, 239, 0.08);
    border-style: solid;
    border-color: var(--cmrap-blue);
    color: var(--cmrap-blue);
}
.hero-reset-btn.btn-outline-light {
    background: transparent;
    border-color: rgba(10, 42, 94, 0.3) !important;
    color: var(--cmrap-navy) !important;
    font-size: 0.82rem;
    border-radius: 30px;
}
.hero-reset-btn.btn-outline-light:hover {
    background: rgba(237, 28, 36, 0.08) !important;
    border-color: var(--cmrap-red) !important;
    color: var(--cmrap-red) !important;
}

/* Recherche avancée dans la hero: fond transparent (dans la card blanche) */
.hero-search-card.search-advanced {
    background: transparent !important;
    border: 0 !important;
}
.hero-search-card .search-filter-label {
    color: rgba(255, 255, 255, 0.85);
}
.hero-search-tools {
    justify-content: center !important;
}
.hero-filters-toggle {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
}
.hero-filters-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}
.hero-reset-btn.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Stats — bande unifiée */
.hero-stats-strip {
    margin-top: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    background: rgba(2, 20, 44, 0.72);
    border: 1px solid rgba(56, 140, 220, 0.25);
    padding: 18px 20px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}
.hero-stats-strip .stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 0;
    min-width: auto;
    padding: 0 20px;
}
.hero-stats-strip .stat-ico {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(247, 208, 23, 0.6);
    color: var(--cmrap-yellow);
    font-size: 1.25rem;
}
.hero-stats-strip .stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.hero-stats-strip .stat-number {
    font-size: 1.7rem !important;
    color: var(--cmrap-yellow) !important;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.hero-stats-strip .stat-label {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 0.01em;
    font-weight: 500;
}
.hero-stats-strip .stat-divider {
    width: 1px;
    height: 42px;
    justify-self: center;
    background: rgba(255, 255, 255, 0.16);
}

/* --- Section titles homogènes --- */
.section-title {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    color: var(--cmrap-navy);
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 14px;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: linear-gradient(180deg, var(--cmrap-orange), var(--cmrap-red));
    border-radius: 2px;
}

/* --- Pouvoir cards uniformisées --- */
.pouvoir-card {
    border-radius: 20px !important;
    padding: 36px 26px 30px !important;
    border: 1px solid #e5e9f2 !important;
    box-shadow: 0 4px 20px rgba(10, 42, 94, 0.05) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%) !important;
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s,
        border-color 0.25s !important;
}
.pouvoir-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 40px rgba(10, 42, 94, 0.15) !important;
    border-color: rgba(247, 148, 29, 0.4) !important;
}
.pouvoir-card-icon {
    width: 76px !important;
    height: 76px !important;
    border-radius: 20px !important;
    background: linear-gradient(
        135deg,
        rgba(10, 42, 94, 0.08),
        rgba(0, 174, 239, 0.1)
    ) !important;
    color: var(--cmrap-navy) !important;
    font-size: 2rem !important;
    margin-bottom: 18px !important;
}
.pouvoir-card-1 .pouvoir-card-icon {
    background: linear-gradient(
        135deg,
        rgba(10, 42, 94, 0.1),
        rgba(0, 174, 239, 0.14)
    ) !important;
    color: var(--cmrap-navy) !important;
}
.pouvoir-card-2 .pouvoir-card-icon {
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.1),
        rgba(0, 174, 239, 0.2)
    ) !important;
    color: #0086b8 !important;
}
.pouvoir-card-3 .pouvoir-card-icon {
    background: linear-gradient(
        135deg,
        rgba(247, 148, 29, 0.1),
        rgba(247, 148, 29, 0.22)
    ) !important;
    color: #b8630f !important;
}
.pouvoir-card-4 .pouvoir-card-icon {
    background: linear-gradient(
        135deg,
        rgba(237, 28, 36, 0.08),
        rgba(237, 28, 36, 0.18)
    ) !important;
    color: #a80f16 !important;
}
.pouvoir-card:hover .pouvoir-card-icon {
    transform: scale(1.06) !important;
}
.pouvoir-card-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--cmrap-navy) !important;
    letter-spacing: -0.01em;
    margin-bottom: 8px !important;
}
.pouvoir-card-desc {
    font-size: 0.85rem !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
}
.pouvoir-card-count {
    background: linear-gradient(
        90deg,
        rgba(0, 174, 239, 0.08),
        rgba(0, 174, 239, 0.12)
    ) !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    margin-bottom: 18px !important;
}
.pouvoir-card-count .count-number {
    font-size: 1.55rem !important;
    color: var(--cmrap-navy) !important;
    font-weight: 800 !important;
}
.pouvoir-card-count .count-label {
    font-size: 0.75rem !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pouvoir-card-link {
    background: var(--cmrap-navy) !important;
    color: #fff !important;
    border: 0 !important;
    padding: 9px 22px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(10, 42, 94, 0.15);
    transition: all 0.2s !important;
}
.pouvoir-card:hover .pouvoir-card-link {
    background: var(--cmrap-orange) !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: 0 4px 14px rgba(247, 148, 29, 0.4);
}

/* --- Sticky search bar : plus discrète, mieux intégrée --- */
.sticky-search-bar {
    background: #fff;
    border-bottom: 1px solid #e5e9f2;
    box-shadow: 0 2px 8px rgba(10, 42, 94, 0.04);
}

/* --- Footer refresh --- */
.footer-main {
    background: var(--cmrap-secondary);
    color: rgba(255, 255, 255, 0.9) !important;
    border-top: 3px solid var(--cmrap-orange);
    margin-top: 40px;
}
.footer-institutional {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}
.footer-institutional.footer-institutional-inline {
    background: transparent;
    border-bottom: none;
    padding: 0 0 14px;
}
.footer-emblem {
    height: 52px;
    width: 52px;
    object-fit: contain;
    filter: brightness(1.1);
}
.footer-institutional-text {
    text-align: left;
}
.footer-institutional-text .fw-bold {
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.footer-nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition:
        color 0.15s,
        padding-left 0.15s;
    display: inline-block;
}
.footer-nav-link:hover {
    color: var(--cmrap-orange) !important;
    padding-left: 3px;
}
.footer-legal {
    padding-top: 12px;
    color: rgba(255, 255, 255, 0.65);
}
.footer-legal-links a {
    color: rgba(255, 255, 255, 0.75) !important;
}
.footer-legal-links a:hover {
    color: var(--cmrap-orange) !important;
}
.footer-copy {
    color: rgba(255, 255, 255, 0.65);
}

/* --- Responsive fine-tuning --- */
@media (max-width: 768px) {
    .official-banner {
        font-size: 0.72rem;
    }
    .official-banner-text .d-none.d-md-inline {
        display: none;
    }
    .hero-section {
        padding: 44px 0 56px !important;
    }
    .hero-eyebrow {
        font-size: 0.72rem;
        padding: 5px 11px;
        margin-bottom: 14px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content .hero-search-card {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: 2rem !important;
        max-width: none;
    }
    .hero-subtitle {
        font-size: 0.92rem;
    }
    .hero-building-photo {
        width: 150%;
        height: auto;
        right: -25%;
        opacity: 0.16;
    }
    .hero-building-overlay {
        background: linear-gradient(
            90deg,
            rgba(6, 28, 64, 0.96),
            rgba(6, 28, 64, 0.8)
        );
    }
    .hero-search-tools {
        justify-content: center !important;
    }
    .hero-search-card {
        padding: 0 !important;
        border-radius: 16px !important;
    }
    .hero-search-input.form-control {
        padding: 12px 14px !important;
        font-size: 0.95rem !important;
    }
    .hero-search-btn.btn-danger {
        padding: 0 16px !important;
    }
    .hero-stats-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 16px;
        border-radius: 18px;
        margin-top: 26px;
    }
    .hero-stats-strip .stat-box {
        padding: 8px 6px;
    }
    .hero-stats-strip .stat-number {
        font-size: 1.35rem !important;
    }
    .hero-stats-strip .stat-label {
        font-size: 0.78rem !important;
    }
    .hero-stats-strip .stat-divider {
        display: none;
    }
    .section-title {
        font-size: 1.3rem !important;
    }
    .brand-title {
        font-size: 0.92rem;
    }
    .footer-institutional-text {
        text-align: center;
    }
}

/* --- Prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* =================================================================
   === PRO LIST REFRESH — Vue liste ministères / services (2026-08) ===
   Refonte visuelle de la table pour un rendu éditorial style SaaS
   (Linear / Stripe / Vercel) sans toucher au HTML.
   ================================================================= */

/* Container de table : bordure discrète au lieu du shadow marketing */
.services-table {
    box-shadow: none !important;
    border: 1px solid #e6e8ef !important;
    border-radius: 14px !important;
    background: #fff !important;
    overflow: hidden;
}

/* En-tête : fond crème très clair + libellés petits capitales espacés */
.services-table > thead > tr > th,
.table-header-row th,
.services-table thead.table-dark tr th {
    background: #fafbfd !important;
    background-image: none !important;
    color: #64748b !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    padding: 15px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #e6e8ef !important;
}

/* Lignes : bordures fines, hover subtil, sans striping */
.services-table tbody tr {
    transition: background 0.15s;
}
.services-table.table-striped tbody tr:nth-of-type(odd) > *,
.services-table.table-striped tbody tr:nth-of-type(even) > * {
    --bs-table-bg-type: transparent !important;
    background: transparent !important;
}
.services-table tbody tr:hover,
.services-table.table-hover tbody tr:hover > * {
    background: #f7f9fd !important;
    --bs-table-bg-state: transparent !important;
}
.services-table tbody td {
    padding: 16px 20px !important;
    vertical-align: middle !important;
    border-top: 0 !important;
    border-bottom: 1px solid #eef0f5 !important;
    background: transparent !important;
}
.services-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Cellule nom : caps assumées façon éditoriale (fin, petit, espacé, navy sombre) */
.services-table tbody td:first-child a,
.services-table tbody td:first-child .fw-semibold {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #0a1e40 !important;
    letter-spacing: 0.015em !important;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
}
.services-table tbody td:first-child a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition:
        background 0.2s,
        transform 0.2s;
}
.services-table tbody tr:hover td:first-child a::before {
    background: #d62828;
    transform: scale(1.4);
}
.services-table tbody td:first-child a:hover {
    color: #d62828 !important;
}

/* Cellule compteur : plus de pilule bleue, un vrai chiffre tabulaire */
.services-table td .badge.bg-primary.bg-opacity-10,
.services-table td .badge.text-primary,
.services-table tr.drill-row td .badge,
.services-table tr.tree-row td .badge {
    background: transparent !important;
    color: #0a2a5e !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    font-variant-numeric: tabular-nums;
    padding: 0 !important;
    border-radius: 0 !important;
    letter-spacing: 0;
}

/* Boutons d'action : chips carrés arrondis, ghost par défaut */
.services-table .btn-outline-primary,
.services-table .btn-sm.btn-outline-primary {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e6e8ef !important;
    color: #0a2a5e !important;
    background: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.18s;
}
.services-table .btn-outline-primary:hover {
    background: #0a2a5e !important;
    border-color: #0a2a5e !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 42, 94, 0.18);
}

/* Bouton expand "+" : remplacer look brut par chip cohérent */
.services-table .tree-expand-btn,
.tree-expand-btn {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #e6e8ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #0a2a5e !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: all 0.18s;
    vertical-align: middle;
}
.services-table .tree-expand-btn:hover,
.tree-expand-btn:hover {
    background: #d62828 !important;
    border-color: #d62828 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(214, 40, 40, 0.28);
}
.services-table .tree-expand-btn.expanded,
.tree-expand-btn.expanded {
    background: #0a2a5e !important;
    border-color: #0a2a5e !important;
    color: #fff !important;
}

/* Sélecteur de vue : contrôle segmenté propre */
.view-mode-group {
    background: #fff;
    border: 1px solid #e6e8ef !important;
    border-radius: 12px !important;
    padding: 4px;
    gap: 2px;
    display: inline-flex;
    box-shadow: none !important;
}
.view-mode-group .view-mode-btn,
.view-mode-group .btn.view-mode-btn {
    border: 0 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    color: #64748b !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.18s;
    font-size: 0.9rem;
}
.view-mode-group .view-mode-btn:hover {
    color: #0a2a5e !important;
    background: #f2f5fb !important;
}
.view-mode-group .view-mode-btn.active,
.view-mode-group .view-mode-btn:focus.active {
    background: #0a2a5e !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(10, 42, 94, 0.2) !important;
}

/* Bouton "retour" (Tous les pouvoirs) : ghost pill discret */
.btn-outline-secondary.btn-sm {
    border: 1px solid #e6e8ef !important;
    color: #334155 !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.18s;
}
.btn-outline-secondary.btn-sm:hover {
    background: #0a2a5e !important;
    border-color: #0a2a5e !important;
    color: #fff !important;
}

/* En-tête de section : hiérarchie plus fine et accent rouge */
.section-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #0a1e40 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 6px !important;
    line-height: 1.15;
}
.section-title i {
    color: #d62828 !important;
    font-size: 1.35rem !important;
    vertical-align: 1px;
    margin-right: 10px !important;
}

/* Meta ligne sous le titre ("30 Ministères — 4791 Services") */
.section-title + p.text-muted,
.section-title ~ p.text-muted {
    font-size: 0.85rem !important;
    color: #64748b !important;
    letter-spacing: 0.02em;
    font-weight: 500 !important;
}
.section-title + p.text-muted strong,
.section-title ~ p.text-muted strong {
    color: #0a2a5e;
    font-weight: 700;
}

/* Bloc responsive : bordure et hauteur */
.services-table + .table-responsive,
.table-responsive:has(.services-table) {
    border-radius: 14px;
    overflow: hidden;
}

/* Mobile : compact + actions superposées */
@media (max-width: 640px) {
    .services-table > thead > tr > th,
    .services-table tbody td {
        padding: 12px 14px !important;
    }
    .services-table tbody td:first-child a {
        font-size: 0.85rem !important;
    }
    .services-table .btn-outline-primary,
    .services-table .tree-expand-btn {
        width: 32px !important;
        height: 32px !important;
    }
    .view-mode-group .view-mode-btn {
        padding: 6px 10px !important;
    }
    .section-title {
        font-size: 1.35rem !important;
    }
}

/* =================================================================
   === PRO LIST REFRESH v2 — Registre éditorial (2026-08) ===
   ================================================================= */

/* Suppression du bouton "+" (tree-expand) : action redondante avec la ligne cliquable */
.services-table .tree-expand-btn,
.services-table td .tree-expand-btn,
.tree-expand-btn {
    display: none !important;
}

/* Compteur automatique de lignes (registre officiel style N°01, N°02…) */
.services-table tbody {
    counter-reset: ministere;
}
.services-table tbody tr {
    counter-increment: ministere;
}
.services-table tbody td:first-child {
    padding-left: 24px !important;
    position: relative;
}
.services-table tbody td:first-child::before {
    content: counter(ministere, decimal-leading-zero);
    display: inline-block;
    width: 34px;
    text-align: right;
    margin-right: 16px;
    font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.08em;
    vertical-align: middle;
    transition: color 0.2s;
}
.services-table tbody tr:hover td:first-child::before {
    color: #d62828;
}

/* Nom du ministère : puce ronde plus fine et alignement propre */
.services-table tbody td:first-child a,
.services-table tbody td:first-child .fw-semibold {
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    color: #0a1e40 !important;
    letter-spacing: 0.015em !important;
    line-height: 1.35;
    display: inline;
    text-transform: none;
}
.services-table tbody td:first-child a::before {
    display: none;
}

/* Colonne compteur : gros chiffre + libellé "services" en dessous */
.services-table tbody td:nth-child(2) {
    text-align: right !important;
    padding-right: 8px !important;
    line-height: 1.15;
}
.services-table tbody td:nth-child(2) .badge {
    display: inline-block !important;
    background: transparent !important;
    color: #0a2a5e !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    padding: 0 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
}
.services-table tbody td:nth-child(2)::after {
    content: "services";
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 3px;
}
.services-table thead > tr > th:nth-child(2),
.services-table thead > tr > th:last-child {
    text-align: right !important;
    padding-right: 20px !important;
}

/* Colonne action : bouton icône uniquement (œil) */
.services-table tbody td:last-child {
    text-align: right !important;
    padding-right: 20px !important;
}
.services-table .btn-outline-primary,
.services-table .btn-sm.btn-outline-primary {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e6ef !important;
    color: #0a2a5e !important;
    background: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.services-table .btn-outline-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #0a2a5e 0%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 0;
}
.services-table .btn-outline-primary i {
    position: relative;
    z-index: 1;
    line-height: 1;
    transition: transform 0.2s;
}
.services-table .btn-outline-primary:hover {
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 42, 94, 0.3);
}
.services-table .btn-outline-primary:hover::before {
    opacity: 1;
}
.services-table .btn-outline-primary:hover i {
    transform: scale(1.15);
}

/* Icône œil : force bi-eye et légère taille */
.services-table .btn-outline-primary i.bi-eye,
.services-table .btn-outline-primary i.bi-eye-fill {
    font-size: 1.1rem;
    color: inherit;
}

/* Sur mobile : compact */
@media (max-width: 640px) {
    .services-table .btn-outline-primary {
        width: 36px !important;
        height: 36px !important;
    }
    .services-table tbody td:first-child {
        padding-left: 14px !important;
    }
    .services-table tbody td:first-child::before {
        display: none;
    }
}

/* Ligne : trait navy à gauche au hover pour renforcer l'accent registre */
.services-table tbody tr {
    box-shadow: inset 3px 0 0 transparent;
    transition:
        background 0.15s,
        box-shadow 0.2s;
}
.services-table tbody tr:hover {
    box-shadow: inset 3px 0 0 #0a2a5e;
}

/* En-tête de section : eyebrow rouge + titre navy + fine ligne dorée */
.section-title {
    position: relative;
    padding-top: 4px;
}
h2.section-title::before {
    content: attr(data-eyebrow);
    display: none;
}
.section-title + p.text-muted {
    font-size: 0.82rem !important;
    color: #64748b !important;
    letter-spacing: 0.02em;
    font-weight: 500 !important;
    margin-top: 2px !important;
}
.section-title + p.text-muted::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #d62828;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 2px;
}

/* Contour du contenant table plus généreux avec ombre douce */
.services-table {
    border: 1px solid #e6e8ef !important;
    border-radius: 14px !important;
    box-shadow:
        0 1px 0 rgba(10, 30, 64, 0.02),
        0 12px 32px -20px rgba(10, 30, 64, 0.15) !important;
}

/* Stagger fade-in sur les lignes au premier chargement */
@keyframes ministereFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.services-table tbody tr {
    animation: ministereFadeIn 0.35s ease-out both;
}
.services-table tbody tr:nth-child(1) {
    animation-delay: 0.02s;
}
.services-table tbody tr:nth-child(2) {
    animation-delay: 0.04s;
}
.services-table tbody tr:nth-child(3) {
    animation-delay: 0.06s;
}
.services-table tbody tr:nth-child(4) {
    animation-delay: 0.08s;
}
.services-table tbody tr:nth-child(5) {
    animation-delay: 0.1s;
}
.services-table tbody tr:nth-child(6) {
    animation-delay: 0.12s;
}
.services-table tbody tr:nth-child(7) {
    animation-delay: 0.14s;
}
.services-table tbody tr:nth-child(8) {
    animation-delay: 0.16s;
}
.services-table tbody tr:nth-child(n + 9) {
    animation-delay: 0.18s;
}

/* En-tête colonnes réajustés */
.services-table > thead > tr > th {
    padding: 16px 20px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.1em !important;
    color: #94a3b8 !important;
    background: #fbfcfe !important;
}
.services-table > thead > tr > th:first-child {
    padding-left: 74px !important;
}

/* =================================================================
   === PRO LIST REFRESH v3 — Monogrammes + Casse + Barres (2026-08) ===
   ================================================================= */

/* Suppression du compteur numérique (::before de la 1re cellule) — remplacé par monogramme JS */
.services-table tbody td:first-child {
    padding-left: 20px !important;
}
.services-table tbody td:first-child::before {
    display: none !important;
    content: none !important;
}
.services-table > thead > tr > th:first-child {
    padding-left: 20px !important;
}
.services-table > thead > tr > th:nth-child(2) {
    text-align: left !important;
    padding-left: 0 !important;
}

/* Cellule ministère : lien devient flex avec monogramme + titre en Title Case */
.services-table tbody td:first-child a {
    display: inline-flex !important;
    align-items: center;
    gap: 14px;
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #0a1e40 !important;
    letter-spacing: 0 !important;
    line-height: 1.3;
}
.services-table tbody td:first-child a .min-name {
    display: inline-block;
    max-width: 460px;
    transition:
        color 0.2s,
        transform 0.2s;
}
.services-table tbody td:first-child a:hover .min-name {
    color: #d62828 !important;
    transform: translateX(2px);
}

/* Monogramme : cercle 40px coloré selon un hash HSL */
.services-table .min-mono {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family:
        "Inter",
        -apple-system,
        sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: hsl(var(--mh, 210deg), 42%, 34%);
    background: linear-gradient(
        135deg,
        hsl(var(--mh, 210deg), 62%, 96%) 0%,
        hsl(var(--mh, 210deg), 55%, 90%) 100%
    );
    border: 1px solid hsl(var(--mh, 210deg), 40%, 88%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.services-table tbody tr:hover .min-mono {
    transform: scale(1.05) rotate(-2deg);
    box-shadow:
        0 6px 14px -4px hsla(var(--mh, 210deg), 55%, 45%, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: hsl(var(--mh, 210deg), 55%, 78%);
}

/* Colonne compteur : chiffre + barre de densité (JS insère <span class="min-bar">) */
.services-table tbody td:nth-child(2) {
    text-align: left !important;
    padding-left: 8px !important;
    padding-right: 24px !important;
    line-height: 1.15;
    white-space: nowrap;
    min-width: 180px;
}
.services-table tbody td:nth-child(2)::after {
    display: none !important;
    content: none !important;
}
.services-table tbody td:nth-child(2) .badge {
    display: inline-block !important;
    background: transparent !important;
    color: #0a1e40 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    padding: 0 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em;
    vertical-align: middle;
    min-width: 42px;
    text-align: right;
}

/* Barre de densité (indicateur relatif au max de la liste) */
.services-table .min-bar {
    display: inline-block;
    vertical-align: middle;
    margin-left: 14px;
    width: 96px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2f7 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}
.services-table .min-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--w, 0%);
    background: linear-gradient(90deg, #0a2a5e 0%, #3b82f6 55%, #06b6d4 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 1px rgba(10, 42, 94, 0.06);
}
.services-table tbody tr:hover .min-bar::before {
    background: linear-gradient(90deg, #d62828 0%, #f97316 100%);
}

/* En-tête colonnes v3 */
.services-table > thead > tr > th:nth-child(2) {
    text-align: left !important;
    padding-left: 8px !important;
}
.services-table > thead > tr > th:last-child {
    text-align: right !important;
    padding-right: 24px !important;
}

/* Ligne : hauteur homogène + micro-relief navy à gauche au hover */
.services-table tbody td {
    padding: 14px 20px !important;
}
.services-table tbody tr {
    box-shadow: inset 3px 0 0 transparent;
}
.services-table tbody tr:hover {
    box-shadow: inset 3px 0 0 #0a2a5e;
    background: #f7f9fd !important;
}

/* Bouton œil : léger accent violet-navy dégradé pour un rendu plus premium */
.services-table .btn-outline-primary,
.services-table .btn-sm.btn-outline-primary {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e6ef !important;
    background: #fff !important;
    color: #0a2a5e !important;
    box-shadow: 0 1px 2px rgba(10, 30, 64, 0.04);
}
.services-table .btn-outline-primary::before {
    background: linear-gradient(135deg, #0a2a5e 0%, #3b82f6 100%);
}
.services-table .btn-outline-primary:hover {
    box-shadow: 0 10px 24px -6px rgba(10, 42, 94, 0.4);
    transform: translateY(-2px);
}

/* Mobile : monogramme plus petit, nom pleine largeur */
@media (max-width: 640px) {
    .services-table .min-mono {
        width: 34px;
        height: 34px;
        font-size: 0.72rem;
        border-radius: 10px;
    }
    .services-table tbody td:first-child a {
        gap: 10px;
        font-size: 0.85rem !important;
    }
    .services-table tbody td:first-child a .min-name {
        max-width: 200px;
    }
    .services-table .min-bar {
        display: none;
    }
    .services-table tbody td:nth-child(2) {
        min-width: 0;
        padding-right: 8px !important;
    }
    .services-table tbody td:nth-child(2) .badge {
        font-size: 1.05rem !important;
    }
    .services-table tbody td {
        padding: 12px 12px !important;
    }
    .services-table > thead > tr > th:first-child {
        padding-left: 12px !important;
    }
}

/* =================================================================
   === PRO LIST REFRESH v4 � Sobre & �pur� (2026-08) ===
   Z�ro couleur d�corative. Palette : blanc, gris, navy, un point rouge discret.
   Style r�f�rentiel : Notion / Vercel Dashboard / GitHub tables.
   ================================================================= */

/* --- Suppression des ornements v3 --- */
.services-table .min-mono {
    display: none !important;
}
.services-table .min-bar {
    display: none !important;
}

/* --- Table : cadre minimal, aucune ombre --- */
.services-table {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

/* --- Ent�te colonnes : uniforme, sobre --- */
.services-table > thead > tr > th,
.services-table thead.table-dark tr th,
.table-header-row th {
    background: #ffffff !important;
    background-image: none !important;
    color: #6b7280 !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 14px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.services-table > thead > tr > th:first-child {
    padding-left: 20px !important;
    text-align: left !important;
}
.services-table > thead > tr > th:nth-child(2) {
    text-align: left !important;
    padding-left: 0 !important;
}
.services-table > thead > tr > th:last-child {
    text-align: right !important;
    padding-right: 20px !important;
}

/* --- Cellules : hauteur d'a�ration, ligne fine, aucun accent gauche --- */
.services-table tbody td {
    padding: 14px 20px !important;
    vertical-align: middle !important;
    border-top: 0 !important;
    border-bottom: 1px solid #f1f3f5 !important;
    background: transparent !important;
}
.services-table tbody tr:last-child td {
    border-bottom: 0 !important;
}
.services-table tbody tr {
    box-shadow: none !important;
    transition: background 0.12s;
    animation: none !important;
}
.services-table tbody tr:hover,
.services-table.table-hover tbody tr:hover > * {
    box-shadow: none !important;
    background: #fafbfc !important;
    --bs-table-bg-state: transparent !important;
}

/* --- Nom du minist�re : Title Case, poids mod�r�, navy sombre --- */
.services-table tbody td:first-child a {
    display: inline !important;
    gap: 0 !important;
    font-weight: 500 !important;
    font-size: 0.92rem !important;
    color: #0f172a !important;
    letter-spacing: 0 !important;
    line-height: 1.4;
    text-transform: none !important;
}
.services-table tbody td:first-child a .min-name {
    max-width: none;
    transform: none !important;
    color: inherit !important;
    transition: color 0.15s;
}
.services-table tbody td:first-child a:hover,
.services-table tbody td:first-child a:hover .min-name {
    color: #0a2a5e !important;
    text-decoration: underline;
    text-decoration-color: rgba(10, 42, 94, 0.25);
    text-underline-offset: 3px;
    transform: none !important;
}

/* --- Colonne compteur : chiffre nu tabulaire, gris moyen, align� � droite --- */
.services-table tbody td:nth-child(2) {
    text-align: right !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
    white-space: nowrap;
    min-width: 90px;
    font-variant-numeric: tabular-nums;
}
.services-table tbody td:nth-child(2) .badge {
    display: inline !important;
    background: transparent !important;
    color: #374151 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    padding: 0 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    min-width: 0;
}
.services-table > thead > tr > th:nth-child(2) {
    text-align: right !important;
    padding-right: 20px !important;
    padding-left: 0 !important;
}

/* --- Bouton �il : neutre, minimal, sans d�grad� --- */
.services-table tbody td:last-child {
    text-align: right !important;
    padding-right: 20px !important;
}
.services-table .btn-outline-primary,
.services-table .btn-sm.btn-outline-primary {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    background: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: none !important;
    transition:
        color 0.15s,
        border-color 0.15s,
        background 0.15s;
    position: relative;
    transform: none !important;
}
.services-table .btn-outline-primary::before {
    display: none !important;
}
.services-table .btn-outline-primary i {
    position: static;
    transform: none !important;
    font-size: 0.95rem;
    color: inherit;
}
.services-table .btn-outline-primary:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #0f172a !important;
    transform: none !important;
    box-shadow: none !important;
}
.services-table .btn-outline-primary:hover i {
    transform: none !important;
}

/* --- Section titre : plus discret --- */
.section-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 4px !important;
    padding-top: 0 !important;
}
.section-title i {
    color: #6b7280 !important;
    font-size: 1.15rem !important;
    margin-right: 8px !important;
    vertical-align: 1px;
}
.section-title + p.text-muted,
.section-title ~ p.text-muted {
    font-size: 0.82rem !important;
    color: #6b7280 !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
}
.section-title + p.text-muted::before,
.section-title ~ p.text-muted::before {
    display: none !important;
    content: none !important;
}

/* --- Contr�le segment� (vue cards/mosaic/list) : sobre --- */
.view-mode-group {
    background: #ffffff;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 3px;
}
.view-mode-group .view-mode-btn,
.view-mode-group .btn.view-mode-btn {
    border: 0 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    color: #6b7280 !important;
    background: transparent !important;
    font-size: 0.9rem;
    box-shadow: none !important;
}
.view-mode-group .view-mode-btn:hover {
    background: #f3f4f6 !important;
    color: #0f172a !important;
}
.view-mode-group .view-mode-btn.active {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* --- Bouton retour --- */
.btn-outline-secondary.btn-sm {
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}
.btn-outline-secondary.btn-sm:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #0f172a !important;
}

/* --- Mobile --- */
@media (max-width: 640px) {
    .services-table tbody td {
        padding: 12px 14px !important;
    }
    .services-table > thead > tr > th {
        padding: 12px 14px !important;
    }
    .services-table tbody td:first-child a {
        font-size: 0.85rem !important;
    }
    .services-table tbody td:nth-child(2) .badge {
        font-size: 0.9rem !important;
    }
    .section-title {
        font-size: 1.25rem !important;
    }
}

/* Bloc à concaténer en fin de style.css */

/* =================================================================
   === DRILLDOWN (accordion inline hiérarchique) — 2026-08 ===
   Bouton "+" navy 40×40 + rotation croix + sous-tableau indenté
   ================================================================= */

/* Cellule action : les 2 boutons alignés à droite */
.services-table td.drill-actions {
    text-align: right !important;
    padding-right: 20px !important;
    white-space: nowrap;
}
.services-table td.drill-actions > .btn + .btn {
    margin-left: 8px;
}

/* Bouton + : uniquement l'icône bleu foncé, aucun background ni bordure */
.services-table .btn-drill,
.services-table .btn-sm.btn-drill,
.drill-toggle {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 0 !important;
    background: transparent !important;
    color: #0a2a5e !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition:
        color 0.15s,
        transform 0.15s;
    box-shadow: none !important;
}
.drill-toggle i.bi-plus-lg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    line-height: 1;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a2a5e;
    -webkit-text-stroke: 1px #0a2a5e;
    text-stroke: 1px #0a2a5e;
}
.drill-toggle:hover {
    background: transparent !important;
    color: #1e40af !important;
    transform: scale(1.15);
    box-shadow: none !important;
}
.drill-toggle:hover i.bi-plus-lg {
    color: #1e40af;
}
.drill-toggle:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* État ouvert : le "+" devient croix (rotation 45°), toujours sans background */
.drill-toggle.open {
    background: transparent !important;
    color: #0a2a5e !important;
    border: 0 !important;
}
.drill-toggle.open i.bi-plus-lg {
    transform: rotate(45deg);
    color: #0a2a5e;
}

/* Loader (spin léger pendant fetch) */
.drill-toggle.loading i.bi-plus-lg {
    animation: drillSpin 0.6s linear infinite;
}
.drill-toggle.error {
    color: #b91c1c !important;
    animation: drillShake 0.35s ease-in-out;
}
.drill-toggle.error i.bi-plus-lg {
    color: #b91c1c;
}
@keyframes drillSpin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes drillShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

/* Œil : bleu foncé (assurer cohérence avec + ; conserve hover animé) */
.services-table .drill-view.btn-outline-primary {
    border: 1px solid #0a2a5e !important;
    color: #0a2a5e !important;
    background: #ffffff !important;
}
.services-table .drill-view.btn-outline-primary:hover {
    background: #0a2a5e !important;
    color: #ffffff !important;
    border-color: #0a2a5e !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 42, 94, 0.32);
}

/* Ligne container des enfants : fond gris très pâle (sans bande bleue) */
tr.drill-children-row > td {
    padding: 0 !important;
    background: #f8fafc !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

/* Sous-tableau : reset des marges, hérite du look propre du parent */
table.drill-child-table {
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 0 !important;
}
table.drill-child-table > tbody > tr > td {
    background: transparent !important;
    border-top: 0 !important;
    border-bottom: 1px dashed #e5e7eb !important;
    padding: 12px 20px !important;
    font-size: 0.9rem;
    text-align: left;
}
table.drill-child-table > tbody > tr > td:first-child {
    text-align: left !important;
}
table.drill-child-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}
table.drill-child-table > tbody > tr:hover > td {
    background: rgba(10, 42, 94, 0.03) !important;
}

/* Icône de niveau + guide arborescent */
.drill-tree-guide {
    display: inline-block;
    width: 14px;
    height: 1px;
    background: #cbd5e1;
    vertical-align: middle;
    margin-right: 8px;
}
.drill-child-icon {
    color: #64748b;
    font-size: 0.95rem;
    margin-right: 8px;
    vertical-align: -1px;
}
.drill-name {
    color: #0f172a !important;
    font-weight: 500;
}
.drill-name:hover {
    color: #0a2a5e !important;
    text-decoration: underline !important;
}

/* Coût (pour service) : chip discret */
.drill-cost {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: #475569;
    background: #eef2f7;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* Prix « dans fiche » au niveau service : GRAS et très visible */
.drill-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}
.drill-price i {
    font-size: 0.85rem;
    color: #059669;
}
.drill-price-free {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
    font-weight: 700;
}
.drill-price-var {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: normal;
}

/* Message "aucun enfant" */
.drill-empty {
    padding: 20px 24px;
    color: #64748b;
    font-style: italic;
    text-align: center;
    background: transparent;
}

/* Boutons plus petits pour les niveaux enfants */
table.drill-child-table .drill-view.btn-outline-primary {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    font-size: 0.8rem;
}
table.drill-child-table .drill-toggle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.95rem;
}
table.drill-child-table .drill-toggle i.bi-plus-lg {
    font-size: 1.05rem;
    -webkit-text-stroke: 1px #0a2a5e;
}

/* Badges et compteurs de la table services : plus petits, non gras */
.services-table tbody td .badge {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    padding: 3px 8px !important;
}
.services-table tbody td.text-center {
    font-weight: 400 !important;
}

/* Mobile : compact */
@media (max-width: 640px) {
    .services-table td.drill-actions {
        padding-right: 12px !important;
    }
    .services-table td.drill-actions > .btn + .btn {
        margin-left: 4px;
    }
    .drill-toggle {
        width: 32px !important;
        height: 32px !important;
    }
    .services-table .drill-view.btn-outline-primary {
        width: 32px !important;
        height: 32px !important;
    }
    table.drill-child-table > tbody > tr > td {
        padding: 10px 12px !important;
        font-size: 0.82rem;
    }
}

/* =================================================================
   === PRO SERVICES v5 — Fiche liste des services d'un ministère ===
   Standard « site gouvernemental international » (gov.uk / service-public.fr).
   Palette sobre : navy #0a2a5e, gris neutres, blanc. Aucun dégradé cyan.
   Cible : page ?pouvoir=X&ministere=Y — lignes .service-table-row +
   vue cartes (.categorie-group / .service-card).
   ================================================================= */

/* ---------- VUE LISTE (tableau des services) ---------- */

/* Ligne service : aération, séparateur fin, accent navy discret au survol */
.services-table tbody tr.service-table-row td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f3f5 !important;
    background: transparent !important;
    transition: background 0.14s ease;
}
.services-table tbody tr.service-table-row:last-child td {
    border-bottom: 0 !important;
}
.services-table tbody tr.service-table-row:hover td {
    background: #f8fafc !important;
    border-left: 0 !important;
    padding-left: 20px !important;
}
/* Barre d'accent navy à gauche au survol (via box-shadow, sans décaler) */
.services-table tbody tr.service-table-row:hover td:first-child {
    box-shadow: inset 3px 0 0 #0a2a5e;
}

/* Nom du service : titre lisible, navy sombre */
.services-table tbody tr.service-table-row td:first-child a {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-transform: none !important;
    transition: color 0.14s;
}
.services-table tbody tr.service-table-row:hover td:first-child a {
    color: #0a2a5e !important;
}
/* Sous-texte (fait générateur) : description sobre, limitée à 1 ligne élégante */
.services-table tbody tr.service-table-row td:first-child small {
    display: block !important;
    margin-top: 3px !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    line-height: 1.4;
    font-weight: 400;
}

/* Colonne Ministère (desktop) : neutraliser l'alignement compteur hérité de v4 */
.services-table tbody tr.service-table-row td:nth-child(2) {
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    min-width: 0 !important;
    white-space: normal !important;
}
.services-table tbody tr.service-table-row td:nth-child(2) span {
    font-size: 0.82rem !important;
    color: #64748b !important;
}

/* Colonne Prix (desktop) : chip monochrome discret */
.services-table tbody tr.service-table-row td:nth-child(3) {
    text-align: left !important;
}
.services-table tbody tr.service-table-row td:nth-child(3) .badge.bg-success,
.services-table
    tbody
    tr.service-table-row
    td:nth-child(3)
    .fw-semibold.text-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: 1px solid #d1fae5 !important;
}

/* Bouton « Détails » : pilule navy sobre (remplace le cyan) */
.services-table tbody tr.service-table-row td:last-child {
    text-align: right !important;
}
.services-table .btn.btn-primary,
.services-table .btn-sm.btn-primary {
    background: #0a2a5e !important;
    background-image: none !important;
    border: 1px solid #0a2a5e !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition:
        background 0.15s,
        transform 0.15s,
        box-shadow 0.15s;
}
.services-table .btn.btn-primary i {
    font-size: 0.9rem;
    margin: 0 !important;
}
.services-table .btn.btn-primary:hover {
    background: #123a7a !important;
    border-color: #123a7a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 42, 94, 0.25) !important;
}
.services-table .btn.btn-primary:active {
    transform: none;
    box-shadow: none !important;
}

/* ---------- VUE CARTES (groupée par catégorie) ---------- */

/* Conteneur de groupe : carte épurée, bord fin, ombre légère */
.categorie-group {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.categorie-group-header {
    border-bottom: 1px solid #eef0f5;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.categorie-group-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0a2a5e !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
}
.categorie-group-title i {
    color: #94a3b8 !important;
    font-size: 0.95rem;
}
.categorie-group-header .badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Carte service : élévation subtile, focus navy (pas d'orange criard) */
.service-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    box-shadow: none !important;
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        transform 0.18s;
}
.service-card:hover {
    transform: translateY(-3px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 24px rgba(10, 42, 94, 0.1) !important;
}
.service-card .card-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.service-card:hover .card-title {
    color: #0a2a5e !important;
}
.service-card .card-text {
    font-size: 0.82rem !important;
    color: #64748b !important;
    line-height: 1.45;
}
.service-card .detail-link {
    color: #0a2a5e !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin-top: 14px;
    transition: gap 0.15s;
}
.service-card:hover .detail-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Coût dans la carte : chip vert sobre */
.service-card .text-muted .bi-cash-coin {
    color: #059669 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .services-table tbody tr.service-table-row td {
        padding: 13px 14px !important;
    }
    .services-table tbody tr.service-table-row td:first-child a {
        font-size: 0.9rem !important;
    }
    .services-table .btn.btn-primary {
        padding: 7px 12px !important;
        font-size: 0.76rem !important;
    }
    .categorie-group {
        padding: 18px 16px;
    }
}

/* =================================================================
   === PRO v6 — Fil d'Ariane masqué + stats jaunes + prix en gras ===
   ================================================================= */

/* 1) Retirer le fil d'Ariane (path) sur toutes les interfaces publiques */
nav[aria-label="breadcrumb"],
.breadcrumb,
.svc-bc {
    display: none !important;
}
/* Masquer aussi le conteneur qui l'enveloppe (supprime marge + séparateurs résiduels) */
.container:has(> nav[aria-label="breadcrumb"]) {
    display: none !important;
}
/* Exception : le conteneur Parcours de vie porte tout le contenu, pas seulement le fil d'Ariane */
#parcours-vie > .container {
    display: block !important;
}

/* 2) Stats du header (accueil) en jaune officiel, bien visibles */
.hero-stats-strip .stat-number {
    color: var(--cmrap-yellow) !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* 3) Prix des services : GRAS et très visibles partout */

/* Partial montant (cartes, listes, fiche) */
.price-amount,
.price-amount .amount-primary {
    font-weight: 800 !important;
    color: #047857 !important;
    letter-spacing: -0.01em;
}

/* Badge prix vert dans la table des services (vue liste) */
.services-table tbody tr.service-table-row td:nth-child(3) .badge.bg-success,
.services-table
    tbody
    tr.service-table-row
    td:nth-child(3)
    .fw-semibold.text-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #a7f3d0 !important;
    letter-spacing: -0.01em;
}
.services-table
    tbody
    tr.service-table-row
    td:nth-child(3)
    .badge.bg-success
    .bi-cash-coin {
    color: #059669 !important;
}

/* Badges prix "variable" : conserver visibilité, texte gras */
.services-table
    tbody
    tr.service-table-row
    td:nth-child(3)
    .badge.bg-success:not(:has(.bi-cash-coin)) {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}

/* Prix dans les cartes de service (vue cartes / mosaïque) */
.service-card .badge.bg-success,
.service-card-mosaic .badge.bg-success,
.service-card small .price-amount,
.service-card .text-muted .price-amount {
    font-weight: 800 !important;
    color: #047857 !important;
    font-size: 0.9rem !important;
}
.service-card .badge.bg-success,
.service-card-mosaic .badge.bg-success {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
}

/* Fiche service : le montant principal reste dominant */
.price-amt,
.price-amount .amount-primary {
    font-weight: 800 !important;
}
