@font-face {
    font-family: 'Satoshi';
    src: url('../assets/Satoshi-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/Satoshi-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/Satoshi-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/Satoshi-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('../assets/Satoshi-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    padding: 0 0 env(safe-area-inset-bottom);
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    background-color: #011c34;
    height: 8vh;
}

h1 {
    color: white;
}

a {
    text-decoration: none;
    color: white;
}

/*
 * header
 */
.image-container {
    position: relative;
    width: 100px;
    height: 100%;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    font-weight: 500;
}

.back-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.arrow {
    color: white;
    width: 25px;
}

.back-text {
    display: block;
}

.back-text-mobile {
    display: none;
}

/*
 * barre de recherche & formulaire
 */
.container {
    position: relative;
    width: 100%;
    height: 92dvh;
}

.settings-container {
    position: absolute;
    top: 2%;
    right: 2%;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*barre de recherche*/
.settings {
    background-color: white;
    border-radius: 10px;
    color: black;
    padding: 20px;
    z-index: 900;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.searchAdress,
#searchAdress-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background-color: #4DBDC6;
    color: black;
    cursor: pointer;
    border: 1px solid #4DBDC6;
    font-size: 14px;
}

#searchAdress-mobile {
    padding: 10px;
}

.mobile-btn-container {
    display: none;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
}

input[type=text],
input[type=number],
input[type=tel],
input[type=email] {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid rgba(21, 21, 21, 0.1);
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

.range {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

input {
    font-family: 'Inter', sans-serif;
}

input::placeholder {
    color: rgb(21, 21, 21, 0.5);
}

input:focus {
    outline: none;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgb(21, 21, 21, 0.1);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #4DBDC6;
    cursor: pointer;
    border-radius: 50%;
}

.suggestions {
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    background: white;
    width: calc(300px - 42px);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    top: 33%;
    border-radius: 5px;
    z-index: 999;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f2f2f2;
}

/*formulaire*/
.settings.formulaire {
    width: 100%;
    z-index: 800;
    padding: 0;
    opacity: 0;
    top: 0;
    transition: all 0.5s;
    display: none;
}

.form-container {
    position: relative;
    padding: 20px;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form.row {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.error-message {
    font-size: 12px;
    color: rgb(234, 1, 1);
}

.form.row .flex-col {
    flex: 1 0 0;
}

.croix {
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    z-index: 999;
    width: 10px;
    height: 10px;
}

.croix-mobile {
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    z-index: 999;
    width: 10px;
    height: 10px;
    display: none;
}

.croix img {
    width: 100%;
    height: 100%;
    background-color: #DCDCDC;
    border-radius: 50%;
    padding: 7px;
}

.devis {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background-color: #FCD434;
    color: black;
    cursor: pointer;
    border: 2px solid #FCD434;
    font-size: 14px;
}

/*
 * carte
 */
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.marker {
    background-repeat: no-repeat;
    background-size: 100%;
    height: 24px;
    width: 20px;
    cursor: pointer;
}

.marker:hover {
    cursor: pointer;
}

.popup {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 18px 0;
    color: black;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.50);
    border-radius: 10px;
}

.card {
    position: absolute;
    top: 100%;
    transform: translate(-50%, 0%);
    left: 50%;
    z-index: 999;
    cursor: initial;
}

.card_wrapper {
    display: flex;
    width: 320px;
    padding: 25px;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.50);
    border-radius: 10px;
}

.card_content_wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card_content {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
    font-size: 16px;
}

.card_content div p {
    margin: 0;
}

.text-grey {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.25);
}

.flex {
    display: flex;
    width: 100%;
}

.flex div {
    width: 50%;
}

.ecran_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.ecran {
    width: 50px;
    object-fit: cover;
}

.service {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.service_wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.service_wrapper h3,
.service_wrapper p {
    margin: 0;
}

.statut {
    padding: 4px 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close {
    height: 14px;
}

.close_wrapper {
    display: flex;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: #E1E1E1;
    font-size: 15px;
    font-weight: 500;
    width: max-content;
    margin-left: auto;
    cursor: pointer;
}

.close_wrapper p {
    margin: 0;
}

.mobile_card {
    border-radius: 20px 20px 0 0;
    background: #FFF;
    width: 100%;
    height: max-content;
    display: none;
    position: absolute;
    bottom: 0;
}

.anim-y {
    transform: translate(0%, -100%);
}

.triangle_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.triangle {
    width: 20px;
    vertical-align: bottom;
    margin-bottom: -2px;
}

.devis-card {
    display: none;
    padding: 10px 12px;
    border-radius: 50px;
    background: #4DBDC6;
    text-align: center;
    color: #01122E;
    font-size: 14px;
    font-weight: 400;
    border: none;
}

.mapboxgl-popup-tip {
    display: none;
}

.mapboxgl-popup .mapboxgl-popup-content {
    transform: translate(-50%, 2.5%);
    position: absolute;
    top: 100%;
    left: 50%;
    padding: 0;
    width: 250px;
    background-color: transparent;
}

.mapboxgl-popup-content .mapboxgl-popup-close-button {
    font-size: 46px;
    border: none;
}

.mapboxgl-popup-content .mapboxgl-popup-close-button:hover {
    background-color: transparent;
}

.mapboxgl-popup-content .mapboxgl-popup-close-button:focus-visible {
    border: none;
    outline: none;
}

.mask_map {
    display: none;
    opacity: 0;
}

.anim-mask_map {
    display: block;
    opacity: 0.5;
    background-color: #000;
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
}

/*
 * popup
 */
.popup-message {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 20px;
    max-width: 400px;
}

.popup-message button {
    padding: 10px 20px;
    border: none;
    background: #4DBDC6;
    color: black;
    border-radius: 99px;
    cursor: pointer;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/*
 * cookies
 */
.btn-primary {
    background-color: #4DBDC6;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #3ca8b0;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e1e1e1;
}

.btn-outline {
    background-color: transparent;
    color: #333;
    padding: 9px 19px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

/* Préférences */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 8999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

#cookie-consent-popup {
    position: relative;
    max-width: 500px;
    width: 90%;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9000;
    animation: fade-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    padding: 20px;
}

.cookie-consent-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
}

.cookie-consent-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    justify-content: end;
    gap: 10px;
    margin-top: 20px;
}

/* Settings */
#cookie-settings-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9000;
    transition: transform 0.3s ease;
}

#cookie-settings-button:hover {
    transform: scale(1.1);
}

#cookie-settings-button img {
    width: 25px;
    height: 25px;
}

.logo-cookie {
    max-width: 150px;
    margin-bottom: 10px;
}

#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.cookie-preferences-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.cookie-preferences-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.cookie-preferences-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #4DBDC6;
}

input:disabled + .cookie-slider {
    background-color: #4DBDC6;
    opacity: 0.6;
    cursor: not-allowed;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-description {
    flex: 1;
}

.cookie-description h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #333;
}

.cookie-description p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cookie-preferences-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

@media (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%;
    }

    #cookie-settings-button {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    #cookie-settings-button img {
        width: 24px;
        height: 24px;
    }

    .cookie-option {
        flex-direction: column;
    }

    .cookie-switch {
        margin-bottom: 10px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        justify-content: center;
    }
}

/*
 * responsive
 */
@media (max-width: 1024px) {
    header {
        padding: 0 40px;
    }

    h1 {
        font-size: 30px;
    }

    .arrow {
        width: 20px;
    }

    .back-text {
        display: none;
    }

    .back-text-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 20px;
    }

    .button {
        font-size: 16px;
        width: 100%;
    }

    .devis {
        font-size: 16px;
    }

    .image-container {
        width: 75px;
        height: auto;
    }

    .settings-container {
        top: auto;
        bottom: 0;
        right: auto;
        left: auto;
        width: 100%;
        position: fixed;
        z-index: 999;
    }

    .settings {
        border-radius: 20px 20px 0 0;
    }

    /*boutons mobile*/
    .mobile-btn-container {
        display: flex;
        gap: 10px;
        position: relative;
    }

    .devis-mobile {
        display: flex;
        position: absolute;
        justify-content: center;
        align-items: center;
        padding: 10px;
        border-radius: 20px;
        background-color: #FCD434;
        color: black;
        cursor: pointer;
        border: 1px solid #FCD434;
        font-size: 14px;
        width: 49%;
        right: 0;
        z-index: 900;
    }

    #searchAdress {
        display: none;
    }

    #searchAdress-mobile {
        display: flex;
        z-index: 998;
        transition: all 0.5s;
    }

    /*formulaire*/
    .settings.formulaire {
        top: 105%;
        z-index: 999;
        opacity: 1;
    }

    .croix {
        display: none;
    }

    .croix-mobile {
        display: block;
    }

    .card {
        position: initial;
        transform: translate(0, 0);
    }

    .triangle_wrapper {
        display: none;
    }

    .card_wrapper {
        width: inherit;
        box-shadow: none;
    }

    .ecran_wrapper {
        display: none;
    }

    .devis-card {
        display: block;
    }
}

@media (max-width: 450px) {
    header {
        padding: 0 20px;
    }

    h1 {
        font-size: 16px;
    }

    .arrow {
        width: 15px;
    }

    .image-container {
        width: 50px;
    }

    .button {
        font-size: 14px;
    }

    .devis-mobile {
        font-size: 14px;
    }

    .form.row .flex-col {
        width: 40%;
    }

}