/* ───────── Tokens ───────── */
:root {
    --c-dark: #0f4a43;
    --c-dark-2: #0b3a35;
    --c-yellow: #f6a91c;
    --c-yellow-soft: #fff4d6;
    --c-pink: #f06ea3;
    --c-pink-soft: #fde4ee;
    --c-mint: #4fc59a;
    --c-mint-soft: #dcf5ea;
    --c-blue: #3a9ad9;
    --c-blue-soft: #dff0fb;
    --c-cream: #fdfcf6;
    --c-text: #1f2d2b;
    --c-muted: #4b5b58;

    --ff-title: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --ff-body: 'Nunito', system-ui, sans-serif;

    --radius: 22px;
    --shadow: 0 8px 24px rgb(15 74 67 / .12);
    --container: 1180px;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--ff-title); line-height: 1.15; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: 3rem; }
.section--tight { padding-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--c-dark); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }
.icon { flex: none; }

/* ───────── Boutons ───────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-family: var(--ff-title); font-weight: 600; font-size: 1.05rem;
    border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--yellow { background: var(--c-yellow); color: var(--c-dark-2); }
.btn--yellow:hover { background: #ffb631; }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: var(--c-dark-2); }
.btn--sm { padding: .6rem 1.15rem; font-size: .95rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.3rem; }

/* ───────── Étiquettes titres ───────── */
.tag {
    display: inline-block; width: fit-content;
    font-family: var(--ff-title); font-weight: 700;
    padding: .1em .55em .15em; border-radius: .6em;
}
.tag--dark { background: var(--c-dark); color: #fff; }
.tag--yellow { background: var(--c-yellow); color: var(--c-dark-2); }
.tag--mint { background: var(--c-mint-soft); color: var(--c-dark); }
.tag--xl { font-size: clamp(2rem, 5vw, 3.4rem); }
.tag--lg { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.heading { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin-bottom: 1rem; }
.heading .tag--mint { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.heading__main { font-family: var(--ff-title); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--c-dark-2); }

/* ───────── Logo ───────── */
.logo { display: block; width: auto; height: 96px; }
.site-footer .logo { height: 80px; }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(253 252 246 / .94); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .6rem; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 700; font-size: .95rem; }
.main-nav a:not(.btn) { padding-block: .3rem; border-bottom: 3px solid transparent; transition: border-color .15s; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { border-bottom-color: var(--c-yellow); color: var(--c-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--c-dark); cursor: pointer; }
.nav-toggle__close { display: none; }

/* ───────── Hero ───────── */
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 40px 40px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; z-index: -1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(255 255 255 / .55), rgb(255 255 255 / 0) 55%); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 1rem; min-height: 560px; padding-top: 2.5rem; }
.hero__content { padding-bottom: 2.5rem; }
.hero__title { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin: 1rem 0 1.2rem; font-family: var(--ff-title); font-weight: 700; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.01em; transform: rotate(-4deg); transform-origin: left center; max-width: 100%; }
.hero-title__dark, .hero-title__yellow { display: inline-block; padding: .12em .5em .2em; border-radius: .55em; box-shadow: 0 6px 0 rgb(0 0 0 / .12); }
.hero-title__dark { position: relative; background: var(--c-dark); color: #fff; border-radius: .6em .6em .6em .15em; }
.hero-title__dark::after { content: ''; position: absolute; left: .5em; top: 100%; width: .6em; height: .5em; background: var(--c-dark); clip-path: polygon(0 0, 100% 0, 0 100%); }
.hero-title__yellow { margin: -.1em 0 0 1.1em; background: var(--c-yellow); color: #fff; font-size: 1.12em; text-shadow: 0 3px 0 rgb(0 0 0 / .12); box-shadow: 0 6px 0 rgb(0 0 0 / .12); position: relative; }
.hero-title__confetti { position: absolute; right: -.75em; top: -.45em; width: 1.6em; height: 1.6em; }
.hero-title__confetti i { position: absolute; width: .12em; height: .5em; border-radius: 1em; }
.hero-title__confetti i:nth-child(1) { background: var(--c-yellow); left: .5em; top: 0; transform: rotate(25deg); }
.hero-title__confetti i:nth-child(2) { background: var(--c-pink); left: 1em; top: .35em; transform: rotate(65deg); height: .45em; }
.hero-title__confetti i:nth-child(3) { background: var(--c-mint); left: .95em; top: .9em; transform: rotate(105deg); height: .4em; }
.hero-title__confetti i:nth-child(4) { background: var(--c-pink); left: .15em; top: .2em; transform: rotate(-10deg); height: .35em; }
.hero__lead { max-width: 34rem; font-weight: 700; color: var(--c-dark-2); margin-bottom: 1.2rem; text-shadow: 0 0 12px rgb(255 255 255 / .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--c-mint-soft); color: var(--c-dark); font-weight: 700; font-size: .85rem; padding: .3rem .95rem; border-radius: 999px; }
.bubble { position: absolute; right: 0; bottom: 14%; max-width: 12rem; padding: 1rem 1.2rem; background: #fff; border: 2px solid var(--c-yellow); border-radius: 50%; text-align: center; font-family: var(--ff-title); font-size: 1rem; line-height: 1.25; transform: rotate(-8deg); box-shadow: var(--shadow); }

/* ───────── Pourquoi ───────── */
.why__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.why__text p { margin-bottom: 1rem; color: var(--c-muted); }
.why__text .btn { margin-top: .4rem; }

.video-card { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-dark); color: #fff; }
.video-card__media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.video-card__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__play { position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%; width: 78px; height: 78px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(255 255 255 / .85); color: var(--c-dark-2); cursor: pointer; transition: transform .2s; }
.video-card__play:hover { transform: translate(0, 0) scale(1.08); }
.video-card figcaption { display: flex; flex-direction: column; padding: .8rem 1.1rem; font-size: .9rem; }
.video-card figcaption strong { font-family: var(--ff-title); font-size: 1.05rem; }

/* ───────── Questions ───────── */
.questions { background: var(--c-pink-soft); padding-block: 1.6rem 1.8rem; border-radius: 30px; }
.questions__title { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--c-dark-2); margin-bottom: 1.1rem; }
.questions__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.question-card { display: flex; align-items: center; gap: .8rem; height: 100%; padding: .8rem 1rem; background: #fff; border-radius: 16px; font-family: var(--ff-title); font-weight: 600; line-height: 1.2; color: var(--c-dark-2); box-shadow: 0 2px 8px rgb(0 0 0 / .05); transition: transform .15s, box-shadow .15s; }
.question-card span:last-child { text-wrap: balance; }
.question-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.round { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.round--mint { background: var(--c-mint-soft); color: var(--c-dark); }
.round--pink { background: var(--c-pink-soft); color: var(--c-pink); }
.round--yellow { background: #fde9b0; color: #b9780a; }
.round--blue { background: var(--c-blue-soft); color: var(--c-dark); }
.questions .round--mint { background: var(--c-mint); color: #fff; }
.questions .round--pink { background: var(--c-pink); color: #fff; }
.questions .round--yellow { background: var(--c-yellow); color: #fff; }

/* ───────── eBook ───────── */
.ebook { display: grid; grid-template-columns: 240px 1.1fr 1fr; align-items: center; gap: 2rem; padding: 1.6rem 2rem; border-radius: 30px; background: linear-gradient(120deg, var(--c-mint-soft), var(--c-yellow-soft)); }
.ebook__cover { width: 100%; max-width: 240px; height: auto; border-radius: 6px 14px 14px 6px; box-shadow: 8px 10px 22px rgb(0 0 0 / .25); transform: rotate(-4deg); }
.ebook__text p { color: var(--c-muted); font-size: .95rem; }
.ebook__aside { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.checklist { display: grid; gap: .55rem; font-size: .92rem; }
.checklist li { display: flex; gap: .6rem; align-items: center; }
.checklist__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2f9c76; color: #fff; }

/* ───────── Page eBook (formulaire) ───────── */
.ebook--page { grid-template-columns: 260px 1fr; padding: 2rem 2.5rem; }
.ebook--page .ebook__cover { max-width: 260px; }
.ebook-form__lead { color: var(--c-muted); margin-bottom: 1.2rem; }
.form { display: grid; gap: 1rem; max-width: 30rem; }
.field label:not(.check) { display: block; margin-bottom: .3rem; font-weight: 700; color: var(--c-dark-2); }
.field input[type="text"], .field input[type="email"] { width: 100%; padding: .8rem 1rem; font: inherit; color: var(--c-text); background: #fff; border: 2px solid #cfe3dc; border-radius: 14px; }
.field input[type="text"]:focus, .field input[type="email"]:focus { border-color: var(--c-dark); outline: 3px solid rgb(58 154 217 / .35); outline-offset: 0; }
.field__error { margin-top: .3rem; font-size: .88rem; font-weight: 700; color: #c0243b; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--c-muted); cursor: pointer; }
.check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--c-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .8rem; color: var(--c-muted); }
.form .btn { justify-self: start; }
.thanks { max-width: 38rem; margin-inline: auto; padding: 2.5rem 1.5rem; display: grid; justify-items: center; gap: 1rem; text-align: center; background: var(--c-mint-soft); border-radius: 30px; }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--c-dark-2); }
.thanks p { color: var(--c-muted); }
.thanks__back { font-weight: 700; color: var(--c-dark); text-decoration: underline; }
.round--mint { background: var(--c-mint); color: #fff; }

/* ───────── Features ───────── */
.features__title { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--c-dark-2); margin-bottom: 1.2rem; }
.features__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: 22px; }
.feature--mint { background: var(--c-mint-soft); }
.feature--pink { background: var(--c-pink-soft); }
.feature--yellow { background: var(--c-yellow-soft); }
.feature--blue { background: var(--c-blue-soft); }
.feature .round { width: 60px; height: 60px; }
.feature--mint .round { background: #8fdcbf; }
.feature--pink .round { background: #f7a9c9; color: #fff; }
.feature--yellow .round { background: var(--c-yellow); color: var(--c-dark-2); }
.feature--blue .round { background: #7cc3ee; }
.feature h3 { font-size: 1.15rem; color: var(--c-dark-2); margin-bottom: .3rem; }
.feature p { font-size: .85rem; line-height: 1.45; color: var(--c-muted); }

/* ───────── Bandeau ───────── */
.banner { position: relative; isolation: isolate; padding-block: 3.2rem; margin-top: 1.5rem; }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; z-index: -1; }
.banner__card { max-width: 640px; margin-inline: auto; padding: 1rem 2rem; text-align: center; background: rgb(255 255 255 / .94); border-radius: 999px; box-shadow: var(--shadow); }
.banner__title { font-family: var(--ff-title); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--c-dark-2); }
.banner__card p:last-child { font-size: .85rem; color: var(--c-muted); }
.dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; margin-inline: .25em; vertical-align: middle; }
.dot--yellow { background: var(--c-yellow); }

/* ───────── Footer ───────── */
.site-footer { background: var(--c-cream); padding-top: 1.2rem; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.6rem; font-weight: 700; font-size: .85rem; }
.site-footer__nav a:hover { color: var(--c-yellow); }
.socials { display: flex; gap: 1rem; color: var(--c-dark); }
.socials a:hover { color: var(--c-pink); }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: .8rem 1.2rem; color: var(--c-muted); font-size: .75rem; }
.heart { color: #e0314b; }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
    .questions__list { grid-template-columns: repeat(3, 1fr); }
    .features__list { grid-template-columns: repeat(2, 1fr); }
    .ebook { grid-template-columns: 180px 1fr; }
    .ebook__aside { grid-column: 1 / -1; }
    .ebook--page { grid-template-columns: 200px 1fr; padding: 1.6rem; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem; background: var(--c-cream); box-shadow: var(--shadow); display: none; }
    .site-header.is-open .main-nav { display: flex; }
    .site-header.is-open .nav-toggle__open { display: none; }
    .site-header.is-open .nav-toggle__close { display: inline; }
    .main-nav a:not(.btn) { padding: .6rem .4rem; }
    .main-nav__cta { margin-top: .5rem; }

    .hero__inner, .why__inner { grid-template-columns: 1fr; }
    .hero__inner { min-height: 0; padding-bottom: 21.5rem; }
    .hero__title { margin-left: .6rem; margin-right: 1.4rem; font-size: clamp(1.9rem, 8.6vw, 3.2rem); transform: rotate(-3deg); }
    .hero__content { padding-bottom: 0; }
    .hero__bg { height: 20rem; top: auto; bottom: 0; inset-block-start: auto; object-position: 80% 40%; }
    .hero::before { display: none; }
    .bubble { right: .5rem; bottom: 1rem; max-width: 9.5rem; font-size: .85rem; }
}

@media (max-width: 600px) {
    .section { padding-block: 2rem; }
    .questions__list, .features__list { grid-template-columns: 1fr; }
    .ebook { grid-template-columns: 1fr; padding: 1.4rem; justify-items: center; text-align: left; }
    .ebook__cover, .ebook--page .ebook__cover { max-width: 180px; }
    .ebook--page { grid-template-columns: 1fr; }
    .form .btn { justify-self: stretch; }
    .ebook__aside .btn { width: 100%; }
    .btn--lg { font-size: 1.1rem; padding: .95rem 1.2rem; }
    .hero__actions .btn { width: 100%; }
    .banner__card { border-radius: 28px; padding: 1rem; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
