/* Domoplay — feuille de style unique, sans dépendance extérieure. */

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #efeae1;
  --ink: #14202e;
  --muted: #59636f;
  --line: #e2dbcf;
  --accent: #c2552d;
  --accent-strong: #a8461f;
  --accent-soft: #f6e4d9;
  --on-accent: #ffffff;
  --hero-card: #14202e;
  --hero-card-ink: #f3f0ea;
  --hero-card-muted: #a9b4c0;
  --shadow: 0 1px 2px rgb(20 32 46 / 6%), 0 12px 32px -12px rgb(20 32 46 / 18%);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --surface: #151e28;
    --surface-2: #111a23;
    --ink: #eef1f4;
    --muted: #9ca8b5;
    --line: #243140;
    --accent: #e57a50;
    --accent-strong: #f08d66;
    --accent-soft: #2c1d16;
    --on-accent: #14100d;
    --hero-card: #1a2532;
    --hero-card-ink: #eef1f4;
    --hero-card-muted: #9ca8b5;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

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

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.mark-bg {
  fill: var(--ink);
}

.mark-roof {
  stroke: var(--accent);
}

.mark-play {
  fill: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
}

.nav a:not(.btn):hover {
  color: var(--ink);
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-strong);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn-large {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.15rem;
}

/* Accueil */

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 24px;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 36em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-card {
  background: var(--hero-card);
  color: var(--hero-card-ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(229 122 80 / 55%), transparent 70%);
  pointer-events: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.facts dt {
  font-size: 0.78rem;
  color: var(--hero-card-muted);
  letter-spacing: 0.04em;
}

.facts dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 18%);
  font-size: 0.9rem;
}

.hero-card p {
  color: var(--hero-card-muted);
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

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

.section-head h2,
.split h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-wrap: balance;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.45rem;
}

.card-tag {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card-pitch {
  margin-top: 16px;
  color: var(--ink);
}

.card ul {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

.card li {
  position: relative;
  padding-left: 22px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Méthode */

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

.steps li {
  counter-increment: etape;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: "0" counter(etape);
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

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

/* Applications */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.app-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.app-card img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 10px 24px -10px rgb(194 85 45 / 60%);
}

.app-card h3 {
  font-size: 1.5rem;
}

.app-card p {
  margin-top: 8px;
  color: var(--muted);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 20px !important;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

/* Contact */

.contact {
  background: var(--hero-card);
  color: var(--hero-card-ink);
  text-align: center;
}

.contact h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  text-wrap: balance;
}

.contact p {
  color: var(--hero-card-muted);
  max-width: 34em;
  margin: 18px auto 34px;
  font-size: 1.1rem;
}

.contact .address {
  margin: 30px auto 0;
  font-size: 0.92rem;
}

/* Pied de page */

.site-footer {
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.site-footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

/* Pages de texte (mentions légales, 404) */

.page {
  padding: clamp(48px, 7vw, 88px) 0;
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  margin-bottom: 12px;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
}

.prose p,
.prose li {
  color: var(--muted);
}

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

.prose ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0;
}

.prose dt {
  font-weight: 600;
}

.prose dd {
  margin: 0;
  color: var(--muted);
}

.prose a {
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Écrans étroits */

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-card img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .prose dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .prose dd {
    margin-bottom: 10px;
  }

  .btn-large {
    font-size: 1rem;
    padding: 0 22px;
  }
}
