:root {
    --primary-color: #1d1d1d;
    --accent-color: #E62200;
    --header-height: 50px;
    --grey-background: #f5f5f5;
}


body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: var(--primary-color);
    font-size:18px;
}

* {
    box-sizing: border-box;
    font-family: 'Inter Tight', sans-serif;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    color: var(--accent-color)
}

h4 {
    font-size:30px;
}

h5 {
    font-size:20px;
}

img {
    max-width: 100%;
    height: auto;
}

.accent-text {
    color: var(--accent-color);
}
.bold {
    font-weight: 600;
}
.normal-text {
    font-weight: 400;
}
.center-text {
    text-align: center;
}
.constrained-text {
    width: 70vw;
    max-width: 800px;
}
.block-text {
    display: block;
}
.rounded {
    border-radius: 10px;
}
.rounded-full {
    border-radius: 500px;
}
.borderWhite {
    border: 20px solid #ffffff;
}
.borderBottom {
    border-bottom: 1px solid black;
}
.borderTop {
    border-top: 1px solid black;
}
.displayBlock {
    display: block;
}

ul {
    list-style: none;
    padding-left: 0;
    counter-reset: list-counter;
    border-left: 1px solid black;
    padding-left: 30px;
}
ul li {
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    counter-increment: list-counter;
}
ul li::before {
    content: counter(list-counter, decimal-leading-zero);
    font-weight: 500;
    margin-right: 30px;
    flex-shrink: 0;
    color: var(--accent-color);
    font-size:14px;
}

.br-smart-invert br {
    display: none;          /* plus de retour à la ligne */
}
.br-smart-invert::after {
    content: " ";           /* ajoute un espace à la place */
}
.showMobile {display:none;}


/*
////////////////////////////////////////////////////////////
// Header
////////////////////////////////////////////////////////////
*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 10px 20px;
    z-index: 2;
}

button.btn-cta {
    border-radius: 60px;
    background-color: var(--accent-color);
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
}

header .header-logo h1, header .header-logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

header .header-logo h1 {
    text-transform: uppercase;
    font-weight: 700;
    font-size:22px;
    display: flex;
    align-items: center;
}
header .header-logo h1 span.logoPart1 {
    color: var(--primary-color);
    padding: 0 6px 0 0;
    border-right: 3px solid var(--primary-color);
}
header .header-logo h1 span.logoPart2 {
    color: var(--accent-color);
    padding: 0 0 0 6px;
    transition: color 0.3s ease;
}

/* Logo blanc quand header est sur un fond coloré (hero actif ou section accent) */
body.header-over-accent header .header-logo h1 span.logoPart2 {
    color: #fff;
}

header h2 {
    font-size: 18px;
}











/*
////////////////////////////////////////////////////////////
// Hero Scroll Container
////////////////////////////////////////////////////////////
*/

/* Conteneur qui définit la hauteur de scroll virtuel */
.hero-scroll-container {
    /* Hauteur pour le scroll-jacking de la vidéo (2x écran) */
    height: calc(100vh * 2);
    position: relative;
}

/* Section hero fixe pendant le scroll */
section.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow: hidden;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État actif : fond rouge */
section.hero.hero--active {
    background-color: var(--accent-color);
}

/* Titre hero */
.hero-title {
    z-index: 10;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Titre caché en mode actif */
section.hero.hero--active .hero-title {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}

/* ScrollingShape - État initial (en bas) */
.scrollingShape {
    width: 80px;
    height: 150px;
    border: 3px solid var(--primary-color);
    border-radius: 60px;
    overflow: hidden;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    /* Animation CSS rapide */
    transition:
            width 0.7s cubic-bezier(0.4, 0, 0.2, 1),
            height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
            bottom 0.7s cubic-bezier(0.4, 0, 0.2, 1),
            border-radius 0.7s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease;
    border-color: 0.5s ease;
}

/* ScrollingShape - État actif (agrandi avec ratio fixe en vh) */
section.hero.hero--active .scrollingShape {
    width: 35vh;
    height: 60vh;
    bottom: 20vh;
    border-radius: 40vh;
    border: none;
}

/* ScrollingShape - États après scroll-jacking (position fixed, top contrôlé par JS) */
.scrollingShape.scrollingShape--scrolling,
.scrollingShape.scrollingShape--sticky,
.scrollingShape.scrollingShape--pushed {
    position: fixed;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 35vh;
    height: 60vh;
    border-radius: 40vh;
    border: none;
    z-index: 100;
}

/* Indicateur de scroll (la petite barre qui descend) */
.scrollingShape::before {
    content: "";
    width: 3px;
    height: 25px;
    position: absolute;
    top: 30px;
    left: 50%;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    opacity: 1;
    animation: scrollIndicator 1.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

/* Cacher l'indicateur en mode actif */
section.hero.hero--active .scrollingShape::before {
    opacity: 0;
    animation: none;
}

@keyframes scrollIndicator {
    0% {
        opacity: 1;
        top: 30px;
    }
    100% {
        opacity: 0;
        top: 80px;
    }
}

/* Conteneur vidéo */
.scrollingShape-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: inherit;
    overflow: hidden;
    /* Fix pour iOS - force le rendu GPU */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Vidéo - initialement cachée */
.scrollingShape-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Vidéo visible immédiatement (avant l'animation du shape) */
section.hero.hero--video-ready .scrollingShape-inner video {
    opacity: 1;
}


/* Div blanche qui monte depuis le bas pour simuler le scroll */
.scroll-reveal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #fff;
    z-index: 1; /* Au-dessus du fond mais sous le shape */
    will-change: height;
    z-index: -1;
}

h3.hero-title {
    font-size: clamp(35px, 5vw, 80px);
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    line-height: clamp(45px, 10vw, 90px);
}
h3.hero-title img {
    width: clamp(30px, 5vw, 66px);
    position: relative;
    top: 1vw;
}



/*
////////////////////////////////////////////////////////////
// Content Section
////////////////////////////////////////////////////////////
*/
.content-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 20px;
    margin-bottom: 5vh;
}

.content-section.smallPadding {
    padding: 3vh 20px 0;
}

.content-section.mediumPadding {
    padding: 5vh 20px;
}

.content-section.smallPaddingBottom {
    padding-bottom: 3vh;
}

.content-section.two-rows {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.content-section.two-rows .content-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
}
.content-section.two-rows .content-inner > div {
    width: 50%;
    text-align: left;
}

.content-section-image {position: relative;}
.content-section-image .iconeSurImage {position: absolute; top: 0; left: 0;}

.content-section-image.middle-image {
    position: relative;
    width:100%;
    text-align: center;
    padding: 0 20px;
}

.content-section-image.middle-image:after {
    content: '';
    display: block;
    width: 100%;
    height: 50%;
    background-color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
}

.content-section-image.middle-image img {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(32px, 3.4vw, 70px);
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.1;
}

.section-accent {
    background-color: #fff;
    color: var(--primary-color);
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Section accent visible (quand elle entre dans le viewport) */
.section-accent.in-view {
    background-color: var(--accent-color);
    color: #fff;
}
.section-accent.in-view .section-title {
    color: #fff;
}

.section-grey {
    background-color: var(--grey-background);
    color: var(--primary-color);
}
.section-grey .section-title {
    color: var(--primary-color);
}
.section-rouge .section-title {
    color: #fff;
}

section h2, section h3 {margin-top:0}

section .large-text {
    font-size: clamp(20px, 1.4vw, 30px);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.1;
}

.iconeSection {
    width: 60px;
    height: auto;
}


/* Programme */
.block-programme {
    width: 100%;
    background-color: var(--grey-background);
    padding: 40px;
    /* Pas de height: 100% - le flex stretch s'en occupe */
}
.block-programme h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}
.block-programme ul {
    list-style:circle;
    padding-left: 0;
    counter-reset:none;
    border-left: none;
    padding-left: 0px;
}
.block-programme ul li {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    counter-increment: none;
}
.block-programme ul li::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 5px;
}


/*////////////////////////////////////////////////////////////
// Margins & Paddings
// overwrite default margins & paddings
////////////////////////////////////////////////////////////*/
.noMarginBottom {
    margin-bottom: 0;
}
.noMarginTop {
    margin-top: 0;
}
.top-margin-10 {
    margin-top: 10px;
}
.top-margin-20 {
    margin-top: 20px;
}
.top-margin-30 {
    margin-top: 30px;
}
.top-margin-40 {
    margin-top: 40px;
}
.top-margin-50 {
    margin-top: 50px;
}
.top-margin-60 {
    margin-top: 60px;
}
.top-margin-70 {
    margin-top: 70px;
}
.top-margin-80 {
    margin-top: 80px;
}
.top-margin-90 {
    margin-top: 90px;
}
.top-margin-100 {
    margin-top: 100px;
}
.bottom-margin-10 {
    margin-bottom: 10px;
}
.bottom-margin-20 {
    margin-bottom: 20px;
}
.bottom-margin-30 {
    margin-bottom: 30px;
}
.bottom-margin-40 {
    margin-bottom: 40px;
}
.bottom-margin-50 {
    margin-bottom: 50px;
}
.bottom-margin-60 {
    margin-bottom: 60px;
}
.bottom-margin-70 {
    margin-bottom: 70px;
}
.bottom-margin-80 {
    margin-bottom: 80px;
}
.bottom-margin-90 {
    margin-bottom: 90px;
}
.content-section.noPaddingTop {
    padding-top: 0;
}
.content-section.noPaddingRight {
    padding-right: 0;
}
.content-section.noPaddingLeft {
    padding-left: 0;
}
.content-section.noPaddingBottom {
    padding-bottom: 0;
}
.bottom-padding-20 {
    padding-bottom: 20px;
}
.bottom-padding-40 {
    padding-bottom: 40px;
}
.bottom-padding-60 {
    padding-bottom: 60px;
}
.bottom-padding-80 {
    padding-bottom: 80px;
}
.bottom-padding-100, .content-section.bottom-padding-100 {
    padding-bottom: 100px;
}
.flex-stretch, .content-section.two-rows .content-inner.flex-stretch {
    align-items: stretch;
}
.flex-align-start, .content-section.two-rows .content-inner.flex-align-start {
    align-items: flex-start;
}
/* Les enfants directs de flex-stretch doivent aussi s'étirer */
.content-section.two-rows .content-inner.flex-stretch > div {
    display: flex;
    flex-direction: column;
}

/* Block programme remplit son parent */
.content-section.two-rows .content-inner.flex-stretch > .block-programme {
    flex: 1;
}

@media (max-width: 1280px) {
    header {background-color: white;}
}

@media (max-width: 768px) {
    .content-section.two-rows {
        flex-direction: column;
    }
    .content-section.two-rows .content-inner {
        flex-direction: column;
    }
    .content-section.two-rows .content-inner > div {
        width: 100%;
    }
    .content-section {
        margin-bottom: 0;
        padding: 5vh 20px;
    }
    .content-section.bottom-margin-50 {
        margin-bottom: 30px;
    }
    ul {
        border-left: none;
        padding-left: 0px;
    }


}
@media (max-width: 650px) {
    body {
        font-size: 16px;
    }
    section.hero.hero--active .scrollingShape {
        width: 30vh;
    }
    .content-section.two-rows .content-inner > div {
        width: 100%;
    }
    .br-smart br {
        display: none;          /* plus de retour à la ligne */
    }
    .br-smart::after {
        content: " ";           /* ajoute un espace à la place */
    }
    .br-smart-invert br {
        display: block;          /* plus de retour à la ligne */
    }
    .br-smart-invert::after {
        content: " ";           /* ajoute un espace à la place */
    }
    ul li {
        margin-bottom: 20px;
        font-size: 16px;
    }
    .block-programme {
        padding: 20px;
    }
    .content-section.smallPadding {
        padding: 6vh 20px 0;
    }
    .content-section.bottom-padding-100 {
        padding-bottom: 100px;
    }
    h4 {
        font-size: 22px;
    }
    h5 {
        font-size: 18px;
    }
    header .header-logo h1 {
        font-size: 16px;
    }
    header h2 {
        font-size: 14px;
    }
    button.btn-cta {
        font-size: 16px;
    }
    .hideMobile {
        display: none;
    }
    .showMobile {
        display: block;
    }
    .hero-title .showMobile {
        display: inline-block;
    }
    .padding20Mobile {
        padding:20px;
    }
    .bottom-margin-0-mobile {
        margin-bottom: 0px;
    }
    .bottom-margin-30-mobile {
        margin-bottom: 30px;
    }
    .section-title {
        margin-bottom: 30px;
    }
    .iconeSection {
        width: 40px;
    }
    .content-section.paddingTop0Mobile {
        padding-top:0;
    }
    .content-section.bottom-margin-50 {
        margin-bottom: 5px;
    }


}


/*
////////////////////////////////////////////////////////////
// Play overlay & Video Modal
////////////////////////////////////////////////////////////
*/

/* Container pour le play overlay */
.openModaleVideo {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Image avec parallax */
.openModaleVideo .parallax-img {
    transform: scale(1.15);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Overlay avec icône play */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.openModaleVideo:hover .play-overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

.play-icon {
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.openModaleVideo:hover .play-icon {
    transform: scale(1.1);
}

/* Sur mobile : icône play toujours visible */
@media (max-width: 768px) {
    .play-overlay {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* Modale vidéo */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Doit être supérieur au header et aux autres sections */
    display: none; /* Caché par défaut, le JS passera en 'flex' */
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9); /* Fond noir semi-transparent */
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 10;
}


.video-modal-wrapper video {
    width: 100%;
    height: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: #000; /* Évite le flash blanc avant lecture */
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

.video-modal-close:hover {
    transform: scale(1.2);
}