/* Mydayslife — landing « Première année »
   Palette tirée des couvertures : lin, vert profond, encre. */

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --brume: #E9ECE6;      /* fond : papier légèrement vert-gris */
  --papier: #F6F7F3;     /* pages, surfaces claires */
  --encre: #1B2420;      /* texte principal */
  --gris: #59635D;       /* texte secondaire */
  --vert: #26443A;       /* lin vert profond, couleur signature */
  --vert-clair: #9DB3A8;
  --lin: #D8D1C1;        /* lin naturel */
  --filet: #C9CEC6;

  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--encre); color: var(--papier); padding: .5rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem var(--gutter);
}
.wordmark {
  font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em;
  font-variation-settings: "opsz" 60; text-decoration: none;
}
.top nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); font-size: .9375rem; }
.top nav a { text-decoration: none; color: var(--gris); }
.top nav a:hover { color: var(--encre); }
.top nav .top-cta {
  color: var(--encre); border-bottom: 1px solid var(--encre); padding-bottom: 1px;
}
@media (max-width: 720px) {
  .top nav a:not(.top-cta) { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font: inherit; font-size: 1rem; font-weight: 500;
  background: var(--vert); color: var(--papier);
  padding: 1rem 1.75rem; border: 1px solid var(--vert); border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: #1D362E; }
.btn-light { background: var(--papier); color: var(--vert); border-color: var(--papier); }
.btn-light:hover { background: #fff; }

/* ---------- Ouverture ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) var(--section);
  max-width: 88rem; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1.04; font-weight: 400; letter-spacing: -.025em;
  font-variation-settings: "opsz" 72;
  max-width: 14ch;
  text-wrap: balance;
}
.lede {
  margin-top: 2rem; max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--gris);
}
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.reassure { font-size: .9375rem; color: var(--gris); font-style: italic; }

/* Le livre */
.studio { display: grid; justify-items: center; gap: 2.5rem; }
.stage {
  position: relative; width: min(100%, 25rem); aspect-ratio: 1 / 1.02;
  perspective: 1800px; display: grid; place-items: center;
}
.book {
  --c1: #6B7C58; --c2: #5A6A49;
  position: relative; width: 78%; aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-24deg);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.studio:hover .book { transform: rotateX(3deg) rotateY(-17deg); }

.book-cover {
  position: absolute; inset: 0;
  border-radius: 2px 5px 5px 2px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 30% 20%, var(--c1), var(--c2));
  box-shadow:
    inset 6px 0 10px -6px rgba(0,0,0,.45),
    inset -1px 0 0 rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12%;
  transform: translateZ(14px);
  transition: background .5s ease;
}
/* Gaufrage à l'or, comme chez l'imprimeur (or, argent, blanc ou noir) */
.emboss-name, .emboss-sub, .emboss-year {
  background: linear-gradient(100deg, #9C7A35 0%, #E9D391 38%, #B8913F 55%, #F2E2A6 72%, #A07E37 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .5px 0 rgba(0,0,0,.3));
}
.emboss-name {
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.05; font-weight: 500;
  font-variation-settings: "opsz" 72; letter-spacing: .01em;
  max-width: 100%; overflow-wrap: anywhere;
}
.emboss-sub {
  margin-top: .9rem; font-style: italic; font-size: clamp(.95rem, 1.6vw, 1.15rem);
}
.emboss-year {
  position: absolute; bottom: 9%; font-size: .8rem; letter-spacing: .3em;
  font-variant-numeric: lining-nums;
}
.book-spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 28px;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  transform-origin: left center; transform: rotateY(90deg) translateX(-14px);
  filter: brightness(.8);
}
.book-pages {
  position: absolute; top: 2%; bottom: 2%; right: -1px; width: 26px;
  background: repeating-linear-gradient(90deg, #f3f1ea 0 1px, #dcd8cd 1px 2px);
  transform-origin: right center; transform: rotateY(90deg) translateX(13px);
}
.book-shadow {
  position: absolute; bottom: 4%; left: 14%; right: 6%; height: 10%;
  background: radial-gradient(closest-side, rgba(27,36,32,.28), transparent);
  filter: blur(6px); z-index: -1;
}

.book[data-cover="kai"]    { --c1: #D3C3AE; --c2: #C2B19A; }
.book[data-cover="bowtie"] { --c1: #28304B; --c2: #1A2036; }
.book[data-cover="cork"]   { --c1: #B98F68; --c2: #A47B55; }
.book[data-cover="bowtie"] .book-cover {
  background:
    radial-gradient(120% 90% at 22% 12%, rgba(255,255,255,.14), transparent 55%),
    repeating-radial-gradient(circle at 37% 61%, rgba(0,0,0,.035) 0 1px, transparent 1px 4px),
    radial-gradient(120% 90% at 30% 20%, var(--c1), var(--c2));
}
.book[data-cover="cork"] .book-cover {
  background:
    radial-gradient(circle at 20% 30%, rgba(60,35,15,.16) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(60,35,15,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 80%, rgba(255,240,220,.14) 0 1px, transparent 2px),
    radial-gradient(120% 90% at 30% 20%, var(--c1), var(--c2));
  background-size: 9px 9px, 13px 13px, 11px 11px, 100% 100%;
}
.book[data-cover="cork"] .emboss-name, .book[data-cover="cork"] .emboss-sub, .book[data-cover="cork"] .emboss-year {
  background: none; color: #1E1B17; filter: none;
}

.controls { width: min(100%, 25rem); display: grid; gap: 1.5rem; }
.field { display: grid; gap: .4rem; font-size: .9375rem; color: var(--gris); }
.field input {
  font: inherit; font-size: 1.25rem; color: var(--encre);
  background: transparent; border: 0; border-bottom: 1px solid var(--encre);
  padding: .35rem 0; border-radius: 0;
}
.field input:focus { outline: none; border-bottom-width: 2px; padding-bottom: calc(.35rem - 1px); }

.swatches { border: 0; margin: 0; padding: 0; display: flex; gap: .9rem; align-items: center; }
.swatches legend { font-size: .9375rem; color: var(--gris); margin-bottom: .6rem; padding: 0; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw {
  display: block; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  outline: 1px solid transparent; outline-offset: 4px;
  transition: outline-color .2s ease;
}
.swatches input:checked + .sw { outline-color: var(--encre); }
.swatches input:focus-visible + .sw { outline: 2px solid var(--vert); }
.sw-cactus { background: #647552; }
.sw-kai { background: #CBBAA4; }
.sw-bowtie { background: #1E253D; }
.sw-cork { background: #B08760; }
.sw-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cover-note { font-size: .9375rem; font-style: italic; color: var(--gris); min-height: 1.6em; }

/* ---------- Sommaire ---------- */
.contents {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
  padding: var(--section) var(--gutter);
  max-width: 88rem; margin: 0 auto;
  border-top: 1px solid var(--filet);
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; font-weight: 400;
  letter-spacing: -.02em; font-variation-settings: "opsz" 72; text-wrap: balance;
}
.contents-intro p { margin-top: 1.5rem; max-width: var(--measure); color: var(--gris); }

.toc-page {
  background: var(--papier);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 5vw, 4.5rem);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(27,36,32,.25);
}
.toc-head {
  font-style: italic; font-size: 1.5rem; text-align: center; margin-bottom: 2.25rem;
  font-variation-settings: "opsz" 48;
}
.toc { list-style: none; padding: 0; display: grid; gap: 1.05rem; }
.toc li {
  display: grid; grid-template-columns: 2.5rem auto 1fr auto; align-items: baseline; gap: .5rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}
.toc-num { color: var(--vert); font-size: .875em; font-variant-caps: small-caps; letter-spacing: .04em; }
.toc-dots { border-bottom: 1px dotted var(--gris); transform: translateY(-.3em); min-width: 1rem; opacity: .6; }
.toc-p { font-variant-numeric: oldstyle-nums tabular-nums; color: var(--gris); }
.toc-foot { margin-top: 2.25rem; font-size: .875rem; color: var(--gris); font-style: italic; text-align: center; }

/* ---------- Double page ---------- */
.spread-section { padding: 0 var(--gutter) var(--section); max-width: 88rem; margin: 0 auto; }
.spread {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 64rem; margin: 0 auto; aspect-ratio: 2 / 1;
  background: var(--papier);
  box-shadow: 0 40px 80px -40px rgba(27,36,32,.35);
  position: relative;
}
.spread::after { /* pli central */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.07) 48%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.07) 52%, transparent);
  pointer-events: none;
}
.page { padding: 7%; display: flex; flex-direction: column; }
.page-left { padding-right: 5%; }
.page-right { padding-left: 9%; justify-content: center; }
.ph { display: block; background:
  radial-gradient(60% 50% at 70% 30%, rgba(255,236,214,.85), transparent 70%),
  radial-gradient(50% 45% at 35% 70%, rgba(214,184,170,.7), transparent 70%),
  linear-gradient(160deg, #E4D6C6, #C9B8A8 55%, #A99C92); }
.ph-tall { flex: 1; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; margin: 7% 0; }
.ph-sq { aspect-ratio: 1; }
.ph-b { background:
  radial-gradient(55% 45% at 40% 35%, rgba(255,248,236,.9), transparent 70%),
  linear-gradient(200deg, #D7DDE0, #B9C3C3 55%, #A3AFA8); }
.ph-row .ph-sq:first-child { background:
  radial-gradient(50% 50% at 55% 45%, rgba(250,226,206,.9), transparent 70%),
  linear-gradient(140deg, #E8D3C3, #CFB09C 60%, #B39A8A); }
.page-chapter { font-size: clamp(.7rem, 1.1vw, .85rem); color: var(--vert); font-variant-caps: small-caps; letter-spacing: .06em; }
.page-title { font-size: clamp(1.1rem, 2.4vw, 1.9rem); line-height: 1.15; font-variation-settings: "opsz" 60; margin-top: .3em; }
.page-caption { font-style: italic; font-size: clamp(.72rem, 1.25vw, 1rem); line-height: 1.5; color: var(--gris); max-width: 26ch; }
.spread-note { max-width: var(--measure); margin: 2.5rem auto 0; text-align: center; color: var(--gris); font-size: .9375rem; }

/* ---------- Parcours ---------- */
.steps {
  background: var(--vert); color: var(--papier);
  padding: var(--section) var(--gutter);
}
.steps h2 { max-width: 88rem; margin: 0 auto; }
.step-list {
  list-style: none; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 88rem; margin: clamp(3rem, 6vw, 5rem) auto 0;
}
.step-list li { counter-increment: step; border-top: 1px solid rgba(246,247,243,.3); padding-top: 1.5rem; }
.step-list li::before {
  content: counter(step); display: block;
  font-size: 2.75rem; line-height: 1; font-weight: 300; font-variation-settings: "opsz" 72;
  font-variant-numeric: lining-nums; color: var(--vert-clair); margin-bottom: 1.25rem;
}
.step-list h3 { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.step-list p { margin-top: .6rem; font-size: .9688rem; line-height: 1.6; color: rgba(246,247,243,.75); }

/* ---------- Fonctionnalités ---------- */
.features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 7vw, 7rem); row-gap: clamp(3rem, 6vw, 5rem);
  padding: var(--section) var(--gutter);
  max-width: 88rem; margin: 0 auto;
}
.features h2 { grid-column: 1 / -1; max-width: 18ch; }
.feature h3 {
  font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 400; line-height: 1.2;
  font-variation-settings: "opsz" 48; letter-spacing: -.01em;
  padding-bottom: 1rem; border-bottom: 1px solid var(--filet);
}
.feature p { margin-top: 1.1rem; color: var(--gris); max-width: var(--measure); }

/* ---------- Éditions ---------- */
.editions {
  padding: var(--section) var(--gutter);
  border-top: 1px solid var(--filet);
  max-width: 88rem; margin: 0 auto;
}
.editions-intro { margin-top: 1rem; color: var(--gris); max-width: var(--measure); }
.edition-grid {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--encre);
}
.edition { padding: 2.5rem clamp(1.25rem, 2.5vw, 2.5rem) 2.75rem; }
.edition + .edition { border-left: 1px solid var(--filet); }
.edition-main { background: var(--papier); border-left-color: transparent; }
.edition-main + .edition { border-left-color: transparent; }
.edition-flag { font-size: .875rem; font-style: italic; color: var(--vert); margin-bottom: 1rem; }
.edition h3 { font-size: 1.75rem; font-weight: 400; font-variation-settings: "opsz" 60; }
.price { margin-top: .5rem; font-size: 1.125rem; color: var(--gris); font-variant-numeric: lining-nums; }
.price span { font-size: 2.75rem; color: var(--encre); font-weight: 300; font-variation-settings: "opsz" 72; letter-spacing: -.02em; }
.edition ul { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: .7rem; }
.edition li { padding-left: 1.1rem; position: relative; font-size: .9688rem; }
.edition li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--vert); }
.editions-gift { margin-top: 2.5rem; font-style: italic; color: var(--gris); font-size: .9375rem; }

/* ---------- Questions ---------- */
.faq { padding: var(--section) var(--gutter); max-width: 52rem; margin: 0 auto; }
.faq h2 { margin-bottom: 2.5rem; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-of-type { border-bottom: 1px solid var(--filet); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-size: 1.1875rem; font-variation-settings: "opsz" 36;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--vert); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.6rem 0; color: var(--gris); max-width: var(--measure); }

/* ---------- Accès anticipé ---------- */
.access { background: var(--vert); color: var(--papier); padding: var(--section) var(--gutter); }
.access-inner { max-width: 40rem; margin: 0 auto; text-align: center; }
.access p { margin-top: 1.25rem; color: rgba(246,247,243,.8); }
.access-cta { margin-top: 2.25rem; }
.access-form { margin-top: 2.5rem; display: flex; gap: .75rem; }
.access-form input[type="email"] {
  flex: 1; min-width: 0; font: inherit; font-size: 1.0625rem;
  background: transparent; color: var(--papier);
  border: 1px solid rgba(246,247,243,.45); border-radius: 2px; padding: .9rem 1.1rem;
}
.access-form input::placeholder { color: rgba(246,247,243,.5); }
.access-form input:focus { outline: none; border-color: var(--papier); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.6em; font-style: italic; }
.legal-note { font-size: .8125rem; }
.access .legal-note { margin-top: .5rem; color: rgba(246,247,243,.6); }
.access :focus-visible { outline-color: var(--papier); }

/* ---------- Pied de page ---------- */
.foot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1rem 2rem;
  padding: 3rem var(--gutter); font-size: .9375rem; color: var(--gris);
}
.foot .wordmark { color: var(--encre); }
.foot-tag { font-style: italic; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--encre); text-decoration: underline; }

/* ---------- Adaptations ---------- */
@media (max-width: 1080px) {
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero, .contents { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
  .studio { gap: 1.75rem; }
  .stage { width: min(78%, 20rem); }
  .controls { width: min(100%, 22rem); }
  .edition-grid { grid-template-columns: 1fr; }
  .edition + .edition { border-left: 0; border-top: 1px solid var(--filet); }
  .edition-main { order: -1; }
  .edition-main + .edition { border-top-color: transparent; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .features { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .spread { aspect-ratio: auto; grid-template-columns: 1fr; }
  .spread::after { display: none; }
  .page-left { aspect-ratio: 4 / 3; padding: 6%; }
  .page-right { padding: 8% 7% 10%; }
  .page-title { font-size: 1.5rem; }
  .page-caption { font-size: .95rem; }
  .access-form { flex-direction: column; }
  .toc li { grid-template-columns: 2rem 1fr auto; }
  .toc-dots { display: none; }
}

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

/* ---------- 404 ---------- */
.notfound { padding: var(--section) var(--gutter); max-width: 40rem; }
.notfound h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.notfound p { margin: 1.5rem 0 2.5rem; color: var(--gris); }
