/*
 Theme Name:   CoverOne theme
 Theme URI:    http://www.shake.be
 Description:  Specially for you
 Author:       Geoffroi Vertongen
 Author URI:   http://www.shake.be
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  CoverOne
*/
html, body {
    overflow-x: hidden; /* Empêche le scroll horizontal parasite */
}
body, .main-header {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
    line-height: 1.35em;
    color: #052732;
}
main#content {
    background-color: #F6F2F1 !important;
    padding-bottom: 2em;
}

:root {
    --header-max-width: 1280px;
    --content-max-width: 1140px;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Le header reste large */
    max-width: var(--header-max-width); 
    margin: 0 auto;
    width: 100%;
    padding: 0 ; 
}
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 2em;
    background: linear-gradient(to bottom, rgb(5, 39, 50) 0%, rgba(5, 39, 50, 0.66) 50%, rgba(5, 39, 50, 0) 100%);
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    box-sizing: border-box;
}
header.main-header.header-dark-mode {
    background: linear-gradient(to bottom, rgb(246, 242, 241) 0%, rgba(246, 242, 241, 0.66) 50%, rgba(246, 242, 241, 0) 100%);
}
header.main-header.header-up {
    transform: translateY(-100%);
}
header.main-header.header-down {
    transform: translateY(0);
}
header.main-header.header-dark-mode {
    background: linear-gradient(to bottom, rgb(246,242,241) 0%,rgba(246,242,241,0.66) 50%,rgba(246,242,241,0) 100%);
}
/* Ajustement pour l'admin bar de WordPress */
.admin-bar header.main-header {
    top: 32px;
}

/* Sur mobile, l'admin bar change de hauteur (46px) */
@media screen and (max-width: 782px) {
    .admin-bar header.main-header {
        top: 46px;
    }
}

/* Correction pour l'animation : on ajuste le translateY pour qu'il remonte plus haut */
/* (On remonte de 100% + la hauteur de l'admin bar pour être sûr qu'il disparaisse totalement) */
.admin-bar header.main-header.header-up {
    transform: translateY(calc(-100% - 46px)); 
}

/* --- Navigation & Services --- */
.header-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Members Access (Tout en haut à droite) */
.members-access-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 1em;
}
.members-access-wrapper ul.language-switcher {
    margin-right: 0;
}
.members-access-wrapper ul li a {
    color: #fff !important;
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}
.header-dark-mode .members-access-wrapper ul li a {
    color: #052732 !important;
}
.members-access-wrapper {
  display: flex;
}
/* --- Conteneur du Menu et de la Ligne --- */
.nav-container {
    position: relative;
    padding-top: 15px; /* Espace pour la barre blanche */
}

.nav-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

#nav-indicator {
    position: absolute;
    top: -1px; /* Pour être exactement sur la ligne */
    height: 3px;
    background: #fff;
    transition: all 0.4s ease-in-out;
    z-index: 2;
}

.nav-flex-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Menu Principal WordPress */
#main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    gap: 25px;
}

#main-menu li a {
    color: #fff !important;
    text-decoration: none;
    font-size: 0.875em;
    line-height:1.25em;
    white-space: nowrap;
}

/* Sélecteur de langue Polylang */
.language-switcher {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.language-switcher li a {
    color: #fff !important;
    text-decoration: none;
    font-size: 0.875em;
    line-height:1.25em;
    font-weight: 600;
    text-transform: uppercase;
}

.language-switcher li.current-lang {
    border-bottom: none; 
}
.main-header {
    color: #F6F2F1; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header svg path { 
    fill: #F6F2F1; 
    transition: fill 0.5s ease; 
}

.nav-line { 
    background: rgba(246, 242, 241, 0.3); 
    transition: background 0.5s ease; 
}

#nav-indicator { 
    background: #F6F2F1; 
}

#main-menu a { 
    color: #F6F2F1 !important; 
}
/* Positionnement du parent */
#main-menu .menu-item-has-children {
    position: relative;
}

/* Positionnement du sous-menu */
#main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%; /* Se place exactement sous le texte du parent */
    left: 0;
    min-width: 200px;
    background-color: #052732;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1); /* Optionnel : ombre pour la lisibilité */
    z-index: 999;
}

/* Affichage au survol */
#main-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}
/* Style de la flèche */
#main-menu .menu-item-has-children > a::after {
    content: "\f107"; /* Code Unicode FontAwesome pour chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Animation de la flèche au survol */
#main-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg); /* La flèche pointe vers le haut quand c'est ouvert */
}
/* Supprimer les puces et styliser les liens du sous-menu */
#main-menu .sub-menu li {
    display: block;
    width: 100%;
}

#main-menu .sub-menu li a {
    color: #fff !important;
    padding: 8px 20px;
    display: block;
    font-size: 14px;
    text-decoration: none;
}

/* ÉTAT INVERSÉ : Sur fond crème (#F6F2F1) */
.main-header.header-dark-mode {
    color: #052732; 
}
.main-header.header-dark-mode svg path { 
    fill: #052732 !important; 
}
.main-header.header-dark-mode .nav-line { 
    background: rgba(5, 39, 50, 0.2); 
}
.main-header.header-dark-mode #nav-indicator { 
    background: #052732; 
}
.main-header.header-dark-mode #main-menu a { 
    color: #052732 !important; 
}

/*FONTS STYLES*/
#coverone-title {
    text-align: center;
    padding-top: 20%;
}
h1 {
    text-align: center;
    font-size: 3.625em !important;
    line-height: 1.2em !important;
    color: #F6F2F1 !important;
    font-family: "magister", sans-serif !important;
    font-weight: 400 !important;
    display: inline-block;
    max-width: 800px;
    margin: 0 !important;
    letter-spacing: -1px;
}
h2 {
    text-align: center;
    font-size: 2.625em !important;
    line-height: 1.2em !important;
    color: #052732 !important;
    font-family: "magister", sans-serif !important;
    font-weight: 400 !important;
    margin: 0 !important;
    letter-spacing: -1px;
}
#coverone-title h2 {
    text-align: center;
    padding-top: 3em;
    font-size: 1.5em !important;
    line-height: 1.15em !important;
    font-family : Montserrat, Helvetica, Arial, "sans-serif" !important;
    font-weight: 500 !important;
    color: #F6F2F1 !important;
}
a .elementor-button-text {
    font-family: 'Montserrat', sans-serif !important; 
}
a.elementor-button {
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 600 !important;
    line-height: 1.5em;
    padding: 1.75em 4em !important;
    border-radius: 3em;
    background-color: #F6F2F1 !important;
    color: #052732 !important;
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -ms-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    transition: all 300ms ease-out;  
    margin: 2em auto;
}
a.elementor-button:hover {
    background-color: #052732 !important;
    color:#F6F2F1 !important;
}
.invert-button a.elementor-button {
    background-color: #052732 !important;
    color: #F6F2F1 !important;
}
.invert-button a.elementor-button:hover {
    background-color: #F6F2F1 !important;
    color: #052732 !important;
}

.logo-dark-co img {
    height: 50px !important;
    width: auto;
}

/*CPT Couvertures*/

body.single-couverture, body.page-template-dark-page {
    background-color: #052732;
    color: #fff;
}
.single-couverture main#content, .page-template-dark-page main#content {
/*    padding-top: 100px;*/
        background-color: #052732 !important;
}

article.couverture {
    padding-top: 90px;
}
.cpt-content {
        padding-bottom: 2em;
}
.page-template-dark-page  .page-content {
    padding-top: 90px;
}
header.cpt-header, .page-template-dark-page #header {
    max-width: var(--header-max-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px auto 40px;
    min-height: 450px;
    padding: 2em;
    box-sizing: border-box;
}
.cpt-header-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 0.6;
    z-index: -1;
}
.cpt-button {
    text-align: center;
}
.cpt-button a {
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 600 !important;
    line-height: 1.5em;
    padding: 1.75em 4em !important;
    border-radius: 3em;
    background-color: #F6F2F1 !important;
    color: #052732 !important;
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -ms-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    transition: all 300ms ease-out;  
    margin: 2em auto;
}
.cpt-button a:hover {
    background-color: #052732 !important;
    color:#F6F2F1 !important;
}
.cpt-bloctitle {
    padding-bottom: 3em;
}

#header-partner {
    width: var(--header-max-width);
    padding: 0;
}
#header-partner .e-con-inner, #header-partner .e-con-inner #header {
    width: var(--header-max-width);
    margin-left: 0;
}
header.cpt-header h1, .page-template-dark-page #header h1 {
    text-align: center;
    max-width: auto;
}
header.cpt-header h2, .page-template-dark-page #header h2 {
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
}
header.cpt-header h2, header.cpt-header h3, .page-template-dark-page #header h2, .page-template-dark-page #header h3 {
    font-family : Montserrat, Helvetica, Arial, "sans-serif" !important;
    color: #F6F2F1 !important;
    text-align: center;
    font-size: 1em !important;
    line-height: 1.2em !important;
    letter-spacing: 0 !important;
    max-width: 100%;
}
.single-couverture h3, .page-template-dark-page h3 {
    font-family : Montserrat, Helvetica, Arial, "sans-serif" !important;
    color: #F6F2F1 !important;
    text-align: left;
    font-size: 1em !important;
    line-height: 1.2em !important;
    letter-spacing: 0 !important;
}
.single-couverture h2 {
    color: #F6F2F1 !important;
    text-align: left;
    max-width: 45%;
}
.page-template-dark-page h2 {
    color: #F6F2F1 !important;
}
.page-template-dark-page .ctapartners h2 {
    text-align: left;
}
.bloc-fondamentaux h2 {
    text-align: left;
    max-width: 45%;
}
.bloc-fondamentaux h3, .bloc-cta-home h3 {
    font-family : Montserrat, Helvetica, Arial, "sans-serif" !important;
    text-align: left;
    font-size: 1em !important;
    line-height: 1.2em !important;
    letter-spacing: 0 !important;
/*    color: #052732 !important;*/
    color: #7E8E9E !important;
    text-transform: uppercase;
}
.bloc-cta-home h3 {
    text-align: center;
}
.single-couverture .bloc-fondamentaux h3, .page-template-dark-page .bloc-fondamentaux h3 {
    color: #F6F2F1 !important;
}
.bloc-fondamentaux .e-grid {
    column-gap: 0 !important;
    grid-template-columns: 33% 67% !important;
}
.bloc-fondamentaux .e-grid div {
    border-bottom: solid 1px #7E8E9E;
    padding: 1em 0;
    color: #052732;
}
.single-couverture .bloc-fondamentaux .e-grid div, .page-template-dark-page .bloc-fondamentaux .e-grid div {
    color: #fff;
}
.bloc-fondamentaux .e-grid h4 {
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1.25em;
    margin: 0;
}
.bloc-fondamentaux .e-grid div:nth-last-child(-n+2) {
    border-bottom: 0 !important;
}

.bloc-comment-souscrire .e-con {
    background-color: #F6F2F1 !important;
    border-radius: 10px;
    text-align: center;
    padding: 3em 0 0 0 !important;
    overflow: hidden;
}
.bloc-comment-souscrire .e-con h2, .bloc-comment-souscrire .e-con h3 {
    color: #052732 !important;
    text-align: center;
}
.bloc-comment-souscrire .e-con h2 {
    max-width: 80% !important;
    margin: 0 auto !important;
    text-transform: none !important;
}
.bloc-comment-souscrire .e-con h3 {
    text-transform: uppercase
}
.bloc-comment-souscrire .e-con p {
    max-width: 60% !important;
    margin: 0 auto;
    display: block;
    color: #052732 !important;
}
.bloc-details, .faq {
    margin: 2.5em auto !important;
}
.bloc-details h4, .faq h4 {
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1.25em;
    margin: 0;
    max-width: 70%;
    color: #fff;
}
.bloc-details .e-grid div, .faq .e-grid div {
    color: #fff;
}
.bloc-details ul {
    margin: 0;
    padding: 0;
}
.bloc-details ul > li {
    position: relative;
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
    border-bottom: solid 1px #7E8E9E;
    padding-left: 3em;
    list-style: none;
}
.bloc-details ul li::before {
    position: absolute;
    content: "";
    top: 3px;
    left: 0;
    width: 1.5em;
    height: 1.5em;
    display: block;
    background: url("assets/img/coche-couverture.svg") center center no-repeat;
    background-size: contain;
}
.bloc-details ul > li:last-of-type {
    border-bottom: none;
}

.faq .e-n-accordion, .faq .elementor-widget-n-accordion, .faq .elementor-widget-n-accordion .e-n-accordion-item-title {
    border: 0;
    color: #fff !important;
}
.faq .e-n-accordion-item .e-con {
    border: 0;
}
.faq .e-n-accordion-item .e-con p {
    color: #fff;
}
.faq .e-n-accordion-item {
    border-bottom: solid 1px #7E8E9E;
    padding: 0 0 1em;
    margin: 1em auto;
}

.faq .e-n-accordion-item summary .e-n-accordion-item-title-header {
    padding-right: 3em;
    position: relative;
    display: block;
    width: 100%;
}
.faq details.e-n-accordion-item summary .e-n-accordion-item-title-header::before {
    position: absolute;
    content: "\2335";
    width: 1em;
    height: 1em;
    right: 0;
    top: 0;
    color: #fff;
    -webkit-transition: all 300ms linear;
    -moz-transition: all 300ms linear;
    -ms-transition: all 300ms linear;
    -o-transition: all 300ms linear;
    transition: all 300ms linear;
}
.faq details[open].e-n-accordion-item summary .e-n-accordion-item-title-header::before {
    top: 1em;
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.e-n-accordion li, .e-n-accordion strong {
  color: #fff;
}

.ctapartners > .e-con-inner > .ctapartners{
    margin: 0;
    padding: 0;
}
   
.ctapartners > .e-con-inner {
    padding: 2em 3em !important;
    box-sizing: border-box;
    border: solid 1px #7E8E9E;
    border-radius: 10px;
}
.ctapartners > .e-con-inner h2 {
    max-width: 100% !important;
}
.ctapartners > .e-con-inner h3 {
    margin-bottom: 0 !important;
    text-transform: uppercase !important;
    color: #7E8E9E !important;
}
.ctapartners > .e-con-inner a.elementor-button:hover {
    background-color: #7E8E9E !important;    
}
body.home .ctapartners > .e-con-inner {
    background-color: #052732 !important
}
body.home .ctapartners > .e-con-inner h2 {
    text-align: left;
    color: #F6F2F1 !important;
}
body.home .ctapartners > .e-con-inner h3 {
    text-align: left;
    font-size: 1em !important;
    line-height: 1.2em !important;
    letter-spacing: 0 !important;
    color: #7E8E9E !important;
}

#couvertures h3 {
    color: #052732;
    font-size: 1.1em;
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif !important; 
}
/* Grille principale */
.grid-tuiles-couvertures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 36%));
    gap: 1em;
    justify-content: center;
}
@media (max-width: 767px) {
    .grid-tuiles-couvertures {
        grid-template-columns: 100%;
    }
}
/* La carte (Tuile) */
.tuile-couverture {
    background-color: #052732; 
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.tuile-couverture:hover {
    transform: translateY(-5px);
}

/* Zone Image */
.tuile-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* Zone Texte */
.tuile-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.tuile-title {
    color: #F6F2F1 !important;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Liste des avantages (Icônes V) */
.tuile-avantages {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}
.tuile-avantages li {
    color: #ffffff;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.tuile-avantages li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 20px;
    background: url("assets/img/coche-couverture-2.svg") no-repeat center; /* Ton SVG */
    background-size: contain;
}

/* Le Bouton */
.tuile-button {
    display: block;
    border: 1px solid #F6F2F1;
    color: #F6F2F1;
    text-align: center;
    padding: 1.75em 4em;
    border-radius: 3em;
    text-decoration: none;
    font-size: 0.8em;
    line-height: 1.5em;
    font-weight: 600;
/*    letter-spacing: 1px;*/
    transition: background 0.3s, color 0.3s;
}

.tuile-button:hover {
    background-color: #F6F2F1;
    color: #052732;
}
/* Style pour la tuile désactivée */
.tuile-disabled {
    opacity: 0.3; 
    cursor: not-allowed;
    filter: saturate(0.2); 
    pointer-events: none; 
    user-select: none;
}
.tuile-disabled .tuile-image {
    filter: grayscale(100%);
}
.tuile-disabled:hover {
    transform: none;
}
.tuile-soon {
    display: block;
    text-align: center;
    padding: 1.75em 4em;
    background: rgba(246, 242, 241, 0.1); 
    color: #F6F2F1;
    border-radius: 3em;
    font-size: 0.8em;
    font-weight: 600;
/*    letter-spacing: 1px;*/
    border: 1px dashed #F6F2F1; 
}

.e-con {
    padding-left: 5px !important;
}

.e-flex ul {
  margin: 1em 0;
}

.page-template-dark-page .e-flex li {
    color: #fff;
}


/* Shortcode  [slider_images ids="12,45,89"] 
 ===============================================================================================*/

.infinite-slider-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}
.infinite-slider-track {
    display: flex;
    align-items: center;
    /* La largeur totale du track est gérée par le contenu */
    width: max-content; 
    will-change: transform;
    transform: translate3d(0, 0, 0); 
    animation: scrollInfinite 250s linear infinite;
}
.infinite-slider-container:hover .infinite-slider-track {
/*    animation-play-state: paused;*/
}
/* --- DESKTOP (500px) --- */
.slide-item {
    flex-shrink: 0;
    padding: 0 9px;
    height: 500px;
    width: var(--img-width); /* Défini par le PHP */
}
/* --- MOBILE (250px) --- */
@media (max-width: 767px) {
    .slide-item {
        height: 250px;
        /* On divise la largeur par 2 car la hauteur est divisée par 2 */
        width: calc(var(--img-width) / 2); 
    }
    
    .infinite-slider-track {
        /* On ajuste la distance de l'animation pour le mobile */
        animation: scrollInfiniteMobile 250s linear infinite;
    }
}
.slide-item img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    border-radius: 10px !important;
}
@keyframes scrollInfinite {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(var(--total-width), 0, 0); }
}
@keyframes scrollInfiniteMobile {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(var(--total-width) / 2), 0, 0); }
}


/* Shortcode  [app_showcase ids="12,45,89"] 
 ===============================================================================================*/

.app-showcase-wrapper-static {
    position: relative;
    width: 100%;
    height: 662px;
    overflow: hidden;
    background: transparent;
    -webkit-mask-image: linear-gradient(
        to right, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.5) 20%, 
        rgba(0,0,0,1) 40%, 
        rgba(0,0,0,1) 60%, 
        rgba(0,0,0,0.5) 80%, 
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(
        to right, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.5) 20%, 
        rgba(0,0,0,1) 40%, 
        rgba(0,0,0,1) 60%, 
        rgba(0,0,0,0.5) 80%, 
        rgba(0,0,0,0) 100%
    );
}

.phone-mockup-fixed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 332px;
    height: 662px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
}

.app-slider-track {
    display: flex;
    align-items: center;
    position: absolute;
    top: 15px;
    /* CENTRE LE RAIL : */
    left: 50%; 
    /* Décale de la moitié d'une slide + marge pour centrer la première image */
    margin-left: -148px; /* -(296px / 2) */
    transform: translateY(-50%);
    will-change: transform;
}
.css-slide {
    opacity: 1;
    width: 296px;
    margin-right: 150px; /* On utilise margin-right uniquement pour la régularité */
    height: 645px;
    flex-shrink: 0;
}
.css-slide:last-child {
    margin-right: 0 !important;
}
.css-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

footer {
    background: #052732;
    padding: 3em 0 2em 0;
/*    border-top: solid 1px #F6F2F1;*/
    border-top: solid 1px #7E8E9E;
}
footer .footer-wrapper {
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 ; 
    color: #F6F2F1 !important;
}
footer .mainline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 5em;
}
footer .footermenu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    column-gap: 2em;
}
footer .footermenu li {
    padding-bottom: .5em;
}
footer .footermenu a {
    color: #F6F2F1 !important;
    text-decoration: none;
}
footer .legalline {
    padding-bottom: .5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.75em;
}
footer .legalline a {
    color: #F6F2F1 !important;
    text-decoration: none;
    font-weight: 600;
}
footer .legalline .credit a {
    text-decoration: underline;
}
footer .legalline .menulegal {
    text-transform: uppercase;
}
footer ul li {
    list-style: none;
}
footer .menulegal ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
footer .menulegal ul li {
    padding-left: 2em;
    line-height: 1em;
}


@media (max-width: 919px) {
    .e-con-inner {
      padding: 0 2em !important;
    }
    /* 1. Reset des comportements Desktop */
    #nav-indicator { 
        display: none !important; 
    }

    header.main-header.header-up {
        transform: translateY(0) !important;
    }

    /* 2. Empilement Vertical (Colonne) */
    .nav-flex-row, 
    #main-menu
     {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
    }

    /* 3. Panneau latéral à 50% */
    .nav-flex-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%; 
        height: 100vh;
        background: #052732; 
        padding: 100px 30px 40px 30px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 9998;
    }

    .nav-flex-row.is-active {
        right: 0;
    }
    
    /* 4. Éléments du Menu */
    #main-menu li {
        margin: 10px 0 !important;
        display: block !important;
        width: 100%;
    }

    /* 5. Sous-menus Déployés */
    #main-menu .sub-menu {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: none;
        padding-left: 5px !important;
        margin-top: 10px !important;
        margin-bottom: 0 !important;
        background: transparent !important;
    }
    #main-menu .sub-menu li {
        margin-bottom: 0 !important;
    }

    #main-menu .menu-item-has-children > a::after {
        display: none !important;
    }
    .main-header.header-dark-mode .menu-toggle .bar {
      background-color: #052732 !important;
    }
    .main-header.header-dark-mode .is-active #main-menu a {
      color: #FFF !important;
    }
    /* 6. Bouton Toggle (Blanc Pur #FFFFFF) */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        position: relative;
        z-index: 10005;
        background: transparent !important;
        border: none !important;
        margin-left: auto;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 3px 0;
        background-color: #FFFFFF !important;
        transition: all 0.3s ease-in-out;
    }
    .header-dark-mode .menu-toggle .bar {
        color: #052732 !important;
    }

    /* 7. Animation de la Croix (X) */
    .menu-toggle.is-active .bar:nth-child(2) { 
        opacity: 0; 
        transform: translateX(10px);
    }
    .menu-toggle.is-active .bar:nth-child(1) { 
        transform: translateY(9px) rotate(45deg); 
    }
    .menu-toggle.is-active .bar:nth-child(3) { 
        transform: translateY(-9px) rotate(-45deg); 
    }
    
    h1 {
        font-size: 3.5em !important;
    }
    h2 {
        font-size: 2.25em !important;
    }
    .bloc-fondamentaux h2 {
      text-align: left;
      max-width: 65%;
    }
    footer {
        padding: 2em;
    }
}

/* --- MASQUAGE BOUTON DESKTOP (Dès 920px) --- */
@media (min-width: 920px) {
    .menu-toggle { 
        display: none !important; 
    }
}
@media (max-width: 619px) {
    h1 {
        font-size: 3em !important;
    }
    h2 {
        font-size: 2em !important;
    }
    .bloc-fondamentaux h2 {
      text-align: left;
      max-width: 100%;
    }
    footer .menulegal ul {
        flex-direction: column;
    }
    footer .menulegal ul li {
        padding-bottom: 0.33em;
        line-height: 1.15em;
        text-align: right;
    }
}
@media (max-width: 599px) {
    .bloc-fondamentaux .e-grid {
        display: flex;
        flex-direction: column;
    }
    .bloc-fondamentaux .e-grid div {
        border-bottom: none;
        padding: 0;
    }
    header.main-header {
        width: 100vw;
    }
    footer .footermenu {
        flex-direction: column;
        align-items: revert;
    }
    footer .footermenu ul li {
        text-align: right;
    }
}
