/* =============================================================
   site.css — KF-Conduite
   Table des matières :
    1.  Variables CSS (:root)
    2.  Base & typographie
    3.  Navigation — navbar & top banner
    4.  Boutons
    5.  Alertes
    6.  Formulaires & champs
    7.  DataTables
    8.  Calendrier (FullCalendar)
    9.  Site public (sections, home, footer)
   10.  Login
   11.  Signature électronique
   12.  Réservations (cartes mobiles)
   13.  Paiements (cartes mobiles)
   14.  Parcours / modules / sorties
   15.  Disponibilité
   16.  Examens & questions
   17.  Dropdown KFC
   18.  Utilitaires
   19.  Impression
============================================================= */


/* ─── 1. VARIABLES ─────────────────────────────────────── */

:root {
    /* Couleurs de marque */
    --primary:            #24A88E;

    /* Arrière-plans */
    --bg:                 #ffffff;
    --card-bg:            #ffffff;
    --light-bg:           #f8f9f9;

    /* Texte */
    --text:               #212529;
    --muted:              #6c757d;
    --text-dark:          #343a40;
    --text-white:         #ffffff;

    /* Sections approche */
    --approach-bg-dark:   #218c74;
    --approach-bg-light:  #e0f4f1;

    /* Navbar services */
    --services-bg:        #20c997;
    --services-border:    rgba(255, 255, 255, 0.3);

    /* Footer */
    --footer-bg:          #f8f9f9;
    --footer-heading:     #343a40;
    --footer-text:        #6c757d;
    --footer-link:        #000;
    --footer-link-hover:  #1a6f5e;
    --footer-border:      #dee2e6;

    /* Espacement & bordures (composants) */
    --border-radius:      0.5rem;
    --spacing-lg:         2rem;
    --spacing-sm:         1rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:       #121212;
        --card-bg:  #1e1e1e;
        --text:     #f1f1f1;
        --muted:    #aaaaaa;
    }
}


/* ─── 2. BASE & TYPOGRAPHIE ─────────────────────────────── */

body {
    font-family: Roboto, sans-serif;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-heading-color);
}


/* ─── 3. NAVIGATION ─────────────────────────────────────── */

/* Navbar */
.navbar {
    background-color: var(--light-bg);
}

.navbar-brand img {
    max-height: 32px;
    width: auto;
}

.nav-link {
    color: #24A88E;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 25px;
    text-transform: initial !important;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary) !important;
    }

@media (min-width: 992px) {
    .navbar-nav {
        --bs-nav-link-padding-x: 0;
        --bs-nav-link-padding-y: 1.5rem;
    }
}

.bg-body-tertiary {
    --bs-bg-opacity: 1;
    background-color: rgb(255 255 255) !important;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgba(238 240 242, 1) !important;
}

/* Services megamenu */
#servicesMenu {
    background-color: var(--approach-bg-light);
}

    #servicesMenu .row {
        margin: 0;
    }

    #servicesMenu .col-md-3 {
        padding: 1.5rem;
        border-right: 1px solid var(--services-border);
    }

        #servicesMenu .col-md-3:last-child {
            border-right: none;
        }

    #servicesMenu h6 {
        color: #fff;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    #servicesMenu p {
        color: #f1f9f9;
        margin-bottom: 0;
        font-size: 0.95rem;
        line-height: 1.4;
    }

/* Toggler animé */
.navbar-toggler .navbar-toggler-animation {
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-image: none;
    position: relative;
    height: 18px;
    width: 20px;
    display: inline-block;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

    .navbar-toggler .navbar-toggler-animation span {
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        -webkit-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
        height: 2px;
        background: var(--bs-gray-600);
        display: block;
        position: absolute;
        width: 100%;
        border-radius: 30px;
    }

.navbar .kfc-mobile-dropdown-menu {
    z-index: 1055;
}

/* Top banner */
.top-banner {
    background-image: url("/images/cours/fond.png");
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
}

    .top-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

.top-banner-nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    padding: 0 1rem;
    margin: 0;
    width: 100%;
}

.top-banner-item {
    display: flex;
    align-items: center;
}

    .top-banner-item + .top-banner-item {
        border-left: 1px solid rgba(255, 255, 255, 0.6);
        margin-left: 0.75rem;
        padding-left: 0.75rem;
    }

.top-banner-link {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

    .top-banner-link:hover,
    .top-banner-link:focus-visible {
        text-decoration: underline;
        outline: none;
    }

@media (min-width: 768px) {
    .top-banner {
        min-height: 48px;
    }

    .top-banner-link {
        font-size: 0.9rem;
    }
}

/* Notification dot */
.badge-notif {
    width: 8px;
    height: 8px;
    background: #d6293e;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: -3px;
    z-index: 1;
}

/* Pill nav active */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.selectPlage:hover {
    color: #fff;
    background-color: #24A88E;
}


/* ─── 4. BOUTONS ────────────────────────────────────────── */

.btn-kfc {
    --bs-btn-color: #fff;
    --bs-btn-bg: #24a88e;
    --bs-btn-border-color: #24a88e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #084c3f;
    --bs-btn-hover-border-color: #24a88e;
    --bs-btn-focus-shadow-rgb: 81, 117, 154;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #284a6d;
    --bs-btn-active-border-color: #264666;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #24a88e;
    --bs-btn-disabled-border-color: #24a88e;
    font-size: 16px;
    text-transform: initial;
}

.btn-kfc-cancel {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f47c3c;
    --bs-btn-border-color: #f47c3c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #cf6933;
    --bs-btn-hover-border-color: #c36330;
    --bs-btn-focus-shadow-rgb: 246, 144, 89;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c36330;
    --bs-btn-active-border-color: #b75d2d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #f47c3c;
    --bs-btn-disabled-border-color: #f47c3c;
    font-size: 16px;
    text-transform: initial;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #325d88;
    --bs-btn-border-color: #325d88;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2b4f74;
    --bs-btn-hover-border-color: #284a6d;
    --bs-btn-focus-shadow-rgb: 81, 117, 154;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #284a6d;
    --bs-btn-active-border-color: #264666;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #325d88;
    --bs-btn-disabled-border-color: #325d88;
    text-transform: initial;
    font-size: 15px;
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #8e8c84;
    --bs-btn-border-color: #8e8c84;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #797770;
    --bs-btn-hover-border-color: #72706a;
    --bs-btn-focus-shadow-rgb: 159, 157, 150;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #72706a;
    --bs-btn-active-border-color: #6b6963;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #8e8c84;
    --bs-btn-disabled-border-color: #8e8c84;
    text-transform: initial;
    font-size: 15px;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #d9534f;
    --bs-btn-border-color: #d9534f;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #b84743;
    --bs-btn-hover-border-color: #ae423f;
    --bs-btn-focus-shadow-rgb: 223, 109, 105;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ae423f;
    --bs-btn-active-border-color: #a33e3b;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #d9534f;
    --bs-btn-disabled-border-color: #d9534f;
    font-size: 16px;
    text-transform: initial;
}

.btn-rs-kf-c {
    color: #fff;
    background-color: #24A88E;
    border-color: #fff;
    border-radius: 50%;
}

    .btn-rs-kf-c:hover {
        background-color: #fff;
        color: #17a2b8;
        border-color: #17a2b8;
    }


/* ─── 5. ALERTES ────────────────────────────────────────── */

.alert-kfc-success {
    --bs-alert-bg: #24a88e;
    --bs-alert-color: #fff;
    --bs-alert-border-color: var(--bs-success-border-subtle);
    --bs-alert-link-color: var(--bs-success-text-emphasis);
}

.alert-kfc-cancel {
    --bs-alert-bg: #f47c3c;
    --bs-alert-color: #fff;
    --bs-alert-border-color: var(--bs-success-border-subtle);
    --bs-alert-link-color: var(--bs-success-text-emphasis);
}


/* ─── 6. FORMULAIRES ────────────────────────────────────── */

.form-check-input:checked {
    background-color: #24A88E;
    border-color: #24A88E;
}

.form-switch .form-check-input {
    width: 4em;
    margin-left: -1em;
}

/* Règles de validation mot de passe */
#PasswordRules li {
    color: #6c757d;
}

#PasswordRules li.valid {
    color: #198754;
    font-weight: 600;
}

/* DataTable — select inline */
#tblData_wrapper select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233e3f3a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Champ disponibilité */
.Dispo {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.DispoG {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: 3.5;
    color: var(--bs-body-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-tertiary-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 7px 0 0 7px;
}

.DispoD {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    line-height: 3.5;
    padding: 0.375rem 0.75rem;
    border: 1px solid;
    border-radius: 0 7px 7px 0;
}


/* ─── 7. DATATABLES ─────────────────────────────────────── */

#tblData thead tr th {
    color: #fff;
    background-color: #24a88e;
}


/* ─── 8. CALENDRIER (FULLCALENDAR) ──────────────────────── */

.fc-daygrid-day {
    border: 1px solid #dfd7ca !important;
}

.fc-today-button {
    background-color: #24a88e !important;
    color: #fff !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    border-color: #24a88e !important;
    font-size: 16px !important;
    text-transform: initial !important;
}

.fc-prev-button,
.fc-timeGridWeek-button {
    background-color: #f47c3c !important;
    color: #fff !important;
    border-color: #f47c3c !important;
}

.fc-next-button,
.fc-timeGridDay-button,
.fc-dayGridMonth-button {
    background-color: #24a88e !important;
    color: #fff !important;
    border-color: #24a88e !important;
}

.fc-daygrid-day-number {
    color: #cf6933 !important;
    font-size: 16px;
    font-weight: bold;
}

.fc-col-header-cell {
    color: black !important;
    font-weight: bold;
    background-color: #24a88e !important;
}

.fc-col-header-cell a {
    color: black !important;
    text-transform: capitalize;
    text-decoration: none;
}

.fc-view-harness {
    background-color: #dee2e6 !important;
}

.fc-event {
    cursor: pointer;
}

.fc-timegrid-slot {
    border-bottom: 1px solid #5a938833 !important;
}


/* ─── 9. SITE PUBLIC ────────────────────────────────────── */

/* Section hero (accueil) */
.hero {
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
}

/* Titres de section */
.section-title {
    color: #24A88E;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 1rem;
    color: #6c757d;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* Hero */
.hero-title {
    color: #24A88E;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 1rem 0;
}

.hero-text {
    color: #555;
}

.home-actions {
    display: grid;
    gap: .5rem;
    padding: 1rem;
}

/* Carte service (Site public) */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-0.5rem) scale(1.02);
        box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
    }

    .service-card .card-img-top {
        object-fit: cover;
        object-position: center;
    }

    .service-card .card-title {
        font-size: clamp(1.1rem, 2.5vw, 1.25rem);
        margin-bottom: 0.75rem;
    }

.col-services .card:hover {
    border: 2px solid #24a88e;
}

/* Section approche */
.approach-section {
    background-color: var(--approach-bg-light);
    padding: calc(var(--spacing-lg) * 2) 0;
}

.approach-content {
    color: var(--bs-secondary-color) !important;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
}

    .approach-content h4 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
        margin-bottom: var(--spacing-sm);
    }

    .approach-content .lead {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        line-height: 1.6;
        margin-bottom: var(--spacing-lg);
    }

.approach-card {
    margin-top: var(--spacing-sm);
}

    .approach-card h5 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .approach-card p {
        font-size: 1rem;
        line-height: 1.5;
    }

.approach-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
}

@media (max-width: 767px) {
    .approach-section {
        padding: var(--spacing-lg) 0;
    }

    .approach-content {
        padding: var(--spacing-sm);
    }
}

/* Section contact */
.contact {
    background: #cde3df;
    padding: 2.5rem 0;
}

    .contact a {
        text-decoration: none;
    }

/* Carte succursale */
.card.blocsSuccursales {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card.blocsSuccursales:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

    .site-footer h6 {
        color: var(--footer-heading);
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .site-footer a {
        color: var(--footer-link);
        text-decoration: none;
        transition: color 0.2s;
    }

        .site-footer a:hover {
            color: var(--footer-link-hover);
            text-decoration: underline;
        }

    .site-footer .list-unstyled li + li {
        margin-top: 0.5rem;
    }

    .site-footer .footer-newsletter input,
    .site-footer .footer-newsletter .btn {
        border-radius: var(--border-radius);
    }

    .site-footer .social-icons a {
        font-size: 1.25rem;
        margin-right: 1rem;
        color: var(--footer-link);
        transition: color 0.2s;
    }

        .site-footer .social-icons a:hover {
            color: var(--footer-link-hover);
        }

    .site-footer .bottom-bar {
        border-top: 1px solid var(--footer-border);
        margin-top: 2rem;
        padding-top: 1rem;
        font-size: 0.85rem;
        color: var(--footer-text);
    }

/* Page "À propos" — hero, valeurs, équipe */
.hero-nous {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 0 1rem rgba(0,0,0,0.6);
    background-image: url('/images/Cours/fond.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

    .hero-nous::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.4);
    }

    .hero-nous .container {
        position: relative;
        z-index: 1;
    }

    .hero-nous h1 {
        font-size: clamp(1.75rem, 5vw, 3.5rem);
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-nous p {
        font-size: clamp(0.95rem, 2vw, 1.2rem);
        margin-bottom: 1.5rem;
    }

.value-card {
    border: none;
    background: #fff;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

    .value-card:hover {
        transform: translateY(-0.5rem);
        box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
    }

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.team-card {
    text-align: center;
    border: none;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

    .team-card:hover {
        transform: translateY(-0.5rem);
    }

    .team-card img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-top-left-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius);
    }

    .team-card h5 {
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: var(--primary);
    }

    .team-card small {
        color: var(--muted);
    }

/* Object-fit helper */
.object-fit-cover {
    object-fit: cover;
    object-position: center;
}


/* ─── 10. LOGIN ─────────────────────────────────────────── */

.card-login {
    background-color: #fff;
}

/* Séparateur texte "OU" — approche positionnée */
.divider-text {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: #24A88E;
}

    .divider-text::before,
    .divider-text::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 45%;
        height: 1px;
        background: #24A88E;
    }

    .divider-text::before {
        left: 0;
    }

    .divider-text::after {
        right: 0;
    }

/* Variante flex (contexte inline-flex) */
.divider-text:before,
.divider-text:after {
    color: white;
    content: "";
    flex: 1;
    border-bottom: 1px solid #555;
    margin: auto 0.25rem;
    box-shadow: 0 -2px;
}


/* ─── 11. SIGNATURE ÉLECTRONIQUE ────────────────────────── */

.signature-wrapper {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px dashed #ced4da;
    border-radius: 0.75rem;
    background-color: #fff;
}

#signaturePad {
    width: 100%;
    height: 100%;
    touch-action: none;
}

@media (min-width: 768px) {
    .signature-wrapper {
        aspect-ratio: 5 / 2;
    }
}


/* ─── 12. RÉSERVATIONS (CARTES MOBILES) ─────────────────── */

.reservation-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s ease;
}

    .reservation-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

.reservation-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    margin-bottom: 4px;
}

    .reservation-row .label {
        color: #6c757d;
    }

/* Carte cours (sélection) */
.course-card-btn {
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3) !important;
    transition: all 0.25s ease-in-out;
    height: 100%;
    background-color: #fff;
}

    .course-card-btn:hover,
    .course-card-btn:focus {
        border-color: #00a19a !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .35) !important;
        transform: translateY(-4px);
    }

.course-card-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#blocsPlanierCours:hover {
    background-color: #33ae9621 !important;
}


/* ─── 13. PAIEMENTS (CARTES MOBILES) ────────────────────── */

.payments {
    background: var(--bg);
    color: var(--text);
}

.payment-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .05);
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s ease;
}

    .payment-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

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

.payment-icon {
    font-size: 1.5rem;
    color: #0d6efd;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: .4rem;
}

    .payment-row .label {
        font-size: .85rem;
        color: var(--muted);
        font-weight: 600;
    }

    .payment-row .value {
        font-size: .95rem;
        text-align: right;
    }

.payment-method {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

    .payment-method i {
        font-size: 1.3rem;
        color: #0d6efd;
    }

.method-label {
    font-size: .9rem;
}


/* ─── 14. PARCOURS / MODULES / SORTIES ──────────────────── */

.bg-module-termine {
    background-color: #e6f4ea;
    border-left: 4px solid #2e7d32;
}

.bg-module-planifie {
    background-color: #e8f0fe;
    border-left: 4px solid #1a73e8;
}

.bg-sortie-terminee {
    background-color: #30b65773;
    border-left: 4px solid #2e7d32;
}

.bg-sortie-planifiee {
    background-color: #e8f0fe;
    border-left: 4px solid #1a73e8;
}

.bg-sortie-non-planifiee {
    background-color: #f5f5f5;
    border-left: 4px solid #9e9e9e;
}

.bg-sortie-planifiable {
    background-color: #fff8e1;
    border-left: 4px solid #f9a825;
}

.bg-sortie-non-debutee {
    background-color: #e6e6e6;
    border-left: 4px solid #f9a825;
}

/* Séparateurs contextuels */
.border-start-md {
    border-left: 0 solid #dfd7ca !important;
}

.ps-5-md {
    padding-left: 0 !important;
}

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dfd7ca !important;
    }

    .ps-5-md {
        padding-left: 3rem !important;
    }
}


/* ─── 15. DISPONIBILITÉ ─────────────────────────────────── */

/* (voir .Dispo / .DispoG / .DispoD dans la section Formulaires) */


/* ─── 16. EXAMENS & QUESTIONS ───────────────────────────── */

.question-card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.question-card-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.options-list .form-check {
    padding-left: 2.5em;
}

.question-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 5px;
}


/* ─── 17. DROPDOWN KFC ──────────────────────────────────── */

.kfc-dropdown-menu {
    border-radius: 14px;
    padding: 0.5rem;
    border: none;
    min-width: 240px;
    background: #ffffff;
    animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.kfc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-weight: 500;
    color: #343a40;
    transition: all 0.25s ease;
    text-transform: initial !important;
}

    .kfc-dropdown-item:hover {
        background: linear-gradient(90deg, rgba(200, 16, 46, 0.08), transparent);
        color: #c8102e;
        transform: translateX(3px);
    }

    .kfc-dropdown-item.muted {
        font-size: 0.9rem;
        color: #6c757d;
    }

    .kfc-dropdown-item i {
        font-size: 1.1rem;
        opacity: 0.85;
    }

@media (max-width: 991px) {
    .kfc-dropdown-menu {
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }
}


/* ─── 18. UTILITAIRES ───────────────────────────────────── */

/* Couleurs de texte KFC */
.text-kfc {
    --bs-text-opacity: 1;
    color: #24A88E !important;
    text-decoration: none !important;
}

    .text-kfc:hover {
        --bs-text-opacity: 1;
        color: #0b3930 !important;
        text-decoration: none !important;
    }

.text-kfc-cancel {
    --bs-text-opacity: 1;
    color: #f47c3c !important;
    text-decoration: none !important;
}

    .text-kfc-cancel:hover {
        --bs-text-opacity: 1;
        color: #0b3930 !important;
        text-decoration: none !important;
    }

.text-kfc-minuscule {
    text-transform: initial !important;
}

.text-justify-kfc {
    text-align: justify !important;
}

/* Arrière-plans KFC */
.text-bg-kfc {
    color: #fff !important;
    background-color: #24A88E !important;
}

.bg-kfc-light {
    color: #fff !important;
    background-color: #cde3df !important;
}

/* Barre de progression */
.progress-bar-kfc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff !important;
    text-align: center;
    white-space: nowrap;
    background-color: #24A88E !important;
    transition: var(--bs-progress-bar-transition);
}

/* Avatars */
.avatar {
    height: 3rem;
    width: 3rem;
    position: relative;
    display: inline-block;
    flex-shrink: 0 !important;
}

.avatar-kfc {
    height: 2rem;
    width: 2rem;
    position: relative;
    display: inline-block;
    flex-shrink: 0 !important;
}

.avatar-lg {
    height: 4rem;
    width: 4rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icône centrée */
.icon-md {
    height: 2.5rem;
    width: 2.5rem;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fa-fw {
    text-align: center;
    width: 1.25em;
}

/* Espacements étendus */
.px-6 {
    padding-right: 4rem !important;
    padding-left: 4rem !important;
}

.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Hauteurs fixes */
.h-50px {
    height: 50px !important;
}

.h-20px {
    height: 20px !important;
}

/* Margin négatif */
.mt-n5 {
    margin-top: -3rem !important;
}

/* Gap (renfort !important) */
.gap-2 {
    gap: 0.5rem !important;
}

/* Pile verticale */
.vstack2 {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}


/* ─── 19. IMPRESSION ────────────────────────────────────── */

@media print {
    body {
        background: white !important;
    }

    nav,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    #dashboard-moniteur {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    h5, h6 {
        color: black !important;
    }
}
