/* Memoria Coloris — identité : aplats pastel + contour noir épais, comme la peinture d'accueil. */
:root {
  --ink: #000;
  --paper: #fff;
  --sky: #9fd3f5;
  --sun: #ffd84d;
  --petal: #f7a8c4;
  --leaf: #8fd16a;
  --muted: #3d3d3d;
  --line: 3px;
  --pop: 5px 5px 0 var(--ink);
  --radius: 14px;
  --display: "Grandstander", system-ui, sans-serif;
  --body: "Inclusive Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }

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

/* Panneau : la signature visuelle (contour noir + ombre franche). */
.panel {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: clamp(20px, 3vw, 32px);
}

.btn {
  display: inline-block;
  font: 700 1.15rem/1 var(--display);
  color: var(--ink);
  background: var(--sun);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn.secondary { background: var(--paper); font-size: 1rem; padding: 12px 20px; }

/* En-tête */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  padding: 16px 0;
}
.top .wrap { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font: 800 1.25rem/1 var(--display);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
}

/* Hero : la peinture en grand, le panneau de texte vient chevaucher son bas. */
.hero { padding: 0 0 clamp(40px, 6vw, 72px); }
.hero::before {
  content: ""; display: block;
  height: min(66.6vw, 78vh);
  background: var(--sky) url("/img/famille.webp") center 12% / cover no-repeat;
  border-bottom: var(--line) solid var(--ink);
}
.hero .panel { position: relative; max-width: 720px; margin-top: clamp(-150px, -11vw, -28px); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.hero p { font-size: 1.15rem; color: var(--muted); }
.hero .small { font-size: .95rem; margin: 14px 0 0; }

@media (max-width: 720px) {
  .top { position: static; background: var(--sky); border-bottom: var(--line) solid var(--ink); }
  .hero::before { height: auto; aspect-ratio: 3 / 2; background-image: url("/img/famille-768.webp"); background-position: center; }
}

section { padding: clamp(56px, 8vw, 96px) 0; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 34px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: -10px; left: 20px;
  width: 52px; height: 52px; display: grid; place-items: center;
  font: 800 1.6rem/1 var(--display);
  border: var(--line) solid var(--ink); border-radius: 50%;
}
.steps li:nth-child(1)::before { background: var(--petal); }
.steps li:nth-child(2)::before { background: var(--leaf); }
.steps li:nth-child(3)::before { background: var(--sun); }
.steps .panel { height: 100%; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* Bloc confidentialité */
.privacy { background: var(--sky); border-block: var(--line) solid var(--ink); }
.privacy .panel { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.privacy svg { width: 72px; height: 72px; }
@media (max-width: 600px) { .privacy .panel { grid-template-columns: 1fr; } }

/* Questions */
.faq details { border-bottom: var(--line) solid var(--ink); padding: 18px 0; }
.faq details:first-of-type { border-top: var(--line) solid var(--ink); }
.faq summary { font: 700 1.2rem/1.3 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.final { text-align: center; }
.demo { margin: 0 auto clamp(56px, 9vw, 96px); max-width: 860px; }
.sheet {
  position: relative;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--pop);
  transform: rotate(-1.2deg);
}
.sheet img { width: 100%; height: auto; border-radius: 4px; }
.crayon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scribble { mix-blend-mode: multiply; }
.final p { margin-inline: auto; }

footer { border-top: var(--line) solid var(--ink); padding: 24px 0; font-size: .95rem; color: var(--muted); }

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

/* ===== Accueil : plein écran, sans défilement =====
   Grand écran : UNE seule scène qui remplit l'écran ; la moitié haute est peinte, la moitié basse en coloriage.
   Mobile : les deux images entières, empilées, puis le texte. */
.home { background: var(--paper); }
.stage { position: relative; height: 100svh; display: grid; grid-template-rows: 60fr 40fr; }
.half { position: relative; overflow: hidden; min-height: 0; }
.half.paint { background: var(--sky); }
.half.lines { border-top: 4px solid var(--ink); }
.frame { position: absolute; aspect-ratio: 3 / 2; }
.frame img { width: 100%; height: 100%; display: block; }
.crayon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scribble { mix-blend-mode: multiply; }
.hand { transform: rotate(38deg) scale(var(--hand, 1.25)); }

/* Grand écran : la même image, cadrée sur tout l'écran, découpée en deux moitiés parfaitement alignées. */
.stage {
  --fw: max(100vw, 150svh);           /* largeur de l'image « cover » plein écran */
  --fh: max(66.667vw, 100svh);        /* hauteur correspondante (ratio 3:2) */
  --fx: calc((100vw - var(--fw)) / 2);
  --fy: calc((100svh - var(--fh)) * 0.4);
}
.frame { width: var(--fw); left: var(--fx); top: var(--fy); }
.lines .frame { top: calc(var(--fy) - 60svh); margin-top: -4px; }

.pitch {
  position: absolute; z-index: 2;
  left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 4svh, 40px);
  width: min(380px, 30vw);
  padding: clamp(18px, 2.4vw, 28px);
}
.pitch .logo { display: inline-block; margin-bottom: 14px; font-size: 1rem; padding: 6px 14px; }
.pitch h1 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.pitch p { font-size: 1rem; }
.pitch .small { font-size: .85rem; margin: 12px 0 0; color: var(--muted); }

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .stage { display: flex; flex-direction: column; }
  .half { flex: 1 1 0; container-type: size; }
  .half.paint { flex-grow: 3; }
  .half.lines { flex-grow: 2; }
  .half.lines { border-top-width: 3px; }
  .frame, .lines .frame {
    width: max(100cqw, 150cqh); left: 50%; top: 50%; margin-top: 0;
    transform: translate(-50%, -50%);
  }
  .hand { --hand: 2.4; }
  .pitch {
    position: static; width: auto;
    border-width: var(--line) 0 0; border-radius: 0; box-shadow: none;
    padding: 14px 16px 16px;
  }
  .pitch .logo { margin-bottom: 8px; font-size: .95rem; }
  .pitch h1 { font-size: clamp(1.4rem, 6vw, 2rem); margin-bottom: .25em; }
  .pitch p { font-size: .92rem; line-height: 1.4; margin-bottom: .6em; }
  .pitch .btn { padding: 12px 20px; font-size: 1rem; }
  .pitch .small { margin-top: 8px; font-size: .8rem; }
}
