/* Mellow — site vitrine. Même direction artistique que l'app : sombre, « cocon », verre dépoli,
   Fraunces (titres) + Manrope (texte), embarquées (licence OFL, voir assets/fonts). */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  /* Thème Nuit étoilée de l'app : nuit profonde, lumière de lampe (bleu nuit + or) */
  --base: #070914;
  --base-2: #0d1022;
  --glow-a: #1e2c62;
  --glow-b: #4a3414;
  --accent: #f6cf7a;
  --on-accent: #2e2000;
  --gold: #f6cf7a;
  --lavender: #b7a6f5;
  --text: #f4efe6;
  --soft: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --edge: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --gutter: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 400 17px/1.6 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

/* Le décor : deux lueurs tamisées qui dérivent, et un vignettage, derrière toute la page */
.cocoon { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--base); }
.cocoon::before, .cocoon::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: 0.55;
}
.cocoon::before { background: radial-gradient(circle, var(--glow-a), transparent 65%); top: -25vmax; left: -20vmax; animation: drift-a 38s ease-in-out infinite alternate; }
.cocoon::after { background: radial-gradient(circle, var(--glow-b), transparent 65%); bottom: -30vmax; right: -25vmax; animation: drift-b 46s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(18vmax, 12vmax); } }
@keyframes drift-b { to { transform: translate(-16vmax, -10vmax); } }
@media (prefers-reduced-motion: reduce) { .cocoon::before, .cocoon::after { animation: none; } html { scroll-behavior: auto; } }

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

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(7, 9, 20, 0.6); border-bottom: 1px solid var(--edge); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 24px "Fraunces", serif; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--soft); text-decoration: none; }
.nav a:hover { color: var(--text); }

h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
/* Fraunces réglée comme dans l'app (ui/theme/Theme.kt) : douce (SOFT 100), taille optique 48 */
h1, h2, h3, .brand { font-variation-settings: "SOFT" 100, "opsz" 48; font-optical-sizing: none; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 48px); }
h3 { font-size: 22px; }
.kicker { font: 600 13px "Manrope"; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--soft); max-width: 34em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; font: 700 16px "Manrope"; text-decoration: none; border: 1px solid transparent; }
.btn-soon { background: var(--glass-strong); color: var(--text); border-color: var(--edge); cursor: default; }
.btn-soon svg { width: 22px; height: 22px; }
.btn-ghost { color: var(--text); border-color: var(--edge); background: transparent; }
.btn-ghost:hover { background: var(--glass); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { font-size: 14px; color: var(--faint); margin-top: 12px; }

/* Téléphone : la capture dans un cadre sombre arrondi */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 20; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #1c2340, #05060d); border: 1px solid var(--edge);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(246, 207, 122, 0.1);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }

/* Héros */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .phone { justify-self: center; transform: rotate(2deg); }
.hero h1 em { font-style: italic; color: var(--accent); }

/* Sections alternées texte / téléphone */
section.feature { padding: 72px 0; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .text { order: 2; }
.feature .phone { justify-self: center; }
.feature p { color: var(--soft); max-width: 30em; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Une capture sans téléphone (gros plan), dans un cadre de verre */
.shot { width: 100%; max-width: 520px; border-radius: 22px; border: 1px solid var(--edge); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); justify-self: center; }

/* La carte à partager, posée de biais */
.card-shot { width: min(300px, 78vw); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); transform: rotate(-3deg); border: 1px solid var(--edge); justify-self: center; }

/* Grille des « petits plus » */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.glass { background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tile { padding: 24px; }
.tile h3 { font-size: 20px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--soft); font-size: 15.5px; }
.tile .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); margin-bottom: 14px; color: var(--accent); }
.tile .ico svg { width: 20px; height: 20px; }

/* Promesse vie privée */
.promise { margin: 40px 0 0; padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.promise .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 197, 106, 0.14); color: var(--gold); }
.promise .ico svg { width: 30px; height: 30px; }
.promise p { margin: 6px 0 0; color: var(--soft); }

.center { text-align: center; }
.center .lead { margin: 16px auto 0; }
.final { padding: 96px 0 72px; }
.final .actions { justify-content: center; }

/* Pied de page */
footer { border-top: 1px solid var(--edge); margin-top: 40px; padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Pages de texte (confidentialité, mentions, crédits, contact) */
.doc { max-width: 760px; padding-top: 120px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .box { padding: 22px 24px; margin: 20px 0; }
.todo { background: rgba(244, 197, 106, 0.16); color: var(--gold); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--edge); }
table.data th { color: var(--text); font-weight: 600; }
table.data td { color: var(--soft); }
.table-scroll { overflow-x: auto; }

.hero .wrap > *, .feature .wrap > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; }

/* Écran étroit (téléphone) : tout en une colonne, marge de 16 px */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .hero { padding-top: 40px; }
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .text { order: 0; }
  .grid { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; padding: 26px; }
  section.feature { padding: 48px 0; }
}
