/* Repousse — site vitrine / landing page
   Palette pastel cohérente avec l'app : sauge + rose poudré, fond crème. */

:root {
  --sage: #7d9b80;
  --sage-dark: #5f7d63;
  --rose: #d8a7a0;
  --rose-dark: #c2867e;
  --cream: #faf6f1;
  --cream-2: #f3ece3;
  --ink: #3a352f;
  --ink-soft: #6a635b;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -20px rgba(95, 125, 99, 0.35);
  --shadow-soft: 0 10px 30px -12px rgba(58, 53, 47, 0.18);
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(125, 155, 128, 0.14);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--sage-dark); text-decoration: none; }
.lang { font-size: 0.85rem; color: var(--ink-soft); border: 1px solid rgba(125,155,128,0.3); padding: 4px 11px; border-radius: 999px; }
.lang:hover { background: var(--cream-2); text-decoration: none; }
@media (max-width: 680px) { .nav .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sage-dark);
  background: rgba(125, 155, 128, 0.13); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 .accent { color: var(--sage-dark); }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 28px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: 14px; font-weight: 600;
  box-shadow: var(--shadow-soft); transition: transform .15s ease;
}
.appstore-badge:hover { transform: translateY(-2px); text-decoration: none; color: var(--white); }
.appstore-badge svg { width: 26px; height: 26px; fill: currentColor; }
.appstore-badge small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.8; line-height: 1.1; }
.appstore-badge strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.appstore-badge.soon { cursor: default; opacity: 0.9; }
.appstore-badge.soon:hover { transform: none; }

.note-soon { font-size: 0.85rem; color: var(--ink-soft); }

/* phone mockup */
.phone {
  justify-self: center;
  width: 280px; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #2b2723, #4a443d);
  box-shadow: var(--shadow);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; background: #1c1916; border-radius: 999px; z-index: 2;
}
.phone img { border-radius: 32px; }

/* image lifestyle du héros (photo arrondie, pas de cadre téléphone) */
.hero-photo {
  justify-self: center;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(58,53,47,0.04);
}
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: rgba(125,155,128,0.14);
}
.card:nth-child(even) .ico { background: rgba(216,167,160,0.2); }
.card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--white);
  background: var(--sage); box-shadow: var(--shadow-soft);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* screenshots */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 210px; flex: 0 0 auto; border-radius: 26px; box-shadow: var(--shadow); scroll-snap-align: center; border: 5px solid var(--white); }

/* reassurance / privacy strip */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.assure .item { display: flex; gap: 14px; align-items: flex-start; }
.assure .item .ico { font-size: 1.4rem; flex: 0 0 auto; }
.assure .item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.assure .item p { font-size: 0.93rem; color: var(--ink-soft); }

/* medical disclaimer */
.disclaimer {
  background: rgba(216,167,160,0.16); border: 1px solid rgba(194,134,126,0.35);
  border-radius: var(--radius-sm); padding: 20px 24px; font-size: 0.95rem; color: var(--ink-soft);
  max-width: 50em; margin: 0 auto; text-align: center;
}
.disclaimer strong { color: var(--rose-dark); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--sage), var(--sage-dark)); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 26px; font-size: 1.08rem; }
.cta-band .appstore-badge { background: var(--white); color: var(--ink); }
.cta-band .appstore-badge:hover { color: var(--ink); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: rgba(255,255,255,0.75); padding: 46px 0 34px; font-size: 0.92rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site .brand { color: var(--white); }
footer.site a { color: rgba(255,255,255,0.8); }
footer.site a:hover { color: var(--white); }
footer.site .links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer.site .copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
footer.site .copy .med { display: block; color: rgba(255,255,255,0.72); margin-bottom: 8px; line-height: 1.5; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; letter-spacing: -0.02em; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; color: var(--sage-dark); }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal .placeholder { background: #fff5d6; border: 1px dashed #d9b94e; border-radius: 8px; padding: 1px 6px; font-size: 0.92em; }
.legal a { color: var(--sage-dark); text-decoration: underline; }
.back { display: inline-block; margin-bottom: 28px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Responsive ---------- */

/* Desktop étroit / grandes tablettes */
@media (max-width: 960px) {
  .hero .wrap { gap: 36px; }
  .features { gap: 18px; }
  .phone { width: 260px; }
}

/* Tablettes : le héros passe en colonne, grilles intermédiaires 2 colonnes */
@media (max-width: 820px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .phone { order: -1; width: 240px; }
  .hero-photo { order: -1; max-width: 340px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .assure { grid-template-columns: 1fr; gap: 16px; }
  .section-head { margin-bottom: 36px; }
}

/* Téléphones : tout en une colonne, marges et tailles réduites */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  header.site .wrap { height: 58px; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 30px; height: 30px; }
  section { padding: 44px 0; }
  .hero { padding: 38px 0 22px; }
  .hero h1 { margin-bottom: 14px; }
  .hero p.lead { font-size: 1.05rem; margin-bottom: 24px; }
  .features { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 1rem; }
  .shots { gap: 16px; }
  .shots img { width: 178px; border-width: 4px; }
  .disclaimer { padding: 16px 18px; font-size: 0.9rem; }
  footer.site { padding: 38px 0 28px; }
  footer.site .wrap { flex-direction: column; gap: 18px; }
  .legal { padding: 40px 0 56px; }
  .legal h2 { font-size: 1.15rem; }
}

/* Petits téléphones */
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .phone { width: 210px; }
  .hero-photo { max-width: 280px; }
  .appstore-badge { padding: 11px 16px; }
  .cta-row { gap: 12px; }
}
