/* ============================================================
   Maison Adage — Feuille de styles principale
   Aligné sur la Charte Graphique v1.0 (Mai 2026)
   ============================================================ */

:root {
  /* Palette */
  --ink:        #1a1612;
  --ink-soft:   #3a342c;
  --ivory:      #f1ece1;
  --ivory-deep: #ebe3d3;
  --rule:       rgba(26, 22, 18, 0.14);
  --rule-soft:  rgba(26, 22, 18, 0.08);
  --midnight:   #0e1a2b;
  --gold:       #c5a35e;
  --terra:      #d96a3f;

  /* Type stacks */
  --display:    "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body:       "EB Garamond", Georgia, serif;
  --ui:         "Manrope", system-ui, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, monospace;
}

/* ============ Reset & base ============ */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--ivory); }

body {
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

/* ============ Topbar ============ */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 1px solid var(--rule-soft);
  position: sticky;
  top: 0;
  background: rgba(241, 236, 225, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  z-index: 10;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark .mono { height: 22px; width: auto; }
.brand-mark .mono path { fill: currentColor; }

.brand-name {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em;
}

.lang-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lang-nav a {
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.lang-nav a:hover { opacity: 0.9; }
.lang-nav .lang-active { opacity: 1; }
.lang-nav .lang-soon { opacity: 0.22; cursor: not-allowed; }
.lang-nav .lang-sep { opacity: 0.3; }

/* ============ Hero ============ */

.hero {
  text-align: center;
  padding: 140px 32px 100px;
  border-bottom: 1px solid var(--rule-soft);
}

.eyebrow {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 auto;
  max-width: 1000px;
}

.hero-title em { font-style: italic; display: block; }
.hero-title span { font-style: normal; display: block; opacity: 0.85; }

.hero-sub {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  max-width: 620px;
  margin: 36px auto 0;
  opacity: 0.82;
}

/* ============ Section heads (réutilisable) ============ */

.section-head {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.55;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-title em { font-style: italic; }

.section-note {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============ About / La maison ============ */

.about {
  padding: 110px 32px;
  border-bottom: 1px solid var(--rule-soft);
}

.about-inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 56px;
}

.about-inner .section-num { padding-top: 10px; margin-bottom: 0; }

.about-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
}

.about-text {
  font-family: var(--body);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  margin: 0 0 18px;
}

.about-text:last-child { margin-bottom: 0; }

/* ============ Gallery (aperçu) ============ */

.gallery {
  padding: 110px 32px 90px;
  border-bottom: 1px solid var(--rule-soft);
}

.gallery-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1f1d1a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 14px 36px -16px rgba(40, 30, 18, 0.28);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-card:hover img {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 22px 48px -22px rgba(40, 30, 18, 0.38);
}

.gallery-card .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}

.gallery-card .topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

.gallery-card .topline .lang { color: var(--terra); }

.gallery-card .theme {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 2px;
}

.gallery-card .system {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ============ Themes (les thèmes) ============ */

.themes {
  padding: 110px 32px;
  border-bottom: 1px solid var(--rule-soft);
}

.themes-list {
  max-width: 880px;
  margin: 0 auto;
}

.theme-item {
  display: grid;
  grid-template-columns: 60px 220px 1fr;
  gap: 36px;
  padding: 22px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}

.theme-item:first-child { border-top: 1px solid var(--rule); }
.theme-item:last-child  { border-bottom: 1px solid var(--rule); }

.theme-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.5;
}

.theme-name {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}

.theme-desc {
  font-family: var(--body);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.85;
}

/* ============ Systems (les déclinaisons) ============ */

.systems {
  padding: 110px 32px;
  background: var(--ivory-deep);
}

.systems-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.system-card {
  padding: 36px 32px 36px;
  background: var(--ivory);
  border-top: 2px solid var(--ink);
}

.system-letter {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.system-name {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 18px;
}

.system-desc {
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

/* ============ Footer ============ */

.footer {
  padding: 72px 32px 56px;
  border-top: 1px solid var(--rule);
  background: var(--ivory-deep);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand .mono { height: 28px; width: auto; opacity: 0.72; }
.footer-brand .mono path { fill: var(--ink); }

.footer-name {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.footer-text {
  font-family: var(--body);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.78;
  max-width: 500px;
}

.footer-meta {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  text-align: center;
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

@media (max-width: 760px) {
  .topbar { padding: 18px 22px; }
  .brand-name { font-size: 11px; letter-spacing: 0.3em; }
  .hero { padding: 90px 22px 70px; }

  .about { padding: 80px 22px; }
  .about-inner { grid-template-columns: 1fr; gap: 18px; }
  .about-inner .section-num { padding-top: 0; }

  .gallery { padding: 80px 22px 60px; }
  .themes  { padding: 80px 22px; }
  .systems { padding: 80px 22px; }

  .theme-item {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    padding: 18px 0;
  }
  .theme-num { grid-row: 1 / span 2; padding-top: 4px; }
  .theme-name { grid-column: 2; }
  .theme-desc { grid-column: 2; }

  .systems-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer { padding: 56px 22px 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

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

/* ============ A11y ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
