/* Binome — site de présentation.
   Identité reprise de l'application : rose grenadine pour l'accent, navy
   immersif et blush pour les fonds, écritures manuscrites pour les cartes. */

:root {
  --primary: #ff3b5c;
  --primary-deep: #e0294a;
  --lavender: #7c6bff;
  --peach: #ffb199;
  --navy: #14102b;
  --navy-deep: #0c0a1c;
  --navy-surface: #211a3d;
  --blush: #fff1ec;
  --white: #ffffff;
  --ink: #241733;
  --ink-muted: #5d4f6b;
  --on-navy: #fdf6ff;
  --on-navy-muted: #c9bfd6;
  --radius: 20px;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blush);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: 'Poppins', 'Nunito', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.on-navy .eyebrow {
  color: var(--peach);
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 16, 43, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(253, 246, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--on-navy);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--on-navy-muted);
  transition: color 0.15s;
}

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

.nav a.btn {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--white);
  transition: background 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
}

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

/* ---------- Héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-navy);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255, 59, 92, 0.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(124, 107, 255, 0.22), transparent 60%),
    var(--navy);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(48px, 8vw, 96px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero .lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--on-navy-muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(253, 246, 255, 0.28);
  background: rgba(253, 246, 255, 0.06);
  color: var(--on-navy);
  text-decoration: none;
  line-height: 1.2;
}

.store small {
  font-size: 0.72rem;
  color: var(--on-navy-muted);
}

.store strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
}

.store[aria-disabled='true'] {
  cursor: default;
}

.hero .note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--on-navy-muted);
}

.hero-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Téléphones ---------- */

.phone {
  position: relative;
  width: min(260px, 62vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  padding: 9px;
  background: #06050f;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(253, 246, 255, 0.14);
}

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--navy-surface);
}

.phone .screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone .screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.phone .pill {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: #fff;
}

.phone .pill svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}

.phone .caption {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  bottom: 8%;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.phone.hb .caption {
  top: 12%;
  bottom: auto;
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  line-height: 1.15;
}

.hero-stage .phone:first-child {
  transform: rotate(-4deg) translateX(-14%);
  z-index: 1;
}

.hero-stage .phone:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(220px, 52vw);
  transform: rotate(5deg);
  z-index: 2;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    min-height: 480px;
  }
  .hero-stage .phone:first-child {
    transform: rotate(-4deg) translateX(-18%);
  }
}

/* ---------- Sections ---------- */

section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-head {
  max-width: 40em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 10px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.on-navy {
  background: var(--navy);
  color: var(--on-navy);
}

.on-navy .section-head p {
  color: var(--on-navy-muted);
}

/* Fonctionnalités */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 59, 92, 0.12);
  color: var(--primary-deep);
  margin-bottom: 18px;
}

.feature svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Galerie de poèmes */

.poems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.poem-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy-surface);
}

.poem-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poem-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.6));
}

.poem-tile span {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Jeux */

.games-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.game-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-list li {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--navy-surface);
  border: 1px solid rgba(253, 246, 255, 0.1);
  font-size: 0.95rem;
}

.modes {
  display: grid;
  gap: 14px;
}

.mode {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--navy-surface);
  border: 1px solid rgba(253, 246, 255, 0.1);
}

.mode h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.mode p {
  color: var(--on-navy-muted);
  font-size: 0.97rem;
}

@media (max-width: 860px) {
  .games-layout {
    grid-template-columns: 1fr;
  }
}

/* Étapes */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.steps p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

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

/* Confiance */

.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.trust div {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--navy-surface);
  border: 1px solid rgba(253, 246, 255, 0.1);
}

.trust h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust p {
  color: var(--on-navy-muted);
  font-size: 0.97rem;
}

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

/* FAQ */

.faq {
  max-width: 46em;
}

.faq details {
  border-bottom: 1px solid rgba(36, 23, 51, 0.14);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  color: var(--primary-deep);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin-top: 10px;
  color: var(--ink-muted);
}

/* Appel final */

.cta {
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(255, 59, 92, 0.3), transparent 65%),
    var(--navy);
  color: var(--on-navy);
}

.cta h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.cta p {
  margin: 14px auto 0;
  max-width: 32em;
  color: var(--on-navy-muted);
}

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

/* Pied de page */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  padding-block: 40px;
  font-size: 0.93rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-navy);
  text-decoration: underline;
}

/* ---------- Pages légales ---------- */

.legal {
  background: var(--blush);
}

.legal .wrap {
  max-width: 780px;
  padding-block: clamp(40px, 6vw, 80px);
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 36px 0 10px;
}

.legal p,
.legal li {
  color: #3a2c48;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 1.2em;
  margin: 10px 0 0;
}

.legal li + li {
  margin-top: 6px;
}

.legal .todo {
  background: #fff3a8;
  color: #4a3b00;
  padding: 0 4px;
  border-radius: 4px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
