/* =========================================================
   APPRENANTS.HTML — HERO DARK + COURBE + UI login/docs
   A charger APRES assets/css/styles.css
   ========================================================= */

:root {
    --brand: #0B0F14;
    --accent: #DC2626;
    --accent-2: #991B1B;
    --ink: #0B0F14;
    --muted: #6B7280;
    --soft: #f5f6f8;
    --radius: 14px;
}

/* Base */
body {
    background: #fff;
    color: var(--ink);
}

.page-content {
    background: transparent;
}

/* Navbar hover */
.navbar .nav-link:hover {
    color: var(--accent) !important;
}

/* =========================================================
   HERO (page-header) : dark + courbe (même hauteur index/services)
   ========================================================= */

.page-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(1200px 600px at 15% 20%, rgba(225,29,72,.25), transparent 55%), radial-gradient(900px 500px at 85% 30%, rgba(0,0,0,.55), transparent 55%), linear-gradient(180deg, #05070A, var(--brand));
    min-height: 400px;
    display: flex;
    align-items: flex-start; /* contenu en haut */
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
    .page-header {
        min-height: 400px;
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

@media (min-width: 1200px) {
    .page-header {
        min-height: 400px;
    }
}

/* Breadcrumb */
.page-header .breadcrumb,
.page-header .breadcrumb a {
    color: rgba(255,255,255,.75);
}

    .page-header .breadcrumb a:hover {
        color: #fff;
    }

    .page-header .breadcrumb .active {
        color: #fff;
    }

.page-title {
    color: #fff;
}

.page-header .text-muted {
    color: rgba(255,255,255,.72) !important;
}

/* Button hero */
.page-header .btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

    .page-header .btn-primary:hover {
        background: var(--accent-2) !important;
        border-color: var(--accent-2) !important;
    }

/* Courbe vers section soft */
.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 80px;
    pointer-events: none;
    z-index: 2;
    /* ici on tombe sur section-soft (gris clair) */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,48 C240,80 480,80 720,48 C960,16 1200,16 1440,48 L1440,80 L0,80 Z' fill='%23f5f6f8'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

/* =========================================================
   MAIN : section-soft + alternance interne
   ========================================================= */

.section.section-soft {
    background: var(--soft);
    border-top: 1px solid rgba(15,23,42,.06);
    padding: 4rem 0;
}

    /* Ton bloc "Documents" contient une div .section (imbriquée),
   on neutralise son padding container/section pour éviter double espace */
    .section.section-soft .section {
        padding-top: 2rem;
    }

/* Panel */
.panel {
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

/* Inputs */
.form-control,
.form-select,
.input-group-text {
    border-radius: 12px;
    border-color: rgba(15,23,42,.12);
}

.input-group .input-group-text {
    border-right: 0;
}

.input-group .form-control {
    border-left: 0;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(220,38,38,.55);
    box-shadow: 0 0 0 .2rem rgba(220,38,38,.12);
}

/* Buttons (rouge) */
.section.section-soft .btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

    .section.section-soft .btn-primary:hover {
        background: var(--accent-2) !important;
        border-color: var(--accent-2) !important;
    }

.section.section-soft .btn-outline-primary {
    color: var(--accent) !important;
    border-color: rgba(220,38,38,.55) !important;
}

    .section.section-soft .btn-outline-primary:hover {
        background: rgba(220,38,38,.08) !important;
        border-color: rgba(220,38,38,.75) !important;
    }

/* Badge statut */
#statusBadge.badge.text-bg-light.border {
    border-color: rgba(15,23,42,.12) !important;
}

/* =========================================================
   Cards dashboard / documents
   ========================================================= */

.section.section-soft .card {
    border-radius: var(--radius);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

    .section.section-soft .card:hover {
        transform: translateY(-2px);
        transition: transform .18s ease, box-shadow .18s ease;
        box-shadow: 0 14px 34px rgba(2,6,23,.10);
    }

/* icon-bubble déjà dans styles.css, on assure cohérence */
.icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(220,38,38,.10);
    border: 1px solid rgba(220,38,38,.20);
    font-size: 1.2rem;
}

/* Empty state */
#dempty {
    border-radius: var(--radius);
}

/* Texte */
.text-muted {
    color: var(--muted) !important;
}
