/* =====================================================
   LAYOUT.CSS — OLFACT
   Système de design partagé : tokens, header, footer.
   Direction : luxe minimaliste éditorial.
   Palette + typographie = ADN à préserver. La forme est libre.
   À charger APRÈS le CSS spécifique de chaque page.
   ===================================================== */

:root {
  --cream: #f8f4ef;
  --cream-2: #f1ebe3;
  --paper: #fffdfa;
  --ink: #2f1847;
  --plum: #3b1657;
  --gold: #d7b26d;
  --gold-deep: #c89b56;
  --gold-text: #876830; /* or assombri — contraste AA (≥4.5:1) pour le texte/icônes sur fond clair */
  --night: #1a0331;
  --line: rgba(47, 24, 71, 0.14);
  --maxw: 1200px;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 244, 239, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 74px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Cormorant Upright", serif;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-left: 0.26em; /* compense le letter-spacing à droite */
  white-space: nowrap;
}
.brand:hover { color: var(--gold-text); }

.site-nav {
  display: block;
  height: auto;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-family: "DM Sans", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.78;
  transition: color 0.25s, opacity 0.25s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-text);
  opacity: 1;
}

/* Bouton hamburger — caché sur desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 5px 0;
  background: var(--ink);
  transition: 0.3s;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background-color: var(--night);
  color: var(--gold);
  font-family: "Cormorant Upright", serif;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 40px 56px;
}
.site-footer .footer-logo img { width: 64px; margin-bottom: 14px; }
.site-footer .footer-logo h3 {
  font-family: "Cormorant Upright", serif;
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer .slogan {
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.site-footer .footer-logo p {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(215, 178, 109, 0.75);
  max-width: 36ch;
}
.site-footer .footer-navigation h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.site-footer .footer-navigation {
  display: flex;
  flex-direction: column;
}
.site-footer .footer-navigation a {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 14px;
  transition: color 0.25s;
}
.site-footer .footer-navigation a:hover { color: #fff; }
.site-footer .footer-citation p {
  font-size: 1.7rem;
  line-height: 1.4;
  font-style: italic;
  color: rgba(215, 178, 109, 0.92);
}
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 40px;
  border-top: 1px solid rgba(215, 178, 109, 0.22);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  color: rgba(215, 178, 109, 0.7);
}
.site-footer .footer-bottom p { max-width: 64ch; }
.site-footer .footer-liens a {
  color: var(--gold);
  text-decoration: none;
  margin-left: 22px;
}
.site-footer .footer-liens a:hover { color: #fff; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .site-header__inner { height: 64px; padding: 0 22px; }
  .brand { font-size: 1.5rem; letter-spacing: 0.2em; padding-left: 0.2em; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.35s ease;
  }
  .site-nav.open { max-height: 85vh; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }
  .site-nav li { text-align: center; }
  .site-nav a {
    display: block;
    padding: 15px 0;
    font-size: 0.86rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 56px 24px 40px;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
  }
  .site-footer .footer-liens a { margin: 0 22px 0 0; }
}
