/* ================================================================== */
/* 1. Variables                                                       */
/* ================================================================== */
:root {
    /* Bleu */
    --principal: #79C7EE;
    --principal-light: #D8EBF5;
    --principal-dark: #1170A7;
    /* Vert */
    /*    --principal: #5AA26E;
    --principal-light: #BEE7C3;
    --principal-dark: #1F6A3A;*/
    /* Rouge */
    /*    --principal: #E15757;
    --principal-light: #F7CFCF;
    --principal-dark: #8A1F1F;*/
    /* Jaune */
    /*    --principal: #F2C94C;
    --principal-light: #FCEEC7;
    --principal-dark: #B58021;*/
    /* Violet */
    /*    --principal: #9B59B6;
    --principal-light: #E3D8F1;
    --principal-dark: #55307B;*/
    /* Gris */
    /*    --principal: #7F8C8D;
    --principal-light: #CBD0D3;
    --principal-dark: #2C3E50;*/
}

/* ================================================================== */
/* 2. Layout Global                                                   */
/* ================================================================== */
html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body {
    min-height: 100vh;
    overflow-y: scroll;
}

@media (min-width: 576px) {

header .pages {
            gap: 1rem;
    }
        }

header nav {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }

:is(header nav) a {
            color: var(--principal-dark) !important;
        }

.active:is(:is(header nav) li) {
                background-color: var(--principal-dark);
                border-radius: 0.5rem;
            }

.active:is(:is(header nav) li) a {
                    color: white !important;
                }

:is(header nav) .navbar-brand {
            font-weight: 600;
        }

@media (max-width: 576px) {

header .navbar-collapse {
            margin-top: 0.5rem;
    }
        }

footer {
    margin-top: auto;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #222222;
    color: white;
}

/* ================================================================== */
/* 3. Helpers / Utilitaires                                           */
/* ================================================================== */

html {
    font-size: 14px;
}

@media (min-width: 576px) {
    html {
        font-size: 16px;
    }
}

.form-check-input {
    border: 2px solid var(--principal-light);
}

.form-check-input:checked {
        background-color: var(--principal-dark);
        border: 2px solid var(--principal-light);
    }

.white-space-nowrap {
    white-space: nowrap;
}

.button-principal {
    background-color: var(--principal-dark);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: none;
    text-decoration: none;
}

.button-principal:hover {
        filter: brightness(120%);
    }

.button-secondary {
    color: var(--principal-dark);
    background-color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 2px solid var(--principal-light);
    text-decoration: none;
}

.custom-accordion-header {
    width: 100%;
    background-color: var(--principal-light);
    color: var(--principal-dark);
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.375rem !important;
    transition: border-radius 0.3s ease;
}

.custom-accordion-header:not(.collapsed) {
        border-radius: 0.375rem 0.375rem 0 0 !important;
        transition: border-radius 0.3s ease;
    }

.custom-accordion-header.collapsed {
        transition-delay: 0.3s;
    }

.custom-accordion-body {
    border: 2px solid var(--principal-light);
    border-top: none;
    padding: 0.75rem;
    border-radius: 0 0 0.375rem 0.375rem !important;
}

.spinner-grow {
    background-color: var(--principal-dark);
}

.dot {
    display: flex;
    align-self: center;
    width: 10px;
    height: 10px;
    background-color: var(--principal-dark);
    border-radius: 2rem;
}

/* ================================================================== */
/* 4. Pages                                                           */
/* ================================================================== */

.page-login form {
        box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.25);
        border-radius: 8px;
        overflow: hidden;
    }

.page-login #login-form {
        padding: 1rem;
    }

.page-login #blue-border {
        height: auto;
        min-width: 0.5rem;
        background-color: var(--principal-dark);
    }

.page-organizer .accordion-button {
        background-color: transparent;
        padding: 0 0.625rem;
        border-bottom: 2px solid var(--principal);
    }

:is(.page-organizer .accordion-button):not(.collapsed) {
            color: black;
            box-shadow: none;
        }

:is(.page-organizer .accordion-button):focus {
            box-shadow: none;
        }

.page-organizer .accordion-item {
        border: none;
    }

.page-organizer .card-body {
        padding: 0.5rem;
    }

.page-organizer .card-header {
        display: flex;
        justify-content: space-between;
        overflow: hidden;
        max-width: 100%;
    }

:is(.page-organizer .card-header) .header-common {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

:is(.page-organizer .card-header) .header-right {
            border: 1px solid black;
            border-radius: 0.25rem;
            width: max-content;
            padding: 0 0.5rem;
            max-width: 50%;
            flex: 0 0 auto;
            min-width: 0;
        }

.details:is(.page-organizer .card-header) {
            flex-direction: column;
        }

.details:is(.page-organizer .card-header) .header-common {
                overflow: visible;
                white-space: wrap;
            }

.details:is(.page-organizer .card-header) .header-right {
                max-width: fit-content;
            }

/* ================================================================== */
/* 5. Composants                                                      */
/* ================================================================== */
.component-summarytable {
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
}
.component-summarytable .title {
        font-weight: 500;
        background-color: var(--principal-light);
    }
.component-summarytable .title-alt {
        font-weight: 500;
        color: var(--principal-dark);
    }
.component-summarytable .blue-bot-border {
        border-bottom: 2px solid var(--principal-dark);
    }
.component-summarytable .blue-left-border {
        border-left: 2px solid var(--principal);
    }
.component-summarytable hr {
        border-top: none;
        border-bottom: 2px solid var(--principal-dark);
        opacity: 1;
        margin: 0;
    }
.component-summarytable .important-line {
        background-color: #f5f5f5;
    }
.component-summarytable .important-text {
        font-weight: 500;
    }
.component-summarytable .cursor-pointer {
        cursor: pointer;
    }

.component-clientdetails .accordion-button {
        background-color: transparent;
        padding: 0 0.625rem;
        border-bottom: 2px solid var(--principal);
    }

:is(.component-clientdetails .accordion-button):not(.collapsed) {
            color: black;
            box-shadow: none;
        }

:is(.component-clientdetails .accordion-button):focus {
            box-shadow: none;
        }

.component-clientdetails .accordion-item {
        border: none;
    }
