/*********************
* GLOBAL ********************
*********************/


body {
    margin: 0 !important;
}

.site {
    overflow: hidden;
}

.site-main {
    margin-top: 50px;
    margin-bottom: 50px;
}

h1,
h2,
h3,
h4,
h5,
b,
s,
a {
    color: #000;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
}

h1 {
    font-size: 3.5rem;
    text-align: left;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

p {
    font-size: 1.3rem;
}

ul {
    margin: 0em !important;
    font-size: 1.3rem;
    padding: 20px;
}

a:link,
a:visited,
a:hover,
a:focus,
a:active {
    color: #000;
    outline: none;
}

.btn {
    width: 100%;
    background-color: #fff !important;
    /* border: solid 1px black !important;  */
    border-radius: 30px !important;
    color: black !important;
    font-size: 1.3rem;
}

.btn:hover {
    background-color: black !important;
    color: white !important;
}

.scale {
    transition: 0.25s;
}

.scale:hover {
    transform: scale(0.95);
}

/*********************
* HEADER ********************
*********************/

#wp-admin-bar-edit {
    display: none !important;
}

/*********************
* FIL ARIANNE ********************
*********************/
.breadcrumb {
    font-size: 0.95rem;
    margin: 0.2rem 0rem -2rem 0rem;
    color: black;
    background-color: initial !important;
    padding: 0.75rem 0rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li::after {
    content: "›";
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: black;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/*********************
* NAVIGATION ********************
*********************/


/* Barre de navigation principale */
.navbar {
    position: relative;
    z-index: 999;
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Wrapper interne centré */
.nav-inner-70 {
    width: 90vw;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 5rem;
    /* padding gauche du logo */
}

.logo-link img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Toggler */
.navbar-toggler {
    margin-left: auto;
}

/* Menu principal */
.navbar-collapse {
    background-color: transparent;
    transition: 0.25s;
    margin-left: auto;
    flex-grow: 1;
    padding-right: 5rem;
    /* padding droite des items */
}

/* Liste des items */
.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Items */
.navbar-nav li {
    display: inline-flex;
    align-items: center;
}

/* Liens du menu */
.nav-link {
    font-family: 'KantumruyPro-Medium';
    font-size: 1.4rem;
    color: #000 !important;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-width: 400px;
    width: auto;
    padding: 15px;
    margin: 0;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: none;
    z-index: 1000;
}

/* Dropdown items */
.dropdown-item {
    font-family: 'KantumruyPro-Medium';
    font-size: 1.3rem;
    color: #000 !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    text-align: left;
}

.dropdown-item:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
    background-color: initial !important;
}

.dropdown-item:active {
    background-color: #000;
    color: #fff;
}

/* Icônes réseaux sociaux */
.social-icons .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.social-icons i {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

/* Mega menu */
.megamenu-li {
    position: static;
}

.megamenu {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    padding: 15px;
}

/* Sous-menu À propos */
.sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 2rem;
}

.sub-menu li {
    margin: 0;
}

.sub-link {
    display: block;
    width: 100%;
    font-family: 'KantumruyPro-Medium';
    font-size: 1.3rem;
    color: #000;
    padding: 0.5rem 0;
    text-decoration: none;
    text-align: left;
}

.sub-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #000;
    border-color: #000;
}

.page-link:hover {
    color: black;
}

/*********************
* 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;
    line-height: 1;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.content-slider {
    font-size: 2rem;
    line-height: 1.5;
    color: white;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.img-slider {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 400px;
}

.slick-dots {
    bottom: 25px;
}

.slick-dots li button::before {
    opacity: 1;
    color: white;
}

.slick-dots li.slick-active button::before {
    opacity: 1;
    color: #000;
}

.slick-dotted.slick-slider {
    margin-bottom: 0;
}

/*********************
* 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;
    line-height: 1;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.bg-news {
    background-color: #fff;
}

.div-cc {
    border-radius: 1rem;
    background-color: #000;
    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 ********************
*********************/
.img-acces {
    display: inline;
    width: 100px;
    margin-right: 10px;
    float: left;
}

/*********************
* ARCHIVE ********************
*********************/
/* 🔍 Navigation des filtres */
.nav-filter-archive {
    text-align: center;
}

.nav-filter-archive li {
    list-style: none;
    display: inline;
    margin-right: 10px;
}

/* 🧱 Conteneur de chaque box actu */
.box-news .col-lg-4 {
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* 🪄 Zoom global au hover */
.box-news .col-lg-4:hover {
    transform: scale(1.03);
}

/* 🔗 Lien d’archive */
.link-archive {
    display: block;
    text-decoration: none;
    color: var(--color__text_main);
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

/* 🖼️ Image en background */
.img-archive {
    width: 100%;
    height: 270px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 📝 Titre */
.title-archive {
    font-size: 1.25em;
    font-weight: bold;
    padding: 12px 16px 4px 16px;
    transition: all 0.3s;
}

/* 📄 Contenu */
.content-archive {
    font-size: 1.2rem;
    padding: 0px 16px 8px 16px;
    transition: all 0.3s;
}

/* 🏷️ Tags box-news et content-archive-news (anciens blocs, non scoppés) */
.tags-archive {
    padding: 0 16px 16px 16px;
}

.tags-archive .tag {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid black;
    display: inline-block;
    color: #000;
    margin-right: 5px;
}

/* ———————————————————————————
   Tags content-news (scopés et indépendants)
   ——————————————————————————— */

/* Scope (sert d’ancrage pour éviter les conflits) */
#content-news-archive,
.content-news {}

/* Wrapper général des tags sous la date */
.content-news #tags-content-news.tags-archive-content-news {
    display: block;
    width: 100%;
}

/* Groupes de tags (type_evenement et post_tag) */
.content-news .tags-group-content-news {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem .5rem;
    /* vertical horizontal */
}

/* Pastilles génériques (style par défaut, clair) */
.content-news .tag-pill-content-news {
    display: inline-block;
    font-size: .85rem;
    line-height: 1;
    padding: .35rem .6rem;
    border-radius: 999px;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    color: #111;
    background: #e9ecef;
    border: 1px solid transparent;
}

/* Variantes par type (tu peux ajuster les couleurs) */
.content-news .tag-type-evenement {
    background: white;
    color: black;
    border: solid 1px black;
}

.content-news .tag-post-tag {
    background: white;
    color: black;
    border: solid 1px black;
}

.content-news .mt-1 {
    margin-top: .25rem !important;
}

.content-news .mt-2 {
    margin-top: .5rem !important;
}

.content-news .mb-2 {
    margin-bottom: .5rem !important;
}

.content-news .mb-3 {
    margin-bottom: 1rem !important;
}

.content-news .me-1 {
    margin-right: .25rem !important;
}

/* Neutralise les backgrounds Bootstrap sur les badges non scoppés si besoin */
.box-actualite-inner .tag.badge {
    background-color: initial !important;
}

/* Hover sur le lien de carte */
.link-archive:hover .title-archive,
.link-archive:hover .content-archive,
.link-archive:hover .tags-archive {
    /* exemple: background-color: #fafafa; */
}


/* 📚 Navigation archive */
.nav-archive {
    font-size: 1.2rem;
    text-align: center;
}

.nav-archive a {
    background-color: white;
    border: solid 1px black;
    color: black;
    border-radius: 30px !important;
    font-size: 1.3rem;
    display: inline-block;
    font-weight: 400;
    padding: .375rem .75rem;
    border-radius: 0;
    line-height: var(--font__line_height_body);
    transition: .3s ease-in-out;
}

.nav-archive a:hover {
    background-color: black;
    color: white;
    text-decoration: none;
}

.nav-archive a:hover i::before {
    transform: rotate(360deg);
    transition: .3s ease-in-out;
}

/* 🔢 Pagination */
.pagination {
    margin: 0;
}

.page-item.active .page-link {
    background-color: var(--color__2) !important;
    border-color: var(--color__2) !important;
}

.page-link:not(.current):hover {
    color: var(--color__2) !important;
}

/*********************
* FOOTER ********************
*********************/
.site-footer img {
    height: 80px;
    margin: 0 auto;
}

.site-footer p {
    margin: 0 auto;
}

.site-footer p a {

    font-size: 1.3em;
}

.site-footer a {
    color: var(--color__noir);
}

.site-footer a:hover {
    text-decoration: none;
    color: var(--color__grisfonce);
}

.bloc-footer-map {
    height: 400px;
    position: relative;
}

.bloc-footer-map iframe {
    width: 100%;
    height: 400px;
}

.bloc-footer-1 {
    background-color: var(--color__blanc);
    color: var(--color__noir);
}

.bloc-footer-2 {
    background-color: var(--color__blanc);
    color: var(--color__noir);
    font-size: 12px;
}

.bloc-footer-2 a {
    color: var(--color__noir);
}

.icon-footer {
    color: var(--color__noir) !important;
    transition: 0.25s;
}

.icon-footer:hover {
    color: var(--color__grisfonce) !important;
}

.icon-footer i {
    font-size: 1.3rem;
    padding-right: 10px;
}

/*********************
* 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) {

    /* Barre de navigation */
    .navbar {
        padding: 0.5rem 0;
        box-shadow: none;
    }

    /* Wrapper interne en colonne */
    .nav-inner-70 {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0 1rem;
    }

    /* Logo mobile visible, centré */
    .logo-link-screen {
        display: none !important;
    }

    .logo-link {
        padding-left: 0;
        padding-right: 0;
        max-width: 70%;
    }

    .logo-link img {
        height: 50px;
        /* ✅ plus petit sur mobile */
        width: 100%;
        object-fit: contain;
        margin: 0;
    }

    /* Toggler centré sous le logo */
    .navbar-toggler {
        margin-left: auto;
    }

    /* Menu déroulé en colonne */
    .navbar-collapse {
        padding-top: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-nav li {
        display: block;
        width: 100%;
        text-align: left;
    }

    .nav-link {
        width: 100%;
        font-size: 1.4rem;
        padding: 0.75rem 1rem;
    }

    /* Sous-menu À propos intégré */
    .sub-menu {
        display: block;
        width: 100%;
        padding-left: 2rem;
        text-align: left;
        margin-top: 0.25rem;
    }

    .sub-menu li {
        width: 100%;
        margin-bottom: 0.25rem;
        font-size: 0.9em;
    }

    .sub-link {
        display: block;
        width: 100%;
        font-size: 1.3rem;
        padding: 0.5rem 0;
        color: #555;
        text-decoration: none;
        text-align: left;
        /* ✅ texte ferré à gauche */
    }

    .sub-link:hover {
        color: #007bff;
    }

    /* Réseaux sociaux centrés */
    .social-icons {
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }

    .social-icons .nav-link {
        padding: 0.5rem;
    }

    .btn {
        font-size: 1rem;
    }

    .nav-archive {
        font-size: 1rem;
    }

    .nav-archive a {
        font-size: 1rem;
    }



    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    ul {
        margin: 0em !important;
        font-size: 1.2rem;
        padding: 20px;
    }

    p {
        font-size: 1.2rem;
    }

    .content-archive {
        font-size: 1.2rem;
    }

    .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;
    }
}

/* 🖥️ Desktop : masquer le sous-menu si utilisé en version mobile */
@media (min-width: 992px) {
    .sub-menu {
        display: none;
    }
}
