/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
.news.section::after {
    content: "";
    width: 100%;
    height: 20px;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    box-shadow: 0px -10px 10px -10px rgba(0,0,0,1) inset;
    -webkit-box-shadow: 0px -10px 10px -10px rgba(0,0,0,1) inset;
    -moz-box-shadow: 0px -10px 10px -10px rgba(0,0,0,1) inset;
    border-bottom: 1px solid var(--bs-gray-800);
}

/* Hero container */
.container.hero {
    height: 50vh;
    background: url("../img/lifb-calendrier-01.jpg") 0 30% no-repeat;
    background-size: cover;
    width: 100%;
    max-width: unset;
    min-height: unset;
    display: block;
    position: relative;
}
.container.hero::after {
  content: "";
  width: 100%;
  height: 20%;
  padding: 0;

  margin: 0;

  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  box-shadow: 0px -12px 14px -6px rgba(0,0,0,0.31) inset;
  -webkit-box-shadow: 0px -12px 14px -6px rgba(0,0,0,0.31) inset;

  -moz-box-shadow: 0px -12px 14px -6px rgba(0,0,0,0.31) inset;
}

.hero .overlay {
    text-align: left !important;
    padding: 1rem 1rem 1rem 2rem !important;
    margin: 0;
    display: block;
    min-height: unset;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, .5);
}
.hero .overlay .row {
    height: 100%;
}
.hero .overlay .col {
    position: relative;
}
.hero .overlay .col p.hero {
    color: var(--contrast-color);
    font-size: clamp(1.2rem, 0.986rem + 0.571vw, 1.5rem);
    font-weight: 700;
    font-family: var(--heading-font);
    text-shadow: 2px 2px 8px #000000;

    min-height: unset;
    padding: 0;
    display: block;
    margin: 0;
}

.hero .overlay .col p.hero span {
    font-size: clamp(2rem, 1.286rem + 1.905vw, 3rem);
}
.hero .overlay .col .sub-hero {
    color: var(--contrast-color);
    font-size: clamp(1.2rem, 0.986rem + 0.571vw, 1.5rem) !important;
    font-weight: 300;
    font-family: var(--heading-font);
    text-shadow: 2px 2px 8px #000000;
    text-align: left !important;
    padding: 0rem 1rem 1rem 0rem !important;
    display: block;
    margin-top: 1rem;
}
.hero .overlay .col .hero-cta {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    row-gap: 1.5rem;
    height: 100%;
    z-index: 10;
    position: relative;
}


.animate__scrolledToListe {
    border-radius: .5rem;

    animation-name: animate__scrolledToListe;
    animation-duration: 1.5s;
    animation-timing-function: ease-in-out;
    animation-delay: 0;
    animation-iteration-count: 1;
    animation-direction: none;
}
@keyframes animate__scrolledToListe {
    0% {
        background: rgba(25, 119, 204, 1);
        transform: scaleX(1.1) scaleY(1.1);
    }
    25% {
        background: rgba(25, 119, 204, 0);
        transform: scaleX(1) scaleY(1);
    }
    50% {
        background: rgba(25, 119, 204, 1);
        transform: scaleX(1.1) scaleY(1.1);
    }
    100% {
        background: rgba(25, 119, 204, 0);
        transform: scaleX(1) scaleY(1);
    }
}

.animate__scrolledToCalendar {
    animation-name: animate__scrolledToCalendar;
    animation-duration: 1.5s;
    animation-timing-function: ease-in-out;
    animation-delay: 0;
    animation-iteration-count: 1;
    animation-direction: none;
}
@keyframes animate__scrolledToCalendar {
    0% {
        background: rgba(25, 119, 204, 1);
        transform: scaleX(1.5) scaleY(1.5);
        border-radius: .5rem;
        z-index: 9000;
    }
    25% {
        background: rgba(25, 119, 204, 0);
        transform: scaleX(1) scaleY(1);
        border-radius: 0;
        z-index: revert;
    }
    50% {
        background: rgba(25, 119, 204, 1);
        transform: scaleX(1.5) scaleY(1.5);
        border-radius: .5rem;
        z-index: 9000;
    }
    100% {
        background: rgba(25, 119, 204, 0);
        transform: scaleX(1) scaleY(1);
        border-radius: 0;
        z-index: revert;
    }
}


.news.section.collapsable {
    transition: all ease-in-out 0.4s;
    background: linear-gradient(180deg, 
        rgba(7, 22, 89, 0.1) 0%, 
        rgba(7, 22, 89, 0) min(50%), 
        rgba(7, 22, 89, 0.3) min(100%));
}
.news.section.collapsable h2.collapsable {
    cursor: pointer;
    text-wrap: balance;
}
.news.section.collapsable:not(:has(.container.folded.show)) {
    padding: 1rem 0;
    background: transparent;
}
.news.section.collapsable:not(:has(.container.folded.show))::after {
    box-shadow: none;
    -webkit-box-shadow: none;
    border-bottom: 1px solid var(--bs-gray-400);
}

.news.section.collapsable:not(:has(.container.folded.show)):has(h2.collapsable:hover) {
    background: linear-gradient(180deg, rgba(7, 22, 89, 0.1) 0%, rgba(7, 22, 89, 0) 100%);
}

.news.section.collapsable:not(:has(.container.folded.show)) h2.collapsable {
    color: var(--contrast-color);
    background: color-mix(in srgb, var(--accent-color), transparent 0%);
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all ease-in-out 0.4s;
    border: 1px solid var(--accent-color);
    margin-bottom: 0;
    font-size: 1.2rem;
    text-wrap: balance;
}
.news.section.collapsable:not(:has(.container.folded.show)) h2.collapsable::before,
.news.section.collapsable:not(:has(.container.folded.show)) h2.collapsable::after {
    content: none;
}

.news.section.collapsable:not(:has(.container.folded.show)) h2.collapsable:hover {
    background: var(--contrast-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-5px);
}

.news.section.collapsable:not(:has(.container.folded.show)) .section-title:not(.notCollapsable) {
    padding-bottom: 0;
}
.news.section.collapsable:has(.container.folded.show) .section-title:not(.notCollapsable)::after {
    content: "\F1C1";
    position: absolute;
    top: .5rem;
    right: .5rem;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    color: color-mix(in srgb, var(--accent-color), transparent 50%);
    font-size: 2rem;
}



.section.dates-futures .container.main,
.section.dates-passees .container.main {
    padding-right: 2rem !important;
    padding-left: 2rem !important;
}

.section.calendrier {
  background: linear-gradient(0deg, rgba(172, 39, 35, 0.2) 0%, #ffffff min(25rem, 50%), rgba(172, 39, 35, 0.1) 100%);
}
.section.legende {
  background: linear-gradient(0deg, rgba(7, 22, 89, 0.1) 0%, #ffffff 50%, rgba(7, 22, 89, 0.2) 100%);
}
.section.dates-futures {
  background: linear-gradient(0deg, rgba(172, 39, 35, 0.2) 0%, #ffffff min(25rem, 50%), rgba(172, 39, 35, 0.1) 100%);
}
.section.dates-passees {
  background: linear-gradient(0deg, rgba(7, 22, 89, 0.1) 0%, #ffffff min(25rem, 50%), rgba(7, 22, 89, 0.2) 100%);
}

.news.section::after {
  content: "";
  width: 100%;
  height: 20px;
  padding: 0;
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  box-shadow: 0px -10px 10px -10px rgba(0,0,0,1) inset;
  -webkit-box-shadow: 0px -10px 10px -10px rgba(0,0,0,1) inset;
  -moz-box-shadow: 0px -10px 10px -10px rgba(0,0,0,1) inset;
  border-bottom: 1px solid var(--bs-gray-800);
}

.calendrier .col {
    box-shadow: var(--box-shadow);
}

.calendrier .year {
    width: 100%;
    height: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    background: #fff;
    position: relative;
}

.calendrier .year:before {
    position: absolute;
    content: attr(data-year);
    color: #e0e0e0;
    top: -5rem;
    left: .5rem;
    font-family: sans-serif;
    font-weight: 700;
    font-size: 5rem;
    z-index: -1;
}

.calendrier .year ul {
    display: inline-block;
    padding: 0;
    margin: 0 1px;
    list-style: none;
    flex: 1;
    position: relative;
    height: 100%;
}
.calendrier .year ul:before {
    position: absolute;
    content: attr(data-month);
    color: transparent;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.25);
    font-family: sans-serif;
    font-weight: 700;
    font-size: 24px;
    transform-origin: 0 100%;
    transform: rotate(90deg) translateX(-20px) translateY(0px);
    top: 0px;
    left: 0px;
}
.calendrier .year ul:first-child {
    margin-left: 0;
}
.calendrier .year ul:last-child {
    margin-right: 0;
}
.calendrier .year ul li {
    padding: .5rem;
    margin: 0;
    box-shadow: inset 0 0 0 1px #f0f0f0;
    background: color-mix(in srgb, #f8f8f8, transparent 50%);
    display: flex;
    flex-flow: row wrap;
    min-height: 2rem;
    height: calc(100% / 31);
    position: relative;
    z-index: 2;
}
.legende ul li:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}
.calendrier .year ul li:before {
    content: attr(data-date);
    color: transparent;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.25);
    text-align: right;
    right: 2px;
    position: absolute;
    line-height: 24px;
    font-size: 10px;
}
.calendrier .year ul li[data-day="0"], .year ul li[data-day="6"] {
    background: color-mix(in srgb, #eeeeee, transparent 50%);
    box-shadow: inset 0 0 0 1px #e0e0e0;
}
.calendrier div.badge {
    width: calc(50% - .5rem);
    border: 1px solid var(--contrast-color);
    margin-right: .25rem;
    cursor: pointer;
    padding: 0;
    font-size: .8rem;
    border-radius: .5rem;
    position: relative;
}
.calendrier div.badge span {
    display: none;
    z-index: 20;
}
.calendrier div.badge:hover {
    box-shadow: var(--box-shadow);
    transform: scale(1.5, 1.5);
    width: min-content;
    padding-right: .5rem;
    padding-left: .5rem;
    position: absolute;
    display: inline-block;
    z-index: 10;
}
.calendrier div.badge:hover span {
    display: block;
    width: min-content;
    z-index: 20;
}
.calendrier div.badge,
.legende div.badge {
    background: var(--evt-bg-color);
    border: 1px solid var(--evt-border-color);
    color: var(--evt-color);
}

.legende h5 {
    font-weight: 700;
    font-size: 1.2rem;
}
.legende li {
    padding: .55rem;
    width: calc(100% - 3rem);
    margin-top:.5rem;
    margin-bottom:.5rem;
    font-size: 1.1rem;
}

.list-group-item.active {
    color: var(--default-color);
    background-color: unset;
    border: 1px solid var(--bs-gray-300);
}
.list-group-item:not(.active) {
    color: var(--bs-gray-500);
    background-color: unset;
    border: 1px solid #ffffff;
}

.legende div.badge {
    margin-right: 1rem;
    height: 1rem;
    width: 2rem;
}

.legende li:not(.active) div.badge {
    background: var(--bs-gray-200);
    border: 1px solid var(--bs-gray-200);
}

.liste-dates .mois {
    border-top: 1px solid var(--default-lifb-red);
    background: linear-gradient(180deg, rgba(172, 39, 35, 0.1) 0%, rgba(172, 39, 35, 0) 100%);
    padding-top: .5rem;
    margin-bottom: 1rem;
}
.liste-dates .mois h5 {
    font-weight: 700;
}

@media (min-width: 992px) {
  .liste-dates .row-cols-lg-3 > * {
    width: calc(100% / 3 - 3rem);
    margin-left: 3rem;
  }
  .date-icon {
    margin-left: -2rem;
  }
  .liste-dates .col.mois {
    margin-left: 0;
    width: calc(100% / 3);
  }
}
@media (max-width: 991px) {
  .liste-dates .row-cols-md-2 > * {
    width: calc(50% - 3rem);
    margin-left: 3rem;
  }
  .date-icon {
    margin-left: -2rem;
  }
  .liste-dates .col.mois {
    margin-left: 0;
    width: 50%;
  }
}
@media (max-width: 767px) {
    .liste-dates .row-cols-1 > * {
    width: calc(100% - 3rem);
    margin-left: 3rem;
  }
  .date-icon {
    margin-left: -2rem;
  }
  .liste-dates .col.mois {
    margin-left: 0;
    width: 100%;
  }
}

.liste-dates .evenement {
    font-size: 1.2rem;
    margin-bottom: .5rem;    
    display: flex;
    cursor: pointer;
    padding: .5rem;
    border-radius: .5rem;
    transition: background-color .2s ease-in-out .1s, box-shadow .2s ease-in-out .1s;
    border: 1px solid var(--bs-gray-400);
}
.liste-dates .evenement:hover {
    background: var(--evt-hover-bg-color);
    box-shadow: var(--box-shadow);
}
.liste-dates .description {
    flex-grow: 1;
    padding-left: 1rem;
    font-size: 1.2rem;
}
.liste-dates .lieu {
    font-size: 1.1rem;
}
.liste-dates .lieu .non-defini {
    font-size: 1rem;
    color:var(--bs-gray-600);
}

.liste-dates .lien {
    padding-top: .5rem;
    padding-bottom: 0rem;
}

.date-icon {
    display: flex;
    flex-flow: column;
    width: calc(6ch + .5rem) !important;
    min-width: calc(6ch + .5rem) !important;
}
.date-icon .mois {
    text-align: center;
    padding: .25rem;
    margin: 0 !important;
    width: 100%;
    background: var(--evt-bg-color);
    color: var(--evt-color);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1rem;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    border: 1px solid var(--bs-gray-500);
    border-bottom: none;
    box-shadow: var(--box-shadow);
}
.date-icon .jour-num {
    text-align: center;
    padding: .125rem;
    margin: 0;
    width: 100%;
    background: var(--contrast-color);
    color: var(--default-color);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3rem;
    border: 1px solid var(--bs-gray-500);
    border-bottom: none;
    border-top: none;
}
.date-icon .jour-txt {
    text-align: center;
    padding: 0 .25rem .25rem .25rem;
    margin: 0;
    width: 100%;
    background: var(--contrast-color);
    color: var(--default-color);
    font-size: .8rem;
    font-weight: 500;
    line-height: 1rem;
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    border: 1px solid var(--bs-gray-500);
    border-top: none;
}
.date-icon .ending {
    font-size: .9rem;
    font-weight: 500;
}

.legende h5 div {
    margin-right: 2rem;
    display: inline-block;
}
.legende .checkBtn {
    margin-left: 2rem;
    border: 1px solid var(--bs-gray-500);
}
.legende .checkBtn .bi {
    margin-right: .5rem;
}
.legende .checkBtn:hover {
    background: var(--bs-gray-500);
    color: #000000;
}
    
[nameShort] {
    --evt-hover-bg-color: color-mix(in srgb, var(--evt-bg-color), #ffffff 90%);
}

[nameShort="DEPS"] {
    --evt-color: #AD1CB5;
    --evt-bg-color: #ffffff;
    --evt-border-color: #AD1CB5;
}

[nameShort="CDFPa"] {
    --evt-color: #ffffff;
    --evt-bg-color: #611065;
    --evt-border-color: #611065;
}
[nameShort="CDFS"] {
    --evt-color: #ffffff;
    --evt-bg-color: #AD1CB5;
    --evt-border-color: #AD1CB5;
}
[nameShort="CDFV"] {
    --evt-color: #ffffff;
    --evt-bg-color: #DB4AE3;
    --evt-border-color: #DB4AE3;
}

[nameShort="ICN"] {
    --evt-color: #611065;
    --evt-bg-color: #F3C1F5;
    --evt-border-color: #611065;
}
[nameShort="ICR"] {
    --evt-color: #317237;
    --evt-bg-color: #D7F7C0;
    --evt-border-color: #317237;
}
[nameShort="REGS"] {
    --evt-color: #317237;
    --evt-bg-color: #89E746;
    --evt-border-color: #89E746;
}
[nameShort="REGV"] {
    --evt-color: #ffffff;
    --evt-bg-color: #5BB918;
    --evt-border-color: #5BB918;
}

[nameShort="BAC"] {
    --evt-color: #ffffff;
    --evt-bg-color: #183D5D;
    --evt-border-color: #183D5D;
}
[nameShort="BNP"] {
    --evt-color: #ffffff;
    --evt-bg-color: #2B6DA6;
    --evt-border-color: #2B6DA6;
}
[nameShort="CDFJ"] {
    --evt-color: #183D5D;
    --evt-bg-color: #599BD4;
    --evt-border-color: #599BD4;
}
[nameShort="CE-CVF"] {
    --evt-color: #183D5D;
    --evt-bg-color: #A2C7E7;
    --evt-border-color: #A2C7E7;
}
[nameShort="DANF"] {
    --evt-color: #183D5D;
    --evt-bg-color: #C6DDF0;
    --evt-border-color: #AD1CB5;
}
[nameShort="DANG"] {
    --evt-color: #183D5D;
    --evt-bg-color: #C6DDF0;
    --evt-border-color: #183D5D;
}
[nameShort="CEJ"] {
    --evt-color: #ffffff;
    --evt-bg-color: #450303;
    --evt-border-color: #450303;
}
[nameShort="CIJ"] {
    --evt-color: #ffffff;
    --evt-bg-color: #9D0707;
    --evt-border-color: #9D0707;
}
[nameShort="CRJ"] {
    --evt-color: #ffffff;
    --evt-bg-color: #C90808;
    --evt-border-color: #C90808;
}
[nameShort="DAR"] {
    --evt-color: #ffffff;
    --evt-bg-color: #F73636;
    --evt-border-color: #F73636;
}

[nameShort="QFJ"] {
    --evt-color: #ffffff;
    --evt-bg-color: #F86262;
    --evt-border-color: #F86262;
}
[nameShort="REGJ"] {
    --evt-color: #450303;
    --evt-bg-color: #FCBABA;
    --evt-border-color: #FCBABA;
}
[nameShort="TER"] {
    --evt-color: #450303;
    --evt-bg-color: #FEE7E7;
    --evt-border-color: #450303;
}

[nameShort="INT"] {
    --evt-color: #ffffff;
    --evt-bg-color: #317237;
    --evt-border-color: #317237;
}
[nameShort="StageE"] {
    --evt-color: #ffffff;
    --evt-bg-color: #49AB52;
    --evt-border-color: #49AB52;
}
[nameShort="StagePe"] {
    --evt-color: #317237;
    --evt-bg-color: #8DCE93;
    --evt-border-color: #8DCE93;
}
[nameShort="StagePo"] {
    --evt-color: #317237;
    --evt-bg-color: #CDEAD0;
    --evt-border-color: #CDEAD0;
}

[nameShort="TLJ"] {
    --evt-color: #ff9900;
    --evt-bg-color: #ffffff;
    --evt-border-color: #ff9900;
}
[nameShort="AGO"] {
    --evt-color: #000000;
    --evt-bg-color: #ff9900;
    --evt-border-color: #ff9900;
}
[nameShort="CA-LIFB"] {
    --evt-color: #915f00;
    --evt-bg-color: #EDF50A;
    --evt-border-color: #915f00;
}
[nameShort="BUR-LIFB"] {
    --evt-color: #915f00;
    --evt-bg-color: #EDF50A;
    --evt-border-color: #EDF50A;
}

