/* Les Pinceaux de Kim — landing de l'application Tutoriels.
   Tokens repris de DESIGN.md (app) et du thème du site lespinceauxdekim.fr. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
  --forest: #22342f;
  --forest-deep: #182622;
  --sand: #f1dbac;
  --ink: #2b2a28;
  --meta: #5c5648;
  --paper: #fbf8f2;
  --linen: #efe6d3;
  --cream: #f6ecd4;
  --white: #ffffff;
  --copper: #bc6c23;
  --copper-deep: #a35c1b;
  --olive: #47472d;
  --border: rgba(43, 42, 40, 0.12);
  --border-strong: rgba(43, 42, 40, 0.3);
  --shadow-card: 0 1px 2px rgba(43, 42, 40, 0.06), 0 12px 32px -16px rgba(34, 52, 47, 0.25);
  --shadow-phone: 0 40px 80px -30px rgba(34, 52, 47, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 220ms;
  --t-slow: 800ms;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

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

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 34rem;
}

.meta {
  color: var(--meta);
  font-size: 1rem;
  line-height: 1.4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--olive);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--forest);
  color: var(--sand);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--t-fast) ease,
    color var(--t-fast) ease,
    box-shadow var(--t-fast) ease,
    transform var(--t-fast) ease;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

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

.btn-primary {
  background: var(--copper);
  color: var(--cream);
  box-shadow: 0 6px 22px rgba(188, 108, 35, 0.32);
}

.btn-primary:hover {
  background: var(--copper-deep);
  color: var(--cream);
  box-shadow: 0 8px 26px rgba(188, 108, 35, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: var(--sand);
}

.btn-light {
  background: var(--sand);
  color: var(--forest);
}

.btn-light:hover {
  background: var(--cream);
  color: var(--forest);
}

.btn-small {
  min-height: 48px;
  padding: 0 22px;
  font-size: 1.0625rem;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -20px rgba(34, 52, 47, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--forest);
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-sep {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
}

.brand-app {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--forest);
}

.site-nav {
  display: none;
  margin-left: auto;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--forest);
  padding: 8px 0;
}

.site-nav a:hover {
  text-decoration: underline;
}

.header-cta {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .brand-sep,
  .brand-app {
    display: none;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .header-cta {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}

.wash {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
}

.wash span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}

.wash .w1 {
  width: 56vw;
  height: 56vw;
  min-width: 420px;
  min-height: 420px;
  right: -8%;
  top: 6%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(241, 219, 172, 0.85) 0%,
    rgba(241, 219, 172, 0.45) 35%,
    rgba(241, 219, 172, 0) 68%
  );
  animation: drift-a 26s ease-in-out infinite alternate;
}

.wash .w2 {
  width: 38vw;
  height: 38vw;
  min-width: 300px;
  min-height: 300px;
  left: -6%;
  bottom: -4%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(188, 108, 35, 0.22) 0%,
    rgba(188, 108, 35, 0.1) 40%,
    rgba(188, 108, 35, 0) 70%
  );
  animation: drift-b 32s ease-in-out infinite alternate;
}

.wash .w3 {
  width: 30vw;
  height: 30vw;
  min-width: 260px;
  min-height: 260px;
  left: 30%;
  top: -10%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(34, 52, 47, 0.12) 0%,
    rgba(34, 52, 47, 0.05) 40%,
    rgba(34, 52, 47, 0) 70%
  );
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-6%, 8%) scale(1.12);
  }
}
@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(10%, -10%) scale(1.08);
  }
}
@keyframes drift-c {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-12%, 14%);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-copy h1 .w {
  display: inline-block;
  animation: rise var(--t-slow) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--meta);
  font-size: 1rem;
}

.hero-notes li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-notes ul {
  margin: 0;
  padding: 0;
  display: contents;
}

.hero-notes svg {
  width: 18px;
  height: 18px;
  color: var(--copper);
  flex: none;
}

/* Visuel hero : téléphone + œuvres flottantes */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

@media (min-width: 900px) {
  .hero-visual {
    padding-block: 48px;
  }
}

.phone {
  position: relative;
  width: clamp(250px, 32vw, 310px);
  aspect-ratio: 390 / 844;
  background: #141414;
  border-radius: 48px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  animation:
    phone-in 1.1s var(--ease) both,
    float 7s ease-in-out 1.1s infinite;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 96px;
  height: 28px;
  transform: translateX(-50%);
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 2;
}

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

.phone-screen video,
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-3deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  width: clamp(210px, 18vw, 250px);
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  animation: card-in 1.2s var(--ease) both;
  will-change: transform;
}

.float-card img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
}

.float-card figcaption {
  padding: 0;
  font-size: 0.9rem;
  color: var(--meta);
  line-height: 1.3;
}

.float-card.fc1 {
  left: 0;
  top: 0;
  animation-delay: 0.3s;
  --dir: 1;
}

.float-card.fc2 {
  right: 0;
  bottom: 0;
  animation-delay: 0.5s;
  --dir: -1;
}

@media (max-width: 899.98px) {
  .float-card {
    display: none;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .hero-visual {
    min-height: 0;
    padding-block: 12px 24px;
  }
}

/* Sections */
.section {
  padding-block: var(--section);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head .lead {
  max-width: none;
}

.section-linen {
  background: var(--linen);
}

.section-white {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-forest {
  background: var(--forest);
  color: var(--sand);
}

.section-forest h2,
.section-forest h3 {
  color: var(--sand);
}

.section-forest .meta {
  color: rgba(241, 219, 172, 0.78);
}

.section-forest a {
  color: var(--sand);
}

/* Trois raisons */
.reasons {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .reasons {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reason {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.reason .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--forest);
}

.reason svg {
  width: 28px;
  height: 28px;
}

/* Étapes avec captures */
.steps {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
}

.step {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 860px) {
  .step {
    grid-template-columns: 1fr 1fr;
  }
  .step:nth-child(even) .step-visual {
    order: -1;
  }
}

.step-copy {
  display: grid;
  gap: 16px;
  max-width: 32rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--copper);
  font-weight: 600;
}

.step-visual {
  display: grid;
  place-items: center;
}

.shot {
  width: clamp(240px, 28vw, 300px);
  aspect-ratio: 390 / 844;
  border-radius: 44px;
  background: #141414;
  padding: 9px;
  box-shadow: var(--shadow-phone);
  position: relative;
}

.shot::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 88px;
  height: 26px;
  transform: translateX(-50%);
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 2;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  background: var(--paper);
}

.shot-wide {
  width: min(100%, 560px);
  aspect-ratio: 844 / 390;
  border-radius: 36px;
  background: #141414;
  padding: 9px;
  box-shadow: var(--shadow-phone);
}

.shot-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--paper);
}

/* Galerie défilante */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-inline: 10px;
}

.marquee.is-static {
  overflow-x: auto;
  -webkit-mask-image: none;
  mask-image: none;
  scroll-snap-type: x proximity;
  padding-bottom: 16px;
}

.marquee.is-static .marquee-track {
  padding-inline: var(--gutter);
}

.marquee.is-animated .marquee-track {
  animation: marquee 75s linear infinite;
}

.marquee.is-animated:hover .marquee-track,
.marquee.is-animated:focus-within .marquee-track {
  animation-play-state: paused;
}

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

.art-card {
  width: clamp(240px, 26vw, 320px);
  flex: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 10px;
  scroll-snap-align: start;
  transition:
    transform var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.art-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--linen);
}

.art-card figcaption {
  padding: 12px 6px 6px;
  display: grid;
  gap: 4px;
}

.art-card .title {
  font-weight: 600;
  line-height: 1.25;
}

.gallery-foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

/* Avis de Kim */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.split-copy {
  display: grid;
  gap: 18px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--copper);
  margin-top: 2px;
}

.frame-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.frame-art img {
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.frame-art figcaption {
  padding: 12px 6px 4px;
  color: var(--meta);
  font-size: 1rem;
}

/* Confort */
.comfort-split {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 960px) {
  .comfort-split {
    grid-template-columns: 1fr auto;
  }
}

.comfort {
  display: grid;
  gap: 20px;
}

@media (min-width: 620px) {
  .comfort {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comfort-visual {
  display: grid;
  place-items: center;
}

.comfort-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.comfort-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--sand);
  display: grid;
  place-items: center;
}

.comfort-card svg {
  width: 26px;
  height: 26px;
}

.section-forest .checklist svg {
  color: var(--sand);
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 52rem;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0 24px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--forest);
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--copper);
  flex: none;
  transition: transform var(--t-fast) ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 22px;
  display: grid;
  gap: 10px;
  max-width: 44rem;
}

.faq ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

/* Bandeau final */
.final {
  text-align: center;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.final .lead {
  color: rgba(241, 219, 172, 0.9);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.final .btn-secondary {
  color: var(--sand);
  border-color: var(--sand);
}

.final .btn-secondary:hover {
  background: var(--sand);
  color: var(--forest);
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer-brand img {
  height: 64px;
  width: auto;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--meta);
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  font-weight: 600;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--meta);
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Apparition au défilement (seulement si JS actif) */
/* Décalage d'apparition sans style inline (CSP). */
[data-d="1"] {
  --d: 1;
}

[data-d="2"] {
  --d: 2;
}

[data-d="3"] {
  --d: 3;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .wash span,
  .phone,
  .float-card,
  .hero-copy h1 .w,
  .marquee.is-animated .marquee-track {
    animation: none;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .art-card,
  .btn {
    transition: none;
  }
}

@media print {
  .site-header,
  .wash {
    display: none;
  }
}
