/* Homepage only. Shared by / and /fr/ so both languages stay identical. */

.home-hero { padding: 64px 0 40px; text-align: center; }
.home-hero-intro { display: flex; flex-direction: column; align-items: center; }
.home-hero h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .95; letter-spacing: -.04em; margin: 6px 0 22px; }
.home-hero h1 .accent, .home-title .accent { color: var(--red); }
.home-hero .lead { margin: 0 auto; font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 760px; }
.home-hero .actions { justify-content: center; }
.home-hero .meta { justify-content: center; }
.home-hero .meta > span { order: 1; }
.home-hero .meta .partner-proof { order: 2; flex-basis: 100%; flex-direction: column; gap: 5px; align-items: center; text-align: center; margin-top: 8px; }
.home-hero .meta .partner-proof .moodle-partner-logo { width: 150px; }

.home-stage { margin-top: 40px; }
.home-stage-frame { position: relative; border: 2px solid var(--ink); border-radius: 32px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 80px -30px rgba(16,16,16,.35); }
.home-stage-frame video, .home-stage-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.home-stage-controls { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.home-stage-controls > * { pointer-events: auto; }
.home-loop-toggle { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 999px; background: white; font-weight: 900; cursor: pointer; }
.home-loop-toggle[hidden] { display: none; }
.home-loop-toggle:focus-visible, .home-chapter:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.home-title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; letter-spacing: -.035em; font-weight: 950; margin: 0 0 22px; }
.home-centered { text-align: center; }
.home-centered .lead { margin-left: auto; margin-right: auto; }
.home-centered .actions { justify-content: center; }

.section.home-dark { background: var(--ink); color: white; }
.home-dark .lead, .home-dark p { color: #c9c9c9; }
.home-dark .home-title, .home-dark h3 { color: white; }
.home-dark .btn-light { color: var(--ink); }
.home-dark a:not(.btn) { color: white; text-decoration: underline; text-underline-offset: 3px; }

.home-film-player { margin-top: 40px; border-radius: 28px; overflow: hidden; background: black; border: 2px solid #2b2b2b; }
.home-film-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: black; }
.home-film-note { margin-top: 14px; font-size: .85rem; text-align: center; }
.home-chapters { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-chapter { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: white; text-align: left; font: inherit; cursor: pointer; }
.home-chapter img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 2px solid #2b2b2b; transition: border-color .2s ease; }
.home-chapter:hover img, .home-chapter[aria-current="true"] img { border-color: var(--red); }
.home-chapter strong { font-size: .95rem; }
.home-chapter span { color: #9b9b9b; font-size: .78rem; }

.home-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.home-tile { grid-column: span 2; display: flex; flex-direction: column; min-height: 280px; padding: 30px; border-radius: 28px; background: white; border: 2px solid var(--ink); }
.home-tile.wide { grid-column: span 3; min-height: 340px; }
.home-tile.red { background: var(--red); color: white; border-color: var(--red); }
.home-tile.ink { background: var(--ink); color: white; }
.home-tile.mint { background: var(--mint); }
.home-tile.yellow { background: var(--yellow); }
.home-tile.pink { background: var(--pink); }
.home-tile-role { font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.home-tile h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.05em; margin: 10px 0 12px; }
.home-tile p { margin: 0; font-size: 1rem; }
.home-tile .more { margin-top: auto; padding-top: 22px; font-weight: 850; }
.home-tile .more::after { content: " →"; }
.home-tile:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; }
.home-bento-note { margin-top: 22px; color: var(--grey); text-align: center; }

.home-spotlight { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.home-spotlight.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.home-spotlight.reverse .home-visual { order: -1; }
.home-visual { border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; background: white; box-shadow: 0 30px 60px -30px rgba(16,16,16,.35); }
.home-visual img { width: 100%; height: auto; }
.home-dark .home-visual { border-color: #2b2b2b; }
.home-steps { list-style: none; counter-reset: step; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.home-steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: baseline; }
.home-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: white; font-weight: 900; font-size: .9rem; }
.home-steps strong { display: block; }
.home-steps span { color: var(--grey); }

.home-proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.home-proof { padding: 26px; border-radius: 22px; background: #1c1c1c; border: 1px solid #2b2b2b; }
.home-proof h3 { font-size: 1.2rem; }
.home-proof p { margin: 0; font-size: .95rem; }
.home-proof.optin { border-color: var(--red); }
.home-proof-tag { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px; background: var(--red); color: white; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.home-research { margin-top: 34px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding-top: 28px; border-top: 1px solid #2b2b2b; }
.home-research strong { font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.07em; color: var(--red); }
.home-research small { display: block; margin-top: 6px; color: #9b9b9b; }

.home-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.home-duo .card { padding: 34px; border-radius: 28px; box-shadow: none; }
.home-duo .card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.05em; }
.home-duo .card p { font-size: 1rem; }
.home-duo .card .check-list { margin-top: 16px; }
.home-duo .card.mint { background: var(--mint); }
.home-duo .card.pink { background: var(--pink); }
.home-aside { margin-top: 22px; color: var(--grey); text-align: center; }

.home-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.home-chips li { list-style: none; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; background: white; font-weight: 800; font-size: .92rem; }
.home-chips { padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  .home-stage-frame { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  .scroll-reveal.is-visible .home-tile { animation: mode-card-reveal 580ms cubic-bezier(.2, .8, .2, 1) both; transition: transform 220ms ease; }
  .scroll-reveal.is-visible .home-tile:nth-child(2) { animation-delay: 80ms; }
  .scroll-reveal.is-visible .home-tile:nth-child(3) { animation-delay: 160ms; }
  .scroll-reveal.is-visible .home-tile:nth-child(4) { animation-delay: 240ms; }
  .scroll-reveal.is-visible .home-tile:nth-child(5) { animation-delay: 320ms; }
  .scroll-reveal.is-visible .home-tile:hover { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .home-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tile, .home-tile.wide { grid-column: span 1; min-height: 240px; }
  .home-spotlight, .home-spotlight.reverse { grid-template-columns: 1fr; gap: 34px; }
  .home-spotlight.reverse .home-visual { order: 0; }
}

@media (max-width: 650px) {
  .home-hero { padding-top: 56px; }
  .home-stage { margin-top: 36px; }
  .home-stage-frame { border-radius: 20px; }
  .home-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-bento, .home-proofs, .home-duo { grid-template-columns: 1fr; }
  .home-research { grid-template-columns: 1fr; }
}
