/* ==========================================================================
   MAÎTRE YENAWA — Design system
   Palette : nuit du Bénin (encre profonde), or ancestral, rouge rituel
   Display : Cormorant Garamond / Body : Jost
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --void: #0b0a10;
  --ink: #15131d;
  --ink-soft: #1d1a28;
  --gold: #c9a227;
  --gold-soft: #e4c766;
  --oxblood: #7c1f2a;
  --oxblood-soft: #a83442;
  --parchment: #f4ead3;
  --parchment-dim: #d9cdae;
  --mist: #9c93a8;
  --line: rgba(201, 162, 39, 0.22);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;

  --container: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--parchment);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--parchment);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15;
}

h2 em, h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

p { color: var(--parchment-dim); }

/* ---------- veve divider (signature element) ---------- */
.veve {
  width: 46px;
  height: 46px;
  margin: 0 auto 28px;
  opacity: 0.85;
}
.veve.left { margin: 0 0 22px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(11,10,16,0.92), rgba(11,10,16,0));
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11,10,16,0.94);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--parchment);
}
.brand-name span { color: var(--gold); }

.main-nav { display: flex; gap: 36px; align-items: center; }
.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1408;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,39,0.28); }
.btn-outline {
  border-color: var(--line);
  color: var(--parchment);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 22%, rgba(124,31,42,0.28), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(201,162,39,0.14), transparent 50%);
  animation: ember 14s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes ember {
  from { transform: scale(1) translate(0,0); opacity: 0.85; }
  to   { transform: scale(1.08) translate(2%, -2%); opacity: 1; }
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 20px;
}
.hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--parchment-dim);
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
}
.hero-visual .frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(201,162,39,0.08), transparent 60%);
}
.hero-visual img {
  width: 100%;
  border-radius: 1px;
  filter: saturate(1.05) contrast(1.03);
}
.hero-visual .corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--gold);
  opacity: 0.7;
}
.hero-visual .corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-visual .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- section base ---------- */
section { position: relative; padding: 108px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head p { margin-top: 14px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: none;
}

/* ---------- about ---------- */
.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual .ring {
  position: absolute;
  inset: -18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 0;
}
.about-visual img {
  position: relative;
  z-index: 1;
  filter: saturate(1.05);
}
.about-text .eyebrow { display: block; }
.about-text h2 { margin-bottom: 24px; }
.about-text p + p { margin-top: 16px; }
.about-signature {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.05rem;
}

/* ---------- principles ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.principle {
  background: var(--void);
  padding: 40px 34px;
  transition: background 0.3s ease;
}
.principle:hover { background: var(--ink); }
.principle .glyph {
  font-size: 1.5rem;
  margin-bottom: 18px;
  display: inline-block;
}
.principle h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.principle p { font-size: 0.92rem; margin: 0; }

/* ---------- stats ---------- */
.stats {
  padding: 64px 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--gold-soft);
  font-weight: 500;
}
.stat span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- testimonials ---------- */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.testimonial.featured { border-color: var(--gold); }
.testimonial.featured::before {
  content: "Témoignage vedette";
  position: absolute;
  top: -12px; left: 28px;
  background: var(--gold);
  color: #1a1408;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  font-weight: 600;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.testimonial p.quote {
  font-size: 0.92rem;
  color: var(--parchment-dim);
  flex-grow: 1;
}
.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.testimonial .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--line);
}
.testimonial .who div b { display: block; font-size: 0.88rem; font-weight: 500; }
.testimonial .who div span { font-size: 0.78rem; color: var(--mist); }

/* ---------- services ---------- */
.services-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.service-card:hover .service-icon { transform: scale(1.06); border-color: var(--gold); }
.service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  background: radial-gradient(circle at 30% 25%, rgba(201,162,39,0.14), transparent 70%);
}
.service-icon svg { width: 30px; height: 30px; display: block; }
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.service-card p { font-size: 0.9rem; margin: 0; }
.service-card.hero-service {
  grid-column: span 2;
  background: linear-gradient(120deg, var(--oxblood) 0%, var(--ink) 65%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.service-card.hero-service .txt { padding: 30px 32px; }
.service-card.hero-service img { height: 100%; width: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.05); }

/* ---------- cta band ---------- */
.cta-band {
  text-align: center;
  padding: 100px 0;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 520px; margin: 0 auto 36px; }
.cta-band .btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 30px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer img { height: 40px; margin: 0 auto 18px; opacity: 0.9; }
.site-footer .legal {
  font-size: 0.78rem;
  color: var(--mist);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}
.site-footer .legal span { margin: 0 8px; }

/* ---------- floating whatsapp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- contact page ---------- */
.contact-hero { padding: 150px 0 60px; text-align: center; }
.contact-hero .eyebrow { display: block; }
.contact-hero p { max-width: 560px; margin: 16px auto 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 0.92rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.75rem; color: var(--mist); margin-top: 14px; text-align: center; }
.form-success, .form-error {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.form-success { background: rgba(201,162,39,0.1); border: 1px solid var(--gold); color: var(--gold-soft); }
.form-error { background: rgba(124,31,42,0.15); border: 1px solid var(--oxblood-soft); color: var(--oxblood-soft); }

/* ---------- location / map ---------- */
.location { padding-bottom: 120px; }
.location-address {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--parchment);
  margin-top: 6px;
}
.location-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  filter: grayscale(0.25) contrast(1.05);
}
.location-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.contact-side .card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
}
.contact-side .card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-channel:first-of-type { border-top: none; }
.contact-channel .ic { font-size: 1.2rem; }
.contact-channel b { display: block; font-size: 0.92rem; }
.contact-channel span { font-size: 0.78rem; color: var(--mist); }
.guarantee-list { list-style: none; padding: 0; margin: 0; }
.guarantee-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--parchment-dim);
  border-top: 1px solid var(--line);
}
.guarantee-list li:first-child { border-top: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .about .container { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.hero-service { grid-column: span 2; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  section { padding: 76px 0; }
  .principles-grid { grid-template-columns: 1fr; }
  .testimonial-track { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.hero-service { grid-column: span 1; grid-template-columns: 1fr; }
  .service-card.hero-service img { height: 200px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas, .cta-band .btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
