/* =====================================================================
   VRAI — site public marketing. Reproduction fidèle de la maquette
   docs/design/vrai-website-reference.png (desktop 1536×1024).
   CSS autonome (aucune dépendance de build, aucun tracker).
   ===================================================================== */

/* --- Police Inter auto-hébergée (aucun CDN, aucun tracker) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/vrai/fonts/inter-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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/vrai/fonts/inter-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;
}

:root {
  --bg: #FFFFFF;
  --coral: #E54868;
  --coral-hover: #D83D5D;
  --coral-soft: #FCECEF;
  --ink: #11131F;
  --muted: #5F6068;
  --bg-soft: #FFF8F7;
  --border: #EEE7E8;
  --card: #FFFFFF;
  --header-h: 68px;
  --container: 1400px;
  --pad-x: clamp(20px, 6.2vw, 96px);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(229,72,104,0.45); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

/* ---------------------- Boutons ---------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-hover); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }

/* ---------------------- Header ---------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; display: block; flex: 0 0 auto; }
.brand__name { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 30px; margin-left: 44px; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
  transition: color .15s ease;
}
.nav a:hover { color: var(--coral); }
.nav a.is-active { color: var(--coral); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--coral); border-radius: 2px;
}
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--border); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.mobile-menu { display: none; }

/* ---------------------- Hero ---------------------- */
.hero { position: relative; background: linear-gradient(180deg, #FFFFFF 0%, #FFF3F1 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 44% 56%; align-items: center; }
.hero-copy { padding: 56px 40px 64px var(--pad-x); }
.hero-copy .inner { max-width: 540px; }
.hero h1 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.022em; color: var(--ink);
  margin-bottom: 22px;
}
.hero p.lead { font-size: 1.075rem; color: var(--muted); max-width: 440px; margin-bottom: 30px; }
.hero-media { position: relative; align-self: center; }
.hero-media img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%);
  mask-image: linear-gradient(to right, transparent 0, #000 13%);
}

/* Badges de store */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff;
  height: 54px; padding: 0 18px; border-radius: 11px;
  transition: opacity .15s ease, transform .15s ease;
}
.store-badge:hover { opacity: .88; }
.store-badge[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.store-badge__icon { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge__small { font-size: 0.625rem; font-weight: 500; letter-spacing: .02em; opacity: .92; }
.store-badge__big { font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; }
.store-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* ---------------------- Bande 5 fonctions ---------------------- */
.strip { background: var(--bg-soft); border-top: 1px solid var(--border); }
.strip-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-block: 46px;
}
.strip-item { padding: 0 26px; position: relative; }
.strip-item + .strip-item::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--border);
}
.strip-item .ico { color: var(--coral); margin-bottom: 16px; }
.strip-item .ico svg { width: 30px; height: 30px; }
.strip-item h3 { font-size: 1.075rem; font-weight: 700; margin-bottom: 8px; }
.strip-item p { font-size: 0.925rem; color: var(--muted); }

/* ---------------------- Sections génériques ---------------------- */
.section { padding-block: 92px; }
.section--soft { background: var(--bg-soft); }
.section-head { margin-bottom: 48px; max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.8rem, 2.5vw, 2.35rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; font-size: 1.075rem; color: var(--muted); }

/* Grille de cartes fonctionnalités (6) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(17,19,31,0.06); transform: translateY(-2px); border-color: #e6dcde; }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; background: var(--coral-soft);
  color: var(--coral); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.115rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.975rem; }

/* Comment ça marche (4 étapes) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step .num {
  width: 44px; height: 44px; border-radius: 999px; background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.115rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.975rem; }

/* CTA final doux */
.cta-soft { background: var(--coral-soft); }
.cta-soft .box { text-align: center; padding-block: 84px; }
.cta-soft h2 { font-size: clamp(1.7rem, 2.4vw, 2.25rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; max-width: 720px; margin: 0 auto; }
.cta-soft p { margin: 18px auto 30px; color: var(--muted); font-size: 1.075rem; max-width: 560px; }
.cta-soft .store-badges { justify-content: center; }

/* ---------------------- Page interne : hero simple ---------------------- */
.page-hero { background: linear-gradient(180deg, #FFFFFF 0%, #FFF6F4 100%); padding-block: 76px 60px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 3vw, 2.85rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.022em; max-width: 780px; }
.page-hero p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 620px; }

/* Rangées fonctionnalités (page /fonctionnalites) : texte + screenshot(s).
   Les captures sont des téléphones verticaux (720×1280, ratio 0.5625) : on préserve
   TOUJOURS le ratio (width fluide + height auto + object-fit contain) et on borne la
   largeur pour qu'un téléphone reste un objet secondaire, jamais une affiche. */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 80px; border-bottom: 1px solid var(--border); }
.feature-row:nth-child(even) .feature-row__media { order: 1; }
.feature-row:nth-child(even) .feature-row__copy { order: 2; }
.feature-row__index { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.13em; color: var(--coral); text-transform: uppercase; margin-bottom: 14px; }
.feature-row__copy h2 { font-size: clamp(1.55rem, 2.1vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; }
.feature-row__copy p { color: var(--muted); font-size: 1.075rem; max-width: 460px; }
.feature-row__media { display: flex; justify-content: center; align-items: center; gap: 28px; }

/* Cadre commun d'une capture téléphone (une seule classe pour les 8 sections). */
.phone-shot {
  border-radius: 30px; overflow: hidden; margin: auto;
  box-shadow: 0 24px 60px rgba(17,19,31,0.16); border: 1px solid var(--border); background: #fff;
}
.phone-shot img { display: block; width: 100%; height: auto; object-fit: contain; }

/* Desktop : une capture (Discovery, Déclic, Match, Conversation, Rencontre, VRAI Check). */
.feature-row__media.single .phone-shot { width: clamp(300px, 26vw, 390px); max-width: 390px; }
/* Desktop : deux captures côte à côte (Profil + Compatibilité). */
.feature-row__media:not(.single) .phone-shot { width: clamp(220px, 18vw, 285px); max-width: 285px; }

/* Sécurité (6 blocs) */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.safety-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px; }
.safety-card .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--coral-soft); color: var(--coral); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.safety-card .ico svg { width: 24px; height: 24px; }
.safety-card h3 { font-size: 1.115rem; font-weight: 700; margin-bottom: 8px; }
.safety-card p { color: var(--muted); font-size: 0.975rem; }
.inline-cta { margin-top: 44px; text-align: center; }
.inline-cta .btn { white-space: normal; height: auto; min-height: 44px; padding: 11px 24px; text-align: center; }

/* ---------------------- Abonnements ---------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--coral); box-shadow: 0 16px 40px rgba(229,72,104,0.1); position: relative; }
.plan__badge { position: absolute; top: -13px; left: 32px; background: var(--coral); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan__name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.plan__price { margin-top: 14px; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan__tag { margin-top: 10px; color: var(--muted); font-size: 0.975rem; min-height: 1.4em; }
.plan__list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.975rem; }
.plan__list li .chk { color: var(--coral); flex: 0 0 auto; margin-top: 2px; }
.plan__list li .chk svg { width: 18px; height: 18px; }
.plan__list li b { font-weight: 600; }
.plan__list li small { display: block; color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.plan .btn { margin-top: 26px; width: 100%; }
.plans-note { margin-top: 34px; text-align: center; color: var(--muted); font-size: 0.975rem; max-width: 780px; margin-inline: auto; }
.plans-note strong { color: var(--ink); font-weight: 600; }

/* ---------------------- FAQ ---------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left; font-size: 1.115rem; font-weight: 600; color: var(--ink);
}
.faq-q .chev { flex: 0 0 auto; transition: transform .2s ease; color: var(--coral); }
.faq-q .chev svg { width: 22px; height: 22px; display: block; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.faq-a p { color: var(--muted); font-size: 1.02rem; padding: 0 4px 24px; max-width: 720px; }
.faq-link { margin-top: 40px; text-align: center; }
.faq-link a { color: var(--coral); font-weight: 600; }

/* ---------------------- Footer ---------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-block: 60px 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.975rem; max-width: 300px; }
.footer-col h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink); font-size: 0.975rem; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 42% 58%; }
  .hero-media { min-height: 480px; }
  .cards, .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .strip-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 0; }
  .strip-item:nth-child(3n+1)::before { display: none; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; max-width: none; margin: 0; padding: 44px var(--pad-x) 30px; }
  .hero-copy .inner { max-width: none; }
  .hero p.lead { max-width: none; }
  .hero-media { order: 2; min-height: 0; }
  .hero-media img { height: auto; -webkit-mask-image: none; mask-image: none; }

  .strip-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 40px; }
  .strip-item { padding: 0; }
  .strip-item::before { display: none !important; }

  .cards, .safety-grid, .steps { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }

  /* Tablette / grand mobile : texte au-dessus, capture centrée en dessous. */
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .feature-row:nth-child(even) .feature-row__media,
  .feature-row:nth-child(even) .feature-row__copy { order: initial; }
  .feature-row__media { order: 2; gap: 24px; }
  .feature-row__copy { order: 1; }
  .feature-row__copy p { max-width: none; }
  .feature-row__media.single .phone-shot { width: min(72vw, 340px); max-width: 340px; }
  .feature-row__media:not(.single) .phone-shot { width: min(38vw, 260px); max-width: 260px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Menu mobile déroulant */
  .mobile-menu {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(17,19,31,0.08);
    padding: 12px var(--pad-x) 22px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 13px 0; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-menu a.is-active { color: var(--coral); }
  .mobile-menu .btn-coral { display: flex; margin-top: 18px; }
}

/* Mobile : les deux captures s'empilent verticalement, jamais deux mini-téléphones. */
@media (max-width: 600px) {
  .feature-row { padding-block: 44px; }
  .feature-row__media { flex-direction: column; align-items: center; gap: 24px; }
  .feature-row__media.single .phone-shot { width: min(78vw, 320px); max-width: 320px; }
  .feature-row__media:not(.single) .phone-shot { width: min(76vw, 300px); max-width: 300px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.95rem; }
  .store-badge { height: 50px; padding: 0 15px; }
  .store-badge__big { font-size: 1.05rem; }
  .plans { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
