/*********************
* GLOBAL ********************
*********************/

/* Wordpress - se déconnecter, personnaliser, etc. */

.display-name {
    color: white;
}

.ab-item {
    color: white !important;
}

body {
    margin: 0 !important;
}

.site {
    overflow: hidden;
}

/*.site-main {
    margin-top: 50px;
    margin-bottom: 50px;
} */

h1,
h2,
h3,
h4,
h5,
a {
    color: var(--color__1) !important;
}

b,
s {
    color: var(--color__2) !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 0.3em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.2rem;
}

ul {
    margin-left: 0;
    font-size: 1.2rem;
}

a:link,
a:visited,
a:hover,
a:focus,
a:active {
    color: var(--color__1);
    outline: none;
}

.btn {
    width: 100%;
    background-color: var(--color__1);
    border-color: var(--color__1);
    color: white !important;
    font-size: 1.2rem;
}

.btn:hover {
    background-color: var(--color__2);
    border-color: var(--color__2);
}

.scale {
    transition: 0.25s;
}

.scale:hover {
    transform: scale(0.95);
}

/* Bouton wordpress */

.wp-block-buttons .wp-block-button__link {
    background-color: var(--color__1) !important;
    color: var(--color__blanc) !important;
    margin-bottom: 1em;
    text-decoration: none;
    font-size: 1.3em;
}

.wp-block-buttons .wp-block-button__link:hover {
    background-color: var(--color__2) !important;
    transition: ease 0.25s;
}

/*********************
* HEADER ********************
*********************/

#wp-admin-bar-edit {
    display: none !important;
}

/*********************
* NAVIGATION ********************
*********************/
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: auto;
    z-index: 999;
    padding: 1rem 0rem;
    background-color: var(--color__1);
}

/* LOGOS */
.logo-link-mobil {
    display: none;
}

.logo-link-screen {
    height: 100px;
    padding-right: 0.5rem;
}

.logo-link-screen img {
    height: 100px;
    width: auto;
}

/* NAV */
.navbar-nav {
    display: table-cell;
    height: 100px;
    margin: 0;
}

.navbar-nav li {
    vertical-align: middle;
    display: table-cell;
}

.navbar-collapse {
    background-color: var(--color__1);
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    transition: 0.25s;
}

/* DROPDOWN FIX */
.dropdown {
    position: relative; /* essentiel pour ancrer le menu */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px; /* largeur propre, ajustable */
    padding: 15px;
    margin: 0;
    border: none;
    border-radius: 0;
    background-color: var(--color__1);
    width: auto; /* supprime le 100% */
}

/* MEGAMENU (désactivé en largeur forcée) */
.megamenu {
    position: absolute;
    padding: 15px;
    width: auto; /* évite le plein écran */
}

.megamenu-li {
    position: relative;
}

/* LINKS */
.nav-link,
.dropdown-item {
    font-size: 1.4rem;
    color: var(--color__blanc) !important;
}

.dropdown-item {
    padding-left: 15px;
    padding-right: 15px;
}

.dropdown-item:hover {
    background-color: var(--color__2) !important;
}

.dropdown-item:active {
    background-color: var(--color__1);
}

/* PAGINATION */
.page-item.active .page-link {
    background-color: var(--color__1);
    border-color: var(--color__1);
}

.page-link:hover {
    color: black;
}


/*********************
* SLIDER
*********************/

/* wrapper général */
.box-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* s'applique aussi aux <a> wrappers et aux .position-relative */
.box-slider a,
.box-slider .position-relative,
.box-slider .slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 500px;
    /* hauteur par défaut, ajuster si besoin */
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* image de fond (couvre tout le slide) */
.img-slider {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 3s ease;
}

/* couche overlay : dégradé vert droite -> gauche */
.overlay-slider {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to left,
            rgba(213, 3, 28, 0.9) 0%,
            rgba(213, 3, 28, 0.55) 25%,
            rgba(213, 3, 28, 0.15) 50%,
            rgba(213, 3, 28, 0.00) 100%);
}

/* zone texte par-dessus (centrée verticalement) */
.tab-slider {
    position: absolute;
    inset: 0;
    display: table;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    /* permet de cliquer sur le lien parent si présent */
}

/* cellule contenant le texte (autorise alignements) */
.cell-slider {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    /* par défaut à gauche, changez en center si souhaité */
    padding: 0 5%;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    /* permet interactions si nécessaire (boutons, liens internes) */
    color: #fff;
    /*text-shadow: 0 2px 8px rgba(0,0,0,0.6);*/
}

/* typographies */
.title-slider {
    font-size: 4rem;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.35em;
}

.content-slider p {
    font-size: 1.6rem;
    line-height: 1.4;
    text-align: right !important;
    color: #fff;
    max-width: 40%;
    margin-left: auto;
    /* pousse le bloc vers la droite */
}

.content-slider strong {
    color: white !important;
}

/* hover / interaction optionnel
.box-slider a:hover .img-slider,
.box-slider .position-relative:hover .img-slider {
  transform: scale(1.03);
}  */

/* slick dots (si vous utilisez slick.js) */
.slick-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.slick-dots li button::before {
    opacity: 1;
    color: #fff;
}

.slick-dots li.slick-active button::before {
    opacity: 1;
    color: var(--color__1);
}

/* supprimer marge supplémentaire de slick */
.slick-dotted.slick-slider {
    margin-bottom: 0;
}

/* bandeau bas */
.bandeau_bottom_slider p {
    background-color: var(--color__1);
    color: var(--color__blanc);
    text-transform: uppercase;
    padding: 0.5em 1em;
    font-size: 2em;
    text-align: center;
    font-weight: 400;
    margin-top: -10px;
}

/* adaptivité */
@media (max-width: 1024px) {

    .box-slider a,
    .box-slider .position-relative,
    .box-slider .slide-link {
        height: 360px;
    }

    .title-slider {
        font-size: 3rem;
    }

    .content-slider {
        font-size: 1.2rem;
        max-width: 80%;
    }
}

@media (max-width: 768px) {

    .box-slider a,
    .box-slider .position-relative,
    .box-slider .slide-link {
        height: 320px;
    }

    .tab-slider {
        padding: 0 3%;
    }

    .cell-slider {
        text-align: center;
    }

    .title-slider {
        font-size: 2rem;
    }

    .content-slider {
        font-size: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    .box-slider a,
    .box-slider .position-relative,
    .box-slider .slide-link {
        height: 260px;
    }

    .title-slider {
        font-size: 1.6rem;
    }

    .content-slider {
        display: none;
    }

    /* cacher le texte long sur très petit écran si besoin */
}


/*********************
* Bandeau ********************
*********************/

.bandeau_bottom_slider p {
    background-color: var(--color__2);
    color: var(--color__blanc);
    text-transform: uppercase;
    padding: 0.5em 1em;
    font-size: 2.5em;
    text-align: center;
    font-weight: 700;
    margin-top: -10px;
}

@media (max-width: 991px) {
    .bandeau_bottom_slider p {
        padding: 0.5em 0.5em;
        font-size: 1.5em;
    }
}

/*********************
* ACCUEIL ********************
*********************/

.link-event {
    display: block;
    position: relative;
}

.tab-event {
    display: table;
    width: 100%;
    height: 100%;
    position: absolute;
}

.cell-event {
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}

.title-event {
    font-size: 3rem;
    text-transform: uppercase;
    line-height: 1;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.bg-news {
    background-color: var(--color__1);
}

.div-cc {
    border-radius: 1rem;
    background-color: var(--color__1);
    text-align: center;
}

.div-cc h1,
.div-cc h2,
.div-cc h3,
.div-cc h4,
.div-cc h5,
.div-cc h6 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.div-cc p {
    color: white;
    padding-bottom: 15px;
}

.icon-cc {
    font-size: 4rem;
    color: white;
}

/*********************
* CONTACT ********************
*********************/

.map-contact iframe {
    height: 635px;
}

.txt-contact {
    font-size: 1rem;
}

/*********************
* ACCESSIBILITÉ ********************
*********************/

.img-acces {
    display: inline;
    width: 100px;
    margin-right: 10px;
    float: left;
}

/*********************
* ARCHIVE / News / Actualités ********************
*********************/

/* ----------------------------------------------------
   CONTAINER GLOBAL
---------------------------------------------------- */
.box-news {
    margin-top: 2rem;
}

/* ----------------------------------------------------
   CARTE ACTUALITÉ
   (le lien = la carte)
---------------------------------------------------- */
.link-archive {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.link-archive:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

/* ----------------------------------------------------
   IMAGE EN HAUT (ratio fixe)
---------------------------------------------------- */
.img-archive {

    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

}

.link-archive:hover .img-archive {
    transform: scale(1.03);
}

/* ----------------------------------------------------
   CONTENU TEXTE
---------------------------------------------------- */
.title-archive,
.content-archive {
    padding: 0 1.1rem;
}

.title-archive {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
}

.content-archive {
    margin-bottom: 1.3rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
}

/* ----------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */
@media (max-width: 768px) {
    .link-archive {
        margin-bottom: 1.5rem;
    }
}

/*********************
* CONTENT ARCHIVE (bouton "Toutes les actualités")
*********************/

.nav-archive {
    font-size: 1.2rem;
}

.nav-archive a {
    width: auto;
    background-color: var(--color__2);
    border-color: var(--color__2);
    color: var(--color__blanc) !important;
    font-size: 1.2rem;
    display: inline-block;
    font-weight: 400;
    border-radius: 30px;
    padding: .375rem .75rem;
    line-height: 1.5;
    transition: color 0.35s ease-in-out,
        background-color 0.35s ease-in-out,
        border-color 0.35s ease-in-out,
        box-shadow 0.35s ease-in-out;
}

.nav-archive a:hover {
    background-color: var(--color__3);
    border-color: var(--color__3);
    text-decoration: none;
    color: var(--color__blanc) !important;
}

/*********************
* BOX PICTOS ********************
*********************/
/* ----------------------------------------------------
   RESET : on enlève les couleurs qui bloquent l’héritage
---------------------------------------------------- */
.bg-pictos .colonnes_icones_home i,
.bg-pictos .colonnes_icones_home h4 {
    color: inherit !important;
    font-weight: bold !important;
}

.bg-pictos {
    background-color: var(--color__2);
}

/* ----------------------------------------------------
   CONTENEUR PRINCIPAL
---------------------------------------------------- */
.colonnes_icones_home {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

/* ----------------------------------------------------
   COLONNES
---------------------------------------------------- */
.colonnes_icones_home .m_columns__column {
    flex: 1 1 180px;
    max-width: 220px;
}

/* ----------------------------------------------------
   LIENS (couleur normale + transition)
---------------------------------------------------- */
.bg-pictos .colonnes_icones_home a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color__blanc) !important;
    /* couleur de base */
    transition: color 0.35s ease;
}

/* ----------------------------------------------------
   ICÔNES
---------------------------------------------------- */
.bg-pictos .colonnes_icones_home a i {
    font-size: 4.5rem;
    margin-bottom: 0.2em;
    transition: transform 0.35s ease;
}

/* ----------------------------------------------------
   TITRES
---------------------------------------------------- */
.bg-pictos .colonnes_icones_home a h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
}

/* ----------------------------------------------------
   HOVER : icône + texte changent ENSEMBLE
---------------------------------------------------- */
.bg-pictos .colonnes_icones_home a:hover {
    color: var(--color__1) !important;
    /* couleur au survol */
}

.bg-pictos .colonnes_icones_home a:hover i {
    transform: scale(1.18);
}

/* ----------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */
@media (max-width: 768px) {
    .colonnes_icones_home {
        gap: 1.5rem;
    }

    .colonnes_icones_home .m_columns__column {
        flex: 1 1 45%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .colonnes_icones_home .m_columns__column {
        flex: 1 1 100%;
    }
}

/*********************
* BOX EQUIPE équipe ********************
*********************/


/*********************
     BOX EQUIPE 
*********************/

strong {
    color: var(--color__1);
}

.img-equipe img {
    object-fit: cover;
    height: 325px;
    width: 325px;
    border-radius: 15px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    border: solid 5px var(--color__1);
}

.title-equipe {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color__1);
    text-align: left;
    width: 100%;
}

.content-equipe p {
    width: 100%;
    color: var(--color__noir);
    font-size: 1.2em;
    text-align: justify;
    line-height: 1.5em;
    margin-bottom: 0.5em;
}

/*********************
* PARTENAIRES ********************
*********************/

.box-partenaires .list_partenaires {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.box-partenaires .list_partenaires a {
    flex: 1 0 auto;
    text-align: center;
    opacity: 1;
    padding: 1em;
}

.box-partenaires .list_partenaires a:hover {
    opacity: 0.85;
}

.box-partenaires .list_partenaires a img {
    width: 180px;
    height: 100px;
    object-fit: contain;
    object-position: center;
}

/*********************
* FOOTER ********************
*********************/

.bloc-footer-map {
    height: 400px;
    position: relative;
}

.bloc-footer-map iframe {
    width: 100%;
    height: 400px;
}

.bloc-footer-1 {
    background-color: var(--color__1);
    color: white;
}

.bloc-footer-2 {
    background-color: var(--color__1);
    font-size: 12px;
    color: white;
}

.bloc-footer-2 a {
    color: var(--color__blanc);
}

.icon-footer {
    color: var(--color__blanc) !important;
    transition: 0.25s;
    padding-left: 0.5em;
}

.icon-footer:hover {
    color: var(--color__2) !important;
}

.icon-footer i {
    font-size: 3rem;
}

/*********************
* RESPONSIVE ********************
*********************/

@media (max-width: 575px) {
    .box-news {
        width: auto;
        margin: auto;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .box-news {
        width: 540px;
        margin: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .box-news {
        width: 720px;
        margin: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .box-news {
        width: 960px;
        margin: auto;
    }
}

@media (min-width: 1200px) {
    .box-news {
        width: 1140px;
        margin: auto;
    }
}

@media (max-width: 991px) {
    .navbar {
        margin: auto;
        height: 100px;
    }

    /* .navbar-collapse{
        padding-top: 1rem;
        padding-bottom: 1rem;
        transition: 0.25s;
    } */

    .navbar-nav {
        display: inline;
    }

    .navbar-nav li {
        vertical-align: auto;
        display: inline;
    }

    .navbar-toggler {
        margin-right: 0.5rem;
    }

    .logo-link-mobil {
        display: block;
        height: calc(100px - 1rem);
        margin-left: 0.5rem;
    }

    .logo-link-mobil img {
        height: calc(100px - 1rem);
        width: auto;
    }

    .logo-link-screen {
        display: none !important;
    }

    .nav-link,
    .dropdown-item {
        font-size: 1rem;
    }

    .dropdown-menu {
        padding: 0;
    }

    .btn {
        font-size: 1rem;
    }

    .nav-archive {
        font-size: 1rem;
    }

    .nav-archive a {
        font-size: 1rem;
    }

    ul {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .title-slider {
        font-size: 2rem;
        line-height: 1;
    }

    .content-slider {
        font-size: 1rem;
        line-height: 1.5;
    }

    .title-event {
        font-size: 2rem;
    }

    .title-archive {
        top: 0px;
        font-size: 1.5rem;
    }

    .content-archive {
        bottom: 0px;
        font-size: 1rem;
    }
}
