/* ============================================================
   Iryna Geroi — Système de design
   Mood : cocon, féminin, éthéré, éditorial
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@1,300;1,400&family=Italianno&display=swap');

:root {
  /* ---------- Palette (extraite du mood board) ---------- */
  --cream:        #FAF5EE;   /* fond principal */
  --cream-warm:   #F4ECE0;   /* fond secondaire, cards */
  --linen:        #EDE2D2;   /* surface chaude */
  --sand:         #E2D2BB;   /* divider, fond accent */

  --blush-50:     #FBEFE9;   /* lightest blush */
  --blush-100:    #F4D9CC;   /* rose poudré clair */
  --blush-200:    #E9B9A4;   /* rose poudré */
  --blush-300:    #D69680;   /* terracotta doux */
  --blush-400:    #B66A55;   /* accent profond */

  --gold:         #C9A675;   /* doré chaud, accent */
  --gold-deep:    #9C7B4D;

  --ink:          #3A2E26;   /* texte principal — brun chaud, jamais noir */
  --ink-soft:     #6B5A4E;   /* texte secondaire */
  --ink-muted:    #9B8978;   /* texte muted */

  /* Sombre signature : vert sauge profond, utilisé pour CTA, cartouches, boutons */
  --deep:         #3F4F3F;
  --deep-hover:   #4D5F4D;

  --line:         rgba(58, 46, 38, 0.12);
  --line-soft:    rgba(58, 46, 38, 0.06);

  /* Touche ponctuelle vert d'eau (mer du mood board) */
  --sea:          #B8D3CC;

  /* ---------- Type ---------- */
  --font-display: "Tenor Sans", "Marcellus", "Helvetica Neue", system-ui, sans-serif;
  --font-display-italic: "Cormorant Garamond", Georgia, serif;
  --font-script:  "Italianno", "Cormorant Garamond", cursive;
  --font-ui:      "Inter", system-ui, sans-serif;

  --fs-micro: 9px;
  --fs-xs:    11px;
  --fs-sm:    13px;
  --fs-md:    14px;
  --fs-lg:    16px;
  --fs-xl:    21px;
  --fs-2xl:   30px;
  --fs-3xl:   40px;
  --fs-4xl:   58px;
  --fs-display: clamp(38px, 6vw, 88px);

  /* ---------- Espacement ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --container: 1240px;
  --reading: 640px;

  /* ---------- Radii ---------- */
  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-pill: 999px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Texture grain papier subtil sur l'ensemble du site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.227   0 0 0 0 0.18   0 0 0 0 0.149   0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- Filet doré : cadre fin autour du viewport ---------- */
.page-frame {
  position: fixed;
  inset: 14px;
  pointer-events: none;
  z-index: 200;
  border: 1px solid var(--gold);
  opacity: 0.55;
  border-radius: 4px;
  mix-blend-mode: multiply;
}
.page-frame::before,
.page-frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.85;
}
.page-frame::before {
  top: -7px; left: -7px;
  border-right: 0; border-bottom: 0;
}
.page-frame::after {
  bottom: -7px; right: -7px;
  border-left: 0; border-top: 0;
}
@media (max-width: 860px) {
  .page-frame { inset: 8px; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Typographie ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
.display em,
.serif em,
h1 em, h2 em, h3 em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--blush-400);
  letter-spacing: 0;
  font-size: 1.35em;
  line-height: 0.85;
  vertical-align: -0.05em;
}
.lede em {
  font-family: var(--font-display-italic);
  font-style: italic;
}
.serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.8vw, 64px); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 400; line-height: 1.12; }
h3 { font-size: clamp(18px, 1.7vw, 22px); font-weight: 400; }
h4 { font-size: var(--fs-md); font-weight: 500; font-family: var(--font-ui); letter-spacing: 0.01em; }
p  { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.no-line::before { display: none; }

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-style: normal;
}
.lede em {
  font-family: var(--font-display-italic);
  font-style: italic;
  color: var(--ink);
}

.body { font-size: var(--fs-md); line-height: 1.7; color: var(--ink-soft); }
.body strong { color: var(--ink); font-weight: 500; }
.body em { font-style: italic; color: var(--ink); }

.caption {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-7);
}
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--sp-7); }
.reading { max-width: var(--reading); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 16px 28px;
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--deep);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--deep-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--cream-warm);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}
.btn-link:hover {
  color: var(--blush-400);
  border-color: var(--blush-400);
  gap: var(--sp-4);
}
.btn-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn-link:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--sp-5) var(--sp-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: all 0.3s ease;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-brand .amp {
  color: var(--gold);
  font-style: italic;
  margin: 0 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}
.nav-link {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--deep);
  color: var(--cream);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--deep-hover); }

/* ---------- Footer ---------- */
.footer {
  background: var(--linen);
  padding: var(--sp-9) 0 var(--sp-6);
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-8);
}
.footer h5 {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}
.footer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-list a {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.footer-list a:hover { color: var(--blush-400); }
.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}

/* ---------- Sections ---------- */
section { padding: var(--sp-10) 0; }
.section-tight { padding: var(--sp-9) 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--cream-warm);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-soft {
  background: rgba(244, 217, 204, 0.3);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
}

/* ---------- Divider ornement ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  color: var(--gold);
  margin: var(--sp-7) 0;
}
.ornament .line { flex: 1; max-width: 80px; height: 1px; background: currentColor; opacity: 0.5; }
.ornament .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ---------- Animations utilitaires ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(8px, -12px) rotate(1.5deg); }
}
@keyframes drift-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-6px, 8px) scale(1.03); }
}
.fade-up { animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fade-in { animation: fadeIn 1.5s ease both; }

/* Desktop: cacher les elements mobiles (drawer + burger trigger) */
.nav-mobile-trigger { display: none; }
.nav-mobile { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .container, .container-narrow { padding: 0 var(--sp-5); }
  .nav { padding: var(--sp-4) var(--sp-5); }
  .nav-links { display: none; }
  .nav-mobile-trigger { display: inline-flex; align-items: center; gap: var(--sp-3); }
  .nav-mobile { display: block; }
  .nav-mobile:not(.is-open) { display: none; }
  section { padding: var(--sp-8) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
