/* ============================================================
   CBATP SARL — Design System
   Bâtiment & Travaux Publics
   ============================================================ */

:root {
    /* Palette principale */
    --cbatp-navy: #003366;
    --cbatp-navy-dark: #001f40;
    --cbatp-navy-light: #1a4d80;
    --cbatp-orange: #f77b01;
    --cbatp-orange-dark: #d96a00;
    --cbatp-orange-light: #ff9933;

    /* Neutres */
    --cbatp-ink: #0f172a;
    --cbatp-slate-700: #334155;
    --cbatp-slate-500: #64748b;
    --cbatp-slate-400: #94a3b8;
    --cbatp-slate-300: #cbd5e1;
    --cbatp-slate-200: #e2e8f0;
    --cbatp-slate-100: #f1f5f9;
    --cbatp-slate-50: #f8fafc;

    /* Sémantique */
    --cbatp-success: #10b981;
    --cbatp-success-bg: #d1fae5;
    --cbatp-warning: #f59e0b;
    --cbatp-warning-bg: #fef3c7;
    --cbatp-danger: #ef4444;
    --cbatp-danger-bg: #fee2e2;
    --cbatp-info: #3b82f6;
    --cbatp-info-bg: #dbeafe;

    /* Géométrie */
    --cbatp-radius: 10px;
    --cbatp-radius-lg: 16px;
    --cbatp-radius-xl: 20px;

    /* Typographie */
    --cbatp-font-body: 'Inter', system-ui, -apple-system, 'Roboto', sans-serif;
    --cbatp-font-display: 'Plus Jakarta Sans', 'Poppins', 'Inter', sans-serif;

    /* Layout */
    --cbatp-sidebar-w: 260px;
}

/* ============================================================
   IMAGE DE FOND + WRAPPER 80% (BASE GLOBALE)
   ============================================================ */

body.cbatp-public,
body.cbatp-admin {
    margin: 0;
    font-family: var(--cbatp-font-body);
    color: var(--cbatp-slate-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background:
        url('/img/cbatp-bg.jpg') center center / cover no-repeat fixed,
        var(--cbatp-navy);
    min-height: 100vh;
}

/* Wrapper site public : 80% centré */
.cbatp-site-wrapper {
    width: 80%;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    min-height: 100vh;
}

/* Wrapper admin : 80% centré + grille sidebar/content */
.cbatp-admin-wrapper {
    width: 80%;
    margin: 0 auto;
    background: var(--cbatp-slate-100);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--cbatp-sidebar-w) 1fr;
}

@media (max-width: 1100px) {
    .cbatp-site-wrapper,
    .cbatp-admin-wrapper {
        width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 992px) {
    .cbatp-admin-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Container interne (override Bootstrap si besoin) */
.cbatp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .cbatp-container { padding: 0 20px; }
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

.cbatp-public h1,
.cbatp-public h2,
.cbatp-public h3,
.cbatp-public h4,
.cbatp-admin h1,
.cbatp-admin h2,
.cbatp-admin h3,
.cbatp-admin h4 {
    font-family: var(--cbatp-font-display);
    color: var(--cbatp-ink);
    line-height: 1.2;
    font-weight: 700;
}

.cbatp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cbatp-orange);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}
.cbatp-eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--cbatp-orange);
}

.cbatp-section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--cbatp-ink);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cbatp-section-subtitle {
    font-size: 16px;
    color: var(--cbatp-slate-500);
    max-width: 640px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.cbatp-section { padding: 80px 0; }

@media (max-width: 768px) {
    .cbatp-section { padding: 56px 0; }
}

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

.cbatp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: var(--cbatp-font-body);
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.cbatp-btn-primary { background: var(--cbatp-orange); color: #fff; }
.cbatp-btn-primary:hover {
    background: var(--cbatp-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 123, 1, 0.3);
}

.cbatp-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.cbatp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.cbatp-btn-dark { background: var(--cbatp-navy); color: #fff; }
.cbatp-btn-dark:hover {
    background: var(--cbatp-navy-dark);
    color: #fff;
    transform: translateY(-2px);
}

.cbatp-btn-ghost {
    background: transparent;
    color: var(--cbatp-navy);
    padding: 12px 0;
}
.cbatp-btn-ghost:hover { color: var(--cbatp-orange); }

/* ============================================================
   TOPBAR (PUBLIC)
   ============================================================ */

.cbatp-topbar {
    background: var(--cbatp-navy-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 10px 0;
}
.cbatp-topbar .cbatp-container,
.cbatp-topbar > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cbatp-topbar-info { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cbatp-topbar-info span { display: inline-flex; gap: 6px; align-items: center; }
.cbatp-topbar-info i { color: var(--cbatp-orange); }
.cbatp-topbar-info a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.cbatp-topbar-info a:hover { color: var(--cbatp-orange); }

.cbatp-topbar-social { display: flex; gap: 14px; }
.cbatp-topbar-social a {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}
.cbatp-topbar-social a:hover { background: var(--cbatp-orange); color: #fff; }

/* ============================================================
   NAVBAR (PUBLIC)
   ============================================================ */

.cbatp-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--cbatp-slate-100);
}
.cbatp-navbar .cbatp-container,
.cbatp-navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.cbatp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.cbatp-brand-logo {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--cbatp-navy);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--cbatp-font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.05em;
    position: relative;
    overflow: hidden;
}
.cbatp-brand-logo::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 14px; height: 14px;
    background: var(--cbatp-orange);
    border-radius: 50% 0 0 0;
}
.cbatp-brand-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.cbatp-brand-text { line-height: 1.1; }
.cbatp-brand-name {
    font-family: var(--cbatp-font-display);
    font-weight: 800;
    color: var(--cbatp-navy);
    font-size: 18px;
    letter-spacing: -0.02em;
}
.cbatp-brand-tagline {
    font-size: 11px;
    color: var(--cbatp-slate-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cbatp-nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cbatp-nav-menu a {
    color: var(--cbatp-ink);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.2s;
}
.cbatp-nav-menu a:hover { color: var(--cbatp-orange); }
.cbatp-nav-menu a.active { color: var(--cbatp-orange); }
.cbatp-nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0; right: 0;
    height: 3px;
    background: var(--cbatp-orange);
    border-radius: 2px 2px 0 0;
}

.cbatp-nav-cta { display: flex; gap: 12px; align-items: center; }

.cbatp-nav-toggle {
    display: none;
    background: none; border: none;
    font-size: 24px;
    color: var(--cbatp-navy);
    cursor: pointer;
}

@media (max-width: 992px) {
    .cbatp-nav-menu { display: none; }
    .cbatp-nav-toggle { display: block; }
    .cbatp-nav-cta .cbatp-btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.cbatp-hero {
    position: relative;
    padding: 80px 0 100px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cbatp-navy) 0%, var(--cbatp-navy-dark) 100%);
}
.cbatp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,31,64,0.92) 0%, rgba(0,51,102,0.75) 100%),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80') center/cover;
    z-index: 0;
}
.cbatp-hero > .container,
.cbatp-hero > .cbatp-container { position: relative; z-index: 2; }

.cbatp-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 992px) {
    .cbatp-hero-grid { grid-template-columns: 1fr; }
}

.cbatp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(247, 123, 1, 0.15);
    border: 1px solid rgba(247, 123, 1, 0.3);
    color: var(--cbatp-orange-light);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.cbatp-hero-eyebrow .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--cbatp-orange);
    animation: cbatp-pulse 2s infinite;
}
@keyframes cbatp-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.cbatp-hero h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    font-weight: 800;
}
.cbatp-hero h1 .accent { color: var(--cbatp-orange); }

.cbatp-hero p.lead {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.cbatp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cbatp-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}
.cbatp-hero-stat strong {
    display: block;
    font-family: var(--cbatp-font-display);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.cbatp-hero-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
    display: block;
}

.cbatp-hero-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--cbatp-radius-xl);
    padding: 28px;
    position: relative;
}
.cbatp-hero-card-badge {
    position: absolute;
    top: -14px; left: 24px;
    background: var(--cbatp-orange);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cbatp-hero-card h3 { color: #fff; font-size: 20px; margin-bottom: 18px; margin-top: 8px; }

.cbatp-featured-project {
    border-radius: var(--cbatp-radius);
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
}
.cbatp-featured-project::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}
.cbatp-featured-meta {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}
.cbatp-featured-meta i { color: var(--cbatp-orange); }
.cbatp-featured-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.cbatp-stats-bar {
    background: var(--cbatp-navy);
    padding: 56px 0;
    color: #fff;
}
.cbatp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (max-width: 768px) {
    .cbatp-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.cbatp-stat-item { text-align: center; }
.cbatp-stat-item i {
    font-size: 32px;
    color: var(--cbatp-orange);
    margin-bottom: 12px;
    display: block;
}
.cbatp-stat-number {
    font-family: var(--cbatp-font-display);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.cbatp-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   À PROPOS
   ============================================================ */

.cbatp-about { background: var(--cbatp-slate-50); }
.cbatp-about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 992px) {
    .cbatp-about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.cbatp-about-image-stack { position: relative; height: 480px; }
.cbatp-about-image-stack img {
    border-radius: var(--cbatp-radius-xl);
    object-fit: cover;
    position: absolute;
}
.cbatp-about-image-1 { width: 70%; height: 70%; top: 0; left: 0; }
.cbatp-about-image-2 {
    width: 50%; height: 50%;
    bottom: 0; right: 0;
    border: 8px solid #fff;
}

.cbatp-about-badge {
    position: absolute;
    top: 30%; right: 5%;
    background: var(--cbatp-orange);
    color: #fff;
    border-radius: var(--cbatp-radius);
    padding: 22px 26px;
    font-family: var(--cbatp-font-display);
    z-index: 2;
    box-shadow: 0 12px 30px rgba(247, 123, 1, 0.3);
}
.cbatp-about-badge strong {
    display: block;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}
.cbatp-about-badge span {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.cbatp-about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
    margin-bottom: 28px;
}
.cbatp-feature { display: flex; gap: 12px; align-items: flex-start; }
.cbatp-feature-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(247, 123, 1, 0.1);
    color: var(--cbatp-orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.cbatp-feature-text h4 {
    font-size: 14px;
    color: var(--cbatp-ink);
    margin-bottom: 4px;
    font-weight: 600;
}
.cbatp-feature-text p {
    font-size: 13px;
    color: var(--cbatp-slate-500);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */

.cbatp-services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}
.cbatp-services-header .left { max-width: 720px; }
.cbatp-services-header .cbatp-section-subtitle { margin-bottom: 0; }

.cbatp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 992px) {
    .cbatp-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cbatp-services-grid { grid-template-columns: 1fr; }
}

.cbatp-service-card {
    background: #fff;
    border: 1px solid var(--cbatp-slate-100);
    border-radius: var(--cbatp-radius-xl);
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cbatp-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--cbatp-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.cbatp-service-card:hover {
    border-color: var(--cbatp-orange);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.08);
}
.cbatp-service-card:hover::before { transform: scaleX(1); }
.cbatp-service-card:hover .cbatp-service-icon {
    background: var(--cbatp-orange);
    color: #fff;
}

.cbatp-service-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: var(--cbatp-slate-50);
    color: var(--cbatp-navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
    transition: all 0.3s;
}
.cbatp-service-card h3 {
    font-size: 18px;
    color: var(--cbatp-ink);
    margin-bottom: 10px;
}
.cbatp-service-card p {
    font-size: 14px;
    color: var(--cbatp-slate-500);
    line-height: 1.7;
    margin-bottom: 16px;
}
.cbatp-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cbatp-navy);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.cbatp-service-link:hover {
    color: var(--cbatp-orange);
    gap: 10px;
}

/* ============================================================
   PROJETS
   ============================================================ */

.cbatp-projects { background: var(--cbatp-slate-50); }
.cbatp-projects-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 18px;
}
.cbatp-project-card {
    border-radius: var(--cbatp-radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
}
.cbatp-project-card:hover { transform: translateY(-4px); }
.cbatp-project-card:hover .cbatp-project-img { transform: scale(1.05); }

.cbatp-project-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s;
}
.cbatp-project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,31,64,0.95) 0%, rgba(0,31,64,0.2) 60%, transparent 100%);
}
.cbatp-project-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px;
    color: #fff;
}
.cbatp-project-tag {
    display: inline-block;
    background: var(--cbatp-orange);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.cbatp-project-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 1.3;
}
.cbatp-project-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 14px;
}
.cbatp-project-card.featured { grid-row: 1 / 3; }
.cbatp-project-card.featured h3 { font-size: 26px; }

@media (max-width: 992px) {
    .cbatp-projects-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .cbatp-project-card.featured { grid-column: 1 / 3; height: 280px; }
    .cbatp-project-card:not(.featured) { height: 220px; }
}
@media (max-width: 600px) {
    .cbatp-projects-grid { grid-template-columns: 1fr; }
    .cbatp-project-card.featured { grid-column: auto; }
}

.cbatp-projects-cta { text-align: center; margin-top: 40px; }

/* ============================================================
   PARTENAIRES
   ============================================================ */

.cbatp-partners {
    background: #fff;
    padding: 64px 0;
    border-top: 1px solid var(--cbatp-slate-100);
}
.cbatp-partners-title {
    text-align: center;
    font-size: 12px;
    color: var(--cbatp-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    font-weight: 600;
}
.cbatp-partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: center;
}
@media (max-width: 768px) {
    .cbatp-partners-grid { grid-template-columns: repeat(3, 1fr); }
}
.cbatp-partner-logo {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cbatp-slate-500);
    font-family: var(--cbatp-font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    opacity: 0.6;
    transition: all 0.3s;
}
.cbatp-partner-logo:hover { opacity: 1; color: var(--cbatp-navy); }
.cbatp-partner-logo img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.cbatp-partner-logo:hover img { filter: grayscale(0%); }

/* ============================================================
   CTA + FOOTER
   ============================================================ */

.cbatp-cta {
    padding: 80px 0;
    background:
        linear-gradient(135deg, rgba(0, 31, 64, 0.95), rgba(0, 51, 102, 0.85)),
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #fff;
    text-align: center;
}
.cbatp-cta h2 {
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    margin-bottom: 14px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.cbatp-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.cbatp-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cbatp-footer {
    background: var(--cbatp-navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}
.cbatp-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .cbatp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
    .cbatp-footer-grid { grid-template-columns: 1fr; }
}

.cbatp-footer .cbatp-brand-name { color: #fff; }
.cbatp-footer .cbatp-brand-tagline { color: rgba(255, 255, 255, 0.5); }
.cbatp-footer .cbatp-brand-logo { background: var(--cbatp-orange); }

.cbatp-footer-about p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
    margin-top: 16px;
}

.cbatp-footer-social { display: flex; gap: 10px; }
.cbatp-footer-social a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.cbatp-footer-social a:hover {
    background: var(--cbatp-orange);
    transform: translateY(-2px);
    color: #fff;
}

.cbatp-footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 700;
}
.cbatp-footer-links { list-style: none; padding: 0; margin: 0; }
.cbatp-footer-links li { margin-bottom: 8px; }
.cbatp-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.cbatp-footer-links a:hover {
    color: var(--cbatp-orange);
    padding-left: 6px;
}

.cbatp-footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}
.cbatp-footer-contact-item i {
    color: var(--cbatp-orange);
    flex-shrink: 0;
    margin-top: 3px;
}

.cbatp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.cbatp-footer-bottom-links {
    display: flex;
    gap: 22px;
}
.cbatp-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.cbatp-footer-bottom-links a:hover { color: var(--cbatp-orange); }

/* ============================================================
   ADMIN — SIDEBAR
   ============================================================ */

.cbatp-sidebar {
    background: var(--cbatp-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
@media (max-width: 992px) { .cbatp-sidebar { display: none; } }

.cbatp-sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.cbatp-sidebar-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--cbatp-orange);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--cbatp-font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.05em;
    flex-shrink: 0;
}
.cbatp-sidebar-brand-text { line-height: 1.2; color: #fff; }
.cbatp-sidebar-brand-text strong {
    font-family: var(--cbatp-font-display);
    font-weight: 800;
    font-size: 16px;
    display: block;
}
.cbatp-sidebar-brand-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cbatp-sidebar-section { padding: 0 16px; margin-bottom: 20px; }
.cbatp-sidebar-section-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.cbatp-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--cbatp-radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    text-decoration: none;
    transition: all 0.2s;
}
.cbatp-sidebar-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
.cbatp-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.cbatp-sidebar-link.active {
    background: var(--cbatp-orange);
    color: #fff;
}
.cbatp-sidebar-link .badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.cbatp-sidebar-link.active .badge {
    background: rgba(255, 255, 255, 0.25);
}

.cbatp-sidebar-user {
    margin-top: auto;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}
.cbatp-sidebar-user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--cbatp-orange);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.cbatp-sidebar-user-info { flex: 1; min-width: 0; }
.cbatp-sidebar-user-info strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cbatp-sidebar-user-info small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}
.cbatp-sidebar-user a.logout {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    text-decoration: none;
}
.cbatp-sidebar-user a.logout:hover { color: var(--cbatp-orange); }

/* ============================================================
   ADMIN — TOPBAR + CONTENT
   ============================================================ */

.cbatp-main-content {
    padding: 0;
    overflow-x: hidden;
    min-width: 0;
}

.cbatp-topbar-admin {
    background: #fff;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--cbatp-slate-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.cbatp-topbar-admin-left { display: flex; align-items: center; gap: 16px; }
.cbatp-topbar-admin .menu-toggle {
    background: none; border: none;
    font-size: 22px;
    color: var(--cbatp-ink);
    cursor: pointer;
    display: none;
}
@media (max-width: 992px) { .cbatp-topbar-admin .menu-toggle { display: block; } }

.cbatp-search-box { position: relative; width: 320px; }
.cbatp-search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--cbatp-slate-200);
    border-radius: var(--cbatp-radius);
    background: var(--cbatp-slate-50);
    font-size: 14px;
    color: var(--cbatp-ink);
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.cbatp-search-box input:focus {
    background: #fff;
    border-color: var(--cbatp-orange);
    box-shadow: 0 0 0 3px rgba(247, 123, 1, 0.1);
}
.cbatp-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cbatp-slate-400);
    font-size: 16px;
}

.cbatp-topbar-admin-right { display: flex; align-items: center; gap: 16px; }

.cbatp-topbar-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--cbatp-slate-50);
    color: var(--cbatp-slate-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
}
.cbatp-topbar-icon-btn:hover {
    background: var(--cbatp-slate-100);
    color: var(--cbatp-orange);
}
.cbatp-topbar-icon-btn .dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: var(--cbatp-orange);
    border-radius: 50%;
    border: 2px solid #fff;
}

.cbatp-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--cbatp-slate-50);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.cbatp-topbar-user:hover { background: var(--cbatp-slate-100); }
.cbatp-topbar-user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--cbatp-navy);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.cbatp-topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--cbatp-ink);
}
@media (max-width: 768px) {
    .cbatp-search-box { display: none; }
    .cbatp-topbar-user-name { display: none; }
}

/* ============================================================
   ADMIN — PAGE CONTENT (cards, stats, tables…)
   ============================================================ */

.cbatp-page-content { padding: 32px; }

.cbatp-page-header {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.cbatp-page-header-left h1 {
    font-size: 28px;
    color: var(--cbatp-ink);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.cbatp-breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--cbatp-slate-500);
    align-items: center;
}
.cbatp-breadcrumb i { font-size: 11px; }
.cbatp-breadcrumb a {
    color: var(--cbatp-slate-500);
    text-decoration: none;
}
.cbatp-breadcrumb a:hover { color: var(--cbatp-orange); }
.cbatp-breadcrumb .current {
    color: var(--cbatp-ink);
    font-weight: 500;
}
.cbatp-page-actions { display: flex; gap: 10px; }

.cbatp-btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--cbatp-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.cbatp-btn-admin.primary { background: var(--cbatp-orange); color: #fff; }
.cbatp-btn-admin.primary:hover {
    background: var(--cbatp-orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(247, 123, 1, 0.3);
}
.cbatp-btn-admin.outline {
    background: #fff;
    color: var(--cbatp-slate-700);
    border: 1px solid var(--cbatp-slate-200);
}
.cbatp-btn-admin.outline:hover {
    border-color: var(--cbatp-ink);
    color: var(--cbatp-ink);
}

/* Stats cards */
.cbatp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}
@media (max-width: 1100px) { .cbatp-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cbatp-stats-row { grid-template-columns: 1fr; } }

.cbatp-stat-card {
    background: #fff;
    border-radius: var(--cbatp-radius-lg);
    padding: 22px;
    border: 1px solid var(--cbatp-slate-200);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.cbatp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.06);
}
.cbatp-stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.cbatp-stat-card-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.cbatp-stat-card.projects .cbatp-stat-card-icon { background: var(--cbatp-info-bg); color: var(--cbatp-info); }
.cbatp-stat-card.staff .cbatp-stat-card-icon { background: var(--cbatp-success-bg); color: var(--cbatp-success); }
.cbatp-stat-card.messages .cbatp-stat-card-icon { background: var(--cbatp-warning-bg); color: var(--cbatp-warning); }
.cbatp-stat-card.partners .cbatp-stat-card-icon { background: rgba(247, 123, 1, 0.15); color: var(--cbatp-orange); }

.cbatp-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}
.cbatp-stat-trend.up { background: var(--cbatp-success-bg); color: var(--cbatp-success); }
.cbatp-stat-trend.down { background: var(--cbatp-danger-bg); color: var(--cbatp-danger); }

.cbatp-stat-value {
    font-family: var(--cbatp-font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--cbatp-ink);
    line-height: 1;
    margin-bottom: 6px;
}
.cbatp-stat-label {
    font-size: 13px;
    color: var(--cbatp-slate-500);
    font-weight: 500;
}

/* Cards génériques */
.cbatp-card {
    background: #fff;
    border-radius: var(--cbatp-radius-lg);
    border: 1px solid var(--cbatp-slate-200);
    overflow: hidden;
}
.cbatp-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--cbatp-slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cbatp-card-header h3 {
    font-size: 16px;
    color: var(--cbatp-ink);
    font-weight: 700;
    margin: 0;
}
.cbatp-card-action {
    font-size: 13px;
    color: var(--cbatp-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.cbatp-card-body { padding: 24px; }

/* Dashboard grid */
.cbatp-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}
@media (max-width: 1100px) { .cbatp-dashboard-grid { grid-template-columns: 1fr; } }

/* Chart simple en barres CSS */
.cbatp-chart-container { padding: 24px; }
.cbatp-chart {
    height: 240px;
    background: linear-gradient(to bottom, var(--cbatp-slate-50) 0%, transparent 100%);
    border-radius: var(--cbatp-radius);
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 16px;
}
.cbatp-chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--cbatp-orange), var(--cbatp-orange-light));
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: opacity 0.2s;
    min-height: 8px;
}
.cbatp-chart-bar.muted {
    background: linear-gradient(to top, var(--cbatp-slate-200), var(--cbatp-slate-100));
}
.cbatp-chart-bar:hover { opacity: 0.85; }
.cbatp-chart-bar::after {
    content: attr(data-month);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--cbatp-slate-500);
    font-weight: 500;
}

/* Recent list */
.cbatp-recent-list { padding: 8px 0; }
.cbatp-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.cbatp-recent-item:hover { background: var(--cbatp-slate-50); }

.cbatp-recent-thumb {
    width: 44px; height: 44px;
    border-radius: var(--cbatp-radius);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.cbatp-recent-info { flex: 1; min-width: 0; }
.cbatp-recent-info strong {
    display: block;
    font-size: 13px;
    color: var(--cbatp-ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cbatp-recent-info small {
    font-size: 12px;
    color: var(--cbatp-slate-500);
}

.cbatp-status-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.cbatp-status-badge.live { background: var(--cbatp-success-bg); color: var(--cbatp-success); }
.cbatp-status-badge.pending { background: var(--cbatp-warning-bg); color: var(--cbatp-warning); }
.cbatp-status-badge.done { background: var(--cbatp-info-bg); color: var(--cbatp-info); }

/* Tables */
.cbatp-table-wrap { overflow-x: auto; }
.cbatp-data-table {
    width: 100%;
    border-collapse: collapse;
}
.cbatp-data-table thead th {
    text-align: left;
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 600;
    color: var(--cbatp-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--cbatp-slate-50);
    border-bottom: 1px solid var(--cbatp-slate-200);
}
.cbatp-data-table tbody td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--cbatp-slate-100);
    font-size: 13px;
    color: var(--cbatp-slate-700);
}
.cbatp-data-table tbody tr:last-child td { border-bottom: none; }
.cbatp-data-table tbody tr:hover { background: var(--cbatp-slate-50); }

.cbatp-table-cell-strong {
    color: var(--cbatp-ink);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}
.cbatp-table-cell-light {
    font-size: 12px;
    color: var(--cbatp-slate-500);
}

.cbatp-table-avatar-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--cbatp-info-bg);
    color: var(--cbatp-info);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.cbatp-action-btn {
    width: 32px; height: 32px;
    border-radius: var(--cbatp-radius);
    background: var(--cbatp-slate-50);
    color: var(--cbatp-slate-500);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
    font-size: 14px;
    text-decoration: none;
}
.cbatp-action-btn:hover { background: var(--cbatp-orange); color: #fff; }
.cbatp-action-btn.danger:hover { background: var(--cbatp-danger); }

/* Quick actions */
.cbatp-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 24px;
}
.cbatp-quick-action {
    background: var(--cbatp-slate-50);
    border: 1px solid var(--cbatp-slate-100);
    border-radius: var(--cbatp-radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cbatp-quick-action:hover {
    background: #fff;
    border-color: var(--cbatp-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 123, 1, 0.1);
}
.cbatp-quick-action i {
    font-size: 22px;
    color: var(--cbatp-orange);
    margin-bottom: 8px;
    display: block;
}
.cbatp-quick-action span {
    font-size: 12px;
    font-weight: 600;
    color: var(--cbatp-ink);
    display: block;
}
