.article-details .featured-article-badge { display: none; visibility: hidden; }

#sp-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#sp-top1, #sp-top2 {
    width: auto;
}

#sp-top2 .social-icons { float: right; }

#sp-slide {
    padding-right: 0px;
    padding-left: 0px;
    background-color: black;
}

.video-container { overflow: hidden; }

#video-element > .video-text h1,
#video-element > .video-text h2,
#video-element > .video-text h3,
#video-element > .video-text h4 {
    color: #FFD1D1;
    text-align: center;
    padding: 20px;
}

.module_top {
    width: calc(22% - 2px);
    max-width: 300px;
    overflow: hidden;
    margin: 5px;
    display: inline-block;
    will-change: transform;
    position: relative;
    padding: 2px;
    color: #FFD1D1;
    text-align: center;
}

.module_top img {
    width: 300px;
    height: 300px;
    max-height: fit-content;
}

.module_top .title {
    font: bold 1.1rem "Cormorant Garamond", sans-serif;
    padding-top: 5px;
    text-align: center;
    text-transform: uppercase;
    color: #4A2E00;
}

@media only screen and (max-width: 920px) {
    .module_top .title {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 480px) {
    .module_top .title {
        font-size: 0.5rem;
    }
}

#video-element > .video-text h5,
#video-element > .video-text p {
    color: #d2756b;
    text-shadow: 0 1px 1px #dda49e;
    text-align: center;
}

.video-background {
    position: relative;
    display: table;
    width: 100%;
    overflow: hidden;
}

.video-background > video {
    position: absolute;
    display: block;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    background-size: cover;
    transition: 1s opacity;
    overflow: hidden;
}

.video-background > .video-text {
    z-index: 2;
    position: relative;
    display: table-cell;
    vertical-align: middle;
    padding: 80px;
}

.video-background > .video-text h1 {
    font-size: 2em;
    font-family: Eagle Lake;
}

.video-background > .video-text p {
    font-size: 1.375em;
}

#sp-menu { background: transparent; }

#sp-titre, .breadcrumb {
    background-color: #612C00;
    color: black;
    font-size: xx-small;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-bottom: 0px;
}

.navigation_flores .float-start { margin-right: 10px; }
.navigation_flores .breadcrumb-item.active { color: #FFD1D1; }

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner { padding: 10px; }
.osmap_ .osmap-items a { color: white; }

#sp-menu .d-flex {
    display: flex !important;
    flex-direction: row-reverse;
}

.protect_donnees button {
    width: 100%;
    background-color: #8f4909;
    color: #FFD1D1;
    padding-bottom: 5px;
    padding-left: 15px;
    border-color: #b7a680;
    border-width: 3px;
    border-style: double;
    text-align: left;
}

.sp-page-title {
    background: transparent;
    text-align: center;
    padding: 0;
}

.module_middle {
    width: calc(50% - 10px); /* Ajustement pour alignement en deux colonnes */
    max-width: 300px;
    overflow: hidden;
    margin: 10px;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
    position: relative;
    font-family: Alice;
    box-sizing: border-box;
    justify-content: space-between; /* Ajoute un espacement uniforme interne */
    min-height: 400px; /* Hauteur minimale pour uniformiser */
}

.module_middle img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 5px;
}

.module_middle .title {
    font: bold 1.1rem "Cormorant Garamond", sans-serif;
    padding-top: 5px;
    text-align: center;
    text-transform: uppercase;
    color: #4A2E00;
}

.module_middle .title-2 {
    font: bold 0.9rem "Cormorant Garamond", sans-serif;
    padding-top: 5px;
    text-align: center;
    text-transform: uppercase;
    color: #A35D2E;
}

.module_middle .desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4A2E00;
    padding: 0 10px;
    box-sizing: border-box;
    flex-grow: 1; /* Permet au texte de s'étendre pour équilibrer les hauteurs */
    display: flex;
    align-items: center; /* Centrer verticalement le contenu */
    justify-content: center; /* Alignement uniforme */
    text-align: justify; /* Ajoute un alignement esthétique */
}

.module_middle .link-padding-accueil a {
    display: inline-block;
    text-align: center;
    background-color: #8f4909;
    color: #FFD1D1;
    border-radius: 15px;
    margin-top: 10px;
    padding: 5px 15px;
    width: 50%;
    font-size: 0.9rem;
}

/* Ajustement de la taille pour les écrans plus petits */
@media only screen and (max-width: 920px) {
    .module_middle {
        width: calc(50% - 10px); /* Deux modules par ligne */
        font-size: 0.8rem;
        min-height: 350px; /* Hauteur ajustée pour petits écrans */
    }
    .module_middle .title, .module_middle .title-2, .module_middle .desc, .module_middle .link-padding-accueil a {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 480px) {
    .module_middle {
        width: calc(45% - 10px); /* Deux modules par ligne même sur petits écrans */
        font-size: 0.7rem; 
    }
    .module_middle .title, .module_middle .title-2, .module_middle .desc, .module_middle .link-padding-accueil a {
        font-size: 0.7rem;
    }
}
#sp-consulter-titre {
    position: relative;
    width: 100%;
    padding-right: 0px;
    padding-left: 0px;
}

#sp-consulter-titre #image-element {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
}

#sp-consulter-titre #image-element img {
    width: 100%;
    object-fit: cover; /* S'assure que l'image occupe toute la zone */
    overflow: hidden;
}

#sp-consulter-titre .image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4em;
    font-weight: bold;
    color: #d2756b;
    text-shadow: 0 1px 1px #dda49e;
    text-align: center;
}
#sp-consulter-titre h2 {
    font-size: 1.4em;
    font-weight: bold;
}

