/* =====================================================
   OSTERIA NERA v2 — style.css
   Design : Editorial · Light · Raffiné
   Palette : Ivoire chaud + Noir encre + Terracotta
   Typo   : Fraunces (display) + Instrument Serif (body) + Outfit (sans)
   ===================================================== */

/* ---- 1. RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- 2. VARIABLES ---- */
:root {
  --ivory:      #faf7f2;
  --ivory-2:    #f3ede3;
  --ivory-3:    #ede4d6;
  --ink:        #1a1612;
  --ink-2:      #3d342a;
  --ink-3:      #6b5e52;
  --terra:      #c45c3a;
  --terra-light:#f0d5cc;
  --sand:       #d4b896;
  --border:     rgba(26, 22, 18, 0.1);
  --border-2:   rgba(26, 22, 18, 0.06);

  --font-display: 'Fraunces', serif;
  --font-body:    'Instrument Serif', serif;
  --font-sans:    'Outfit', sans-serif;

  --max-w:    1280px;
  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ---- 3. BASE ---- */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ---- 4. TYPOGRAPHIE UTILITAIRES ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display-xl em { font-style: italic; color: var(--terra); font-weight: 300; }

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display-lg em { font-style: italic; color: var(--terra); }

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ink-3);
}

.body-sm {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---- 5. BOUTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-terra {
  background: var(--terra);
  color: #fff;
  padding: 0.9rem 2rem;
}
.btn-terra:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 1.9rem;
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-ghost {
  background: transparent;
  color: var(--terra);
  padding: 0;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---- 6. NAVIGATION ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 5vw;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

#navbar.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.1rem 5vw;
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-style: italic;
}
.nav-logo span { color: var(--terra); }

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { background: var(--ivory-3); color: var(--ink); }

.nav-links .nav-resa {
  background: var(--terra);
  color: #fff;
  margin-left: 0.5rem;
}
.nav-links .nav-resa:hover { background: var(--ink); color: #fff; }

.mon-lien {
  color: var(--ivory);
}

/* Badge "Fictif" dans la nav */
.nav-fictif-badge {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--terra-light);
  color: var(--terra);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-fictif-badge:hover { background: var(--terra); color: #fff; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ivory);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-2);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--terra); }

/* ---- 7. FOOTER ---- */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 5rem 5vw 2rem;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--terra); }

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(250,247,242,0.5);
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.5rem;
}

.footer-col p,
.footer-col a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 2.2;
  color: rgba(250,247,242,0.55);
  display: block;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(250,247,242,0.3);
  letter-spacing: 0.08em;
}

.footer-fictif-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--terra);
  letter-spacing: 0.08em;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-fictif-link:hover { opacity: 1; color: var(--terra); }

/* ---- 8. SÉPARATEUR ---- */
.sep {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5vw;
}
.sep-line   { flex: 1; height: 1px; background: var(--border); }
.sep-ornament {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--terra);
  opacity: 0.5;
  font-style: italic;
}

/* ---- 9. SECTION COMMUNE ---- */
.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5vw;
}

/* ---- 10. SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- 11. NOTIFICATION FORM ---- */
.form-notif {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-left: 3px solid;
  display: none;
}
.form-notif.success { background: #edf7f3; border-color: #2a9d6e; color: #1a6b49; }
.form-notif.error   { background: #fdf0ed; border-color: var(--terra); color: var(--terra); }

.field-error {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--terra);
  margin-top: 0.3rem;
}

/* ---- 12. BANNER FICTIF (apparaît sur toutes les pages sauf fictif.html) ---- */
.fictif-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(26,22,18,0.18);
  white-space: nowrap;
  animation: bannerIn 0.6s 1.5s var(--ease-out) both;
}
.fictif-banner p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(250,247,242,0.7);
}
.fictif-banner strong {
  font-weight: 600;
  color: var(--terra);
  font-size: 0.75rem;
}
.fictif-banner a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--terra);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  transition: background 0.2s;
}
.fictif-banner a:hover { background: var(--terra-light); color: var(--terra); }
.fictif-banner-close {
  background: none;
  border: none;
  color: rgba(250,247,242,0.4);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.2s;
}
.fictif-banner-close:hover { color: var(--ivory); }

@keyframes bannerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- 13. RESPONSIVE GLOBAL ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  #navbar { padding: 1.2rem 5vw; }
  #navbar.scrolled { padding: 0.9rem 5vw; }
  .nav-links, .nav-fictif-badge { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 0 3rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .fictif-banner { bottom: 1rem; left: 1rem; right: 1rem; transform: none; animation-name: bannerInMobile; border-radius: 12px; white-space: normal; flex-wrap: wrap; }
  @keyframes bannerInMobile {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
