:root {
    --catalina-blue: #033274;
    --cerulean-blue: #3a5ac7;
    --coral: #ff7c55;
    --gulf-blue: #04195f;
    --peach-cream: #ffe9db;
    --romantic: #ffd2b5;
    --white: #ffffff;

    --font-size-xs: 8px;
    --font-size-s: 11px;
    --font-size-m: 15px;
    --font-size-l: 18px;
    --font-size-xl: 25px;
    --font-size-xxl: 32px;
    --font-size-xxxl: 48px;

    --font-family-rubik-bold: "Rubik-Bold", Helvetica;
    --font-family-rubik-regular: "Rubik-Regular", Helvetica;
    --font-family-sofia_pro: "SofiaPro", Helvetica;
    --font-family-sofiapro-bold: "SofiaPro-Bold", Helvetica;
    --font-family-sofiapro-light: "SofiaPro-Light", Helvetica;
    --font-family-sofiapro-medium: "SofiaPro-Medium", Helvetica;
    --font-family-sofiapro-regular: "SofiaPro-Regular", Helvetica;

    --swiper-navigation-size:28px
}

svg .text {
    color: var(--cerulean-blue);
}
*, ::after, ::before {
    box-sizing: border-box;
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated :invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip,
.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip {
    display: block;
}

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

.m-0 {
    margin: 0 !important;
}

.clearfix::after {content: ""; display: table; clear: both;}

.rubik-bold-gulf-blue-22px {
    color: var(--gulf-blue);
    font-family: var(--font-family-rubik-bold);
    font-size: 22px;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-sofiapro-light);
    background: var(--white);
    line-height: 1.3;
    color: var(--gulf-blue);
    font-size: var(--font-size-m);
}

a {
    text-decoration: none;
}

.section-h3 {
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 20px;
    font-family: var(--font-family-rubik-bold);
    font-size: 22px;
}

.section-h3 + p {
    margin-top: 5px;
    text-align: center;
}

.cta-button {
    border: 0;
    background-color: transparent;
    max-width: 474px;
    margin: 20px 50px;
}

.cta-content {
    background-color: var(--cerulean-blue);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--white);
    gap: 10px;
}

.cta-button .upper {
    text-transform: uppercase;
}

.cta-content span {
    font-family: var(--font-family-sofiapro-regular);
    font-size: var(--font-size-s);
    white-space: nowrap;
}

.cta-content img {
    height: 20px;
    width: auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1;
}

.header__content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: .6rem 20px;
    align-items: center;
}

.header__logo {
    display: inline-block;
}

.header__logo-svg {
    display: block;
    width: 112px;
    height: auto;
    transition: width 0.3s ease;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.header__nav-list {
    right: -100%;
    top: 3rem;
    background-color: #fff;
    width: 70%;
    height: 100vh;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: right 0.3s ease-in-out, visibility 0.3s ease-in-out;
    position: fixed;
    visibility: hidden;
    font-family: var(--font-family-rubik-bold);
}

.header__nav-list.active {
    right: 0;
    visibility: visible;
}

.header__nav-item {
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    white-space: nowrap;
}

.header__nav-list.active .header__nav-item {
    opacity: 1;
    padding: 1rem;
    transform: translateX(0);
    width: 100%;
}

.header__nav-link {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    text-decoration: none;
    color: var(--gulf-blue);
    font-size: 15px;
}

.header__nav-link--phone {
    color: var(--coral);
}

.header__nav-link--simulator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    background-color: var(--romantic);
    padding: 15px;
    border-radius: 15px;
}

.header__nav-link--simulator img {
    height: 20px;
    width: auto;
}

.header__burger {
    display: block;
    cursor: pointer;
}

.header__burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--cerulean-blue);
    margin: 5px;
    transition: all 0.3s ease;
}

.header__burger--active .header__burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.header__burger--active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger--active .header__burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

h1 {
    color: var(--coral);
    font-family: var(--font-family-rubik-bold);
    font-size: var(--font-size-xxxl);
}

/* Footer */
.footer {
    background-color: var(--romantic);
    margin-top: 3rem;
    padding: 2.5rem 1.25rem;
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer__column {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: column;
}

.footer__logo {
    align-self: center;
}

.footer__logo-img {
    display: block;
    margin: auto;
    width: 130px;
    height: auto;
}

.footer__links {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-rubik-bold);
    font-size: 0.9375rem;
}

.footer__link {
    text-align: center;
    color: var(--gulf-blue);
    text-decoration: none;
    margin-bottom: 0.625rem;
    /*white-space: nowrap;*/
}

.footer__contact {
    line-height: 1.5;
    color: var(--gulf-blue);
    font-size: 0.9375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__contact-title {
    font-family: var(--font-family-rubik-bold);
    width: 100%;
    text-align: center;
    font-size: 17px;
    margin-bottom: 5px;
}

.footer__contact-item {
    position: relative;
    text-align: center;
    max-width: max-content;
    background-repeat: no-repeat;
    display: block;
    padding-left: 16px;
}

.footer__contact-item--phone {
    background-image: url("../images/picto-phone@1x-qW3wRse.png");
    background-position-y: 3px;
}

.footer__contact-item--address {
    background-image: url("../images/picto-pin@1x-C87wUD6.png");
    background-position-y: 4px;
}

.footer__contact-item--email {
    background-image: url("../images/picto-mail@1x-b1-aqSJ.png");
    background-position-y: 3px;
}

.footer__social {
    align-self: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    align-items: center;
}

.footer__social-links {
    justify-content: space-between;
    display: flex;
    width: 88px;
    justify-items: stretch;
    align-items: center;
}

.footer__social-link--instagram .footer__social-icon {
    width: 18px;
}

.footer__social-link--facebook .footer__social-icon {
    width: 10px;
}

.footer__social-link--linkedin .footer__social-icon {
    width: 22px;
}

.footer__ke-huy-quan {
    background-image: url("../images/ke-huy-quan-dnmzoUC.png");
    width: 88px;
    height: 44px;
}

.question-bubble {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    cursor: pointer;
    background-image: url("../images/calendly-c5TwsMc.svg");
    width: 100px;
    height: 92px;
}

.question-bubble:hover {
    background-image: url("../images/calendly-hover-y8lKNGA.svg");
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.sticky-footer__item {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    background-color: var(--romantic);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sticky-footer__item:first-child {
    border-right: 1px solid white;
}

.sticky-footer__icon {
    height: 27px;
    width: auto;
    margin-bottom: 5px;
}

.sticky-footer__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.sticky-footer__item span {
    white-space: nowrap;
    font-family: var(--font-family-sofiapro-regular);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.3s ease-out;
}

.modal-icon {
    margin: -1rem auto 1rem;
}

.modal-content h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.modal-content p {
    margin: 0.5rem 0 1.5rem;
    color: #666;
}

.close-button {
    background: var(--cerulean-blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.close-button:hover {
    background: var(--gulf-blue);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (min-width: 351px) {
    .sticky-footer__item {
        flex-direction: row;
        padding: 15px 10px;
    }

    .sticky-footer__link {
        flex-direction: row;
    }

    .sticky-footer__icon {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .sticky-footer__item span {
        font-size: 14px;
    }
}

@media screen and (min-width: 768px) {
    body, html {
        background-color: var(--white);
        font-size: var(--font-size-l);
    }

    body {
        padding-bottom: 0;
    }

    h1 {
        font-size: 48px;
    }

    .section-h3 {
        font-size: var(--font-size-xxl);
    }

    .header {
        background-color: var(--peach-cream);
    }

    .header__logo-svg {
        width: 165px;
    }

    .header__content {
        padding-top: 30px;
    }

    .header.scrolled,
    body#app_simulateur .header {
        background-color: var(--white);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    body#app_simulateur .header .header__content,
    .header.scrolled .header__content {
        padding: .5rem 20px;
    }

    /* Appliquer les transitions uniquement lorsque 'transition-enabled' est présent */
    .header.transition-enabled,
    .header.transition-enabled .header__content {
        transition: all 0.3s ease-out;
    }

    .header__nav-list {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        justify-content: flex-end;
        display: flex;
        visibility: visible;
    }

    .header__nav-item {
        opacity: 1;
        margin-left: 0.7rem;
    }

    .header__nav-link {
        font-size: var(--font-size-m);
        padding: 0;
    }

    .header__nav-link--simulator {
        padding: 10px 20px;
    }

    .header__burger {
        display: none;
    }

    .cta-button {
        padding: 10px 20px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .cta-content span {
        font-size: var(--font-size-l);
    }

    .footer__content {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        gap: 0;
    }

    .footer__content > .footer__column:first-child {
        border-right: var(--peach-cream) solid 2px;
    }

    .footer__column {
        flex: 1 1 calc(50% - 0.625rem);
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
    }

    .footer__links {
        flex: 1 1 10rem;
    }

    .footer__link {
        text-align: left;
        color: var(--gulf-blue);
        text-decoration: none;
    }

    .footer__logo {
        flex: 1 1 10rem;
    }

    .footer__logo-img {
        width: 150px;
    }

    .footer__contact {
        flex: 1 1 65% !important;
        align-items: start;
        height: 100%;
        justify-content: center;
        flex-grow: 1;
        padding-left: 40px;
    }

    .footer__contact-item {
        text-align: left;
    }

    .footer__contact-title {
        margin-bottom: 22px;
        text-align: left;
    }

    .footer__social {
        flex: 1 1 35% !important;
    }

    .question-bubble {
        display: block;
    }

    .sticky-footer {
        display: none;
    }
}

@media screen and (min-width: 960px) {
    .header__nav-item {
        margin-left: 1.5rem;
    }

    .header__nav-link {
        font-size: var(--font-size-l);
    }

    .header__nav-link--simulator img {
        height: 27px;
    }
}
