/*********************
* GLOBAL ********************
*********************/
#wpadminbar a {
    color: white !important;
}

body {
    margin: 0 !important;
    font-family: "Roboto";
}

.site {
    overflow: hidden;
}

/*.site-main {
    margin-top: 50px;
    margin-bottom: 50px;
} */

h1,
h2,
h3,
h4,
h5,
b,
s,
a {
    color: var(--color__noir) !important;
}

/* Le gras de l'éditeur de texte */
strong {
    color: var(--color__noir);
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 900;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 0.5em;
}

h2 {
    font-size: 2rem;
    color: #0000FF;
}

h3 {
    font-size: 1.5rem;
}

p {
    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);
}

/*********************
* HEADER ********************
*********************/

#wp-admin-bar-edit {
    display: none !important;
}

/************************************
 *  BURGER MOBILE
 ************************************/

#togglemenu {
    cursor: pointer;
    z-index: 9999;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 1rem;
}

#togglemenu svg {
    width: 27px;
    height: 27px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    position: absolute;
}

#togglemenu #burger {
    opacity: 1;
}

#togglemenu #closemenu {
    opacity: 0;
}

#togglemenu.active #burger {
    opacity: 0;
    transform: rotate(90deg);
}

#togglemenu.active #closemenu {
    opacity: 1;
    transform: rotate(0deg);
}

/* Cacher le burger sur desktop */
@media screen and (min-width: 992px) {
    #togglemenu {
        display: none;
    }
}

/************************************
 *  MENU MOBILE (POPOUT)
 ************************************/

#popout {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color__noir);
    padding: 4rem 2rem 2rem;
    overflow-y: auto;
    display: none; /* caché par défaut sur mobile */
}

/* Quand le menu est ouvert sur mobile */
#popout.opened {
    display: block;
}

#popout ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#popout ul li {
    padding: 0.5em 0;
}

#popout ul li a {
    color: var(--color__blanc) !important;
    text-decoration: none;
    font-size: 1.3rem !important;
}

#popout ul li a:hover {
    color: var(--color__link_menu_hover);
}

/************************************
 *  MENU DESKTOP (CENTRÉ)
 ************************************/

@media screen and (min-width: 992px) {

    #popout {
        display: block;
        position: static;
        background: transparent;
        padding: 0;
        overflow: visible;
        width: 100%;
    }

    #popout ul {
        display: flex;
        flex-direction: row;
        justify-content: center;   /* ⭐ centre le menu */
        align-items: center;
        gap: 2rem;
        width: 100%;
        margin: 0 auto;
    }

    #popout ul li {
        padding: 0;
    }

    #popout ul li a {
        font-size: 1rem;
        color: var(--color__blanc) !important;
    }

    /* Logo desktop intégré dans l’alignement */
    .logo-link-screen {
        display: block;
        margin-right: 2rem;
    }
}

/************************************
 *  NAVBAR
 ************************************/

.navbar {
    margin: auto;
    z-index: 999;
    padding: 0.5rem 1rem;
    background-color: var(--color__noir);
}

.main_navigation {
    background-color: var(--color__noir);
    color: var(--color__blanc) !important;
}

/************************************
 *  LOGOS
 ************************************/

.logo-link-mobil {
    display: flex;
    align-items: center;
}

.logo-link-mobil img {
    height: 40px;
    width: auto;
}

/* Logo desktop */
.logo-link-screen {
    display: none;
}

.logo-link-screen img {
    height: 50px;
    width: auto;
    margin-right: 2rem;
}

@media screen and (min-width: 992px) {
    .logo-link-mobil {
        display: none;
    }

    .logo-link-screen {
        display: block;
    }
}

/************************************
 *  DROPDOWNS
 ************************************/

.dropdown {
    position: relative;
}

.dropdown-menu {
    background-color: var(--color__noir);
    color: var(--color__blanc);
    border: none;
    border-radius: 0;
    min-width: 200px;
    padding: 1em 0;
    margin: 0;
}

@media screen and (min-width: 992px) {
    .dropdown-menu.show {
        position: absolute;
    }
}

.dropdown-item {
    padding: 0.6em 1.3em;
    font-size: 1.5em;
    color: var(--color__blanc) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color__link_text);
}

/************************************
 *  PAGINATION / LIENS
 ************************************/

.page-item.active .page-link {
    background-color: var(--color__link_text);
    border-color: var(--color__link_text);
}

.page-link:hover {
    color: var(--color__link_text_hover);
}

/************************************
 *  WP FILE BUTTONS
 ************************************/

.wp-block-file__button {
    background: var(--color__1);
    color: var(--color__blanc);
}

.wp-block-file__button:hover {
    background: var(--color__noir);
    color: var(--color__blanc);
}


/************************************
 *  PAGINATION / LIENS
 ************************************/

.page-item.active .page-link {
    background-color: var(--color__link_text);
    border-color: var(--color__link_text);
}

.page-link:hover {
    color: var(--color__link_text_hover);
}

/************************************
 *  WP FILE BUTTONS
 ************************************/

.wp-block-file__button {
    background: var(--color__1);
    color: var(--color__blanc);
}

.wp-block-file__button:hover {
    background: var(--color__noir);
    color: var(--color__blanc);
}

/*********************
* SLIDER ********************
*********************/

.box-slider a {
    position: relative;
    display: inline-block;
}

.tab-slider {
    display: table;
    width: 100%;
    height: 100%;
    position: absolute;
}

.cell-slider {
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}

.title-slider {
    font-size: 4rem;
    text-transform: uppercase;
    line-height: 1;
    color: var(--color__blanc);
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.content-slider {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--color__blanc);
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.img-slider {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 550px;
}

.slick-dots {
    bottom: 25px;
}

.slick-dots li button::before {
    opacity: 1;
    color: var(--color__blanc);
}

.slick-dots li.slick-active button::before {
    opacity: 1;
    color: var(--color__link_text);
}

.slick-dotted.slick-slider {
    margin-bottom: 0;
}


.bandeau_bottom_slider {
    background-color: var(--color__1);
    color: var(--color__blanc);
    padding: 0.5em 1em;
    font-size: 1.5em;
    text-align: center;
    font-weight: 700;
    margin-top: -10px;
}

.bandeau_bottom_slider:hover {
    background-color: #ecbc15;
}

/*********************
* Bandeau ********************
*********************/

.bandeau_bottom_slider p {
    background-color: var(--color__1);
    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__noir);
}

.div-cc {
    border-radius: 1rem;
    background-color: var(--color__noir);
    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__1);
    border-color: var(--color__1);
    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__2);
    border-color: var(--color__2);
    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-family: "Montserrat";
    font-weight: bold !important;
}

/* ----------------------------------------------------
   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 
*********************/

.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 {
    height: 120px;
    width: auto;
}

/*********************
* FOOTER ********************
*********************/

.bloc-footer-map {
    height: 400px;
    position: relative;
}

.bloc-footer-map iframe {
    width: 100%;
    height: 400px;
}

.bloc-footer-1 {
    background-color: var(--color__noir);
    color: white;
}

.bloc-footer-2 {
    background-color: var(--color__noir);
    font-size: 12px;
    color: white;
}

.bloc-footer-2 a {
    color: white;
}

.icon-footer {
    color: white !important;
    transition: 0.25s;
    padding-left: 0.5em;
}

.icon-footer:hover {
    color: var(--color__1) !important;
}

.icon-footer i {
    font-size: 3rem;
}

.logo-footer {
    display: flex;
    justify-content: center;  
    align-items: center;     
    width: 100%;
}

.logo-footer img {
    height: 200px;
    width: auto;
    display: block;
}


/*********************
* 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) {
    

    .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;
    }
}
