/*********************
* PRINCIPAL ********************
*********************/

body {
    margin: 0 !important;
    font-family: 'Jost', sans-serif;
}

.site {
    overflow: hidden;
}


.excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Nombre de lignes affichées */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


h1,
h2,
h3,
h4,
h5,
b,
s,
a {
    color: var(--color__1);
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 500;
    text-transform: uppercase;
}



h1 {
    font-size: 2.8em;
    color: var(--color__1);
    font-weight: bold;
}

h1.entry-title {
    margin-top: 1em;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.7rem;
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1rem;
}

p {
    font-size: 1.35em;
}

b {
    color: var(--color__1);
}

ul {
    margin-left: 0;
    font-size: 1.2em;
}

a:link,
a:visited,
a:hover,
a:focus,
a:active {
    color: var(--color__2);
    outline: none;
}

/* Bouton */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.4rem;
    border: 2px solid var(--color__2);
    border-radius: 50px;
    background: var(--color__2);
    color: var(--color__blanc) !important;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease-in-out;
}

.btn:hover {
    background: transparent;
    color: var(--color__2) !important;
    text-decoration: none;
}

.btn i {
    transition: transform .3s ease-in-out;
}

.btn:hover i {
    transform: translateX(4px);
    /* la flèche avance au survol */
}

.lireplus {
    color: var(--color__1) !important;
}

.scale {
    transition: 0.25s;
}

.scale:hover {
    transform: scale(0.95);
}


iframe {
    height: 650px;
}

/*********************
* HEADER ********************
*********************/

.site-header {
    /* border: solid 2px red; */
}

/*********************
* NAVIGATION
*********************/

a.home {
    color: var(--color__blanc) !important;
    margin-right: 1rem;
    font-size: 1.6em;
}

.navbar {
    margin: auto;
    z-index: 999;
    padding: 1rem;
    background: var(--color__blanc);
}

/* LOGOS */
.logo-link-mobil {
    display: none;
}

.logo-link-screen {
    height: 70px;
    padding-right: 10px;
}

.logo-link-screen img {
    height: 70px;
    width: auto;
}

@media (max-width: 992px) {
    .logo-link-mobil {
        display: block;
    }

    .logo-link-screen {
        display: none;
    }
}

/*********************
* NAV ITEMS
*********************/

.navbar-nav {
    height: 70px;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    text-transform: uppercase;
    font-size: 1.1em;
    color: var(--color__noir) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--color__link_menu_hover);
    text-decoration: underline var(--color__noir);
    text-underline-offset: 6px;
}

/*********************
* DROPDOWN — STYLE GLOBAL
*********************/

.dropdown-menu {
    background: var(--color__blanc) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;*/
}

.dropdown-item {
    font-size: 1.1em;
    color: var(--color__noir) !important;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background: var(--color__3);
    color: var(--color__noir) !important;
}

/*********************
* DROPDOWN — DESKTOP
*********************/

@media (min-width: 993px) {

    /* Chaque dropdown est la référence */
    .nav-item.dropdown {
        position: relative;
    }

    /* Dropdown centré sous l’item */
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        display: none;
        min-width: 220px;
        max-width: 300px;
        white-space: nowrap;
    }

    /* Ouverture au survol */
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
    }

    /* Empêche le dropdown de rester ouvert après un clic */
    .nav-item.dropdown:not(:hover) > .dropdown-menu {
        display: none !important;
    }
}

/*********************
* DROPDOWN — MOBILE
*********************/

@media (max-width: 992px) {

    /* La navbar doit aller bord à bord */
    .navbar {
        padding-left: 0;
        padding-right: 0;
    }

    /* Fond du menu déroulé */
    .navbar-collapse {
        background: var(--color__1);
        padding: 1rem 0;
        width: 100%;
    }

    /* Menu vertical */
    .navbar-nav {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    /* Dropdown mobile : SOUS l’item, largeur 100% */
    .navbar-nav .dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        white-space: normal !important;
        box-shadow: none !important;
        display: none;
    }

    /* Ouverture mobile via Bootstrap */
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }

    /* Items alignés à gauche */
    .navbar-nav .dropdown-menu .dropdown-item {
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/*********************
* ACCESSOIRES
*********************/

.page-item.active .page-link {
    background-color: var(--color__2);
    border-color: var(--color__2);
}

.page-link:hover {
    color: black;
}

.nav-filter-archive li {
    list-style: none;
    display: inline;
    margin-right: 10px;
}

.nav-news {
    font-size: 1.2em;
}

.pagination {
    margin: 0;
}


/*********************
* SLIDER
*********************/
/* wrapper général */
.box-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* wrappers de slide : <a class="slide-link"> ou <div class="position-relative"> */
.box-slider .slide-link,
.box-slider .position-relative {
    display: block;
    position: relative;
    width: 100%;
    height: 500px;
    /* hauteur par défaut, ajuster si besoin */
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* image de fond (couvre tout le slide) */
.box-slider .img-slider {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 3s ease;
}

/* couche overlay : dégradé blanc, de droite (opaque) vers gauche (transparent) */
.box-slider .overlay-slider {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to left,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.55) 25%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.00) 100%);
}

/* zone texte par-dessus (centrée verticalement) */
.box-slider .tab-slider {
    position: absolute;
    inset: 0;
    display: table;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    /* permet de cliquer sur le lien parent */
}

/* cellule contenant le texte */
.box-slider .cell-slider {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    padding: 0 5%;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    color: #fff;
}

/* typographies */
.box-slider .title-slider {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color__noir);
    font-weight: 800;
    margin-bottom: 0.35em;
}

.box-slider .content-slider {
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--color__noir);
    max-width: 55%;
    margin-left: auto;
    /* pousse le bloc vers la droite */
}

.box-slider .content-slider strong {
    color: white !important;
}

/* slick dots (si vous utilisez slick.js) */
.slick-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.slick-dots li button::before {
    opacity: 1;
    color: #fff;
}

.slick-dots li.slick-active button::before {
    opacity: 1;
    color: var(--color__1);
}

/* supprimer marge supplémentaire de slick */
.slick-dotted.slick-slider {
    margin-bottom: 0;
}

/* bandeau bas */
.bandeau_bottom_slider p {
    background-color: var(--color__1);
    color: var(--color__blanc);
    text-transform: uppercase;
    padding: 0.5em 1em;
    font-size: 2em;
    text-align: center;
    font-weight: 400;
    margin-top: -10px;
}

/* adaptivité */
@media (max-width: 1024px) {

    .box-slider .slide-link,
    .box-slider .position-relative {
        height: 360px;
    }

    .box-slider .title-slider {
        font-size: 3rem;
    }

    .box-slider .content-slider {
        font-size: 1.2rem;
        max-width: 80%;
    }
}

@media (max-width: 768px) {

    .box-slider .slide-link,
    .box-slider .position-relative {
        height: 320px;
    }

    .box-slider .cell-slider {
        text-align: center;
    }

    .box-slider .title-slider {
        font-size: 2rem;
    }

    .box-slider .content-slider {
        font-size: 1rem;
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {

    .box-slider .slide-link,
    .box-slider .position-relative {
        height: 260px;
    }

    .box-slider .title-slider {
        font-size: 1.6rem;
    }

    .box-slider .content-slider {
        display: none;
    }
}

/*********************
 * Metabox Documents et Liens
 ********************/

/* --- WRAPPER GÉNÉRAL (DOCUMENTS UNIQUEMENT) --- */
.sidebar-single {
    background: #fff;
    padding: 0;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    margin-bottom: 17px;
    overflow: hidden;
}

/* --- TITRES DES PANNEAUX --- */
.sidebar-single .panneau-title {
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.7em 1em;
    margin: 0;
}

/*********************
 * Metabox Bloc Champ libre
 ********************/
.panneau-content {
    padding: 1.1em 1em 0 1em;
}

.panneau-content p {
    font-size: 1rem;

}


/* ============================================================
   STYLE DOCUMENTS
   ============================================================ */

.panneau-documents ul {
    list-style: none;
    font-size: 1rem;
    padding: 1.1em 1em 0 1em;
    margin: 0;
}

.panneau-documents a.doc-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color .2s ease, transform .25s ease;
    margin-bottom: 1.4em;
}

.panneau-documents a.doc-link:hover {
    color: #000 !important;
    text-decoration-line: underline;
    text-decoration-color: var(--color__4);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.panneau-documents svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
    fill: currentColor;
}

/*********************
 * BOUTONS LIENS MAIRIE
 *********************/

/* Conteneur */
.liens-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Bouton spécifique mairie ville */
.liens-buttons .mairie-button,
.liens-buttons .ville-button {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    color: #000 !important;
    font-weight: 400;
    text-decoration: none !important;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: color 0.3s ease;
}

/* Icône */
.liens-buttons .mairie-button svg,
.liens-buttons .ville-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    z-index: 2;
}

/* Bande animée */
.liens-buttons .mairie-button::before,
.liens-buttons .ville-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color__4);
    transition: transform 0.35s ease;
    z-index: 0;
}

/* Hover */
.liens-buttons .mairie-button:hover::before,
.liens-buttons .ville-button:hover::before {
    transform: translateX(100%);
}

.liens-buttons .mairie-button:hover,
.liens-buttons .ville-button:hover {
    color: #000 !important;
}

/* Texte au-dessus */
.liens-buttons .mairie-button span,
.liens-buttons .ville-button span {
    position: relative;
    z-index: 2;
}

/*********************
* MAIN ********************
*********************/

.site-main {
    /* border: solid 2px blue;
    margin-top: 50px;
    margin-bottom: 50px;  */
}

/*********************
* BOX ********************
*********************/

.box-event,
.box-edito,
.box-news,
.box-magazine {
    margin-bottom: 50px;
}

.div-cc {
    border-radius: 1em;
    background-color: var(--color__2);
}

.div-cc h1,
.div-cc h2,
.div-cc h3,
.div-cc h4,
.div-cc h5,
.div-cc h6 {
    color: #f0e7e8;
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.div-cc p {
    color: #f0e7e8;
    padding-bottom: 15px;
}

.icon-cc {
    font-size: 4em;
    color: #f0e7e8;
}

/*********************
* ACCESSIBILITÉ ********************
*********************/

.img-acces {
    display: inline;
    width: 100px;
    margin-right: 10px;
    float: left;
}

/*********************
* FOOTER ********************
*********************/

.site-footer {
    /* border: solid 2px pink; */
}

.bloc-footer-1 {
    /* border: solid 2px green; */
    background-color: var(--color__2);
    color: white;
}

.bloc-footer-2 {
    text-align: center;
}

.bloc-footer-2.row {
    justify-content: center;
}

.bloc-footer-2 a {
    color: white;
}

.icon-fb,
.icon-insta {
    color: white !important;
    transition: 0.5s;
}

.icon-fb:hover,
.icon-insta:hover {
    color: #7e1f1c !important;
}

.icon-fb i,
.icon-insta i {
    font-size: 5em;
}

/*********************
* HEADER ********************
*********************/

#wp-admin-bar-edit {
    display: none !important;
}


/************************************
*************** LOGOS ***************
************************************/

.logo-link-mobil {
    display: none;
}

.logo-link-screen {
    height: 50px;
    padding: 1rem;
}

.logo-link-screen img {
    height: 100px;
    width: auto;
    margin-right: 2rem;
}

@media (max-width: 992px) {
    .logo-link-mobil {
        display: block;
    }

    .logo-link-screen {
        display: none;
    }
}



/************************************
*********** ACCESSOIRES *************
************************************/

.page-item.active .page-link {
    background-color: var(--color__link_text);
    border-color: var(--color__link_text);
}

.page-link:hover {
    color: var(--color__link_text_hover);
}

.wp-block-file__button {
    background: var(--color__1);
    color: var(--color__blanc);
}

.wp-block-file__button:hover {
    background: var(--color__noir);
    color: var(--color__blanc);
}

/*********************
* ACCUEIL ********************
*********************/

.link-event {
    display: block;
    position: relative;
}

.tab-event {
    display: table;
    width: 100%;
    height: 100%;
    position: absolute;
}

.cell-event {
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}

.title-event {
    font-size: 3rem;
    text-transform: uppercase;
    line-height: 1;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.bg-news {
    background-color: var(--color__1);
}

.div-cc {
    border-radius: 1rem;
    background-color: var(--color__1);
    text-align: center;
}

.div-cc h1,
.div-cc h2,
.div-cc h3,
.div-cc h4,
.div-cc h5,
.div-cc h6 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.div-cc p {
    color: white;
    padding-bottom: 15px;
}

.icon-cc {
    font-size: 4rem;
    color: white;
}

/*********************
* Box picto  ********************
*********************/

.hover-effect:hover i {
    transition: all 0.4s ease-out !important;
    color: var(--color__noir) !important;
    /* Change la couleur de l'icône au survol */
}

.hover-effect:hover h5 {
    transition: all 0.4s ease-out !important;
    color: var(--color__noir) !important;
    /* Change la couleur du texte au survol */
}


/*********************
* CONTACT ********************
*********************/

.map-contact iframe {
    height: 635px;
}

.txt-contact {
    font-size: 1rem;
}

/*********************
* ACCESSIBILITÉ ********************
*********************/

.img-acces {
    display: inline;
    width: 100px;
    margin-right: 10px;
    float: left;
}
/*********************
* BOX-NEWS page accueil actualités ********************
*********************/
/*********************
* NAVIGATION / FILTRES
*********************/
.nav-filter-archive {
    text-align: center;
}

.nav-filter-archive li {
    display: inline;
    margin-right: 10px;
    list-style: none;
}

.pagination {
    margin: 0;
}

/*********************
* BASE ARCHIVES
*********************/
.link-archive,
.link-galerie {
    position: relative;
    display: block;
    overflow: hidden;
}

.img-archive,
.img-galerie {
    width: 100%;
    height: 235px;
    border-radius: 20px;
    background-position: center;
    background-size: cover;
}

.title-archive {
    margin-bottom: 0.5em;
    font-size: 2.5em;
    line-height: 1.1em;
}

.title-archive-mini {
    margin-bottom: 0.3em;
    font-size: 1.6em;
    line-height: 1.1em;
}

.content-archive,
.label-archive {
    font-size: 1.2em;
}

/*********************
* BOUTON "TOUTES LES ACTUALITÉS"
*********************/
.nav-archive a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    width: auto;
    margin-top: 1em;
    padding: .7rem 1.4rem;
    border: 2px solid var(--color__2);
    border-radius: 50px;
    background: var(--color__2);
    color: var(--color__blanc) !important;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease-in-out;
}

.nav-archive a:hover {
    border-color: var(--color__2);
    background: transparent;
    color: var(--color__2) !important;
    text-decoration: none;
}

.nav-archive a i {
    transition: transform .3s ease-in-out;
}

.nav-archive a:hover i {
    transform: translateX(4px);
    /* la flèche avance au survol */
}

/*********************
* BLOC À LA UNE / Actualités / news
*********************/

/* Reset de l'ancien style */
.box-news .link-archive {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    text-decoration: none;
}

.box-news .link-archive .img-archive {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    background: none !important;
}

.box-news .link-archive .img-archive img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grande actu : zoom de l'image + titre souligné au survol */
.box-news .link-archive-big .img-archive img {
    transition: transform .4s ease;
}

.box-news .link-archive-big:hover .img-archive img {
    transform: scale(1.1);
}

.box-news .link-archive-big .title-archive {
    text-decoration: underline;
    text-decoration-color: transparent;
    /* invisible au repos */
    text-underline-offset: .15em;
    text-decoration-thickness: 2px;
    transition: text-decoration-color .3s ease;
}

.box-news .link-archive-big:hover .title-archive {
  /*   text-decoration-color: currentColor;
    souligné au survol */
}

/* fin hover grande actu */

/* Hover petites actus */
.box-news .link-archive-small .img-archive img {
    transition: transform .4s ease;
}

.box-news .link-archive-small:hover .img-archive img {
    transform: scale(1.1);
}

.box-news .link-archive-small .title-archive,
.box-news .link-archive-small .title-archive-mini {
    text-decoration: underline;
    text-decoration-color: transparent;
    /* invisible au repos */
    text-underline-offset: .15em;
    text-decoration-thickness: 2px;
    transition: text-decoration-color .3s ease;
}

.box-news .link-archive-small:hover .title-archive,
.box-news .link-archive-small:hover .title-archive-mini {
    /* text-decoration-color: currentColor;
    souligné au survol */
}

/* fin hover */

/* Trait sous "Lire plus" : s'allonge au survol de la carte */
.box-news .text-archive hr {
    width: 60px;
    margin: 1rem 0 0;
    transition: width .3s ease;
}

.box-news .link-archive:hover .text-archive hr {
    width: 100%;
}

/* Catégorie (tag) : le fond colore uniquement le mot + padding */
.box-news .tag,
.tag {
    display: inline-block;
    flex: 0 0 auto;
    /* ne s'étire pas dans un parent flex */
    align-self: flex-start;
    /* idem dans un parent flex en colonne */
    width: fit-content;
    max-width: 100%;
    margin-bottom: .75rem;
    padding: .2rem .5rem;
    border-radius: 5px;
    background: var(--color__1);
    color: var(--color__blanc);
    font-size: 0.8em;
    line-height: 1.4;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

/* Grande actu : image à gauche, texte à droite (desktop) */
.box-news .link-archive-big {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.box-news .link-archive-big .img-archive {
    aspect-ratio: 16 / 9;
}

@media (min-width: 992px) {
    .box-news .link-archive-big {
        grid-template-columns: 60% 1fr;
        gap: 2rem;
    }

    .box-news .link-archive-big .img-archive {
        aspect-ratio: auto;
        height: 100% !important;
        min-height: 350px !important;
        /* hauteur minimale de l'image */
    }

    .box-news .link-archive-big .img-archive img {
        position: absolute;
        inset: 0;
    }
}

/* Petites actus */
.box-news .link-archive-small .img-archive {
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem !important;
}

/* Content news / Content actualité */

.post-thumbnail img {
    border-radius: 20px;
}

.title-news {
    font-weight: 400 !important;
    margin-top: 1em;
}

/* Bouton */
.btn-archive-news {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 0.5em;
    padding: .7rem 1.4rem;
    border: 2px solid var(--color__2);
    border-radius: 50px;
    background: var(--color__2);
    color: var(--color__blanc) !important;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease-in-out;
}

.btn-archive-news:hover {
    background: transparent;
    color: var(--color__2) !important;
    text-decoration: none;
}

.btn-archive-news i {
    transition: transform .3s ease-in-out;
}

.btn-archive-news:hover i {
    transform: translateX(4px);
    /* la flèche avance au survol */
}

/* Flèche "Lire plus" : avance au survol de la carte */
.box-news .lireplus i {
    display: inline-block; /* nécessaire pour que transform fonctionne */
    transition: transform .3s ease-in-out;
}

.box-news .link-archive:hover .lireplus i {
    transform: translateX(4px);
}

/********************
* BOX MAGAZINE Bouton magazine 
*********************/
/* Bloc titre + bouton */
.box-magazine {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin: 2rem 0;
    /* padding: 1.5rem 2rem;*/
    border-radius: 20px;
    /*  background: grey; */
}

/* Bouton */
.btn-magazine {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1em;
    padding: .7rem 1.4rem;
    border: 2px solid var(--color__2);
    border-radius: 50px;
    background: var(--color__2);
    color: var(--color__blanc) !important;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease-in-out;
}

.btn-magazine:hover {
    background: transparent;
    color: var(--color__2) !important;
    text-decoration: none;
}

.btn-magazine i {
    transition: transform .3s ease-in-out;
}

.btn-magazine:hover i {
    transform: translateX(4px);
    /* la flèche avance au survol */
}

/*********************
* AGENDA
*********************/
.bg-agenda {
    background-color: azure;
}

.tag-agenda {
    display: inline-block;
    flex: 0 0 auto;
    /* ne s'étire pas dans un parent flex */
    align-self: flex-start;
    /* idem dans un parent flex en colonne */
    width: fit-content;
    max-width: 100%;
    margin-bottom: .75rem;
    padding: .2rem .0rem .2rem .5rem;
    border-radius: 5px;
    background: var(--color__1);
    color: var(--color__blanc);
    font-size: 0.8em;
    line-height: 1.4;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

/* ===== Carte (lien global) ===== */
.box-agenda .link-archive {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ===== Image ===== */
.box-agenda .img-archive {
    overflow: hidden;
    margin-bottom: 1rem;
}

.box-agenda .img-archive img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s ease;
}

/* ===== Catégories ===== */
.box-agenda .category-archive {
    display: inline-block;
    margin-right: .5rem;
    font-size: .8rem;
    text-transform: uppercase;
}

/* ===== Titre ===== */
.box-agenda .title-agenda {
    /* margin: .5rem 0;*/
    font-size: 1.5rem;
    /* text-decoration: underline;
    text-decoration-color: transparent;  
    text-underline-offset: 4px;
    transition: text-decoration-color .3s ease, color .3s ease; */
}

/* ===== Extrait et "Lire plus" ===== */
.box-agenda .content-agenda {
    margin-bottom: .5rem;
}

.box-agenda .lireplus {
    /* text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color .3s ease; */
}

/* ===== Trait ===== */
.box-agenda .text-archive hr {
    width: 60px;
    margin: 1rem 0 0;
    transition: width .3s ease;
}

/* ===== HOVER : tout se déclenche depuis la carte ===== */
.box-agenda .link-archive:hover .img-archive img {
    transform: scale(1.05);
}

.box-agenda .link-archive:hover .title-agenda,
.box-agenda .link-archive:hover .lireplus {
    text-decoration-color: currentColor;
    /* le souligné apparaît */
}

.box-agenda .link-archive:hover .text-archive hr {
    width: 100%;
}

/* ===== Bouton ===== */
.box-agenda .nav-archive {
    /* margin-top: 1rem;*/
    margin-bottom: 2.5em;
}

/* ===== Flèche "Lire plus" : avance au survol de la carte ===== */
.box-agenda .lireplus i {
    display: inline-block; /* nécessaire pour que transform fonctionne */
    transition: transform .3s ease-in-out;
}

.box-agenda .link-archive:hover .lireplus i {
    transform: translateX(4px);
}

/*** Content agenda ***/
.title-content-agenda {
    font-weight: 400 !important;
    margin-top: 1em;
}

/*********************
* MAGAZINE
*********************/

.bg-magazine {
    background-color: beige;
}

.bg-magazine {
    background-color: beige;
}

/* Vignette d'archive : couverture entière, ratio A4 */
.magazine-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 210 / 297;
    /* A4 portrait */
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.magazine-thumb img,
.magazine-thumb canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* image entière, jamais rognée */
    object-position: center;
}

/* Bloc "numéro du mois" : couverture entière, sans rognage */
.magazine-du-mois .magazine-cover canvas {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}


.magazine-du-mois {
    background: #e9eef5;
    /* à adapter à votre charte */
    padding: 2rem 1rem;
    margin-left: 0;
    margin-right: 0;
    align-items: center;
}

.magazine-du-mois-title {
    margin-bottom: 1.5rem;
}

.magazine-du-mois .magazine-cover img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}


/*********************
* FOOTER ********************
*********************/

.site-footer {
    /* border: solid 2px pink; */
}

.bloc-footer-map {
    height: 400px;
    position: relative;
}

.bloc-footer-map iframe {
    width: 100%;
    height: 400px;
}

.site-footer {
    /* border: solid 2px pink; */
}

.bloc-footer-1 {
    /* border: solid 2px green; */
    background-color: var(--color__1);
    color: white;
}

.bloc-footer-2 {
    font-size: 14px;
    background-color: var(--color__1);
    color: white !important;
    text-align: center !important;
}

.bloc-footer-2 a {
    color: white;
}

.bloc-footer-2 a:hover {
    text-decoration: underline;
}

.custom-logo {
    max-height: 150px;
    width: auto;
    display: block;
    margin: 0 auto;
}


.icon-footer {
    color: white !important;
    transition: 0.25s;
}

.icon-footer:hover {
    color: var(--color__4) !important;
}

.icon-footer i {
    font-size: 3rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}


.icon-fb,
.icon-insta {
    color: white !important;
    transition: 0.5s;
}

.icon-fb:hover,
.icon-insta:hover {
    color: var(--color__3) !important;
}

.icon-fb i,
.icon-insta i {
    font-size: 5em;
}


/*********************
* RESPONSIVE ********************
*********************/

@media (max-width: 575px) {

    .box-news,
    .box-magazine {
        width: auto;
        margin: auto;
    }
}

@media (min-width: 576px) and (max-width: 767px) {

    .box-news,
    .box-magazine {
        width: 540px;
        margin: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .box-news,
    .box-magazine {
        width: 720px;
        margin: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {

    .box-news,
    .box-magazine {
        width: 960px;
        margin: auto;
    }
}

@media (min-width: 1200px) {

    .box-news,
    .box-magazine {
        width: 1140px;
        margin: auto;
    }
}

@media (max-width: 991px) {
    .navbar {
        margin: auto;
        height: 100px;
    }

    /* .navbar-collapse{
        padding-top: 1rem;
        padding-bottom: 1rem;
        transition: 0.25s;
    } */

    .navbar-nav {
        display: inline;
    }

    .navbar-nav li {
        vertical-align: auto;
        display: inline;
    }

    .navbar-toggler {
        margin-right: 0.5rem;
    }

    .logo-link-mobil {
        display: block;
        height: calc(100px - 1rem);
        margin-left: 0.5rem;
    }

    .logo-link-mobil img {
        height: calc(100px - 1rem);
        width: auto;
    }

    .logo-link-screen {
        display: none !important;
    }

    .nav-link,
    .dropdown-item {
        font-size: 1rem;
    }

    .dropdown-menu {
        padding: 0;
    }

    .btn {
        font-size: 1rem;
    }

    .nav-archive {
        font-size: 1rem;
    }

    .nav-archive a {
        font-size: 1rem;
    }

    ul {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .title-event {
        font-size: 2rem;
    }

    .title-archive {
        top: 0px;
        font-size: 1.5rem;
    }

    .content-archive {
        bottom: 0px;
        font-size: 1rem;
    }
}
