@font-face {
    font-family: 'Poppins Regular';
    src: url('../fonts/Poppins-400.ttf') format('truetype');
    font-weight: 400; 
    font-style: normal;
}
@font-face {
    font-family: 'Poppins Medium';
    src: url('../fonts/Poppins-500.ttf') format('truetype');
    font-weight: 600; 
    font-style: normal;
}
@font-face {
    font-family: 'Poppins SemiBold';
    src: url('../fonts/Poppins-600.ttf') format('truetype');
    font-weight: 600; 
    font-style: normal;
}

/* Main */
.text-bold {
    font-weight: bold;
}

.full-width {
    width: 100%;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ciret-color {
    color: #2979c3;
}

.ciret-bg-color {
    background-color: #2979c3;
}

.ciret-title {
    font-weight: bold;
    margin-bottom: 80px;
}

.ciret-link {
    color: #2979c3;
}

.ciret-link:hover {
    text-decoration: underline;
}

.btn-ciret,
button.btn.btn-ciret:focus,
a.btn.btn-ciret:focus {
    color: white !important;
    background-color: #2979c3;
}

button.btn.btn-ciret:hover,
button.btn.btn-ciret:active,
button.btn.btn-ciret:focus,
a.btn.btn-ciret:hover,
a.btn.btn-ciret:active {
    color: white !important;
    background-color: #38a0ff !important;
}

.container-intervention {
    padding: 15px;
    margin: 0 auto 20px auto;
    width: 75%;
    border-radius: 8px !important;
    box-shadow: 0 5px 5px #2979c3;
    min-height: 400px;
}

.inner-intervention {
    background-color: white;
    width: 80%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px !important;
    overflow: hidden;
}

.text-white {
    color: white;
}

input.form-input-service {
    margin-top: 10px;
}

td.text-service {
    line-height: 2.85em;
}

.flex-h {
    display: flex;
    align-content: center;
}

.radio-inline {
    margin-left: 35px;
    margin-bottom: 15px;
}

.space-before {
    margin-top: 30px;
}

label.label-title {
    font-size: 20px;
    color: #2979c3;
    margin-bottom: 25px;
}

button.btn-close-modal {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.btn-close-modal {
    float: right;
    font-size: 30px;
    line-height: 25px;
    text-shadow: 0 1px 0 #000;
    opacity: .7;
    filter: alpha(opacity=70);
    display: inline-block;
    margin-top: 0;
    margin-right: 15px;
    width: 25px;
    height: 25px;
    color: whitesmoke;
}

.btn-close-modal:hover,
.btn-close-modal:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
    opacity: .9;
    filter: alpha(opacity=90);
}

p.form-align-text {
    line-height: 1.8em !important;
}

/* Services */
.form-input-service {
    margin-top: 8px;
}

.row-service > td {
    transition: all 255ms ease-in-out;
}

.row-service {
    cursor: pointer;
    color: #4A4A45;
}

.row-service,
.row-service > tr,
.row-service > td {
    background-color: #d9e8ff;
}

.row-service.enabled {
    color: #fff;
}

.row-service.enabled > tbody > tr > th {
    color: #000;
}
.num{
    width: 10%
}

.row-service.enabled,
.row-service.enabled > td {
    background-color: #2979c3;
}

.container-form-service-enabled {
    position: absolute;
    right: 10px;
    top: -5px;
}

/* Loader */
.loader-base {
    position: relative;
}

.loader-ciret {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.88);
    transition: background-color 1100ms ease-in-out,
    top 1200ms ease-in-out,
    width 800ms ease-in;
    z-index: 99999;
}

.loader-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    position: relative;
    border: 24px solid #f3f3f3;
    border-top: 24px solid #2979c3;
    border-radius: 50% !important;
    width: 24px;
    height: 24px;
    animation: spin 688ms linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/** Navbar */
.navbar-logo {
    height: 80px;
}

/** Calendar */
.fc-event-time {
    display: none;
}

.fc-header-title {

}

.fc-calendar-available-events,
.fc-calendar-available-events.fc-event-hover,
.fc-calendar-available-events.fc-invalid-event-hover {
    transition: background-color 48ms ease-in-out,
    border-bottom-color 12ms ease-in-out,
    border-left-color 24ms ease-in-out,
    border-right-color 24ms ease-in-out,
    border-top-color 48ms ease-in-out;
}

.fc-calendar-available-events {
    background-color: #d9e8ff !important;
    border-color: transparent !important;
}

.fc-calendar-available-events:hover,
.fc-calendar-available-events.fc-event-hover {
    cursor: pointer;
    background-color: #2979c3 !important;
    border-color: #2979c3 !important;
}

.fc-calendar-available-events.fc-invalid-event-hover:hover,
.fc-calendar-available-events.fc-invalid-event-hover {
    cursor: not-allowed;
    background-color: #c33912 !important;
    border-color: #c30c00 !important;
}

.fc-calendar-unavailable-events {
    cursor: not-allowed;
    background-color: #CCC;
}

div.fc-calendar-available-events > div.fc-event-inner > div.fc-event-time {
    visibility: hidden;
}

td.fc-header-center > span > h2 {
    font-size: 17px;
    font-weight: bold;
    line-height: 0.1em;
}

.calendar-user-intervention {
    cursor: not-allowed;
    color: #000000;
}

/** Login modal */
.modal-login-content {
    padding: 15px;
}

/** Register modal */
.modal-registration {
    min-width: 700px;
}

.container-registration {
    padding: 15px;
}

.pac-container {
    z-index: 1000000000;
}

@media (min-width: 768px) and (max-width: 1024px) {

    .num{
        width: 15%;
    }
    div.content-prices {
        padding: 2vw 10vw;
    }
    .para-price {
        width: 100%;
    }
}

button.btn.btn-availabilities.green {
    background-color: #38a738 !important;
}

button.btn.btn-availabilities.green:focus,
button.btn.btn-availabilities.green:hover {
    background-color: #267326 !important;
}

button.btn.btn-availabilities.red-period {
    background-color: #ba2a2a !important;
}

button.btn.btn-availabilities.red-period:focus,
button.btn.btn-availabilities.red-period:hover {
    background-color: #8c1b1b !important;
}



/* ========= UPDATE CSS 27/03/2025 HOMEPAGE / NEWS ========== */
body {
    background-color: white!important;
}
.elements-header {
    font-family: 'Poppins SemiBold', sans-serif;
}
.btn-register {
    font-family: 'Poppins SemiBold', sans-serif;
    background: linear-gradient(to right, rgba(72, 138, 215, 1), rgba(46, 82, 124, 1));
    cursor: pointer;
}
.btn-login {
    font-family: 'Poppins SemiBold', sans-serif;
    border: 1px solid #2979c3!important;
    cursor: pointer;
}
.container-take-appointment-or-login {
    display: flex!important;
    flex-flow: column;
    align-items: flex-start!important;
    height: auto!important;
    margin-top: 20px;
    padding-top: 30px!important;
    padding-bottom: 45px!important;
    /* Reset shitty padding setted on .container */
    padding-left: 0!important;
    padding-right: 0!important;
}
.variation-single-container {
    background: linear-gradient(99.53deg, #3F7ABE 1.62%, #134885 59.85%);
    color: white;
    padding: 30px !important;
    box-sizing: border-box;
    border-radius: 8px!important;
    min-height: 300px;
}
.variation-single-container a {
    font-family: 'Poppins SemiBold';
    color: white!important;
    text-decoration: underline;
}
.take-appointment-with-us {
    font-family: 'Poppins SemiBold';
    font-size: 35px;
}
.login-or-register {
    line-height: 30px;
    padding-top: 30px;
    font-family: 'Poppins Medium';
    font-size: 18px!important;
}

/* ====== CONTAINER NEWS AHEAD ======= */
.container-fluid.linear-blue-news {
    padding-left: 0!important;
    padding-right: 0!important;
    min-height: 600px!important;
    padding-top: 30px;
    padding-bottom: 60px;
    background: linear-gradient(99.53deg, #3F7ABE 1.62%, #134885 59.85%);
}
.container-news-ahead,
.container-all-news {
    display: flex!important;
    flex-flow: column!important;
    align-items: flex-start!important;
    height: auto!important;
    /* Reset shitty padding setted on .container */
    padding-left: 0!important;
    padding-right: 0!important;
}
.news-title {
    font-family: 'Poppins SemiBold';
    color: white;
    font-size: 35px;
}
.content-news-ahead {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.image-or-preview {
    display: flex!important;
    min-width: 490px;
    max-width: 490px;
    height: 276px;
    border-radius: 8px!important;
    background-color: white;
    justify-content: center!important;
}
.image-or-preview img {
    width: auto;
    /* height: 180px; */
    height: 100%!important;
    margin: auto;
}
.image-or-preview img.default {
    object-fit: contain;
    object-position: center;
    width: 60%;
    margin: auto;
}
.image-or-preview iframe {
    width: 100%;
    border-radius: 8px!important;
}
.title-text-news {
    max-width: 555px;
}
.title-text-news .main-title {
    font-family: 'Poppins SemiBold';
    font-size: 30px;
    color: white;
}
.title-text-news .description-news {
    font-family: 'Poppins Medium';
    color: white;
    font-size: 16px;
    line-height: 28px;
    padding-top: 15px;
}
/* ====== GESTION DEPLIER A LA UNE ======= */
.description-news {
    max-height: 145px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;
    background-color: none!important;
}
.description-news a {
    color: white!important;
    text-decoration: underline!important;
}

.description-news.expanded {
    max-height: none;
}

.read-more {
    display: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    font-family: 'Poppins SemiBold';
    font-size: 16px;
}

/* ====== CONTAINER ALL NEWS ======= */
.container-all-news {
    padding-top: 40px!important;
}
.container-all-news .news-title {
    padding-bottom: 30px;
}
.news-carousel {
    width: 100%;
    max-width: 1170px;
    height: 390px;
    margin: auto;
    background-color: transparent;
    padding-bottom: 30px;
}
.swiper-slide {
    background: white;
    width: 315px!important;
    height: 387px!important;
    padding: 16px;
    border-radius: 12px!important;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex!important;
    flex-direction: column!important; 
}
.img-news {
    width: 100%;
    height: 158px;
    border-radius: 12px!important;
    background-color: white;
}
.img-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.title-news {
    font-family: 'Poppins Medium';
    font-size: 18px;
    text-align: left;
    padding-top: 16px;
}
.content-news {
    font-family: 'Poppins Regular';
    font-size: 16px;
    text-align: left;
    padding-top: 10px;
    overflow: hidden;
    max-height: 120px;
    background-color: none!important;
}
.content-news span {
    background-color: none!important;
}
.content-news.expanded {
    max-height: none; /* Affichage complet au clic */
}
.read-more-news {
    display: none; /* Caché par défaut */
    color: black;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    font-family: 'Poppins SemiBold';
    font-size: 16px;
}
.date-news {
    font-family: 'Poppins Regular';
    font-size: 14px;
    text-align: right;
    margin-top: auto;
}

/* ==== MODAL DE LECTURE DE CONTENU ==== */
.modal-content-news {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    box-sizing: border-box;
    /* Centrage parfait avec flex */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Modale visible */
.modal-content-news.show {
    opacity: 1;
    visibility: visible;
}
.modal-news-title {
    font-family: 'Poppins SemiBold';
    font-size: 22px;
    padding-bottom: 10px;
}
/* Contenu de la modale */
.modal-news-body {
    background: white;
    width: 100%;
    max-width: 580px; /* Largeur max */
    max-height: 680px; /* Hauteur max */
    height: 100%;
    width: 100%;
    overflow-y: auto; /* Active le scroll si le texte est trop long */
    padding: 40px 20px 20px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative; /* Nécessaire pour le bouton de fermeture */
    border-radius: 8px!important;
    font-family: 'Poppins Regular';
    font-size: 16px;
}
/* Bouton de fermeture */
.close-modal-news {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
    color: red;
}
/* Bouton Lire plus */
.read-more-news {
    color: black;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    text-align: left;
}

@media (max-width: 1024px) {
    .navbar .container {
        padding-left: 0!important;
        padding-right: 0!important;
    }
}

@media (max-width: 980px) {
    .content-news-ahead {
        flex-flow: column;
    }
    .title-text-news {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .container-take-appointment-or-login {
        margin-top: 0;
        padding-left: 30px!important;
        padding-right: 30px!important;
    }
    .container-news-ahead,
    .container-all-news {
        padding-left: 30px!important;
        padding-right: 30px!important;
    }
}

@media (max-width: 540px) {
    .image-or-preview {
        min-width: unset!important;
        max-width: 100%!important;
    }
    .elements-header {
        display: flex;
        flex-flow: column;
    }
    .navbar .nav.pull-right {
        flex-flow: column;
    }
    .navbar .brand {
        margin: unset!important;
        padding: unset!important;
    }
}

@media (max-width: 320px) {
    .modal-news-body {
        max-width: calc(100% - 40px); /* Largeur = écran - 20px padding de chaque côté */
        max-height: calc(100% - 40px); /* Hauteur = écran - 20px padding haut/bas */
    }
}