/* Police Geist hébergée ici (licence OFL : fonts/OFL.txt) : aucun appel à un service tiers comme Google Fonts. */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* Couleurs de la marque Qova (brand/README.md du repo de l'app). */
:root {
  --prune: #4e1f45;
  --prune-deep: #3a1534;
  --corail: #ff7a59;
  --corail-deep: #c4492a;
  --creme: #f7f2eb;
  --ink: #23121f;
  --muted: #6b5a66;
  --card: #ffffff;
  --border: #e8ddd3;
  --radius: 20px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--corail-deep);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* En-tête */
.top {
  background: var(--prune);
  color: var(--creme);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--creme);
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links a {
  color: var(--creme);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Accueil */
.hero {
  padding-top: 48px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

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

.hero p {
  margin: 0 0 32px;
  font-size: 19px;
  color: #e9dde4;
  max-width: 34em;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  padding: 12px 24px;
  border-radius: 18px;
  line-height: 1.35;
  background: var(--corail);
  color: var(--prune-deep);
  font-weight: 600;
}

.badge small {
  font-weight: 500;
  opacity: 0.8;
}

.hero-logo {
  justify-self: center;
  width: min(100%, 340px);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

/* Sections */
section {
  padding: 72px 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lead {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 40em;
}

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

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

.card h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.dot {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--prune);
  color: var(--corail);
}

.dot svg {
  width: 22px;
  height: 22px;
}

.steps {
  background: var(--prune);
  color: var(--creme);
  border-radius: 28px;
  padding: 48px;
}

.steps .lead {
  color: #e9dde4;
}

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

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--corail);
  color: var(--prune-deep);
  font-weight: 700;
}

.steps strong {
  display: block;
  font-size: 19px;
  margin-bottom: 4px;
}

.steps span {
  color: #e9dde4;
  font-size: 16px;
}

/* Pages de texte (support, légal) */
.page {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.page h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.contact {
  margin: 32px 0 48px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 6px solid var(--corail);
  border-radius: var(--radius);
}

.contact p {
  margin: 0;
}

.contact a {
  font-weight: 600;
  font-size: 19px;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 24px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style-position: outside;
}

details[open] summary {
  border-bottom: 1px solid var(--border);
}

details p {
  margin: 16px 0;
  color: var(--muted);
}

/* Pied de page */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: var(--muted);
}

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .hero-logo {
    grid-row: 1;
    width: 160px;
    justify-self: start;
  }

  .grid,
  .steps ol {
    grid-template-columns: 1fr;
  }

  .steps {
    padding: 32px 24px;
  }

  section {
    padding: 56px 0;
  }
}
