/* HEADER LOGO - MENU - DRAPEAUX */

@media (min-width: 992px) {
    /* Force l'ensemble du <header> et de .container-header sur une seule ligne */
    header.header,
    header.header .container-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    header.header {
        padding: 0.75rem 2.5rem !important;
    }

    header.header .container-header {
        padding: 0 !important;
    }

    /* Masque l'emplacement natif du logo s'il est vide (puisque vous utilisez below-top) */
    header.header .grid-child:has(.navbar-brand):empty,
    header.header .navbar-brand:empty {
        display: none !important;
    }

    /* 1. Bloc Logo + textes (en position below-top) à gauche */
    header.header .container-below-top {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* 2. Conteneur Menu + Drapeaux qui prend tout le reste de la ligne */
    header.header .container-nav {
        flex: 1 1 auto !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 0 0 2rem !important;
    }

    /* 3. Menu centré au milieu */
    header.header .container-nav nav {
        margin: 0 auto !important;
    }

    header.header .mod-menu {
        gap: 2rem;
    }

    header.header .mod-menu > li > a {
        text-transform: uppercase;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        color: #ffffff !important;
        padding-bottom: 6px;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s ease;
    }

    header.header .mod-menu > li.active > a,
    header.header .mod-menu > li > a:hover {
        border-bottom: 2px solid #ffffff !important;
    }

    /* 4. Drapeaux de langue (en position search) tout à droite */
    header.header .container-search {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
    }

    header.header .mod-languages ul.lang-inline {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        margin: 0;
        padding: 0;
    }

    /* Petit bonus : retire le fond blanc autour du drapeau français actif comme sur l'ancien site */
    header.header .mod-languages ul.lang-inline li.lang-active {
        background: transparent !important;
        padding: 0 !important;
    }
}

/* FOOTER*/
.footer {
    color: #fff;
    background-color: rgb(71 69 70) !important;
    background-image: none !important;
    margin-top: 0em;
    margin-bottom: -1em;
}

/* BANNER BAS DU SITE */
.container-banner {
    margin: 0 0 -1rem !important;
    display: block;
}

/* GALERIE PRESSE */

/*VIGNETTES SIMPLE IMAGE GALLERY*/

ul.sigFreeClassic li.sigFreeThumb {
    float: left;
    background: #fff!important;
    margin: 0 12px 12px 0 !important;
    padding: 0;
    list-style: none!important;
}

/* CARTE INTERACTIVE */
/* textes*/
.webui-popover .webui-popover-content {
    padding: 9px 14px;
    overflow: auto;
    display: block;
    color: #373737;
}

/*Titres*/
.webui-popover-title {
    padding: 8px 14px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    background-color: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    border-radius: 5px 5px 0 0;
  color : #000 !important;
}

/*EVENT GALLERY*/

#events .item .eg-content .data {
    background-color: rgba(0, 0, 0, 0.8);
    bottom: 0;
    color: #DDD;
    opacity: .95;
    position: absolute;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
    width: 100%;
    z-index: 222;
  font-size: 14px;
}

/*PAGINATION EVENT GALLERY */

.pull-right {
    float: right;
    margin-top: -30px !important;
}

select:not([class*=uk-]), textarea:not([class*=uk-]) {
    max-width: 100%;
    width: 100%;
    border: 0 none;
    padding: 0 10px;
    background: rgba(78,83,107,.04);
    color: #dbdbdb;
    transition: .2s ease-in-out;
    transition-property: color,background-color,border-color,box-shadow;
    border-radius: 4px;
}

/*BOUTON RETOUR GALERIES*/
a.eventgallery-back-button {
    color: #ffffff;
    font-weight: bold;
    letter-spacing: .5em;
    background-color: transparent !important;
    line-height: 2;
    padding: 10px 10px 10px 0;
  text-decoration : none;
}

/* THUMBNAILS EVENTS GALERIE*/

#events .item-container {
    float: left;
   /* width: 25% !important;*/
    padding: 5px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  margin-top: 25px !important;
}

/*FORMULAIRE DE CONNEXION*/

.form-horizontal .control-label {
    float: left;
    width: 160px;
    padding-top: 5px;
    text-align: right;
    color: #373737;
}

.form-check {
    color: #373737;
}

.com-users-profile.profile {
    color: #373737;
}

/*TEXTES*/

/* 1. Importation de la police Cousine depuis Google Fonts */
@import url('https://googleapis.com');

/* 2. Application globale via les variables natives de Cassiopeia */
:root {
  --cassiopeia-font-family-body: 'Cousine', monospace;
  --cassiopeia-font-family-headings: 'Cousine', monospace;
  --bs-body-font-family: 'Cousine', monospace;
}

/* 3. Sécurité supplémentaire pour forcer la police sur tous les éléments */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, input, textarea, button, select {
  font-family: 'Cousine', monospace;
}
