
/* ========================================
   RESET & BASE
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body) !important;
    color: var(--color-text-dark)!important;
    line-height: 33px!important;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    /* La position top sera gérée par le JS */
}

a {
    text-decoration: none!important;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}
.text-primary-custom{
    color: var(--color-primary)!important;
}

/* --- carousel --- */

.carousel-control-prev-icon,.carousel-control-next-icon{
    background-color: black;
    border-radius: 15px;
    padding-right: 9px;
    background-size: 21px!important;
}

/* --- FONT ALPHAPIPE --- */
/* Version Régulière */
@font-face {
    font-family: 'Alphapipe';
    src: url('../fonts/alphapipe/BCAlphapipeTEST-Regular.otf') format('opentype');
    font-weight: 400; /* ou normal */
    font-style: normal;
    font-display: swap;
}

/* Version Italique */
@font-face {
    font-family: 'Alphapipe';
    src: url('../fonts/alphapipe/BCAlphapipeTEST-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Version Grasse (Bold) */
@font-face {
    font-family: 'Alphapipe';
    src: url('../fonts/alphapipe/BCAlphapipeTEST-Bold.otf') format('opentype');
    font-weight: 700; /* ou bold */
    font-style: normal;
    font-display: swap;
}

/* Version Grasse Italique */
@font-face {
    font-family: 'Alphapipe';
    src: url('../fonts/alphapipe/BCAlphapipeTEST-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Version Fine (Light) - Exemple */
@font-face {
    font-family: 'Alphapipe';
    src: url('../fonts/alphapipe/BCAlphapipeTEST-Light.otf') format('opentype');
    font-weight: 300; /* ou light */
    font-style: normal;
    font-display: swap;
}

/* Version Fine Italique */
@font-face {
    font-family: 'Alphapipe';
    src: url('../fonts/alphapipe/BCAlphapipeTEST-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
.alphapipe{
    font-family: var(--font-foster);
    font-weight: 500;
}
/* --- LIST STYLE --- */


.custom-list{
    list-style: none;
    /*transform: translateX(-55px);*/
}
.custom-list li{
    position: relative;
    margin-bottom: 30px;
    padding-left: 55px;
}
.custom-list li::before {
    content: "";
    height: 30px;
    width: 30px;
    background-image: url("../images/oneposture-list-style-dark.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
}

ul.custom-list{
    padding-left: 0;
}
/* --- IMG STYLE --- */
.round{
    border-radius: var(--radius-standard);
    overflow: hidden;
}
/* --- TYPOGRAPHY UTILS --- */
.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2.2rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.section-title h2::after {
    content: '';
    display: block;
    height: 4px;
    background-color: var(--color-primary);
    flex-grow: 1;
    width: 63px; /* Longueur du trait rouge */
    max-width: 63px;
}

.section-title span {
    display: block;
    font-family: var(--font-title);
    font-style: italic;
    font-weight: 400;
    color: var(--color-dark);
    margin-top: 0.2rem;
    font-size: 1.6rem;
}

/* --- BUTTONS --- */
.btn-custom {
    background-color:var(--color-grey-anthracite);
    color: var(--color-text-light);
    padding: 12px 45px;
    border-radius: var(--radius-standard);
    font-weight: 500;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 15px;
}

.btn-custom:hover{
    border: 2px solid var(--color-grey-anthracite);
}

.btn-custom.light-mode {
    background-color:#fff;
    /*color: var(--color-text-dark);*/
    color: #fff;
    border: 2px solid var(--color-text-light);
    font-weight: 600;
}

.btn.light-mode:hover {
    background-color:transparent;
    color: var(--color-text-light);
}


.btn-custom.transparent-mode {
    background-color:transparent;
    /*color: var(--color-text-dark);*/
    color: #fff;
    border: 2px solid var(--color-text-light);
    font-weight: 600;
}

.btn-custom.transparent-mode:hover {
    background-color:#fff;
    color: var(--color-text-dark);
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    z-index: 1000;
    transition: all 0.3s ease;

    /* Effet de flou (blur) */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85); /* Blanc semi-transparent */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.site-header.scrolled .btn-custom{
    border: 2px solid #d8d8d8;
    color:var(--color-text-dark);

}
/* --- NAVIGATION LINKS --- */
.nav-link-custom {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link-custom:hover{
    color: var(--color-text-light);
}
/* Liens noirs quand le header est scrolé */
.site-header.scrolled .nav-link-custom {
    color: #191919;
}
header .nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}
.header-logo img {
    height: 70px;
    width: auto;
}

/* Quand le header est scrolé, le trait devient rouge (ou noir selon préférence) */
.site-header.scrolled .nav-link-custom::after {
    background-color: #DF001E;
}

/* Animation au hover */
.nav-link-custom:hover::after {
    width: 100%;
}


.logo-dark {
    display: none;
}

.site-header.scrolled .logo-light {
    display: none;
}

.site-header.scrolled .logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4rem;
    letter-spacing: 1px;
}

.site-header.scrolled .nav-link-custom {
    color: var(--color-grey-anthracite);
}
.light-mode.btn-header{
    padding: 7px 35px;
    font-size: 14px;
    letter-spacing: 1px;
    background-color: var(--color-text-light);
    color: var(--color-dark);
    font-weight: 600;
}
.light-mode.btn-header:hover{
    color: var(--color-text-dark);}
.site-header.scrolled .btn-header:hover {
    color: var(--color-secondary);

}
/* --- MOBILE MENU TOGGLE (HAMBURGER) --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.site-header.scrolled .hamburger-line {
    background-color: #191919;
}

/* Animation du hamburger en croix quand ouvert */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE NAV OVERLAY --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(25, 25, 25, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 1000;
}

.mobile-nav-overlay.open {
    right: 0;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu .nav-link-custom{
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hamburger-line{
    color: #ffffff;
}
.mobile-nav-link:hover {
    color: var(--color-primary);
}

.mobile-reserve-btn, .mobile-nav-menu .btn-custom {
    background-color: var(--color-primary);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.mobile-reserve-btn:hover {
    background-color: #fff;
    color: var(--color-primary);
}

/* --- BOUTON BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary); /* #DF001E */
    color: #fff;
    border-radius: var(--radius-standard); /* 15px */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(223, 0, 30, 0.4);
    z-index: 999;
    cursor: pointer;
}

/* Apparition au scroll */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Hover */
.back-to-top:hover {
    background-color: var(--color-secondary); /* #780918 */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(223, 0, 30, 0.6);
}
/* --- HERO SECTION --- */
.hero-section{
    position: relative;
    min-height: 100vh;
    display: flex;
    /*align-items: center;*/
    padding: 120px 5% 50px;
    /*background: radial-gradient(circle, var(--color-primary), var(--color-secondary));*/
    /*background-image:url("../images/oneposture-hero-velo-de-route-desktop.jpg");*/
    background-image:url("../images/oneposture-bg-hero.jpg");
    background-position: top center;
    background-size: cover;
}
.hero-section::after{
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    top: 0;
    right: 0;
}
.hero-content {
    display: flex;
    flex-direction: column;
    max-width: 510px;
    margin: 0 min(50px, 5vw);
    width: 100%;
    z-index: 1;
    justify-content: center;
}

.hero-image-container {
    display: flex;
    justify-content: center;
}

.hero-image {
    border-radius: var(--radius-standard);
    max-width: min(80vw, 500px);
}

.hero-text h1 {
    font-family: var(--font-title);
    font-size: clamp(1.25rem, 1.1875rem + 0.332vw, 1.5625rem);
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 2rem;
    text-align: left;
}

.hero-text  {
    color:#ffffff;
}

/* --- DISCOVER SECTION --- */
.discover-section {
    padding: 80px 5% 150px;
}

.discover-container {
    max-width: 1600px;
    margin: 0 auto;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 70px;
}

.discover-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.discover-item img{
    max-width: 650px;
}

/* --- FOSTER SECTION --- */

.foster-container{
    position: relative;
    padding:70px 0 20px;
    background-image: url("../images/oneposture-foster-logo-beige.png");
    background-size: min(120px);
    background-position: center 0;
    background-repeat: no-repeat;
}

.foster-brand{
font-size: 30px;
    font-family: var(--font-foster);
    font-weight: 500;

}
.foster-text {
    /*margin-top: 18px;*/
    color: var(--color-dark);
    /*font-family: var(--font-foster);*/
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}

.foster-section.dark{
    background-image: url("../images/oneposture-foster-dark-background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.foster-container::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
}
.dark .foster-container{
    z-index: 2;
    padding: 200px 0;
    background-position: center 135px;
    background-image: url("../images/logo-one-posture-blanc-symbole.png");
}
.foster-line,.foster-action{z-index: 2;}
/* --- ADVANTAGES SECTION --- */
.advantages-section{
    padding: 50px 5% 120px;
    background: #FBFBFB;
    background: linear-gradient(144deg, rgba(251, 251, 251, 1) 0%, rgba(251, 251, 251, 1) 63%, rgba(235, 235, 235, 1) 63%, rgba(235, 235, 235, 1) 100%);
}
.advantages-container{
    max-width: min(100%,1500px);
    margin: auto;
}
.advantages-item .left{
    flex: 3;
}
.advantages-item .right{
    flex: 4;
}
.advantages-item img{
    height:560px;
    width: auto;
    object-fit: contain;
    object-position: left;
}
.advantages-text{
    /*width: min(100%, 500px);*/
    font-size: 17px;
    margin: auto;
}
.advantages-text ul li{
    list-style-type: circle;
}
.advantages-section .foster-container::after{
    display:none ;
}
/* --- ADVANTAGES GOALS SECTION --- */
.goals-section{
    padding: 50px 5% 150px;
    background-image: url("../images/oneposture-advantages-goal-background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.goals-section::after{
    position: absolute;
    content: "";
    height: 130px;
    width: 130px;
    background-image: url("../images/logo-one-posture-blanc-symbole.png");
    background-repeat: no-repeat;
    background-size:contain;
    background-position: center;
    left: 3vw;
    bottom: 3vw;
}
.goals-section .subtitle{
    font-size: clamp(1.75rem, 1.6rem + 0.7969vw, 2.5rem);
}
.goals-section .subtitle span{
    font-size: clamp(2.25rem, 2.0375rem + 1.1289vw, 3.3125rem);
}
.goals-text{
    font-size: clamp(1.0625rem, 1.025rem + 0.1992vw, 1.25rem);
    line-height: 29px;
}

.goals-text li::before {
    background-image: url("../images/oneposture-list-style.png");
}
/* --- TECHNOLOGY --- */
.technology-section{
    padding: 50px 5% 70px;
    background-image: url("../images/oneposture-technologie-looper.jpg");
    background-position: 54px -30%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.technology-text .brand{
    font-size: 25px;
}
.technolofy-item{
    max-width: min(100%, 1500px);
    padding-top: 80px;
}
.technology-grid {
    max-width: min(100%, 1500px);
    padding-top: 80px;
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    grid-template-rows: repeat(13, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 0;
}
.technology-grid .card-1{
    grid-area:  1 / 1 / 8 / 7;
}
.technology-grid .card-2{
    grid-area:  3 / 8 / 14 / 14;
}
/*.technology-grid .card-3{*/
/*    grid-area: 8 / 2 / 14 / 8;*/
/*    padding-right: 56px;*/
/*    padding-top: 56px;*/
/*}*/
/* --- NUMBERS --- */
.numbers-section{
    padding: 50px 5% 150px;
    background-image: url("../images/oneposture-numbers-features-2.jpg");
    background-position:center 3%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.numbers-subtitle{
    font-size: 50px;
    font-weight: bold;
}
.numbers-sub-subtitle{
    font-size: 28px;
    font-weight: 200;
    font-style: italic;
    font-family: "Barlow", sans-serif;
    letter-spacing: 1px;
}
.numbers-item::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 83px;
    height: 3px;
    background-color: var(--color-text-light);
    transform: translateX(0);
}
.numbers-item{
    position: relative;
    padding: 30px 0;
    width: min(100%, 350px);
}
.numbers-feature{
    font-size: 48px;
    font-weight: bold;
    font-family: "Barlow", sans-serif;
    /*letter-spacing: 1px;*/
    margin-bottom: 15px;
}
.numbers-text span{
    font-weight: bold;
}
/* --- PROCESSUS SECTION --- */
.process-section{
    padding: 50px 5% 150px;
    background-image: url("../images/oneposture-process-background.jpg");
    background-position: center 99%;
    background-repeat: no-repeat;
    position: relative;
}

.processus-intro{
    font-size: 17px;
}

.process-card {
    max-width: min(500px,100%);
    margin-right: 2px;
    margin-left: 2px;
    flex: 1;
}
.process-card-title{
    font-family: "Barlow", sans-serif;
    font-size: 35px;
    text-transform: uppercase;
    font-weight: 600;
}
.process-card-subtitle{
    font-family: "Barlow", sans-serif;
    font-weight: 300;
    font-size: 17px;
    font-style: italic;
    margin-bottom: 30px;
}
.process-card img{
    height: 400px;
    width: min(500px, 100%);
    object-fit: cover;
    margin-bottom: 30px;
}
.process-note{
    /*max-width: 500px;*/
}
.process-mesures{
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-width: min(100%, 1000px);
}
.process-steps{
    max-width: min(100%, 420px);
}
.process-steps-title{
    font-family: "Barlow", sans-serif;
    font-size: 53px;
}
.process-steps-subtitle span{
    font-size: 21px;
}
.process-section li{
    font-weight: 500;
    max-width: min(700px,100%);
}
.process-section .foster-container::after{
    display: none;
}
/* --- PRICE --- */
.price-section{
    padding: 50px 5% 150px;
    background-color: #F6F6F6;
}
.price-container{

}
.price-cards{
    max-width: min(100%, 1200px);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(13, 1fr);
}
.price-card{
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}
.price-card:nth-child(1){
    grid-area: 1 / 1 / 6 / 4;
}
.price-card:nth-child(2){
    grid-area: 3 / 5 / 8 / 8;
}
.price-card:nth-child(3){
    grid-area: 7 / 1 / 12 / 4;
    /*grid-area: 9 / 5 / 14 / 8;*/
}
/*.price-card:nth-child(4){*/
/*    grid-area: 7 / 1 / 12 / 4;*/
/*}*/
.price-card-title{
    font-size: 22px;
    text-transform: uppercase;
    margin: 50px 30px 20px;
    font-weight: 600;
    text-align: center;
}
.price-feature{
    font-size: 27px;
    font-weight: 300;
    padding:20px;
    position: relative;
    font-family: "Barlow", sans-serif;
}
.price-card img{
    height: 300px ;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.price-card:nth-child(2) img{
    object-position: top;
}
.price-feature::before{
    content: "";
    position:absolute;
    width: 63px;
    height: 3px;
    background-color:var(--color-secondary);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
/* --- CRITERES --- */
.criteres-section{
    padding:0;
background-image: none;
}
.criteres-top{
    padding: 50px 5% 100px;
    background-position: bottom;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
    background-image: url("../images/oneposture-criteres-bg1.jpg");
}
.criteres-bottom{
    padding: 150px 5% 150px;
    background-position: bottom;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
    background-image: url("../images/oneposture-criteres-bg2.jpg");
}
.criteres-top .criteres-text{
    max-width: min(1000px, 100%);
}
.criteres-section::after{
    display: none;
}
.criteres-section .alphapipe.brand{
    font-size: clamp(2.25rem, 2.0375rem + 1.1289vw, 3.3125rem);
}
.criteres-bottom .criteres-text{
    max-width: min(900px, 100%);
}
.criteres-bottom .foster-container::after{
    display: none;
}
.criteres-section .foster-container{
    /*background-image: url("../images/oneposture-logo-symbole-blanc.png");*/
}
@supports (-webkit-touch-callout: none) {
    .criteres-top,
    .criteres-bottom {
        background-attachment: scroll;
        background-image: none;
        clip-path: inset(0 0 0 0);
        isolation: isolate;
        overflow: hidden;
    }

    .criteres-top::before,
    .criteres-bottom::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background-position: bottom;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .criteres-top::before {
        background-image: url("../images/oneposture-criteres-bg1.jpg");
    }

    .criteres-bottom::before {
        background-image: url("../images/oneposture-criteres-bg2.jpg");
    }
}
/* --- RESERVATION --- */
.reservation-section{
    padding: 50px 5%;
}
/* --- FOOTER --- */
.site-footer {
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    color: #fff;
    padding-top: 60px;
}

.footer-upper {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 5% 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer-upper .logo-image{
    height: 120px;
    font-size: 26px;
    object-fit: contain;
}
.footer-col h4 {
    font-family: var(--font-title);
    font-weight: 200;
    font-size: 24px;
    text-align: center;
    margin-bottom: 0;
    font-style: italic;
}

.footer-upper .contact-info img{
    height: 23px;
    width: 23px;
    object-fit: contain;
}
.footer-upper .contact-item:nth-child(1) img{
    height: 30px;
    width: 30px;
}
.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    font-size: 0.95rem;
}
.footer-col p{
    font-size: 15px;
    line-height: 24px;
}
.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}
.light-mode.btn-footer{
    margin: 10px auto;
    width: max-content;
    padding: 7px 35px;
    font-size: 14px;
    letter-spacing: 1px;
    background-color: var(--color-text-light);
    color: var(--color-secondary);
    font-weight: 600;
}
.light-mode.btn-footer:hover{
    background-color: var(--color-text-light);
    color: var(--color-secondary);
    text-decoration: none;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 5%;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: #fff;
    margin: 0 5px;
}
/* ========================================
   ANIMATIONS AU SCROLL
   ======================================== */

/* État initial : invisible et légèrement décalé vers le bas */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* État final : visible et à sa position normale */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes */
.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}
.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Délais pour les éléments en séquence (ex: cartes) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ========================================
   SURCHARGE BOOTSTRAP MODAL (FORCE STYLE)
   ======================================== */
.modal .btn-outline-primary{
    border:1px solid var(--color-secondary)!important;
    color:var(--color-secondary)!important;
}
.modal .btn-outline-primary:hover{
    background: var(--color-secondary)!important;
    color:white!important;

}
.custom-calendar__day--selected{
    box-shadow: 0 14px 24px rgba(235, 37, 37, 0.28)!important;
    background: var(--color-secondary)!important;
    color:white!important;
}

.custom-calendar__day--available{
    border-color: var(--color-secondary)!important;
}
.custom-calendar__day--today{
    outline: 1px solid rgba(255, 0, 0, 0.17) !important;
}
.modal-summary{
    background-color: var(--color-grey-anthracite)!important;
    border-radius: var(--radius-standard);
    color: white!important;
}
.booking-modal__action-button:hover{
    background: var(--color-primary)!important;
    border-color: var(--color-primary)!important;

}
.modal-title{
    font-family: var(--font-title);
    text-transform: uppercase;
}
/* --- RESPONSIVE --- */

@media (max-width: 1400px) {
    .hero-section{
        background-image:url("../images/oneposture-bg-hero-medium.jpg");

    }
    /*.hero-image {*/
    /*    max-width: min(80vw, 380px);*/
    /*}*/
    /*.hero-content{*/
    /*    max-width: 470px;*/
    /*}*/
    /*.hero-content h1{*/
    /*    font-size: 22px;*/
    /*}*/
    .discover-item img{
        max-height: 500px;
    }
}

@media (max-width: 1200px) {
    /*.hero-image {*/
    /*    max-width: min(80vw, 300px);*/
    /*}*/

    /*.hero-content h1{*/
    /*    font-size: 20px;*/
    /*    text-align: center;*/
    /*}*/
    /*.hero-section{*/
    /*    padding: 120px 2% 50px;*/
    /*}*/
    .advantages-item img {
        max-height: 560px;
        height: auto;
    }
}
@media (max-width: 1100px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Ajuster le header */
    .site-header {
        padding: 0 5%;
        width: 100vw;
    }
    .hero-content{
        justify-content: center;
        align-items: center;
        /*width: 100%;*/
        /*max-width: 80vw;*/
    }
    /*.hero-image {*/
    /*    max-width: 54vw;*/
    /*}*/

    /*.hero-text{*/
    /*    color:#ffffff;*/
    /*    mix-blend-mode: normal;*/
    /*}*/
    /*.hero-text h1{*/
    /*    font-size: 32px;*/
    /*}*/

}
@media (max-width: 991px) {

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-container {
        order: -1;
    }

    .footer-upper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-menu {
        display: none;
    }
    .footer-upper .footer-col ul li{
        text-align: center;
    }
    .footer-upper .footer-col ul{
        padding-left: 0;
    }
    .footer-col{
        margin:auto;
    }
    .discover-section {
        padding: 80px 5%;
    }

    .discover-grid {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .discover-item {
        grid-area: auto;
        width: 100%;
    }

    /*.discover-item:nth-child(1) {*/
    /*!*.discover-item:nth-child(1),.discover-item:nth-child(4) {*!*/
    /*    display: none;*/
    /*}*/
    /* process  */
    .process-section {
        padding-top: 150px
    }
    /* foster  */
    .foster-line img{
        width: min(320px, 100%);
    }
    /*.foster-text{*/
    /*    margin-top: 0;*/
    /*    text-align: center;*/
    /*}*/

    /*  advantages  */
    .advantages-text{
        width: 100%;
        margin:0;
        /*text-align: center;*/
    }
    .advantages-text ul{
        max-width: min(100%,400px);
        margin-right: auto;
        margin-left: auto;
        text-align: start;
    }

    /* numbers */

    .numbers-item::before{
        left: 50%;
        transform: translateX(-50%);
    }

    /*  price  */
    .price-cards{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 0;
        grid-row-gap: 30px;
        max-width: 600px;
        padding: unset;
    }
    .price-card:nth-child(1){
        grid-area: 1 / 1 / 2 / 2;
    }
    .price-card:nth-child(2){
        grid-area: 2 / 1 / 3 / 2;
    }
    .price-card:nth-child(3){
        grid-area: 3 / 1 / 4 / 2;
    }
    /*.price-card:nth-child(4){*/
    /*    grid-area: 4 / 1 / 5 / 2;*/
    /*}*/

    /*  process  */
    .process-note{
        max-width: 100%;
    }
}
@media (max-width: 768px) {

}
@media (max-width: 651px) {
    .site-header {
    }
}
@media (max-width: 600px) {
    .header-logo .logo-light{
        display: none;
    }

    .hero-section {
        background-image:url("../images/oneposture-bg-hero-smart.jpg");
        background-position: 80%;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .hero-image{
        max-width: min(80vw, 400px);
    }
    .hero-content h1{
        text-align: center;
        line-height: 30px;
        font-size: 20px;
    }
    .advantages-section, .technology-section{
        padding-top: 30px;
    }
    .price-section {
        padding-top: 0;
    }
    .foster-brand{
        font-size: 25px;
    }
    .foster-text{
        font-size: 20px;
    }
}
@media screen and (min-width: 1100px) and (max-width: 1500px) {

    .nav-menu {
        gap:30px
    }
}
@media screen and (min-width: 900px) and (max-width: 1199px) {


    .discover-item:nth-child(1) {
        grid-area: 1 / 1 / 2 / 3; /* Prend 2 colonnes */
    }

    .discover-item:nth-child(2) {
        grid-area: 1 / 3 / 2 / 4; /* Texte à droite */
        /* Optionnel : aligner le texte en haut */
        align-self: start;
    }

    /*.discover-item:nth-child(3) {*/
    /*    grid-area: 2 / 1 / 3 / 2; !* Image en bas à gauche *!*/
    /*}*/

    /*.discover-item:nth-child(4) {*/
    /*    grid-area: 2 / 2 / 3 / 4; !* Image en bas à droite (prend 2 colonnes) *!*/
    /*}*/
}
