/*
    Thème "Nobel" — palette personnalisée pour l'Assistance Nobel (Lycée Alfred Nobel)
    Basé sur la structure du thème officiel "Modern Light" (variables CSS uniquement).
    Copier ce fichier plutôt que le modifier si une nouvelle variante de couleurs est nécessaire.
*/

:root {
    --primary: #16324f;
    --secondary: #2c5a82;
    --tertiary: #2c5a82;

    --accent: #f3a453;       /* accent ambre — CTA de recherche, badges, focus */
    --accent-dark: #c97a2e;

    --surface: #ffffff;
    --main-background: #eef1f4;

    --font__pri-clr: #1c2530;
    --font__sec-clr: #6b7480;

    --header__bg: #ffffff;
    --header_logo__clr: rgb(197, 202, 212);
    --header_nav__clr: #16324f;
    --header_nav__hover_clr: var(--link__pri-hover-clr);

    --search__bg: #16324f;
    --search__input-bg: #ffffff;
    --search__title-clr: #ffffff;
    --search__icon-fill: #8b98a6;

    --breadcrumbs__a-hover-clr: #0e2338;
    --link__pri-hover-clr: #0e2338;

    --info: #16324f;
    --info-2: #e7eef5;
    --success: #2f9e6a;
    --success-2: #e5f5ee;

    --input-bg: #fff;

    --datepicker__clr: var(--gray-5);

    --shadow-1-30: var(--shadow-1-10);

    --notification__clr: var(--font__pri-clr);

    --table_row__bg-hover: color-mix(in srgb, var(--surface) 90%, var(--secondary));

    --navlink__title-clr: #16324f;
    --navlink__hover-bg: #f7f9fb;
    --navlink__bg: #ffffff;
    --preview__clr: var(--font__pri-clr);
    --preview__hover-bg: #f9fafd;
    --preview__border-clr: #e4e8ed;
    --suggest_preview__hover-icon-fill: var(--primary);

    --ticket_response__bg: color-mix(in srgb, white 90.5%, var(--green-1));

    --header_profile__clr: #16324f;

    --icon_circle__clr: var(--accent-dark);
    --icon_circle__bg: #fdeee0;
    --navlink_icon_hover__clr: #ffffff;
    --navlink_icon_hover__bg: var(--primary);

    --link__sec-hover-clr: #1c3d5f;

    --dropdown__clr: var(--font__pri-clr);
}

/* ADDITIONAL OVERWRITES — general selector polish for the Nobel theme.
   These require !important as they load after the rest of the CSS cascade. */
:root {
    --header_border__clr: #e4e8ed !important;
    --btn_full__hover_bg: var(--link__pri-hover-clr) !important;
    --dropdown_input__border-clr: #e4e8ed !important;
    --dropdown_label__border-clr: #e4e8ed !important;
    --dropdown_list__border-clr: #e4e8ed !important;
}

.navlink {
    border-radius: 16px !important;
    border: 1px solid #e4e8ed !important;
    box-shadow: none !important;
    transition: box-shadow .15s ease, transform .15s ease;
}
.navlink:hover {
    box-shadow: 0 10px 24px rgba(20, 32, 46, 0.10) !important;
    transform: translateY(-1px);
}

.search__form .search__submit,
.search__submit {
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.form input.form-control, .form textarea.form-control {
    border-color: #e4e8ed !important;
}
.form input.form-control::placeholder, .form textarea.form-control::placeholder {
    color: var(--gray-2) !important;
}
.divider {
    background: #e4e8ed !important;
    height: 1px !important;
    margin: 30px 0 !important;
}
a.link {
    text-decoration: none !important;
}

/* Utility bar (établissement + contact) */
.util-bar {
    background: #0e1f30;
    color: #a9bbcc;
}
.util-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 12px;
    letter-spacing: .2px;
}
.util-bar__contact span {
    margin-left: 20px;
}

/* Hero-style search band — full-bleed (breaks out of the centered .contr wrapper) */
.help-search {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 56px 16px 64px !important;
    box-sizing: border-box;
}
.search__form {
    background: linear-gradient(180deg, #16324f 0%, #1c3d5f 100%) !important;
    padding: 56px 16px 64px !important;
}
.search__title {
    font-size: 32px !important;
    margin-bottom: 20px !important;
}
.search__form .form-group {
    max-width: 640px !important;
}
.search__form .form-group input {
    border-radius: 12px !important;
    height: 60px !important;
    box-shadow: 0 12px 28px rgba(9, 21, 34, 0.28) !important;
}

/* Action tiles — equal 4-column grid, matching the mockup */
.nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}
.nav .navlink {
    width: auto !important;
    flex: none !important;
}
@media screen and (max-width: 900px) {
    .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media screen and (max-width: 560px) {
    .nav {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 900px) {
    .util-bar__inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 8px 0;
    }
}

/* Status card — service message on the homepage, overlapping the hero */
.status-card-wrap {
    display: flex;
    justify-content: center;
    margin-top: -34px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    padding: 0 16px;
}
.status-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(20, 32, 46, 0.10);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 28px;
}
.status-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.status-card__body {
    flex-grow: 1;
}
.status-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1c2530;
}
.status-card__text {
    font-size: 12.5px;
    color: #7c8896;
    margin-top: 2px;
}
.status-card__text p {
    margin: 0;
}
.status-card__badge {
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-card--green .status-card__icon { background: #e5f5ee; color: #2f9e6a; }
.status-card--green .status-card__badge { background: #e5f5ee; color: #2f9e6a; }

.status-card--orange .status-card__icon { background: #fdeee0; color: #c97a2e; }
.status-card--orange .status-card__badge { background: #fdeee0; color: #c97a2e; }

.status-card--red .status-card__icon { background: #fbe5e5; color: #c1342f; }
.status-card--red .status-card__badge { background: #fbe5e5; color: #c1342f; }

.status-card--blue .status-card__icon { background: #e7eef5; color: #16324f; }
.status-card--blue .status-card__badge { background: #e7eef5; color: #16324f; }

.status-card--white .status-card__icon { background: #f0f2f5; color: #6b7480; }
.status-card--white .status-card__badge { background: #f0f2f5; color: #6b7480; }

@media screen and (max-width: 900px) {
    .status-card {
        flex-wrap: wrap;
    }
    .status-card__badge {
        order: 1;
        margin-left: 62px;
    }
}

/* Footer */
.site-footer {
    background: #0e1f30;
    color: #93a4b3;
    margin-top: 32px;
    padding: 44px 0 22px;
}
.site-footer__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}
.site-footer__about {
    max-width: 340px;
}
.site-footer__brand {
    margin-bottom: 12px;
}
.site-footer__logo {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}
.site-footer__about p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}
.site-footer__heading {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.site-footer__links,
.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}
.site-footer__links a,
.site-footer__contact span {
    color: #93a4b3;
}
.site-footer__links a:hover {
    color: #ffffff;
}
.site-footer__bottom {
    border-top: 1px solid #1c3348;
    margin-top: 32px;
    padding-top: 18px;
    font-size: 12px;
    color: #6d8095;
}
/* Keep the mandatory "Powered by HESK" line legible on the dark footer */
.site-footer + footer.footer,
.site-footer + footer.footer p {
    background: #0e1f30 !important;
    color: #6d8095 !important;
}
.site-footer + footer.footer a {
    color: #93a4b3 !important;
}
