/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --paper: #FAF8F3;
  --paper-alt: #EFE7D8;
  --ink: #241F17;
  --ink-soft: #59503F;
  --ink-faint: #8A8069;
  --gold: #B98F5E;
  --gold-soft: #D9C4A4;
  --line: #E1D5BD;
  --white: #FFFFFF;

  --font-serif: "Newsreader", serif;
  --font-sans: "Manrope", sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 32px; }

a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 110px; width: auto; }

.tabs { display: flex; align-items: center; gap: 40px; }

.tab {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.tab:hover { color: var(--ink); }
.tab:hover::after { transform: scaleX(1); }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); display: block; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { border-bottom: 1px solid var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 32px;
}

.hero-kicker {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.12;
  max-width: 560px;
}

.hero-lede {
  max-width: 460px;
  margin: 26px 0 36px;
  font-size: 17.5px;
  color: var(--ink-soft);
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 28px;
  background: linear-gradient(to top, rgba(36,31,23,0.55), transparent);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .hero-kicker { margin-bottom: 16px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 16.5px; }

/* intro / presentation with portrait */
.intro-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.intro-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
}
.intro-portrait-caption {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.intro-body { max-width: 620px; }
.intro-body h3 {
  font-size: 20px;
  margin: 40px 0 14px;
}
.intro-body h3:first-child { margin-top: 0; }
.intro-body p { color: var(--ink-soft); }

.values-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  color: var(--ink-soft);
}
.values-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--line);
}
.values-list li:last-child { border-bottom: 1px solid var(--line); }
.values-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 24px;
  width: 8px; height: 1px;
  background: var(--gold);
}

/* domain list (not a sequence -> no numbering) */
.domain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.domain-item {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.domain-list .domain-item:nth-child(1),
.domain-list .domain-item:nth-child(2) { border-top: 1px solid var(--line); }
.domain-item h3 { font-size: 21px; margin-bottom: 12px; }
.domain-item p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* visual hover-reveal domain cards (used on domaines.html) */
.domains-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}
.domains-hero-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  opacity: 0.5;
  pointer-events: none;
}
.domains-hero .wrap { position: relative; z-index: 2; }

.domain-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.domain-visual-card {
  position: relative;
  background: var(--paper);
  padding: 48px 44px;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.domain-visual-card .domain-mark {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 130px;
  opacity: 0.06;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.domain-visual-card:hover .domain-mark,
.domain-visual-card:focus-within .domain-mark {
  opacity: 0.12;
  transform: translateY(-6px);
}
.domain-visual-card .domain-index {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.domain-visual-card h3 {
  position: relative;
  z-index: 2;
  font-size: 24px;
}
.domain-visual-card .domain-desc {
  position: relative;
  z-index: 2;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.05s, margin-top 0.4s ease;
}
.domain-visual-card:hover .domain-desc,
.domain-visual-card:focus-within .domain-desc {
  max-height: 220px;
  opacity: 1;
  margin-top: 16px;
}
.domain-visual-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.domain-visual-card:hover::before,
.domain-visual-card:focus-within::before {
  transform: scaleY(1);
}

.domain-list-full { grid-template-columns: 1fr; }
.domain-list-full .domain-item { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.domain-list-full .domain-item h3 { margin: 0; }

/* news list */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.news-row:first-child { padding-top: 0; }
.news-row:last-child { border-bottom: none; }
.news-date {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-faint);
  padding-top: 4px;
}
.news-row h3 { font-size: 21px; margin-bottom: 6px; }
.news-ref {
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.news-row .news-body { max-width: 620px; color: var(--ink-soft); }
.news-row .news-body p { margin: 0 0 14px; }
.news-point { margin: 0 0 8px; padding-left: 20px; position: relative; }

/* contact / rdv */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; }

.info-block-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 22px;
}
.info-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.info-line:last-child { padding-bottom: 0; }
.contact-info-wrap .info-line:last-child { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.info-line .k {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.info-line a { text-decoration: none; }
.info-line a:hover { color: var(--gold); }

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans);
  font-size: 15.5px;
  padding: 11px 2px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ==========================================================
   REVEAL (single orchestrated hero entrance only)
   ========================================================== */
.hero-content > * {
  opacity: 0;
  animation: rise 0.7s ease forwards;
}
.hero-kicker { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-lede { animation-delay: 0.25s; }
.cta-row { animation-delay: 0.35s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > * { opacity: 1; animation: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 56px 24px 40px; order: 2; }
  .hero-photo-wrap { order: 1; min-height: 340px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-portrait { max-width: 260px; }
  .domain-list { grid-template-columns: 1fr; }
  .domain-visual-grid { grid-template-columns: 1fr; }
  .domains-hero-mark { width: 200px; right: -80px; opacity: 0.35; }
  .domain-list-full .domain-item { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .tabs {
    display: none;
    position: absolute;
    top: 112px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    gap: 4px;
  }
  .tabs.open { display: flex; }
  .tab { width: 100%; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }

  /* hover reveal isn't reliable with touch: show descriptions directly */
  .domain-visual-card .domain-desc {
    max-height: none;
    opacity: 1;
    margin-top: 16px;
  }
  .domain-visual-card::before { transform: scaleY(1); }
  .domain-visual-card .domain-mark { opacity: 0.1; }
}
