:root {
    /* Our colors */
    --bg-primary: #EFF0F2;
    --border-color: #DDDFE9;

    /* IDFM colors */
    --blueIDFM: #64B5F6;
    --whiteIDFM: #FFFFFE;
    --greyIDFM: #25303B;
    --blueRATP: #0a0082;

    /* Alternate blue for better contrast */
    --blueIDFM-alternate: #267ABD;
}

/*
High contrast mode adjustments
From : https://developer.mozilla.org/fr/docs/Web/CSS/Reference/At-rules/@media
*/
@media (prefers-contrast: more) {
    :root {
        --greyIDFM: #202124;
        --blueIDFM-alternate: #0c385a;
    }
}

* {
    box-sizing: border-box;
    /*outline-color: var(--greyIDFM) !important;
    outline-offset: 4px !important;
    outline-width: medium !important;*/
    /*
    outline: 1px solid red;
    */
}

::selection {
    background-color: var(--greyIDFM);
    color: var(--whiteIDFM);
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-primary);
    color: var(--greyIDFM);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease-in-out;
    width: 100%;
}

body.mapZone {
    background-color: var(--blueIDFM-alternate);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 1140px;
    margin: auto;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, p, a {
    margin: 0;
    padding: 0;
}

.sr-only {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.skip-link {
    position: absolute;
    top: -1000px;
    left: 0;
    border: 2px solid var(--greyIDFM);
    color: var(--greyIDFM);
    padding: 16px;
    border-bottom-right-radius: 9px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

.chip {
    display: flex;
    width: 189px;
    padding: 6px 7px 6px 18px;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    right: 50%;
    bottom: 40px;
    transform: translateX(50%);
    border-radius: 60px;
    background: var(--greyIDFM, #25303B);
    box-shadow: 0 3px 14px 0 rgba(73, 151, 214, 0.20);
    color: var(--whiteIDFM, #FFF);
    font-family: "Fira Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.5px;
    transition: box-shadow 0.9s ease, transform 0.9s ease, width 0.9s ease, padding 0.9s ease;
    transform-origin: left center;
    z-index: 999;
}

.chip span {
    transition: opacity 0.9s ease, width 0.9s ease;
    width: auto;
    opacity: 1;
    overflow: hidden;
}

.chip-icon {
    width: 24px;
    height: 24px;
}

.chip:hover {
    cursor: pointer;
    box-shadow: 0 6px 20px 0 rgba(73, 151, 214, 0.30);
    transform: translateX(50%) translateY(-5px) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .chip {
        transition: none;
    }
}

nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    height: 75px;
    padding: 0 1.25rem;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 1.25rem;
    border: 2px solid var(--border-color);
    background: rgba(255, 255, 255, 0.40);
    background-clip: padding-box;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    transition: box-shadow 1.5s cubic-bezier(1, 0.62, 0.18, 0.98), transform 0.3s ease, width 0.3s ease, padding 0.3s ease;
    z-index: 1000;
}

.navbar.shadow {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    nav {
        transition: none;
        background: var(--whiteIDFM, #FFFFFE) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .navbar.shadow {
        box-shadow: none;
    }
}

.hide {
    transform: translateX(-50%) translateY(-150%);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-logo p {
    color: var(--blueIDFM-alternate, #4997D6);
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8125rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.0625rem;
}

.nav-logo img {
    width: 48px;
    height: 44px;
}

ul.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

ul.nav-links > li {
    color: var(--greyIDFM, #25303B);
    text-align: center;
    font-family: "Fira Sans", sans-serif;
    font-stretch: condensed;
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.03125rem;
    transition: color 0.3s ease;
}

ul.nav-links > li a {
    color: inherit;
    text-decoration: none;
}

ul.nav-links > li a:focus {
    outline: 2px solid var(--greyIDFM, #25303B);
    outline-offset: 4px;
    border-radius: 4px;
}

ul.nav-links > li:hover {
    color: var(--blueIDFM-alternate, #4997D6);
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    ul.nav-links > li {
        transition: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    nav {
        background: var(--whiteIDFM, #FFFFFE) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.hello-hero {
    position: relative;
    display: flex;
    width: 100%;
    min-height: calc(100vh - 100px);
    padding: 30px 0;
    align-items: center;
    align-self: stretch;
}

.hello-hero > .textContainer {
    display: flex;
    max-width: 600px;
    padding: 0 25px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-size: 1.25rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.25;
}

.imgContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nestedImg {
    width: 352px;
    height: 235px;
    transform: rotate(7.318deg);
    border-radius: 40px;
    border: 10px solid #FFF;
    z-index: 1;
    margin-bottom: -40px !important;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
    transform-origin: left bottom;
    transition: transform 0.9s ease, height 0.3s ease, border-radius 0.3s ease;

}

.nestedImg:hover {
    transform: rotate(0deg) translateY(-10px);
}

.straightImg {
    height: 206.73px;
    align-self: stretch;
    aspect-ratio: 570.00/206.73;
    z-index: 2;
}

.horizontalHero {
    display: flex;
    max-width: 1140px;
    padding: 120px 10px;
    justify-content: center;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

.horizontalHero.npb {
    padding-bottom: 10px;
}

.horizontalHero.npt {
    padding-top: 10px;
}

.horizontalHero.noImg > .textContainer {
    max-width: 675px;
    width: 100%;
}

.horizontalHero.chart {
    flex-direction: column;
    align-items: start;
    gap: 20px;
    width: 100%;
}

.horizontalHero > .textContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mapTextContainer h2 {
    color: var(--greyIDFM);
}

body.mapZone .mapTextContainer > h2 {
    color: var(--whiteIDFM) !important;
}


.horizontalHero > .textContainer h2 {
    color: var(--greyIDFM);
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.5px;
}

.horizontalHero > .textContainer p {
    color: var(--greyIDFM);
    font-family: "Fira Sans", sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    line-height: normal;
    letter-spacing: -0.5px;
}

.horizontalHero > .imgContainer {
    width: 462px !important;
    height: 260px;
}

.horizontalHero > .imgContainer img {
    width: 462px;
    height: 260px;
}

.cardHero {
    display: flex;
    max-width: 71.25rem;
    padding: 1.25rem 0 7.5rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    align-self: stretch;
    width: 100%;
}

.cardHero > .txtContainer {
    width: 37.5rem;
}

.cardHero > .txtContainer h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.03125rem;
}

.cardHero > .txtContainer p {
    font-size: 1.125rem;
    line-height: normal;
    letter-spacing: -0.03125rem;
}

.cardContainer {
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    padding: 1.25rem;
    gap: 1.25rem;
}

.card {
    flex: 0 0 auto;
    display: flex;
    min-width: 18.75rem;
    max-width: 19rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3125rem;
    border-radius: 1.75rem;
    background: var(--whiteIDFM);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: auto;
}

.cardContent {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem;
    height: 100%;
}

.cardText {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    align-self: stretch;
}

.cardText h4 {
    color: var(--greyIDFM);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.04688rem;
}

.cardText span {
    color: var(--greyIDFM);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.03375rem;
}

.cardText p {
    color: var(--greyIDFM);
    font-family: "Fira Sans", sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.03rem;
}

.cardText a, .card a {
    border-radius: 50em;
    width: 100%;
    display: flex;
    padding: 0.3125rem 1.25rem;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    align-self: stretch;
    background: var(--blueIDFM-alternate);
    color: var(--whiteIDFM);
    font-family: "Fira Sans Condensed", sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    margin-top: 0.625rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: background 0.3s ease;
}

a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path fill="%23fff" d="M384 64C366.3 64 352 78.3 352 96C352 113.7 366.3 128 384 128L466.7 128L265.3 329.4C252.8 341.9 252.8 362.2 265.3 374.7C277.8 387.2 298.1 387.2 310.6 374.7L512 173.3L512 256C512 273.7 526.3 288 544 288C561.7 288 576 273.7 576 256L576 96C576 78.3 561.7 64 544 64L384 64zM144 160C99.8 160 64 195.8 64 240L64 496C64 540.2 99.8 576 144 576L400 576C444.2 576 480 540.2 480 496L480 416C480 398.3 465.7 384 448 384C430.3 384 416 398.3 416 416L416 496C416 504.8 408.8 512 400 512L144 512C135.2 512 128 504.8 128 496L128 240C128 231.2 135.2 224 144 224L224 224C241.7 224 256 209.7 256 192C256 174.3 241.7 160 224 160L144 160z"/></svg>') no-repeat center;
    background-size: contain;
}

.cardText a:hover {
    background: var(--blueIDFM);
}

.cardNav {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 100%;
    padding: 0 1.25rem;
    margin-top: -.5rem;
    margin-bottom: 1.25rem;
}

.navCardBtn {
    appearance: none;
    background: var(--greyIDFM);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 45px;
    height: 45px;
    transition: background 0.7s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navCardBtn:hover {
    background: var(--blueIDFM);
}

.navCardBtn svg {
    fill: var(--whiteIDFM);
    width: 25px;
}

.leftBtn {
    padding-left: .75rem;
    border-top-left-radius: 1.75rem;
    border-bottom-left-radius: 1.75rem;
}

.rightBtn {
    padding-right: .75rem;
    border-top-right-radius: 1.75rem;
    border-bottom-right-radius: 1.75rem;
}

.portesStage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #dcdcdc;
}

.portesStage main {
    opacity: 0;
}

.portesWrapper {
    position: absolute;
    z-index: 1008;
    display: flex;
    height: 100%;
    width: fit-content;
    margin: auto;
}

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

.p_gauche {
    object-position: right center;
}

.p_droite {
    object-position: left center;
}

.p_open {
    position: absolute;
    left: 46.5%;
    top: 65%;
    transform: translate(-50%, -50%);
    width: min(200px, 6vw);
    z-index: 1009;
    cursor: pointer;
}

.p_overlay_button {
    position: absolute;
    left: 46.5%;
    top: 65%;
    transform: translate(-50%, -50%);
    width: min(200px, 6vw);
    height: min(200px, 6vw);
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1010;
}

/* Visible focus ring for accessibility */
.p_overlay_button:focus {
    outline: 3px solid rgba(73, 151, 214, 0.9);
    outline-offset: 6px;
}

#lum_ext {
    animation: blink .7s infinite steps(1);
}

@keyframes blink {
    0% {
        fill: #323F38;
    }
    50% {
        fill: #0CEB73;
    }
    100% {
        fill: #323F38;
    }
}

#translucide_off,
#translucide_on {
    transition: none;
}

#translucide_on {
    opacity: 0;
    animation: blinkLight .7s infinite steps(1);
}

@keyframes blinkLight {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#p_button.clicked #lum_ext {
    animation: none;
    fill: #0CEB73;
}

#p_button.clicked #translucide_on {
    animation: none;
    opacity: 1;
}

.moved-right {
    transform: translateX(100%);
    transition: transform 2.5s linear;
}

.moved-left {
    transform: translateX(-100%);
    transition: transform 2.5s linear;
}

.moved-button {
    display: none;
}

.clicked {
    transform: translate(-425%, -50%);
    transition: transform 2.5s linear;
}

.mapSection {
    flex-direction: column;
}

.mapDetailsContainer {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
}

#map {
    width: 100%;
    height: 600px;
    border-radius: 1.5rem;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.07);
}

.detailsBar {
    background: var(--whiteIDFM);
    border-radius: 1.5rem;
    position: relative;
    width: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    height: 600px;
    transition: all 0.5s ease-in-out;
    padding: 0;
    max-width: 0;
}

.detailsBar.show {
    padding: 1.25rem;
    max-width: 350px;
    width: 100%;
}

.detailContent {
    width: 100%;
}

.detailsBar > .detailContent > h3.gare {
    color: var(--whiteIDFM);
    background: var(--blueRATP);
    width: 100%;
    border-radius: .5rem;
    padding: 0.3125rem 1.25rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 1rem;
}

.detail-modal.active {
    display: block;
}

.detailContent h4 {
    color: var(--greyIDFM);
    font-family: "Fira Sans Condensed", sans-serif;
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.04688rem;
    margin-top: .25rem;
}

p.info {
    color: var(--greyIDFM);
    font-family: "Fira Sans", sans-serif;
    font-size: .9rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.03rem;
    margin-top: .25rem;
}

.closeSidebar {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--greyIDFM);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.closeSidebar svg {
    fill: var(--whiteIDFM);
}

body.bg-gray-light {
    background-color: #f6f6f6;
}

body.bg-gray-medium {
    background-color: #dcdcdc;
}

body.bg-bronze {
    background-color: #ffe9cf;
}

body.bg-silver {
    background-color: #cccccc;
}

body.bg-gold {
    background-color: #fff3d0;
}

.gareSection {
    display: flex;
    width: 71.25rem;
    min-height: 31.25rem;
    padding: 0.625rem 0.625rem 190px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.125rem;
}

.gareSection > .imgContainer > img {
    width: 120px;
    height: auto;
}

.gareSection#place1 {
    padding-bottom: 200px;
}

.gareSection > .textContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gareSection > .textContainer h3 {
    color: var(--greyIDFM);
    font-family: "Fira Sans", sans-serif;
    font-size: 3.75rem;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -1px;
}

.gareSection > .textContainer p {
    color: var(--greyIDFM);
    font-family: "Fira Sans", sans-serif;
    font-size: 1.5rem;
    margin-top: 10px;
}

.gareSection > .linesContainer {
    display: flex;
    padding: 0.3125rem 0.6875rem;
    align-items: center;
    gap: 0.3125rem;
}

.gareSection > .linesContainer img {
    width: 2.3rem;
    aspect-ratio: 1/1;
}

section.outroSection {
    display: flex;
    max-width: 71.25rem;
    padding: 1.25rem 1.25rem 7.5rem 1.25rem;
    align-items: center;
    gap: 2.5rem;
    align-self: stretch;
}

.outroSection > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 37.5rem;
}

.outroSection > div > h2 {
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.03125rem;
}

.outroSection > div > p {
    font-family: "Fira Sans", sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.03125rem;
}

footer {
    display: flex;
    max-width: 71.25rem;
    padding: 1.875rem 1.875rem 5rem;
    justify-content: space-between;
    align-items: end;
    align-self: stretch;
}

.brandContent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1875rem;
}

.logoFooter {
    width: 105px;
    height: auto;
    margin-bottom: 1rem;
}

.brandFooter {
    color: #000;
    font-family: "Space Grotesk", sans-serif;
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -1.6px;
}

.nameFooter {
    max-width: 250px;
    color: #000;
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
    letter-spacing: -1px;
}

.linkContainer {
    display: flex;
    align-items: start;
    gap: 2.25rem;
    align-self: stretch;
}

ul.footerLinks {
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

ul.footerLinks > li {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.85px;
    margin: 0 0 3px;
}

ul.footerLinks > li > a {
    color: var(--greyIDFM);
    text-decoration: none;
    transition: text-decoration 0.3s ease, font-weight 0.3s ease;
}

ul.footerLinks > li > a:hover {
    text-decoration: underline;
    font-weight: 600;
}

/*
    Mentions Légales
*/

main.termsMain, main.incidentsMain {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    font-size: 1.1rem;
}

.termsHeader {
    margin-top: 7rem;
    width: 100%;
}

.termsSection {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.termsSection p, .termsSection > address > p {
    font-size: 1.1rem;
}

.termsSection hr {
    margin: .75rem 0;
    border: none;
    border-top: 1px solid #5e5f67;
}

.role {
    margin-bottom: 1.2rem;
}

.role h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.role ul {
    list-style: none;
    padding-left: 1rem;
}

.role ul li::before {
    content: "- ";
    color: var(--greyIDFM);
}

.role ul li {
    margin-bottom: 0.1rem;
    font-size: 1.1rem;
}

.iaList > li {
    margin-top: 1rem;
}

@media (max-width: 1000px) {
    nav {
        width: 80%;
        padding: 0 0.75rem;
    }

    .straightImg {
        height: 150px;
    }

    .nestedImg {
        width: auto;
        height: 180px;
        transform: rotate(7.318deg);
        border-radius: 40px;
        border: 10px solid #FFF;
        z-index: 1;
        margin-bottom: -40px !important;
        filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
        transition: transform 0.9s ease, height 0.3s ease, border-radius 0.3s ease;
        transform-origin: left bottom;
    }
}

@media (max-width: 850px) {
    body {
        height: 100dvh;
        width: 100vw;
        overflow-x: hidden;
    }

    main {
        max-width: 100vw !important;
        padding: 0;
    }

    nav {
        position: fixed;
        top: 0;
        width: 100%;
        border: none;
        border-bottom: 2px solid var(--border-color);
        border-radius: 0;
        padding: 0 0.75rem;
    }

    ul.nav-links {
        gap: 1rem;
    }

    ul.nav-links > li {
        font-size: 1rem;
    }

    .hello-hero {
        flex-direction: column;
        padding-top: 120px;
    }

    .hello-hero > .textContainer {
        max-width: 90%;
        padding: 0;
    }

    .chip {
        width: auto;
        padding: 6px;
    }

    .chip span {
        opacity: 0;
        width: 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    .imgContainer {
        margin-top: 20px;
    }

    .nestedImg {
        width: 280px;
        height: auto;
        margin-bottom: -30px !important;
    }

    .horizontalHero {
        flex-direction: column;
        padding: 60px 10px;
    }

    .horizontalHero > .imgContainer {
        width: 100% !important;
        height: auto;
    }

    .horizontalHero > .imgContainer img {
        width: 100%;
        height: auto;
    }

    .textContainer p, .lead {
        font-size: 1.05rem !important;
    }

    .cardHero {
        padding-bottom: 5rem;
    }

    .cardContainer {
        padding: 1.25rem 0.625rem;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .linkContainer {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    section {
        padding-inline: 1rem;
        max-width: 90vw !important;
        margin: auto;
    }

    section:not(.hello-hero) {
        padding-top: 200px;
    }

    section:not(.hello-hero) .imgContainer {
        width: 100%;
        align-items: start;
    }

    section:not(.hello-hero):has(> .imgContainer:nth-child(2)) {
        flex-direction: column-reverse;
    }

    section:not(.hello-hero) .imgContainer img {
        max-width: 80%;
        height: auto;
        width: 100%;
    }

    #map, .detailsBar {
        transition: all 0.9s ease-in-out;
    }

    .mapDetailsContainer:has(.detailsBar.show) #map {
        width: 0px;
    }

    .cardHero {
        overflow: hidden !important;
    }

    .cardContainer {
        overflow-x: hidden !important;
        max-width: 340px !important;
        width: 100% !important;
    }

    .cardText h4 {
        font-size: 1.5625rem;
    }
}

@media (max-height: 720px) {
    .hello-hero {
        height: 100dvh;
        width: auto;
    }

    .chip {
        bottom: 10px;
    }
}