/* ═══════════════════════════════════════════════════
   MIKA TRAITEUR & DÉCO — Design System
   Direction artistique : afro-chic, doré/terracotta/nuit
═══════════════════════════════════════════════════ */

/* ═══ TOKENS ═══ */
:root {
  /* Couleurs principales */
  --or:        #D4A55A;      /* Or signature */
  --or-d:      #B5853A;      /* Or foncé (hover) */
  --or-p:      #FAF5EB;      /* Or pâle (fond) */
  --tc:        #C4602A;      /* Terracotta */
  --tc-l:      #A04E20;      /* Terracotta foncé */
  --tc-p:      #FBEEE5;      /* Terracotta pâle */
  --ch:        #C9A96E;      /* Champagne (location) */
  --nuit:      #1C0E06;      /* Brun nuit (texte/fond sombre) */
  --nuit-2:    #2E1A0A;      /* Brun nuit secondaire */
  --iv:        #FBF7F0;      /* Ivoire principal */
  --iv2:       #F5EFE3;      /* Ivoire secondaire */
  --gris:      #6B5D4F;      /* Gris chaud (texte secondaire) */
  --gris-l:    #DDD3C4;      /* Gris clair (bordures) */

  /* Typographie */
  --f-serif:    'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --f-sans:     'Josefin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:  1180px;
  --radius:     3px;
  --radius-lg:  6px;

  /* Ombres */
  --shadow-sm:  0 2px 8px rgba(28, 14, 6, .06);
  --shadow:     0 8px 28px rgba(28, 14, 6, .10);
  --shadow-lg:  0 18px 50px rgba(196, 96, 42, .14);

  /* Transitions */
  --t-fast:     .25s ease;
  --t:          .35s ease;
  --t-slow:     .55s ease;
}

/* ═══ RESET ═══ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nuit);
  background: var(--iv);
  padding-top: 68px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--tc); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--tc-l); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 2px; }

/* ═══ NAVIGATION ═══ */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; height: 68px; z-index: 1000;
  background: rgba(28, 14, 6, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 165, 90, .15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--t), box-shadow var(--t);
}
#mainNav.scrolled {
  background: rgba(28, 14, 6, .98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.nav-logo-name {
  font-family: var(--f-serif); font-size: 1.45rem; font-weight: 600;
  color: var(--or); letter-spacing: .5px;
}
.nav-logo-sub {
  font-family: var(--f-sans); font-size: .55rem; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 2.2rem;
}
.nav-links a {
  font-family: var(--f-sans); font-size: .68rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  position: relative; padding: .35rem 0;
  transition: color var(--t-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--or); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--or);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--tc); color: #fff !important;
  padding: .6rem 1.3rem !important; border-radius: var(--radius);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: var(--tc-l); transform: translateY(-2px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: .5rem;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--or);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* ═══ CONTAINER & SECTIONS ═══ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; position: relative; }

.section-eyebrow {
  font-family: var(--f-sans); font-size: .65rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--tc);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem;
}
.section-eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--tc); flex-shrink: 0;
}
.section-title {
  font-family: var(--f-serif); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12; color: var(--nuit);
  margin-bottom: 1.2rem;
}
.section-title em { color: var(--tc); font-style: italic; }
.section-title.light { color: #fff; }
.section-title.light em { color: var(--or); }
.section-desc {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 1.1rem; color: var(--gris); max-width: 620px;
  line-height: 1.7;
}
.section-desc.light { color: rgba(255, 255, 255, .68); }

/* ═══ BOUTONS ═══ */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; padding: 1rem 2rem;
  font-family: var(--f-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast),
              box-shadow var(--t-fast), color var(--t-fast);
}
.btn-primary {
  background: var(--tc); color: #fff;
  box-shadow: 0 4px 16px rgba(196, 96, 42, .25);
}
.btn-primary:hover {
  background: var(--tc-l); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 96, 42, .35);
}
.btn-secondary {
  background: transparent; color: var(--or);
  border-color: rgba(212, 165, 90, .55);
}
.btn-secondary:hover {
  background: var(--or); color: var(--nuit);
  border-color: var(--or); transform: translateY(-2px);
}

/* Divider décoratif (hero) */
.deco-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 1.6rem auto 1.4rem; max-width: 240px;
}
.deco-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--or), transparent);
}
.deco-divider-diamond {
  width: 8px; height: 8px; background: var(--or);
  transform: rotate(45deg);
}

/* ═══ FORMULAIRES ═══ */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-family: var(--f-sans); font-size: .58rem;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gris); margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .8rem 1rem;
  font-family: var(--f-sans); font-size: .95rem; color: var(--nuit);
  background: var(--iv); border: 1px solid var(--gris-l);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background var(--t-fast),
              box-shadow var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; background: #fff;
  border-color: var(--tc);
  box-shadow: 0 0 0 3px rgba(196, 96, 42, .12);
}
.form-group textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

/* ═══ FOOTER ═══ */
footer {
  background: var(--nuit); color: rgba(255, 255, 255, .65);
  padding: 4rem 0 2rem; position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--or) 0%, var(--tc) 50%, var(--or) 100%);
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--f-serif); font-size: 1.5rem; color: var(--or);
  margin-bottom: .8rem; font-weight: 600;
}
.footer-motto {
  font-family: var(--f-serif); font-style: italic;
  color: rgba(255, 255, 255, .55); margin-bottom: 1.2rem;
  line-height: 1.6; font-size: 1rem;
}
.footer-col-title {
  font-family: var(--f-sans); font-size: .62rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--or); margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  font-size: .88rem; color: rgba(255, 255, 255, .6);
}
.footer-links a:hover { color: var(--or); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; font-family: var(--f-sans);
  font-size: .68rem; letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .35);
}

/* ═══ WHATSAPP FLOTTANT ═══ */
.wa-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  animation: waPulse 2.4s infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .6);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, .45); }
  50%      { box-shadow: 0 6px 24px rgba(37, 211, 102, .45),
                         0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ═══ PAGES LÉGALES ═══ */
.legal-page { background: var(--iv); }
.legal-hero {
  padding: 5rem 2rem 3.5rem;
  background: linear-gradient(155deg, var(--nuit) 0%, var(--nuit-2) 100%);
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg,
    rgba(212, 165, 90, .04) 0, rgba(212, 165, 90, .04) 1px,
    transparent 1px, transparent 38px);
}
.legal-body {
  max-width: 880px; margin: 0 auto; padding: 4rem 2rem 5rem;
}
.legal-section {
  background: #fff; border: 1px solid rgba(212, 165, 90, .15);
  border-radius: var(--radius); padding: 2rem;
  margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.legal-section h3 {
  font-family: var(--f-serif); font-size: 1.3rem; font-weight: 600;
  color: var(--nuit); margin-bottom: 1rem;
  padding-bottom: .8rem; border-bottom: 2px solid var(--tc-p);
}
.legal-section p {
  margin-bottom: .9rem; line-height: 1.75;
  color: #444; font-size: .96rem;
}
.legal-section ul { margin: .5rem 0 1rem 1.4rem; }
.legal-section ul li {
  margin-bottom: .45rem; line-height: 1.7;
  color: #444; font-size: .95rem;
}
.legal-section strong { color: var(--nuit); font-weight: 600; }

/* ═══ ANIMATIONS GLOBALES ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
  #mainNav { padding: 0 1.4rem; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(28, 14, 6, .98);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(212, 165, 90, .15);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform var(--t), opacity var(--t);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; padding: .7rem 0;
                  border-bottom: 1px solid rgba(212, 165, 90, .1); }
  .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-cta { display: inline-block; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 4.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 1.2rem; }
  .legal-body { padding: 3rem 1.2rem 4rem; }
  .legal-section { padding: 1.4rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ═══ ACCESSIBILITÉ — REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
