/*
 * Styles page d'accueil v2 (Home2.razor)
 */

:root {
    /* Cibles : mobile 390×669, petit PC 1272×602, moyen 1536×702 */
    --home2-bp-mobile-max: 767.98px;
    --home2-bp-small-pc-min: 768px;
    --home2-bp-mid-min: 1536px;
    --home2-bp-short-height: 720px;

    --home2-brand-start: #ee7900;
    --home2-brand-mid: #d8363a;
    --home2-brand-end: #dd3675;
    --home2-greeting-start: #ff7a18;
    --home2-greeting-end: #ff3d77;
    --home2-radius: 12px;
    --home2-carousel-min-height: 9.5rem;
    --home2-row-compact-height: 5.75rem;
}

/* --- Layout page --- */

.home2-page {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    cursor: default;
}

.home2-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    /*padding: 0.75rem;*/
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 576px) {
    .home2-container {
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 992px) {
    .home2-container {
        /*max-width: 1200px;*/
        padding: 0.625rem 0.875rem;
    }
}

@media (min-width: 1536px) {
    .home2-container {
        /*max-width: 1400px;*/
        padding: 0.75rem 1rem;
    }
}

/*@media (min-width: 1920px) {
    .home2-container {*/
/*max-width: 1680px;*/
/*}
}*/

@media (max-width: 575.98px) {
    .home2-container {
        padding: 0.35rem 0.45rem;
    }
}

/* --- Première ligne (bonjour / météo + événements + applications) --- */

.home2-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    width: 100%;
    align-items: stretch;
}

.home2-row-top {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}

.home2-col-greeting,
.home2-col-events,
.home2-col-apps {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .home2-col-greeting .home2-carousel,
    .home2-col-events .home2-events-bandeau,
    .home2-col-apps .home2-apps-panel {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
    }

@media (min-width: 768px) {
    .home2-row-top {
        grid-template-columns: minmax(13rem, 2fr) minmax(0, 5fr) minmax(0, 4fr);
        align-items: stretch;
    }

    .home2-col-greeting .home2-carousel-compact {
        height: 100%;
        --home2-carousel-min-height: 100%;
    }

    .home2-col-greeting .home2-carousel .e-carousel,
    .home2-col-greeting .home2-carousel .e-carousel .e-carousel-items,
    .home2-col-greeting .home2-carousel .e-carousel .e-carousel-item,
    .home2-col-greeting .home2-carousel .e-carousel .e-carousel-slide-container,
    .home2-col-greeting .home2-slide {
        height: 100%;
        min-height: 100%;
    }

    .home2-col-events .home2-events-bandeau {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

        .home2-col-events .home2-events-bandeau .home2-carousel {
            flex: 1 1 auto;
            height: 100%;
            min-height: 0;
            --home2-carousel-min-height: 100%;
        }

    .home2-col-events .home2-carousel .e-carousel,
    .home2-col-events .home2-carousel .e-carousel .e-carousel-items,
    .home2-col-events .home2-carousel .e-carousel .e-carousel-item,
    .home2-col-events .home2-carousel .e-carousel .e-carousel-slide-container,
    .home2-col-events .home2-slide {
        height: 100%;
        min-height: 100%;
    }
}

.home2-carousel-compact {
    --home2-carousel-min-height: var(--home2-row-compact-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .home2-carousel-compact .home2-slide {
        padding: 0.5rem 0.75rem;
    }

        .home2-carousel-compact .home2-slide h6 {
            font-size: 0.8rem;
            margin-bottom: 0.15rem;
        }

        .home2-carousel-compact .home2-slide h4 {
            font-size: 0.95rem;
            margin-bottom: 0.15rem;
        }

        .home2-carousel-compact .home2-slide p {
            font-size: 0.75rem;
        }

    .home2-carousel-compact .home2-weather-desc {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .home2-carousel-compact .home2-weather-icon {
        font-size: 1.15rem;
    }

.home2-col-greeting .home2-carousel-compact .home2-slide h4 {
    white-space: normal;
    word-break: break-word;
}

.home2-col-greeting .home2-carousel-citation {
    margin-top: 0.35rem;
    flex: 1 1 auto;
    min-height: 0;
}

    .home2-col-greeting .home2-carousel-citation .home2-slide-citation h4 {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .home2-col-greeting .home2-carousel-citation .home2-slide-citation p {
        font-size: 0.6rem;
        margin-bottom: 0;
    }

@media (min-width: 768px) {
    .home2-col-greeting .home2-carousel-compact:not(.home2-carousel-citation) {
        flex: 1 1 50%;
        height: auto;
        min-height: 0;
        --home2-carousel-min-height: 0;
    }

        .home2-col-greeting .home2-carousel-compact:not(.home2-carousel-citation) .e-carousel,
        .home2-col-greeting .home2-carousel-compact:not(.home2-carousel-citation) .e-carousel .e-carousel-items,
        .home2-col-greeting .home2-carousel-compact:not(.home2-carousel-citation) .e-carousel .e-carousel-item,
        .home2-col-greeting .home2-carousel-compact:not(.home2-carousel-citation) .e-carousel .e-carousel-slide-container,
        .home2-col-greeting .home2-carousel-compact:not(.home2-carousel-citation) .home2-slide {
            height: 100%;
            min-height: 0;
        }

    .home2-col-greeting .home2-carousel-citation {
        flex: 1 1 50%;
        --home2-carousel-min-height: 0;
    }

        .home2-col-greeting .home2-carousel-citation .e-carousel,
        .home2-col-greeting .home2-carousel-citation .e-carousel .e-carousel-items,
        .home2-col-greeting .home2-carousel-citation .e-carousel .e-carousel-item,
        .home2-col-greeting .home2-carousel-citation .e-carousel .e-carousel-slide-container,
        .home2-col-greeting .home2-carousel-citation .home2-slide {
            height: 100%;
            min-height: 0;
        }
}

/* Padding réduit dans la ligne du haut */
.home2-row-top .home2-carousel-compact .home2-slide {
    padding: 0.3rem 0.45rem;
}

.home2-row-top .home2-events-bandeau {
    padding: 0.25rem;
}

.home2-row-top .home2-carousel-events .home2-slide-news {
    padding: 0.2rem 0.75rem;
}

.home2-row-top .home2-panel-header {
    padding: 0.2rem 0.35rem;
}

.home2-row-top .home2-apps-body {
    padding: 0.15rem 0.1rem;
}

.home2-row-top .home2-app-card {
    padding: 0.05rem;
}

/*.home2-row-top .home2-apps-body .col {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}*/
/* --- Bandeau événements --- */

.home2-events-bandeau {
    height: 100%;
    width: 100%;
    border-radius: var(--home2-radius);
    background: linear-gradient(135deg, var(--home2-brand-start), var(--home2-brand-mid), var(--home2-brand-end));
    padding: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

    .home2-events-bandeau .home2-carousel {
        box-shadow: none;
    }

.home2-carousel-events .home2-slide-news {
    background: transparent;
    padding: 0.35rem 2rem;
}

.home2-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

    .home2-news-content h4 {
        font-size: 0.95rem;
        margin: 0 0 0.25rem;
        line-height: 1.3;
    }

    .home2-news-content p {
        margin: 0.25rem 0 0.35rem;
        font-size: 0.75rem;
        line-height: 1.4;
        color: navajowhite;
        font-weight: 600;
    }

    .home2-news-content span {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.25rem 0.35rem;
        font-size: 0.7rem;
        font-weight: 500;
        color: #6c757d;
        background: #f5f7fa;
        padding: 0.2rem 0.5rem;
        border-radius: 6px;
    }

.home2-carousel-events .e-carousel .e-carousel-navigators .e-previous,
.home2-carousel-events .e-carousel .e-carousel-navigators .e-next {
    color: #fff;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
}


/* --- Panel applications --- */

.home2-apps-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: var(--home2-row-compact-height);
    border-radius: var(--home2-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.home2-panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(to right, var(--home2-brand-start), var(--home2-brand-mid), var(--home2-brand-end));
    flex-shrink: 0;
}

.home2-header-icon {
    color: ghostwhite;
    font-size: 1rem;
}

.home2-apps-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.home2-apps-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: hidden;
    overflow-x: auto;
    padding: 0.35rem 0.25rem;
    -webkit-overflow-scrolling: touch;
}

    .home2-apps-body .row {
        display: flex;
        margin-left: 0;
        margin-right: 0;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: max-content;
        min-width: 100%;
    }

    .home2-apps-body .col {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

.home2-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
}

.home2-app-img {
    height: 36px;
    width: 64px;
    object-fit: contain;
}

.home2-app-name {
    font-size: 0.7rem;
    color: #212529;
    line-height: 1.2;
    margin-top: 0.15rem;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home2-manual-btn {
    margin-top: 0.2rem;
    font-size: 0.6rem;
    border: none;
    background: #f3f4f6;
    color: #555;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .home2-manual-btn i {
        color: #e63946;
        font-size: 0.65rem;
    }

    .home2-manual-btn:hover {
        background: #ffe5e5;
        color: #c1121f;
    }

/* --- Ligne principale (matrices + vie interne) --- */

.home2-row-main {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: 1fr;
    margin-top: 0.35rem;
    align-items: stretch;
}

.home2-col-matrices,
.home2-col-vie-interne {
    min-width: 0;
}

@media (min-width: 992px) {
    .home2-row-main {
        grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    }
}

/* --- Panel matrices (compact) --- */

.home2-matrices-panel,
.home2-vie-panel {
    display: flex;
    flex-direction: column;
    border-radius: var(--home2-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    height: 100%;
}

.home2-matrices-content,
.home2-vie-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.3rem;
    overflow-y: auto;
    background-color: transparent;
}
.home2-panel-header-split {
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.home2-header-left,
.home2-header-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.home2-header-right {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.95;
}

.home2-panel-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home2-line-box {
    background: #ebebeb;
    border-radius: 6px;
    padding: 0.25rem 0.3rem 0.35rem 0.45rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.home2-matrix-buttons {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 0.35rem;
    overflow: hidden;
}

    .home2-matrix-buttons > * {
        flex-shrink: 0;
    }

    .home2-matrix-buttons:first-child {
        margin-top: 0.1rem;
    }

.home2-matrix-section-title {
    display: inline-block;
    width: 155px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #000;
    font-style: oblique;
    background: #f5f6f7;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    flex-shrink: 0;
    line-height: 1.2;
}

.home2-matrix-buttons .e-dropdown-btn,
.home2-matrix-buttons .home2-mafi-btn {
    width: auto;
    max-width: none;
    min-width: 7.5rem;
    min-height: 2.15rem;
    background-color: #ffc045;
    color: #000;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.2rem 0.85rem;
    white-space: nowrap;
}

    .home2-matrix-buttons .e-dropdown-btn .e-btn-content,
    .home2-matrix-buttons .home2-mafi-btn .e-btn-content {
        /*white-space: nowrap;*/
        overflow: visible;
        text-overflow: clip;
    }

    .home2-matrix-buttons .e-dropdown-btn:hover,
    .home2-matrix-buttons .home2-mafi-btn:hover {
        background: linear-gradient(to right, var(--home2-brand-start), var(--home2-brand-mid), var(--home2-brand-end));
        color: #fff;
    }

    .home2-matrix-buttons .e-dropdown-btn.home2-matrix-btn,
    .home2-matrix-buttons .home2-mafi-btn.home2-mafi-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .home2-matrix-buttons .e-dropdown-btn.home2-matrix-icon::before,
    .home2-matrix-buttons .home2-mafi-btn.home2-mafi-icon::before {
        content: "";
        display: inline-block;
        width: 26px;
        height: 26px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-right: 4px;
        vertical-align: middle;
        flex-shrink: 0;
    }

    .home2-matrix-buttons .e-dropdown-btn.home2-matrix-icon::before {
        background-image: var(--home2-matrix-icon);
    }

    .home2-matrix-buttons .home2-mafi-btn.home2-mafi-icon::before {
        background-image: var(--home2-mafi-icon);
    }

/* Syncfusion copie CssClass sur le popup : neutraliser les styles bouton */
.home2-page .e-dropdown-popup.home2-matrix-btn,
.home2-page .e-dropdown-popup.home2-matrix-icon {
    display: block !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
    background-color: #fff !important;
    white-space: normal;
}

    .home2-page .e-dropdown-popup.home2-matrix-icon::before,
    .home2-page .e-dropdown-popup.home2-matrix-btn::before {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
    }

.e-dropdown-popup.home2-matrix-btn .e-menu-icon.home2-dd-icon-excel,
.e-dropdown-popup.home2-matrix-icon .e-menu-icon.home2-dd-icon-excel {
    background-image: url('/img/Excel.png');
}

.e-dropdown-popup.home2-matrix-btn .e-menu-icon.home2-dd-icon-word,
.e-dropdown-popup.home2-matrix-icon .e-menu-icon.home2-dd-icon-word {
    background-image: url('/img/Word.png');
}

.e-dropdown-popup.home2-matrix-btn .e-menu-icon.home2-dd-icon-excel,
.e-dropdown-popup.home2-matrix-btn .e-menu-icon.home2-dd-icon-word,
.e-dropdown-popup.home2-matrix-icon .e-menu-icon.home2-dd-icon-excel,
.e-dropdown-popup.home2-matrix-icon .e-menu-icon.home2-dd-icon-word {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-block;
    margin-right: 0.5rem;
}

    .e-dropdown-popup.home2-matrix-btn .e-menu-icon.home2-dd-icon-excel::before,
    .e-dropdown-popup.home2-matrix-btn .e-menu-icon.home2-dd-icon-word::before,
    .e-dropdown-popup.home2-matrix-icon .e-menu-icon.home2-dd-icon-excel::before,
    .e-dropdown-popup.home2-matrix-icon .e-menu-icon.home2-dd-icon-word::before {
        content: none;
    }

.home2-see-more-btn {
    background: #f05a28;
    color: #fff;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.72rem;
    min-height: 2rem;
    min-width: 5.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

    .home2-see-more-btn:hover {
        background: linear-gradient(to right, var(--home2-brand-start), var(--home2-brand-mid), var(--home2-brand-end));
    }

/* --- Vie interne --- */

.home2-cards-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home2-card-item {
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.home2-card-item-resa {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding-bottom: 0.35rem;
}

.home2-panel-header-resa {
    border-radius: 8px 8px 0 0;
    font-size: 0.8rem;
    padding: 0.25rem 0.4rem;
}

.home2-header-img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.home2-card-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
    padding: 0.15rem 0.2rem;
    border-radius: 6px;
}

    .home2-card-line:hover {
        transform: translateY(-1px);
        background: linear-gradient(to right, var(--home2-brand-start), var(--home2-brand-mid), var(--home2-brand-end));
        color: #fff;
    }

        .home2-card-line:hover .home2-card-date {
            color: #fff;
        }

    .home2-card-line img {
        height: 22px;
        width: 22px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .home2-card-line h6 {
        margin: 0;
        font-size: 0.78rem;
        flex: 1;
        line-height: 1.2;
    }

.home2-card-date {
    margin: 0;
    font-size: 0.68rem;
    color: gray;
    font-weight: 600;
    white-space: nowrap;
}

.home2-links-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    padding: 0.35rem 0.25rem 0;
}

.home2-small-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

    .home2-small-card img {
        height: 42px;
        width: 56px;
        object-fit: contain;
    }

.home2-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem;
}

.home2-quick-link-btn {
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #e5e5e5;
    font-weight: 600;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: 0.2s;
    width: 100%;
    cursor: pointer;
}

    .home2-quick-link-btn:hover {
        background: #f97316;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    }

.home2-page .e-dropdown-popup::before,
.home2-page .e-dropdown-popup::after {
    display: none !important;
}

/* --- Carrousel Syncfusion --- */

.home2-carousel {
    width: 100%;
    border-radius: var(--home2-radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

    .home2-carousel .e-carousel {
        width: 100%;
        min-height: var(--home2-carousel-min-height);
        border: none;
        border-radius: var(--home2-radius);
        background: transparent;
    }

        .home2-carousel .e-carousel .e-carousel-items,
        .home2-carousel .e-carousel .e-carousel-item {
            height: 100%;
            min-height: var(--home2-carousel-min-height);
        }

        .home2-carousel .e-carousel .e-carousel-slide-container {
            height: 100%;
        }

        .home2-carousel .e-carousel .e-carousel-indicators {
            bottom: 0.5rem;
        }

        .home2-carousel .e-carousel .e-indicator-bars .e-indicator-bar {
            background-color: rgba(255, 255, 255, 0.45);
            border-radius: 4px;
            transition: background-color 0.25s ease, width 0.25s ease;
        }

            .home2-carousel .e-carousel .e-indicator-bars .e-indicator-bar.e-active {
                background-color: #fff;
            }

/* --- Slides --- */

.home2-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: var(--home2-carousel-min-height);
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    color: #fff;
}

    .home2-slide h6 {
        margin: 0 0 0.35rem;
        font-size: 0.95rem;
        font-weight: 400;
        opacity: 0.95;
    }

    .home2-slide h4 {
        margin: 0 0 0.35rem;
        font-size: 1.35rem;
        line-height: 1.25;
        white-space: pre-line;
    }

    .home2-slide p {
        margin: 0;
        font-size: 0.9rem;
        opacity: 0.9;
    }

.home2-slide-greeting {
    background: linear-gradient(135deg, var(--home2-greeting-start), var(--home2-greeting-end));
}

/* --- Widget météo --- */

.home2-weather {
    border-radius: var(--home2-radius);
    transition: background 0.3s ease;
}

.home2-weather-desc {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.home2-weather-icon {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home2-weather-sunny {
    background: linear-gradient(135deg, #ffd54f, #ff9800);
}

.home2-weather-partly {
    background: linear-gradient(135deg, #81d4fa, #29b6f6);
}

.home2-weather-cloudy {
    background: linear-gradient(135deg, #90a4ae, #607d8b);
}

.home2-weather-fog {
    background: linear-gradient(135deg, #b0bec5, #78909c);
}

.home2-weather-drizzle {
    background: linear-gradient(135deg, #4fc3f7, #0288d1);
}

.home2-weather-rain {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
}

.home2-weather-snow {
    background: linear-gradient(135deg, #e1f5fe, #b3e5fc);
    color: #333;
}

.home2-weather-storm {
    background: linear-gradient(135deg, #5e35b1, #311b92);
}

.home2-weather-default {
    background: linear-gradient(135deg, #546e7a, #37474f);
}

/* --- Bandeau citations --- */

.home2-citation-bandeau {
    margin-top: 1rem;
    width: 100%;
    max-width: 86%;
    box-sizing: border-box;
}

.home2-carousel-citation {
    --home2-carousel-min-height: 7.5rem;
}

.home2-slide-citation {
    background: linear-gradient(135deg, var(--home2-brand-start), var(--home2-brand-mid), var(--home2-brand-end));
}

    .home2-slide-citation h4 {
        text-align: start;
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .home2-slide-citation p {
        font-size: 0.875rem;
        text-align: start;
        color: navajowhite;
        font-weight: 600;
        line-height: 1.5;
    }

.home2-carousel-citation .e-carousel .e-carousel-navigators .e-previous,
.home2-carousel-citation .e-carousel .e-carousel-navigators .e-next {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
}

    .home2-carousel-citation .e-carousel .e-carousel-navigators .e-previous:hover,
    .home2-carousel-citation .e-carousel .e-carousel-navigators .e-next:hover {
        background-color: rgba(255, 255, 255, 0.45);
    }



/* --- Responsive carrousel --- */

@media (min-width: 768px) {
    :root {
        --home2-carousel-min-height: 8.5rem;
        --home2-row-compact-height: 5rem;
    }

    .home2-slide h4 {
        font-size: 1.5rem;
    }

    .home2-weather-desc {
        font-size: 1.1rem;
    }

    .home2-weather-icon {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .home2-quick-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .home2-quick-link-btn {
        width: auto;
        flex: 1 1 auto;
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
    }
}

/* Petit PC : 1272×602 */
@media (min-width: 768px) and (max-width: 1535.98px) {
    .home2-carousel-compact .home2-slide h4 {
        font-size: 0.9rem;
    }

    .home2-news-content h4 {
        font-size: 0.9rem;
    }

    .home2-news-content span {
        font-size: 0.68rem;
    }

    .home2-panel-header {
        font-size: 0.8rem;
        padding: 0.3rem 0.45rem;
    }

    .home2-app-img {
        height: 32px;
        width: 56px;
    }

    .home2-app-name {
        font-size: 0.68rem;
        max-width: 68px;
    }

    .home2-matrices-content,
    .home2-vie-content {
        padding: 0.22rem;
    }

    .home2-panel-vertical {
        gap: 0.28rem;
    }

    .home2-line-box {
        padding: 0.18rem 0.25rem 0.22rem 0.3rem;
    }

    .home2-matrix-section-title {
        width: 140px;
        font-size: 0.7rem;
        padding: 0.18rem 0.4rem;
    }

    .home2-matrix-buttons .e-dropdown-btn,
    .home2-matrix-buttons .home2-mafi-btn {
        min-width: 6.75rem;
        min-height: 1.85rem;
        font-size: 0.68rem;
        padding: 0.15rem 0.55rem;
    }

        .home2-matrix-buttons .e-dropdown-btn.home2-matrix-icon::before,
        .home2-matrix-buttons .home2-mafi-btn.home2-mafi-icon::before {
            width: 22px;
            height: 22px;
            margin-right: 3px;
        }

    .home2-see-more-btn {
        font-size: 0.65rem;
        min-height: 1.7rem;
        min-width: 4.75rem;
        padding: 0.12rem 0.5rem;
    }

    .home2-panel-header-resa {
        font-size: 0.72rem;
        padding: 0.18rem 0.35rem;
    }

    .home2-header-img {
        height: 20px;
        width: 20px;
    }

    .home2-small-card img {
        height: 38px;
        width: 50px;
    }

    .home2-quick-link-btn {
        font-size: 0.68rem;
        padding: 0.28rem 0.45rem;
    }

    .home2-card-item {
        padding: 0.22rem;
    }

    .home2-card-line {
        gap: 0.3rem;
        padding: 0.12rem 0.18rem;
        margin-bottom: 0.15rem;
    }

        .home2-card-line img {
            height: 20px;
            width: 20px;
        }

        .home2-card-line h6 {
            font-size: 0.72rem;
        }

    .home2-card-date {
        font-size: 0.62rem;
    }
}

/* Écrans peu hauts (petit PC 602px, mobile 669px) */
@media (max-height: 720px) and (min-width: 768px) {
    :root {
        --home2-carousel-min-height: 7rem;
        --home2-row-compact-height: 4.35rem;
    }

    .home2-row-main {
        gap: 0.25rem;
        margin-top: 0.25rem;
    }

    .home2-matrices-content,
    .home2-vie-content {
        padding: 0.18rem;
    }

    .home2-matrix-buttons .e-dropdown-btn,
    .home2-matrix-buttons .home2-mafi-btn {
        min-height: 1.65rem;
    }
}

/* Écran moyen : 1536×702 */
@media (min-width: 1536px) {
    :root {
        --home2-carousel-min-height: 10.5rem;
        --home2-row-compact-height: 6.25rem;
    }

    .home2-carousel-compact .home2-slide h4 {
        font-size: 1rem;
    }

    .home2-news-content h4 {
        font-size: 1.05rem;
    }

    .home2-news-content span {
        font-size: 0.75rem;
    }

    .home2-app-img {
        height: 42px;
        width: 72px;
    }

    .home2-app-name {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .home2-slide {
        padding: 1.25rem 2rem;
    }

        .home2-slide h4 {
            font-size: 1.65rem;
        }

    .home2-row-main {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .home2-matrices-content,
    .home2-vie-content {
        padding: 0.5rem;
    }

    .home2-panel-vertical {
        gap: 0.5rem;
    }

    .home2-line-box {
        padding: 0.35rem 0.5rem 0.45rem 0.55rem;
        border-radius: 8px;
    }

    .home2-matrix-buttons {
        gap: 0.45rem;
        margin-top: 0.45rem;
    }

    .home2-matrix-section-title {
        width: 175px;
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem;
    }

    .home2-matrix-buttons .e-dropdown-btn,
    .home2-matrix-buttons .home2-mafi-btn {
        min-width: 8.5rem;
        min-height: 2.5rem;
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
    }

        .home2-matrix-buttons .e-dropdown-btn.home2-matrix-icon::before,
        .home2-matrix-buttons .home2-mafi-btn.home2-mafi-icon::before {
            width: 30px;
            height: 30px;
            margin-right: 6px;
        }

    .home2-see-more-btn {
        font-size: 0.82rem;
        min-height: 2.35rem;
        min-width: 6.25rem;
        padding: 0.35rem 0.9rem;
    }

    .home2-panel-header {
        font-size: 0.95rem;
        padding: 0.45rem 0.65rem;
    }

    .home2-panel-header-split {
        padding: 0.35rem 0.65rem;
    }

    .home2-header-right {
        font-size: 0.78rem;
    }

    .home2-panel-header-resa {
        font-size: 0.9rem;
        padding: 0.35rem 0.55rem;
    }

    .home2-header-img {
        height: 28px;
        width: 28px;
    }

    .home2-card-item {
        padding: 0.5rem;
    }

    .home2-card-line {
        gap: 0.5rem;
        padding: 0.25rem 0.35rem;
        margin-bottom: 0.35rem;
    }

        .home2-card-line img {
            height: 26px;
            width: 26px;
        }

        .home2-card-line h6 {
            font-size: 0.88rem;
        }

    .home2-card-date {
        font-size: 0.75rem;
    }

    .home2-small-card img {
        height: 50px;
        width: 66px;
    }

    .home2-quick-link-btn {
        font-size: 0.82rem;
        padding: 0.45rem 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .page:has(.home2-page) {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

        .page:has(.home2-page) .main {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

    .content-container:has(.home2-page) {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: auto;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .home2-page {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .home2-container {
        overflow: visible;
        padding-bottom: 1rem;
    }

    .home2-row-main {
        align-items: start;
    }

    .home2-matrices-panel,
    .home2-vie-panel {
        height: auto;
        overflow: visible;
    }

    .home2-matrices-content,
    .home2-vie-content {
        overflow: visible;
        min-height: auto;
        flex: none;
    }

    .home2-card-line {
        touch-action: manipulation;
    }

    .home2-apps-panel {
        min-height: auto;
    }

    .home2-row-top .home2-panel-header,
    .home2-panel-header {
        font-size: 0.75rem;
        padding: 0.15rem 0.35rem;
    }

    .home2-header-icon {
        font-size: 0.85rem;
    }

    .home2-apps-body {
        padding: 0.12rem 0.08rem;
    }

    .home2-apps-body .col {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .home2-app-img {
        height: 30px;
        width: 52px;
    }

    .home2-app-name {
        font-size: 0.62rem;
        max-width: 58px;
        margin-top: 0.1rem;
    }

    .home2-manual-btn {
        font-size: 0.52rem;
        padding: 0.06rem 0.2rem;
        margin-top: 0.1rem;
    }

    .home2-row-main {
        gap: 0.25rem;
        margin-top: 0.25rem;
    }

    .home2-matrices-content,
    .home2-vie-content {
        padding: 0.2rem;
    }

    .home2-panel-vertical {
        gap: 0.25rem;
    }

    .home2-line-box {
        padding: 0.15rem 0.2rem 0.2rem 0.28rem;
        border-radius: 5px;
    }

    .home2-matrix-buttons {
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        padding-bottom: 0.25rem;
    }

    .home2-matrix-section-title {
        flex: 0 0 100%;
        width: 100%;
    }

    .home2-col-greeting .home2-carousel-compact {
        height: auto;
        --home2-carousel-min-height: var(--home2-row-compact-height);
    }

    .home2-header-right {
        font-size: 0.6rem;
    }

    .home2-matrix-section-title {
        width: 100%;
        font-size: 0.7rem;
    }

    .home2-matrix-buttons .e-dropdown-btn,
    .home2-matrix-buttons .home2-mafi-btn {
        width: auto;
        max-width: none;
        min-width: 5.75rem;
        min-height: 1.7rem;
        font-size: 0.65rem;
        padding: 0.12rem 0.5rem;
    }

        .home2-matrix-buttons .e-dropdown-btn.home2-matrix-icon::before,
        .home2-matrix-buttons .home2-mafi-btn.home2-mafi-icon::before {
            width: 20px;
            height: 20px;
            margin-right: 3px;
        }

    .home2-see-more-btn {
        font-size: 0.62rem;
        min-height: 1.55rem;
        min-width: 4.5rem;
        padding: 0.12rem 0.45rem;
    }

    .home2-card-item-resa {
        padding-bottom: 0.2rem;
    }

    .home2-panel-header-resa {
        font-size: 0.72rem;
        padding: 0.15rem 0.3rem;
    }

    .home2-header-img {
        height: 18px;
        width: 18px;
    }

    .home2-links-row {
        gap: 0.2rem;
        padding: 0.2rem 0.15rem 0;
    }

    .home2-quick-link-btn {
        font-size: 0.65rem;
        padding: 0.22rem 0.35rem;
        border-radius: 6px;
    }

    .home2-cards-container {
        gap: 0.3rem;
    }

    .home2-card-item {
        padding: 0.2rem;
    }

    .home2-card-line {
        gap: 0.25rem;
        padding: 0.1rem 0.15rem;
        margin-bottom: 0.12rem;
    }

        .home2-card-line img {
            height: 18px;
            width: 18px;
        }

    .home2-card-date {
        font-size: 0.58rem;
    }

    .home2-panel-header-split {
        padding: 0.15rem 0.35rem;
    }

    .home2-quick-actions {
        flex-direction: column;
    }

    .home2-small-card img {
        height: 36px;
        width: 48px;
    }

    .home2-card-line h6 {
        font-size: 0.72rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --home2-carousel-min-height: 7.5rem;
        --home2-row-compact-height: 4.5rem;
    }

    /* Mobile minimum : 390×669 */
    @media (max-height: 720px) {
        :root {
            --home2-carousel-min-height: 6.5rem;
            --home2-row-compact-height: 4rem;
        }
    }

    .home2-row-top {
        gap: 0.2rem;
    }

        .home2-row-top .home2-events-bandeau {
            padding: 0.15rem;
        }

        .home2-row-top .home2-carousel-events .home2-slide-news {
            padding: 0.1rem 0.4rem;
        }

        .home2-row-top .home2-panel-header {
            font-size: 0.68rem;
            padding: 0.1rem 0.25rem;
        }

        .home2-row-top .home2-apps-body {
            padding: 0.08rem 0.05rem;
        }

        .home2-row-top .home2-app-card {
            padding: 0;
        }

    .home2-news-content h4 {
        font-size: 0.8rem;
    }

    .home2-news-content p {
        font-size: 0.65rem;
    }

    .home2-news-content span {
        font-size: 0.6rem;
    }

    .home2-apps-body {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .home2-apps-body .col {
        padding-left: 0.28rem;
        padding-right: 0.28rem;
    }

    .home2-panel-header {
        font-size: 0.68rem;
        padding: 0.12rem 0.3rem;
    }

    .home2-header-icon {
        font-size: 0.75rem;
    }

    .home2-app-img {
        height: 26px;
        width: 44px;
    }

    .home2-app-name {
        font-size: 0.56rem;
        max-width: 50px;
    }

    .home2-manual-btn {
        font-size: 0.5rem;
        padding: 0.05rem 0.18rem;
    }

    .home2-row-main {
        gap: 0.2rem;
        margin-top: 0.2rem;
    }

    .home2-matrices-content,
    .home2-vie-content {
        padding: 0.15rem;
    }

    .home2-panel-vertical {
        gap: 0.18rem;
    }

    .home2-line-box {
        padding: 0.12rem 0.15rem 0.15rem 0.2rem;
        border-radius: 4px;
    }

    .home2-matrix-buttons {
        gap: 0.18rem;
        margin-top: 0.15rem;
    }

    .home2-matrix-section-title {
        font-size: 0.6rem;
        padding: 0.12rem 0.3rem;
    }

    .home2-matrix-buttons .e-dropdown-btn,
    .home2-matrix-buttons .home2-mafi-btn {
        min-width: 5rem;
        min-height: 1.5rem;
        font-size: 0.58rem;
        padding: 0.08rem 0.35rem;
    }

        .home2-matrix-buttons .e-dropdown-btn.home2-matrix-icon::before,
        .home2-matrix-buttons .home2-mafi-btn.home2-mafi-icon::before {
            width: 16px;
            height: 16px;
            margin-right: 2px;
        }

    .home2-see-more-btn {
        font-size: 0.55rem;
        min-height: 1.35rem;
        min-width: 3.75rem;
        padding: 0.08rem 0.35rem;
    }

    .home2-panel-header-resa {
        font-size: 0.62rem;
        padding: 0.1rem 0.25rem;
    }

    .home2-header-img {
        height: 15px;
        width: 15px;
    }

    .home2-links-row {
        gap: 0.15rem;
        padding: 0.15rem 0.1rem 0;
    }

    .home2-small-card img {
        height: 28px;
        width: 38px;
    }

    .home2-quick-link-btn {
        font-size: 0.58rem;
        padding: 0.18rem 0.28rem;
        gap: 0.25rem;
    }

    .home2-quick-actions {
        gap: 0.2rem;
        padding: 0.2rem;
    }

    .home2-cards-container {
        gap: 0.2rem;
    }

    .home2-card-item {
        padding: 0.15rem;
        border-radius: 6px;
    }

    .home2-card-line {
        gap: 0.2rem;
        padding: 0.08rem 0.12rem;
        margin-bottom: 0.08rem;
    }

        .home2-card-line img {
            height: 15px;
            width: 15px;
        }

        .home2-card-line h6 {
            font-size: 0.62rem;
        }

    .home2-card-date {
        font-size: 0.52rem;
    }

    .home2-panel-header-split {
        padding: 0.1rem 0.28rem;
    }

    .home2-header-right {
        font-size: 0.5rem;
    }

    .home2-citation-bandeau {
        max-width: 100%;
        margin-top: 0.75rem;
    }

    .home2-carousel-citation {
        --home2-carousel-min-height: 6.5rem;
    }

    .home2-slide-citation h4 {
        font-size: 0.95rem;
    }

    .home2-slide-citation p {
        font-size: 0.75rem;
    }

    .home2-slide {
        padding: 0.75rem 0.875rem;
    }

        .home2-slide h6 {
            font-size: 0.85rem;
        }

        .home2-slide h4 {
            font-size: 1.1rem;
        }

        .home2-slide p {
            font-size: 0.8rem;
        }

    .home2-weather-desc {
        font-size: 0.9rem;
    }

    .home2-weather-icon {
        font-size: 1.45rem;
    }
}

/*
    Old app.css
*/
/**
    * App-wide CSS styles.
    * Main style
*/



/*
    * Global styles for the app.
*/



h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

footer {
    display: table;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: small
}

.gradient-custom-2 {
    /* fallback for old browsers */
    /*background: #fccb90;*/
    /* Chrome 10-25, Safari 5.1-6 */
    /*background: -webkit-linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);*/
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    /*background: linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);*/
    /* background: linear-gradient(to right, rgba(106, 17, 203, 0.5), rgba(37, 117, 252, 0.5)) */

    background: linear-gradient(to right, #ee7900, #d8363a, #dd3675, #b44930)
}

.navbar-marquee {
    flex: 0 0 40%;
    max-width: 40%;
    height: 56px;
    overflow: hidden;
    display: flex;
    align-items: center;
    /*pointer-events: none;*/
    white-space: nowrap;
}

    .navbar-marquee span {
        display: inline-block;
        color: black;
        font-weight: bolder;
        font-size: 20px;
        animation: marquee 10s linear infinite;
    }

.navbar-marquee-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: none;
}

@media (max-width: 768px) {
    .navbar-marquee-centered {
        display: none;
    }
}

/* Animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.toolbar-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 21px;
    font-weight: bolder;
    font-family: Calibri;
    color: dodgerblue;
    margin-left: 15px
}

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: glowFadeIn 0.3s ease-in-out;
}

.bandeau {
    width: 100%;
    height: 150px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

.link {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-purple {
    background-color: #6f42c1;
}

.quick-link:hover {
    border-color: var(--bs-primary);
    transform: translateY(-3px);
    transition: all 0.2s ease;
}

/*
    * Cartes dans la page d'accueil
*/
.cards-container {
    width: 100%;
}

.card-item-resa {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.card-item {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* chaque ligne */
.card-line {
    display: flex;
    align-items: center;
    gap: 10px;
    /*padding: 6px 4px;*/
    cursor: pointer;
    margin-bottom: 5px;
}

    .card-line:hover {
        transform: translateY(-2px);
        background: linear-gradient(to right, #ee7900, #d8363a, #dd3675);
        color: white;
        border-radius: 8px;
    }

        .card-line:hover .card-date {
            color: white;
        }

    .card-line:last-child {
        border-bottom: none;
    }

    .card-line img {
        height: 28px;
        width: 28px;
        object-fit: contain;
    }

    .card-line h6 {
        margin: 0;
        font-size: 15px;
        flex: 1;
    }

    .card-line .card-date {
        margin: 4px;
        font-size: 13px;
        color: gray;
        font-weight: bolder;
    }

/*
    * Fin style pour cartes dans la page d'accueil
    
    * Debut style pour modale large
*/


.custom-wide-modal {
    max-width: 80vw !important;
}

    .custom-wide-modal .modal-content {
        height: 100vh;
    }
/*
    * Fin style pour modale large
    
    * Debut style pour modale de l'agenda
*/

.e-schedule-dialog.e-dialog {
    width: 900px !important;
    max-width: 900px !important;
}

.custom-editor-container .e-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.custom-editor-container .e-col {
    flex: 1;
}

.custom-editor-container label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.fullscreen-schedule {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: white;
}
/*
    * Fin style pour modale de  l'agenda

    * Debut style pour l'agenda
*/
.e-schedule {
    border: 1px solid #bfbfbf !important;
}

    .e-schedule .e-month-view .e-work-cells {
        border: 1px solid #bfbfbf !important;
    }
/*
    Fin style pour l'agenda
*/
.bandeau-color {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ee7900, #d8363a, #dd3675);
    padding: 15px;
    border-radius: 12px;
}

/* Bandeau citations placé hors .dashboard-wrapper (évite le clip du bouton carrousel « suivant »). */
.citation-bandeau {
    max-width: 86%;
    box-sizing: border-box;
}

.Carousel {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg,#ff7a18,#ff3d77);
    padding: 15px;
    border-radius: 12px;
}

/*
    * Fin style pour le bandeau de la page d'accueil
    * Style pour le widget météo de la page d'accueil
   
*/
.weather-widget {
    border-radius: 16px;
    padding: 10px;
    color: white;
    transition: 0.3s;
    display: flex;
    flex-direction: column; /* stack vertically */
    justify-content: center; /* vertical center */
    align-items: center; /* horizontal center */
    text-align: center; /* center text */
    height: 100%;
}

/* ☀️ Sunny */
.weather-sunny {
    background: linear-gradient(135deg,#FFD54F,#FF9800);
}

/* 🌤 Partly cloudy */
.weather-partly {
    background: linear-gradient(135deg,#81D4FA,#29B6F6);
}

/* ☁️ Cloudy */
.weather-cloudy {
    background: linear-gradient(135deg,#90A4AE,#607D8B);
}

/* 🌫 Fog */
.weather-fog {
    background: linear-gradient(135deg,#B0BEC5,#78909C);
}

/* 🌦 Drizzle */
.weather-drizzle {
    background: linear-gradient(135deg,#4FC3F7,#0288D1);
}

/* 🌧 Rain */
.weather-rain {
    background: linear-gradient(135deg,#1976D2,#0D47A1);
}

/* ❄️ Snow */
.weather-snow {
    background: linear-gradient(135deg,#E1F5FE,#B3E5FC);
    color: #333;
}

/* ⛈ Storm */
.weather-storm {
    background: linear-gradient(135deg,#5E35B1,#311B92);
}

/* default */
.weather-default {
    background: linear-gradient(135deg,#546E7A,#37474F);
}

.weather-icon {
    font-size: 32px;
}

.weather-desc {
    opacity: 1;
    font-size: 18px;
    font-weight: bold;
}


/*
    * Fin style pour le widget météo de la page d'accueil
    * Style pour les panels de la page d'accueil
*/
.panel-header {
    background: linear-gradient(to right, #ee7900, #d8363a, #dd3675) !important;
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    gap: 10px;
    font-weight: 600;
    font-size: 20px;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    font-size: 15px;
}

.header-icon {
    color: ghostwhite;
    font-size: 20px;
}

/*
    * Fin style pour les panels de la page d'accueil
    * Style pour les boutons manuels dans les cartes de la page d'accueil
*/

.manual-btn {
    margin-top: 6px;
    font-size: 11px;
    border: none;
    background: #f3f4f6;
    color: #555;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .manual-btn i {
        color: #e63946;
        font-size: 12px;
    }

    .manual-btn:hover {
        background: #ffe5e5;
        color: #c1121f;
    }

/*
        * Fin style
        * Style pour la section des actualités dans la page d'accueil

*/

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-content {
    display: flex;
    flex-direction: column; /* stack vertically */
    justify-content: center; /* vertical center */
    align-items: center; /* horizontal center */
    text-align: center; /* center text */
}

    .news-content p {
        margin: 8px 0 10px 0;
        font-size: 14px;
        line-height: 1.6;
        color: navajowhite;
        font-weight: bolder;
    }

    .news-content span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 18px;
        font-weight: 500;
        color: #6c757d;
        background: #f5f7fa;
        padding: 4px 10px;
        border-radius: 6px;
    }


.event-title {
    font-weight: 600;
    color: white; /* or whatever color you want */
    white-space: nowrap; /* prevents wrapping */
}

    .event-title strong {
        margin-right: 6px;
    }

.citation-content {
    display: flex;
    flex-direction: column; /* stack vertically */
    justify-content: center; /* vertical center */
    align-items: center; /* horizontal center */
    text-align: center; /* center text */
}

    .citation-content p {
        margin: 8px 0 10px 0;
        font-size: 14px;
        line-height: 1.6;
        color: navajowhite;
        font-weight: bolder;
    }


.news-btn {
    background: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
}

    .news-btn:hover {
        background: #eee;
    }

/*
    * Fin style pour la section des actualités dans la page d'accueil
    * Style pour les applications dans la page d'accueil
*/


.manual-btn {
    margin-top: auto;
    font-size: 11px;
    border: none;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
}

    .manual-btn:hover {
        background: #ffe5e5;
    }
/*
    * Fin style pour les applications dans la page d'accueil
   * Style pour la section logistique de la page d'accueil
*/
.Logistics-Text {
    font-size: 14px;
    color: black;
    font-weight: bolder;
}

.links-header {
    font-weight: bolder;
    font-size: 18px;
    text-align: center;
}

.links-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    align-items: center;
    /*padding-top: 10px;*/
}

.small-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
}

    .small-card img {
        height: 60px;
        width: 80px;
        object-fit: contain;
    }

/*
    * Fin style pour la section logistique de la page d'accueil
    * Style pour les panels verticaux de la page d'accueil
*/
.panel-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.line-box {
    flex: 1;
    background: #EBEBEB;
    border-radius: 8px;
    padding-left: 9px;
    padding-top: 5px;
    padding-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/*
    * Fin style pour les panels verticaux de la page d'accueil
    * Style global pour la page d'accueil
*/
.dashboard-wrapper {
    cursor: default;
}

@media (min-width:1400px) {
    .dashboard-wrapper {
        transform: scale(0.9);
        transform-origin: top left;
        width: 111%;
    }
}

.e-dashboardlayout .e-panel {
    cursor: default !important;
    border: 5px solid !important;
}

.e-dashboardlayout .e-panel-content {
    cursor: default !important;
}

.e-dashboardlayout .e-panel .e-panel-header {
    background: linear-gradient(to right, #ee7900, #d8363a, #dd3675) !important;
    box-shadow: none !important;
    padding: 4px 8px;
}


/* Supprimer les bordures des panels */
.e-dashboardlayout .e-panel {
    border: none !important;
    box-shadow: 50px 50px 2px 50px gray;
}

    /* Supprimer aussi la bordure du header si présent */
    .e-dashboardlayout .e-panel .e-panel-header {
        border-bottom: none !important;
    }

    /* Supprimer fond blanc si besoin */
    .e-dashboardlayout .e-panel .e-panel-container {
        border: none !important;
    }

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.quick-link-btn {
    background: white;
    border-radius: 12px;
    padding: 15px 30px;
    border: 1px solid #e5e5e5;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

    .quick-link-btn:hover {
        background: #f97316;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }


/*
        * Fin style global pour la page d'accueil
         * Style pour les dropdowns et les liens dans le menu de navigation
*/

.iseor-dropdown {
    min-width: 220px;
    padding: 8px;
}

.iseor-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    font-weight: 500;
    color: #333;
}

    .iseor-link:hover {
        background: linear-gradient(to right, #ee7900, #d8363a, #dd3675);
        color: white !important;
    }

.iseor-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/*
    * Fin style pour les dropdowns et les liens dans le menu de navigation
*/

@media (max-width:768px) {

    .links-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .small-card img {
        height: 70px;
        width: 70px;
    }

    .quick-actions {
        flex-direction: column;
        gap: 10px;
    }

    .quick-link-btn {
        width: 100%;
        justify-content: center;
    }



    .card-line h6 {
        font-size: 14px;
    }
}

.header-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

/*
    * Fin style pour les dropdowns et les liens dans le menu de navigation

    * Style pour le formulaire de réservation 
*/

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/*
    * Fin style pour le formulaire de réservation
    * Style pour la page d'administration
*/
.admin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 80vh;
    flex-wrap: wrap;
}

/* CARD STYLE */
.admin-card {
    width: 320px;
    height: 220px;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ICON */
.card-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

/* TITLE */
.admin-card h2 {
    font-weight: bold;
    margin-bottom: 10px;
}

/* DESCRIPTION */
.admin-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* HOVER EFFECT */
.admin-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* OPTIONAL SECOND CARD COLOR */
.admin-card:nth-child(1) {
    background: linear-gradient(315deg, #3905F7, #7CACD1);
}

.admin-card:nth-child(2) {
    background: linear-gradient(135deg, #1cc88a, #13855c);
}

.admin-card:nth-child(3) {
    background: linear-gradient(315deg, #83A6D1, #A5B3F4);
}

.admin-card:nth-child(4) {
    background: linear-gradient(315deg, #F7722E, #E8B92C);
}
