/* ==========================================================================
   Troquizy — Landing page
   Charte Kosmos : terracotta #DB5335 · crème #FAF9F7 · Superior Title ≈ Playfair
   ========================================================================== */

:root {
  --terracotta: #DB5335;
  --terracotta-dark: #C24428;
  --terracotta-light: #E3836D;
  --blush: #F8E8E4;
  --cream: #FAF9F7;
  --ink: #1A1817;
  --grey: #575756;
  --white: #FFFFFF;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", -apple-system, sans-serif;
  --radius: 18px;
  --shadow-soft: 0 20px 60px -24px rgba(26, 24, 23, .18);
  --shadow-card: 0 10px 34px -18px rgba(219, 83, 53, .28);
  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--terracotta); }

.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 22ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1.1rem;
}
.eyebrow svg { width: 16px; height: 16px; fill: var(--terracotta); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; text-decoration: none;
  border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn--primary {
  background: var(--terracotta); color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn--sm { padding: .62rem 1.4rem; font-size: .88rem; }
.btn--lg { padding: 1.05rem 2.6rem; font-size: 1.05rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: 0 6px 30px -18px rgba(26, 24, 23, .25); }

.header__inner {
  display: flex; align-items: center; gap: 2.5rem;
  height: var(--header-h);
}
.header__logo img { display: block; height: 46px; width: auto; }

.header__nav { display: flex; gap: 2rem; margin-inline-start: auto; }
.header__nav a {
  color: var(--grey); text-decoration: none; font-size: .93rem; font-weight: 500;
  position: relative; transition: color .2s;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--terracotta); transition: width .25s ease;
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 1.1rem; }

.lang { display: flex; border: 1px solid #E5E0DB; border-radius: 999px; padding: 3px; background: var(--white); }
.lang__btn {
  border: 0; background: transparent; font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--grey); padding: .32rem .7rem; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.lang__btn.is-active { background: var(--ink); color: var(--white); }
.lang__btn:not(.is-active):hover { color: var(--ink); }
a.lang__btn { display: inline-flex; align-items: center; text-decoration: none; line-height: 1.4; }
.header__mobile .lang { align-self: flex-start; }

.header__burger { display: none; }
.header__mobile { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + 4.5rem);
  padding-bottom: 5.5rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  /* grain discret */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(26,24,23,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem;
  position: relative;
}

.hero__badges { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; margin-bottom: 1.6rem; }
.hero__badges li { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--grey); }
.hero__badges svg { width: 15px; height: 15px; stroke: var(--terracotta); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin-bottom: 1.4rem; }
.hero__subtitle { font-size: 1.13rem; color: var(--grey); max-width: 46ch; font-weight: 300; }

.hero__download-label { font-weight: 600; font-size: 1.05rem; margin-top: 2.2rem; }

.hero__stores { display: flex; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--ink); color: var(--white); text-decoration: none;
  padding: .65rem 1.3rem; border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(26,24,23,.5); }
.store-btn svg { width: 26px; height: 26px; fill: var(--white); }
.store-btn small { display: block; font-size: .64rem; font-weight: 300; opacity: .85; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.25; }

/* --- Mockup téléphone --- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__blob {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  width: 520px; height: 520px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 38% 32%, var(--blush), color-mix(in srgb, var(--terracotta-light) 34%, var(--cream)) 58%, transparent 72%);
  filter: blur(2px);
  animation: blob-drift 9s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.06) rotate(4deg); }
}

.phone {
  position: relative; z-index: 1;
  width: 315px; border-radius: 46px; background: var(--ink);
  padding: 12px; box-shadow: 0 40px 90px -30px rgba(26,24,23,.45);
  animation: phone-float 6s ease-in-out infinite alternate;
}
@keyframes phone-float { from { translate: 0 -6px; } to { translate: 0 8px; } }

.phone__notch {
  position: absolute; top: 12px; left: 50%; translate: -50%;
  width: 42%; height: 26px; background: var(--ink); border-radius: 0 0 18px 18px; z-index: 3;
}
.phone__screen {
  background: var(--cream); border-radius: 36px; overflow: hidden;
  position: relative; aspect-ratio: 471 / 1024;
}
.phone__shot {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}

/* ==========================================================================
   Membres Fondateurs
   ========================================================================== */
.founders {
  background: linear-gradient(175deg, var(--blush) 0%, #FDF3F0 55%, var(--cream) 100%);
  padding: 6.5rem 0 5.5rem;
  position: relative; overflow: hidden;
}
.founders::before {
  content: ""; position: absolute; top: -140px; right: -140px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid color-mix(in srgb, var(--terracotta-light) 18%, transparent);
}
.founders__head { text-align: center; max-width: 760px; margin-inline: auto; position: relative; }
.founders__trophy {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--terracotta); box-shadow: var(--shadow-card); margin-bottom: 1.4rem;
}
.founders__trophy svg { width: 30px; height: 30px; fill: var(--white); }
.founders__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1.2rem; }
.founders__lede { color: var(--grey); font-size: 1.02rem; }

.founders__perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
  margin: 3.2rem 0 3.4rem;
}
.perk {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-soft); transition: transform .3s ease;
}
.perk:hover { transform: translateY(-6px); }
.perk__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--blush); margin-bottom: 1rem;
}
.perk__icon svg { width: 23px; height: 23px; fill: none; stroke: var(--terracotta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perk h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: .5rem; }
.perk p { font-size: .88rem; color: var(--grey); line-height: 1.55; }

.founders__progress { text-align: center; max-width: 620px; margin-inline: auto; }
.progress { margin-bottom: 1.8rem; }
.progress__track {
  height: 14px; border-radius: 999px; background: var(--white);
  box-shadow: inset 0 2px 6px rgba(26,24,23,.08); overflow: hidden;
}
.progress__fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta-light), var(--terracotta));
  transition: width 1.6s cubic-bezier(.22, 1, .36, 1);
}
.progress__fill.is-filled { width: var(--target); }
.progress__label { margin-top: .8rem; font-size: .95rem; color: var(--grey); }
.progress__label strong { color: var(--terracotta); }
.founders__how { margin-top: 1.6rem; font-size: .88rem; color: var(--grey); max-width: 52ch; margin-inline: auto; }

/* ==========================================================================
   Comment ça marche
   ========================================================================== */
.how { padding: 6.5rem 0; }
.how .section-title { margin-bottom: 3.2rem; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.step { position: relative; padding: 2.4rem 1.9rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.step__num {
  position: absolute; top: -1.4rem; inset-inline-end: 1.4rem;
  font-family: var(--serif); font-style: italic; font-size: 4.4rem; line-height: 1;
  color: color-mix(in srgb, var(--terracotta) 16%, transparent);
}
.step__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--blush); margin-bottom: 1.2rem;
}
.step__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--terracotta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: .6rem; }
.step p { font-size: .92rem; color: var(--grey); }

/* ==========================================================================
   Engagements
   ========================================================================== */
.trust { padding: 6rem 0 6.5rem; background: var(--ink); color: var(--cream); }
.trust .section-title { color: var(--cream); margin-bottom: 3.2rem; }
.trust .section-title em { color: var(--terracotta-light); }
.eyebrow--light { color: var(--terracotta-light); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.trust-card {
  padding: 2.2rem 1.9rem; border-radius: var(--radius);
  background: rgba(250, 249, 247, .045); border: 1px solid rgba(250, 249, 247, .1);
  transition: border-color .3s ease, background .3s ease;
}
.trust-card:hover { border-color: var(--terracotta-light); background: rgba(250,249,247,.07); }
.trust-card__icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--terracotta); margin-bottom: 1.2rem;
}
.trust-card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .6rem; }
.trust-card p { font-size: .9rem; color: rgba(250,249,247,.65); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #12100F; color: rgba(250,249,247,.7); padding: 4.5rem 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(250,249,247,.1);
}
.footer__brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: .92rem; max-width: 30ch; }
.footer__social { display: flex; gap: .8rem; margin-top: 1.4rem; }
.footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(250,249,247,.2); transition: all .25s ease;
}
.footer__social a:hover { background: var(--terracotta); border-color: var(--terracotta); }
.footer__social svg { width: 17px; height: 17px; fill: none; stroke: var(--cream); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.footer__col h4 {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta-light); margin-bottom: 1.1rem;
}
.footer__col a {
  display: block; color: rgba(250,249,247,.7); text-decoration: none;
  font-size: .92rem; margin-bottom: .7rem; transition: color .2s;
}
.footer__col a:hover { color: var(--cream); }

.footer__bottom { padding: 1.6rem 0; font-size: .82rem; color: rgba(250,249,247,.4); }

/* ==========================================================================
   Reveal au scroll
   ========================================================================== */
.reveal {
  opacity: 0; translate: 0 26px;
  transition: opacity .7s ease, translate .7s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .founders__perks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header__nav, .header__actions { display: none; }
  .header__burger {
    display: flex; flex-direction: column; gap: 5px; margin-inline-start: auto;
    background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .header__burger span { width: 24px; height: 2px; background: var(--ink); transition: all .3s; }
  .header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header__mobile {
    display: none; flex-direction: column; gap: 1.3rem;
    padding: 1.5rem 4% 2rem; background: var(--cream);
    border-top: 1px solid #EEE9E4;
  }
  .header__mobile.is-open { display: flex; }
  .header__mobile a { color: var(--ink); text-decoration: none; font-weight: 500; }
  .header__mobile .btn { justify-content: center; padding: .8rem; color: var(--white); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__badges, .hero__stores { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__visual { margin-top: 2.5rem; }

  .how__grid, .trust__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 480px) {
  .founders__perks { grid-template-columns: 1fr; }
  .phone { width: 280px; }
}
