/* ==========================================================================
   NIDOUX — STYLES PARTAGÉS
   --------------------------------------------------------------------------
   Ce fichier est utilisé par toutes les pages du site.
   Si vous modifiez les couleurs ou la typo, ça impacte tout le site.
   ========================================================================== */

:root {
  --bg: #f5f0e8;
  --bg-deep: #ebe3d5;
  --bg-card: #fbf7f0;
  --ink: #5a4a3a;
  --ink-deep: #3d3128;
  --ink-soft: #8a7a68;
  --accent: #aab578;
  --accent-deep: #8a956a;
  --line: rgba(90, 74, 58, 0.14);
  --line-strong: rgba(90, 74, 58, 0.28);
  --shadow: 0 20px 60px -20px rgba(90, 74, 58, 0.18);
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink-deep);
  font-family: 'Jost', -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background atmosphere — applied to all pages */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(170, 181, 120, 0.10), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(90, 74, 58, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   NAVIGATION (header, used on every page)
   ========================================================================== */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink-deep);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-deep);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink-deep);
}

/* ==========================================================================
   COMMON SECTIONS
   ========================================================================== */

main {
  flex: 1;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 0.85rem;
  opacity: 0.65;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink-deep);
  margin-bottom: 1.5rem;
}

h1 .italic, h2 .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  margin-bottom: 1.25rem;
}

h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--ink-deep);
  margin-bottom: 0.75rem;
}

p {
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

p.lead {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--ink-deep);
  background: var(--ink-deep);
  color: var(--bg);
  transition: all 0.3s ease;
}

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

.btn-outline {
  background: transparent;
  color: var(--ink-deep);
}

.btn-outline:hover {
  background: var(--ink-deep);
  color: var(--bg);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Dividers */
.divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  margin: 0 auto 2rem;
}

/* Editorial placeholder marker */
.placeholder {
  background: rgba(170, 181, 120, 0.18);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  border-bottom: 1px dashed var(--accent-deep);
}

/* ==========================================================================
   FOOTER (used on every page)
   ========================================================================== */

footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-deep);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-contact .label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
}

.socials {
  display: flex;
  gap: 0.85rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.4s ease;
}

.socials a:hover {
  background: var(--ink-deep);
  color: var(--bg);
  border-color: var(--ink-deep);
  transform: translateY(-2px);
}

.socials svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  animation: fade-up 1s ease-out both;
}

.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }
.reveal-4 { animation-delay: 0.55s; }
.reveal-5 { animation-delay: 0.7s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .eyebrow::before,
  .eyebrow::after { width: 22px; margin: 0 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
