/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/*Global*/

strong {
    font-weight: 700;
}

.h-bold {
    font-weight: 700;
}

h1, h2, h3 {
    line-height: 1.2;
}

.bricks-button {
    background-color: var(--vert);
    padding: 14px 20px;
    font-size: 16px;
}

.btn-blanc {
    background-color: var(--blanc);
    color: var(--bleu)!important;
}

#brx-content .bricks-button {
    min-width: 280Px;
}

.brxe-text {
    max-width: 800px;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 9999;
    transition: opacity 0.3s;
}

#back-to-top.show {
    display: block;
    opacity: 0.8;
}

#bouton-fermer {
    display: none;
}

.brxe-text {
    max-width: 800px;
}

.reverse .brxe-container {
    flex-direction: row-reverse;
}

.d-none {
    display: none;
}

footer a:hover{
    text-decoration: underline;
}

footer .brxe-button:hover{
    text-decoration: none;
}

.fond h1, .fond h2, .fond h3, .fond p, .accordion-item .icon{
    color: white;
}









section.diagonal-right {
    padding-right: 7%;
}

section.diagonal-left {
    padding-left: 7%;
}

.diagonal-right .brxe-container, .diagonal-left .brxe-container {
    background-color: grey;
    margin-top: unset;
    margin-bottom: unset;
}

#header .diagonal-right .brxe-container, #header.diagonal-left .brxe-container {
    background-color: grey;
    margin-top: unset;
    margin-bottom: unset;
}

#header-couleur .brxe-container {
    background-color: grey;
}

#header.diagonal-left {
    clip-path: unset;
}

.bg-picture-diagonal {
    position: relative;
}

.bg-picture-diagonal .diagonal-right {
    z-index: 1;
}

.diagonal-right .brxe-container {
    padding-right: 10%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.diagonal-left .brxe-container {
    padding-left: 8%;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media screen and (min-width: 767px) {
    .diagonal-right .brxe-container, .diagonal-right {
        clip-path: polygon(
                0 0,          /* haut gauche */
                100% 0,       /* haut droite */
                95% 100%,     /* bas droite (recul vers la gauche) */
                0 100%        /* bas gauche */
        );
    }

    .diagonal-left .brxe-container, .diagonal-left {
        clip-path: polygon(
                0% 0,        /* haut gauche (recul) */
                100% 0,       /* haut droite */
                100% 100%,    /* bas droite */
                5% 100%        /* bas gauche */
        );
    }
}

img.diagonal-right {
    clip-path: polygon(
            0 0,          /* haut gauche */
            100% 0,       /* haut droite */
            90% 100%,     /* bas droite (recul vers la gauche) */
            0 100%        /* bas gauche */
    );
}

img.diagonal-left {
    clip-path: polygon(
            0% 0,        /* haut gauche (recul) */
            100% 0,       /* haut droite */
            100% 100%,    /* bas droite */
            10% 100%        /* bas gauche */
    );
}














.france-map-container {
    position: relative !important;
}

.france-map-pins {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.france-map-pin {
    position: absolute !important;
}

/* Force la carte à s'adapter au conteneur */
.france-map-svg svg {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Empêche le div carte de couvrir les pins */
.france-map-svg {
    position: static !important;
    display: block;
}

/* Assure que le conteneur principal est bien le référent */
.france-map-container {
    position: relative !important;
    display: block;
}

/* Les pins au-dessus de tout */
.france-map-pins {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 10;
}

.france-map-pin {
    position: absolute !important;
    pointer-events: all !important;
    z-index: 11;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.france-map-pin.pin-label-below {
    flex-direction: column; /* label en dessous pour Lille */
}

span.pin-label {
    color: white;
    font-family: serif;
    font-weight: 400;
    text-shadow: 0 0 4px var(--bleu);
}

span.pin-label {
    font-family:'lexend', sans-serif!important;
}

@media screen and (max-width:1100px) {
    span.pin-label {
        font-size: 14px!important;
    }
}

.france-map-pin .pin-icon {
    transition: transform 0.2s ease;
}

.france-map-pin:hover {
    transform: scale(1.1);
    animation: pin-pulse 0.3s ease-out;
}

@keyframes pin-pulse {
    0%   { transform: scale(1.1); }
    40%  { transform: scale(1.3); }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}







/*Recherche*/

.brxe-block .is-search-form label {
    width: 100% !important;
}

.brxe-block .is-search-form [type=search] {
    border-radius: 50px;
    padding: 30px;
}

.is-form-style button.is-search-submit {
    position: absolute;
    right: 0;
    border-radius: 50px;
    width: 62px!important;
    height: 62px!important;
}

.brxe-block .is-search-form span.is-search-icon {
    border-radius: 50px!important;
    padding: 0 !important;
}

.brxe-block .is-search-icon svg {
    width: 36px;
}

.bloc-recherche div, .bloc-recherche h2 {
    z-index: 2;
}

.bloc-recherche.gauche::before {
    bottom: -80%;
    left: -50%;
    width: 100%;
    height: 100%;
    background-size: contain;
    transform: scale(-1.5);
}

.bloc-recherche.droite::after {
    bottom: 0%;
    right: -45%;
    width: 100%;
    height: 100%;
    background-size: contain;
    transform: scale(1.5);
}

#search-page-form input#is-search-input-376 {
    border: 1px solid gray !important;
}

#search-page-form .is-form-style button.is-search-submit {
    background-color: transparent !important;
}

input#is-search-input-376 {
    font-size: 20px !important;
    color: #434343 !important;
}

.is-search-form input#is-search-input-193 {
    border: 2px solid white!important;
}

.is-search-form input#is-search-input-193:focus {
    border: 2px solid var(--jaune)!important;
}

#brx-content .is-form-style button.is-search-submit {
    right: 3px;
    height: 58px !important;
    top: 2px;
}

.bloc-recherche .is-form-style.is-form-style-3 label {
    width: 100%!important;
}

/*Fin Recherche*/






/* Fin traits compo croix */

.trait-gauche, .trait-droite, .trait-haut, .trait-bas {
    position: relative;
}

.trait-gauche::after {
    content: '';
    height: calc(100% - 15px);
    width: 2px;
    background-image: linear-gradient(to bottom, darkred, darkslateblue);
    display: block;
    background-size: 100%;
    position: absolute;
    left: -2px;
}

.six-pack-cross .trait-gauche::after {
    content: '';
    height: calc(90% - 15px);
}

.trait-droite::after {
    content: '';
    height: calc(100% - 30px);
    width: 2px;
    background-image: linear-gradient(to top, darkred, darkslateblue);
    display: block;
    background-size: 100%;
    position: absolute;
    right: 2px;
}

.trait-haut::before {
    content: '';
    height: 2px;
    width: calc(100% - 15px);
    background-image: linear-gradient(to right, darkred, darkslateblue);
    display: block;
    background-size: 100%;
    position: absolute;
    top: -3px;
}

.trait-bas::before {
    content: '';
    height: 2px;
    width: calc(100% - 30px);
    background-image: linear-gradient(to left, darkred, darkslateblue);
    display: block;
    background-size: 100%;
    position: absolute;
    bottom: 0px;
}





.fond .trait-gauche::after {
    content: '';
    background-image: unset;
    background-color: var(--blanc);
}

.fond .trait-droite::after {
    content: '';
    background-image: unset;
    background-color: var(--blanc);
}

.fond .trait-haut::before {
    content: '';
    background-image: unset;
    background-color: var(--blanc);
}

.fond .trait-bas::before {
    content: '';
    background-image: unset;
    background-color: var(--blanc);
}

.fond .compo-croix .point-gauche::before {
    background: url('/wp-content/uploads/2026/05/Ellipse-blanc.svg');
}





.trait-bas::before {
    left: 0;
}

.trait-droite::after {
    content: '';
    height: calc(100% - 15px);
    right: 2px;
    top: 0;
}

.trait-haut::before {
    content: '';
    height: 2px;
    width: calc(100% - 15px);
    left: 25px;
}

.trait-haut::before {
    height: 2px;
    width: calc(100% - 15px);
    top: -3px;
    left: 25px;
}





/* États initiaux - traits invisibles */
.trait-gauche::after,
.trait-droite::after {
    transform: scaleY(0);
    transition: transform 0.8s ease 1s;
}

.trait-gauche::after  { transform-origin: bottom center; }
.trait-droite::after  { transform-origin: top center; }

.trait-haut::before,
.trait-bas::before {
    transform: scaleX(0);
    transition: transform 0.8s ease 1s;
}

.trait-haut::before { transform-origin: right center; }
.trait-bas::before  { transform-origin: left center; }

/* États visibles */
.trait-gauche.is-visible::after,
.trait-droite.is-visible::after {
    transform: scaleY(1);
}

.trait-haut.is-visible::before,
.trait-bas.is-visible::before {
    transform: scaleX(1);
}



@media screen and (max-width: 766px) {

    /* Cacher les traits verticaux et horizontaux existants */
    .trait-bas::before,
    .trait-haut::before,
    .trait-gauche::after,
    .trait-droite::after {
        display: none;
    }

    .trait-mobile {
        position: relative;
    }

    .six-pack-cross .trait-gauche::after {
        height: unset;
    }

    /* Trait horizontal en bas, animé gauche → droite */
    .trait-mobile::after {
        content: '';
        height: 2px!important;
        width: 100%;
        background-image: linear-gradient(to right, var(--vert), var(--bleu));
        background-size: 100%;
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        top: unset;
        right: unset;

        /* Animation gauche → droite */
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.8s ease 1s;
    }

    /* État visible */
    .trait-mobile.is-visible::after {
        transform: scaleX(1);
    }
}

/* Fin traits compo croix */











/*Frise chronologique*/

.encart-frise {
    background-color: #E7EBF2;
}

.is-visible.is-next .encart-frise {
    background-color: var(--Jaune);
}

.is-visible.is-next .date-frise {
    color: var(--Jaune);
}



.element-historique {
    position: relative;
}

.element-historique:nth-child(n+2)::before {
    content:'';
    width: 50px;
    height: 1px;
    background-color: var(--gris);
    display: block;
    left: calc(50% - 25px);
    top: -5px;
    position: absolute;
}

.is-visible.is-next .element-historique:nth-child(n+2)::before {
    content:'';
    background-color: var(--Jaune);

}


.frise-historique {
    overflow: visible;
}

.frise-historique::before {
    content:'';
    width: 100%;
    height: 2px;
    background-color: var(--Jaune);
    background-size: 100%;
    display: inline;
    position: absolute;
    top: 60px;
    left: 0;
    border-radius: 2px;
}

/* Repere visuel de fin de frise : dernier jalon mis en avant */
.frise-historique .element-historique:last-child .date-frise::before {
    box-shadow:
            0 0 0 3px white,
            0 0 0 5px var(--Jaune),
            0 0 0 9px rgba(28, 64, 130, 0.15);
}

.date-frise {
    position: relative;
}

.frise-historique .date-frise::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--Jaune); /* centre bleu */

    box-shadow:
            0 0 0 3px white,      /* anneau blanc */
            0 0 0 5px var(--Jaune);    /* anneau bleu fin, plus fin que le blanc */
}


.frise-historique .date-frise::after {
    content:'';
    width: 2px;
    height: 50px;
    background-color: var(--Jaune);
    background-size: 100%;
    display: inline;
    position: absolute;
    top: 60px;
    left: calc(50% - 1px);
    z-index: -1;
}


.is-visible.is-next .date-frise::before {
    background-color: var(--Jaune);
}

/*Fin frise chronologique*/










/*Responsive*/


@media screen and (min-width: 990px) {

    nav#brxe-5324d1 {
        width: fit-content;
    }

    #brx-header .brx-nav-nested-items {
        position: relative;
    }

    #brx-header .brx-nav-nested-items .brxe-dropdown {
        position: unset;
    }


    #brx-header .brx-nav-nested-items .brx-dropdown-content {
        box-shadow: 0 3px 6px #00000029;
        min-width: 100% !important;
        left: 0 !important;
    }

    #brx-header .brx-nav-nested-items .brx-dropdown-content li{
        font-family: sans-serif!important;
        font-size: 16px;
    }


    #brx-header .brx-nav-nested-items .brx-dropdown-content .brxe-text-link{
        position: relative;
        padding-left: 15px;
    }

    #brx-header .active .brx-submenu-toggle button{
        transform: rotate(180deg);
    }

    #brxe-103c6c {
        align-items: stretch;
    }

    #brxe-5ee566 {
        display: flex;
        flex-direction: column;
    }

    div#brxe-17dad3 {
        width: auto;
    }
}





