body {
    font-family: 'Raleway', sans-serif;
    font-size: 0.875em;
    background-color: #EEEEEE;
}

:root {
    --mdc-theme-primary: #272d5b;
    --mdc-theme-primary-50: #e5e6eb;
    --mdc-theme-primary-100: #bec0ce;
    --mdc-theme-primary-200: #9396ad;
    --mdc-theme-primary-300: #686c8c;
    --mdc-theme-primary-400: #474d74;
    --mdc-theme-primary-500: #272d5b;
    --mdc-theme-primary-600: #232853;
    --mdc-theme-primary-700: #1d2249;
    --mdc-theme-primary-800: #171c40;
    --mdc-theme-primary-900: #0e112f;
    --mdc-theme-primary-A100: #6c77ff;
    --mdc-theme-primary-A200: #3948ff;
    --mdc-theme-primary-A400: #0618ff;
    --mdc-theme-primary-A700: #0011eb;

    --mdc-theme-secondary: #a5be19;
    --mdc-theme-secondary-50: #f4f7e3;
    --mdc-theme-secondary-100: #e4ecba;
    --mdc-theme-secondary-200: #d2df8c;
    --mdc-theme-secondary-300: #c0d25e;
    --mdc-theme-secondary-400: #b3c83c;
    --mdc-theme-secondary-500: #a5be19;
    --mdc-theme-secondary-600: #9db816;
    --mdc-theme-secondary-700: #93af12;
    --mdc-theme-secondary-800: #8aa70e;
    --mdc-theme-secondary-900: #799908;
    --mdc-theme-secondary-A100: #f1ffc6;
    --mdc-theme-secondary-A200: #e4ff93;
    --mdc-theme-secondary-A400: #d7ff60;
    --mdc-theme-secondary-A700: #d1ff47;

    --mdc-theme-tertiary: #b1aec4;
    --mdc-theme-tertiary-50: #f6f5f8;
    --mdc-theme-tertiary-100: #e8e7ed;
    --mdc-theme-tertiary-200: #d8d7e2;
    --mdc-theme-tertiary-300: #c8c6d6;
    --mdc-theme-tertiary-400: #bdbacd;
    --mdc-theme-tertiary-500: #b1aec4;
    --mdc-theme-tertiary-600: #aaa7be;
    --mdc-theme-tertiary-700: #a19db6;
    --mdc-theme-tertiary-800: #9894af;
    --mdc-theme-tertiary-900: #8884a2;
    --mdc-theme-tertiary-A100: #ffffff;
    --mdc-theme-tertiary-A200: #fefdff;
    --mdc-theme-tertiary-A400: #d1caff;
    --mdc-theme-tertiary-A700: #bbb1ff;
}

.primary-color { color: var(--mdc-theme-primary) !important; }
.secondary-color { color: var(--mdc-theme-secondary) !important; }
.tertiary-color { color: var(--mdc-theme-tertiary) !important; }
.primary-bg { background-color: var(--mdc-theme-primary) !important; }
.secondary-bg { background-color: var(--mdc-theme-secondary) !important; }
.tertiary-bg { background-color: var(--mdc-theme-tertiary) !important; }

/*
 * OVERRIDES
 */
.theme-form-label,
.theme-form-checkbox-label {
    color: inherit;
}
.card {
    border-radius: 6px;
}
.mdc-button {
    font-family: 'Raleway', sans-serif;
}
.mdc-dialog__content {
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
}
.mdc-list-group .subheader,
.mdc-list-group__subheader {
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--mdc-theme-secondary);
}
.mdc-dialog__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--mdc-theme-primary) !important;
    padding-bottom: 0.25rem;
}

/*
 * STYLES
 */
.badge-primary {
    background-color: var(--mdc-theme-secondary);
}

.styled-link {
    display: inline-flex;
    align-items: center;
    font-size: inherit;
    color: var(--mdc-theme-primary);
    background-color: rgba(255, 255, 255, 0);
    outline: none;
    border: none;
}
.styled-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    font-size: 1rem;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid #EEEEEE;
    border-radius: 5px;
    text-decoration: none !important;
}
.styled-button.no-borders {
    border: none;
    border-radius: inherit;
}
.styled-button .styled-button-span {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
}

.styled-icon,
.styled-button > i:first-child {
    font-size: 1rem;
    color: var(--mdc-theme-primary);
}
.styled-button.styled-button-inverse {
    background-color: var(--mdc-theme-primary);
    border-color: rgba(255, 255, 255, 0);
    color: white;
}
.styled-icon.styled-icon-inverse,
.styled-button.styled-button-inverse > i:first-child {
    color: white;
}

.swipe-actions .styled-button {
    padding-left: 6px;
    padding-right: 6px;
}

.circled-picture {
    border: 5px solid currentColor;
    border-radius: 50%;
    flex-shrink: 0;
    flex-grow: 0;
}


@media (min-width: 768px) {
    .app-navbar {
        height: 94px;
    }
    .pt-navbar {
        padding-top: 94px !important;
    }
    .pb-navbar {
        padding-bottom: 94px !important;
    }
}
.app-navbar-logo {
    display: inline-block;
    max-height: 40px;
    height: 100%;
}

.section-header {
    padding-top: 60px;
    padding-bottom: 30px;
}
.section-header-title {
    font-size: 40px;
    font-weight: 600;
    text-transform: none;
    color: var(--mdc-theme-primary);
}


/* Home section card */
.section-card-icon {
    background-color: var(--mdc-theme-secondary) !important;
}
.section-card-icon-inverse {
    background-color: var(--mdc-theme-primary) !important;
}

.section-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mdc-theme-primary);
}
.section-card-subtitle {
    font-size: 0.875rem;
    color: var(--mdc-theme-primary);
}

.section-card-secondary-title {
    font-size: 0.975rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--mdc-theme-secondary);
}
.section-card-secondary-subtitle {
    font-size: 0.875rem;
}
.section-card-tertiary-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--mdc-theme-primary);
}
.section-card-quaternary-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mdc-theme-primary);
}
.section-card-quaternary-subtitle {
    font-size: 0.875rem;
}

/* LIST */
.home-tile .card {
    background-color: white;
}
.home-tile .cta-trigger {
    background-color: white;
}

.home-tile.theme-dark .card {
    background-color: var(--mdc-theme-primary);
    color: white;
}
.home-tile.theme-dark .cta-trigger {
    background-color: var(--mdc-theme-primary);
}
.home-tile.theme-dark .card-footer {
    border: none;
    background-color: var(--mdc-theme-primary);
    color: white;
}
.home-tile.theme-dark .section-card-title,
.home-tile.theme-dark .section-card-subtitle,
.home-tile.theme-dark .section-card-quaternary-subtitle,
.home-tile.theme-dark .styled-link,
.home-tile.theme-dark .styled-icon,
.home-tile.theme-dark .styled-button > i:first-child,
.home-tile.theme-dark .cta-trigger > i {
    color: white;
}
.home-tile.theme-dark .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.home-tile.theme-dark .section-card-quaternary-title {
    color: var(--mdc-theme-secondary);
}

.home-tile[data-ref="work-advancement"] {
    margin-bottom: 1rem;
}
.home-tile[data-ref="work-advancement"] .section-card-title {
    font-size: 1.25rem;
}
.home-tile[data-ref="work-advancement"] .swiper-slide .circled-picture {
    height: 144px;
    width: 144px;
    transform: scale(0.75, 0.75);
    color: #EEEEEE;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2,1), transform 0.3s cubic-bezier(0.4, 0, 0.2,1);
}
.home-tile[data-ref="work-advancement"] .swiper-slide.swiper-slide-active .circled-picture {
    transform: scale(1, 1);
    color: var(--mdc-theme-primary);
}

.home-tile[data-ref="housing-info"] .section-card-secondary-title {
    text-transform: none;
}

.home-tile[data-ref="sponsorship"] {
    grid-column: 1 / 3;
}
@media (min-width: 768px) {
    .home-tiles-row {
        display: grid;
        grid-gap: 1rem;
        min-width: 0;
    }
    .home-tiles-columns {
        display: grid;
        grid-template-columns: 1.1fr 1.4fr;
        grid-gap: 1rem;
        min-width: 0;
    }
    .home-tiles-columns > .home-tiles-column {
        display: grid;
        grid-row-gap: 1rem;
        min-width: 0;
    }
    .home-tiles-columns > .home-tiles-column > .home-tile {
        min-height: 300px;
    }
}
@media (max-width: 991.98px) {
    .home-tile[data-ref="news-feed"] {
        margin-bottom: 1rem;
    }
    .home-tiles-columns > .home-tiles-column > .home-tile {
        margin-bottom: 1rem;
    }
}
@media (min-width: 992px) {
    .home-tiles {
        display: grid;
        grid-template-columns: 37% 63%;
        grid-template-columns: minmax(0, calc(100% / 3)) minmax(0, calc(100% / 3 * 2));
        min-width: 0;
    }
    .home-tile[data-ref="news-feed"] {
        margin-right: 1rem;
    }
}

/* Suivi de chantier */
#slider--work-advancement .slider-button-prev {
    background-size: contain;
    background-image: url("./images/sliders/arrow-left.png");
}
#slider--work-advancement .slider-button-next {
    background-size: contain;
    background-image: url("./images/sliders/arrow-right.png");
}

/* Navigation */
.work-advancement-nav {
    padding-right: 1rem;
    width: calc(60px + 1rem);
    height: 100%;
    overflow: auto;
    flex-shrink: 0;
    background:
        linear-gradient(#EEEEEE 30%, hsla(0,0%,100%, 0)),
        linear-gradient(hsla(0,0%,100%,0) 10px, #EEEEEE 70%) bottom,
        radial-gradient(at top, rgba(0,0,0,0.4), transparent 70%),
        radial-gradient(at bottom, rgba(0,0,0,0.4), transparent 70%) bottom;
    background-repeat: no-repeat no-repeat;
    background-color: #EEEEEE;
    background-size: 100% 20px, 100% 20px, 100% 10px, 100% 10px;
    background-attachment: local, local, scroll, scroll;
}
@media (min-width: 992px) {
    .work-advancement-nav {
        width: 320px;
    }
}
/*@media (max-width: 991.98px) {
    .work-advancement-nav {
        margin-bottom: 1rem;
    }
}
@media (min-width: 992px) {
    .work-advancement-nav {
        margin-right: 1rem;
        height: 100%;
    }
}*/

/* Suivi de chantier - étapes */
.work-advancement-timeline {
    position: relative;
    padding-top: 30px;
    padding-right: 1rem;
    padding-bottom: 30px;
    width: 100%;
    min-height: 100%;

    background-image: url('./images/timeline/arrow-up.png'), url('./images/timeline/arrow-down.png');
    background-repeat: no-repeat, no-repeat;
    background-position: top left 16px, bottom left 16px;
    background-size: 25px 16px, 25px 16px;
}
.work-advancement-timeline::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    bottom: 30px;
    transform: translateX(-50%);
    width: 5px;
    height: calc(100% - 60px);
    background-color: white;
    border-radius: 5px;
}
.work-advancement-timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
}
.work-advancement-timeline-item:first-child {
    padding-top: 48px;
}
.work-advancement-timeline-item:last-child {
    padding-bottom: 48px;
}
.work-advancement-timeline-item:not(:last-child) {
    padding-bottom: 20px;
}
/* Image */
.work-advancement-timeline-item .circled-picture {
    width: 60px;
    height: 60px;
    border-color: #EEEEEE;
    background-color: white;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2,1);
}
.work-advancement-timeline-item.active .circled-picture {
    border-color: var(--mdc-theme-primary);
}
/* Titre */
.work-advancement-timeline-item .work-advancement-timeline-item-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    word-break: break-word;
    color: var(--mdc-theme-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2,1);
}
.work-advancement-timeline-item:not(.active) .work-advancement-timeline-item-title {
    opacity: 0.5;
}
.work-advancement-timeline-item.active .work-advancement-timeline-item-title {
    font-size: 1rem;
}
@media (max-width: 991.98px) {
    .work-advancement-timeline-item .work-advancement-timeline-item-title {
        display: none;
    }
}

/* Fil d'actu */
.news-feed-item-date,
.news-feed-item-title,
.news-feed-item-description {
    font-size: 0.875rem;
}

.news-feed-item-date {
    color: var(--mdc-theme-secondary);
}
.news-feed-item-title {
    color: var(--mdc-theme-primary);
    font-weight: 600;
}
.news-feed-item-description {
    color: var(--mdc-theme-primary);
}

#notebooks-management-mobile-section-slider .is-faded {
    display: none !important;
}

.temporary-modal-title {
    font-size: 1.4rem;
}
