/* ============================================
   TOKENS
   ============================================ */
:root {
  --paper: #FAF7F1;
  --paper-alt: #F2E9DA;
  --ink: #2A2419;
  --ink-soft: #5B5344;
  --accent: #DBB78C;
  --accent-deep: #B98F5E;
  --sage: #5B6E58;
  --line: #E6D9C4;
  --white: #FFFFFF;

  --font-display: "Newsreader", serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1080px;
}

* { 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;
  padding-top: 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 500; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 14px;
}

/* ============================================
   NOTICE (page en construction)
   ============================================ */
.notice {
  background: var(--paper-alt);
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

/* ============================================
   HEADER / FOLDER-TAB NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.15;
}
.brand-logo {
  height: 120px;
  width: auto;
  margin-top: 20px;
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.tab {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 10px 18px 9px;
  border-radius: 8px 8px 0 0;
  position: relative;
  top: 1px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tab:hover { color: var(--ink); transform: translateY(-2px); }

.tab.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line);
  box-shadow: 0 -2px 10px rgba(42, 36, 25, 0.05);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--paper);
}

.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; }

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

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }

.hero-lede {
  max-width: 480px;
  margin: 24px 0 34px;
  font-size: 18px;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-alt); transform: translateY(-1px); }

/* photo hero + carte dossier flottante */
.hero-visual {
  position: relative;
  margin-bottom: 32px;
}
.hero-photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 6px;
  display: block;
}

/* dossier / folder card visual */
.dossier {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  position: relative;
}
.hero-visual .dossier {
  position: absolute;
  left: -24px;
  bottom: -32px;
  width: 250px;
  box-shadow: 0 12px 28px rgba(42, 36, 25, 0.12);
}
.dossier::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 32px;
  width: 92px;
  height: 22px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.dossier-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.dossier-fact { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dossier-fact:last-child { border-bottom: none; }
.dossier-fact span:first-child { color: var(--ink-soft); }
.dossier-fact span:last-child { font-weight: 600; }

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

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: left; }
.stat-num { font-family: var(--font-display); font-size: 42px; color: var(--accent-deep); }
.stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 6px; }

/* domain cards (used on home + domaines page) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 34px; }
.card-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; color: var(--white); background: var(--accent-deep); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; letter-spacing: 0.04em; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* news list */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 28px 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-mono); font-size: 13px; color: var(--accent-deep); }
.news-row h3 { font-size: 20px; margin-bottom: 8px; }
.news-row p { margin: 0; color: var(--ink-soft); max-width: 560px; }

/* contact / rdv */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }

.info-block { border: 1px solid var(--line); border-radius: 6px; padding: 30px; background: var(--paper-alt); }
.info-block h3 { font-size: 18px; margin-bottom: 16px; }
.info-line { display: flex; gap: 10px; font-size: 14.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.info-line:last-child { border-bottom: none; }
.info-line .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-soft); min-width: 90px; letter-spacing: 0.05em; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { padding: 40px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 32px; }
  .hero-visual .dossier { position: static; width: auto; margin-top: 24px; box-shadow: none; }
  .hero-photo { height: 280px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tabs {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 16px;
    gap: 8px;
  }
  .tabs.open { display: flex; }
  .tab { border-radius: 6px; border-bottom: 1px solid var(--line); top: 0; }
  .nav-toggle { display: flex; }
}
