/* -----------------------------------------------------
   HIDDING OLD STUFF
----------------------------------------------------- */
body.page-id-14049 {
    max-width: 100vw;
    overflow-x: hidden;
}

.page-id-14049 .entry-header {
    display:none !important;
}

.page-id-14049 #primary {
    padding-top: 0 !important;
}

.page-id-14049 #rmp_menu_trigger-10089 {
    display:none;
}

body.et-db p {
    font-size:inherit;
    font-family:'Montserrat',Helvetica,Arial,Lucida,sans-serif;
}

.et-db #et-boc .et-l a:hover {
    opacity:1 !important;
}

/* -----------------------------------------------------
   GENERAL DIVI STYLING
----------------------------------------------------- */
.et_builder_outer_content > header {
    z-index:99;
    position:relative;
}

#topbar-1867 > .et_pb_row {
    width:100% !important;
}

#topbar-1867 > .et_pb_row .et_pb_menu .et_pb_menu__wrap {
    justify-content:flex-end !important;
}

/* -----------------------------------------------------
   SECTION MENU - Fond et style général
----------------------------------------------------- */
#menu-1867 {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 0 !important;
    overflow: visible !important;
}

/* -----------------------------------------------------
   ROW EN FLEX (remplace le comportement Divi en table)
----------------------------------------------------- */
#menu-1867 .et_pb_row_0_tb_header {
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 40px !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
}

/* -----------------------------------------------------
   COLONNES
----------------------------------------------------- */

/* Supprimer le margin-right des colonnes Divi */
#menu-1867 .et_pb_column {
    margin-right: 0 !important;
}

/* Colonnes gauche et droite = 100% de l'espace restant */
#menu-1867 .main-menu-container,
#menu-1867 .secondary-menu-container {
    flex: 1 1 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 !important;
}

/* Modules menu = 100% de la colonne */
#menu-1867 .main-menu-container .et_pb_menu,
#menu-1867 .secondary-menu-container .et_pb_menu,
#menu-1867 .main-menu-container .et_pb_menu_inner_container,
#menu-1867 .secondary-menu-container .et_pb_menu_inner_container,
#menu-1867 .main-menu-container .et_pb_menu__wrap,
#menu-1867 .secondary-menu-container .et_pb_menu__wrap {
    width: 100% !important;
}

/* Colonne gauche = menu aligné à droite */
#menu-1867 .main-menu-container {
    justify-content: flex-end;
}

/* Colonne droite = menu aligné à gauche */
#menu-1867 .secondary-menu-container {
    justify-content: flex-start;
}

/* Colonne logo = largeur fixe, dépasse de 20px en bas */
#menu-1867 .logo-container {
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

#menu-1867 .logo-container .et_pb_image {
    transform: translateY(20px);
}

/* Logo dans un carré rouge avec coins arrondis */
#menu-1867 .logo-container .et_pb_image_wrap {
    background-color: #c41e1e;
    border-radius: 12px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menu-1867 .logo-container img {
    max-width: 180px !important;
    height: auto !important;
}


/* -----------------------------------------------------
   MENUS
----------------------------------------------------- */

/* UL horizontal sans wrap */
.et-db #et-boc .et-l #menu-1867 .et_pb_menu__menu nav > ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content:space-between;
    align-items:center;
}

/* Forcer les liens sur 2 lignes */
#menu-1867 .et_pb_menu__menu nav > ul > li {
    text-align: left;
}

#menu-1867 .et_pb_menu__menu nav > ul > li > a {
    white-space: normal;
    display: block;
    line-height: 1.3;
    font-size:16px !important;
}

/* Désactiver les floats Divi */
#menu-1867 .et_pb_menu__menu {
    float: none !important;
    text-align: initial !important;
}

#menu-1867 .main-menu-container .et_pb_menu .et_pb_menu__wrap {
    justify-content:flex-end !important;
    margin-right:40px;
}

#menu-1867 .main-menu-container .et_pb_menu__menu nav > ul {
    justify-content:flex-end !important;
}

#menu-1867 .secondary-menu-container .et_pb_menu .et_pb_menu__wrap {
    justify-content:flex-start !important;
    margin-left:40px;
}

/* Style des liens de menu */
#menu-1867 .et_pb_menu__menu nav > ul > li > a {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    transition: opacity 0.3s ease;
}

#menu-1867 .et_pb_menu__menu nav > ul > li > a:hover {
    opacity: 0.7;
}

/* Retirer les bordures et backgrounds par défaut de Divi */
#menu-1867 .et_pb_menu,
#menu-1867 .et_pb_menu_inner_container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* -----------------------------------------------------
   FIXED HEADER & SCROLL ANIMATIONS
----------------------------------------------------- */

/* Topbar fixé en haut */
#topbar-1867 {
    transition: all 0.5s ease !important;
}

/* Menu fixé sous la topbar */
#menu-1867 {
    transition: all 0.5s ease !important;
}

/* Scroll vers le bas = tout disparaît vers le haut */
.scrolling-down #topbar-1867 {
    transform: translateY(-100%);
}

.scrolling-down #menu-1867 {
    transform: translateY(-200%);
}

/* Scroll vers le haut = seulement menu revient en top 0 */
.scrolling-up #topbar-1867 {
    transform: translateY(-100%);
}

.scrolling-up #menu-1867 {
    top: 0 !important;
    transform: translateY(0);
}

#menu-1867-mobile .et_pb_code {
    transform:translateY(50%);
}
/*
#menu-1867-mobile #menu-1867-mobile-toggler {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:25px;
    height:25px;
    background:blue !important;
    position:relative;
    cursor:pointer;
}

#menu-1867-mobile #menu-1867-mobile-toggler span {
    width:100%;
    height:2px;
    background:white !important;
    position:absolute;
}

#menu-1867-mobile #menu-1867-mobile-toggler span {
    transition: all 0.3s ease;
    transform-origin: top left;
}

#menu-1867-mobile #menu-1867-mobile-toggler span:nth-child(1){
    top:0;
}

#menu-1867-mobile #menu-1867-mobile-toggler span:nth-child(2){
    top:50%;
}

#menu-1867-mobile #menu-1867-mobile-toggler span:nth-child(3){
    top:100%;
}

#menu-1867-mobile #menu-1867-mobile-toggler.active span:nth-child(1){
    transform:rotate(45deg);
    width:35px;
}

#menu-1867-mobile #menu-1867-mobile-toggler.active span:nth-child(2){
    display:none;
}

#menu-1867-mobile #menu-1867-mobile-toggler.active span:nth-child(3){
    transform:rotate(-45deg);
    width:35px;
}*/

/* Container du burger */
#menu-1867-mobile-toggler {
    position: relative;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

/* Les 3 barres */
#menu-1867-mobile-toggler span {
    position: absolute;
    left: 0;
    width: 100%;         /* prend les 25px */
    height: 2px;         /* épaisseur des barres */
    background: #fff !important;
    transition: all 0.3s ease !important;
}

/* Position des barres */
#menu-1867-mobile-toggler span:nth-child(1) {
    top: 0;
}

#menu-1867-mobile-toggler span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

#menu-1867-mobile-toggler span:nth-child(3) {
    top: calc(100% - 2px);
}

/* ---------------------------------------------------
   ÉTAT ACTIVE → transformation en croix
----------------------------------------------------- */
#menu-1867-mobile-toggler.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menu-1867-mobile-toggler.active span:nth-child(2) {
    opacity: 0;
}

#menu-1867-mobile-toggler.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ---------------------------------------------------
   MENU 1867 MOBILE BAR
----------------------------------------------------- */
#menu-1867-mobile-bar {
    opacity:0;
    transform:translateY(-100%);
    transition: all 0.5s ease !important;
    pointer-events: none;
}
#menu-1867-mobile-bar.active {
    opacity:1;
    transform:translateY(0);
    pointer-events: all;
}

#menu-1867-mobile-bar .et_mobile_nav_menu {
    width:100%;
    margin: 0 !important;
} 

#menu-1867-mobile-bar .et_mobile_nav_menu .mobile_nav {
    width:100%;
    background-color:transparent !important;
    margin: 0 !important;
} 

#menu-1867-mobile-bar .et_mobile_nav_menu .mobile_nav .et_mobile_menu {
    display:block !important;
    position:relative !important;
}

#menu-1867-mobile-bar .et_mobile_nav_menu .mobile_nav .mobile_menu_bar {
    display:none !important;
}

@media (max-width:1400px){

    #menu-1867 .et_pb_menu__menu nav > ul > li > a {
        font-size:14px !important;
    }

}

/* ---------------------------------------------------
   BLOG
----------------------------------------------------- */
/* ARTICLE : on réserve une colonne à gauche pour l'image */
.et-db #et-boc #planchers-1867-blog .et_pb_post {
    position: relative;
    padding-left: calc(40% + 20px);           /* colonne image = 40% */
    margin-bottom: 40px;
    box-sizing: border-box;
    min-height:200px;
    display:flex;
    flex-direction:column;
    gap:0;
}

/* IMAGE : colonne gauche en position absolue */
.et-db #et-boc #planchers-1867-blog .et_pb_post .entry-featured-image-url {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;                /* prend toute la hauteur de l'article */
    display: block;
    overflow: hidden;
    padding:0;
}

.et-db #et-boc #planchers-1867-blog .et_pb_post .entry-featured-image-url img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* recadre propre dans la colonne */
    display: block;
}

/* Le contenu occupe toute la hauteur restante */
.et-db #et-boc #planchers-1867-blog .et_pb_post .post-content {
    flex-grow: 1;
}
/* COLONNE TEXTE (titre, meta, contenu) : layout vertical normal */
.et-db #et-boc #planchers-1867-blog .et_pb_post h2.entry-title {
    margin-bottom:0;
    font-size:25px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.et-db #et-boc #planchers-1867-blog .et_pb_post h2.entry-title a {
    padding-bottom:0;
}

.et-db #et-boc #planchers-1867-blog .et_pb_post .post-meta {
    margin: 0 0 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.et-db #et-boc #planchers-1867-blog .et_pb_post .post-content {
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.et-db #et-boc #planchers-1867-blog .et_pb_post .post-content .more-link {
    margin-top:auto;
}

/* Optionnel : retirer la marge du <p> interne */
.et-db #et-boc #planchers-1867-blog .et_pb_post .post-content-inner p {
    margin: 0;
}

/* RESPONSIVE : sur mobile, on repasse en layout classique */
@media (max-width: 768px) {
    .et-db #et-boc #planchers-1867-blog .et_pb_post {
        padding-left: 0;
    }

    .et-db #et-boc #planchers-1867-blog .et_pb_post .entry-featured-image-url {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }

    .et-db #et-boc #planchers-1867-blog .et_pb_post .entry-featured-image-url img {
        height: auto;
        object-fit: contain;
    }
}


/* ---------------------------------------------------
   FOOTER
----------------------------------------------------- */

/* --- Menu vertical dans le footer --- */
#footer-menu .et_pb_menu__menu {
  display: block !important; /* Force le layout vertical */
}

#footer-menu .et_pb_menu__menu > nav > ul {
  display: block !important; 
}

.et-db #et-boc #footer-menu .et_pb_menu__menu > nav > ul > li {
  display: block !important;
  margin-bottom: 18px; /* espace entre les items */
  padding-left:0;
}

#footer-menu .et_pb_menu__menu > nav > ul > li:last-child {
  margin-bottom: 0;
}


/* --- Désactiver complètement le menu burger --- */
#footer-menu .et_mobile_nav_menu {
  display: none !important;
}

#footer-menu .mobile_menu_bar {
  display: none !important;
}

/* Toujours afficher le menu desktop, même sur mobile */
#footer-menu .et_pb_menu__menu {
  display: block !important;
}
#footer-menu .et_pb_menu__wrap {
  display: block !important;
}

body.et-db #et-boc footer .gform_wrapper {
    font-family:'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    color:white;
    font-weight:500;
    font-size:14px;
    font-style:normal;
}

body.et-db #et-boc footer .gform_title {
    text-transform:uppercase !important;
    font-weight:500 !important;
    font-size:14px !important;
    font-style:normal !important;
    font-family:'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
    color:white !important;
}

body.et-db #et-boc footer.et-l .et_pb_module .ginput_container input[type="email"] {
    background:transparent;
    border:none;
    border-bottom:1px solid white !important;
    font-family:'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    font-weight:500;
    font-size:14px;
    outline:none;
    box-shadow:none;
    color:white;
    width: calc(100% - 100px);
}

body.et-db #et-boc footer .gform-footer {
    width: auto;
    position: absolute;
    bottom: 0;
    padding: 0;
    margin: 0;
    right: -40px;
}

body.et-db #et-boc footer .gform-footer input[type="submit"] {
    text-transform:uppercase;
    letter-spacing:1px;
    border-radius:3px !important;
    padding:10px 20px !important;
}

body.et-db #et-boc footer .gform-footer input[type="submit"]:hover {
    background-color:#890813;
}