/* ============================================================
   Daemon Industries — style du site
   Minimaliste, façon Apple. Toute la page suit le thème du système
   (clair ou sombre) : chaque couleur est un jeton redéfini plus bas.
   ============================================================ */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #f5f5f7;
  --card-on-alt: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;

  --eyebrow: #bf4800;
  --warm: #bf4800;
  --link: #0071e3;
  --btn-bg: #0071e3;
  --btn-bg-hover: #0077ed;
  --btn-ink: #ffffff;

  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-line: rgba(0, 0, 0, 0.08);

  --promise-bg: #1d1d1f;
  --promise-ink: #ffffff;
  --promise-sub: #d2d2d7;
  --promise-eyebrow: #f5a86b;

  --ring: #0071e3;
  --ring-alpha: 0.7;
  --ring-blend: source-over;
  --halo: 0 30px 60px -20px rgba(0, 0, 0, 0.25);

  --todo-bg: #fff4e5;

  --radius: 18px;
  --radius-s: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0f0f10;
    --card: #1c1c1e;
    --card-on-alt: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: #38383a;

    --eyebrow: #3fd0c9;
    --warm: #ff9f0a;
    --link: #3fd0c9;
    --btn-bg: #f5f5f7;
    --btn-bg-hover: #ffffff;
    --btn-ink: #000000;

    --nav-bg: rgba(0, 0, 0, 0.72);
    --nav-line: rgba(255, 255, 255, 0.1);

    --promise-bg: #1c1c1e;
    --promise-ink: #f5f5f7;
    --promise-sub: #a1a1a6;
    --promise-eyebrow: #3fd0c9;

    --ring: #3fd0c9;
    --ring-alpha: 0.95;
    --ring-blend: lighter;
    --halo: 0 0 80px -10px rgba(63, 208, 201, 0.35);

    --todo-bg: #3a2a12;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ---- navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
}

.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 52px; }
.brand { font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand, .nav .btn-small { white-space: nowrap; }
@media (max-width: 24rem) { .brand { font-size: 16px; } .nav .btn-small { font-size: 13px; padding: 0.4rem 0.75rem; } }
@media (max-width: 22rem) { .brand { font-size: 15px; } .nav .btn-small { font-size: 12px; padding: 0.4rem 0.6rem; } }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--ink); }
@media (max-width: 34rem) { .nav-links .hide-s { display: none; } }

/* ---- boutons ---- */

.btn {
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  border: 0;
  border-radius: 980px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-small { font-size: 14px; padding: 0.45rem 1rem; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.link-more { font-size: 17px; }
.link-more::after { content: " ›"; }

/* ---- sections ---- */

section { padding: clamp(4rem, 10vw, 7rem) 0; }
.alt { background: var(--bg-alt); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--eyebrow); margin-bottom: 0.75rem; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }

.lede { font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--ink-2); line-height: 1.35; margin-top: 1.25rem; max-width: 34ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-2); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.center .cta-row { justify-content: center; }

/* ---- héros : texte à gauche, portrait et anneau à droite ---- */

.hero {
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 30ch; font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.38; }
.hero .small { margin-top: 0.9rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero .visual { order: -1; max-width: 420px; }
}

.visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; box-shadow: var(--halo); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }


/* ---- bandeau défilant (sous le héros) ---- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0 1.5rem; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::before { content: "✓"; color: var(--link); font-weight: 600; }

@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---- la phrase qui s'allume mot à mot au défilement ---- */

.reveal { padding: clamp(5rem, 14vw, 10rem) 0; }
.reveal-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.reveal-text em { font-style: normal; color: var(--warm); }
.reveal-text .w { opacity: 0.16; transition: opacity 0.35s ease, color 0.35s ease; }
.reveal-text .w.on { opacity: 1; }
.reveal-text .w.warm.on { color: var(--warm); }
.no-js .reveal-text .w, .reveal-static .reveal-text .w { opacity: 1; }

/* ---- les tâches en lignes, avec flèche ---- */

.rows { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.rows h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); letter-spacing: -0.025em; }
.rows p { color: var(--ink-2); font-size: 15px; margin-top: 0.35rem; max-width: 46ch; }
.rows .arrow { font-size: 30px; line-height: 1; color: var(--ink-3); transition: transform 0.2s ease, color 0.2s ease; }
.rows a:hover { text-decoration: none; }
.rows a:hover .arrow, .rows a:focus-visible .arrow { color: var(--link); transform: translate(4px, -4px); }
.rows a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }

/* ---- rendu différé des sections sous la ligne de flottaison ---- */

main > section:not(:first-child) { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ---- douleurs ---- */

.pains { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.pains li { font-size: 21px; line-height: 1.35; letter-spacing: -0.015em; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.pains li:last-child { border-bottom: 0; }
.punch { font-family: var(--font-display); font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-top: 3rem; }
.punch span { color: var(--warm); }

/* ---- cartes ---- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 52rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.alt .card { background: var(--card-on-alt); }
.card p { color: var(--ink-2); font-size: 15px; }

/* ---- étapes ---- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.alt .step { background: var(--card-on-alt); }
.step .when { font-size: 14px; font-weight: 600; color: var(--link); }
.step p { color: var(--ink-2); font-size: 15px; }
.after { margin-top: 1.5rem; color: var(--ink-2); }

.work-photo { margin: 3rem auto 0; max-width: 780px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ---- contrôle ---- */

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
@media (max-width: 52rem) { .cols { grid-template-columns: 1fr; gap: 1.5rem; } }
.cols h3 { margin-bottom: 0.5rem; }
.cols p { color: var(--ink-2); }

/* ---- garantie ---- */

.promise {
  background: var(--promise-bg);
  color: var(--promise-ink);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
}

.promise .eyebrow { color: var(--promise-eyebrow); }
.promise h2 { color: var(--promise-ink); }
.promise p { color: var(--promise-sub); font-size: 19px; margin-top: 1rem; max-width: 40ch; margin-left: auto; margin-right: auto; }

/* ---- prix ---- */

.price { background: var(--card-on-alt); border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3rem); margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 52rem) { .price { grid-template-columns: 1fr; } }
.amount { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.amount small { font-size: 0.35em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.seats { display: inline-block; margin-top: 0.75rem; font-size: 14px; font-weight: 600; color: var(--warm); }
.includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.includes li { padding-left: 1.6rem; position: relative; }
.includes li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 600; }
.price-notes { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; font-size: 15px; color: var(--ink-2); }

/* ---- qui je suis ---- */

.me { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; margin-top: 2.5rem; }
@media (max-width: 34rem) { .me { grid-template-columns: 1fr; } }
.me-photo { width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--halo); }
.me-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 34rem) { .me-photo { width: 140px; } }
.me p + p { margin-top: 1rem; }
.me-links { display: flex; gap: 1.5rem; font-size: 15px; font-weight: 500; }
.me-links a::after { content: " ↗"; }

/* ---- questions ---- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2rem 1.25rem 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1.1rem; font-size: 24px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.25rem; color: var(--ink-2); }

/* ---- rendez-vous ---- */

.booking { padding-top: clamp(3rem, 7vw, 5rem); }
.booking-head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.booking-head .me-photo { width: 96px; }
@media (max-width: 34rem) { .booking-head { grid-template-columns: 1fr; } }
.booking .ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.booking .ticks li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.booking .ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 600; }
.calendly-box { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; background: var(--card); min-height: 700px; }
.calendly-box { position: relative; }
.calendly-box iframe { display: block; width: 100%; min-width: 320px; height: 700px; border: 0; }
.cal-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; color: var(--ink-2); font-size: 15px; }
.cal-loading::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--link); animation: spin 0.8s linear infinite; }
.cal-loaded .cal-loading { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.calendly-fallback { padding: 1.5rem; color: var(--ink-2); }

/* ---- pied de page ---- */

.foot { padding: 2.5rem 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot a { color: var(--ink-2); }

/* ---- pages légales ---- */

.legal { padding: clamp(3rem, 8vw, 5rem) 0; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal h2 { font-size: 21px; margin-top: 2.5rem; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); margin-top: 0.75rem; }
.legal ul { padding-left: 1.2rem; }
.todo { background: var(--todo-bg); color: var(--warm); padding: 0 0.3em; border-radius: 4px; }
