/* cozymind.fr — feuille de style unique.
   Tokens repris de src/theme.js de l'app : le site doit ressembler à l'app. */

/* ---------- Polices (auto-hébergées, aucun appel tiers) ---------- */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --screen: #FAF6F0;
  --card: #F3EDE4;
  --ink: #2E2A26;
  --greige: #9A9088;
  --muted: #6B635B;
  --soft: #5F5347;          /* texte secondaire à bon contraste */
  --amber: #E9A94D;
  --amber-deep: #4A3410;    /* encre sur fond ambre */
  --chip-bg: #EFE7D6;
  --hairline: rgba(138, 129, 119, 0.25);
  --link: #8A5A16;

  --m1: #E89078; --m2: #F2B872; --m3: #D6CDBB; --m4: #A9D178; --m5: #5DBE93;

  --r-card: 14px;
  --r-full: 999px;

  --display: 'Fredoka', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
a, button { touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--screen);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--ink); color: #FBF7F1;
  padding: 0.6rem 1.1rem; border-radius: 0 0 12px 0;
  font-family: var(--display); font-weight: 500; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- En-tête ---------- */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.header-note {
  font-family: var(--display); font-weight: 500; font-size: 0.92rem;
  color: var(--soft); background: var(--chip-bg);
  padding: 0.4rem 0.95rem; border-radius: var(--r-full);
  white-space: nowrap;
}

/* ---------- Héros ---------- */
.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: #B87514; } /* ambre foncé : 3:1 sur crème */
.hero .pitch { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--soft); max-width: 34rem; }
.hero-figure { position: relative; margin: 0; }
.hero-figure::before {
  content: ''; position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(233, 169, 77, 0.28), transparent 72%);
  border-radius: 50%;
}
.hero-figure img { position: relative; width: min(100%, 420px); margin-inline: auto; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.1rem; margin-top: 1.6rem; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink); color: #FBF7F1;
  font-family: var(--display); font-weight: 500; font-size: 1.02rem;
  padding: 0.72rem 1.35rem; border-radius: var(--r-full);
  box-shadow: 0 10px 24px -12px rgba(46, 42, 38, 0.45);
}
.badge-soon .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); flex: none;
}
.cta-note { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Les 5 humeurs : un vrai essai du geste de l'app */
.mood-fan { display: flex; justify-content: center; gap: clamp(0.4rem, 1.5vw, 1rem); }
.mood-fan button {
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; line-height: 0; border-radius: 22%;
}
.mood-fan img {
  width: clamp(52px, 8vw, 84px); height: auto;
  border-radius: 22%;
  box-shadow: 0 8px 18px -10px rgba(46, 42, 38, 0.35);
}
.mood-fan button:nth-child(odd) { transform: rotate(-4deg) translateY(6px); }
.mood-fan button:nth-child(even) { transform: rotate(3deg); }
.mood-fan button[aria-pressed="true"] { transform: translateY(-6px) scale(1.12); }
.mood-fan.has-choice button[aria-pressed="false"] { opacity: 0.5; }
.mood-try {
  min-height: 2.6rem; text-align: center;
  margin: 1.2rem 0 0; font-size: 0.98rem; color: var(--muted);
}
.mood-chip {
  display: inline-block; padding: 0.32rem 0.95rem;
  border-radius: var(--r-full); font-weight: 600;
}

/* ---------- Sections « comment ça marche » ---------- */
.how { padding: clamp(2rem, 5vw, 4rem) 0; }
.how > .wrap > h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center;
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem);
}
.feature h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.feature p { color: var(--soft); max-width: 30rem; }
.feature-visual { margin: 0; display: grid; place-items: center; }
.feature-visual > img { width: min(100%, 340px); }

/* Maquette « Ta semaine » (reconstruite en CSS avec les tokens de l'app) */
.week-card {
  background: var(--card); border-radius: var(--r-card);
  padding: 1.35rem 1.5rem 1.5rem; width: min(100%, 360px);
  box-shadow: 0 18px 40px -24px rgba(46, 42, 38, 0.35);
}
.week-card .week-title {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem;
}
.week-days { display: flex; justify-content: space-between; gap: 0.4rem; }
.week-days .day { display: grid; gap: 0.5rem; justify-items: center; }
.week-days .day span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.week-days .day i {
  width: clamp(26px, 4vw, 34px); aspect-ratio: 1; border-radius: 50%; font-style: normal;
}
.day i.m1 { background: var(--m1); } .day i.m2 { background: var(--m2); }
.day i.m3 { background: var(--m3); } .day i.m4 { background: var(--m4); }
.day i.m5 { background: var(--m5); }
.day i.today { background: var(--screen); border: 3px solid var(--amber); }
.day i.future { background: rgba(138, 129, 119, 0.10); }

/* Maquette de rappel (notification locale) */
.reminder-stack { display: grid; gap: 1rem; width: min(100%, 360px); }
.reminder-stack > img { width: 200px; margin-inline: auto; }
.notif-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: #FFFDF9; border: 1px solid var(--hairline);
  border-radius: 18px; padding: 0.85rem 1rem;
  box-shadow: 0 18px 40px -24px rgba(46, 42, 38, 0.35);
}
.notif-card img { width: 42px; height: 42px; border-radius: 11px; }
.notif-card .notif-app { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); margin: 0 0 0.1rem; }
.notif-card .notif-text { font-size: 0.95rem; margin: 0; color: var(--ink); }

/* ---------- Bande confidentialité (ambre assumé) ---------- */
.privacy { background: var(--amber); color: var(--amber-deep); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.privacy h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); max-width: 18ch; }
.privacy .privacy-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; }
.privacy-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; padding: 0; margin: 1.6rem 0 1.8rem; list-style: none; }
.privacy-facts li {
  background: rgba(255, 253, 249, 0.55); border-radius: var(--r-full);
  padding: 0.45rem 1.05rem; font-weight: 600; font-size: 0.98rem;
}
.privacy a { color: var(--amber-deep); font-weight: 600; }

/* ---------- Appel final ---------- */
.closing { text-align: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.closing img { width: min(60vw, 300px); margin: 0 auto 1.5rem; }
.closing h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.closing .cta-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #EDE7DE; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer .brand { color: #FBF7F1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; padding: 0; margin: 0; list-style: none; }
.site-footer a { color: #EDE7DE; }
.site-footer a:hover { color: var(--amber); }
.site-footer .legal { font-size: 0.9rem; color: #B5ACA1; margin: 0; }

/* ---------- Pages de texte (légal) ---------- */
.prose { max-width: 46rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 4rem; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose .meta { color: var(--muted); font-size: 0.95rem; margin-top: -0.4rem; }
.prose h2 {
  font-size: 1.35rem; margin-top: 2.4em;
  border-bottom: 1px solid var(--hairline); padding-bottom: 0.35rem;
}
.prose ul { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.45rem; }
.prose .encadre {
  background: var(--chip-bg); border: 1px solid rgba(138, 129, 119, 0.35);
  border-radius: var(--r-card); padding: 1.05rem 1.3rem; margin: 1.6rem 0;
}
.back-link {
  display: inline-block; margin-bottom: 0.5rem;
  font-family: var(--display); font-weight: 500; text-decoration: none;
}

/* ---------- Page 404 ---------- */
.lost { text-align: center; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.lost img { width: min(55vw, 260px); margin: 0 auto 1.5rem; }
.lost h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-figure img { animation: drift 7s ease-in-out infinite; }
  .mood-fan button { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease-out; }
  .mood-fan button:hover { transform: translateY(-8px) rotate(0deg) scale(1.06); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .pitch { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-figure img { width: min(62vw, 300px); }
  .feature { grid-template-columns: 1fr; }
  .feature-visual { order: -1; }
  .feature-text h3, .feature-text p { text-align: center; margin-inline: auto; }
  .header-note { display: none; }
}
