:root {
  --ink: #0d0f17;
  --muted: rgba(13, 15, 23, 0.58);
  --muted-strong: rgba(13, 15, 23, 0.72);
  --paper: #ffffff;
  --paper-soft: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(13, 15, 23, 0.095);
  --hairline: rgba(13, 15, 23, 0.065);
  --cobalt: #1a5cf0;
  --mint: #5fd6bd;
  --coral: #ff515f;
  --shadow: rgba(13, 15, 23, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f3f5f8 100%);
}

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

.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;
}

/* ---------- header / footer ---------- */

.site-header,
.site-footer {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 88px;
  position: relative;
  z-index: 6;
}

.site-header nav,
.site-footer div {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 750;
}

.site-header nav a,
.site-footer a {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.04rem;
  font-weight: 850;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: block;
  box-shadow:
    0 10px 24px rgba(13, 15, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---------- hero : la fiche du jour ---------- */

.hero {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100svh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.66fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  padding: 10px 0 56px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

.fiche {
  min-width: 0;
}

.kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  rotate: -2deg;
  box-shadow: 0 10px 22px rgba(255, 81, 95, 0.32);
}

.fiche-date {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
}

.fiche-date::first-letter {
  text-transform: uppercase;
}

.fiche-live {
  min-height: 25.5rem;
}

.fiche-mot {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 8.4vw, 8.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.meta-row {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow:
    0 8px 20px rgba(13, 15, 23, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
  font-weight: 850;
}

.fiche-def {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.18;
  font-weight: 900;
}

.fiche-citation {
  margin: 30px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--cobalt);
  max-width: 560px;
}

.fiche-citation blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.14rem, 1.7vw, 1.38rem);
  line-height: 1.42;
  color: var(--muted-strong);
}

.fiche-citation figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
}

.fiche-citation cite {
  font-style: italic;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.app-store-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 214px;
  padding: 14px 24px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-align: left;
  box-shadow: 0 18px 42px rgba(13, 15, 23, 0.22);
}

.app-store-link span {
  font-size: 0.73rem;
  line-height: 1.1;
  opacity: 0.78;
  font-weight: 750;
}

.app-store-link strong {
  font-size: 1.22rem;
  line-height: 1.05;
}

.app-store-link-disabled {
  cursor: default;
}

.cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  justify-self: end;
}

.hero-phone {
  margin: 0;
  height: clamp(480px, calc(100svh - 210px), 700px);
  width: auto;
  max-width: min(32vw, 360px);
  aspect-ratio: 1206 / 2622;
  border-radius: 48px;
  padding: 8px;
  background: #f3f5f8;
  border: 1px solid rgba(13, 15, 23, 0.08);
  box-shadow:
    0 34px 80px rgba(13, 15, 23, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 40px;
}

.mascot-sticker {
  position: absolute;
  left: -52px;
  bottom: -18px;
  width: 122px;
  height: 122px;
  border-radius: 30px;
  rotate: -9deg;
  filter: drop-shadow(0 16px 30px rgba(13, 15, 23, 0.28));
}

/* ---------- manifesto : l'anatomie de la fiche ---------- */

.manifesto {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0 96px;
}

.manifesto-copy h2 {
  margin: 0;
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.manifesto-copy p {
  margin: 22px 0 0;
  max-width: 560px;
  color: var(--muted-strong);
  font-size: 1.14rem;
  line-height: 1.58;
  font-weight: 650;
}

.fiche-anatomie {
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--hairline);
}

.fiche-anatomie li {
  padding-top: 30px;
  position: relative;
}

.fiche-anatomie li::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent);
  margin-bottom: 18px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 34%, transparent);
}

.fiche-anatomie span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fiche-anatomie p {
  margin: 12px 0 0;
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 780;
}

.detail-blue {
  --accent: var(--cobalt);
}

.detail-mint {
  --accent: var(--mint);
}

.detail-coral {
  --accent: var(--coral);
}

/* ---------- rituel : widget + notification ---------- */

.rituel {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 120px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(42px, 8vw, 104px);
  align-items: center;
}

.section-copy h2 {
  margin: 0;
  max-width: 540px;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}

.section-copy p {
  margin: 24px 0 0;
  max-width: 500px;
  color: var(--muted-strong);
  font-size: 1.14rem;
  line-height: 1.58;
  font-weight: 650;
}

.home-screen {
  min-height: 460px;
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)),
    var(--paper-soft);
  border: 1px solid rgba(13, 15, 23, 0.075);
  box-shadow: 0 28px 78px rgba(13, 15, 23, 0.11);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
}

.ios-widget {
  width: min(420px, 100%);
  min-height: 210px;
  padding: 28px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow:
    0 22px 50px rgba(13, 15, 23, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.widget-topline {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.widget-mot {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
  white-space: nowrap;
}

.widget-def {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.26;
  font-weight: 850;
}

.ios-widget small {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-weight: 900;
}

/* ---------- finale : la mascotte ---------- */

.finale {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.finale-mascotte {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
}

.finale-mascotte img {
  width: 136px;
  height: 136px;
  border-radius: 34px;
  rotate: -7deg;
  filter: drop-shadow(0 20px 38px rgba(13, 15, 23, 0.26));
}

.bulle {
  position: relative;
  margin: 0 0 56px;
  padding: 20px 28px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(13, 15, 23, 0.1);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.12;
  text-align: left;
  rotate: 2deg;
}

.bulle::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 26px;
  width: 20px;
  height: 20px;
  background: white;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
  border-bottom-left-radius: 5px;
}

/* ---------- footer / pages légales ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 46px;
}

.legal-page {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 120px;
}

.legal-page h1 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: 0.86;
}

.legal-page p {
  color: var(--muted-strong);
  font-size: 1.16rem;
  line-height: 1.75;
  font-weight: 620;
}

.legal-page a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 26px;
  }

  .fiche-live {
    min-height: 0;
  }

  .hero-visual {
    justify-self: center;
    margin-top: 26px;
  }

  .hero-phone {
    width: min(360px, 72vw);
    height: auto;
    max-width: none;
  }

  .manifesto {
    padding: 84px 0 72px;
  }

  .fiche-anatomie {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
  }

  .fiche-anatomie li {
    border-top: 1px solid var(--hairline);
    padding: 26px 0;
  }

  .fiche-anatomie li::before {
    margin-bottom: 14px;
  }

  .rituel {
    grid-template-columns: 1fr;
    padding: 12px 0 96px;
  }

  .rituel .section-copy {
    order: -1;
  }

  .section-copy h2,
  .section-copy p {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .hero,
  .manifesto,
  .rituel,
  .finale,
  .legal-page {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: 76px;
  }

  .site-header nav {
    display: none;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 44px;
  }

  .kicker {
    gap: 14px;
  }

  .kicker-pill {
    font-size: 0.7rem;
    padding: 8px 13px;
  }

  .fiche-date {
    font-size: 0.9rem;
  }

  .fiche-mot {
    margin-top: 24px;
    font-size: clamp(3.1rem, 13.4vw, 4.2rem);
  }

  .meta-row {
    margin-top: 20px;
  }

  .meta-pill {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .fiche-def {
    margin-top: 20px;
    font-size: 1.42rem;
  }

  .fiche-citation {
    margin-top: 22px;
    padding-left: 16px;
  }

  .fiche-citation blockquote {
    font-size: 1.06rem;
  }

  .hero-cta {
    margin-top: 28px;
  }

  .app-store-link {
    min-width: 188px;
    padding: 12px 18px 13px;
  }

  .app-store-link strong {
    font-size: 1.08rem;
  }

  .hero-visual {
    margin-top: 34px;
  }

  .hero-phone {
    width: min(300px, 78vw);
  }

  .mascot-sticker {
    left: -30px;
    bottom: -14px;
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .manifesto-copy h2,
  .section-copy h2 {
    font-size: 2.7rem;
  }

  .manifesto-copy p,
  .section-copy p {
    font-size: 1rem;
  }

  .fiche-anatomie {
    margin-top: 44px;
  }

  .fiche-anatomie p {
    font-size: 1.06rem;
  }

  .home-screen {
    min-height: 360px;
    border-radius: 34px;
  }

  .finale {
    padding-bottom: 96px;
  }

  .finale-mascotte {
    gap: 18px;
  }

  .finale-mascotte img {
    width: 108px;
    height: 108px;
    border-radius: 27px;
  }

  .bulle {
    margin-bottom: 40px;
    padding: 16px 20px;
  }

  .site-footer,
  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
