/* ==========================================================================
   Starky — feuille de style de la landing page
   Palette reprise de l'app (app/src/main/res/values/colors.xml)
   ========================================================================== */

@font-face {
  font-family: "Starky Display";
  src: url("../fonts/starky-display.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --amber: #ffb341;
  --amber-dark: #e89422;
  --purple: #a147b3;
  --purple-dark: #8a3a9a;
  --cream: #f8dda5;
  --ink: #1e1b16;
  --ink-soft: #574f45;
  --ink-faint: #8a8279;
  --surface: #fffbff;
  --surface-alt: #fdf6ef;
  --line: #efe6dc;
  --white: #ffffff;

  --gradient: linear-gradient(135deg, var(--amber) 0%, var(--purple) 100%);
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 18px 40px -18px rgba(30, 27, 22, 0.28);
  --shadow-soft: 0 8px 24px -12px rgba(30, 27, 22, 0.2);
  --max: 1120px;
  /* Hauteur de .header__inner : les ancres s'y arrêtent dessous (voir
     scroll-padding-top), sinon l'en-tête collant recouvre la cible. */
  --header-h: 72px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Starky Display", var(--font-body);
}

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

html {
  scroll-behavior: smooth;
  /* L'en-tête est sticky : sans cette marge, un lien vers #telecharger amène
     les boutons stores pile derrière lui et ils semblent avoir disparu. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--surface-alt); }

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section__head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(161, 71, 179, 0.09);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

/* --- Lien d'évitement (accessibilité) ---------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* --- En-tête ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 34px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}

.nav a:hover { color: var(--purple); }

@media (max-width: 860px) { .nav { display: none; } }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header .socials { margin-top: 0; gap: 6px; }

.header .socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-faint);
}

.header .socials a:hover {
  background: rgba(161, 71, 179, 0.09);
  color: var(--purple);
}

@media (max-width: 620px) { .header .socials { display: none; } }

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--purple);
  color: var(--white);
}

.btn--primary:hover { background: var(--purple-dark); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}

.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--purple); }

/* --- Badges de téléchargement ------------------------------------------ */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stores--center { justify-content: center; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.store {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.store:hover { transform: translateY(-2px); }

.store svg { width: 26px; height: 26px; flex: none; }

.store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Les deux lignes du badge tiennent sur une seule ligne chacune : sans ça,
   « Télécharger dans l' » se coupe dans les colonnes étroites. */
.store__small,
.store__big { white-space: nowrap; }

.store__small { font-size: 0.7rem; opacity: 0.82; }
.store__big { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
}

.hero::before {
  width: 460px; height: 460px;
  background: var(--amber);
  top: -170px; left: -120px;
}

.hero::after {
  width: 520px; height: 520px;
  background: var(--purple);
  bottom: -240px; right: -140px;
  opacity: 0.28;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 28px;
}

.hero__note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

/* --- Maquette téléphone ------------------------------------------------- */
.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  background: #14110f;
  border-radius: 42px;
  padding: 11px;
  box-shadow: 0 30px 60px -22px rgba(30, 27, 22, 0.5);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #14110f;
  border-radius: 100px;
  z-index: 3;
}

.phone__screen {
  background: var(--surface);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  display: flex;
  flex-direction: column;
}

.phone__top {
  background: var(--gradient);
  color: var(--white);
  padding: 44px 18px 20px;
}

.phone__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
}

.phone__stars {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 4px 10px;
}

.phone__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 14px;
}

.phone__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: var(--surface-alt);
}

.raffle-card {
  background: var(--white);
  border-radius: 16px;
  padding: 11px 13px;
  box-shadow: 0 4px 14px -8px rgba(30, 27, 22, 0.35);
  display: flex;
  gap: 11px;
  align-items: center;
}

.raffle-card__thumb {
  width: 42px; height: 42px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.raffle-card__name { font-weight: 600; font-size: 0.8rem; }
.raffle-card__meta { font-size: 0.68rem; color: var(--ink-faint); }

.phone__cta {
  margin-top: auto;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px;
  border-radius: 100px;
}

/* --- Étapes ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--gradient);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.step p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* --- Grille de lots ----------------------------------------------------- */
.prizes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.prize {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.97rem;
  box-shadow: var(--shadow-soft);
}

.prizes__note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin-top: 28px;
}

/* --- Bloc en deux colonnes ---------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.split__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.reward-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.reward-row:last-child { border-bottom: 0; }

.reward-row__badge {
  font-family: var(--font-display);
  font-size: 1.35rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 92px;
}

.reward-row__label { color: var(--ink-soft); font-size: 0.98rem; }

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }

.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 12px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* --- Partenaires -------------------------------------------------------- */
.partner-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.partner-card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* --- Vitrine partenaires ------------------------------------------------
   Une carte par partenaire ayant réellement mis un lot en jeu. Le paragraphe
   .showcase__quote reste optionnel : il n'apparaît que sur les cartes des
   partenaires qui ont fourni un témoignage et autorisé sa publication. */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.showcase__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.showcase__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  background: var(--gradient);
}

/* La pastille d'initiales peut être remplacée telle quelle par une photo ou un
   logo fourni par le partenaire : même taille, même arrondi, cadrage géré. */
img.showcase__logo {
  object-fit: cover;
  background: var(--cream);
}

.showcase__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.showcase__kind {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.showcase__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.showcase__quote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.showcase__lot {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--purple);
  background: rgba(161, 71, 179, 0.09);
  border-radius: 100px;
  padding: 7px 15px;
}

.showcase__card--invite {
  background: transparent;
  border-style: dashed;
  border-color: var(--amber);
  justify-content: center;
  text-align: center;
  align-items: center;
}

.showcase__card--invite .showcase__logo { background: var(--cream); color: var(--ink); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.04rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--purple);
  line-height: 1;
  flex: none;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* --- Appel à l'action final --------------------------------------------- */
.cta {
  background: var(--gradient);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 76px) clamp(24px, 5vw, 64px);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta h2 { color: var(--white); }

.cta p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 34em;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}

.cta .store { background: var(--white); color: var(--ink); }

/* --- Pied de page ------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 32px;
  font-size: 0.95rem;
}

.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }

.footer .brand { color: var(--white); margin-bottom: 14px; }

.footer h3 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }

.socials { display: flex; gap: 12px; margin-top: 20px; }

.socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}

.socials a:hover { background: rgba(255, 255, 255, 0.2); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Préférences de mouvement ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .store:hover { transform: none; }
}
