/* Félicie — site de présentation. Palette de l'app (Design/README.md), clair et sombre.
   Aucune ressource tierce : polices système, pas de script. */

:root {
  --brand: #2E7D5B;          /* vert sapin de la marque (icône, mascotte) */
  --brand-strong: #1C6044;   /* accent de l'interface (contraste AA sur blanc) */
  --on-brand: #FFFFFF;
  --bg: #F7FBF8;
  --surface: #FFFFFF;
  --tint: #EAF6EE;
  --hero-top: #EAF6EE;
  --hero-bottom: #CBE9D6;
  --mountain-back: #9FD1B3;
  --mountain-front: #86C3A0;
  --text: #1E2A24;
  --text-soft: #4A5A52;
  --line: #D9E8DF;
  --soon: #964500;
  --soon-bg: #FBEBDD;
  --ok: #1C6044;
  --ok-bg: #E2F1E8;
  --store-bg: #111111;
  --store-text: #FFFFFF;
  --shadow: 0 1px 2px rgba(20, 50, 35, .06), 0 8px 24px rgba(20, 50, 35, .08);
  --radius: 22px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #54C490;
    --brand-strong: #54C490;
    --on-brand: #0E211A;
    --bg: #0E211A;
    --surface: #16302A;
    --tint: #122A22;
    --hero-top: #1D3B2E;
    --hero-bottom: #0E211A;
    --mountain-back: #26493A;
    --mountain-front: #2E5746;
    --text: #EAF3EE;
    --text-soft: #B3C7BC;
    --line: #24443A;
    --soon: #FFB27A;
    --soon-bg: #3A2A1E;
    --ok: #7FD8AB;
    --ok-bg: #1C3A2F;
    --store-bg: #FFFFFF;
    --store-text: #111111;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--surface); padding: .5rem .9rem; border-radius: 10px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--hero-top) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--brand-strong); }

/* Accueil */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(6rem, 12vw, 9rem);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand-strong); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.8rem 0 1rem; }
.fineprint { font-size: .9rem; color: var(--text-soft); }

.mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(90px, 14vw, 170px); }
.m-back { fill: var(--mountain-back); }
.m-front { fill: var(--mountain-front); }

/* Bouton App Store (sans lien pour l'instant) */
.store-badge {
  display: inline-flex; align-items: center; gap: .65rem;
  background: var(--store-bg); color: var(--store-text);
  border-radius: 14px; padding: .55rem 1.2rem .55rem .9rem;
  text-decoration: none; min-height: 56px;
}
.store-badge.is-soon { cursor: default; opacity: .92; }
.store-icon { width: 28px; height: 28px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: .78rem; opacity: .85; }
.store-text strong { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }

.button {
  display: inline-block; background: var(--brand-strong); color: var(--on-brand);
  font-weight: 700; text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }

/* Aperçu de l'écran « À venir » */
.hero-visual { position: relative; justify-self: center; }
.hero-mascot { position: absolute; z-index: 2; left: -88px; bottom: -34px; width: 150px; filter: drop-shadow(0 10px 18px rgba(20, 50, 35, .22)); }
.phone {
  margin: 0; justify-self: center; width: min(330px, 100%);
  background: #1B1B1D; border-radius: 46px; padding: 12px;
  box-shadow: 0 30px 60px rgba(20, 50, 35, .25), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: rotate(2deg);
}
.phone-screen {
  background: #F2F2F7; color: #111; border-radius: 36px; padding: 2.2rem 1rem 1.4rem;
  font-size: .9rem; line-height: 1.35;
}
@media (prefers-color-scheme: dark) {
  .phone-screen { background: #000; color: #F2F2F7; }
}
.phone-title { font-size: 1.75rem; font-weight: 800; margin: 0 0 .7rem .3rem; letter-spacing: -.02em; }
.watch-card, .phone-list { background: #FFF; border-radius: 18px; }
@media (prefers-color-scheme: dark) { .watch-card, .phone-list { background: #1C1C1E; } }
.watch-card { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; font-weight: 500; }
.phone-section { color: #6B6B70; font-weight: 600; font-size: .78rem; margin: 1rem 0 .4rem .6rem; }
@media (prefers-color-scheme: dark) { .phone-section { color: #A1A1A8; } }
.phone-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; }
.phone-row + .phone-row { border-top: 1px solid rgba(120, 120, 128, .2); }
.row-text { display: flex; flex-direction: column; }
.row-text b { font-weight: 650; }
.row-text i { font-style: normal; color: #6B6B70; font-size: .8rem; }
@media (prefers-color-scheme: dark) { .row-text i { color: #A1A1A8; } }
.badge { font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.badge-soon { color: var(--soon); background: var(--soon-bg); }
.badge-ok { color: var(--ok); background: var(--ok-bg); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section[id], [id="confidentialite"], [id="mentions-legales"] { scroll-margin-top: 72px; }
.section-tint { background: var(--tint); }
.section-lead { font-size: 1.15rem; color: var(--text-soft); max-width: 40em; }

/* 3 cartes puis 2 (larges), pas de carte orpheline */
.cards { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cards .card { grid-column: span 2; }
.cards .card:nth-child(n+4) { grid-column: span 3; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card p { color: var(--text-soft); font-size: .98rem; margin: 0; }
.card-icon {
  width: 44px; height: 44px; padding: 9px; margin-bottom: .9rem; border-radius: 13px;
  background: var(--tint); stroke: var(--brand-strong); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem; text-align: center; box-shadow: var(--shadow); }
.step img { margin: 0 auto .6rem; width: 132px; }
.step p { color: var(--text-soft); margin: 0; }
.step-number {
  position: absolute; top: 1rem; left: 1rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--brand-strong); color: var(--on-brand);
}

.rights { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.rights img { flex: none; width: 120px; }
.rights p { color: var(--text-soft); }
.rights .note { font-size: .9rem; margin: 0; }

.privacy-split { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.privacy-mascot { width: 220px; justify-self: center; }

.checks { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--text-soft); }
.checks li b { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--brand-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%230E211A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.plus-card { display: grid; grid-template-columns: 1fr 220px; gap: 2rem; align-items: center; }
.plus-card img { width: 200px; justify-self: center; }

.support { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.2rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--brand-strong); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-soft); margin: 0 0 1rem; }

/* Pied de page : mentions légales et politique de confidentialité */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: clamp(3rem, 7vw, 5rem) 0 2rem; font-size: .98rem; }
.site-footer h2 { font-size: 1.6rem; }
.site-footer h3 { font-size: 1.02rem; margin-top: 1.6em; }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 2rem; }
.legal-grid h3 { margin-top: .4em; }
address { font-style: normal; color: var(--text-soft); }
.policy { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); max-width: 52em; }
.policy p { color: var(--text-soft); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .9rem; }
.footer-bottom p { margin: 0 0 .3rem; }

/* Petits écrans */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card, .cards .card:nth-child(n+4) { grid-column: span 1; }
  .cards .card:last-child { grid-column: span 2; }
  .hero-mascot { left: -40px; width: 120px; }
  .phone { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: span 1; }
  .hero-mascot { left: -12px; bottom: -24px; width: 96px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .privacy-split, .plus-card { grid-template-columns: 1fr; }
  .privacy-mascot, .plus-card img { width: 160px; }
  .plus-card img { grid-row: 1; }
  .rights { flex-direction: column; text-align: center; }
}
