/*
 * The presentation page of the web (scripts/lib/landing.mjs), redone after the desktop mockup
 * design/claude_design/ordinateur/Main.dc.html (DEC-14). One plain stylesheet, mobile first: one column on the phone,
 * the wide layout from 1024 px (docs/03 § 5, « Grand écran »). The colours are the values of design/tokens.json
 * (Papier: paper red, cream cards, ink text 16.7:1; Veillée: the green background, same cards), the proportions those of
 * the mockup, never its markup. Fonts and paths from the root, the fonts the app already serves. Motion: the snowflakes
 * loop only when the script says so (`html[data-loop]`, never under reduced motion) and the switch of the footer pauses
 * them (`html[data-paused]`). Every image has its size in the markup: nothing moves when it arrives.
 */
@font-face {
  font-family: 'Caprasimo';
  src: url('/fonts/caprasimo-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('/fonts/martian-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --fond: #d62839;
  --motif: url('/brand/motif-papier.svg');
  --carte: #fff6e9;
  --carte-zone: #fce6d6;
  --champ: #ffffff;
  --texte: #2a0e16;
  --texte-secondaire: #7a3e4b;
  --separateur: #f3dccb;
  --lien: #9b1526;
  --action: #49c891;
  --moutarde: #ffc23d;
  --givre: #8ed6f2;
  --rose: #ff9ebb;
  --sauge: #a9d8b8;
  --abricot: #ffb48a;
  --ficelle: #b9805e;
  --veillee: #0f4234;
  --veillee-motif: #17574a;
  --veillee-contour: #06221a;
  --veillee-texte: #bfe8d6;
  /* The plain bands: cream on Papier, the green of Veillée in the dark. */
  --bande: var(--carte);
  --bande-texte: var(--texte);
  --bande-secondaire: var(--texte-secondaire);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f4234;
    --motif: url('/brand/motif-veillee.svg');
    --bande: #0f4234;
    --bande-texte: #fff6e9;
    --bande-secondaire: #bfe8d6;
  }
}

html {
  scroll-padding-top: 7rem;
  scroll-behavior: smooth;
  background: var(--carte);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--carte);
  color: var(--texte);
  font-family: Figtree, 'Segoe UI', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: var(--lien);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--texte);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--carte);
  border-radius: 6px;
}
.icon {
  flex: none;
  display: block;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  background: var(--carte);
  color: var(--texte);
  border: 2px solid var(--texte);
  border-radius: 12px;
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}

/* The content is held to 1200 px (docs/02 § 6.1). */
.wrap {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 721px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

/* --- The header ------------------------------------------------------------------------------- */
.top {
  position: relative;
  z-index: 20;
  background: var(--carte);
  color: var(--texte);
  border-bottom: 3px solid var(--texte);
}
@media (min-width: 1024px) {
  .top {
    position: sticky;
    top: 0;
  }
}
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
@media (max-width: 720px) {
  .top ul {
    gap: 0 1rem;
  }
}
.brand {
  margin: 0;
  display: flex;
  align-items: center;
}
.logo {
  display: block;
  height: 30px;
  width: auto;
}
@media (min-width: 721px) {
  .logo {
    height: 34px;
  }
}
.top nav {
  flex: 1 1 auto;
}
.top ul,
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top nav a {
  display: inline-block;
  padding: 0.35rem 0.1rem;
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
}
.top nav a:hover {
  text-decoration: underline;
}
.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.top-actions a {
  font-weight: 600;
  font-size: 0.95rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 1.1rem;
  border: 2.5px solid var(--texte);
  border-radius: 12px;
  background: var(--carte);
  color: var(--texte);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--texte);
}
.top-actions .chip {
  color: var(--texte);
  font-weight: 700;
}

/* --- Bands, cards, titles ---------------------------------------------------------------------- */
main {
  display: block;
}
main:focus {
  outline: none;
}
.band {
  position: relative;
  z-index: 1;
  background: var(--bande);
  color: var(--bande-texte);
  border-bottom: 3px solid var(--texte);
  padding: 3.5rem 0 4rem;
}
/* The paper bands let the snowflakes show on the pattern; the cards stay above them. */
.band-motif {
  position: static;
  background-color: var(--fond);
  background-image: var(--motif);
  background-size: 120px 120px;
  color: var(--texte);
}
.band-veillee {
  position: static;
  background: var(--veillee);
  color: var(--carte);
}
@media (min-width: 1024px) {
  .band {
    padding: 5.5rem 0 6rem;
  }
}
.card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  background: var(--carte);
  color: var(--texte);
  border: 3px solid var(--texte);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--texte);
}
h1,
h2 {
  margin: 0 0 0.75rem;
  font-family: Caprasimo, Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2.1rem, 7vw, 3.75rem);
  letter-spacing: -0.01em;
  margin: 1.4rem 0 1.1rem;
}
h2 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
}
h3 {
  margin: 0;
}
.center {
  text-align: center;
}
.sub {
  max-width: 36em;
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  color: var(--bande-secondaire);
}
.sub.center {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .sub {
    font-size: 1.1875rem;
    margin-bottom: 3.25rem;
  }
}

/* --- The banner -------------------------------------------------------------------------------- */
.hero {
  overflow: clip;
}
.hero-in {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .hero-in {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
  .hero-card {
    flex: 1 1 520px;
  }
  .phone-wrap {
    flex: 0 1 380px;
  }
}
.hero-card {
  min-width: 0;
  padding: 2rem 1.25rem 1.75rem;
  container-type: inline-size;
}
/* The widest rotating word with its comma measures 8.32 em (EN « with coworkers, », Caprasimo): the title never
   grows past 11.6 % of the card's inner width, so that word stays inside the card at every width, 1024 px (start of
   the two columns) and 320 px included (review, 05/11/2026; landing:check [title-fit]). Wider, the clamp rules. */
.hero-card h1 {
  font-size: min(clamp(2.1rem, 7vw, 3.75rem), 11.6cqi);
}
@media (min-width: 721px) {
  .hero-card {
    padding: 2.75rem 2.75rem 2.5rem;
  }
}
.ribbon {
  position: absolute;
  top: -3px;
  left: 1.25rem;
  margin: 0;
  background: var(--moutarde);
  color: var(--texte);
  border: 3px solid var(--texte);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0.35rem 0.875rem 0.4rem;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
@media (min-width: 721px) {
  .ribbon {
    left: 2.25rem;
  }
}
.lead {
  max-width: 34em;
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
}
@media (min-width: 1024px) {
  .lead {
    font-size: 1.25rem;
  }
}
.calls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin: 0 0 1.75rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 60px;
  box-sizing: border-box;
  padding: 0 1.6rem;
  background: var(--carte);
  color: var(--texte);
  border: 3px solid var(--texte);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--texte);
  font-family: Caprasimo, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}
.button-primary {
  background: var(--action);
  font-size: 1.375rem;
}
@media (max-width: 720px) {
  .button {
    flex: 1 1 100%;
  }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .chip:hover {
    box-shadow: 0 7px 0 var(--texte);
    transform: translateY(-2px);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button,
  .chip {
    transition:
      transform 140ms ease-out,
      box-shadow 140ms ease-out;
  }
}
.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.875rem;
  border-radius: 999px;
  background: var(--carte-zone);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* The phone, tilted, and the two tags that float around it: decoration (aria-hidden), drawn in HTML. */
.phone-wrap {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
}
.phone {
  box-sizing: border-box;
  width: 300px;
  max-width: 82%;
  transform: rotate(3deg);
  background: var(--texte);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 14px 0 rgba(42, 14, 22, 0.35);
}
.phone-screen {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 36px;
  overflow: hidden;
  padding: 22px 14px 18px;
  background-color: var(--fond);
  background-image: var(--motif);
  background-size: 120px 120px;
}
@media (min-width: 1024px) {
  .phone {
    width: 320px;
  }
  .phone-screen {
    height: 600px;
    padding-bottom: 0;
  }
}
.mini {
  background: var(--carte);
  color: var(--texte);
  border: 2.5px solid var(--texte);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--texte);
  padding: 12px 14px;
}
.mini p {
  margin: 0;
}
.mini-title {
  font-family: Caprasimo, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.2;
}
.mini-sub {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--texte-secondaire);
}
.mini-ribboned {
  padding: 0;
  overflow: hidden;
}
.mini-ribbon {
  display: inline-block;
  padding: 5px 16px 5px 12px;
  border-right: 2.5px solid var(--texte);
  border-bottom: 2.5px solid var(--texte);
  border-radius: 0 0 10px 0;
  font-weight: 800;
  font-size: 0.75rem;
}
.mini-ribbon-gold {
  background: var(--moutarde);
}
.mini-ribbon-green {
  background: var(--action);
}
.mini-gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 14px;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
}
.mini-art {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 8px 14px 12px;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
}
.mini-list li:not(:last-child) {
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--separateur);
}
.tag {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tag-left {
  left: 2%;
  top: 70px;
  transform: rotate(-12deg);
}
.tag-right {
  right: 2%;
  bottom: 40px;
  transform: rotate(10deg);
}
.tag-string {
  width: 2px;
  height: 24px;
  background: var(--ficelle);
}
.tag-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 72px;
  border: 2.5px solid var(--texte);
  border-radius: 8px 8px 18px 18px;
  box-shadow: 0 4px 0 var(--texte);
  color: var(--texte);
}
.tag-left .tag-card {
  background: var(--sauge);
}
.tag-right .tag-card {
  background: var(--abricot);
}
.tag-name {
  margin-top: 6px;
  background: var(--carte);
  color: var(--texte);
  border: 2px solid var(--texte);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 800;
  font-size: 0.8125rem;
}

/* --- How it works ------------------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem;
  background: var(--champ);
  color: var(--texte);
  border: 3px solid var(--texte);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--texte);
}
@media (min-width: 721px) {
  .step {
    padding: 1.75rem;
  }
}
.step-number {
  align-self: flex-start;
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.9375rem;
  background: var(--texte);
  color: var(--carte);
  border-radius: 10px;
  padding: 6px 12px;
}
.step-art {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--carte-zone);
  border-radius: 16px;
}
.step h3 {
  margin-top: 0.25rem;
  font-family: Caprasimo, Georgia, serif;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.15;
}
.step p,
.point p,
.qa p {
  margin: 0;
}

/* --- Made for families ------------------------------------------------------------------------- */
.why-card {
  padding: 2rem 1.25rem;
}
@media (min-width: 721px) {
  .why-card {
    padding: 3rem;
  }
}
.why-card h2 {
  margin-bottom: 2.25rem;
}
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2rem 2.5rem;
}
/* The four points on one row on a computer, as in the mockup. */
@media (min-width: 1100px) {
  .points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.point {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.point h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}
.point-icon {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2.5px solid var(--texte);
  color: var(--texte);
}
.point-icon-1 {
  background: var(--givre);
}
.point-icon-2 {
  background: var(--moutarde);
}
.point-icon-3 {
  background: var(--rose);
}
.point-icon-4 {
  background: var(--sauge);
}

/* --- The reveal, on the evening of the party (Veillée) ----------------------------------------- */
.reveal {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .reveal {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .reveal-text {
    flex: 1 1 420px;
  }
  .tv {
    flex: 1 1 460px;
  }
}
.reveal-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.reveal-text p {
  max-width: 30em;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--veillee-texte);
}
.reveal-text .label-gold {
  display: inline-block;
  margin-bottom: 1.1rem;
  background: var(--moutarde);
  color: var(--texte);
  border: 2.5px solid var(--veillee-contour);
  border-radius: 10px;
  padding: 0.3rem 0.75rem;
  font-weight: 800;
  font-size: 0.875rem;
}
.tv {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: var(--veillee-contour);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3);
}
.tv-screen {
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--veillee-motif);
  text-align: center;
}
.tv-screen p {
  margin: 0;
}
.tv-line {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--veillee-texte);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tv-mark {
  font-family: Caprasimo, Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--carte);
}
.tv-dots {
  display: flex;
  gap: 8px;
}
.tv-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--carte);
  opacity: 0.5;
}
.tv-dots span:first-child {
  background: var(--moutarde);
  opacity: 1;
}

/* --- Questions, on two columns on a computer ---------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.qa {
  box-sizing: border-box;
  padding: 1.25rem 1.5rem;
  background: var(--champ);
  color: var(--texte);
  border: 2.5px solid var(--texte);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--texte);
}
.qa h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.3;
}

/* --- The footer -------------------------------------------------------------------------------- */
.foot {
  position: relative;
  z-index: 1;
  background: var(--carte);
  color: var(--texte);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
  font-size: 0.9375rem;
}
.foot p {
  margin: 0;
}
.credit {
  font-weight: 700;
}
.foot a {
  display: inline-block;
  padding: 0.35rem 0.1rem;
  font-weight: 600;
}
.pause {
  min-height: 44px;
  padding: 0 1.1rem;
  background: var(--carte);
  color: var(--texte);
  border: 2.5px solid var(--texte);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pause[hidden] {
  display: none;
}

/* The snowflakes: decoration only, and only when the script has said a loop is welcome. They fall over the patterned
   bands and under the cards. */
.snow {
  display: none;
}
html[data-loop] .snow {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.snow span {
  position: absolute;
  top: -1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--carte);
  opacity: 0.85;
  animation: fall 9s linear infinite;
}
.snow span:nth-child(1) {
  left: 6%;
  animation-delay: -1s;
}
.snow span:nth-child(2) {
  left: 18%;
  animation-delay: -4s;
  animation-duration: 11s;
}
.snow span:nth-child(3) {
  left: 31%;
  animation-delay: -7s;
}
.snow span:nth-child(4) {
  left: 44%;
  animation-delay: -2s;
  animation-duration: 12s;
}
.snow span:nth-child(5) {
  left: 57%;
  animation-delay: -5s;
}
.snow span:nth-child(6) {
  left: 69%;
  animation-delay: -8s;
  animation-duration: 10s;
}
.snow span:nth-child(7) {
  left: 82%;
  animation-delay: -3s;
}
.snow span:nth-child(8) {
  left: 94%;
  animation-delay: -6s;
  animation-duration: 13s;
}
html[data-paused] .snow span {
  animation-play-state: paused;
}
@keyframes fall {
  from {
    transform: translateY(-1rem);
  }
  to {
    transform: translateY(105vh);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-loop] .snow {
    display: none;
  }
  .snow span {
    animation: none;
  }
}

/* The rotating words of the title (user, 04/11/2026): the full sentence is read by a screen reader (.sr), the
   words turn only when the script lets the loops run (html[data-loop]); paused or under reduced motion, the
   first one stays. The grid holds the widest word: nothing moves around them. Each word carries its comma and
   the end of the title stands on its own line (05/11/2026), so the room kept for the widest word falls at the end
   of the line, never between a shorter word and its comma. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.rot {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--lien);
  /* The leaving word slides down out of its line while the next slides down into it (user, 08/11/2026). */
  clip-path: inset(-0.1em -1em -0.2em);
}
.rot > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
}
.rot > span:first-child {
  opacity: 1;
}
.rot-end {
  display: block;
}
html[data-loop] .rot > span {
  animation: rot-word 7.5s cubic-bezier(0.4, 0, 0.2, 1) 1.9s infinite both;
}
html[data-loop] .rot > span:nth-child(1) {
  animation-delay: -0.6s;
}
html[data-loop] .rot > span:nth-child(3) {
  animation-delay: 4.4s;
}
html[data-paused] .rot > span {
  animation: none;
}
@keyframes rot-word {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  8%,
  33.3% {
    opacity: 1;
    transform: none;
  }
  41.3%,
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rot > span {
    animation: none;
  }
}
