/* ============================================================
   EUNICE COUTURE — Landing page
   Design tokens : DESIGN.md Stitch « Congo Wax Avant-Garde »
   CSS vanilla, zéro dépendance, zéro build step.
   ============================================================ */

/* ---------- Fonts self-hosted (Fontsource, latin) ---------- */
@font-face { font-family: 'Syne'; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/syne-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-weight: 800; font-display: swap;
  src: url('../assets/fonts/syne-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/be-vietnam-pro-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

/* ---------- Design tokens ---------- */
:root {
  /* Couleurs (DESIGN.md) */
  --bg: #0f141a;
  --surface-lowest: #0a0e14;
  --surface-low: #181c22;
  --surface: #1c2026;
  --surface-high: #262a31;
  --surface-highest: #31353c;
  --on-surface: #dfe2eb;
  --on-surface-variant: #bfc7d5;
  --outline: #89919e;
  --outline-variant: #404753;
  --primary: #a1c9ff;
  --primary-container: #0496ff;
  --on-primary: #00325a;
  --secondary: #fdbb41;
  --on-secondary: #432c00;
  --tertiary: #ff547f;
  --whatsapp: #25d366;

  /* Typo */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-label: 'Space Grotesk', monospace, sans-serif;

  /* Espacements */
  --sp-xs: 4px; --sp-sm: 12px; --sp-md: 24px; --sp-lg: 40px; --sp-xl: 64px;
  --margin: 20px;

  /* Rayons */
  --r-sm: .5rem; --r-lg: 1rem; --r-xl: 1.5rem; --r-full: 9999px;

  /* Layout banner-aware (pattern _RESSOURCES/30-) */
  --banner-offset: 0px;
  --header-h: 72px;
}
@media (min-width: 768px) { :root { --margin: 80px; } }

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--on-surface);
  font-family: var(--font-body); font-size: 16px; line-height: 24px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Typo utilitaires ---------- */
.headline-xl { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.headline-lg { font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0; }
.headline-md { font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 32px; margin: 0; }
.label { font-family: var(--font-label); font-weight: 500; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; }
.label-sm { font-family: var(--font-label); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; }
.body-lg { font-size: 18px; line-height: 28px; }
.muted { color: var(--on-surface-variant); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--banner-offset); z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md);
  padding: 16px var(--margin);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--secondary) 20%, transparent);
  transition: padding .25s ease, box-shadow .25s ease;
}
.site-header.is-compact { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; text-transform: uppercase; color: var(--primary);
  text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: 15px; } }
.main-nav { display: none; gap: var(--sp-lg); }
.main-nav a { text-decoration: none; font-family: var(--font-label); font-size: 14px;
  letter-spacing: .05em; color: var(--on-surface-variant); transition: color .2s; }
.main-nav a:hover { color: var(--primary); }
@media (min-width: 900px) { .main-nav { display: flex; } }
.lang-toggle { display: flex; gap: 2px; border: 1px solid var(--outline-variant);
  border-radius: var(--r-full); padding: 3px; }
.lang-toggle a { text-decoration: none; font-family: var(--font-label); font-size: 12px;
  font-weight: 700; padding: 4px 12px; border-radius: var(--r-full);
  color: var(--on-surface-variant); }
.lang-toggle a.active { background: var(--primary); color: var(--on-primary); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border-radius: var(--r-full); border: none; cursor: pointer;
  font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: .05em;
  text-decoration: none; transition: transform .15s ease, filter .2s ease; }
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-primary { background: var(--primary-container); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-surface);
  border: 1px solid var(--outline-variant); }
.btn-ghost:hover { background: var(--surface-highest); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Sections ---------- */
section { padding: var(--sp-xl) var(--margin); }
.section-head { margin-bottom: var(--sp-lg); }
.section-head .headline-lg { color: var(--primary); }
.section-head p { max-width: 480px; }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; min-height: 88vh; padding: 0; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 24px 24px; }
.hero-text { padding: var(--sp-xl) var(--margin); display: flex; flex-direction: column;
  justify-content: center; z-index: 1; }
.hero-text .label { color: var(--secondary); margin-bottom: 16px; }
.hero-text p { margin: 24px 0 40px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-md); }
.hero-media { position: relative; height: 52vh; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), transparent 40%); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-media { height: auto; min-height: 88vh; }
  .hero-media::after { background: linear-gradient(to right, var(--bg), transparent 55%); }
}

/* ---------- Galerie créations ---------- */
.gallery { background: var(--surface-lowest); }
.cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface-high); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .35s ease; }
.card:hover { transform: translateY(-8px); }
.card-media { height: 380px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: var(--sp-md); border-top: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent); }
.card-body .label-sm { color: var(--secondary); display: block; margin-bottom: 6px; }
.card-body p { margin: 8px 0 0; color: var(--on-surface-variant); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service { background: var(--surface-low); border: 1px solid color-mix(in srgb, var(--secondary) 20%, transparent);
  border-radius: var(--r-lg); padding: var(--sp-md); display: flex; gap: 18px; align-items: flex-start; }
.service-icon { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--secondary) 15%, transparent);
  display: grid; place-items: center; color: var(--secondary); }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { margin: 0 0 6px; }
.service p { margin: 0; color: var(--on-surface-variant); font-size: 15px; line-height: 23px; }
.services-note { margin-top: var(--sp-md); color: var(--on-surface-variant); font-size: 15px;
  display: flex; align-items: center; gap: 10px; }
.services-note svg { width: 18px; height: 18px; color: var(--tertiary); flex: none; }

/* ---------- Héritage / À propos ---------- */
.about { position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg);
  align-items: center; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 6fr 5fr; } }
.about-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; position: relative;
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
@media (min-width: 900px) { .about-media { aspect-ratio: auto; height: 100%; max-height: 560px; } }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text .headline-lg { color: var(--primary); border-left: 4px solid var(--secondary);
  padding-left: 22px; margin-bottom: var(--sp-md); }
.about-text p { color: var(--on-surface-variant); }
.about-tagline { display: flex; align-items: center; gap: 16px; color: var(--secondary);
  margin-top: var(--sp-md); }
.about-tagline::before { content: ''; width: 48px; height: 1px; background: var(--secondary); }

/* ---------- Partenaires ---------- */
.partners { background: var(--surface-low); border-block: 1px solid color-mix(in srgb, var(--secondary) 15%, transparent); }
.partners-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.partners .headline-lg { color: var(--secondary); }
.partners p { max-width: 620px; margin: var(--sp-md) auto var(--sp-lg); }

/* ---------- Contact / formulaire WhatsApp ---------- */
.contact { background: var(--surface-high); position: relative; overflow: hidden; }
.contact::after { content: ''; position: absolute; top: 0; right: -10%; width: 40%; height: 100%;
  border: 40px solid color-mix(in srgb, var(--secondary) 10%, transparent);
  transform: rotate(45deg); pointer-events: none; }
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.contact-inner > p { max-width: 560px; margin: var(--sp-md) auto var(--sp-lg); }
.wa-form { display: grid; gap: var(--sp-sm); text-align: left;
  background: var(--surface); border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl); padding: var(--sp-md); }
.wa-form label { font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-variant); }
.wa-form input, .wa-form select, .wa-form textarea {
  width: 100%; background: var(--surface-lowest); color: var(--on-surface);
  border: none; border-bottom: 2px solid var(--outline-variant);
  border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 13px 14px;
  font-family: var(--font-body); font-size: 16px; transition: border-color .2s; }
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus {
  outline: none; border-bottom-color: var(--primary-container); }
.wa-form textarea { resize: vertical; min-height: 96px; }
.wa-form .btn { margin-top: var(--sp-sm); width: 100%; }
.contact-direct { margin-top: var(--sp-md); font-size: 15px; color: var(--on-surface-variant); }
.contact-direct a { color: var(--whatsapp); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-lowest); text-align: center;
  padding: var(--sp-lg) var(--margin) calc(var(--sp-lg) + 72px); }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--sp-lg); } }
.site-footer .brand { display: inline-block; margin-bottom: var(--sp-md); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-md); }
.footer-links a { text-decoration: none; color: var(--on-surface-variant); transition: color .2s; }
.footer-links a:hover { color: var(--secondary); }
.copyright { opacity: .6; font-size: 14px; }

/* ---------- Bottom nav mobile ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: center; height: 64px;
  background: color-mix(in srgb, var(--surface-high) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
  border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (min-width: 900px) { .bottom-nav { display: none; } }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--on-surface-variant);
  font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--secondary); }
