:root {
  --bg: #FBF6EE;
  --bg-alt: #F3E9D8;
  --ink: #2B211B;
  --ink-soft: #5B4C3F;
  --terracotta: #C9683A;
  --terracotta-dark: #A6502A;
  --teal: #1F3A3D;
  --amber: #E0A458;
  --border: rgba(43, 33, 27, 0.12);
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 0.5em;
}

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

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero banner image */

.hero-banner {
  margin: 0 0 3rem;
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-banner-logo {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-banner-logo img {
  width: 100%;
  max-width: 260px;
}

/* Theme switcher (test tool — not part of the final site) */

.theme-switcher {
  background: #1B1712;
  color: #F3E9D8;
  font-size: 0.85rem;
}

.theme-switcher-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 44px;
  overflow-x: auto;
  white-space: nowrap;
}

.switcher-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.layout-buttons {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.layout-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #F3E9D8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.layout-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.layout-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FBF6EE;
}

.lang-buttons {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.lang-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #F3E9D8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lang-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FBF6EE;
}

.theme-switcher-label {
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#theme-select {
  font: inherit;
  color: var(--ink);
  background: #FBF6EE;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 238, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--terracotta-dark);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--terracotta); }

/* Layout switcher — show only the variant matching html[data-layout] */

.hero-split, .hero-manifesto, .hero-editorial, .hero-timeline,
.about-split, .about-manifesto, .about-editorial, .about-timeline,
.contact-split, .contact-manifesto, .contact-editorial, .contact-timeline {
  display: none;
}

html[data-layout="split"] .hero-split,
html[data-layout="split"] .about-split,
html[data-layout="split"] .contact-split,
html[data-layout="manifesto"] .hero-manifesto,
html[data-layout="manifesto"] .about-manifesto,
html[data-layout="manifesto"] .contact-manifesto,
html[data-layout="editorial"] .hero-editorial,
html[data-layout="editorial"] .about-editorial,
html[data-layout="editorial"] .contact-editorial,
html[data-layout="timeline"] .hero-timeline,
html[data-layout="timeline"] .about-timeline,
html[data-layout="timeline"] .contact-timeline {
  display: block;
}

/* Hero */

.hero {
  padding: 6rem 0 5rem;
}

.hero-inner {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 54ch;
}

/* Hero — disposition 2 : Manifeste */

.hero-manifesto {
  text-align: center;
}

.hero-manifesto .wrap {
  max-width: 720px;
}

.dot-divider {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.8rem;
}

.dot-divider span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.dot-divider .node-a { background: var(--terracotta); }
.dot-divider .node-b { background: var(--teal); }
.dot-divider .node-c { background: var(--amber); }

.lead-centered {
  margin-left: auto;
  margin-right: auto;
}

/* Hero — disposition 3 : Éditoriale */

.editorial-hero-inner {
  position: relative;
  padding: 2rem 0 1rem;
}

.editorial-title {
  position: relative;
  z-index: 1;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.editorial-sidebar {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-left: auto;
  padding-top: 0.5rem;
  border-top: 3px solid var(--terracotta);
}

.editorial-sidebar .lead { margin-bottom: 1.5rem; }

/* Hero / About — disposition 4 : Étapes */

.steps {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.step:last-child { padding-bottom: 0; }

.step::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 23px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step:last-child::before { display: none; }

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #FBF6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 1;
}

.step-text {
  color: var(--ink-soft);
  margin: 0;
  padding-top: 0.6rem;
}

.step-cta { margin-top: 0.5rem; }

.button {
  display: inline-block;
  background: var(--terracotta);
  color: #FBF6EE;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  border: 2px solid var(--terracotta);
  color: var(--terracotta-dark);
  padding: 0.75rem 1.8rem;
}

.button-outline:hover {
  background: var(--terracotta);
  color: #FBF6EE;
}

/* About */

.about {
  background: var(--bg-alt);
  padding: 5rem 0;
}

.about h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.about-card h3 {
  font-size: 1.2rem;
  color: var(--terracotta-dark);
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* About — disposition 2 : Manifeste */

.manifesto-copy {
  max-width: 640px;
}

.manifesto-copy p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.manifesto-copy .pull-quote {
  margin-top: 3rem;
}

/* About — disposition 3 : Éditoriale */

.editorial-heading {
  text-align: left !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 3rem;
}

.editorial-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.editorial-row:last-of-type { border-bottom: 1px solid var(--border); }

.editorial-row-alt {
  grid-template-columns: 1fr 100px;
}

.editorial-row-alt .editorial-index { order: 2; text-align: right; }
.editorial-row-alt p { order: 1; }

.editorial-index {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--terracotta);
}

.editorial-row p {
  color: var(--ink-soft);
  margin: 0;
}

.pull-quote-editorial {
  text-align: left;
  max-width: none;
  margin-top: 3rem;
  padding: 0;
}

.pull-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--teal);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
  padding: 0 1rem;
}

/* Contact */

.contact {
  padding: 5.5rem 0;
}

.contact h2 {
  font-size: 2rem;
}

.contact-split, .contact-manifesto, .contact-timeline {
  text-align: center;
}

.contact-split p, .contact-manifesto p, .contact-timeline p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.manifesto-link {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--terracotta-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.manifesto-link:hover {
  color: var(--terracotta);
}

/* Contact — disposition 3 : Éditoriale */

.editorial-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.editorial-contact-inner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.editorial-contact-copy p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Contact — disposition 4 : Étapes */

.contact-timeline .step-badge-final {
  display: flex;
  margin: 0 auto 1.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Responsive */

@media (max-width: 780px) {
  .hero-inner { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .nav { gap: 1.2rem; }
  .brand { font-size: 1.1rem; }

  .editorial-sidebar { margin-left: 0; }
  .editorial-row, .editorial-row-alt {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .editorial-row-alt .editorial-index { text-align: left; order: 1; }
  .editorial-row-alt p { order: 2; }
  .editorial-contact-inner { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; gap: 1rem; }
  .step-badge { width: 40px; height: 40px; font-size: 1rem; }
  .step::before { left: 19px; top: 40px; }
}

/* ==========================================================
   Palette variants (test tool — pick a winner, then delete
   the ones you don't keep, plus the switcher above)
   ========================================================== */

/* 2 — Sauge: green sage + warm cream, calm and grounded */
[data-theme="sauge"] {
  --bg: #F7F5EC;
  --bg-alt: #EAE8D9;
  --ink: #262E20;
  --ink-soft: #4E5C42;
  --terracotta: #6B8F5C;
  --terracotta-dark: #4F6E42;
  --teal: #3D2B1F;
  --amber: #D9A441;
}

/* 3 — Bordeaux & or: institutional warmth, deep red + gold */
[data-theme="bordeaux"] {
  --bg: #FBF3EC;
  --bg-alt: #F2E0D2;
  --ink: #2C1A1E;
  --ink-soft: #5C3A40;
  --terracotta: #7A2E3A;
  --terracotta-dark: #5C2029;
  --teal: #1B2A41;
  --amber: #C9A24B;
}

/* 4 — Ardoise: slate blue-grey with a warm clay accent */
[data-theme="ardoise"] {
  --bg: #F6F5F1;
  --bg-alt: #E7E4DC;
  --ink: #23282E;
  --ink-soft: #4E5761;
  --terracotta: #46647A;
  --terracotta-dark: #33495B;
  --teal: #B8623E;
  --amber: #D9B26A;
}

/* 5 — Argile & ciel: clay red-brown + soft sky blue */
[data-theme="argile"] {
  --bg: #FBF4EC;
  --bg-alt: #F0E3D2;
  --ink: #2E2117;
  --ink-soft: #5C4A3B;
  --terracotta: #B8623E;
  --terracotta-dark: #93492D;
  --teal: #3E7CA6;
  --amber: #E4B96A;
}

/* 6 — Corail vif: bold coral + deep navy, energetic */
[data-theme="corail"] {
  --bg: #FDF5EF;
  --bg-alt: #F6E2D6;
  --ink: #241C1A;
  --ink-soft: #57433C;
  --terracotta: #E8623D;
  --terracotta-dark: #C74A29;
  --teal: #16324F;
  --amber: #F0B357;
}

/* 7 — Lavande douce: dusty lavender + charcoal, soft and quiet */
[data-theme="lavande"] {
  --bg: #F8F5F6;
  --bg-alt: #EAE2E6;
  --ink: #2A2530;
  --ink-soft: #574F60;
  --terracotta: #8571A3;
  --terracotta-dark: #6B5885;
  --teal: #2E2A35;
  --amber: #E3A857;
}

/* 8 — Ocre & forêt: earthy ochre + deep forest green */
[data-theme="ocre"] {
  --bg: #FBF6EA;
  --bg-alt: #F0E6C8;
  --ink: #26241A;
  --ink-soft: #524C36;
  --terracotta: #C68A2E;
  --terracotta-dark: #9E6D20;
  --teal: #2F4B3C;
  --amber: #E7C77A;
}

/* 9 — Sépia: warm monochrome, low-contrast, timeless */
[data-theme="sepia"] {
  --bg: #F7F1E7;
  --bg-alt: #EBDFC9;
  --ink: #3A2E20;
  --ink-soft: #6B5A45;
  --terracotta: #8B5E3C;
  --terracotta-dark: #6E4A2E;
  --teal: #4A3423;
  --amber: #C9A66B;
}

/* 10 — Rose poudré: dusty rose + charcoal, gentle contrast */
[data-theme="rose"] {
  --bg: #FBF3F1;
  --bg-alt: #F1E0DD;
  --ink: #2B2224;
  --ink-soft: #5C4A4D;
  --terracotta: #C97B84;
  --terracotta-dark: #A85C66;
  --teal: #2B2B2E;
  --amber: #D9A441;
}
