/*********************
* GLOBAL ********************
*********************/

/* Problème affichage menu admin WP */
#wpadminbar .ab-empty-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
    color: #f0f0f1 !important;
}

body {
    margin: 0 !important;
    font-family: 'Napoléon', sans-serif;
}

.site {
    overflow: hidden;
}

/*.site-main {
    margin-top: 50px;
    margin-bottom: 50px;
} */

h1,
h2,
h3,
h4,
h5,
b,
s,
a {
    color: var(--color__1) !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: bold;
}

h1 {
    font-size: 3rem;
    text-align: center;
}

/* h1.wp-block-heading {
    text-align: left !important;
    font-family: 'Napoléon';
    margin-top: 1em;
    margin-bottom: 0.4em;
} */

h1.entry-title {
    font-family: 'Napoléon';
    margin-top: 2em;
    margin-bottom: 1em;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.5rem;
    line-height: 1.3em;
}

ul {
    margin-left: 0;
    font-size: 1.2rem;
}

a:link,
a:visited,
a:hover,
a:focus,
a:active {
    color: var(--color__1);
    outline: none;
    text-decoration: none;
}

.btn {
    width: 100%;
    background-color: var(--color__1);
    border-color: var(--color__1);
    color: white !important;
    font-size: 1.3rem;
    border-radius: 30px;
    font-family: 'Napoléon';
}

.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;
}

/*********************
* NAVIGATION
*********************/

.navbar {
    background-color: var(--color__noir) !important;
    position: fixed;
    /* ← Fixe le menu */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* ← Passe au-dessus du contenu */
}

.barres {
    font-family: "Montserrat";
    font-size: 1.1em;
    color: var(--color__blanc) !important;
}

/* Liens */
.navbar-nav .nav-link {
    font-family: "Napoléon";
    font-size: 1.2em;
    padding: 0.2em 2em;
    color: var(--color__blanc) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--color__2) !important;
    transition: 0.2s ease;
}

/* Billetterie */
.btn-ticket {
    border: solid 2px var(--color__2);
    border-radius: 40px;
    background-color: var(--color__2);
    margin-left: 0.5em;
    padding: 0.2em 0.6em !important
}

.btn-ticket:hover {
    border: solid 2px var(--color__blanc);
    background-color: var(--color__blanc);
    color: var(--color__2) !important;
    transition: ease 0.5s;
}

/* Logo */
.navbar-brand img {
    height: 40px;
}

/* Réseaux sociaux */
.header-socials a {
    margin-left: 1rem;
    color: var(--color__blanc) !important;
    font-size: 1.5rem;
}

.header-socials a:hover {
    transition: ease 0.2s;
    color: var(--color__2) !important;
}

/* Dropdown Bootstrap 5 */
.dropdown-menu {
    background-color: var(--color__noir);
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--color__blanc) !important;
    font-family: "Napoléon";
    font-size: 1.2em;
}

.dropdown-item:hover {
    background-color: var(--color__2);
    color: var(--color__noir) !important;
    transition: 0.2s ease;
}


/*********************
* RESPONSIVE
*********************/
@media (max-width: 991px) {

    .barres {
        display: none;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color__noir);
        padding-top: 10rem;
        z-index: 9998;
        overflow-y: auto;
    }

    .navbar-brand,
    .navbar-toggler {
        position: relative;
        z-index: 10000;
    }

    .navbar-nav .nav-link {
        font-size: 1.4rem;
        padding: 1rem 0;
        text-align: center;
    }

    .header-socials {
        justify-content: center;
        margin-top: 2rem;
    }
}

/*********************
* Weglot ********************
*********************/

.country-selector.weglot-dropdown a:hover,
.country-selector.weglot-dropdown span:hover {
    color: var(--color__2);
}

.country-selector.weglot-inline {
    z-index: 9;
    margin-left: 1em;
    /* border: solid 4px red !important;*/
}

.country-selector.weglot-inline label {
    font-size: 1.2em;
    border: 1px solid var(--color__blanc);
    background: var(--color__blanc);
    color: var(--color__noir);
    padding: 4px;
    line-height: 1;
}

.country-selector.weglot-inline ul {
    margin: 0 !important;
}

.country-selector.weglot-inline ul a {
    color: var(--color__blanc) !important;
    font-size: 20px;
    border: 1px solid var(--color__blanc);
    padding: 3px 3px 0 3px;
    line-height: 1;
    margin-left: 10px;
}

.country-selector.weglot-inline ul a::after {
    height: 0;
}

.country-selector.weglot-inline ul a:hover {
    background: var(--color__noir);
    text-decoration: none !important;
    color: var(--color__blanc) !important;
}

/* Centrage des icônes Weglot sur mobile */
@media (max-width: 768px) {
    .country-selector.weglot-inline {
        margin-left: 0;
        /* annule ton margin-left actuel */
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1em;
    }

    .country-selector.weglot-inline ul {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .country-selector.weglot-inline ul a {
        margin-left: 10px;
        /* tu peux ajuster si besoin */
    }
}

/********************
* Citation 
*******************/
.wp-block-quote {
    border-left: none;
    position: relative;
}

.wp-block-quote p {
    font-family: "Mistral-Singleline";
    text-align: center;
    font-size: 4em;
    line-height: 0.9em;
    margin-bottom: 0;
    margin-top: 0.6em;
}

/* Ajout automatique des guillemets */
.wp-block-quote p::before {
    content: "« ";
}

.wp-block-quote p::after {
    content: " »";
}

.wp-block-quote cite,
.wp-block-quote footer {
    font-size: 1.3em;
    margin-top: 0.8em;
    text-align: center;
}

/*********************
* Boutons pleine page class Wordpress ********************
*********************/

.wp-block-button {
    text-align: center;
}

/* Bouton : centrage icône + texte, espacement, couleurs et transitions */
.wp-block-button__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* centre horizontalement l'icône + le texte */
    gap: 0.5rem;
    padding: 0.4em 0.2em;
    box-sizing: border-box;
    background-color: var(--color__1) !important;
    color: var(--color__2) !important;
    font-size: 1.3em !important;
    border-radius: 40px !important;
    text-decoration: none !important;
    border: none;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.6s ease, color 0.6s ease;
    min-width: 140px;
    /* optionnel : assure un rendu stable */
}


/* Hover */
.wp-block-button__link:hover {
    background-color: var(--color__2) !important;
    color: var(--color__1) !important;
}

.scale {
    transition: 0.25s;
}

.scale:hover {
    transform: scale(0.95);
}

/* Fin bouton pleine page class Wordpress */

/*********************
* 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: white;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.content-slider {
    font-size: 2rem;
    line-height: var(--font__line_height_body);
    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;
}

.slick-dots li.slick-active button::before {
    opacity: 1 !important;
    color: var(--color__1) !important;
}

.slick-dotted.slick-slider {
    margin-bottom: 0;
}

.slick-prev::before,
.slick-next::before {
    opacity: 0.75 !important;
    color: var(--color__2) !important;
}


/*********************
* Bandeau ********************
*********************/

.bandeau_bottom_slider p {
    background-color: var(--color__1);
    color: var(--color__blanc);
    text-transform: uppercase;
    padding: 0.5em 1em;
    font-size: 2.2em;
    text-align: center;
    font-weight: 700;
    margin-bottom: 0px !important;
}

@media (max-width: 991px) {
    .bandeau_bottom_slider p {
        padding: 0.5em 0.5em;
        font-size: 1.5em;
    }
}


/*********************
* Presentation carrés ********************
*********************/

/*********************
 * BLOC — ANIMATION GLOBALE
 *********************/

.block {
    width: 100%;
    padding: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

/*********************
 * LAYOUT
 *********************/

.block-content {
    display: flex !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.block .text,
.block .image {
    float: none !important;
    flex: 1 1 50%;
    display: flex;
}

.block .text {
    padding: 80px;
    flex-direction: column;
    justify-content: center;
}

.block .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*********************
 * EFFET RIDEAU HORIZONTAL
 *********************/

/* Normal */
.block:not(.reverse) .image img {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s ease-out;
}

.block.visible:not(.reverse) .image img {
    clip-path: inset(0 0 0 0);
}

/* Reverse */
.block.reverse .image img {
    clip-path: inset(0 0 0 100%);
    transition: clip-path 1.2s ease-out;
}

.block.reverse.visible .image img {
    clip-path: inset(0 0 0 0);
}

/*********************
 * RESPONSIVE
 *********************/
@media (max-width: 900px) {

    /* Empile les blocs */
    .block-content {
        flex-direction: column !important;
    }

    /* IMPORTANT : annule l'effet reverse */
    .block.reverse .block-content {
        flex-direction: column !important;
    }

    /* Texte plus compact */
    .block .text {
        padding: 40px 20px;
    }

    /* Image en haut, texte en bas */
    .block .image {
        order: 1;
    }

    .block .text {
        order: 2;
    }
}

/*********************
* 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,
.bg-pictos {
    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__blanc);
    border-color: var(--color__blanc);
    text-decoration: none;
    color: var(--color__noir) !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: "Napoléon";
    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__2) !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 ********************
*********************/

#logo-footer-napoleon {
    height: 150px;
    width: auto;
}

#logo-footer-sandora {
    height: 80px;
    width: auto;
}

.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;
    font-family: "Napoléon";
}

.bloc-footer-2 {
    background-color: var(--color__noir);
    font-size: 12px;
    color: var(--color__blanc);
}

.bloc-footer-2 a {
    color: var(--color__blanc) !important;
    font-family: "Napoléon";
}

.icon-footer {
    color: white !important;
    transition: 0.25s;
    padding-right: 1em;
}

.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;
    }

    #logo-footer-napoleon {
        height: 60px;
        width: auto;
    }

    #logo-footer-sandora {
        height: 50px;
        width: auto;
    }

    /* .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: 1.5rem;
        text-transform: uppercase;
    }

    .dropdown-menu {
        padding: 0;
    }

    .btn {
        font-size: 1rem;
    }

    .nav-archive {
        font-size: 1rem;
    }

    .nav-archive a {
        font-size: 1rem;
    }

    ul {
        font-size: 1rem;
    }

    h1.entry-title {
        padding-top: 2.3em;
        margin-bottom: 0.6em;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    p,
    .wp-block-list {
        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;
    }

    .content-archive {
        bottom: 0px;
        font-size: 1rem;
    }

    .wp-elements-0bd052ff7aec1cd509f35c3b31c930ee {
        font-size: 2.5em !important;
    }

    .wp-elements-1415790b5e6349e560c798635131bb29 {
        font-size: 1.2em !important;
    }

    .icon-footer i {
        font-size: 2rem;
    }

    .dropdown-item {
        font-size: 1.2em !important;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;

    }

    .navbar-brand img {
        margin-left: 2em;
    }

    .wp-block-quote p {
        font-family: "Mistral-Singleline";
        text-align: center;
        font-size: 2.5em;
        line-height: 0.9em;
        margin-bottom: 0;
        margin-top: 0.6em;
    }

    .wp-container-core-buttons-is-layout-16018d1d {
        font-size: 1.2em;
        padding-top: 1em
    }

    h1.wp-block-heading {
        margin-top: 0.5em;
    }
}

.wp-block-media-text > .wp-block-media-text__content {
    padding: 0 4%;
}

li::marker {
    color: var(--color__2);
}
