/* ================================
   CUSTOM CONTACT CONTAINER
   ================================ */
#content-bottom {
    background-color: #fff;
    padding-top: 1rem;
    margin-bottom: 0 !important;
}
.custom-contact-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 80px 10px 120px;
    position: relative;
    z-index: 1;
}

.custom-contact-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #f2f2f2;
    z-index: -1;
}

/* TEASER PARAGRAPH */
.custom-contact-container p.teaser{
    -webkit-text-size-adjust: 100%;
    --swiper-theme-color: #007aff;
    --swiper-navigation-size: 44px;
    box-sizing: inherit;
    margin: 0px;
    font-family: Karma;
    font-weight: 400;
    color: rgb(0, 0, 0);
    font-size: 4rem;
    line-height: 5rem;
    margin-bottom: 25px;
}

/* FLEXIBLE CONTENT H2 */
.flexible-content .custom-content-bottom h2 {
    font-family: "Karma", serif !important;
    flex-shrink:0;
    color:#132A67;
    font-size:2rem;
    line-height:3rem;
    margin:0 80px 0 0;
}

/* FLEXIBLE CONTENT GRID */
.flexible-content .fr-grid-row--gutters .fr-col-md-8 {
    padding-left: 60px;
}

/* FLEXIBLE CONTENT PARAGRAPH */
.flexible-content p{
    font-size: 0.9rem;
    font-weight: 200;
    color: #2E2E2E;
    font-family: 'Montserrat',"Arial",sans-serif;
}

/* ENTITY REFERENCE REVISIONS */
.field_type__entity-reference-revisions{
    /*max-width: 1060px;*/
    margin: 0px auto; 
    background: #fff;
    padding: 5w 1w;
}

/* VIEW SERVICE */
.custom-contact-container .view-service{
    background: rgb(13, 123, 198);
    color: rgb(255, 255, 255);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 3px;
    padding: 60px 80px;
}

/* VIEW HEADER */
.custom-contact-container header.view-header{
    box-sizing: inherit;
    width: 380px;
}

.view-header h2{
    font-family: Karma;
    color: rgb(255, 255, 255);
    font-size: 2rem;
    font-weight: 600;
    line-height: 2rem;
    margin-bottom: 20px;
}

.view-header p {
    font-size: 1.3rem;
    line-height: 2rem
}

/* VIEW FILTERS */
.custom-contact-container .view-filters {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    width: 360px;
    padding: 40px;
}

/* VIEWS INDICATION FORM */
.views-indication-form {
    padding: 10px;
}

/* VIEW TITLES (DOUBLON: view-content h2 a) */
.view-filters h2.view-title, 
.view-content .views-row .teaser-content h2 a{
    font-family: Karma;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.8rem;
    border: none;
}

/* VIEWS EXPOSED FORM */
.views-exposed-form label{
    font-family: 'Montserrat',"Arial",sans-serif;
    color: #000;
    font-size: 0.7rem;
    line-height: 1rem;
    font-weight: 200;
}

.views-exposed-form label span:first-child{
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 200;
}

/* LOCALITE SELECT (SEARCH) */
.localite-select-row {
    display: flex;
    align-items: stretch;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    height: 56px;
    padding: 5px 0px 0px 0px;
}

.localite-select-wrapper {
    flex: 1;
    margin: 0 !important;
    z-index: 1;
}

.localite-select-wrapper .fr-select {
    border-radius: 4px !important;
    height: 100% !important;
    background-color: #ffff !important;
    border: 1px solid !important;
    box-shadow: none;
    text-transform: uppercase;
    font-weight: 200;
    font-size: 0.8rem;
}

.choices__inner {
    text-transform: uppercase;
}

.view-filters .localite-select-wrapper .choices .choices__inner .choices__list--single{
    padding: 0;
    font-weight: 200;
}

.choices__placeholder {
    color: #757575 !important;
    opacity: 1;
}

.choices__input--cloned::placeholder {
    color: #161616 !important;
    opacity: 1;
}

.choices__input--cloned {
    border: 1px solid #757575 !important;
    border-radius: 4px;
    padding: 6px 10px;
    color: #161616;
    background-color: #fff;
}

.choices__input--cloned:focus {
    border-color: #000091 !important;
    outline: none;
}

/* CUSTOM RECHERCHE BUTTON */
.custom-recherche-btn {
    display: flex;
    width: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    background-color: #1a2a5e;
}

.custom-recherche-btn .icon-box {
    background-color: #0d7bc6;
    color: white;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-recherche-btn .label-box {
    flex: 1;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.custom-recherche-btn .label-text {
    font-family: "Montserrat", "Arial", sans-serif;
    font-weight: 400;
    position: relative;
    z-index: 2;
    color: white;
    font-size: 12px;
    letter-spacing: 1px;
}

.custom-recherche-btn .label-box::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background-color: #0d7bc6;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.custom-recherche-btn:hover .label-box::before {
    transform: translateX(0);
}

/* ================================
   VIEW CONTENT (DOUBLON: view-content)
   ================================ */
.view-content {    
    color: #fff;
    box-sizing: inherit;
    background: #fff;
    width: 100%;
    margin-top: 50px;
    border-radius: 3px;
    padding: 40px;
}

.view-content {   
    color: #2E2E2E;
    box-sizing: inherit;
}

/* TEASER CONTENT */
.view-content .views-row .teaser-content .teaser__adresse p{
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5rem;
    font-weight: 200;
    color: #3a3a3a;
}

.view-content .views-row .teaser-content p.teaser__office_hours{
    margin: 0;
    background: #006C82;
    border-radius: 3px;
    line-height: 1;
    align-items: center;
    color: #fff;
    transition: color 0.4s,background-color 0.4s;
    margin: 0 10px 5px 0;
    font-weight: 300;
    display: inline-flex;
    font-size: 11px;
    height: 30px;
    padding: 0 5px 0 5px;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    font-family: 'Montserrat', "Arial", sans-serif;
}

.view-content .views-row .teaser-content p.teaser__office_hours:hover {
    background: #004f68;
}

.teaser__office_hours .office-hours__item-label {
    padding: 0 10px 0 3px;
}

/* NODE SERVICE */
.node.service {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.teaser-content {
    flex: 1 1 65%;
}

.teaser-footer {
    flex: 1 1 30%;
}

/* ================================
   TEASER FOOTER LINKS
   ================================ */
.teaser-footer a.fr-icon-arrow-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.teaser-footer .fr-link {
    letter-spacing: 0.02em;
}

.teaser-footer a.fr-icon-arrow-right .fr-icon-arrow-right-line {
    display: inline-block;
    transform: scaleX(1.3);
    font-size: 40px;
    font-weight: 300;
    transition: transform 0.4s;
    margin-left: 6px;
}

.teaser-footer .fr-link {
    letter-spacing: 0.02em;
}

.teaser-footer a.fr-icon-arrow-right:hover .icon {
    transform: translateX(5px);
}

.teaser-footer a.fr-icon-arrow-right span.link-title {
    transition: none;
}

.teaser-footer a.fr-icon-arrow-right .icon {
    margin-left: auto;
}

.teaser-footer a {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    color: #132A67;
}

.teaser-footer ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.teaser-footer a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.teaser-footer a:hover {
    transform: translateX(5px);
}

.teaser-content p.teaser__office_hours span.fr-icon-time-line {
    transform: scale(0.75);
}

/* DOUBLON: view-content .views-row .teaser-content h2 a / service--layout-teaser .teaser-footer a */
.view-content .views-row .teaser-content h2 a,
.service--layout-teaser .teaser-footer a {
    --underline-img: none;
    background-image: none;
    padding-right: 55px;
}

/* ================================
   CONTACT FORM OVERLAY
   ================================ */
.contact-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.contact-overlay.active {
    display: block;
}

#fr-modal-title-horaires {
    font-family: "Karma", serif !important;
    font-size: 1.5rem;
    font-weight: 500;
    color: #161616;
    line-height: 1.2;
}

/* ================================
   CONTACT PANEL
   ================================ */
.contact-panel {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 560px;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    border-left: 4px solid #e1000f;
    padding: 0 50px;
}

.contact-panel.active {
    right: 0;
}

.contact-panel-inner {
    padding: 3rem 3rem 3rem 2.5rem;
}

.contact-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-panel-title {
    font-family: "Karma", serif;
    font-size: 2rem;
    font-weight: 400;
    color: #161616;
    line-height: 1.2;
    max-width: 100%;
}

.contact-panel-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #3a3a3a;
    padding: 4px;
    line-height: 1;
    margin-top: 4px;
}

.contact-panel-close:hover {
    color: #000;
}

.contact-panel .cf7-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.2rem;
}

.contact-panel .cf7-row input {
    flex: 1;
}

.contact-panel .cf7-field {
    margin-bottom: 1.2rem;
}

.contact-panel .cf7-field label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #3a3a3a;
    margin-bottom: 0.4rem;
}

.contact-panel .wpcf7 input[type="text"],
.contact-panel .wpcf7 input[type="email"],
.contact-panel .wpcf7 input[type="tel"],
.contact-panel .wpcf7 input[type="date"],
.contact-panel .wpcf7 select,
.contact-panel .wpcf7 textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 12px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.875rem;
    color: #3a3a3a;
    background-color: #fff;
}

.contact-panel .wpcf7 input:focus,
.contact-panel .wpcf7 select:focus,
.contact-panel .wpcf7 textarea:focus {
    outline: 2px solid #0046b8;
    border-color: #0046b8;
}

.contact-panel .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-panel .wpcf7 input[type="submit"] {
    background-color: #1a2a5e;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.contact-panel .wpcf7 input[type="submit"]:hover {
    background-color: #0d7bc6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .teaser-content,
    .teaser-footer {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .contact-panel {
        max-width: 100%;
    }
}