@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.woff2") format("woff2"),
        url("../fonts/Roboto-Regular.woff") format("woff"),
        url("../fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Medium.woff2") format("woff2"),
        url("../fonts/Roboto-Medium.woff") format("woff"),
        url("../fonts/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Bold.woff2") format("woff2"),
        url("../fonts/Roboto-Bold.woff") format("woff"),
        url("../fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Light.woff2") format("woff2"),
        url("../fonts/Roboto-Light.woff") format("woff"),
        url("../fonts/Roboto-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Italic.woff2") format("woff2"),
        url("../fonts/Roboto-Italic.woff") format("woff"),
        url("../fonts/Roboto-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --langage-selector: rgb(34, 33, 33);
    --black: rgb(51, 51, 51);
    --black-shadow: rgba(0, 0, 0, 0.15);
    --dark-blue: rgb(50, 39, 174);
    --blue: rgb(52, 152, 219);
    --blue-80: rgb(52, 152, 219, 0.8);
    --blue-10: rgb(52, 152, 219, 0.1);
    --blue-0: rgb(52, 152, 219, 0);
    --violet: rgb(162, 155, 254);
    --green: rgb(35, 176, 22);
    --orange: rgb(219, 166, 52);
    --yellow: rgb(208, 237, 47);
    --grey: rgb(218, 218, 220);
    --bcg: rgb(244, 244, 244);
    --white: rgb(250, 250, 250);
}

*,
html,
body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 62.5%;
    scrollbar-width: none;
}

html { scrollbar-gutter: stable; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bcg);
    font-family: "Roboto", Arial, sans-serif;
    font-synthesis: none;
    /*dire au navigateur de ne pas inventer un faux style si la variante existe*/
    overflow: hidden;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    visibility: 0;
}

main {
    flex: 1;
    /* ⬅️ pousse le footer en bas */
}

/*************** install-pwa **********************/
#installPWA {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background-color: #ff9d00;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-size: 1.4rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: none;
    opacity: 0;
}

@media (min-width: 768px) {
    #installPWA {
        display: none !important;
    }
}

h1, 
h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--dark-blue);
}

h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--blue);
}

h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--blue);
}

ul {
    text-align: left;
    font-size: 1.8rem;
    line-height: 1.6;
    list-style: none;
    color: var(--black);
}

p {
    font-size: 1.8rem;
    text-align: left;
    line-height: 1.6;
    margin-inline: auto;
    color: var(--black);
}

strong,
b {
    font-size: 1.8rem;
}

a {
    text-decoration: none;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--white);
    transition: 0.3s;
}

@media screen and (max-width: 2560px) and (min-width: 1441px) {

    p,
    strong,
    b {
        font-size: 1.9rem;
    }
}

@media screen and (max-width: 600px) {
    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    p {
        font-size: 1.6rem;
    }
}

a:hover {
    color: var(--white);
}

.banner,
.btn,
.logo-box,
.slogan,
.language-selector,
.lang-option,
.login,
.navMenu,
.formule-container,
.a-propos-img-container,
.valeurs,
.garanties,
.page-services,
.faq-question,
.faq-devis,
.devis-connexion,
.input-row,
.input-group,
.logement-row,
.row,
.item-div,
.qty-wrapper,
.search-clear-v2,
.cart-remove-v2,
.item-imgwrap-v2,
.checkbox-info-row,
.btn-calc,
.result-line,
.footer-content,
.author,
.social-link,
.social-icons,
main.container-404,
.respo-links,
.respo-links a,
.burger-container .burger-wrap,
#cookie-banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form,
.form-group,
.equipe-container {
    display: flex;
}

.formule-container,
.service-container,
.valeurs,
.reasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.btn {
    position: relative;
    width: 30rem;
    height: 4.5rem;
    margin: 3.5rem auto;
    overflow: hidden;
    border: 0.2rem solid var(--green);
    border-radius: 0.6rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    color: var(--green);
    background: var(--white);
    transition: color 0.5s;
    z-index: 10;
}

.btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: -100%;
    top: 0;
    background: var(--green);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--white);
}

.picto {
    position: fixed;
    width: 10%;
    right: 7%;
    top: 23rem;
    mix-blend-mode: multiply;
    opacity: .5;
}

@media screen and (max-width: 1200px) {
    .picto {
        display: none;
    }
}

/************* SCROLL BUTTON ************/
.scroll-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 3.5rem;
    cursor: pointer;
}

/***************************************************/
/* Mobile + tablette */
@media (max-width: 1024px) {
    .scroll-top {
        display: none !important;
    }
}

/******************** BANNER *********************/
.banner {
    width: 100vw;
    height: 12rem;
    background-color: var(--black);
}

.logo-box {
    width: 20%;
    height: 100%;
}

.logo-box .logo-img {
    width: 18rem;
    height: 7.839rem;
    margin-inline: auto;
}

.slogan {
    width: 60%;
    height: 100%;
}

.banner-slogan{
    font-size: clamp(1.6rem, 2.5vw, 2.8rem);
    font-weight: 700;
    font-style: italic;
    text-align: center;
    color: var(--blue);
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.05rem;
}


.pro {
    color: var(--white);
    font-size: clamp(1.6rem, 2.5vw, 2.8rem);
}

.language-selector {
    flex-direction: row;
    width: 20%;
    height: 80%;
    margin: auto 0;
    border-radius: 0.6rem;
    gap: 2rem;
}

.lang-option {
    font-size: 1.6rem;
    color: var(--white);
    transition: color 0.3s;
}

.lang-option img {
    width: 2.5rem;
    height: auto;
    margin-right: 1rem;
}

.lang-option:hover {
    color: var(--yellow);
}

.lang-option.active {
    color: var(--yellow);
}

@media screen and (max-width: 1024px) {
    .logo-box {
        width: 25%;
    }

    .slogan {
        width: 50%;
    }

    .language-selector {
        width: 25%;
        gap: 1.5rem;
    }

    .banner-slogan {
        font-size: clamp(1.4rem, 2.3vw, 2.4rem);
    }
}

@media screen and (max-width: 768px) {
    .banner {
        flex-direction: column;
        height: auto;
        padding: 1rem 2rem;
    }

    .logo-box,
    .language-selector {
        width: 100%;
        justify-content: center;
    }

    .slogan {
        width: 100%;
        order: 2;
        margin-top: 1rem;
    }

    .banner-slogan {
        font-size: clamp(1.2rem, 2vw, 2rem);
        color: var(--blue);
    }

    .language-selector {
        order: 3;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-box {
        margin-top: 2.5rem;
    }

    .language-selector {
        margin-top: 0;
        width: 40%;
        gap: 1rem;
    }

    .slogan {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .banner-slogan {
        opacity: 0;
    }

    .logo-box {
        width: 60%;
    }
}

/******************** HEADER *********************/
header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 100;
    background-color: var(--grey);
    padding: 2rem 0;
    text-align: center;
}

header.fixed {
    position: fixed;
    top: 0;
    box-shadow: 0 0.02rem 0.5rem rgba(0, 0, 0, 0.1);
}

nav#navMenu {
    position: relative;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.nav-links .links {
    list-style: none;
    flex: 0 1 auto;
}

.nav-links .links a {
    display: inline-block;
    white-space: nowrap;
    font-size: 2rem;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 0.4rem;
    border: 0.1rem solid var(--black);
    color: var(--dark-blue);
    background-color: var(--white);
    transition: color 0.5s ease-in-out, background-color 0.4s ease-in-out;
}

nav ul .links a:hover,
nav ul .links a.active {
    color: var(--white);
    background-color: var(--dark-blue);
}

.responsive {
    display: none;
    width: 100%;
    max-width: 76.8rem;
    margin: 1rem auto;
    background-color: var(--grey);
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 5rem);
    padding: 0;
}

.responsive.show {
    display: grid;
}

.respo-links {
    list-style: none;
    border: 0.1rem solid var(--black);
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.respo-links a {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-blue);
    background-color: var(--white);
    transition: background-color 0.3s, color 0.3s;
}

.respo-links a:hover,
.respo-links a.active {
    background-color: var(--dark-blue);
    color: var(--white);
}

.burger-container,
.burger-wrap {
    display: none;
}

.burger-wrap {
    background-color: var(--white);
    border: 0.1rem solid black;
}

.burger {
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    margin-right: 2%;
}

.burger span {
    height: 0.3rem;
    width: 100%;
    background-color: var(--black);
}

.burger.open span:nth-child(1) {
    transform: translateY(1.1rem) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-1.1rem) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .burger-container {
        display: flex;
        justify-content: center;
        width: auto;
        z-index: 1001;
    }

    .burger-container .burger-wrap {
        width: 3rem;
        height: 3rem;
        border-radius: 0.4rem;
        z-index: 999;
    }

    .burger-container .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .responsive {
        display: none;
    }

    .responsive.show {
        display: grid;
    }

    .nav-links,
    .links {
        display: none;
    }
}

/******************** ACCUEIL *********************/
.intro-container {
    margin-top: 5rem;
    padding: 2.5rem 0;
    text-align: center;
    background: linear-gradient(to right,
            var(--blue-0),
            var(--blue-80) 50%,
            var(--blue-0));
}

.intro-index {
    width: 60%;
    margin-inline: 20%;
    padding-left: 3rem;
    border-left: 0.2rem solid var(--dark-blue);
}

.bon-visit {
    text-align: center;
    margin-top: 2rem;
    border-left: none;
}

.hero {
    width: 60%;
    margin-inline: 20%;
    margin-bottom: 5rem;
    border: 0.2rem solid var(--dark-blue);
    padding: 3rem;
    border-radius: 0.6rem;
    text-align: center;
    color: var(--white);
    background-color: var(--bcg);
}

img.smallshieldicon {
    width: 1.8rem;
    fill: var(--dark-blue);
    vertical-align: middle;
}

.hero p {
    margin-inline: 7%;
    text-align: center;
}

.hero .assurance {
    margin-top: 1rem;
    font-size: 1.8rem;
}

.assurance i {
    padding: 0 0.5rem;
    scale: 130%;
}

.accueil-img-container {
    width: 33%;
    margin-inline: auto;
}

.img-container img {
    width: 67.583rem;
    height: 45.055rem;
}

.formules {
    padding: 8rem 2rem;
    text-align: center;
    background-color: var(--white);
}

.formule-container {
    gap: 3rem;
    padding: 2rem;
}

.formule {
    width: 25rem;
    min-height: 30rem;
    border-radius: 0.8rem;
    padding: 2rem;
    background-color: var(--black);
    transition: transform 0.3s;
}

.formule p.formule-price,
.formule h3 {
    color: var(--yellow);
}

.formule p {
    color: var(--white);
    text-align: center;
}

img.formulicons {
    margin-bottom: 1rem;
    width: 4rem;
}

.formule:hover {
    transform: scale(1.05);
}

.page-services {
    margin: 3.5rem 0;
}

.services {
    padding: 4rem 2rem;
    text-align: center;
}

.service-container {
    gap: 3rem;
    padding-bottom: 1rem;
}

.service {
    width: 30rem;
    height: 30rem;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 0.8rem var(--black-shadow);
    text-align: center;
    background-color: var(--white);
    transition: transform 0.3s;
}

.service h3 {
    margin-top: 1rem;
}

.service p {
    text-align: center;
}

img.serviceicons {
    margin-bottom: 1rem;
    height: 4rem;
}

@media screen and (max-width: 2560px) {
    .intro-index {
        width: 40%;
        margin-inline: 30%;
        padding-left: 5rem;
    }

    .hero-devis p {
        margin-inline: 6%;
    }
}

@media screen and (max-width: 1920px) {
    .intro-index  {
        width: 50%;
        margin-inline: 25%;
        padding-left: 5rem;
    }
}

@media screen and (max-width: 1280px) {
    .intro-index  {
        width: 60%;
        margin-inline: 20%;
        padding-left: 5rem;
    }
}

@media screen and (max-width: 1024px) {
    .intro-index  {
        width: 70%;
        margin-inline: 15%;
        padding-left: 5rem;
    }

    .hero {
        width: 70%;
        margin-inline: 15%;
    }
}

@media screen and (max-width: 992px) {
    .intro-index  {
        width: 60%;
        margin-inline: 20%;
        padding-left: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        width: 90%;
        margin-inline: 5%;
    }

    .intro-index {
        width: 80%;
        margin-inline: 10%;
        padding-left: 3rem;
    }
}

@media screen and (max-width: 600px) {
    .accueil-img-container {
        width: 40%;
        margin-inline: auto;
    }
}

@media screen and (max-width: 480px) {
    .hero-devis p {
        text-align: center;
    }

    .intro-index  {
        text-align: center;
    }

    .formules .btn-decouvrir {
        margin-bottom: 0;
    }
}

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

    .accueil-img-container .btn-decouvrir,
    .intro-container .btn-decouvrir,
    .services .btn-decouvrir,
    .formules .btn-decouvrir {
        width: 28rem;
    }
}

/******************** À PROPOS *********************/
.equipe {
    width: auto;
    text-align: left;
    padding: 5rem 10rem;
    margin-top: 5rem;
    background-color: var(--grey);
}

.equipe p {
    margin-inline: auto;
    max-width: 80rem;
}

.equipe-container {
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.equipe-container .membre {
    text-align: center;
    max-width: 18rem;
}

.equipe-container .membre p {
    text-align: center;
}

.photo {
    width: 15rem;
    height: 20rem;
    background-color: var(--grey);
    border: 0.1rem solid var(--black);
    border-radius: 0.8rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0.4rem 0.8rem var(--black-shadow);
    transition: 0.3s;
    overflow: hidden;
}

.photo img {
    width: 16rem;
    object-fit: contain;
    display: block;
}

.intro-laurette {
    font-style: italic;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.title-wrapper .name {
    color: var(--dark-blue);
    padding: 0;
    margin: 0;
}

.title-wrapper .title {
    padding: 0;
    margin: 0;
}

.bandeau-text {
    margin: 5rem 0;
}

.debordement,
.nos-garanties {
    margin-top: 7rem;
    text-align: center;
    font-size: 2.4rem;
    color: var(--dark-blue);
}

.a-propos-img-container {
    display: flex;
    flex-direction: column;
}

.a-propos-img-container img {
    width: 80rem;
    margin-inline: auto;
}

.a-propos-img-container span {
    font-size: 1.5rem;
    font-style: italic;
}

.devis {
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 1.8rem;
    text-decoration: underline;
}

.valeurs {
    gap: 3rem;
    padding: 0 0 4rem 0;
}

.valeur {
    width: 23rem;
    height: 25rem;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 0.8rem var(--black-shadow);
    text-align: center;
    background-color: var(--white);
}

.valeur h3 {
    margin-top: 2.5rem;
}

.valeur p {
    text-align: center;
}

img.garanticon {
    margin-bottom: 1rem;
    height: 4.5rem;
}

@media screen and (max-width: 768px) {
    .equipe p {
        max-width: 65rem;
    }
}

@media screen and (max-width: 600px) {
    .a-propos-img-container img {
        width: 50rem;
        height: auto;
    }

    .equipe {
        width: auto;
        text-align: left;
        padding: 5rem 5rem;
        margin-top: 5rem;
        background-color: var(--grey);
    }
}

@media screen and (max-width: 480px) {
    .a-propos-img-container img {
        width: 38rem;
        height: auto;
    }

    .equipe h2 {
        margin-bottom: 0;
    }

    .equipe p {
        text-align: center;
        padding: 0;
    }

    .debordement {
        margin-inline: 2%;
    }

    .equipe-container {
        margin-top: 0;
    }
}

@media screen and (max-width: 375px) {
    .a-propos-img-container img {
        width: 33rem;
        height: auto;
    }
}

/******************** NOS SERVICES *********************/
.page-services {
    flex-wrap: wrap;
    padding: 5rem;
    gap: 4rem;
}

.page-service {
    width: 30rem;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1rem var(--black-shadow);
    text-align: center;
    background: var(--grey);
    transition: transform 0.3s;
}

.hero .intro-nos-formules,
.hero .intro-nos-services {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.hero-formules-services p {
    text-align: left;
}

.formules-list {
    text-align: left;
    margin: 3rem 5rem;
}

.for-mule {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

/*également les icones de services!!!*/
img.for-mule-icons {
    width: 4rem;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.for-mule .texte p {
    margin: 0;
    line-height: 1.5;
}

.prices {
    margin-top: 0.5rem;
    font-size: 1.6rem;
    color: var(--dark-blue);
}

.services-list {
    text-align: left;
    margin: 3rem 5rem;
}

.ser-vice {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.ser-vice .texte p {
    margin: 0;
    line-height: 1.5;
}

.photo-deco1,
.photo-deco2,
.photo-deco3,
.photo-deco4 {
    margin: 10rem 25%;
    overflow: hidden;
}

.photo-deco img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.why-choose-us {
    padding: 5rem;
    text-align: center;
    background-color: var(--bcg);
}

.reasons {
    gap: 3rem;
    padding-bottom: 1rem;
}

.reason {
    width: 25rem;
    height: 30rem;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 1rem var(--black-shadow);
    background: var(--white);
}

.reason h4 {
    margin-top: 1.5rem;
}

.reasons .reason p {
    text-align: center;
}

.garanties {
    flex-direction: column;
    margin-bottom: 5rem;
    text-align: center;
    margin-top: 5rem;
    padding: 2.5rem 0;
    text-align: center;
    background: linear-gradient(to right,
            var(--blue-0),
            var(--blue-80) 50%,
            var(--blue-0));
}

.garanties h3 {
    color: var(--black);
}

.garant3 {
    min-height: 10rem;
    text-align: left;
    margin-top: 2rem;
}

img.validateicon {
    width: 2rem;
}

.garant3 p {
    color: var(--black);
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .photo-deco {
        width: 100%;
        margin-inline: auto;
        margin: 5rem 0;
        overflow: hidden;
    }

    .equipe p {
        max-width: 65rem;
    }
}

@media screen and (max-width: 600px) {
    .hero-formules-services {
        width: 95%;
        margin-inline: auto;
        margin-bottom: 5rem;
        border: 0.2rem solid var(--dark-blue);
        padding: 3rem 0;
        border-radius: 0.6rem;
        text-align: center;
        color: var(--white);
        background-color: var(--bcg);
    }
}

@media screen and (max-width: 480px) {
    .a-propos-img-container img {
        width: 38rem;
        height: auto;
    }

    .equipe p {
        text-align: center;
        padding: 5rem 1rem;
    }

    .garanties p,
    .garant3 p {
        margin-inline: 2%;
    }

    .garant3-intro {
        text-align: center;
    }

    .garant3 i {
        padding: 1rem;
    }
}

@media screen and (max-width: 375px) {
    .a-propos-img-container img {
        width: 33rem;
        height: auto;
    }
}

/******************** FAQ *********************/
.faq {
    max-width: 80rem;
    margin: 5rem auto;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 0.8rem var(--black-shadow);
    background-color: var(--white);
}

.faq h3 {
    text-align: left;
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 0.1rem solid var(--grey);
}

.faq-question {
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--black);
    background: linear-gradient(to left,
            var(--blue-80) 0%,
            var(--blue-10) 100%);
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 1rem;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--black);
}

.faq-answer b {
    font-size: 1.6rem;
}

.faq-answer a {
    color: var(--dark-blue);
    font-size: 1.6rem;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.chevron {
    padding: 0 0.2rem;
    width: 1.6rem;
    transition: transform 0.3s;
    color: var(--black);
}

.faq-question.active .chevron {
    transform: rotate(180deg);
}

.faq-contact .btn {
    margin-top: 0;
}

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

    .faq-question,
    .faq-answer {
        font-size: 1.6rem;
    }
}

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

    .faq-question,
    .faq-answer {
        font-size: 1.4rem;
    }
}

/******************** DEVIS *********************/
.italic {
    max-width: 80rem;
    margin-inline: auto;
    padding-left: 3rem;
}

.btn-devis {
    margin-bottom: 0.7rem;
    margin-top: 1.4rem;
}

#anchor1 {
    scroll-margin-top: 90px;
}

/* adapte à la hauteur de ton header */
#distance {
    scroll-margin-top: 110px;
}

#vol-recommended {
    margin-bottom: 3rem;
}

.recommended {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--grey);
}

.attention {
    color: var(--black);
    font-size: 1.6rem;
    font-style: italic;
}

.important {
    color: var(--white);
    font-weight: 500;
    font-size: 1.6rem;
    background-color: var(--black);
    padding: 0.5rem 1rem;
    display: inline-block;
    margin: 1rem 0;
}

.devis-container {
    max-width: 80rem;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 0.8rem;
    text-align: center;
    box-shadow: 0 0.4rem 0.8rem var(--black-shadow);
    background-color: var(--white);
}

.calcul {
    padding: 0.5rem 0;
    margin-top: 2.5rem;
}

.calcul p {
    text-align: center;
    color: black;
    margin-inline: 3%;
}

img.infoicon {
    width: 2rem;
    margin-right: 1rem;
}

.row {
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.devis-container .depart-arrivee {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-left: 2rem;
}

.logement-row {
    margin-top: 1rem;
    background-color: rgb(191, 227, 249);
    padding: 1rem 0;
}

.logement-row label {
    margin: 0 2.5rem;
}

.input-row {
    margin-top: 5rem;
    margin-bottom: 5rem;
    gap: 3rem;
}

.logement-row {
    margin-bottom: 1.5rem;
    gap: 3rem;
}

.input-group {
    flex-direction: column;
    text-align: center;
}

.input-group p {
    font-size: 1.6rem;
}

.input-group input{
    width: 100%;
    padding: 0.8rem;
}

#etg {
    font-size: 1.6rem;
}

#etages_depart,
#etages_arrivee {
    width: 6rem;
}

.option-box {
    width: 30%;
    padding: 1rem;
    border: 0.1rem solid var(--black);
    border-radius: 0.4rem;
    text-align: center;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-box:hover {
    color: var(--white);
    background-color: var(--blue);
}

input,
select {
    padding: 1rem;
    border: 0.1rem solid var(--grey);
    border-radius: 0.4rem;
    font-size: 1.6rem;
}

.result {
    text-align: center;
    margin-top: 7rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    color: var(--black);
}

#ascenseur-group {
    opacity: 0;
}

.btn-contact {
    width: 40rem;
    margin-top: 0;
    margin-bottom: 0;
}

/****************************** Devis Wrapper de pdf ************************/
.attach-devis-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 80rem;
    margin: 3rem auto;
    padding: 2rem;
    border: 0.1rem solid var(--black);
    background-color: var(--grey);
    border-radius: 0.8rem;
    gap: 1.5rem;
}

.checkbox-info-row {
    flex-wrap: wrap;
    gap: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    all: unset;
    appearance: none;
    min-width: 1.8rem;
    min-height: 1.8rem;
    aspect-ratio: 1 / 1;
    /* 🧙‍♂️ LA CLÉ pour garder le carré */
    box-sizing: border-box;
    border: 0.1rem solid var(--black);
    background-color: var(--white);
    color: var(--dark-blue);
    border-radius: 0.3rem;
    position: relative;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0.5rem;
    width: 0.5rem;
    height: 1rem;
    border: solid var(--blue);
    border-width: 0 0.3rem 0.3rem 0;
    transform: rotate(45deg);
}

.checkbox-group label {
    cursor: pointer;
}

.info-group {
    flex: 1 1 auto;
}

.info-group i {
    scale: 1.3;
    margin-right: 0.9rem;
}

.info-devis {
    font-size: 1.3rem;
    text-align: center;
    color: var(--black);
}

.info-devis p {
    padding: 0.3rem;
}

.info-devis i {
    font-size: 1.3rem;
    padding-top: 0.5rem;
}

#devis-estimatif {
    min-height: 4rem;
    display: block;
    margin-top: 2rem;
    text-align: center;
}

.loader {
    margin: 1rem auto;
    border: 0.4rem solid #ccc;
    border-top: 0.4rem solid #0066cc;
    border-radius: 50%;
    width: 3.6rem;
    height: 3.6rem;
    animation: spin 0.8s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.status-message,
.status-success {
    background-color: var(--green);
    color: var(--white);
}

.status-error {
    background-color: red;
    color: var(--white);
}

@media screen and (max-width: 768px) {
    .devis-container {
        width: 90%;
        padding: 1.5rem;
    }

    .row,
    .logement-row,
    .input-row {
        flex-direction: column;
        gap: 1rem;
    }

    .option-box {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 450px) and (min-width: 320px) {
    .btn-contact {
        width: 90%;
        max-width: 32rem;
        margin: 0 auto;
        box-sizing: border-box;
        display: block;
    }

    .checkbox-group input[type="checkbox"] {
        width: 1.6rem;
        height: 1.6rem;
        aspect-ratio: 1 / 1;
    }
}

/******************** CONTACT *********************/
.recap-devis {
    margin-bottom: 5rem;
}
.contact-container {
    width: 30%;
    margin: 7rem 35%;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 0.8rem var(--black-shadow);
    text-align: center;
    background-color: var(--white);
}

.contact-intro {
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 0.8rem;
    text-align: left;
    color: var(--white);
    background: var(--dark-blue);
}

.contact-info p {
    margin-left: 2.5rem;
    font-weight: 400;
    line-height: 4rem;
    color: var(--white);
}

img.contact-info-i {
    width: 2rem;
    margin-right: 0.8rem;
}

.contact-form {
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input[type="date"] {
    padding: 1rem;
    font-size: 1.6rem;
    border-radius: 0.6rem;
    border: 0.1rem solid var(--black);
    width: 100%;
    box-sizing: border-box;
}

.contact-form .btn {
    margin-top: 0;
}

.form-group {
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 400;
    position: left;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 0.4rem;
    border-color: var(--black);
    box-sizing: border-box;
}

textarea {
    height: 15rem;
    resize: none;
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: 0.4rem;
    border-color: var(--black);
    box-sizing: border-box;
}

textarea::placeholder {
    font-size: 1.4rem;
}

.document-joint {
    color: var(--white);
    border-radius: 0.4rem;
}

.document-joint p {
    text-align: center;
    color: var(--white);
}

p[id$="-error"] {
    /* Style pour les messages d'erreur */
    color: red;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

#phone-error-fr,
#phone-error-en,
#email-error-fr,
#email-error-en,
#date-error-fr,
#date-error-en {
    display: none;
    color: red;
    font-size: small;
}

/********************ReCaptCha**********************/
.sr-only {
    font-size: 1.6rem;
}
.g-recaptcha {
    display: block;
    margin: 0 auto;
}

/***************************************************/
@media screen and (max-width: 1440px) {
    .contact-container {
        width: 50%;
        margin: 7rem 25%;
    }
}

@media screen and (max-width: 1024px) {
    .contact-container {
        width: 70%;
        margin: 7rem 15%;
    }

    .contact-info p {
        font-weight: 300;
    }

    .contact-info i {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 600px) {
    .contact-container {
        width: 80%;
        margin: 7rem 10%;
    }
}

@media screen and (max-width: 480px) {
    .contact-info strong {
        font-size: 1.2rem;
    }

    .contact-container p {
        text-align: center;
    }

    .contact-info p {
        font-size: 1.2rem;
        margin-left: 0.5rem;
        text-align: left;
    }

    form .btn {
        max-width: 90%;
    }
}

/******************** FOOTER *********************/
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--white);
    background-color: var(--black);
}

.footer-content {
    flex-direction: column;
    gap: 1rem;
}

.footer-content span {
    font-size: 1.6rem;
}

.link-wkp {
    width: 6rem;
    height: auto;
}

.link-wkp-txt {
    color: var(--yellow);
}

.link-wkp img {
    object-fit: contain;
    filter: brightness(100%);
    transition: filter 0.3s ease;
}

.link-wkp:hover img {
    filter: brightness(150%);
}

.footer-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--blue);
}

.author {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.author p {
    text-align: center;
    font-size: 1.4rem;
    color: var(--grey);
    margin: 1%;
}

.social-icons {
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 4rem;
    cursor: pointer;
    transition: .5s;
}

.social-link:hover {
    opacity: .5;
}

@media screen and (max-width: 480px) {
    .author p {
        font-size: 1.3rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 375px) {
    .author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .link-wkp {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .social-icons {
        gap: 1rem;
    }
}

/******************** PAGES ANNEXES *********************/
.mentions-legales,
.cgv,
.confidentialite {
    margin-inline: 20%;
    text-align: left;
}

.mentions-legales h2,
.cgv h2,
.confidentialite h2 {
    text-align: left;
    margin-top: 3.5rem;
}

.mailto {
    color: var(--dark-blue);
}

.mailto:hover {
    text-decoration: underline;
    color: var(--blue);
}

.mentions-legales li,
.cgv li,
.confidentialite li {
    font-size: 1.8rem;
}

.mentions-legales li a {
    color: var(--dark-blue);
}

.mentions-legales li a:hover {
    text-decoration: underline;
    color: var(--blue);
}

.annexe {
    margin-bottom: 5rem;
}

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

    .mentions-legales,
    .cgv,
    .confidentialite {
        margin-inline: 15%;
        text-align: left;
    }
}

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

    .mentions-legales,
    .cgv,
    .confidentialite {
        margin-inline: 10%;
        text-align: left;
    }
}

/******************** CALCULATEUR CUBAGE ****************/
.picub {
    left: 7%;
}

.h1-calc {
    margin-top: 2.8rem;
    text-align: center;
}
.intro-cub {
    width: 100%;
    margin-inline: 20%;
    margin-bottom: 5rem;
    padding-left: 3rem;
    border-left: 0.2rem solid var(--dark-blue);
}

.intro-cub span {
    color: var(--dark-blue);
    font-size: 1.6rem;
}
.page-layout {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    gap: 2rem;
    max-width: 120rem;
    min-height: 100vh;
    margin: 0 auto;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.right-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.calculateur-v2 {
    display: flex;
    width: 100%;
    align-items: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 2rem;
    background: linear-gradient(to right,
            var(--blue-0),
            var(--blue-80) 50%,
            var(--blue-0));
}

.container-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 110rem;
    margin: 0 auto;
}

.titlebar-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.tabs-v2 {
    position: sticky;
    top: 0;
    padding: 1rem 0;
    gap: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
}

.tab-btn-v2 {
    border: 0.1rem solid rgba(0, 0, 0, .12);
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    border-radius: 0.6rem;
    transition: .5s;
}

.tab-btn-v2:hover {
    background-color: #f6f8df;
}

.tab-btn-v2[aria-selected="true"] {
    background-color: #f4fc9e;
}

.layout-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    width: 100%;
}

.tools-v2 {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.search-wrap-v2 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 0.1rem solid rgba(0, 0, 0, .12);
    background: #f1fcff;
    border-radius: 99.9rem;
    padding: 0.6rem 1rem;
    min-width: 23rem;
}

.search-icon-v2 {
    opacity: .65;
    display: flex;
    align-items: center;
}

.search-input-v2 {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.4rem;
    padding: 0.6rem 0.2rem;
    background: transparent;
}

.search-input-v2::-webkit-search-cancel-button {
    -webkit-appearance: none;
    /* Supprime la croix native des input type="search" (Chrome/Safari/Edge) */
}

.search-input-v2::-webkit-search-decoration {
    -webkit-appearance: none;
}

.search-clear-v2 {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 99.9rem;
    border: 0.1rem solid rgba(0, 0, 0, .12);
    background: rgba(0, 0, 0, .02);
    cursor: pointer;
    line-height: 1;
    font-size: 1.8rem;
    opacity: .8;
}

.search-clear-v2:hover {
    opacity: 1;
}

.search-wrap-v2:focus-within {
    border-color: rgba(0, 0, 0, .25);
    box-shadow: 0 0 0 0.3rem rgba(52, 152, 219, .15);
}

.items-v2 {
    display: grid;
    gap: 1.2rem;
    width: 100%;
}

.items-v2.is-fading-v2 {
    opacity: .35;
    transform: translateY(0.2rem);
    transition: opacity .3s ease, transform .3s ease;
}

.item-card-v2 {
    display: grid;
    grid-template-columns: 6rem 1fr auto;
    gap: 1.2rem;
    padding: 1.2rem;
    border: 0.1rem solid rgba(0, 0, 0, .12);
    border-radius: 1.4rem;
    background: #fff;
}

.item-imgwrap-v2 {
    width: 6rem;
    height: 6rem;
    background: rgb(211, 212, 212);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, .10);
}

.item-imgwrap-v2 img {
    max-width: 5.4rem;
    max-height: 5.4rem;
    filter: grayscale(100%);
    object-fit: contain;
}

.item-main-v2 {
    min-width: 0;
}

.item-name-v2 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}

.item-meta-v2 {
    margin-top: 0.4rem;
    font-size: 1.6rem;
    opacity: .8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.item-badge-v2 {
    border: 0.1rem solid rgba(0, 0, 0, .10);
    border-radius: 99.9rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, .02);
    white-space: nowrap;
}

.item-badges-v2 {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.item-badgeTag-v2 {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 99.9rem;
    border: 0.1rem solid rgba(0, 0, 0, .10);
    background: rgba(0, 0, 0, .03);
}

.badge-lourd-v2,
.badge-heavy-v2 {
    background: rgba(238, 24, 24, .10);
    border-color: rgba(238, 24, 24, .25);
}

.badge-fragile-v2 {
    background: rgba(255, 165, 0, .12);
    border-color: rgba(255, 165, 0, .30);
}

.badge-special-v2 {
    background: rgba(52, 152, 219, .12);
    border-color: rgba(52, 152, 219, .30);
}

.badge-valeur-v2,
.badge-high-value-v2 {
    background: rgba(20, 128, 74, .12);
    border-color: rgba(20, 128, 74, .30);
}

.item-controls-v2 {
    display: grid;
    gap: 0.8rem;
    justify-items: end;
    align-content: center;
}

.qty-row-v2 {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.qty-btn-v2 {
    background-color: #3498db;
    border: none;
    color: #fff;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1rem;
    font-size: 2rem;
    cursor: pointer;
    transition: .2s;
}

.qty-btn-v2:hover {
    background-color: #246d9e;
}

.qty-input-v2 {
    width: 6.4rem;
    height: 3.6rem;
    text-align: center;
    border: 0.1rem solid rgba(0, 0, 0, .15);
    border-radius: 1rem;
    font-size: 1.4rem;
    padding: 0.4rem;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input-v2::-webkit-outer-spin-button,
.qty-input-v2::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.linevol-v2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--black);
    text-align: right;
}

.lineVolume-v2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-v2 {
    position: fixed;
    width: 32.2rem;
    top: 50rem;
    right: 28rem;
    border: 0.1rem solid rgba(0, 0, 0, .12);
    border-radius: 1.6rem;
    background: #fff;
    /* ✅ contrainte de hauteur */
    max-height: calc(100vh - 8.6rem - 2rem);
}

.summary-card-v2 {
    padding: 1.4rem;
    border-radius: 1.6rem;
    /* ✅ remplir la hauteur du parent */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ✅ seul le panier scrolle */
#cartList-v2 {
    overflow-y: auto;
    flex: 1;
    /* prend l’espace dispo */
    min-height: 0;
    /* IMPORTANT pour que flex+overflow marche */
    overflow-anchor: none;
}

.summary-title-v2 {
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.cart-v2 {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    max-height: 32rem;
    overflow: auto;
    padding-right: 0.4rem;
}

.cart-empty-v2 {
    font-size: 1.3rem;
    opacity: .75;
    padding: 1rem;
    border: 0.1rem dashed rgba(0, 0, 0, .2);
    border-radius: 1.2rem;
    background: rgba(0, 0, 0, .02);
}

.cart-row-v2 {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem;
    border: 0.1rem solid rgba(0, 0, 0, .08);
    border-radius: 1.2rem;
    background: rgba(0, 0, 0, .02);
}

.cart-name-v2 {
    font-size: 1.3rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-qty-v2 {
    font-size: 1.3rem;
    opacity: .85;
    white-space: nowrap;
}

.cart-remove-v2 {
    width: 1.6rem;
    height: 1.6rem;
    border: 0.1rem solid rgba(0, 0, 0, .15);
    background: #ee1818;
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.cart-remove-v2:hover {
    background: #c51212;
}

.cart-remove-v2:focus {
    outline: 0.2rem solid #fff;
    outline-offset: -0.2rem;
}

.cart-remove-v2:active {
    transform: scale(0.9);
}

.is-removing-v2 {
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity .3s ease, transform .3s ease;
}

.totalbox-v2,
.totalbox-weight-v2 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1rem;
    border-top: 0.1rem solid rgba(0, 0, 0, .08);
    margin-top: 1rem;
    gap: 1.2rem;
    min-height: 0.5rem;
    /* ajuste à la taille finale */
    contain: layout paint;
    /* limite l'impact du reflow */
}

.totalbox-v2.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.totalbox-v2.is-visible {
    visibility: visible;
    opacity: 1;
}

.total-label-v2 {
    font-size: 1.3rem;
    opacity: .8;
}

.total-value-v2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
}

.total-weight-v2 {
    margin-top: 4px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.totalWeight-value-v2 {
font-size: 1.6rem;
opacity: .7;
}

.sr-only-v2 {
    position: absolute;
    width: 0.1rem;
    height: 0.1rem;
    margin: -0.1rem;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

#btnDevis {
    min-height: 4.5rem;
    min-width: 30rem;
    /* ou la largeur que tu veux */
}


@media screen and (max-width: 2000px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .center-column {
        order: 1;
    }

    .right-column {
        order: 2;
        margin-top: 20px;
        width: 100%;
    }

    .summary-v2 {
        position: static;
        margin-top: 20px;
        width: 100%;
        max-height: none;
    }
}

@media screen and (max-width: 486px) {
    .item-controls-v2 {
        transform: scale(85%);
    }

    .item-meta-v2 {
        display: none;
    }
}

/******************************DISTANCE*****************************/

.distance {
    display: flex;
    justify-content: center;
    background: linear-gradient(to right,
            var(--blue-0),
            var(--blue-80) 50%,
            var(--blue-0));
}

.container-dist {
    max-width: 80rem;
    padding: 0 1.6rem;
    margin: 0 auto;
    padding-bottom: 14rem;
}

.h1-dist {
    text-align: center;
    margin-top: 3.5rem;
}

.intro-dist-container {
    border-left: 0.2rem solid var(--dark-blue);
    padding-left: 3rem ;
}

.intro-dist-2 {
    margin: 3.5rem;
    font-weight: 700;
}

.cont-distance {
    display: flex;
    flex-direction: column;
}

.card-distance {
    padding-top: 2rem;
    background-color: rgb(128, 128, 128, 0.2);
}
.route-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5rem;
}

.form-row {
    max-width: 70%;
    margin-left: 15%;
}

.dist-fields {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dist-fields input {
    border-radius: 99.9rem;
    padding: 1.2rem 1.6rem;
    flex: 1;
}

.dist-fields input:focus {
    outline: none;
    background-color: #cdeec9;
}

/* optionnel : si tu veux que les champs distance aient une taille/spacing cohérents */
.dist-wrap {
    width: 50%;
    margin: 1rem 25% 4rem 25%;
    max-height: 5rem;
}

.from, .to {
    border-radius: 99.9rem;
    padding: 1.2rem 1.6rem;
    margin-bottom: 3rem;
}

.from:focus, .to:focus {
    outline: none;
    background-color: #cdeec9;
}

.btn-calc {
    font-size: 1.6rem;
    padding: 1rem 1rem;
    border-radius: 0.6rem;
    margin-bottom: 2rem;
    width: 15rem;
    cursor: pointer;
    transition: .5s;
}

.btn-calc:hover {
    background-color: #de1c1c;
    color: var(--white);
}

.form-error {
    color: #de1c1c;
}

.result-line {
    flex-direction: column;
    padding: 1.4rem;
    border-radius: 0.6rem;
    max-width: 70%;
    margin-left: 15%;
}

#d-a {
    padding-right: 1.4rem;
    color: var(--dark-blue);
}

.muted {
    font-size: 1.6rem;
}

#distanceOut {
    font-size: 2rem;
    font-weight: 700;
    color: #de1c1c;
}

.loader-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    font-size: 2rem;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 0.3rem solid rgba(0, 0, 0, 0.2);
    border-top-color: #2cf30d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loading[hidden] {
    display: none !important;
}

#google-maps {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-blue);
    transition: .3s ease-in-out;
}

#google-maps:hover {
    color: var(--white);
}

@media screen and (max-width: 757px) {
.dist-fields {
    flex-direction: column;
}
}
/********************** 404 ********************/
main.container-404 {
    position: relative;
    background-color: var(--grey);
    width: 100vw;
    height: 100vh;
}

main.container-404 p {
    margin-inline: 5%;
}

h1.erreur {
    position: absolute;
    font-size: 10rem;
    margin-bottom: 20rem;
}

.btn-404 {
    position: absolute;
    margin-top: 20rem;
}

@media screen and (max-width: 480px) {
    main.container-404 p {
        margin-inline: 15%;
    }

    h1.erreur {
        position: absolute;
        font-size: 5rem;
        margin-bottom: 20rem;
    }

    .btn-404 {
        position: absolute;
        margin-top: 20rem;
    }
}

@media screen and (max-width: 320px) {
    main.container-404 p {
        margin-inline: 10%;
    }

    h1.erreur {
        position: absolute;
        font-size: 4rem;
        margin-bottom: 20rem;
    }

    .btn-404 {
        position: absolute;
        margin-top: 20rem;
        width: 25rem;
    }
}

/****************** COOKIES BANNER*********************/
#cookie-banner {
    position: fixed;
    flex-direction: column;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    background: black;
    padding: 3rem;
    z-index: 9999;
    font-size: 1.6rem;
}

#cookie-banner p {
    font-size: 1.6rem;
    line-height: 2.8rem;
    text-align: center;
    color: var(--white);
}

#accept-cookies,
#refuse-cookies {
    width: 15rem;
    margin: 2rem;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 0.4rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.6rem;
    transition: 0.5s ease;
}

#accept-cookies {
    background: var(--green);
    color: var(--white);
}

#refuse-cookies {
    background: red;
    color: var(--white);
}

#accept-cookies:hover {
    background-color: var(--white);
    color: var(--green);
}

#refuse-cookies:hover {
    background-color: var(--white);
    color: red;
}

/****************MESSAGE ENVOYÉ OU NON ********************/
.success-message,
.error-message {
    position: absolute;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    background-color: var(--white);
    border: 0.2rem solid var(--green);
    border-radius: 0.6rem;
    transform: translateY(-50%);
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0.4rem 0.8rem var(--black-shadow);
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-out;
    /* Transition pour l'animation */
}

.error-message {
    color: red;
}

.success-message {
    color: green;
}
