/* HDLive, site vitrine : une seule feuille, du téléphone (390 px) à l'ordinateur (1280 px). */

@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('/fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('/fonts/outfit-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #F2F5F1;
  --card: #FFFFFF;
  --text: #14231C;
  --muted: #5A6A62;
  --accent: #0B6B52;
  --mint: #2BB58A;
  --dark: #14231C;
  --gradient: linear-gradient(160deg, #0B6B52 0%, #0E8A6A 60%, #2BB58A 100%);
  --button-gradient: linear-gradient(160deg, #2BB58A, #0B6B52);
  --shadow: 0 2px 12px rgba(20, 35, 28, 0.05);
  --side: 20px;
}

*, *::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: 16px/1.5 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--side); }
.section { padding-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
h2 { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.15; }
h3 { font-size: 16px; font-weight: 700; }
.muted, .card p, .steps p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.small { font-size: 12.5px; color: var(--muted); }

.card { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }

.btn { white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 18px; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; }
.btn-white { background: #FFFFFF; color: var(--accent); }
.btn-ghost { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.btn-green { background: var(--button-gradient); color: #FFFFFF; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #FFC94D; outline-offset: 2px; }

/* --- Hero */
.hero { background: linear-gradient(165deg, #0B6B52 0%, #0E8A6A 60%, #2BB58A 100%); color: #FFFFFF; border-radius: 0 0 36px 36px; overflow: hidden; padding-top: 18px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF; text-decoration: none; font-family: 'Outfit', sans-serif; font-size: 21px; font-weight: 800; min-height: 44px; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.top-links { display: flex; align-items: center; gap: 30px; }
.top-link { display: none; color: #DDF7EC; font-size: 15.5px; font-weight: 600; text-decoration: none; }
.top-app { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #FFFFFF; font-weight: 700; font-size: 14px; text-decoration: none; }
.hero-main { margin-top: 34px; display: flex; flex-direction: column; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 13px; font-weight: 700; color: #DDF7EC; }
h1 { font-family: 'Outfit', sans-serif; font-size: 38px; font-weight: 800; line-height: 1.05; }
.hero-lead { font-size: 16.5px; line-height: 1.5; color: #E2F6EE; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.hero-actions .btn-ghost { display: none; }
.hero-note { font-size: 13px; color: #CDEFE2; text-align: center; }

/* The app in a phone frame (an illustration, hidden from screen readers). */
.phone { margin: 30px auto 0; width: 250px; height: 300px; border-radius: 38px 38px 0 0; background: var(--dark); padding: 10px 10px 0; flex-shrink: 0; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px 30px 0 0; background: var(--bg); color: var(--text); overflow: hidden; }
.phone-head { background: linear-gradient(160deg, #0B6B52, #2BB58A); padding: 16px 14px 46px; color: #FFFFFF; }
.phone-date { font-size: 10px; color: #C9F2E2; }
.phone-hello { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px; }
.phone-card { margin: -34px 10px 0; background: #FFFFFF; border-radius: 18px; padding: 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 18px rgba(11, 107, 82, 0.15); }
.phone-ring { width: 70px; height: 70px; flex-shrink: 0; }
.phone-bars { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; font-size: 10px; }
.bar { display: block; height: 5px; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.bar-orange { background: #FDEEE3; } .bar-orange i { background: #E07A2E; }
.bar-blue { background: #E6F1FD; } .bar-blue i { background: #2F6FD6; }
.bar-violet { background: #EFEAFB; } .bar-violet i { background: #7A5AC8; }
.bar-green { background: #E3F6EE; } .bar-green i { background: #0B6B52; }
.phone-meal { margin: 10px; background: #FFFFFF; border-radius: 16px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.wide-only { display: none; }

/* --- Sections */
.cards { display: flex; flex-direction: column; gap: 14px; }
.who { display: flex; gap: 14px; align-items: flex-start; }
.who h3 { margin-bottom: 2px; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ico-orange { background: #FDEEE3; } .ico-blue { background: #E6F1FD; } .ico-violet { background: #EFEAFB; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 14px; }
.step { width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #FFFFFF; font-family: 'Outfit', sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.privacy { margin-top: 40px; background: var(--dark); color: #E8F0EB; border-radius: 28px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.lock { display: flex; }
.lock svg { width: 34px; height: 34px; }
.privacy-title { font-size: 24px; color: #E8F0EB; }
.privacy p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: #B9CBC2; }

.split { display: flex; flex-direction: column; gap: 40px; }
.split > section { display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 8px; }
.tabs button { flex: 1 1 0; min-height: 46px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; border: 1.5px solid #DDE5E0; background: #FFFFFF; color: var(--text); }
.tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
/* Without JavaScript, both cards show and the tabs stay hidden. */
.tabs { display: none; }
.js .tabs { display: flex; }
.js .installs[data-tab="iphone"] #install-android,
.js .installs[data-tab="android"] #install-iphone { display: none; }
.installs { display: flex; flex-direction: column; gap: 14px; }
.install h3 { margin-bottom: 8px; }
.install ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { padding: 0; }
.faq summary { min-height: 56px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 18px 16px; }

.support { margin-top: 40px; background: #FFFFFF; border-radius: 28px; padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.support-text { display: flex; flex-direction: column; gap: 14px; }
/* On a phone, as in the mockup: the gauge comes before the button. */
@media (max-width: 719px) {
  .support-text { display: contents; }
  .support-text > * { order: 3; }
  .support .kicker { order: 1; }
  .support .support-title { order: 2; }
  .support .gauge { order: 4; }
  .support .support-actions { order: 5; }
}
.support-title { font-size: 24px; }
.support-actions { display: flex; flex-direction: column; gap: 10px; }
.support-actions .small { text-align: center; }
.gauge { background: var(--bg); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gauge-month { font-weight: 700; font-size: 14px; }
.gauge-amount { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 18px; color: var(--accent); }
.gauge-amount span { font-size: 13px; font-weight: 600; color: var(--muted); }
.gauge-track { height: 12px; border-radius: 6px; background: #DDE5E0; overflow: hidden; }
.gauge-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2BB58A, #0B6B52); }
.gauge-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }

.key { font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.uses { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.gauge-sub { font-weight: 700; font-size: 13px; }
.gauge-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.ideas-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ideas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ideas li { background: #FFFFFF; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tag { padding: 3px 10px; border-radius: 999px; background: #E3F6EE; color: var(--accent); font-size: 12.5px; font-weight: 700; }
.cta { margin-top: 40px; background: var(--button-gradient); border-radius: 28px; padding: 26px 22px; color: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.cta-title { font-size: 24px; color: #FFFFFF; }

.footer { padding-top: 32px; padding-bottom: 30px; display: flex; flex-direction: column-reverse; gap: 10px; font-size: 13px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* --- Legal pages */
.legal-head { background: var(--gradient); color: #FFFFFF; border-radius: 0 0 36px 36px; padding-top: 18px; padding-bottom: 32px; }
.legal-head h1 { margin-top: 28px; font-size: 34px; }
.legal { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.legal h2 { font-size: 22px; }
.legal h3 { margin-top: 10px; font-size: 18px; }
.legal p, .legal li { color: var(--text); font-size: 15.5px; line-height: 1.6; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* --- Wider screens: the computer layout of the mockup */
@media (min-width: 720px) {
  :root { --side: 40px; }
  .section { padding-top: 70px; }
  h2 { font-size: 34px; }
  .cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }
  .who { flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px; }
  .ico { width: 56px; height: 56px; border-radius: 18px; font-size: 28px; }
  .who h3, .steps h3 { font-size: 19px; }
  .card p, .steps p, .muted { font-size: 15.5px; line-height: 1.55; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 18px; }
  .steps li { flex-direction: column; gap: 12px; }
  .step { width: 44px; height: 44px; border-radius: 14px; font-size: 19px; }
  .privacy { margin-top: 70px; flex-direction: row; align-items: center; gap: 40px; padding: 48px 56px; border-radius: 36px; }
  .lock { width: 84px; height: 84px; border-radius: 26px; background: rgba(43, 181, 138, 0.15); align-items: center; justify-content: center; flex-shrink: 0; }
  .lock svg { width: 42px; height: 42px; }
  .privacy-title { font-size: 32px; }
  .privacy p { font-size: 17px; line-height: 1.55; max-width: 760px; }
  .js .tabs { display: none; }
  .js .installs[data-tab] #install-iphone,
  .js .installs[data-tab] #install-android { display: flex; }
  .installs { flex-direction: row; gap: 18px; margin-top: 6px; }
  .installs .install { flex: 1 1 0; display: flex; flex-direction: column; border-radius: 28px; padding: 28px; }
  .support { margin-top: 70px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 44px 56px; border-radius: 36px; }
  .support-title { font-size: 34px; }
  .support-actions { flex-direction: row; align-items: center; gap: 12px; }
  .support-actions .small { text-align: left; font-size: 14px; }
  .gauge { border-radius: 24px; padding: 26px; gap: 14px; }
  .gauge-month { font-size: 16px; }
  .gauge-amount { font-size: 26px; }
  .gauge-amount span { font-size: 15px; }
  .gauge-track { height: 14px; border-radius: 7px; }
  .gauge-foot { font-size: 14px; }
  .ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gauge-lines { font-size: 14px; }
  .cta { margin-top: 70px; flex-direction: row; justify-content: space-between; align-items: center; padding: 44px 56px; border-radius: 36px; }
  .cta-title { font-size: 34px; }
  .footer { padding-top: 48px; padding-bottom: 44px; flex-direction: row; justify-content: space-between; gap: 40px; font-size: 14px; }
  .footer p { max-width: 640px; line-height: 1.55; }
  .footer nav { gap: 0 26px; flex-shrink: 0; align-content: flex-start; }
}

@media (min-width: 1024px) {
  :root { --side: 80px; }
  .hero { border-radius: 0 0 48px 48px; padding-top: 26px; background: var(--gradient); }
  .logo { font-size: 25px; gap: 10px; }
  .logo-mark { width: 40px; height: 40px; border-radius: 13px; }
  .top-link { display: inline-flex; align-items: center; min-height: 44px; }
  .top-app { padding: 0 20px; background: #FFFFFF; color: var(--accent); font-size: 15.5px; }
  .hero-main { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 56px; }
  .hero-text { max-width: 560px; padding-bottom: 90px; gap: 20px; }
  .pill { padding: 7px 14px; font-size: 14px; }
  h1 { font-size: 62px; line-height: 1.02; }
  .hero-lead { font-size: 19px; line-height: 1.55; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { min-height: 56px; font-size: 16.5px; }
  .hero-actions .btn-ghost { display: flex; }
  .hero-note { font-size: 14px; text-align: left; }
  .phone { margin: 0; width: 330px; height: 470px; border-radius: 48px 48px 0 0; padding: 12px 12px 0; }
  .phone-screen { border-radius: 38px 38px 0 0; }
  .phone-head { padding: 22px 18px 60px; }
  .phone-date { font-size: 12px; }
  .phone-hello { font-size: 22px; }
  .phone-card { margin: -44px 14px 0; border-radius: 22px; padding: 16px; gap: 14px; }
  .phone-ring { width: 96px; height: 96px; }
  .phone-bars { font-size: 12px; gap: 8px; }
  .bar { height: 6px; }
  .phone-meal { margin: 14px; border-radius: 18px; padding: 14px 16px; font-size: 13px; }
  .phone-meal + .phone-meal { margin-top: 0; }
  .wide-only { display: block; }
  .phone-meal.wide-only { display: flex; }
  .section { padding-top: 90px; }
  h2 { font-size: 38px; line-height: 1.1; }
  .privacy, .support, .cta { margin-top: 90px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
  .split > section { gap: 18px; }
  .faq { gap: 12px; }
  .faq details { border-radius: 28px; }
  .faq summary { min-height: 62px; padding: 18px 24px; font-size: 17px; }
  .faq summary::after { font-size: 22px; }
  .faq details p { padding: 0 24px 20px; }
  .legal-head { border-radius: 0 0 48px 48px; padding-top: 26px; }
  .legal-head h1 { font-size: 46px; }
}

/* --- L'app en images : vignettes, puis la capture agrandie par-dessus la page */
.gallery { list-style: none; margin: 4px 0 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; }
.shot { display: block; border-radius: 22px; overflow: hidden; background: var(--dark); padding: 6px; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; border-radius: 17px; }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 720px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
}
.shot { cursor: zoom-in; }
.viewer { border: 0; padding: 40px; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; cursor: zoom-out; box-sizing: border-box; }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer::backdrop { background: rgba(8, 18, 14, 0.86); }
.viewer img { display: block; max-width: min(100%, 390px); max-height: 100%; width: auto; height: auto; border-radius: 22px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); cursor: zoom-out; }
@media (max-width: 559px) { .viewer { padding: 24px; } }
