/* ==========================================================================
   COMMON.CSS — Styles partagés (index.html + mentions-legales.html)
   ========================================================================== */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --dark: #1A1814;
  --brown: #8B6F47;
  --gold: #C8963E;
  --rust: #B5522A;
  --light: #FAF8F4;
  --mid: #6B6560;
  --border: rgba(139,111,71,0.2);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--gold);
}

/* ── HEADINGS ── */
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
}
h2 em { font-style: italic; color: var(--brown); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--dark);
  color: var(--cream) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; color: var(--dark) !important; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { flex: 1; display: flex; align-items: center; }
.footer-logo img { height: 36px; width: auto; display: block; }
.footer-copy { flex: 1; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-links { flex: 1; display: flex; gap: 1.5rem; justify-content: flex-end; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE: TABLETTE (≤1024px) ── */
@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  .nav-links { gap: 1.5rem; }
  .container { padding: 0 2rem; }
  footer { padding: 1.2rem 2rem; }
}

/* ── RESPONSIVE: MOBILE (≤640px) ── */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .nav-logo img { height: 36px; }

  .container { padding: 0 1.2rem; }
  h2 { font-size: 1.7rem; }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.2rem;
    gap: 1rem;
  }
  .footer-logo { justify-content: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}