/* ====================================================
   DÜNA — Styles du site (extension de brand.css)
   À inclure après brand.css sur chaque page
   ==================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--brown);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Grain doux sur tout le site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

main { flex: 1; position: relative; z-index: 2; }
header, footer { position: relative; z-index: 3; }

a { color: inherit; text-decoration: none; transition: opacity 0.25s ease; }
a:hover { opacity: 0.7; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ----------  HEADER  ---------- */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(244, 228, 215, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(158, 83, 56, 0.12);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  gap: 2rem;
}

.site-header .wordmark-link { display: inline-flex; align-items: center; }
.site-header .wordmark-svg {
  width: 110px;
  height: auto;
  color: var(--terra-dark);
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.site-nav a {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  position: relative;
  padding: 0.4rem 0;
}

.site-nav a:hover { color: var(--terra-dark); opacity: 1; }

.site-nav a.active {
  color: var(--terra-dark);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background-color: var(--terra-dark);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--terra-dark);
}

.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--cream);
    border-bottom: 1px solid rgba(158, 83, 56, 0.12);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav a {
    width: 100%;
    padding: 1.1rem 2rem;
    border-top: 1px solid rgba(158, 83, 56, 0.08);
    text-align: left;
  }
  .site-nav a.active::after { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
}

/* ----------  HERO communs  ---------- */
.hero {
  text-align: center;
  padding: 6rem 0 5rem;
  position: relative;
}

.hero h1 {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--terra-dark);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero p.lead {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--brown);
  max-width: 620px;
  margin: 0 auto 2rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--terra-dark);
}

.tagline-pill .line {
  display: inline-block;
  width: 38px;
  height: 1px;
  background-color: var(--terra-dark);
  opacity: 0.55;
}

.tagline-pill .mono {
  width: 22px;
  height: 22px;
  color: var(--terra-dark);
  flex-shrink: 0;
}

/* ----------  SECTIONS  ---------- */
section { padding: 5rem 0; position: relative; }

.section-title {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 0.6rem;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-base);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brown);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.01em;
}

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--terra-dark);
  background-color: var(--terra-dark);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  background-color: var(--brown);
  border-color: var(--brown);
  transform: translateY(-1px);
  opacity: 1;
}

.btn--ghost {
  background-color: transparent;
  color: var(--terra-dark);
}

.btn--ghost:hover {
  background-color: var(--terra-dark);
  color: var(--cream);
  border-color: var(--terra-dark);
}

/* ----------  FOOTER  ---------- */
.site-footer {
  background-color: var(--terra-dark);
  color: var(--cream);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  text-align: center;
}

.site-footer .footer-mono {
  width: 56px;
  height: 56px;
  color: var(--cream);
  margin: 0 auto 1.5rem;
}

.site-footer .footer-tagline {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer .footer-tagline .line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: var(--cream);
  opacity: 0.7;
}

.site-footer .footer-tagline .dot {
  width: 6px;
  height: 6px;
  background-color: var(--cream);
  border-radius: 50%;
  opacity: 0.85;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.footer-socials a {
  color: var(--cream);
  opacity: 0.85;
  display: inline-flex;
}

.footer-socials a:hover { opacity: 1; transform: translateY(-2px); }
.footer-socials svg { width: 20px; height: 20px; }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-logo);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--cream);
  opacity: 0.78;
}

.footer-nav a:hover { opacity: 1; }

.footer-meta {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.6;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 228, 215, 0.15);
}

/* ----------  Animations d'apparition douces  ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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