/* ============================================
   LÉA — Atelier de broderie & création textile
   Aesthetic: soft luxury, handcrafted, editorial
   ============================================ */

:root {
  --cream:        #F8F2E8;
  --cream-warm:   #F2EAD6;
  --paper:        #FFFCF6;
  --ink:          #2A2522;
  --ink-soft:     #5A4F47;
  --rose:         #C97B8B;      /* dusty rose accent */
  --rose-deep:    #9D5867;
  --sage:         #8FA88A;      /* sage green */
  --sage-deep:    #5F7558;
  --gold:         #B89460;      /* soft gold for emphasis */
  --shadow:       0 10px 40px -20px rgba(60, 40, 35, 0.25);

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Outfit", -apple-system, "Segoe UI", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --container: 1240px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* subtle paper texture via SVG noise */
  background-image:
    radial-gradient(at 20% 80%, rgba(201, 123, 139, 0.04) 0, transparent 50%),
    radial-gradient(at 80% 20%, rgba(143, 168, 138, 0.05) 0, transparent 50%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
}
h1.display { font-size: clamp(3rem, 8vw, 6.5rem); }
h2.display { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin: 0 0 0.4rem; line-height: 1.2; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--sage);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 540px;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* ---------- Stitch decorations ---------- */
.stitch-line {
  width: 100%;
  height: 8px;
  display: block;
  color: var(--rose);
}
.stitch-top {
  position: relative;
  top: 0;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  color: var(--rose);
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.nav nav {
  display: flex;
  gap: 2.2rem;
}
.nav nav a {
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
.nav nav a:hover { color: var(--rose-deep); }
.nav nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: all 0.35s cubic-bezier(0.7, 0, 0.3, 1);
  transform: translateX(-50%);
}
.nav nav a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -8px rgba(157, 88, 103, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-text { position: relative; z-index: 2; }
.hero h1 {
  margin-top: 0.8rem;
  margin-bottom: 1.6rem;
}
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: revealUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  margin-right: 0.2em;
}
.reveal-word:nth-child(1) { animation-delay: 0.15s; }
.reveal-word:nth-child(2) { animation-delay: 0.3s; }
.reveal-word:nth-child(3) { animation-delay: 0.45s; }
.reveal-word:nth-child(4) { animation-delay: 0.6s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero .lead { margin: 1.6rem 0 2.2rem; }
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}
.hero-image {
  position: relative;
  border-radius: 4px;
  overflow: visible;
}
.hero-image img {
  width: 100%;
  border-radius: 4px;
  filter: saturate(0.85) contrast(1.02);
  box-shadow: var(--shadow);
  animation: fadeImage 1.4s ease both;
  animation-delay: 0.4s;
  opacity: 0;
}
@keyframes fadeImage {
  to { opacity: 1; }
}
.floating-hoop {
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: -50px;
  right: -50px;
  color: var(--rose);
  opacity: 0.85;
  animation: floatHoop 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatHoop {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50%      { transform: translate(-8px, -12px) rotate(3deg); }
}

/* ---------- Section divider ---------- */
.divider {
  color: var(--rose);
  padding: var(--space-md) 0;
  display: flex;
  justify-content: center;
}
.divider svg {
  width: min(90%, 1200px);
  height: 60px;
}

/* ---------- Sections common ---------- */
section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}
.section-header .kicker {
  justify-content: center;
}
.section-header .kicker::before {
  content: none;
}
.section-header .display { margin-bottom: 1.2rem; }
.section-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- ATELIER ---------- */
.atelier { background: var(--cream-warm); }
.atelier-image {
  position: relative;
}
.atelier-image img {
  border-radius: 4px;
  filter: saturate(0.85) contrast(1.02);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.image-tag {
  position: absolute;
  bottom: -16px;
  right: 24px;
  background: var(--ink);
  color: var(--cream);
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
}

.atelier-text h2 { margin: 0 0 1.8rem; }
.atelier-text p { color: var(--ink-soft); margin-bottom: 1rem; }
.badges {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.badge {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 100px;
}

/* ---------- COLLECTION (gallery) ---------- */
.collection { padding-top: var(--space-xl); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--space-lg);
}
.card {
  position: relative;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover { transform: translateY(-6px); }
.card-tall { grid-row: span 1; }
.card-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 1rem;
}
.card-tall .card-image { aspect-ratio: 3/4.5; }
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card-image img { transform: scale(1.05); }
.card-image::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--cream);
  border-radius: 2px;
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}
.card:hover .card-image::before {
  opacity: 1;
  inset: 18px;
}
.card-meta h3 { margin: 0 0 0.2rem; }
.card-meta p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.see-more {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--ink-soft);
}
.link {
  color: var(--rose-deep);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.3s;
}
.link:hover { color: var(--ink); }

/* ---------- SUR MESURE ---------- */
.sur-mesure {
  background: var(--cream-warm);
  position: relative;
  overflow: hidden;
}
.sur-mesure::before {
  /* decorative big motif in background */
  content: "";
  position: absolute;
  top: 40px;
  right: -180px;
  width: 500px;
  height: 500px;
  background:
    radial-gradient(circle at 50% 50%, transparent 33%, var(--cream) 33.5%, var(--cream) 35%, transparent 35.5%),
    radial-gradient(circle at 50% 50%, transparent 0, transparent 24%, var(--sage) 24.5%, var(--sage) 25%, transparent 25.5%);
  opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
}
/* Services (two cards) before steps */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}
.service-card {
  background: var(--paper);
  border-radius: 6px;
  padding: 2.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover { transform: translateY(-6px); }
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--rose) 0 8px, transparent 8px 14px);
}
.service-card:nth-child(2)::before {
  background-image: repeating-linear-gradient(90deg, var(--sage) 0 8px, transparent 8px 14px);
}
.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.4rem;
  color: var(--rose-deep);
}
.service-card:nth-child(2) .service-icon {
  color: var(--sage-deep);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-card h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.service-price {
  margin-top: 1.4rem !important;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service-price span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.step { position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--rose-deep);
  font-style: italic;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.step-num::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--rose) 0%, transparent 100%);
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- CONTACT ---------- */
.contact {
  background: linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--sage) 14%, var(--cream)) 100%);
}
.contact .two-col { gap: var(--space-xl); }
.contact-text h2 { margin-bottom: 1.4rem; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
}
.contact-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--rose-deep);
}
.contact-list a { transition: color 0.3s; }
.contact-list a:hover { color: var(--rose-deep); }

.contact-form {
  background: var(--paper);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}
.contact-form::before {
  /* small embroidery thread decoration */
  content: "";
  position: absolute;
  top: -16px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--rose) 0 8px, transparent 8px 14px);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s;
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--rose-deep);
}
.field textarea {
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 4px;
  padding: 0.8rem;
  resize: vertical;
  font-family: var(--font-body);
}
.field textarea:focus {
  border-color: var(--rose-deep);
}
.contact-form button { align-self: flex-start; margin-top: 0.5rem; }
.form-status {
  font-size: 0.9rem;
  color: var(--sage-deep);
  margin: 0;
  min-height: 1.4em;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--cream) 85%, transparent);
  padding: 4rem 0 2rem;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background-image: repeating-linear-gradient(90deg, var(--rose) 0 12px, transparent 12px 22px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}
footer .logo { color: var(--cream); }
footer .logo-mark { color: var(--rose); }
.signature {
  margin: 0.8rem 0 0;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cream); }
.footer-meta {
  text-align: right;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  font-size: 0.85rem;
}
.footer-meta p { margin: 0 0 0.3rem; }

/* ---------- Scroll reveal animation ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  body { font-size: 16px; }
  .nav { padding: 1.2rem; }
  .nav nav { gap: 1.2rem; }
  .nav nav a { font-size: 0.88rem; }

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .hero-visual { order: -1; max-width: 500px; margin-inline: auto; }
  .floating-hoop { width: 140px; height: 140px; bottom: -30px; right: -20px; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .services { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer-links { align-items: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 600px) {
  .nav nav { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .contact-form { padding: 1.8rem 1.4rem; }
}

/* ---------- Subtle prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
