@import url('https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&family=Manrope:wght@200..800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

/* =========================================================
   Variables
   ========================================================= */
:root {
    /* Couleurs */
    --color-brand: #8f001f;
    --color-brand-dark: #7a001a;
    --color-accent: #ffb1f1;
    --color-accent-50: rgba(255, 177, 241, 0.5);
    --color-accent-dark: #f4a0dd;
    --color-brand-50: rgba(143, 0, 31, 0.5);
    --color-subtle: #edece9;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-muted: rgba(0, 0, 0, 0.4);

    /* Typographie */
    --font-display: 'Geist', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    /* Rayons */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 999px;

    /* Mise en page */
    --container: 1320px;
    --gutter: 60px;
    --header-height: 89px;

    /* Progression du scroll dans le hero (0 → 1), mise à jour par script.js */
    --hero-progress: 0;
    --hero-bg: color-mix(in srgb, var(--color-brand) calc(var(--hero-progress) * 100%), var(--color-accent));
    --hero-fg: color-mix(in srgb, var(--color-accent) calc(var(--hero-progress) * 100%), var(--color-brand));
}

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    color: var(--color-brand);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
ul,
fieldset {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

fieldset {
    border: 0;
    min-width: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    font-weight: 700;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* =========================================================
   Titres
   ========================================================= */
.hero__title,
.title-xl,
.title-lg {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.title-xl {
    font-size: clamp(64px, 8.4vw, 120px);
    line-height: 0.783;
    text-align: right;
    color: var(--color-accent);
    max-width: 653px;
}

.title-lg {
    font-size: clamp(42px, 4.9vw, 70px);
    line-height: 0.857;
}

.title--right {
    text-align: right;
    max-width: 653px;
}

.title-sm {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    line-height: normal;
}

.eyebrow {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

/* Numéro de section en contour (01, 02…) */
.section-number {
    display: inline-block;
    width: 97px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--number-color);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 70px;
    line-height: 60px;
    color: transparent;
    -webkit-text-stroke: 1px var(--number-color);
}

/* =========================================================
   Boutons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--lg {
    height: 52px;
    padding: 0 32px;
    font-size: 16px;
    line-height: 24px;
}

.btn--sm {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 20px;
}

.btn--primary {
    background: var(--color-brand);
    color: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-brand-dark);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--color-brand);
}

.btn--accent:hover {
    background: var(--color-white);
}

/* =========================================================
   Header (sticky, couleurs selon la section survolée)
   ========================================================= */
.site-header {
    --header-bg: var(--color-accent);
    --header-fg: var(--color-brand);
    --header-btn-bg: var(--color-brand);
    --header-btn-fg: var(--color-accent);

    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--header-bg);
    color: var(--header-fg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sur le hero : le header suit la transition rose → rouge au scroll, sans délai */
.site-header[data-theme="accent"] {
    --header-bg: var(--hero-bg);
    --header-fg: var(--hero-fg);
    --header-btn-bg: var(--hero-fg);
    --header-btn-fg: var(--hero-bg);
    transition: none;
}

.site-header[data-theme="brand"] {
    --header-bg: var(--color-brand);
    --header-fg: var(--color-accent);
    --header-btn-bg: var(--color-accent);
    --header-btn-fg: var(--color-brand);
}

.site-header[data-theme="subtle"] {
    --header-bg: var(--color-subtle);
}

.site-header[data-theme="light"] {
    --header-bg: var(--color-white);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header__logo {
    display: block;
    outline: none;
}

.logo {
    width: 189px;
    height: 40px;
}

.logo--accent,
.site-header[data-theme="brand"] .logo--brand,
.site-header.is-hero-dark .logo--brand {
    display: none;
}

.site-header[data-theme="brand"] .logo--accent,
.site-header.is-hero-dark .logo--accent {
    display: block;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.share-link i {
    font-size: 16px;
}

.btn--header {
    background: var(--header-btn-bg);
    color: var(--header-btn-fg);
}

.site-header[data-theme="accent"] .btn--header {
    transition: none;
}

.btn-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid currentColor;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.btn-lang:hover {
    background-color: var(--color-brand);
    color: var(--color-accent);
    border-color: var(--color-brand);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    /* --hero-scroll : défilement en px, mis à jour par le script (parallax) */
    --hero-scroll: 0;
    position: relative;
    overflow: clip;
    background: var(--hero-bg);
    padding-bottom: 87px;
    /* Occupe toute la hauteur de l'écran, sous le header sticky */
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: center;
    gap: 40px;
}

/* .hero__content {
    padding-top: 135px;
} */

/* Parallax : chaque couche défile à sa propre vitesse */
.hero__content,
.hero__media,
.hero__photo {
    will-change: transform;
}

.hero__content {
    transform: translate3d(0, calc(var(--hero-scroll) * 0.45px), 0);
    opacity: calc(1 - var(--hero-scroll) / 550);
}

.hero__media {
    transform: translate3d(0, calc(var(--hero-scroll) * 0.2px), 0);
}

.hero__title {
    max-width: 650px;
    font-size: clamp(42px, 4.9vw, 70px);
    line-height: 0.857;
    color: var(--hero-fg);
}

/* Le bouton inverse ses couleurs à mesure que le fond rougit */
.hero .btn--primary {
    background: var(--hero-fg);
    color: var(--hero-bg);
}

.hero .btn--primary:hover {
    filter: brightness(0.85);
}

/* "du mois" barré */
.strike {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.strike::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px;
    right: -4px;
    height: 6px;
    transform: translateY(-50%);
    background: currentColor;
}

.hero__text {
    max-width: 424px;
    margin-top: 40px;
    color: var(--hero-fg);
}

.hero__text strong {
    font-weight: 800;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-top: 45px;
}

.hero .btn--outline {
    background: transparent;
    color: var(--hero-fg);
    border: 1px solid var(--hero-fg);
}

.hero .btn--outline:hover {
    background: var(--hero-fg);
    color: var(--hero-bg);
}

.hero__remaining {
    margin-top: 50px;
    color: var(--hero-fg);
}

.hero__remaining strong {
    font-weight: 800;
}

.hero__media {
    position: relative;
    width: 400px;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, calc(var(--hero-scroll) * -0.035px), 0) scale(1.1);
}

@media (prefers-reduced-motion: reduce) {

    .hero__content,
    .hero__media,
    .hero__photo {
        transform: none;
        opacity: 1;
    }
}

.hero__dots {
    position: absolute;
    left: 30px;
    bottom: 33px;
    width: 154px;
    height: 32px;
    background-color: var(--color-accent);
    -webkit-mask: url(images/hero-dots.svg) no-repeat center / contain;
    mask: url(images/hero-dots.svg) no-repeat center / contain;
    animation: hero-dots-color 10s ease-in-out infinite;
}

/* Les gouttes passent du rose au rouge de temps en temps */
@keyframes hero-dots-color {

    0%,
    45%,
    100% {
        background-color: var(--color-accent);
    }

    55%,
    90% {
        background-color: var(--color-brand);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__dots {
        animation: none;
    }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
    --number-color: var(--color-brand);
}

.section--brand {
    --number-color: var(--color-accent);
    background: var(--color-brand);
    color: var(--color-accent);
}

.section--subtle {
    background: var(--color-subtle);
}

.section--light {
    background: var(--color-white);
}

.section__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

/* ---------- 01 ---------- */
.section--01 {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 300px;
}

.promise {
    display: grid;
    grid-template-columns: minmax(0, 556px) minmax(0, 483px);
    justify-content: space-between;
    gap: 40px;
    margin-top: 136px;
}

.promise__text {
    font-size: 28px;
    font-weight: 400;
}

.promise__text strong {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.promise__aside .title-sm {
    max-width: 339px;
}

.promise__aside p {
    margin-top: 25px;
}

.promise__aside .title-sm+p {
    margin-top: 26px;
}

.section--01 .eyebrow {
    margin-top: 110px;
}

/* ---------- 02 ---------- */
/*.section--02 {
    padding-top: calc(111px + var(--header-height) + 78px);
}*/

.stats-wrapper {
    position: relative;
    z-index: 1;
    margin: -190px 0 190px 0;
}

/* Empêche la marge négative du wrapper de remonter toute la section 02 */
.section--02 {
    display: flow-root;
}

/* Le titre est posé sur le fond bordeaux de la section 01 */
.stats-wrapper .eyebrow {
    color: var(--color-accent);
}

.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
    margin-bottom: -111px;
}

.stat {
    min-height: 242px;
    padding: 42px 43px 40px 37px;
    border-radius: var(--radius-lg);
}

.stat--dark {
    background: var(--color-black);
    color: var(--color-accent);
}

.stat--light {
    background: var(--color-white);
    color: var(--color-brand);
}

.stat--accent {
    background: var(--color-accent);
    color: var(--color-brand);
}

.stat__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat__value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 70px;
    line-height: 60px;
    text-transform: uppercase;
    white-space: nowrap;
}

.stat__icon--tampon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
}

.stat__icon--tampon img {
    width: 16px;
    height: 60px;
    transform: rotate(45deg);
}

.stat__label {
    max-width: 278px;
    margin-top: 22px;
}

.section.section--02 .section__head {
    margin: 250px 0 0 0;
}

.products {
    display: grid;
    grid-template-columns: minmax(0, 566px) minmax(0, 1fr);
    gap: 102px;
    margin-top: 67px;
}

.products__media {
    max-width: 400px;
    max-height: 600px;
    position: relative;
    height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.products__logo {
    position: absolute;
    left: 30px;
    bottom: 37px;
    width: 109px;
    height: 40px;
}

.products__content .title-lg {
    max-width: 550px;
}

.products__intro {
    max-width: 564px;
    margin-top: 43px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 51px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 31px;
}

.feature__icon {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
}

.feature__icon--check {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/circle.svg') no-repeat center / 100% 100%;
}

.feature__icon--check img {
    width: 36px;
    height: 34px;
}

.feature strong {
    font-weight: 700;
}

.products .btn {
    margin-top: 58px;
}

.note {
    margin-top: 99px;
    font-size: 14px;
    text-align: center;
    color: var(--color-muted);
}

.community {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
    margin-top: 58px;
    margin-bottom: -262px;
    padding: 91px 83px 93px 85px;
    border-radius: var(--radius-xl);
    background: var(--color-accent);
}

.community__content {
    padding-top: 35px;
}

.community .title-lg {
    max-width: 650px;
}

.community .title-sm {
    max-width: 398px;
    margin-top: 55px;
}

.community__content p {
    max-width: 398px;
    margin-top: 25px;
}

.community .title-sm+p {
    margin-top: 40px;
}

.community .btn {
    margin-top: 67px;
}

.community__photo {
    width: 400px;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ---------- 03 ---------- */
.section--03 {
    padding-top: calc(262px + var(--header-height) + 95px);
}

.section--03 .section__head--split {
    align-items: flex-start;
}

.partners {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 92px;
}

.partners img {
    width: auto;
}

.partners li:nth-child(1) img {
    height: 40px;
}

.partners li:nth-child(2) img {
    height: 41px;
}

.partners li:nth-child(3) img {
    height: 63px;
}

.partners li:nth-child(4) img {
    height: 46px;
}

.partners li:nth-child(5) img {
    height: 93px;
}

.cta-partner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 235px;
    margin-top: 96px;
    margin-bottom: -110px;
    padding: 40px 83px 40px 85px;
    border-radius: var(--radius-lg);
    background: var(--color-subtle);
}

.cta-partner p {
    margin-top: 14px;
}

/* ---------- 04 ---------- */
.section--04 {
    /* Couleurs du formulaire : version Participant(e) (fond rouge, contenu rose) */
    --form-bg: var(--color-brand);
    --form-fg: var(--color-accent);
    --form-fg-50: var(--color-accent-50);
    --form-panel: var(--color-brand-dark);
    --form-scheme: dark;
    --form-error: var(--color-white);
    --number-color: var(--form-fg);
    /* Flèche du select : currentColor ne fonctionne pas dans un SVG en data URI, couleur = --form-fg */
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23ffb1f1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    padding-top: calc(110px + var(--header-height) + 80px);
    padding-bottom: 230px;
    /* Ancre #inscription : saute l'espace décoratif du haut de section */
    scroll-margin-top: calc(-110px - var(--header-height));
    background: var(--form-bg);
    color: var(--form-fg);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Version Partenaire : couleurs inversées (fond rose, contenu rouge) */
.section--04.is-partner {
    --form-bg: var(--color-accent);
    --form-fg: var(--color-brand);
    --form-fg-50: var(--color-brand-50);
    --form-panel: var(--color-accent-dark);
    --form-scheme: light;
    --form-error: #5c0014;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238f001f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.signup {
    display: grid;
    grid-template-columns: minmax(0, 402px) minmax(0, 649px);
    column-gap: 185px;
    margin-top: 45px;
}

.signup__intro p {
    max-width: 399px;
    margin-top: 43px;
}

/* Formulaire */
.form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
}

.form>* {
    width: 100%;
}

/* Type d'inscription : sélecteur à 2 options dans un rail, l'option active ressort en pilule pleine */
.form__type {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-full);
    background: var(--form-fg-50);
    width: fit-content;
}

.choice {
    position: relative;
    cursor: pointer;
}

.choice__input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choice__label {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--form-fg);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.choice__input:checked+.choice__label {
    background: var(--form-fg);
    color: var(--form-bg);
}

.choice__input:focus-visible+.choice__label {
    outline: 2px solid var(--form-fg);
    outline-offset: 2px;
}

.form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 19px;
    margin-top: 41px;
}

.field {
    height: 60px;
    width: 100%;
    padding: 0 21px;
    border: 1px solid var(--form-fg-50);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--form-fg);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color-scheme: var(--form-scheme);
    transition: border-color 0.4s ease, color 0.4s ease;
}

.field-wrap {
    position: relative;
}

.address-suggestions {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--form-panel);
    border: 1px solid var(--form-fg-50);
    border-radius: var(--radius-md);
    max-height: 280px;
    overflow-y: auto;
}

.address-suggestions[hidden] {
    display: none;
}

.address-suggestions__item {
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    line-height: 1.4;
    color: var(--form-fg);
    cursor: pointer;
}

.address-suggestions__item + .address-suggestions__item {
    margin-top: 2px;
}

.address-suggestions__item strong {
    font-weight: 600;
}

.address-suggestions__item--active,
.address-suggestions__item:hover {
    background: var(--form-fg-50);
}

.field::placeholder {
    color: var(--form-fg);
    opacity: 1;
}

.field:focus {
    outline: none;
    border-color: var(--form-fg);
}

.field--full {
    grid-column: 1 / -1;
}

.field--small {
    flex-shrink: 0;
    width: 114px;
}

/* Sélecteur numérique (âge) avec flèches personnalisées */
.stepper {
    position: relative;
    flex-shrink: 0;
    width: 114px;
}

.stepper__input {
    width: 100%;
    padding-right: 48px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper__input::-webkit-inner-spin-button,
.stepper__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper__controls {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: flex;
    flex-direction: column;
    width: 38px;
    border-left: 1px solid var(--form-fg-50);
    border-radius: 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0;
    overflow: hidden;
}

.stepper__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--form-fg);
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.stepper__btn+.stepper__btn {
    border-top: 1px solid var(--form-fg-50);
}

.stepper__btn:hover {
    background: var(--form-panel);
}

.stepper__btn:active {
    background: var(--form-fg);
    color: var(--form-bg);
}

.stepper:focus-within .stepper__controls {
    border-left-color: var(--form-fg);
}

.stepper:focus-within .stepper__btn+.stepper__btn {
    border-top-color: var(--form-fg);
}

.form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.form__question {
    padding: 0;
    font-weight: 600;
    font-size: 18px;
    color: var(--form-fg);
}

.info {
    display: flex;
    align-items: center;
    min-height: 100px;
    margin-top: 37px;
    padding: 20px 31px;
    border-radius: var(--radius-md);
    background: var(--form-panel);
    font-size: 14px;
    color: var(--form-fg);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.form__row+.info {
    margin-top: 20px;
}

.info--icon {
    gap: 29px;
    padding-left: 25px;
}

.info__icon {
    flex-shrink: 0;
    width: 43px;
    height: 35px;
}

.info--icon p {
    max-width: 523px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 37px;
    font-weight: 400;
    font-size: 18px;
    color: var(--form-fg);
    cursor: pointer;
}

.checkbox input {
    appearance: none;
    flex-shrink: 0;
    display: grid;
    place-content: center;
    width: 25px;
    height: 25px;
    margin: 0;
    border: 1px solid var(--form-fg-50);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.checkbox input::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: var(--form-fg);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.checkbox input:checked::before {
    transform: scale(1);
}

.checkbox input:focus-visible {
    outline: 2px solid var(--form-fg);
    outline-offset: 2px;
}

.form__group {
    margin-top: 37px;
}

#turnstile-participant,
#turnstile-partenaire {
    margin: 30px 0 0 0;
}

.form__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0 62px;
}

.form__checks--secteurs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
}

.form__checks .checkbox {
    margin-top: 25px;
}

.form__group .info {
    min-height: 80px;
    margin-top: 20px;
}

.form__group .info+.checkbox {
    margin-top: 34px;
}

.form .btn {
    width: auto;
    margin-top: 58px;
}

.form .btn--accent {
    background: var(--form-fg);
    color: var(--form-bg);
}

.form .btn--accent:hover {
    background: var(--form-fg);
    opacity: 0.85;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--color-accent);
    color: var(--color-brand);
}

/* Section 04 en version Partenaire (rose) : un filet sépare le footer */
.form-partner .site-footer {
    border-top: 1px solid var(--color-brand-50);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    min-height: 90px;
    gap: 20px;
}

.social {
    display: flex;
    align-items: center;
    gap: 26px;
}

.social__title {
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.footer-links a,
.copyright {
    white-space: nowrap;
}

.social a {
    font-size: 20px;
}

.footer-links {
    display: flex;
    gap: 36px;
    margin-left: 70px;
    font-size: 14px;
}

.copyright {
    margin-left: auto;
    font-size: 14px;
}

.site-footer__logo {
    width: 189px;
    height: 40px;
    margin-left: 42px;
}

.footer-links a:hover,
.share-link:hover {
    text-decoration: underline;
}

/* =========================================================
   Responsive
   - ≤ 1200px : petit laptop, même mise en page, marges resserrées
   - ≤ 900px  : tablette, colonnes conservées là où c'est lisible
   - ≤ 640px  : mobile, tout est empilé
   ========================================================= */
@media (max-width: 1200px) {
    :root {
        --gutter: 40px;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .hero__media {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .products {
        gap: 60px;
    }

    .community {
        grid-template-columns: minmax(0, 1fr) 340px;
        padding: 72px 60px;
    }

    .community__photo {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .community__content {
        padding-top: 0;
    }

    .signup {
        column-gap: 80px;
    }

    .cta-partner {
        padding-inline: 60px;
    }

    /* Footer sur deux rangées centrées */
    .site-footer__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
        padding-block: 24px;
    }

    .footer-links,
    .copyright,
    .site-footer__logo {
        margin-left: 0;
    }

    .stat__value {
        font-size: 56px;
        line-height: 48px;
    }
}

@media (max-width: 991px) {
    :root {
        --gutter: 32px;
    }

    body {
        font-size: 17px;
    }

    /* Parallax désactivé : les couches se chevaucheraient */
    .hero__content,
    .hero__media,
    .hero__photo {
        transform: none;
        opacity: 1;
    }

    /* Hero */
    .hero {
        padding-bottom: 64px;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr) 280px;
        align-items: center;
        padding-top: 24px;
    }

    .hero__content {
        padding-top: 0;
    }

    .hero__text {
        margin-top: 28px;
    }

    .hero__actions {
        margin-top: 32px;
        gap: 25px;
    }

    /* 01 */
    .section--01 {
        padding-top: calc(var(--header-height) + 56px);
        padding-bottom: 214px;
    }

    .stats-wrapper {
        margin: -150px 0 150px;
    }

    .section.section--02 .section__head {
        margin-top: 200px;
    }

    .promise {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        margin-top: 64px;
    }

    .promise__text {
        font-size: 24px;
    }

    .promise__aside p,
    .promise__aside .title-sm+p {
        margin-top: 16px;
    }

    .stats {
        gap: 12px;
        margin-top: 24px;
        margin-bottom: -80px;
    }

    .stat {
        min-height: 0;
        padding: 24px 20px;
    }

    .stat__value {
        font-size: 44px;
        line-height: 40px;
    }

    .stat__icon {
        width: 28px;
        height: auto;
    }

    .stat__icon--tampon {
        width: 36px;
        height: 36px;
    }

    .stat__icon--tampon img {
        width: 11px;
        height: 40px;
    }

    .stat__label {
        margin-top: 16px;
        font-size: 15px;
    }

    /* 02 */
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        margin-top: 40px;
        align-items: start;
    }

    .products__media {
        height: auto;
        margin: 0 auto;
        /* aspect-ratio: 566 / 600; */
    }

    .products__intro {
        margin-top: 28px;
    }

    .features {
        margin-top: 32px;
        gap: 16px;
    }

    .feature {
        gap: 20px;
    }

    .feature__icon {
        width: 64px;
        height: 64px;
    }

    .feature__icon--check img {
        width: 28px;
        height: auto;
    }

    .feature p {
        font-size: 16px;
    }

    .products .btn {
        margin-top: 40px;
    }

    .note {
        margin-top: 64px;
    }

    .community {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 32px;
        margin-top: 40px;
        margin-bottom: -160px;
        padding: 48px 40px;
    }

    .community .title-sm {
        margin-top: 32px;
    }

    .community .title-sm+p {
        margin-top: 24px;
    }

    .community .btn {
        margin-top: 40px;
    }

    /* 03 */
    .section--03 {
        padding-top: calc(160px + var(--header-height) + 64px);
    }

    .partners {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px 48px;
        margin-top: 56px;
    }

    .partners li:nth-child(1) img {
        height: 32px;
    }

    .partners li:nth-child(2) img {
        height: 33px;
    }

    .partners li:nth-child(3) img {
        height: 50px;
    }

    .partners li:nth-child(4) img {
        height: 37px;
    }

    .partners li:nth-child(5) img {
        height: 74px;
    }

    .cta-partner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        min-height: 0;
        margin-top: 56px;
        margin-bottom: -80px;
        padding: 48px 40px;
    }

    /* 04 */
    .section--04 {
        padding-top: calc(80px + var(--header-height) + 56px);
        padding-bottom: 120px;
        scroll-margin-top: calc(-80px - var(--header-height));
    }

    .signup {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 48px;
        margin-top: 32px;
    }

    .signup__intro p {
        margin-top: 24px;
    }

    .form {
        padding-top: 0;
    }

}

@media (max-width: 768px) {
    :root {
        --gutter: 16px;
        --header-height: 72px;
    }

    body {
        font-size: 16px;
    }

    /* Header : partage en icône seule (le texte reste lu par les lecteurs d'écran) */
    .share-link {
        justify-content: center;
        width: 36px;
        height: 36px;
    }

    .share-link i {
        font-size: 18px;
    }

    .share-link__text {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .site-header__nav {
        gap: 12px;
    }

    .logo {
        width: 150px;
        height: auto;
    }

    /* Titres */
    .hero__title {
        font-size: clamp(32px, 9.4vw, 42px);
        text-align: center;
        max-width: 100%;
    }

    .hero__text {
        max-width: 100%;
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
        gap: 25px;
    }

    .hero__actions .share-link__text {
        position: absolute;
        width: auto;
        height: auto;
        clip: initial;
    }

    .hero__remaining {
        text-align: center;
        margin-top: 30px;
    }

    .title-lg {
        font-size: clamp(32px, 9.4vw, 42px);
    }

    .title-xl {
        font-size: clamp(56px, 17vw, 64px);
    }

    .title-xl,
    .title--right {
        text-align: left;
    }

    .title-sm {
        font-size: 20px;
    }

    .section-number {
        font-size: 56px;
        line-height: 48px;
    }

    .section__head--split {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    /* Boutons : le texte peut passer à la ligne sur petits écrans */
    .btn--lg {
        width: 100%;
        height: auto;
        min-height: 52px;
        padding-block: 14px;
        white-space: normal;
        text-align: center;
    }

    /* Hero */
    .hero {
        padding-bottom: 40px;
    }

    .hero__inner {
        display: flex;
        flex-direction: column-reverse;
        /*grid-template-columns: minmax(0, 1fr);*/
        gap: 40px;
        padding-top: 32px;
        direction: rtl;
    }

    .hero .hero__inner {
        direction: ltr;
    }

    .hero__media {
        aspect-ratio: 4 / 5;
    }

    .hero__dots {
        left: 20px;
        bottom: 20px;
    }

    /* 01 */
    .section--01 {
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 160px;
    }

    .stats-wrapper {
        margin: -100px 0 56px;
    }

    .section.section--02 .section__head {
        margin-top: 0;
    }

    .promise {
        gap: 32px;
        margin-top: 40px;
    }

    .promise__text {
        font-size: 20px;
    }

    .stats {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 0;
    }

    .stat {
        padding: 24px;
    }

    .stat__value {
        font-size: 56px;
        line-height: 48px;
    }

    .stat__label {
        max-width: none;
        font-size: 16px;
    }

    /* 02 */
    .products {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin-top: 32px;
    }

    .products__logo {
        left: 20px;
        bottom: 20px;
        width: 88px;
        height: auto;
    }

    .products .btn {
        margin-top: 32px;
    }

    .note {
        margin-top: 48px;
        font-size: 13px;
    }

    .community {
        display: flex;
        flex-direction: column-reverse;
        /* grid-template-columns: minmax(0, 1fr); */
        margin-top: 32px;
        margin-bottom: -120px;
        padding: 30px 24px 24px;
        border-radius: var(--radius-lg);
    }

    .community__photo {
        aspect-ratio: 4 / 5;
    }

    .community .btn {
        margin-top: 32px;
    }

    /* 03 */
    .section--03 {
        padding-top: calc(120px + 56px);
    }

    .partners {
        gap: 28px 36px;
        margin-top: 40px;
    }

    .partners li:nth-child(1) img {
        height: 26px;
    }

    .partners li:nth-child(2) img {
        height: 27px;
    }

    .partners li:nth-child(3) img {
        height: 40px;
    }

    .partners li:nth-child(4) img {
        height: 30px;
    }

    .partners li:nth-child(5) img {
        height: 60px;
    }

    .cta-partner {
        margin-top: 40px;
        margin-bottom: -60px;
        padding: 32px 24px;
    }

    /* 04 */
    .section--04 {
        padding-top: calc(60px + 56px);
        padding-bottom: 80px;
        scroll-margin-top: -60px;
    }

    .form__type {
        gap: 12px;
    }

    .form__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 28px;
    }

    .field {
        font-size: 16px;
    }

    .form__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 24px;
    }

    .form__question {
        font-size: 16px;
    }

    .stepper {
        width: 100%;
    }

    .info {
        min-height: 0;
        margin-top: 28px;
        padding: 20px;
    }

    .info--icon {
        gap: 16px;
        padding-left: 16px;
    }

    .info__icon {
        width: 34px;
        height: auto;
    }

    .checkbox {
        gap: 14px;
        margin-top: 28px;
        font-size: 16px;
    }

    .form__group {
        margin-top: 28px;
    }

    .form__checks {
        flex-direction: column;
    }

    .form__checks--secteurs {
        grid-template-columns: 1fr;
    }

    .form__checks .checkbox {
        margin-top: 16px;
    }

    .form .btn {
        width: 100%;
        margin-top: 40px;
    }

    .form__alert+.btn {
        margin-top: 30px !important;
    }

    /* Footer */
    .site-footer__inner {
        flex-direction: column;
        gap: 20px;
        padding-block: 32px;
        text-align: center;
    }

    .site-footer__logo {
        order: 1;
    }

    .social {
        order: 2;
    }

    .footer-links {
        gap: 24px;
        order: 3;
    }

    .copyright {
        order: 4;
    }
}

@media (max-width: 360px) {
    .logo {
        width: 128px;
    }

    .site-header__nav {
        gap: 8px;
    }
}

/* =========================================================
   Page "Coming soon" : hero seul, sur toute la hauteur de l'écran
   ========================================================= */
.coming-soon {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--hero-bg);
}

.coming-soon main {
    display: flex;
    flex: 1;
}

.coming-soon .hero {
    display: flex;
    align-items: center;
    flex: 1;
    padding-block: 40px 60px;
}

.coming-soon .hero__inner {
    align-items: center;
    width: 100%;
}

.coming-soon .hero__content {
    padding-top: 0;
}

/* Bouton informatif, non cliquable */
.btn--static {
    cursor: default;
}

.coming-soon .hero .btn--static:hover {
    filter: none;
}

@media (max-width: 991px) {
    .coming-soon .hero {
        padding-block: 24px 40px;
    }

    .coming-soon .hero__inner {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .coming-soon .hero__inner {
        align-items: stretch;
    }
}

/* =========================================================
   Formulaire d'inscription : erreurs, chargement, succès
   ========================================================= */
.form[hidden],
.form-success[hidden],
.field-error[hidden],
.form__alert[hidden] {
    display: none;
}

.field-wrap {
    min-width: 0;
}

.field-wrap--full {
    grid-column: 1 / -1;
}

.field[aria-invalid="true"] {
    border-color: var(--form-error);
    box-shadow: 0 0 0 1px var(--form-error);
}

/* Message sous le champ : icône + texte, pour ne pas dépendre de la couleur seule */
.field-error,
.form__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: var(--form-error);
}

.field-error::before,
.form__alert::before {
    content: "!";
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--form-error);
    color: var(--form-bg);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.field-error {
    margin: 8px 4px 0;
    animation: field-error-in 0.2s ease;
}

.form__row {
    flex-wrap: wrap;
}

.form__row .field-error {
    flex-basis: 100%;
    margin-top: 0;
}

.form__alert {
    margin-top: 40px;
    padding: 14px 18px;
    border: 1.5px solid var(--form-error);
    border-radius: var(--radius-md);
    font-size: 16px;
}

.form__alert+.btn {
    margin-top: 58px;
}

/* Bouton : indicateur de chargement */
.form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: form-spin 0.7s linear infinite;
}

.form[aria-busy="true"] .btn__spinner {
    display: inline-block;
}

.form[aria-busy="true"] .btn {
    cursor: progress;
    opacity: 0.85;
}

/* Pendant l'envoi : le formulaire est verrouillé et atténué */
.form[aria-busy="true"] {
    pointer-events: none;
}

.form[aria-busy="true"] .form__type,
.form[aria-busy="true"] .form__grid,
.form[aria-busy="true"] .form__row,
.form[aria-busy="true"] .checkbox,
.form[aria-busy="true"] .form__group {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

/* Succès : remplace le formulaire */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    padding: 40px 24px;
    text-align: center;
    color: var(--form-fg);
    animation: form-success-in 0.4s ease both;
}

.form-success:focus {
    outline: none;
}

.form-success__icon {
    color: var(--form-fg);
    animation: form-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.form-success__circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: form-draw 0.6s ease-out 0.1s forwards;
}

.form-success__check {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: form-draw 0.35s ease-out 0.6s forwards;
}

.form-success__title {
    margin-top: 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.15;
}

.form-success__text p+p {
    margin-top: 10px;
}

.form-success__text #form-success-report {
    font-weight: 700;
}

.form-success__text {
    max-width: 420px;
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.5;
}

.form-success__share {
    margin-top: 32px;
}

@keyframes form-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes form-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes form-success-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes form-success-pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes field-error-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .form-success,
    .form-success__icon,
    .field-error {
        animation: none;
    }

    .form-success__circle,
    .form-success__check {
        animation: none;
        stroke-dashoffset: 0;
    }

    .btn__spinner {
        animation-duration: 1.8s;
    }
}

@media (max-width: 768px) {
    .form-success {
        min-height: 320px;
        padding: 24px 0;
    }

    .form-success__title {
        font-size: 26px;
    }

    .form-success__text {
        font-size: 16px;
    }

    .form__alert {
        margin-top: 28px;
    }
}

/* =========================================================
   Bascule Participant / Partenaire (PMAT-9)
   ========================================================= */
.form__notice {
    margin-top: 20px;
    color: var(--form-fg);
    font-size: 15px;
    opacity: 0.85;
}

.signup__panel[hidden] {
    display: none;
}

.form__question-optional {
    font-weight: 400;
    opacity: 0.7;
}

/* Boutons radio (durée, espace publicitaire) : même style que les cases à cocher, indicateur rond. */
.radio input {
    border-radius: 50%;
}

.radio input::before {
    border-radius: 50%;
}

.field--textarea {
    height: auto;
    min-height: 120px;
    padding-top: 16px;
    padding-bottom: 16px;
    resize: vertical;
    font-family: var(--font-body);
}

select.field {
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 21px center;
    background-size: 16px 16px;
    padding-right: 48px;
    color: var(--form-fg);
}

@media (max-width: 768px) {
    .form__notice {
        margin-top: 16px;
    }
}
/* =========================================================
   Pages légales (politique de confidentialité, etc.)
   ========================================================= */
.legal {
    padding-block: 160px 100px;
}

.legal__inner {
    max-width: 760px;
}

.legal h1 {
    font-size: 48px;
    line-height: 1.1;
}

.legal h2 {
    margin-top: 48px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
}

.legal p,
.legal ul {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.6;
}

.legal ul {
    padding-left: 22px;
}

.legal li + li {
    margin-top: 8px;
}

.legal a {
    color: inherit;
    text-decoration-color: var(--color-accent-dark);
    text-underline-offset: 3px;
}

.legal__updated {
    margin-top: 56px;
    opacity: 0.6;
    font-size: 15px;
}

@media (max-width: 768px) {
    .legal {
        padding-block: 120px 64px;
    }

    .legal h1 {
        font-size: 34px;
    }
}

/* =========================================================
   Formulaire Partenaire : secteurs de diffusion (case "Autre" + champ texte)
   ========================================================= */
.form__secteur-autre {
    margin-top: 25px;
}

.form__secteur-autre+.field {
    margin-top: 12px;
}

.field:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
