/* =========================================
   LA MIE DORÉE — Feuille de style commune
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- Variables --- */
:root {
  --bg:        #FBF7EE;
  --bg-alt:    #F3EAD8;
  --bg-dark:   #2C1A0E;
  --cream:     #FFFDF8;
  --accent:    #C8922A;
  --accent-dk: #A87520;
  --gold:      #E8B84B;
  --brown:     #5C3A1E;
  --brown-dk:  #3E2410;
  --text:      #2C1A0E;
  --text-2:    #6B4E35;
  --text-3:    #A08060;
  --border:    #E5D9C3;
  --shadow:    0 2px 20px rgba(44,26,14,0.08);
  --shadow-lg: 0 8px 48px rgba(44,26,14,0.14);
  --radius:    14px;
  --radius-sm: 8px;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'Lato', system-ui, sans-serif;
  --max-w:     1200px;
  --transition: 0.24s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* --- Utilitaires --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section      { padding: 100px 0; }
.section--sm  { padding: 68px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: #fff;
}
.section--cream { background: var(--cream); }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section--dark .tag { color: var(--gold); }

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { color: var(--text-2); line-height: 1.75; }

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark p   { color: rgba(255,255,255,0.65); }

/* --- Séparateur doré --- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.divider span {
  color: var(--gold);
  font-size: 1.1rem;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,238,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown-dk);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.nav__logo span { color: var(--accent); }
.nav__logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-2);
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--brown-dk);
  background: rgba(92,58,30,0.06);
}
.nav__links a.active {
  font-weight: 700;
}
.nav__links .btn--primary {
  padding: 10px 22px;
  font-size: 0.86rem;
  margin-left: 10px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--brown-dk);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.nav__mobile a {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-weight: 400;
  color: var(--text-2);
  font-size: 1rem;
  transition: var(--transition);
}
.nav__mobile a:hover { background: rgba(92,58,30,0.05); color: var(--text); }
.nav__mobile .btn--primary {
  text-align: center;
  justify-content: center;
  margin-top: 8px;
}
.nav__mobile.open { display: flex; }

/* =============================================
   PAGE HERO (pages internes)
   ============================================= */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero p {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 1.1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--brown-dk);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand .nav__logo { color: #fff; }
.footer__brand .nav__logo span { color: var(--gold); }
.footer__brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.75;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__col ul li + li { margin-top: 10px; }
.footer__col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer__col ul a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   ANIMATIONS SCROLL
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }

.slide-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.15s;
}
.slide-left.visible,
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* =============================================
   CARDS GÉNÉRIQUES
   ============================================= */
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* =============================================
   FAQ ACCORDÉON
   ============================================= */
.faq__list {
  max-width: 720px;
  margin: 56px auto 0;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
  font-family: var(--font-title);
}
.faq__question:hover { color: var(--accent); }
.faq__chevron { flex-shrink: 0; transition: transform 0.28s ease; }
.faq__item.open .faq__chevron { transform: rotate(180deg); }
.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s ease;
}
.faq__item.open .faq__answer { max-height: 300px; }
.faq__answer p {
  padding-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
