@import 'os-fonts-aquawax.css';

.aquawax {
    font-family: aquawax, montserrat, sans-serif, calibri, arial, tahoma, verdana;
}

.xright-half-alt {
    transform: translateX(-50%);
}

.xleft-half-alt {
    transform: translateX(50%);
}

.ytop-half-alt {
    transform: translateY(50%);
}

.ybottom-half-alt {
    transform: translateY(-50%);
}

.transition-alt {
    transition: all 1s
}

.mask {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.mask-alt {
    background: linear-gradient(179.98deg, rgba(0, 0, 0, 0) -102.82%, rgba(0, 0, 0, 0.63) 99.98%);
}

.banner-mask {
    background: rgba(22, 34, 51, 0.41);
    backdrop-filter: blur(8.5px);
    width: 17.760416vw;
    height: calc(100% - (2 * var(--header-height)));
    top: var(--header-height);
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.pole-mask {
    background: linear-gradient(1.14deg, #FFFFFF 50.92%, rgba(203, 207, 210, 0) 403.04%);
    backdrop-filter: blur(6.5px);
}

.job-mask {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4))
}

.transparent {
    opacity: .90
}

.p-alt-2 {
    font-size: .93vw
}

@media(max-width:768px) {
    .p-alt-2 {
        font-size: 13px
    }
}

.gradient {
    background: linear-gradient(105.27deg, rgba(22, 34, 51, 1) 1.84%, rgba(17, 132, 90, 1) 110.21%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-warning {
    background: linear-gradient(105.27deg, #DC9122 1.84%, rgb(255, 190, 0) 110.21%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-white {
    background: linear-gradient(91.18deg, rgba(225, 225, 225, 1) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient {
    background: linear-gradient(279.18deg, #1F4878 18.73%, #81B0B1 105.17%);
}

.bg-gradient-warning {
    background: linear-gradient(105.27deg, #DC9122 1.84%, rgb(255, 190, 0) 110.21%);
}

.bg-gradient-alt {
    background: linear-gradient(91.18deg, #023E79 0%, #0E6258 100%);
}

.bg-gradient-white {
    background: linear-gradient(91.18deg, rgba(225, 225, 225, 1) 0%, #fff 100%);
}

.banner-mask-alt {
    background: rgba(220, 225, 232, .86);
    background-blend-mode: multiply, normal;
}

.newsletter-mask {
    background: linear-gradient(99.03deg, #81B0B1 66.62%, rgba(129, 176, 177, 0) 159.36%);
    background-blend-mode: normal, luminosity, normal;
}

.law-mask {
    background: linear-gradient(105.27deg, rgba(17, 132, 90, 0.8) 1.84%, rgba(22, 34, 51, 0.8) 110.21%), rgba(37, 170, 116, .5);
    background-blend-mode: normal, darken, normal;
}

.pag-mask {
    background: linear-gradient(180deg, rgba(13, 110, 119, .8) 23.82%, rgba(0, 50, 59, .8) 100%);
}


.shadow {
    box-shadow: 3px 4px 11px 2px rgba(0, 0, 0, 0.22);
}

.shadow-alt {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .1);
}

.text-shadow {
    text-shadow: 0px 4px 4px rgba(0, 0, 0, .25);
}

.text-shadow-white {
    text-shadow: 0px 0px 4px rgba(255, 255, 255, .25);
}

.icon.arrow-right-alt {
    background-image: url("../icons-alt/right-arrow.svg");
}

.icon.arrow-left-alt {
    background-image: url("../icons-alt/right-arrow.svg");
    transform: rotate(180deg)
}

.icon.arrow-down {
    background-image: url("../icons-alt/right-arrow.svg");
    transform: rotate(90deg)
}


@media(max-width:768px) {
    #menu {
        max-height: 100vh;
        overflow: auto;
        left: 100%
    }

    #menu.opened {
        left: 0%
    }
}

@media(min-width:768px) {

    /* #menu li{transition: all .5s;} */
    #menu li ul {
        display: none;
        max-width: 21vw;
        width: 21vw
    }

    #menu li:hover ul {
        display: block;
        border-color: rgba(255, 255, 255, .15)
    }

    #menu li ul li:hover {
        color: var(--success-color)
    }
}

@media(max-width:768px) {
    #menu li ul {
        display: none;
        max-width: auto;
        width: 100%
    }

    #menu li ul.opened {
        display: block;
    }
}

#header.opaque {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .2)
}

li.menu.active::after,
li.menu:hover::after {
    position: absolute;
    height: var(--1px);
    width: 100%;
    content: "";
    display: block;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    left: 0;
    background: var(--success-color);
    transition: all .5s;
    z-index: 1;
}

/*#homeBanner, .banner{width : calc(100% - (2*var(--50px))); left: 0; right: 0; margin-left:auto;margin-right:auto;}*/
article.new figure {
    min-height: 16.4583vw;
    height: 16.4583vw;
}

#banner-article figure {
    min-width: 44.1984375vw;
    width: 44.1984375vw;
    min-height: 33.358854167vw;
    height: 33.358854167vw;
}

@media(max-width:768px) {
    #banner-article figure {
        width: 100%;
    }
}

article.service .service-fig {
    min-height: 9.0625vw;
    height: 9.0625vw;
}

/* article.service .service-fig{min-height : 13.59375vw; height : 13.59375vw; } */
/* article.service figure{min-width : 13.4895833vw; width : 13.489583vw;} */
article.service figure {
    min-width: 8.9930555533vw;
    width: 8.9930555533vw;
}

.lien-utile {
    height: 32.1354167vw;
    min-height: 32.1354167vw;
}

.lien-utile .gouv-utile {
    height: 32.1354167vw;
    min-height: 32.1354167vw;
    width: 32.1354167vw;
    min-width: 32.1354167vw;
}

.lien-utile1>div {
    height: 16.06770835vw;
    min-height: 16.06770835vw;
}

.lien-utile1>div:nth-child(2) {
    height: 16.06770835vw;
    min-height: 16.06770835vw;
    width: 16.06770835vw;
    min-width: 16.06770835vw;
}

#contacts .media a {
    width: 3.33vw;
    height: 3.33vw;
}

#contacts .map {
    min-height: 30vw;
    height: 30vw;
}

::placeholder {
    color: var(--white-color);
}

.os-filter::placeholder,
#newsletter ::placeholder {
    color: var(--success-color);
}

#contacts ::placeholder {
    color: rgba(21, 56, 100, .6);
}

@media(max-width:768px) {
    #homeBanner {
        min-height: 100vh;
        height: 100vh
    }

    .armoirie-home {
        left: calc(var(--10px));
        top: calc(var(--10px));
        height: 50px;
        width: 50px;
    }

    .armoirie-members {
        left: calc(var(--20px));
        top: calc(var(--20px));
        height: 50px;
        width: 50px;
    }

    .ministries-fig {
        height: 80px;
        min-height: 80px;
    }

    .members-fig {
        height: 150px;
        min-height: 150px;
    }

    #contacts .media a {
        width: 30px;
        height: 30px;
    }

    #contacts .map {
        min-height: 200px;
        height: 200px;
    }
}

.yt-preview {
    width: 56.5625vw;
    height: 31.6145vw
}

.flickr-frame,
.youtube-frame,
#article .slide-box {
    height: 38vw;
}

.video figure {
    height: 15.5729167vw
}

textarea {
    height: 12vw
}

@media(max-width:768px) {
    .quote {
        transform: translateY(-60%)
    }

    .quote span {
        font-size: 80px;
    }

    .yt-preview {
        width: 80vw;
        height: 40vw
    }

    .encart figure {
        height: 125px
    }

    .encart-alt figure {
        height: 90px
    }

    .flickr-frame,
    .youtube-frame,
    #article .slide-box {
        height: 220px;
    }

    textarea {
        height: 100px
    }
}

#homeSlider .slide {
    -webkit-transition: all 1s;
    transition: opacity 2s, z-index .2s 1.8s;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 0;
}

#homeBanner .slide.active {
    opacity: 1;
    z-index: 1;
}

#homeBanner .slide-dot.active {
    background-color: #fff;
}

.special,
#menu li:hover>*>span {
    position: relative;
}

.special::before,
.special::after,
#menu li:hover a span,
#menu li:active a span,
#menu li:active span span {
    /* border-bottom : 2px solid var(--success-color); */
    /* transition: all .5s; */
}

#search .os-tab-head.active {
    border: 1px solid rgb(245, 245, 245);
    border-bottom: none;
    font-weight: 600;
}

#search .tabs {
    border: 1px solid rgb(245, 245, 245);
    border-top: none;
}

.article table {
    border-collapse: collapse;
}

.article table * {
    border-color: var(--gray-color)
}

.article table td {
    padding: var(--10px) calc(2 * var(--10px)) !important;
    text-align: left !important
}

.title-h2 {
    margin-top: var(--10pxms);
    font-weight: 600;
    color: var(--success-color);
    text-transform: uppercase
}

.title-h3 {
    padding-left: calc(3 * var(--10px));
    margin-top: var(--5px)
}

.title-h4 {
    padding-left: calc(3 * var(--20px));
    margin-top: var(--5px)
}

.title-h2 {
    padding-top: var(--5px);
    padding-bottom: var(--5px);
    border-bottom: 1px solid #bfbfbf;
}

/* ===========================================
   AMÉLIORATIONS DES CARTES D'ÉVÉNEMENTS
   =========================================== */

/* Grille d'événements - transformation de flex en grid */
.events {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Carte d'événement améliorée */
.event-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: fit-content;
    display: flex !important;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Image de l'événement avec effet de zoom */
.event-image img {
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

/* Contenu de la carte */
.event-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Titre avec limitation de lignes */
.event-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
}

/* Détails de l'événement */
.event-details {
    flex-grow: 1;
}

.event-location,
.event-date {
    align-items: flex-start !important;
}

.event-icon {
    margin-top: 2px;
    /* Alignement avec le texte */
    flex-shrink: 0;
}

/* Footer avec espacement automatique */
.event-footer {
    margin-top: auto !important;
}

.event-action:hover {
    background-color: rgba(74, 144, 164, 0.1) !important;
    color: #2c5282 !important;
}

/* Animation d'entrée */
.events .event-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.events .event-card:nth-child(1) {
    animation-delay: 0.1s;
}

.events .event-card:nth-child(2) {
    animation-delay: 0.2s;
}

.events .event-card:nth-child(3) {
    animation-delay: 0.3s;
}

.events .event-card:nth-child(4) {
    animation-delay: 0.4s;
}

.events .event-card:nth-child(5) {
    animation-delay: 0.5s;
}

.events .event-card:nth-child(n+6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .events {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-card {
        border-radius: 12px !important;
    }

    .event-image {
        height: 180px !important;
    }
}

/* Classes utilitaires pour la transition et hover */
.transition {
    transition: all 0.3s ease;
}

.hover-bg:hover {
    background-color: rgba(74, 144, 164, 0.1);
}