/* ============================================================
   CABINET ORELIA — DESIGN SYSTEM GLOBAL
   Palette : ivoire, marine, ocre · serif éditorial
   ============================================================ */

:root {
  --ivory: #f5f1e8;
  --ivory-soft: #faf6ed;
  --ivory-deep: #ede5d3;
  --navy: #1a2332;
  --navy-soft: #2a3548;
  --navy-mute: #3a4558;
  --ocre: #b8843f;
  --ocre-soft: #d4a868;
  --ocre-pale: #e8d4a8;
  --ocre-bg: #f4e8d0;
  --line: #d9cfb8;
  --line-soft: #e8e0cc;
  --text: #1a2332;
  --text-soft: #5a6478;
  --text-mute: #8a8474;
  --red: #b8493f;
  --green: #5a7848;
  --white: #ffffff;

  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 3px rgba(26, 35, 50, 0.04), 0 1px 2px rgba(26, 35, 50, 0.06);
  --shadow-elev: 0 4px 20px rgba(26, 35, 50, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 35, 50, 0.12);

  --container: 1200px;
  --container-text: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--ocre); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
em { font-style: italic; color: var(--ocre); font-family: var(--font-serif); font-weight: 500; }
img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
h4 { font-size: 20px; }
p { color: var(--text-soft); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocre);
  font-weight: 600;
  display: inline-block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; position: relative; }
section.compact { padding: 48px 0; }
section.spacious { padding: 120px 0; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 17px; }

/* ============================================================
   HEADER GLOBAL
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(245, 241, 232, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.logo-mark {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.logo-tagline {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-top: 2px;
  font-family: var(--font-sans);
  font-weight: 400;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.site-nav a:hover { color: var(--ocre); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--ocre);
}
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 50;
}
.menu-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .2s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ivory);
    background-color: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px 32px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 40;
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a {
    font-size: 22px;
    font-family: var(--font-serif);
    color: var(--navy);
  }
  .site-nav a.active,
  .site-nav a:hover { color: var(--ocre); }
  .site-nav a.active::after { display: none; }
  .header-cta .btn:not(.btn-cta-mobile) { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all .2s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--ocre);
  color: var(--white);
}
.btn-primary:hover { background: #a37533; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-elev); }
.btn-dark {
  background: var(--navy);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--navy-soft); color: var(--ivory); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }
.btn-soft {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}
.btn-soft:hover { border-color: var(--ocre); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-arrow::after { content: '→'; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ocre);
  box-shadow: 0 0 0 3px rgba(184, 132, 63, 0.1);
}
.form-error {
  background: rgba(184, 73, 63, 0.08);
  border: 1px solid rgba(184, 73, 63, 0.2);
  color: var(--red);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}
.form-success {
  background: rgba(90, 120, 72, 0.08);
  border: 1px solid rgba(90, 120, 72, 0.2);
  color: var(--green);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============================================================
   FOOTER GLOBAL
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo-text { color: var(--ivory); }
.footer-brand .logo-mark { filter: brightness(1.1); }
.footer-brand p {
  color: rgba(245, 241, 232, 0.7);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocre-soft);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(245, 241, 232, 0.8);
  font-size: 14px;
}
.footer-col a:hover { color: var(--ocre-soft); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.6);
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: rgba(245, 241, 232, 0.6); }
.footer-legal a:hover { color: var(--ocre-soft); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.divider {
  height: 1px;
  background: var(--line-soft);
  margin: 48px 0;
}
.divider-fancy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0;
  color: var(--ocre);
}
.divider-fancy::before, .divider-fancy::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ocre-pale);
}
