/*
Theme Name: Tréguier
Theme URI: https://lestudio.bzh
Author: SAS Le Studio
Description: Un thème WordPress hybride sur mesure développé par Le Studio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ==========================================================================
   1. RESET & BASES
   ========================================================================== */

*, ::before, ::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Les styles par défaut du body (couleur, police) sont gérés par le theme.json */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    text-decoration: underline;
}

/* ==========================================================================
   2. TYPOGRAPHIE GLOBALE (Pour l'alignement PHP / Gutenberg)
   ========================================================================== */

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: var(--wp--preset--font-family--open-sans);
    color: var(--wp--preset--color--primaire);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

/* On cible les nouveaux slugs sans ambiguïté */
h1, .h1 { font-size: var(--wp--preset--font-size--titre-1); }
h2, .h2 { font-size: var(--wp--preset--font-size--titre-2); color: var(--wp--preset--color--primaire); }
h3, .h3 { font-size: var(--wp--preset--font-size--titre-3); color: var(--wp--preset--color--texte); }
h4, .h4 { font-size: var(--wp--preset--font-size--titre-4); color: var(--wp--preset--color--texte); margin: 0;}

p {
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: var(--wp--preset--font-size--texte-base);
    color: var(--wp--preset--color--texte);
    line-height: 1.6;
}


a { color: #4b4b4a; }
.wp-block-buttons .wp-block-button__link  { 
    &:hover {  opacity: .7; text-decoration: none;}
}


/* *** PHOTOS BACKGROUND *** */

[background-photo] {
  position: absolute;
  z-index: -1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: inline-block;
  width: 100%;
  height: 100%;
}
[background-photo] img {
  display: none;
}



/* *** CLASS FLEX *** */

.flex {
    display: flex;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.ai-center {
    align-items: center;
}
.ai-flex-start {
    align-items: flex-start;
}
.ai-flex-end {
    align-items: flex-end;
}
.jc-space-around {
    justify-content: space-around; 
}
.jc-space-between {
    justify-content: space-between; 
}
.jc-flex-end {
    justify-content: flex-end;
}
.jc-flex-start {
    justify-content: flex-start;
}
.jc-center {
    justify-content: center;
}




/* *** COULEURS *** */

:root {
    --couleur_principale_dark: #32373c;
    --couleur_principale: #538192;
    --couleur_principale_light: #c4d6dd;
    --couleur_secondaire: #c59859;
    --couleur_tertiaire: #ccd7dc;
}

/* ************************ GLOBALE ************************ */

/* *** BOUTONS *** */

.bouton a {
    padding: 10px 35px;
    text-decoration: none;
    display: inline-block;
    margin: 25px 0;
}

.bouton_blanc a {
    background-color: white;
    color: var(--wp--preset--color--primaire);
}



/* ************************ NAGIGATION ************************ */

/* Sécurité : empêche le scroll du site quand le menu est ouvert */
body.no-scroll {
    overflow: hidden;
}

/* Le bouton Burger */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background-color: var(--wp--preset--color--primaire);
}
.barre_menu {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white; /* À ajuster selon ta charte */
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animation du burger en croix (X) quand il est actif */
.menu-btn.is-active .barre_01 { transform: translateY(9px) rotate(45deg); }
.menu-btn.is-active .barre_02 { opacity: 0; }
.menu-btn.is-active .barre_03 { transform: translateY(-9px) rotate(-45deg); }

/* L'overlay (fond sombre) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.menu-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Le panneau latéral (Drawer) */
.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    padding: 80px 30px 40px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.menu-drawer.is-active {
    transform: translateX(0);
}

/* --- STRUCTURE DU MENU & ACCORDÉONS --- */
.mobile-menu-list, .mobile-menu-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-list li {
    position: relative;
    border-bottom: 1px solid #eee;
}
.mobile-menu-list li a {
    display: block;
    padding: 15px 40px 15px 0; /* Espace à droite pour le bouton + */
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}

/* Styles des sous-menus (cachés par défaut) */
.mobile-menu-list .sub-menu {
    display: none;
    padding-left: 20px; /* Décalage pour le niveau 2, 3... */
    background: var(--couleur_principale_light);
}
.mobile-menu-list .sub-menu.is-open {
    display: block;
}

/* Bouton universel + / - injecté par JS */
.sub-menu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 52px; /* Aligné sur la hauteur du lien */
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.2s;
}



/* ************************ HEADER ************************ */

#header_accueil { position: relative; z-index: 3; overflow: hidden; padding-top: 0!important; }
#bandeau-navigation{ padding: 0px 5px; background: white; position: fixed; top: 0; left: 0; width: 100%; box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.4); z-index: 5; height:70px; display: flex; align-items: center; }
.inner-bandeau-navigation{ width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; gap: 40px; }

#bloc-logo {   height: 50px; width: 50px; }

/*** Navigation principale ***/
#bloc-nav { height: 100%; display: flex; gap: 30px; width: 100%; }
.menu_ordi { display: block; height: 100%; width: 100%; }
.menu_mobile { display: none; }

#mega-menu-wrap-Top { height: 100%;   }
#mega-menu-wrap-Top #mega-menu-Top { display: flex; align-items: center; gap: 60px; padding: 0; height: 100%;}
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-item {  display: block; height: 100%;}
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-item > a.mega-menu-link { padding: 15px 10px; border-left: 0px dotted #4b4b4a; width: 100%; line-height: 1em; height: 100%; }
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-item > a.mega-menu-link span{ font-weight: bold; white-space: nowrap; line-height: 20px; margin-bottom: 0;  }
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-item > a.mega-menu-link span:first-child { font-weight: normal; display: block; }
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-item > a.mega-menu-link:before { position: absolute; content: ""; top: 10px; left: 0; height: calc(100% - 20px); width: 5px; border-left: 2px dotted #4b4b4a; }

#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-item > ul.mega-sub-menu { padding: 30px 20px; box-shadow: 0px 15px 25px 5px rgba(0, 0, 0, 0.4); background: linear-gradient(-45deg, #326578, #538192); }
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link { padding-bottom: 15px; border-bottom: 1px solid white; line-height: 1.3em;  }
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link:hover { border-bottom: 1px solid white; opacity: .6; }
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-row > ul.mega-sub-menu {  display: flex; justify-content: stretch; gap: 30px;  }
#mega-menu-wrap-Top #mega-menu-Top > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-row > ul.mega-sub-menu > li.mega-menu-column{ flex: 1; }

.widget_text.mega-menu-item{ background:  rgba(255, 255, 255, 0.4) !important; padding:  5px 10px !important; margin:  15px !important; width:  calc(100% - 30px) !important; }
.widget_text.mega-menu-item h4{ text-align:  center !important; text-transform: uppercase !important; font-weight:  normal !important; margin: 0 !important; padding:  0 !important; color:  #2b4a98 !important; }


/*** RECHERCHE ***/
.recherche-header{ /* margin-left: 10px; padding-left: 10px; margin-right: 10px; padding-right: 10px; */ }
.search-form { display: none; position: absolute; right: 40px; top: -8px; background: var(--wp--preset--color--primaire); padding: 10px; border-radius: 40px; width: 295px; }
.search-form-mobile { display: block; position: relative; width: calc(100% - 30px); top: 0; right: 0; max-width: 600px; box-sizing: border-box; margin-top: 30px; margin-left: 15px; margin-right: 15px; }
.search-toggle{ width: 30px; height: 30px; text-align: center; cursor: pointer; color: var(--couleur_secondaire); }
.search-toggle .dashicons{ width: 30px; height: 30px; line-height: 30px; font-size: 25px; }
.search-field{ padding: 5px 10px; border-top-left-radius: 40px; border-bottom-left-radius: 40px; border: 0; outline: none; }
.search-form-mobile  .search-field{ width: calc(100% - 95px); }
.search-submit{ background-color: var(--couleur_secondaire); color: white; font-weight: bold; border: 0; padding: 5px; border-top-right-radius: 40px; border-bottom-right-radius: 40px; cursor: pointer; }
.recherche-header{ position: relative; }

#bloc-nav-annexe{ gap: 10px; }
.menu-annexe a { display: block; border-radius: 30px; text-decoration: none; border: 1px solid #4b4b4a; white-space: nowrap; padding: 5px 10px; }
.menu-annexe a .dashicons{ color: var(--couleur_secondaire); margin-right: 5px; }

#contenu-header-home{
    position: relative;
    z-index: 1;
    padding-top: 10vw;
    padding-bottom: 20vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contenu-header-home:before{
    content: "";
    position: absolute;
    z-index: 2;
    background: url(./img/bandeau_header_home.svg);
    width: 105%;
    height: 12vw;
    background-size: 100% auto;
    background-position: top center;
    bottom: 0;
    left: -5px;

}
 
#contenu-header-home img{ filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.7));  }

#bloc-texte-header{
    position: absolute;
    bottom: 0;
    z-index: 3;
    left: 52%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: right;
    max-width: 600px;
}

#bloc-texte-header h1{
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    color: var(--wp--preset--color--primaire);
    font-style: italic;
    font-size: clamp(1em, 2vw, 2em);
}

#video_header{
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;   
}

#header_accueil .slick-slider{
    position: absolute;
    top: 0px;
    width: 100%;
    height: calc( 100% + 70px) ;
}
#header_accueil .slick-slider img{
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#header_accueil .slick-list{
    height: 100% !important;
}

#header_accueil .slick-list .slick-track{
    height: 100% !important;
}

/* *** HEADER PAGES *** */

.titre_page {
    text-align: center;
    padding: 25px 0;
}

h2.titre-rubrique{
    padding-left: 50px;
    position: relative;
    color: var(--wp--preset--color--primaire);
    margin-bottom: 30px;
    text-transform: uppercase;
    line-height: 30px;

}

h2.titre-rubrique:before{
    position: absolute;
    content: "";
    width: 36px;
    height: 36px;
    background: url(./img/sigle_treguier.svg);
    background-size: contain;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
}

h3{
    margin-bottom: 15px;
}
article.accueil h3{
    padding-bottom: 15px;
    position: relative;
}

article.accueil h3:after{
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 30px;
    height: 4px;
    background: var(--wp--preset--color--primaire);
    transition: all 0.2s ease-in-out;
}

article.accueil h3 a{
    display: block;
    transition: all 0.2s ease-in-out;
}

article.accueil h3.titre-article a:hover{
    color: var(--wp--preset--color--primaire);
}

article.accueil h3.titre-article:hover:after{
    width: 100%;
}

.tribe-events h3:after{
    display: none;
}

.tribe-events .tribe-events-c-search__button, .tribe-events button.tribe-events-c-search__button{
    background-color:var(--wp--preset--color--primaire) !important;
}
.tribe-events-meta-group a{
    color: var(--wp--preset--color--primaire) !important;
}
.tribe-common .tribe-common-c-btn-border, .tribe-common a.tribe-common-c-btn-border{
    border-color:var(--wp--preset--color--primaire) !important;
    color: var(--wp--preset--color--primaire) !important;
}

.tribe-common .tribe-common-c-btn-border:hover, .tribe-common a.tribe-common-c-btn-border:hover{
    background-color: var(--wp--preset--color--primaire) !important;
    color: white !important;
}

.filtre-orange{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #c59859;
    color: white;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1.2em;
}
.filtre-orange span{
    font-size: 30px;
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    border: 1px solid white;
    border-radius: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 50px;
}
.filtre-orange:hover{
    opacity: 0.9;
}



/*** boutons fixes ***/
#bouton-onglets-fixes{
    background-color: var(--wp--preset--color--primaire);
    color: white;
    position: relative;
    z-index: 2;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.20);
}

.inner-btn-of img{
    width: 35px;
}
.titre-btn-of{
    width: calc(100% - 55px);
    font-size: 1.2rem;
    line-height: 1em;
    text-transform: uppercase;
}

#onglets-fixes { position: fixed; right: 0px; z-index: 99; width: 200px; /* top: calc(50vh + 40px)!important; transform: translateY(-50%); */ top: 140px!important; }

.onglet-fixe a{
    color: white;
    text-decoration: none;
}

.btn-onglet-fixe{
    width: 40px;
    height: 40px;
    z-index: 9;
}

.btn-onglet-fixe img{
    margin: 5px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    object-position: center;
}


.inner-onglet-fixe{
    align-items: center;

}

.titre-onglet-fixe{
    color:  #4b4b4a;;
    padding: 5px;
    width: auto;
    width: 100%;
    text-align: left;
    z-index: 8;
    font-size: 1em;
    line-height: 120%;
}

.onglet-fixe{
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    padding-top: 5px;
    border-bottom: 4px solid #ccd7dc;
}

.onglet-fixe:last-child{
    border-bottom: 0;
}

#contenu-onglets-fixes{
    background: white;
    border-bottom: 5px solid var(--wp--preset--color--primaire);
    box-shadow: 0px 0px  15px 5px rgba(83, 129, 146, 0.20);
    position: relative;
    margin-left: 120%;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

body.home #contenu-onglets-fixes{
    margin-left: 0%;
}

#onglets-fixes.scrolled #contenu-onglets-fixes{
    margin-left: 120%;
}


#contenu-onglets-fixes.active{
    margin-left: 0 !important;
}

/* ************************ PAGE ACCUEIL ************************ */

/*** Accueil ***/

#bandeau-titre-rubrique{
    margin-bottom: 30px;
}

#bandeau-actu{
    padding: 50px 30px;
}

#actu-une{
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    background: linear-gradient(to right, #FFF, #FFF 10%, #ccd7dc 10%, #ccd7dc);

}

#bloc-photo-une{
    position: relative;
    margin-top: -50px;
    width: 45%;
}

#bloc-description-une{
    width: 55%;
    padding: 50px;
}

#bandeau-dernieres-actus{
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
}

.actu-articles{
    gap: 80px; row-gap: 40px;
    flex-wrap: wrap;
}

.bloc-actu{
    width: calc(50% - 40px);
    gap: 20px; 
    padding-bottom: 40px;
    border-bottom: 2px dashed #4b4b4a;
}

.bloc-photo-actu{
    width: calc(45% - 10px);
    position: relative;
}
.bloc-description-actu{
    width: calc(55% - 10px);
    padding: 0px;
}

.bloc-photo-actu img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: 350px;
}

.titre-article a{
    text-decoration: none;
}


#mea-treguier{
    position: relative;
    padding: 50px 30px;
    /*background: var(--couleur_principale);*/
    overflow: hidden;
    z-index: 1;
}
#mea-treguier .wp-block-media-text{
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#mea-treguier .wp-block-media-text .wp-block-media-text__content{
    padding-left: 0;
    padding-right: 50px;
}

#mea-treguier:before{
    content:"";
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    top: 0;
    left: 0;
    background: url(./img/trame_bg.svg);
    background-size: 40px;
    background-repeat: repeat;

}

#mea-treguier h2{
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
    color: var(--wp--preset--color--primaire);
}

#mea-treguier h2:after{
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 30px;
    height: 4px;
    background: var(--wp--preset--color--primaire);
    transition: all 0.2s ease-in-out;
}


#bandeau-bulletin{
    position: relative;
    padding: 50px 30px;
    background: var(--wp--preset--color--primaire);
    overflow: hidden;
    color: white;
    box-shadow: inset 0px 0px 65px 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
}
#bandeau-bulletin h2, #bandeau-bulletin p{
    color: white;
}

#bandeau-bulletin:before{
    content:"";
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    top: 0;
    left: 0;
    background: url(./img/trame_bg.svg);
    background-size: 40px;
    background-repeat: repeat;

}

#inner-bandeau-bulletin{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    gap: 20px;
}

#bloc-présentation h2{
    position: relative;
    font-size: 40px;
    line-height: 50%;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

#bloc-présentation h2 span{
    font-size: 16px;
    font-weight: lighter;
}

#bloc-présentation h2:after{
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 30px;
    height: 4px;
    background: white;
    transition: all 0.2s ease-in-out;
}

.bloc-bandeau-bulletin{
    width: calc(25% - 10px);
}

.img-bulletin{
    margin-bottom: 15px;
    max-width: 240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.bloc-bulletin{
    text-align: center;
}

.bloc-bulletin .wp-block-buttons > .wp-block-button{
    margin-left: auto;
    margin-right: auto;
}

#bandeau-bulletin h2{
    margin-top: 0;
    padding-left: 0;
}
#bandeau-bulletin h2:before{
    display: none;
}

/* ************************ PAGE ... ************************ */

#header_pages{ padding-top: 70px; }
#contenu-header-pages{
    background: var(--wp--preset--color--primaire);
    position: relative;
    min-height: 164px;
}

#contenu-header-pages:after{
    content: "";
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    top: 0;
    left: 0;
    background: url(./img/trame_bg.svg);
    background-size: 40px;
    background-repeat: repeat;
    mix-blend-mode: multiply;
}

.inner-header-pages{
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px 15px 30px 15px;

}

#contenu-header-pages h1{
    max-width: 660px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
}




/* ************************ PAGE DEFAUT ************************ */

#filarianne{
    width: 100%;
    position: relative;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.4);

}
.inner-filarianne{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
}
.inner-filarianne .breadcrumb_last{
    color: var(--wp--preset--color--primaire);
}


/*** contenu gutenberg ***/
.page-content {
    width: 100%;
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   6. AJUSTEMENTS POUR LA ZONE GUTENBERG
   ========================================================================== */

.page-content {
    margin-top: 80px;
    margin-bottom: 80px;
}

/* Espacement vertical natif entre les blocs */
.page-content > * + * {
    margin-top:  var(--wp--preset--spacing--espace-blocs);
}

.page-content p{
    margin-top: var(--wp--preset--spacing--espace-paragraphe);
    margin-bottom: 0;
}

/* Tous les blocs classiques se centrent automatiquement */
.page-content > * {
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Les blocs configurés en "Grande largeur" passent à 1600px */
.page-content > .alignwide {
    max-width: var(--wp--style--global--wide-size, 1600px);
}

/* On force le "Pleine largeur" à annuler le padding du parent */
.page-content > .alignfull {
    max-width: none !important;
    
    /* On élargit le bloc pour compenser exactement le padding gauche/droite */
    width: calc(100% + (2 * var(--wp--preset--spacing--espace-blocs))) !important;
    
    /* On le tire vers les extrêmes bords de l'écran */
    margin-left: calc(-1 * var(--wp--preset--spacing--espace-blocs)) !important;
    margin-right: calc(-1 * var(--wp--preset--spacing--espace-blocs)) !important;
}

/*** Bloc Media & Texte ***/
.wp-block-media-text > .wp-block-media-text__content {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--wp--preset--spacing--espace-blocs);
    padding-right: var(--wp--preset--spacing--espace-blocs);
}
.wp-block-media-text > .wp-block-media-text__content{
    padding: 0 !important;
}
.wp-block-media-text {
    gap: var(--wp--preset--spacing--espace-blocs);
}
 .wp-block-media-text.alignfull {
    gap: 0;
}
/* Media & Texte Pleine Largeur */
.wp-block-media-text.alignfull .wp-block-media-text__content {
    /* Un padding fluide : 2rem sur mobile, et jusqu'à 6rem (96px) sur grand écran */
    padding-top: var(--wp--preset--spacing--espace-blocs) !important;
    padding-bottom: var(--wp--preset--spacing--espace-blocs) !important;
    padding-left: var(--wp--preset--spacing--espace-blocs) !important;
    padding-right: var(--wp--preset--spacing--espace-blocs) !important;
}
.wp-block-media-text.alignfull .wp-block-media-text__media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image se recadre proprement sans se déformer */
}
/* Coins arrondis */
.wp-block-media-text.image-arrondie .wp-block-media-text__media {
    border-radius: 15px; 
    overflow: hidden;
}
.wp-block-media-text.image-arrondie .wp-block-media-text__media img {
    border-radius: inherit;
}
.wp-block-media-text > .wp-block-media-text__content > *:first-child{ margin-top: 0 !important;}
.wp-block-media-text > .wp-block-media-text__content > *:last-child{ margin-bottom: 0 !important;}

/*** H2 ***/
h2{
    margin-top: var(--wp--preset--spacing--espace-blocs) !important;
    padding-left: 40px;
    position: relative;
    text-transform: uppercase;
}
 h2:before{
    position: absolute;
    content: "";
    width: 30px;
    height: 35px;
    background: url(./img/sigle_treguier.svg);
    background-size: contain;
    background-position: center;;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
}
h2.has-text-align-center{ padding-left: 0; }
h2.has-text-align-center:before{ display: none; }
h2.titre-rubrique{ margin-top: 0 !important; }

/*** Colonnes ***/
.wp-block-column > *:first-child, .wp-block-column > h2:first-child{ margin-top: 0 !important}
.wp-block-column > *:last-child{ margin-bottom: 0 !important}

.wp-block-column.col_round {
    color: var(--couleur_principale_dark);
    position: relative;
    background-color: var(--couleur_tertiaire);
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 50%;
    padding: 0px 30px;
}

/*
.page-content{
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 15px;
}
.page-content h2{
    padding-left: 40px;
    position: relative;
    color: var(--couleur_principale);
    margin-bottom: 30px;
    margin-top: 60px;
    text-transform: uppercase;
    line-height: 30px;
}

.page-content h2:before{
    position: absolute;
    content: "";
    width: 30px;
    height: 30px;
    background: url(./img/sigle_treguier.svg);
    background-size: contain;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
}

.page-content h2.has-text-align-center{ padding-left: 0; }
.page-content h2.has-text-align-center:before{ display: none; }

.page-content h3 { margin-top: 50px; }
.page-content h3.has-text-align-center{ padding-bottom: 0; }
.page-content h3.has-text-align-center:after{ display: none; }

.page-content h4 { margin: 15px 0; }

.page-content a:not(.wp-element-button) { text-decoration: underline;  }
.page-content a:not(.wp-element-button):hover { color: var(--couleur_principale);  }

.page-content ul{ margin-bottom: 15px; }
.page-content li{ margin-bottom: 5px; line-height: 140%; }

.page-content > *:first-child{ margin-top: 0; }
.page-content > *:last-child{ margin-bottom: 0; }

.wp-block-media-text__content *:last-child,
.wp-block-group__inner-container *:last-child,
.wp-block-column *:last-child{
    margin-bottom: 0;
}

.wp-block-media-text__content *:first-child,
.wp-block-group__inner-container *:first-child,
.wp-block-column *:first-child{
    margin-top: 0;
}

.wp-block-column.has-background,
.wp-block-group.has-background{
    padding: 30px 15px;
}

.wp-block-column.col_round{
    color: var(--couleur_principale_dark); position: relative; background-color: var(--couleur_tertiaire); width: 100%; aspect-ratio: 1; border-radius: 50%; 
    display: flex; flex-direction: column; justify-content: center; padding: 0px 30px; box-sizing: border-box;
}

.wp-block-media-text,
.wp-block-group,
.wp-block-columns{
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-content > img,
.page-content .wp-block-image{
    margin-top: 30px;
    margin-bottom: 30px;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{
    padding-left: 0;
}
.wp-block-media-text.has-media-on-the-left .wp-block-media-text__content{
    padding-right: 0;
}

.page-content figure.alignleft {   margin-right: 50px;  } 
.page-content figure.alignright {   margin-left: 50px;  } 
.page-content figure figcaption {   font-size: 1.2rem; font-style: italic; }
.page-content sup { line-height: 1em; text-transform: lowercase;}
.page-content .wp-block-columns { gap: 70px; margin: 70px 0; }

// Boutons 
.wp-block-buttons { margin-bottom: 30px; }

// Galerie 
.page-content .wp-block-gallery.has-nested-images {
    --wp--style--unstable-gallery-gap: 30px !important; 
    gap: 30px !important;
}

// Accordeon 
.page-content .wp-block-details { display: flex; flex-direction: column; gap: 15px;}
.page-content .wp-block-details summary { font-size: 2rem; line-height: 1.5em; padding: .5em 1.2em; border-radius: 15px; background-color: white; box-shadow: 5px 5px 10px 1px rgb(0 0 0 / 0.2);  }

*/


/* ************************ PAGE CONTACT ************************ */

.formulaire {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
}

.contener_champs_formulaire input,
.contener_champs_formulaire textarea,
.contener_champs_formulaire select {
    width: 100%;
    padding: 15px;
    font-size: 0.9em;
    font-family: 'Kanit';
    margin-bottom: 12px;
    -webkit-appearance: none;
    border: solid 1px black;
}

.contener_champs_formulaire p {
    margin-bottom: 0;
}

.wpcf7-list-item {
    margin: 0;
}

.mentions_formulaire p {
    margin-bottom: 5px;
    font-size: 0.86em;
}

.bouton_envoyer {
    text-align: center;
}

.bouton_envoyer input {
    border: none;
    background-color: #335962;
    border-radius: 0;
    padding: 10px 25px;
    color: white;
}

/*** SOUS PAGES ***/
#liste-sous-pages{
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.sous-page {
    width: calc(33% - 15px);
}
.inner-sous-page {
    position: relative;
    width: 100%;
    height: 250px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}
.inner-sous-page .post-thumbnail {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.inner-sous-page .post-thumbnail img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: 50%;
    transition: all 0.2s ease-in-out;
    transform: scale(1);
}
.sous-page a{
    color: white;
    text-decoration: none;
}
.sous-page a:hover .inner-sous-page .post-thumbnail img {
    transform: scale(1.1);
}

.inner-sous-page .filtre-noir {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(51, 89, 98, 0.7);
    /*background-color: rgba(197, 152, 89, 0.8);*/
}
.inner-sous-page h3 {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 1.15em;
    text-transform: uppercase;
    line-height: 140%;
    margin-bottom: 0;
    padding-bottom: 0;
}
.inner-sous-page h3:after {
    display: none;
}

/*** BLOG ***/
.blog #liste-articles-{
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

}
.article-blog{
    padding-bottom: 50px;
    position: relative;
    padding-bottom: 50px;
    margin-bottom: 50px;
    position: relative;
    width: calc(33% - 20px);
}

.article-blog .description-article h2{
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    text-transform: initial;
    padding-left: 0;
    color: black;
    line-height: 120%;
}
.article-blog .description-article h2:before{
    display: none;
}
.article-blog .description-article h2:after{
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--wp--preset--color--primaire);
}

.article-blog h2{
    padding-bottom: 0;
    text-align: left;
}

.photo-article img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.article-blog a{
    text-decoration: none;
}

.article-blog h2{
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left !important;
}

.description-article-blog .wp-block-buttons{
    margin-bottom: 0;
}

.description-article-blog .date-actu{
    color: var(--wp--preset--color--primaire);
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.pagination-articles{
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

}

.pagination-articles ul{
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-articles li{
    list-style: none;
    width: 30px;
    height: 30px;
    background: var(--wp--preset--color--primaire);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    line-height: 30px;
    margin: 5px;
    transition: all 0.2s ease-in-out;
    opacity: 1;
}

.pagination-articles li a{
    color: white;
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;

}

.pagination-articles li:hover{
    opacity: 0.8;
}

.pagination-articles li.active{
    background: var(--couleur_secondaire);
    color: black;
}
.pagination-articles li.active:hover{
    opacity: 1;
} 

.resume-actu{
    line-height: 140%;
}

a.lire-article {
  background-color: var(--wp--preset--color--primaire);
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 30px;
  transition: all 0.2s ease-in-out;
  opacity: 1;
  margin-top: 15px;
  display: inline-block;
}
a.lire-article:hover {
    opacity: 0.8;
}

.categorie_article ul.post-categories li{
    list-style: none;
    line-height: 140%;
}
.categorie_article ul.post-categories li a{
    color: var(--wp--preset--color--primaire);
}

.date-actu{
    color: var(--wp--preset--color--primaire);
    font-style: italic;
    margin-bottom: 10px;
}

a.lire-article-blog{
    font-weight: bold;
    color: black;
}



/*** bulletin ***/

#liste-bulletins{
    margin-top: 50px;
}

#liste-bulletins .bulletin{
    width: 250px;
    margin: 10px;
    margin-bottom: 30px;
}
#liste-bulletins .bulletin p{
    text-align: center;
    color: var(--wp--preset--color--primaire);
}
#liste-bulletins .bulletin img{
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.2);
}


/*** event ***/
.tribe-events-meta-group.tribe-events-meta-group-gmap{
    flex-basis: 100% !important;
}
.tribe-events-venue-map{
    width: 100% !important;
}
.tribe-events-venue-map > iframe{
    width: 100% !important;
    height: 400px;
    max-height: 400px !important; 
}

.tribe-events h3:before{ 
    display: none !important;
}

.tribe-events li{
    list-style: none !important;
}

figure.aligncenter{
    text-align: center;
}

.bandeau-titre-event{
    gap: 20px;
}

.bloc-titre-event{
    width: calc(60% - 10px);
}
.bloc-image-event{
    width: calc(40% - 10px);
}

.bloc-image-event .tribe-events-event-image img{
    width: 250px !important;
    max-width: 100% !important;
}

.bloc-image-event .tribe-events-event-image img{
    margin: 0 auto;
}
.tribe-events-single-event-title {
    font-size: 1.6em;
    line-height: 120%;
}

.tribe-events-schedule h2{
    font-size: 16px;
    color: var(--wp--preset--color--primaire);
    width: calc(100% - 44px) !important;
}

.bandeau-titre-event .tribe-events-schedule{
    margin-bottom: 0px;
}

.bandeau-titre-event{
    margin-bottom: 30px;
}
.localisation-event{
    font-size: 16px;
    display: flex;
}

.localisation-event .tribe-address{
    display: flex;
    width: calc(100% - 44px) !important;
}
.localisation-event .tribe-address span{
    margin-left: 5px;
}
.localisation-event .tribe-address span:first-child,
.localisation-event .tribe-address span.tribe-delimiter{
    margin-left: 0;
}


/*** annuaire ***/

.cat-contacts{
    margin-bottom: 15px;
}

.cat-contacts > .annuaire{
    padding-top: 30px;
    padding-bottom: 30px;
}
section.annuaire{
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px; 
    margin-bottom: 30px;
}
.cat-contacts summary{
    color: white;
    background-color: var(--wp--preset--color--primaire);
    padding: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.bloc-contact{
    padding: 30px; border-radius: 15px; 
    background-color: var(--couleur_tertiaire);
    flex: 0 0 calc(33.333% - 30px);
}
.bloc-contact:only-child {
    flex: 0 0 100%;
}
.bloc-contact div{
    margin-bottom: 5px;
}
.bloc-contact .description-contact{
    margin-bottom: 15px;
}

.bloc-contact address{
    padding-bottom: 15px;
    border-bottom: 1px dashed #000;
    margin-bottom: 15px;
    line-height: 1.4em; 
}

.bloc-contact .site-contact, .bloc-contact .horaires-contact  {
    padding-top: 15px;
    border-top: 1px dashed #000;
    margin-top: 15px;
}

.bloc-contact *:last-child{
    margin-bottom: 0;
}

.bloc-contact a{
    text-decoration: none!important;
}
.bloc-contact .description-contact a{ 
    text-decoration: underline;
}

.bloc-contact h3{ margin-top: 0; } 

a.retour-contacts{
  color: #4b4b4a;
  background: transparent;
  padding: 10px 15px !important;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none;
  font-size: 1.125em;
  margin-bottom: 30px;
  border: 2px solid;
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
  word-break: break-word;
}


/* ************************ PAGE RESULTATS RECHERCHES ************************ */

.page_recherche .resultats-recherche h2 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;

}
.page_recherche .resultats-recherche .titre-recherche{
    margin: 25px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: solid 4px var(--wp--preset--color--primaire);
    display: flex;
    justify-content: space-between;
}

.page_recherche .resultats-recherche span {
    color: var(--couleur_secondaire);
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
}


.element-recherche {
    list-style: none;
    margin-bottom: 50px !important;

}

.element-recherche a{
    text-decoration: none;
}

.search-excerpt {
    background-color: #f7a900;
    padding: 0 5px;
    color: white;
}

.rubrique-recherche {
    color: #4fbacd;
    font-size: 0.9em;
    font-style: italic;
}

.date-recherche {
    color: grey;
    font-size: 0.8em;
}

.pagination .page-numbers {
    padding: 8px;
    font-size: 1em;
}

.pagination .page-numbers.current {
    border: solid 1px var(--wp--preset--color--primaire);
    color: #007796;
}


/* ************************ PAGE ERREUR (404) ************************ */

.page_erreur {
    text-align: center;  
}

.page_erreur img {
    display: inline-block; 
    width: 350px;
    margin: 25px auto;
    text-align: center;
}


/* ************************ FOOTER ************************ */


/* *** COPYRIGHT *** */

#copyright {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 25px;
    color: white;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

#copyright:after{
    position: absolute;
    content: "";
    width: 200px;
    height: 200px;
    right: -200px;
    bottom: 0;
    background: url(./img/illu_footer.svg);
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}


#copyright a{
    color: white;
}

/* *** LE STUDIO *** */

.lestudio {
    background-color: black;
    padding: 10px;
}

.lestudio a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lestudio img {
    margin: 5px;
}

#inner-bandeau-rs{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
#bandeau-reseaux-sociaux{
    padding: 15px;
    background: white;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.5);
}

.colonne-bandeau-rs:first-child{
    font-size: 25px;
    text-transform: uppercase;
    color: var(--wp--preset--color--primaire);
    line-height: 1;
}
.btn-rs a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #4b4b4a;
    color: white;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-rs a:hover{
    background: #c59859;
}

.colonne-bandeau-rs{
    width: 33%;
}

.colonne-bandeau-rs .dashicons{
    width: 30px;
    height: 30px;
    font-size: 30px;
}

.colonne-footer > .flex{
    gap: 15px;
}
.colonne-footer h4, .colonne-footer p{
    color: white;
}

footer{
    position: relative;
    z-index: 1;
    background: #4b4b4a;
    overflow: hidden;
    padding: 50px 15px 0px 15px;
}
footer:after{
    content:"";
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    top: 0;
    left: 0;
    background: url(./img/trame_bg.svg);
    background-size: 40px;
    background-repeat: repeat;
    mix-blend-mode: multiply;
}
section#footer{
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tel-footer, .mail-footer { display: inline-block; text-decoration: none; color: white; }
.tel-footer:hover, .mail-footer:hover { opacity: .5; }
.tel-footer .dashicons, .mail-footer .dashicons { color: var(--couleur_secondaire); margin-right: 10px; }


#bandeau-adresse-horaires { margin-bottom:  50px; margin-top: 50px; color: white; }
.separ_footer { display: block; width: 3px; border-right: 1px dashed white; }
#bandeau-logo > div{ }
#bandeau-adresse-horaires .colonne-footer{ gap: 20px; display: flex; flex-direction: column; position: relative; }
#bandeau-adresse-horaires .colonne-footer p { margin-bottom: 0; }
#bandeau-adresse-horaires #map_footer { margin-top: -130px; }
#bandeau-labels {  margin-bottom: 30px; }

/* Slider */
.slick-slider{
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--couleur_tertiaire);
}

.slick-list{
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.slick-list:focus{
    outline: none;
}
.slick-list.dragging{
    cursor: pointer;
    cursor: hand;
}
.slick-slider .slick-track,
.slick-slider .slick-list{
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}
.slick-track{
    position: relative;
    top: 0;
    left: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after{
    display: table;
    content: '';
}
.slick-track:after{
    clear: both;
}
.slick-loading .slick-track{
    visibility: hidden;
}
.slick-slide{
    display: none;
    float: left;
    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide{
    float: right;
}
.slick-slide img{
    display: block;
}
.slick-slide.slick-loading img{
    display: none;
}
.slick-slide.dragging img{
    pointer-events: none;
}
.slick-initialized .slick-slide{
    display: block;
}
.slick-loading .slick-slide{
    visibility: hidden;
}
.slick-vertical .slick-slide{
    display: block;
    height: auto;
    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}
/* Arrows */
.slick-prev,
.slick-next{
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus{
    color: transparent;
    outline: none;
    background: transparent;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before{
    opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before{
    opacity: .25;
}
.slick-prev:before,
.slick-next:before{
    font-size: 20px;
    line-height: 1;
    opacity: .75;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.slick-prev{
    left: -25px;
}
[dir='rtl'] .slick-prev{
    right: -25px;
    left: auto;
}
.slick-prev:before{
    content: '←';
}
[dir='rtl'] .slick-prev:before{
    content: '→';
}
.slick-next{
    right: -25px;
}
[dir='rtl'] .slick-next{
    right: auto;
    left: -25px;
}
.slick-next:before{
    content: '→';
}
[dir='rtl'] .slick-next:before{
    content: '←';
}
/* Dots */
.slick-dotted.slick-slider{
    margin-bottom: 30px;
}
.slick-dots{
    position: absolute;
    bottom: -25px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}
.slick-dots li{
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
}
.slick-dots li button{
    font-size: 0;
    line-height: 0;
    display: block;
    width: 20px;
    height: 20px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus{
    outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before{
    opacity: 1;
}
.slick-dots li button:before{
    font-size: 6px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    content: '•';
    text-align: center;
    opacity: .25;
    color: black;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before{
    opacity: .75;
    color: black;
}

/*** optimisation ***/
.slick-slider {
  display: none;
}
.slick-slider.slick-initialized{
 display: block;
}


/*******************************************/
/************** MEDIA QUERIES **************/
/*******************************************/

@media only screen and (min-width : 1024px) {
    /*** trombi ***/
    .wp-block-cover.survol:hover{
        cursor: pointer;
    }
    .wp-block-cover.survol .wp-block-cover__background,
    .wp-block-cover.survol .wp-block-cover__inner-container{
        opacity: 0 !important;
        transition: all 0.2s ease-in-out;
    }
    .wp-block-cover.survol:hover .wp-block-cover__background{
        opacity: 0.7 !important;
    }
    .wp-block-cover.survol:hover .wp-block-cover__inner-container{
        opacity: 1 !important;
    }
}

/* @media only screen and (min-width : 1200px) {
    #mega-menu-Top{ width: 740px; }
} */

@media only screen and (min-width : 1023px) and (max-width : 1500px) {
    #bloc-texte-header{ padding-right: 180px; }
    #bloc-texte-header h1{ margin-right: 50px; }
}


/* ********** ECRANS EN DESSOUS DE 1220px ***********/
@media only screen and (max-width : 1220px) {
    .ma-contact .label-ma{ display: none; }
    .ma-contact a{ padding-right: 10px; }
    .ma-contact a .dashicons{ margin-right: 0 !important; }
    #liste-bulletins{ justify-content: center; }
    .page-content { padding-left: var(--wp--preset--spacing--espace-paragraphe); padding-right: var(--wp--preset--spacing--espace-paragraphe); }
}


/* ********** ECRANS EN DESSOUS DE 1023px ********** */
@media only screen and (max-width : 1023px) {
    .menu_ordi{
        display: none;
    }
    .menu_mobile{
        display: block;
    }

    #actu-une{ flex-wrap: wrap; background: #ccd7dc; max-width: 600px; margin-left: auto; margin-right: auto; }
    #bloc-photo-une{ width: 100%; order: 2; margin-top: 0;} 
    #bloc-description-une{ width: 100%; order: 1; }
    .bloc-actu{ width: 100%; }
    #bandeau-adresse-horaires, #bandeau-logo{ flex-wrap: wrap; justify-content: center;}
    #bandeau-logo > div, #bandeau-adresse-horaires .colonne-footer{ width: calc(50% - 10px); max-width: 400px; text-align: center; }
    #bandeau-adresse-horaires .colonne-footer:after{ display: none; }
    #copyright:after{ display: none; }
    #bloc-nav{ display: none }
    .inner-bandeau-navigation{justify-content: flex-end;}
    #bloc-nav-annexe{ min-height: 70px }

    #onglets-fixes{
        position: fixed;
        left: 0;
        right: auto;
        bottom: 0;
        top: auto !important;
        transition: all 0.2se ease-in-out;
    }
    #contenu-onglets-fixes{ margin-left: 0 !important; height: 0; border-bottom: 0;}
    #contenu-onglets-fixes.active{ height: auto;}
    #bouton-onglets-fixes{ max-width: 130px; }

    .lestudio{ padding-bottom: 65px }
    .titre-btn-of{ font-size: 1.1em; width: calc(100% - 40px);}
    .inner-btn-of img{ width: 30px; }
   

    .recherche-header{ display: none; }

    .wp-block-cover.survol .wp-block-cover__background{ opacity: 0 !important;}
    .wp-block-cover.survol .wp-block-cover__inner-container{
        height: auto;
        bottom: 0;
        top: auto;
        position: absolute;
        padding: 10px;
        background: rgba(51, 89, 98, 0.7);
    }
    .article-blog{ width: calc(50% - 20px); }

    .bloc-contact{width: calc(50% - 8px);}


}

/* ********** ECRANS EN DESSOUS DE 940px********** */
@media only screen and (max-width : 800px) {
    #inner-bandeau-bulletin{ flex-wrap: wrap; }
    .bloc-bandeau-bulletin{ width: calc(50% - 10px) }
    .sous-page { width: calc(50% - 10px);}

}


/* ********** ECRANS EN DESSOUS DE 767px********** */
@media only screen and (max-width : 767px) {
    body {
        font-size: 0.9em;
    }
    /*.menu-annexe .label-ma{ display: none; }
    .menu-annexe a{ border: 0; padding-right: 10px;}
    .menu-annexe .dashicons{ height: 30px; width: 30px; font-size: 30px; }
    .search-toggle .dashicons{ font-size: 30px; }*/
    #bloc-texte-header {position: relative;bottom: auto;left: 0;width: 100%;text-align: left; margin-top: 50px;}
    #bloc-texte-header h1{ color: white; font-size: 1.4em; }
    #inner-bandeau-rs{ flex-wrap: wrap; }
    .colonne-bandeau-rs:last-child{ width: 100%; }
    .colonne-bandeau-rs:last-child .wp-block-buttons.is-content-justification-right{ justify-content: center; margin-top: 15px }
    .bloc-titre-event{ width: 100%; }
    .bloc-image-event{ width: 100%; }
}

/* ********** ECRANS EN DESSOUS DE 600px********** */
@media only screen and (max-width : 600px) {
    .bloc-actu { flex-wrap: wrap;  }
    .bloc-photo-actu{ width: 100%; order: 2; }
    .bloc-description-actu{ width: 100%; order: 1; }
    #mea-treguier .wp-block-media-text .wp-block-media-text__content{ padding-right: 0;}
    #mea-treguier .wp-block-media-text .wp-block-media-text__media{ margin-bottom: 30px; }
    #bandeau-logo > div, #bandeau-adresse-horaires .colonne-footer{ width: 100%; margin-bottom: 50px; }
    .colonne-bandeau-rs{ width: 100%; }
    .sous-page { width: 100%;}
    .article-blog{ width: 100%; }
    .liste-events{ flex-wrap: wrap; }
    .bloc-event{ width: 100%; }
    .bloc-contact{width: 100%;}
    #contenu-header-home{ padding-top: 200px; padding-bottom: 200px; }

}

/* ********** ECRANS EN DESSOUS DE 480px ********** */
@media only screen and (max-width: 480px) {
    .bloc-bandeau-bulletin{ width: 100%;  }
    .bloc-bandeau-bulletin { margin-bottom: 30px; }
    #bloc-présentation{ text-align: center; }
    #bloc-présentation .wp-block-buttons > .wp-block-button{ margin-left: auto; margin-right: auto; }
    #bloc-présentation h2::after { left: 50%; transform: translateX(-50%); }

}


