/* ============================================================================
   Base: site optimisé pour le 1440p (2560×1440)
============================================================================ */

/* 1) VARIABLES & POLICES */
@font-face {
    font-family: 'Futura Book';
    src: url('../fonts/FuturaBook.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --header-h: 100px;
    --teal-ink: #4F6761;
    --ease-smooth: cubic-bezier(.22, .61, .36, 1);
    --ease-crisp: cubic-bezier(.16, 1, .3, 1);
}

/* 2) BASE GLOBALE */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Futura Book', 'Futura', sans-serif !important;
    font-size: 12pt;
    color: #3a4a57;
    font-weight: 100 !important;
    height: 100%;
    overflow: auto;
    scroll-behavior: smooth;
    background: #fff;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 3) WRAPPER & SECTIONS */
.page-wrapper {
    width: 100%;
    max-width: 1920px;
    padding: 0;
    background: #fff;
    box-sizing: border-box;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--teal-ink) #f0f0f0;
}

.page-wrapper::-webkit-scrollbar {
    width: 10px;
}

.page-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.page-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(81, 126, 129, .7);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

section {
    position: relative;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-behavior: smooth;
    flex-shrink: 0;
}

/* 4) EN-TÊTE */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 10;
}

.site-header .header-inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #f4f7f6;
    background: rgba(115, 160, 168, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.site-header .header-logo {
    height: 70px;
    width: auto;
    display: block;
}

.brand-placeholder {
    font-weight: 500;
    font-size: 2.3rem;
    letter-spacing: 1.3px;
    white-space: nowrap;
}

/* 5) TITRES */
h1 {
    margin: 0 0 20px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    background: linear-gradient(90deg,
            rgb(161, 157, 147) 0%,
            rgb(150, 143, 123) 12%,
            rgb(130, 145, 135) 24%,
            rgb(110, 146, 146) 40%,
            rgb(123, 128, 113) 56%,
            rgb(124, 110, 80) 72%,
            rgb(158, 147, 122) 88%,
            rgb(161, 157, 147) 100%);
    background-size: 800% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(-20px);
    animation: gradientShift 14s ease-in-out infinite alternate, fadeInUp 1s ease-out .2s forwards;
    will-change: background-position;
    -webkit-font-smoothing: antialiased;
}

.site-header h1.landscape {
    position: relative;
    left: 2%;
    margin: 0;
    font-size: clamp(1.75rem, 2.5vw + 1rem, 2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .5px;
    text-shadow: 1px 1px 4px rgba(203, 206, 211, .2);
    background: linear-gradient(90deg,
            rgb(202, 213, 223) 0%,
            rgb(192, 219, 226) 25%,
            rgb(224, 232, 235) 50%,
            rgb(181, 210, 216) 75%,
            rgb(200, 218, 241) 100%);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(-20px);
    animation: gradientShift 8s linear infinite, fadeInUp 1s ease-out .2s forwards;
}

.site-header h1.mobile {
    display: none;
}

h1.title-bg {
    margin: 0;
    min-height: 60px;
    padding: 30px;
    background: rgba(93, 133, 136, .5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

h1.alt-title {
    margin: 0 0 20px;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    background: linear-gradient(90deg,
            rgb(149, 158, 168) 0%,
            rgb(132, 169, 178) 20%,
            rgb(116, 180, 189) 40%,
            rgb(106, 148, 148) 60%,
            rgb(158, 199, 185) 80%,
            rgb(158, 170, 184) 100%);
    background-size: 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 12s ease-in-out infinite alternate, fadeInUp 1s ease-out .2s forwards;
}

/* Titres par section */
#section2 h1,
#section3 h1,
#section4 h1,
#section5 h1 {
    padding-top: 40px;
    text-align: center;
}

/* 6) BLOCS DE TEXTE */
.bloc-text,
.bloc-text2 {
    max-width: 80%;
    margin: 40px auto 20px;
    padding: 10px;
    text-align: justify;
    border-radius: 10px;
}

.bloc-text {
    background: rgba(182, 220, 223, .5);
    border: 1px solid rgba(39, 55, 56, .1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.bloc-text2 {
    background: #fff;
    border: none;
}

.bloc-text h2,
.bloc-text2 h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 400;
}

.bloc-text ul,
.bloc-text2 ul {
    margin-top: 1.4em;
    padding-left: 1.5em;
    list-style: disc;
}

.bloc-text li,
.bloc-text2 li {
    margin-bottom: 1.4em;
    line-height: 1.5;
}

/* 7) VIDÉOS (règles communes + variantes) */
.video-container,
.video-container2,
.video-container3 {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 3em;
}

.video-container2 {
    margin-top: 1em !important;
}

.video-container video,
.video-container2 video,
.video-container3 video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    animation: fadeInUp 1s ease-out .5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.video-container2 video {
    width: 960px !important;
    max-width: 960px;
    margin: 40px auto;
}

.video-container3 video {
    width: 600px;
}

/* 8) GALERIES & DÉMOS */
.usage-gallery,
.demo-buttons,
.demo-photos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: auto;
    flex-wrap: wrap;
}

.demo-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-photo {
    width: 100%;
    height: auto;
    max-height: 40dvh;
}

/* Section 2 – galerie défilante */
#section2 .usage-gallery {
    position: relative;
    overflow: hidden;
    display: block;
    width: var(--track-w, min(1600px, 72vw));
    margin: clamp(16px, 3vw, 40px) auto;
    padding-top: 30px;
    --marquee-gap: clamp(16px, 3vw, 32px);
    --marquee-speed: 50;
    mask: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    background-color: rgba(93, 133, 136, .5);
    scrollbar-width: none;
}

#section2 .usage-gallery::-webkit-scrollbar {
    display: none;
}

#section2 .usage-track {
    display: flex;
    align-items: center;
    gap: var(--marquee-gap) !important;
    will-change: transform;
}

#section2 .usage-item {
    flex: 0 0 auto;
    width: clamp(280px, 50vw, 550px);
    text-align: center;
    font-size: 16pt;
    font-weight: 600;
}

#section2 .usage-item img {
    width: 100%;
    height: auto !important;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transition: transform .3s ease;
}

#section2 .usage-item img:hover {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    #section2 .usage-track {
        transition: none;
    }
}

.demo-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: clamp(24px, 5vw, 80px);
    margin: 100px auto;
    max-width: min(1200px, 90vw);
    place-items: center;
}

.demo-item {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.demo-item p {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #3a4a57;
}

.demo-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #4f6467, #547c79);
    color: #fff;
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 4px;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    transition: background .4s, transform .2s, box-shadow .3s;
}

.demo-btn:hover {
    background: linear-gradient(135deg, #5a7c80, #4f6467);
    box-shadow: 0 0 12px rgba(79, 100, 103, .6), 0 8px 18px rgba(0, 0, 0, .25);
    transform: translateY(-3px) scale(1.03);
}

/* 9) PHOTOS LIÉES AUX DÉMOS */
.demo-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: clamp(16px, 4vw, 40px);
    max-width: min(1200px, 90vw);
    margin: 0 auto 20px;
    place-items: center;
}

.demo-photo {
    height: 40dvh;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    filter: grayscale(100%);
    transition: filter .25s ease, transform .2s ease, box-shadow .2s ease;
    will-change: filter, transform;
}

.demo-photo-link {
    display: inline-block;
    text-decoration: none;
    outline: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: box-shadow .2s ease, transform .2s ease;
}

.demo-photo-link:hover .demo-photo,
.demo-photo-link:focus-visible .demo-photo,
.demo-photo-link.is-hover .demo-photo {
    filter: grayscale(0%);
    transform: translateY(-3px);
}

.demo-photo-link:hover,
.demo-photo-link.is-hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.demo-photo-link:focus-visible {
    outline: 3px solid rgba(79, 100, 103, .5);
    outline-offset: 3px;
}

/* 10) BRAND / LOGO LIEN CLIQUABLE */
.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand-link .logo {
    float: left;
    height: 5em;
    margin-right: .5em;
    margin-top: .6em;
}

/* 11) AUTRES COMPOSANTS */

.credit {
    text-align: center;
    font-size: .9rem;
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
    opacity: .8;
}

.credit strong {
    color: #455a54;
}

.credit .cta-inline {
    font-size: 1.2rem;
    color: #455a54 !important;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
}

.credit .cta-inline:hover {
    text-decoration: underline;
}

.scroll-arrow {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation: arrowBounce 1.5s infinite ease-in-out;
    opacity: .8;
    transition: opacity .3s;
    z-index: 10;
    cursor: pointer;
}

.scroll-arrow:hover {
    opacity: 1;
}

.scroll-arrow svg {
    width: 40px;
    height: 40px;
}

/* 12) BLOC CONTACT */
#section5 .contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
}

#section5 .contact-list {
    margin-top: 8px;
    padding-left: 0;
    list-style: none;
}

#section5 .contact-link {
    text-decoration: none;
    font-size: 1em !important;
    font-weight: 600;
    color: var(--teal-ink);
}

#section5 .contact-link:hover {
    text-decoration: underline;
}

/* 13) MENTIONS LÉGALES */
.legal-open {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 60px;
    display: inline-block;
    padding: 10px 14px;
    color: #2d393c;
    font-size: 1em;
    font-style: italic;
    cursor: pointer;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

#legalDialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

#legalDialog {
    padding: 0;
    border: none;
    border-radius: 14px;
    width: clamp(320px, 80vw, 720px);
    max-height: min(80svh, 720px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.legal-dialog {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.legal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(79, 103, 97, .08);
    border-bottom: 1px solid rgba(79, 103, 97, .15);
}

.legal-head h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #0d363f;
}

.legal-close {
    inline-size: 36px;
    block-size: 36px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    cursor: pointer;
}

.legal-body {
    padding: 16px;
    overflow: auto;
    background: #fff;
}

.legal-body ul {
    margin: 0;
    padding-left: 1.1em;
}

.legal-body li {
    margin: 0 0 .6em;
    line-height: 1.5;
    color: #000 !important;
    font-weight: normal !important;
}

/* 14) ANIMATIONS GÉNÉRIQUES (utilisées) */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }

    100% {
        background-position: 100% 50%
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes arrowBounce {
    0% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(8px)
    }

    100% {
        transform: translateX(-50%) translateY(0)
    }
}

/* 15) ANIMATIONS D’ENTRÉE PAR SECTION (version épurée) */

/* Section 2 : fondu propre */
@keyframes intro-fade-clean {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.section-visible.section2 {
    animation: intro-fade-clean 700ms var(--ease-smooth) both;
}

/* Section 2 : tilt-in du bloc + stagger des <li> */
#section2.section-animated .bloc-text2 {
    opacity: 0;
    transform-origin: top center;
    will-change: transform, opacity;
}

@keyframes s2-tilt-in-top {
    0% {
        transform: perspective(900px) rotateX(-12deg) translateY(-16px);
        opacity: 0;
    }

    60% {
        opacity: .92;
    }

    100% {
        transform: perspective(900px) rotateX(0) translateY(0);
        opacity: 1;
    }
}

#section2.section-visible .bloc-text2 {
    animation: s2-tilt-in-top 1500ms var(--ease-crisp) both;
}

#section2.section-animated .bloc-text2 ul>li {
    opacity: 0;
    transform-origin: top left;
    will-change: transform, opacity;
}

@keyframes s2-li-tilt-in {
    from {
        transform: perspective(900px) rotateX(-12deg) translateY(8px);
        opacity: 0;
    }

    to {
        transform: perspective(900px) rotateX(0) translateY(0);
        opacity: 1;
    }
}

#section2.section-visible .bloc-text2 ul>li:nth-child(1) {
    animation: s2-li-tilt-in 420ms var(--ease-smooth) 90ms both;
}

#section2.section-visible .bloc-text2 ul>li:nth-child(2) {
    animation: s2-li-tilt-in 420ms var(--ease-smooth) 170ms both;
}

#section2.section-visible .bloc-text2 ul>li:nth-child(3) {
    animation: s2-li-tilt-in 420ms var(--ease-smooth) 250ms both;
}

#section2.section-visible .bloc-text2 ul>li:nth-child(4) {
    animation: s2-li-tilt-in 420ms var(--ease-smooth) 330ms both;
}

#section2.section-visible .bloc-text2 ul>li:nth-child(5) {
    animation: s2-li-tilt-in 420ms var(--ease-smooth) 410ms both;
}

#section2.section-visible .bloc-text2 ul>li:nth-child(6) {
    animation: s2-li-tilt-in 420ms var(--ease-smooth) 490ms both;
}

@media (prefers-reduced-motion: reduce) {
    #section2.section-animated .bloc-text2 {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    #section2.section-animated .bloc-text2 ul>li {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

/* Section 3 : tracking-in */
@keyframes tracking-in-contract {
    0% {
        letter-spacing: .6em;
        opacity: 0;
        transform: translateY(.2em);
    }

    40% {
        opacity: .6;
    }

    100% {
        letter-spacing: 0;
        opacity: 1;
        transform: translateY(0);
    }
}

#section3.section-visible .title-bg {
    will-change: letter-spacing, opacity, transform;
    animation: tracking-in-contract 800ms var(--ease-crisp) both !important;
}

@media (prefers-reduced-motion: reduce) {
    #section3.section-visible .title-bg {
        animation: none !important;
    }
}

/* Section 4 : tilt-in amplifié + délais */
#section4 {
    perspective: 1400px;
    perspective-origin: 50% 30%;
}

#section4.section-animated .demo-photo-link {
    opacity: 0;
    transform-origin: center center;
    transform: perspective(1400px) translateZ(-80px) rotateY(24deg) translateY(-36px) scale(.96);
    filter: blur(4px) saturate(.96);
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    contain: paint;
    --s4-delay: 160ms;
}

@keyframes s4-tilt-in-slide-down-boost {
    0% {
        transform: perspective(1400px) translateZ(-80px) rotateY(24deg) translateY(-36px) scale(.96);
        opacity: 0;
        filter: blur(4px) saturate(.96);
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: perspective(1400px) translateZ(0) rotateY(0) translateY(0) scale(1);
        opacity: 1;
        filter: none;
    }
}

#section4.section-visible .demo-photo-link {
    animation: s4-tilt-in-slide-down-boost 920ms var(--ease-crisp) both;
    animation-delay: var(--s4-delay);
}

#section4.section-visible .demo-photo-link:nth-child(1) {
    --s4-delay: 160ms;
}

#section4.section-visible .demo-photo-link:nth-child(2) {
    --s4-delay: 340ms;
}

#section4.section-animated .demo-photo-link:nth-child(2) {
    transform: perspective(1400px) translateZ(-80px) rotateY(-24deg) translateY(-36px) scale(.96);
}

@media (max-width:600px) {
    #section4.section-animated .demo-photo-link {
        transform: perspective(1100px) translateZ(-60px) rotateY(16deg) translateY(-24px) scale(.985);
        filter: blur(3px) saturate(.96);
    }

    #section4.section-visible .demo-photo-link {
        animation-duration: 780ms;
    }

    #section4.section-visible .demo-photo-link:nth-child(1) {
        --s4-delay: 120ms;
    }

    #section4.section-visible .demo-photo-link:nth-child(2) {
        --s4-delay: 240ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    #section4.section-animated .demo-photo-link {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none !important;
    }
}

/* Section 5 : slide-in gauche */
#section5.section-animated .bloc-text {
    opacity: 0;
    transform: translateX(-28px);
    will-change: opacity, transform;
}

@keyframes s5-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-28px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

#section5.section-visible .bloc-text {
    animation: s5-slide-in-left 640ms var(--ease-smooth) both;
    animation-delay: 120ms;
}

@media (min-width:1025px) {
    #section5.section-animated .bloc-text {
        transform: translateX(-36px);
    }

    #section5.section-visible .bloc-text {
        animation-duration: 720ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    #section5.section-animated .bloc-text {
        opacity: 1;
        transform: none;
    }

    #section5.section-visible .bloc-text {
        animation: none !important;
    }
}

/* 16) RESPONSIVE */
/* 4K+ */
@media screen and (min-width:2561px) {
    html {
        font-size: 16pt;
    }

    .page-wrapper,
    .site-header .header-inner {
        max-width: 3000px;
    }

    .bloc-text,
    .bloc-text2 {
        margin-top: 100px !important;
    }

    .bloc-text h2,
    .bloc-text2 h2 {
        font-size: 1.8rem;
        line-height: 1.5;
    }

    .credit {
        font-size: 1.5rem;
    }

    .credit .cta-inline {
        font-size: 1.6rem;
    }

    .video-container2 video,
    .video-container3 video {
        width: 1000px !important;
    }

    /* SECTION 4 grille large */
    #section4 {
        --grid-max: min(2600px, 96vw);
        --col-min: 820px;
        --grid-gap: clamp(24px, 2.5vw, 80px);
    }

    #section4 .demo-buttons,
    #section4 .demo-photos {
        display: grid;
        grid-template-columns: repeat(2, minmax(var(--col-min), 1fr));
        gap: var(--grid-gap);
        max-width: var(--grid-max);
        margin: 24px auto 32px;
        align-items: start;
        justify-items: center;
    }

    #section4 .demo-buttons {
        margin-top: 150px;
        justify-items: stretch;
    }

    #section4 .demo-item {
        width: 100%;
        max-width: none;
    }

    #section4 .demo-item>* {
        margin-left: auto;
        margin-right: auto;
    }

    #section4 .demo-item p {
        margin: 0 auto 12px;
        line-height: 1.35;
        text-wrap: balance;
    }

    #section4 .demo-photo-link {
        display: block;
        width: 100%;
        box-shadow: none;
        overflow: visible;
        border-radius: 0;
    }

    #section4 .demo-photo {
        display: block;
        width: 100%;
        height: auto;
        max-height: 60dvh;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    }
}

/* QHD 2560×1440 zoom 125% */
@media screen and (min-width:1921px) and (max-width:2048px) and (max-height:1152px) {
    body {
        font-size: 11pt;
    }

    h1,
    h1.title-bg,
    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .bloc-text,
    .bloc-text2 {
        max-width: 75%;
        margin: 20px auto 10px;
        padding: 8px;
        font-size: 1.1rem;
    }

    .bloc-text h2,
    .bloc-text2 h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 1em;
        font-size: 1.1rem;
    }

    .demo-buttons {
        gap: 40px;
        margin: 60px auto;
    }

    .demo-item p,
    .usage-item p {
        font-size: 1.2rem;
    }

    .demo-btn {
        font-size: 1.6rem;
        padding: 12px 24px;
    }

    .usage-gallery {
        margin: 60px auto;
        padding-top: 30px;
        gap: 16px;
    }

    .usage-item {
        max-width: 320px;
    }

    .video-container {
        margin-top: 0;
    }

    .video-container2 video,
    .video-container3 video {
        max-width: 880px;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    .demo-photo {
        height: 32dvh;
    }

    .legal-mentions {
        font-size: .85rem;
        padding: 16px;
        max-width: 75%;
        margin-bottom: 20px;
    }

    .legal-mentions h2 {
        font-size: 1.1rem;
    }

    /* SECTION 1 */
    #section1 {
        position: relative;
        height: 100dvh;
        overflow: hidden;
    }

    #section1 .video-container {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #section1 .video-container video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 70px;
        left: 10%;
        right: 10%;
        z-index: 1;
        max-width: 80%;
        background: rgba(255, 255, 255, .85);
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
        text-align: justify;
    }

    #section1 .bloc-text h2 {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    #section1 .credit {
        position: absolute;
        bottom: 40px;
        left: 10%;
        right: 10%;
        font-size: .95rem;
        line-height: 1.5;
        font-weight: 600;
        text-align: center;
        z-index: 2;
        color: #fff;
        text-shadow: 0 0 4px rgba(0, 0, 0, .65), 0 0 8px rgba(0, 0, 0, .65), 1px 1px 2px rgba(0, 0, 0, .5);
    }

    /* SECTION 2 */
    #section2 h1 {
        margin-bottom: 50px !important;
    }

    /* SECTION 3 */
    #section3 .title-bg {
        min-height: 30px;
        padding: 15px;
    }

    .video-container2 video {
        max-width: 2200px;
    }

    /* SECTION 4 */
    .demo-photos {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin: auto;
        flex-wrap: wrap;
        gap: 250px;
    }

    .demo-photo {
        height: 50dvh;
    }

    /* SECTION 5 */
    #section5 h2 {
        font-size: 1em;
    }

    .video-container3 video {
        max-width: 800px !important;
        height: auto;
    }

    .scroll-arrow {
        z-index: 2;
    }
}

/* QHD 2560×1440 zoom 150% */
@media screen and (min-width:1680px) and (max-width:1720px) and (max-height:972px) {
    body {
        font-size: 11pt;
    }

    h1,
    h1.title-bg,
    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .bloc-text,
    .bloc-text2 {
        max-width: 75%;
        margin: 20px auto 10px;
        padding: 8px;
        font-size: 1.1rem;
    }

    .bloc-text h2,
    .bloc-text2 h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 1em;
        font-size: 1.1rem !important;
    }

    .demo-buttons {
        gap: 40px;
        margin: 60px auto;
    }

    .demo-item p,
    .usage-item p {
        font-size: 1.2rem;
    }

    .demo-btn {
        font-size: 1.6rem;
        padding: 12px 24px;
    }

    .usage-gallery {
        margin: 10px auto !important;
        padding-top: 30px;
        gap: 16px;
    }

    .usage-item {
        max-width: 320px;
    }

    .video-container {
        margin-top: 0;
    }

    .demo-photo {
        height: 32dvh;
    }

    .legal-mentions {
        font-size: .85rem;
        padding: 16px;
        max-width: 75%;
        margin-bottom: 20px;
    }

    .legal-mentions h2 {
        font-size: 1.1rem;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    /* SECTION 1 */
    #section1 {
        position: relative;
        height: 100dvh;
        overflow: hidden;
    }

    #section1 .video-container {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #section1 .video-container video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 70px;
        left: 10%;
        right: 10%;
        z-index: 1;
        max-width: 80%;
        background: rgba(255, 255, 255, .85);
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
        text-align: justify;
    }

    #section1 .credit {
        position: absolute;
        bottom: 40px;
        left: 10%;
        right: 10%;
        font-size: .95rem;
        line-height: 1.5;
        font-weight: 600;
        text-align: center;
        z-index: 2;
        color: #fff;
        text-shadow: 0 0 4px rgba(0, 0, 0, .65), 0 0 8px rgba(0, 0, 0, .65), 1px 1px 2px rgba(0, 0, 0, .5);
    }

    #section2 h1 {
        margin-bottom: 40px !important;
    }

    #section3 .title-bg {
        min-height: 30px;
        padding: 15px;
    }

    .video-container2 video {
        max-width: 600px !important;
    }

    .demo-photos {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin: auto;
        flex-wrap: wrap;
        gap: 250px;
    }

    .demo-photo {
        height: 50dvh;
    }

    #section5 h2 {
        font-size: 1em;
    }

    .video-container3 video {
        margin-top: -20px;
        width: 400px !important;
    }

    .scroll-arrow {
        z-index: 2;
    }
}

/* Full HD */
@media screen and (min-width:1366px) and (max-width:1920px) and (max-height:1080px) {
    html {
        font-size: 12pt;
    }

    h1,
    h1.title-bg,
    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .bloc-text,
    .bloc-text2 {
        max-width: 75%;
        margin: 20px auto 10px;
        padding: 8px;
        font-size: 1rem;
    }

    .bloc-text h2,
    .bloc-text2 h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 1em;
        font-size: .95rem;
    }

    .demo-buttons {
        gap: 40px;
        margin: 60px auto;
    }

    .demo-item p,
    .usage-item p {
        font-size: 1.2rem;
    }

    .demo-btn {
        font-size: 1.6rem;
        padding: 12px 24px;
    }

    .usage-gallery {
        margin: 60px auto;
        padding-top: 30px;
        gap: 16px;
    }

    .usage-item {
        max-width: 320px;
    }

    .video-container {
        margin-top: 0;
    }

    .video-container2 video,
    .video-container3 video {
        max-width: 880px;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    .demo-photo {
        height: 32dvh;
    }

    .legal-mentions {
        font-size: .85rem;
        padding: 16px;
        max-width: 75%;
        margin-bottom: 20px;
    }

    .legal-mentions h2 {
        font-size: 1.1rem;
    }

    /* SECTION 1 */
    #section1 {
        position: relative;
        height: 100dvh;
        overflow: hidden;
    }

    #section1 .video-container {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #section1 .video-container video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 100px;
        left: 10%;
        right: 10%;
        z-index: 1;
        max-width: 80%;
        background: rgba(255, 255, 255, .85);
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
        text-align: justify;
    }

    #section1 .credit {
        position: absolute;
        bottom: 40px;
        left: 10%;
        right: 10%;
        font-size: .95rem;
        line-height: 1.5;
        font-weight: 600;
        text-align: center;
        z-index: 2;
        color: #fff;
        text-shadow: 0 0 4px rgba(0, 0, 0, .65), 0 0 8px rgba(0, 0, 0, .65), 1px 1px 2px rgba(0, 0, 0, .5);
    }

    /* SECTION 2 (fix sélecteur) */
    #section2 h1 {
        margin-bottom: 50px !important;
    }

    #section2 .bloc-text2 ul li {
        font-size: 1em;
    }

    /* ← corrigé */

    /* SECTION 3 (fix sélecteur) */
    #section3 .title-bg {
        min-height: 30px;
        padding: 15px;
    }

    #section3 .bloc-text2 ul li {
        font-size: 1em;
    }

    /* ← corrigé */

    .video-container2 video {
        max-width: 700px;
    }

    /* SECTION 4 */
    .demo-photos {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin: auto;
        flex-wrap: wrap;
        gap: 300px;
    }

    .demo-photo {
        height: 50dvh;
    }

    /* SECTION 5 */
    #section5 h2 {
        font-size: 1.1em;
    }

    .video-container3 video {
        margin-top: -30px !important;
        max-width: 400px !important;
    }

    .scroll-arrow {
        z-index: 2;
    }
}

/* Laptops 1366×768 (max-height 800) */
@media screen and (max-height:800px) and (min-width:1024px) {
    html {
        font-size: 10pt;
    }

    h1,
    h1.title-bg,
    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .bloc-text,
    .bloc-text2 {
        max-width: 90%;
        margin: 20px auto 10px;
        padding: 8px;
        font-size: 1rem;
    }

    .bloc-text h2,
    .bloc-text2 h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 1em;
        font-size: .95rem;
    }

    .demo-buttons {
        gap: 40px;
        margin: 30px auto;
    }

    .demo-item p,
    .usage-item p {
        font-size: 1.2rem;
    }

    .demo-btn {
        font-size: 1.6rem;
        padding: 12px 24px;
    }

    .usage-gallery {
        margin: -20px auto;
        padding-top: 10px;
        gap: 16px;
    }

    .usage-item {
        max-width: 250px;
    }

    .video-container {
        margin-top: 0;
    }

    .video-container2 video,
    .video-container3 video {
        max-width: 880px;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    .demo-photo {
        height: 32dvh;
    }

    .legal-mentions {
        font-size: .85rem;
        padding: 8px;
        left: 20%;
        right: 20%;
        max-width: 60%;
        transform: translateX(0%);
        margin-bottom: 20px;
        line-height: 10pt;
    }

    /* SECTION 1 */
    #section1 {
        position: relative;
        height: 100dvh;
        overflow: hidden;
    }

    #section1 .video-container {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #section1 .video-container video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 90px;
        left: 2%;
        right: 2%;
        max-width: 96%;
        z-index: 1;
        background: rgba(255, 255, 255, .85);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
        text-align: justify;
    }

    #section1 .bloc-text h1 {
        margin-top: -20px;
    }

    #section1 .credit {
        position: absolute;
        bottom: 40px;
        left: 3%;
        right: 3%;
        font-size: .95rem;
        line-height: 1.5;
        font-weight: 600;
        text-align: center;
        z-index: 2;
        color: #fff;
        text-shadow: 0 0 4px rgba(0, 0, 0, .65), 0 0 8px rgba(0, 0, 0, .65), 1px 1px 2px rgba(0, 0, 0, .5);
    }

    #section2 h1 {
        margin-bottom: 30px !important;
    }

    #section3 .title-bg {
        min-height: 30px;
        padding: 10px;
    }

    .video-container2 {
        margin-top: -20px !important;
    }

    .video-container2 video {
        max-width: 500px;
    }

    .demo-photos {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin: auto;
        flex-wrap: wrap;
        gap: 340px;
    }

    .demo-photo {
        height: 50dvh;
    }

    #section5 .bloc-text {
        font-size: 1em;
        max-width: 90%;
    }

    .video-container3 {
        position: relative;
        width: 100dvw;
        text-align: center;
        margin-top: 40px;
    }

    .video-container3 video {
        max-width: 300px !important;
    }

    .scroll-arrow {
        z-index: 2;
    }
}

/* 1280×800 */
@media screen and (max-width:1280px) and (max-height:860px) {
    html {
        font-size: 10pt !important;
    }

    h1,
    h1.title-bg,
    .site-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .bloc-text,
    .bloc-text2 {
        max-width: 90%;
        margin: 20px auto 10px;
        padding: 8px;
        font-size: 1rem;
    }

    .bloc-text h2,
    .bloc-text2 h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 1em;
        font-size: .95rem;
    }

    .demo-buttons {
        gap: 40px;
        margin: 30px auto;
    }

    .demo-item p,
    .usage-item p {
        font-size: 1.2rem;
    }

    .demo-btn {
        font-size: 1.6rem;
        padding: 12px 24px;
    }

    .usage-gallery {
        margin: -20px auto;
        padding-top: 10px;
        gap: 16px;
    }

    .usage-item {
        max-width: 250px;
    }

    .video-container {
        margin-top: 0;
    }

    .video-container2 video,
    .video-container3 video {
        max-width: 880px;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    .demo-photo {
        height: 32dvh;
    }

    .legal-mentions {
        font-size: .85rem;
        padding: 8px;
        left: 20%;
        right: 20%;
        max-width: 60%;
        transform: translateX(0%);
        margin-bottom: 20px;
        line-height: 10pt;
    }

    /* SECTION 1 */
    #section1 {
        position: relative;
        height: 100dvh;
        overflow: hidden;
    }

    #section1 .video-container {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 90px;
        left: 2%;
        right: 2%;
        max-width: 96%;
        z-index: 1;
        background: rgba(255, 255, 255, .85);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
        text-align: justify;
    }

    #section1 .bloc-text h1 {
        margin-top: -20px;
    }

    #section2 h1 {
        margin-bottom: 30px !important;
    }

    #section3 .title-bg {
        min-height: 30px;
        padding: 10px;
    }

    .video-container2 {
        margin-top: -20px !important;
    }

    .video-container2 video {
        max-width: 500px;
    }

    .demo-photos {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin: auto;
        flex-wrap: wrap;
        gap: 320px;
    }

    .demo-photo {
        height: 50dvh;
    }

    #section5 .bloc-text {
        font-size: 1em;
        max-width: 90%;
    }

    .video-container3 {
        margin: -10px;
    }

    .video-container3 video {
        max-width: 300px !important;
    }

    .scroll-arrow {
        z-index: 2;
    }
}

/* 1024×768 */
@media screen and (max-width:1024px) and (max-height:768px) {
    html {
        font-size: 10pt !important;
    }

    h1,
    h1.title-bg,
    .site-header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .bloc-text,
    .bloc-text2 {
        max-width: 90%;
        margin: 20px auto 10px;
        padding: 8px;
        font-size: 1rem;
    }

    .bloc-text h2,
    .bloc-text2 h2 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 1em;
        font-size: .95rem;
    }

    .demo-buttons {
        gap: 40px;
        margin: 30px auto;
    }

    .demo-item p,
    .usage-item p {
        font-size: 1.2rem;
    }

    .demo-btn {
        font-size: 1.6rem;
        padding: 12px 24px;
    }

    .usage-gallery {
        margin: -20px auto;
        padding-top: 10px;
        gap: 16px;
    }

    .usage-item {
        max-width: 150px;
    }

    .video-container {
        margin-top: 0;
    }

    .video-container2 video,
    .video-container3 video {
        max-width: 880px;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    .demo-photo {
        height: 32dvh;
    }

    .legal-mentions {
        font-size: .85rem;
        padding: 8px;
        left: 20%;
        right: 20%;
        max-width: 60%;
        transform: translateX(0%);
        margin-bottom: 20px;
        line-height: 10pt;
    }

    /* SECTION 1 */
    #section1 {
        position: relative;
        height: 100dvh;
        overflow: hidden;
    }

    #section1 .video-container {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #section1 .video-container video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 90px;
        left: 2%;
        right: 2%;
        max-width: 96%;
        z-index: 1;
        background: rgba(255, 255, 255, .85);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
        text-align: justify;
    }

    #section1 .bloc-text h1 {
        margin-top: -20px;
    }

    #section2 h1 {
        margin-bottom: 15px !important;
    }

    #section3 .title-bg {
        min-height: 30px;
        padding: 10px;
    }

    .video-container2 {
        margin-top: -20px !important;
    }

    .video-container2 video {
        max-width: 300px;
    }
}

/* SECTION 4 — 1024×768 : grille compacte */
@media screen and (max-width:1024px) and (max-height:768px) {
    #section4 {
        --grid-max: min(980px, 94vw);
        --col-min: 420px;
        --grid-gap: clamp(12px, 2.5vw, 24px);
    }

    #section4 .demo-buttons,
    #section4 .demo-photos {
        display: grid;
        grid-template-columns: repeat(2, minmax(var(--col-min), 1fr));
        gap: var(--grid-gap);
        max-width: var(--grid-max);
        margin: 16px auto 24px;
        align-items: start;
        justify-items: center;
    }

    #section4 .demo-buttons {
        margin-top: 36px;
        justify-items: stretch;
    }

    #section4 .demo-item {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    #section4 .demo-item>* {
        margin-left: auto;
        margin-right: auto;
    }

    #section4 .demo-item p {
        margin: 0 0 10px;
        line-height: 1.3;
        text-wrap: balance;
    }

    #section4 .demo-photo-link {
        width: 100%;
        display: block;
    }

    #section4 .demo-photo {
        width: 100%;
        height: auto;
        max-height: 30dvh;
        object-fit: contain;
    }

    #section4 .demo-btn {
        font-size: 1.1rem;
        padding: 10px 16px;
        letter-spacing: 2px;
    }

    #section5 .bloc-text {
        font-size: 1em;
        max-width: 90%;
    }

    .video-container3 {
        margin: -10px;
    }

    .video-container3 video {
        margin-top: 10px !important;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    .scroll-arrow {
        z-index: 2;
    }
}

/* Tablettes portrait (600–1024) */
@media screen and (orientation:portrait) and (min-width:600px) and (max-width:1024px) {
    :root {
        --header-h: 72px;
    }

    html {
        font-size: 11pt !important;
    }

    .site-header {
        height: var(--header-h);
    }

    .site-header .header-logo {
        height: 48px;
    }

    .brand-placeholder {
        font-size: 20pt;
    }

    .site-header h1 {
        left: 0;
        font-size: 18pt !important;
        line-height: 1.0;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    #section1 .video-container {
        margin: 0;
        padding: 0;
        top: 0;
        height: 100dvh;
        z-index: 1;
    }

    #section1 .video-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 120px;
        left: 10px;
        right: 10px;
        max-width: 99%;
        z-index: 1;
        background: rgba(255, 255, 255, .85);
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
        text-align: justify;
    }

    #section1 .bloc-text h1 {
        margin-top: 10px;
        font-size: 1.8rem;
    }

    #section1 .bloc-text h2 {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    #section1 .credit {
        text-align: center;
        font-size: 1.3rem !important;
        color: #b0ccc8;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: 1;
    }

    #section1 .credit,
    #section1 .credit strong {
        color: #9dc2b9;
    }

    #section2 {
        text-align: center;
    }

    #section2 h1 {
        display: inline-block;
        text-align: left;
        font-size: 1.8rem;
        margin: 0 0 !important;
        max-width: min(80ch, 90vw);
        padding-inline: 8px;
    }

    .bloc-text2 {
        max-width: 80dvw;
        margin: 40px auto 10px !important;
        padding: 8px;
        font-size: 1.2rem;
    }

    .bloc-text2 h2 {
        margin: 0;
        margin-top: -20px;
        font-size: 1.2rem;
        line-height: 1.2;
        font-weight: 400;
    }

    .bloc-text ul,
    .bloc-text2 ul {
        margin-top: 1em !important;
        padding-left: .5em;
        list-style: disc;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 10px !important;
        line-height: 1.2;
    }

    #section2 .usage-gallery {
        --track-w: 90vw;
        width: var(--track-w) !important;
        display: block !important;
        overflow: hidden;
        margin-inline: auto;
    }

    #section2 .usage-track {
        gap: var(--marquee-gap) !important;
    }

    #section2 .usage-item {
        width: clamp(450px, 55vw, 800px) !important;
    }

    #section3 .title-bg {
        min-height: 30px !important;
        padding: 10px;
        font-size: 2rem;
    }

    .bloc-text2 {
        max-width: 90%;
        margin: 40px auto 10px !important;
        padding: 8px;
        font-size: 1.1rem;
    }

    .bloc-text2 h2 {
        margin: 0 0 20px;
        font-size: 1.4em !important;
        line-height: 1.2;
        font-weight: 400;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 30px !important;
    }

    .video-container2 {
        margin: 30px 0 !important;
    }

    .video-container2 video {
        max-width: 80dvw;
    }

    /* SECTION 4 flatten */
    #section4 {
        --block-max: min(88vw, 640px) !important;
        --gap: clamp(10px, 2.5vw, 18px);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #section4 h1 {
        margin: 0 0 40px !important;
        padding-top: 0 !important;
        line-height: 1.1;
    }

    #section4 .demo-buttons,
    #section4 .demo-photos {
        display: contents;
    }

    #section4 .demo-btn {
        width: 90%;
        max-width: 320px;
        min-height: 44px !important;
        font-size: 1.4rem;
        font-weight: 500;
        letter-spacing: 1px;
        padding: 5px;
        padding-top: 20px;
        margin-inline: auto;
    }

    #section4 .demo-item {
        text-align: center;
        margin-bottom: 12px;
    }

    #section4 .demo-item,
    #section4 .demo-photo-link {
        width: var(--block-max);
        max-width: var(--block-max);
        margin-inline: auto;
    }

    #section4 .demo-buttons .demo-item:nth-child(1) {
        order: 1;
    }

    #section4 .demo-photos .demo-photo-link:nth-child(1) {
        order: 2;
    }

    #section4 .demo-buttons .demo-item:nth-child(2) {
        order: 3;
    }

    #section4 .demo-photos .demo-photo-link:nth-child(2) {
        order: 4;
    }

    #section4 .demo-photo-link {
        margin-bottom: var(--gap);
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    }

    #section4 .demo-photo {
        width: 100%;
        height: auto;
        max-height: 26dvh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: none;
    }

    #section5 .bloc-text {
        max-width: 85%;
        margin-top: 50px;
    }

    #section5 .bloc-text h2,
    #section5 .bloc-text2 h2 {
        font-size: 1.2em;
    }

    .video-container3 {
        margin: 0;
    }

    .video-container3 video {
        margin-top: 30px;
        max-width: 700px;
    }

    .legal-mentions {
        width: 92% !important;
    }
}

/* iPad Mini portrait */
@media screen and (orientation:portrait) and (min-width:744px) and (max-width:768px) and (min-height:1024px) and (max-height:1138px) {
    :root {
        --header-h: 120px;
    }

    html {
        font-size: 11pt !important;
    }

    .hide-mobile {
        display: none;
    }

    .site-header {
        height: var(--header-h);
    }

    .site-header .header-logo {
        height: 60px;
    }

    .brand-placeholder {
        font-size: 1.8rem;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    .site-header h1 {
        left: -6px !important;
        font-size: 17pt !important;
        line-height: 1.0;
    }

    #section1 .video-container {
        margin: 0;
        padding: 0;
        top: 0;
        height: 100dvh;
        z-index: 1;
    }

    #section1 .video-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    #section1 .bloc-text {
        position: absolute;
        bottom: 120px;
        left: 10px;
        right: 10px;
        max-width: 99%;
        z-index: 1;
        background: rgba(255, 255, 255, .85);
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    }

    #section1 .credit {
        position: absolute;
        bottom: 40px;
        left: 3%;
        right: 3%;
        font-size: .95rem;
        line-height: 1.5;
        font-weight: 600;
        text-align: center;
        z-index: 2;
        color: #fff;
        text-shadow: 0 0 4px rgba(0, 0, 0, .65), 0 0 8px rgba(0, 0, 0, .65), 1px 1px 2px rgba(0, 0, 0, .5);
    }

    #section2 h1 {
        display: inline-block;
        text-align: left;
        font-size: 1.8rem;
        margin: -20px 0 !important;
        max-width: min(80ch, 90vw);
        padding-inline: 8px;
    }

    .bloc-text2 {
        max-width: 90%;
        margin: 30px auto 10px !important;
        padding: 8px;
        font-size: 1.1rem;
    }

    .bloc-text2 h2 {
        margin: 0;
        margin-top: -20px;
        font-size: 1.2rem;
        line-height: 1.2;
        font-weight: 400;
    }

    .bloc-text ul,
    .bloc-text2 ul {
        margin-top: 1em !important;
        padding-left: .5em;
        list-style: disc;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 10px !important;
        line-height: 1.2;
    }

    #section2 .usage-gallery {
        --track-w: 90vw;
        width: var(--track-w) !important;
        display: block !important;
        overflow: hidden;
        margin-inline: auto;
    }

    #section2 .usage-track {
        gap: var(--marquee-gap) !important;
    }

    #section2 .usage-item {
        width: clamp(300px, 30vw, 500px) !important;
    }

    #section3 .title-bg {
        min-height: 30px !important;
        padding: 10px;
        font-size: 1.8rem;
    }

    .video-container2 {
        margin-top: 30px !important;
    }

    .video-container2 video {
        max-width: 80dvw;
    }

    /* SECTION 4 flatten */
    #section4 {
        --block-max: min(88vw, 640px) !important;
        --gap: clamp(10px, 2.5vw, 18px);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #section4 h1 {
        margin-top: -30px !important;
        padding-top: 0 !important;
    }

    #section4 .demo-buttons,
    #section4 .demo-photos {
        display: contents;
    }

    #section4 .demo-btn {
        width: 90%;
        max-width: 320px;
        min-height: 44px !important;
        font-size: 1.4rem;
        font-weight: 500;
        letter-spacing: 1px;
        padding: 5px;
        padding-top: 20px;
        margin-inline: auto;
    }

    #section4 .demo-item {
        text-align: center;
        margin-bottom: 12px;
    }

    #section4 .demo-item,
    #section4 .demo-photo-link {
        width: var(--block-max);
        max-width: var(--block-max);
        margin-inline: auto;
    }

    #section4 .demo-buttons .demo-item:nth-child(1) {
        order: 1;
    }

    #section4 .demo-photos .demo-photo-link:nth-child(1) {
        order: 2;
    }

    #section4 .demo-buttons .demo-item:nth-child(2) {
        order: 3;
    }

    #section4 .demo-photos .demo-photo-link:nth-child(2) {
        order: 4;
    }

    #section4 .demo-photo-link {
        margin-bottom: var(--gap);
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    }

    #section4 .demo-photo {
        width: 100%;
        height: auto;
        max-height: 26dvh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: none;
    }

    #section5 .bloc-text {
        max-width: 92%;
        margin-top: 0;
    }

    #section5 .bloc-text h2,
    #section5 .bloc-text2 h2 {
        font-size: 1rem;
    }

    .video-container3 {
        margin: -10px;
    }

    .video-container3 video {
        margin-top: 20px;
        max-width: 500px;
    }

    .legal-mentions {
        width: 92% !important;
    }
}

/* MOBILE ≤ 600px */
@media screen and (max-width:600px) {
    :root {
        --header-h: 72px;
    }

    html {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 1rem;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hide-mobile {
        display: none;
    }

    .site-header {
        height: 130px;
    }

    .site-header .header-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 12px;
        row-gap: 10px;
        padding: 0;
    }

    .site-header .header-logo {
        height: 48px;
        margin-top: 5px;
        margin-left: 5px;
    }

    .brand-placeholder {
        font-size: 1.7rem;
        white-space: nowrap;
        margin-top: 5px;
    }

    .site-header h1.landscape {
        display: none;
    }

    .site-header h1.mobile {
        position: static;
        display: block;
        grid-column: 1 / -1;
        margin: 0;
        margin-top: -40px !important;
        padding: 0 0 0 15px !important;
        text-align: left;
        font-size: 15pt;
        line-height: 1.1em;
        letter-spacing: .5px;
        background: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #fff !important;
        color: #fff !important;
    }

    #section1 .video-container {
        margin: 0;
        padding: 0;
        top: 0;
        height: 100dvh;
        z-index: 1;
    }

    #section1 .video-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    .credit {
        text-align: center;
        font-size: .9rem;
        color: #666;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: .8;
    }

    .credit strong {
        color: #d8e7e3;
    }

    .credit .cta-inline {
        font-size: 1.2rem;
        color: #d8e7e3 !important;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
    }

    #section1 .bloc-text {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 115px;
        z-index: 1;
        background: rgba(255, 255, 255, .85);
        padding: 20px 20px 10px !important;
        border-radius: 0;
    }

    #section1 .bloc-text h1 {
        margin-top: -10px;
        font-size: 1.4rem;
    }

    #section1 .bloc-text h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    #section1 .credit {
        position: absolute;
        bottom: 45px;
        left: 2%;
        right: 2%;
        font-size: 1rem;
        line-height: 1.2;
        font-weight: 600;
        text-align: center;
        z-index: 2;
        color: #fff;
        text-shadow: 0 0 4px rgba(0, 0, 0, .65), 0 0 8px rgba(0, 0, 0, .65), 1px 1px 2px rgba(0, 0, 0, .5);
    }

    #section2 h1 {
        display: inline-block;
        text-align: left;
        font-size: 1.8rem;
        margin: -20px 0 !important;
        max-width: min(80ch, 90vw);
        padding-inline: 8px;
    }

    .bloc-text2 {
        max-width: 90%;
        margin: 30px auto 10px !important;
        padding: 8px;
        font-size: 1.1rem;
    }

    .bloc-text2 h2 {
        margin: 0;
        margin-top: -20px;
        font-size: 1.2rem;
        line-height: 1.2;
        font-weight: 400;
    }

    .bloc-text ul,
    .bloc-text2 ul {
        margin-top: 1em !important;
        padding-left: .5em;
        list-style: disc;
    }

    .bloc-text li,
    .bloc-text2 li {
        margin-bottom: 10px !important;
        line-height: 1.2;
        font-size: 1rem !important;
    }

    #section2 h1 {
        font-size: 1.4em;
        text-align: justify;
    }

    #section2 .bloc-text2 h2 {
        font-size: 1em;
    }

    #section2 .usage-gallery {
        --track-w: 90vw;
        width: var(--track-w) !important;
        display: block !important;
        overflow: hidden;
        margin-inline: auto;
    }

    #section2 .usage-track {
        gap: var(--marquee-gap) !important;
    }

    #section2 .usage-item {
        width: clamp(20dvw, 30vw, 40dvw) !important;
    }

    #section3 .title-bg {
        min-height: 30px !important;
        padding: 10px;
        font-size: 1.8rem;
    }

    .video-container2 {
        margin-top: -10px !important;
    }

    .video-container2 video {
        max-width: 80dvw;
    }

    #section3 ul li {
        font-size: 1em !important;
    }

    #section4 {
        --block-max: min(88vw, 640px) !important;
        --gap: clamp(10px, 2.5vw, 18px);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    #section4 h1 {
        margin: 20px 0 30px !important;
        padding-top: 0 !important;
        line-height: 1.1;
    }

    #section4 .demo-buttons,
    #section4 .demo-photos {
        display: contents;
    }

    #section4 .demo-btn {
        width: 70%;
        max-width: 320px;
        min-height: 30px !important;
        font-size: 1.3rem;
        font-weight: 500;
        letter-spacing: 1px;
        padding: 5px;
        padding-top: 10px;
        margin-inline: auto;
    }

    #section4 .demo-item {
        text-align: center;
        margin-bottom: 12px;
    }

    #section4 .demo-item,
    #section4 .demo-photo-link {
        width: var(--block-max);
        max-width: var(--block-max);
        margin-inline: auto;
    }

    #section4 .demo-buttons .demo-item:nth-child(1) {
        order: 1;
    }

    #section4 .demo-photos .demo-photo-link:nth-child(1) {
        order: 2;
    }

    #section4 .demo-buttons .demo-item:nth-child(2) {
        order: 3;
    }

    #section4 .demo-photos .demo-photo-link:nth-child(2) {
        order: 4;
    }

    #section4 .demo-photo-link {
        margin-bottom: var(--gap);
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    }

    #section4 .demo-item p {
        margin: 0 0 10px;
        line-height: 1.1;
        text-wrap: balance;
        font-size: 13pt !important;
        color: rgb(8, 50, 60) !important;
        font-weight: normal !important;
    }

    #section4 .demo-photo {
        width: 100%;
        height: auto;
        max-height: 20dvh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: none;
    }

    /* Avertissement mobile pour bouton 2 */
    #section4 .demo-buttons .demo-item:nth-child(2) .demo-btn {
        position: relative;
    }

    #section4 .demo-buttons .demo-item:nth-child(2) .demo-btn::after {
        content: "⚠︎ Non optimisé sur support mobile";
        display: block;
        margin-top: 8px;
        font-size: 12pt;
        line-height: 1;
        color: #ecb4b4;
        padding: 6px 8px;
        background: linear-gradient(to bottom, rgba(220, 38, 38, .10), rgba(220, 38, 38, .14));
        border: 1px solid rgba(220, 38, 38, .1);
        border-radius: 8px;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, .15), 0 6px 18px rgba(220, 38, 38, .25), inset 0 0 10px rgba(220, 38, 38, .12);
        text-shadow: 0 0 6px rgba(220, 38, 38, .45);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    #section4 .demo-photo-link[data-bind="1"] {
        position: relative;
    }

    #section5 .bloc-text {
        max-width: 90%;
        margin-top: 20px;
    }

    #section5 .bloc-text h2,
    #section5 .bloc-text2 h2 {
        font-size: 1rem;
    }

    .video-container3 {
        margin-top: 0 !important;
        text-align: center !important;
        margin-bottom: 20px;
    }

    .video-container3 video {
        position: relative !important;
        margin-top: 0;
        max-width: 90dvw !important;
        padding-left: 5%;
    }

    .legal-mentions {
        width: 92% !important;
    }

    /* Dialog mobile centré */
    #legalDialog {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(92vw, 520px);
        max-height: min(86svh, 640px);
        border-radius: 14px;
        margin: 0;
    }

    .legal-head {
        padding: 12px 14px;
    }

    .legal-body {
        padding: 14px;
    }
}