/* Charvolin & Fils — Site one-pager — Production 2026 */

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  /* Backgrounds — papier kraft / lin */
  --bg-primary: #f5efe6;
  --bg-surface: #ebe1d0;
  --bg-elevated: #d9c9ad;
  --bg-deep: #1f1611;

  /* Texte — bruns terreux */
  --text-primary: #1f1611;
  --text-secondary: #4a3829;
  --text-muted: #8a7560;
  --text-inverse: #f5efe6;

  /* Accents — bois et fer oxydé */
  --accent: #8b4513;
  --accent-soft: rgba(139, 69, 19, 0.12);
  --accent-strong: #6b3410;
  --accent-rust: #a0522d;

  /* Bordures */
  --border: #c4b294;
  --border-subtle: #d9cdb5;
  --border-strong: #4a3829;

  /* Typographies — 100% serif */
  --font-display: 'EB Garamond', 'Garamond', Georgia, serif;
  --font-body: 'Crimson Pro', 'Crimson Text', Georgia, serif;

  /* Spacing fluide */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;

  /* Border radius — rectangles purs */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-pill: 0;
  --radius-circle: 50%;

  /* Transitions */
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1280px;
  --container-text: 720px;

  /* Filets décoratifs */
  --rule-thin: 1px solid var(--border-strong);
  --rule-medium: 2px solid var(--border-strong);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Texture papier en overlay subtil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

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

/* =========================================================
   TYPOGRAPHIE
   ========================================================= */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
}
h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 var(--space-xs);
  color: var(--text-primary);
}

em, .italic {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--accent);
}

p {
  margin: 0 0 var(--space-sm);
  max-width: var(--container-text);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
a:hover { color: var(--accent-strong); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow, .chapter__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.chapter__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.85rem;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
  max-width: 760px;
}

.measure { max-width: var(--container-text); }
.measure--center { margin-left: auto; margin-right: auto; }

/* Pull quote magazine */
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-rust);
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  margin: var(--space-lg) auto;
  max-width: 760px;
}
.pullquote--center {
  text-align: center;
  border-left: 0;
  border-top: 1px solid var(--accent-rust);
  border-bottom: 1px solid var(--accent-rust);
  padding: var(--space-md) var(--space-sm);
  margin-left: auto;
  margin-right: auto;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pullquote-block { padding: var(--space-lg) 0; position: relative; z-index: 2; }
.pullquote-block--alt { background: var(--bg-surface); }

/* Filets décoratifs */
.rule {
  border: 0;
  height: 1px;
  background: var(--border-strong);
  width: 80px;
  margin: var(--space-md) auto;
}
.rule--full { width: 100%; background: var(--border); }
.rule--ornament {
  border: 0;
  width: 120px;
  height: 1px;
  background: var(--border-strong);
  position: relative;
  margin: var(--space-lg) auto var(--space-md);
}
.rule--ornament::before, .rule--ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--border-strong);
  border-radius: 50%;
}
.rule--ornament::before { left: -12px; }
.rule--ornament::after { right: -12px; }

/* Numéro romain géant */
.roman-numeral {
  font-family: var(--font-display);
  font-size: clamp(5rem, 4rem + 6vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  color: var(--accent-soft);
  letter-spacing: -0.02em;
  display: block;
  pointer-events: none;
  user-select: none;
}
.chapter__bg-numeral {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 4rem);
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) { .container { padding: 0 1.25rem; } }

/* Section générique chapitre */
.chapter {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  z-index: 2;
}
.chapter--alt { background: var(--bg-surface); }
.chapter__head { margin-bottom: var(--space-lg); }
.chapter__head--center { text-align: center; }
.chapter__head--center .chapter__label::before { display: none; }
.chapter__head--center .lead,
.chapter__head--center .measure { margin-left: auto; margin-right: auto; }

.mt-xl { margin-top: var(--space-xl); }

/* Accessibilité */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* Image sépia */
.sepia { filter: saturate(0.85) sepia(0.08); }
.sepia--strong { filter: saturate(0.7) sepia(0.12); }

/* =========================================================
   BOUTONS & CTA
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--text-primary);
  background: var(--text-primary);
  color: var(--text-inverse);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
}
.btn .arrow { transition: transform 0.4s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(6px); }

.btn--ghost { background: transparent; color: var(--text-primary); }
.btn--ghost:hover { background: var(--text-primary); color: var(--text-inverse); border-color: var(--text-primary); }

.btn--link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: 0.4rem 0;
  color: var(--accent);
  border-radius: 0;
}
.btn--link:hover {
  background: transparent;
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
  transform: translateX(4px);
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 9999;
  transform-origin: left center;
  will-change: width;
  transition: width 0.1s linear;
}

/* =========================================================
   HEADER STICKY
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(245, 239, 230, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(74, 56, 41, 0.08);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header--scrolled {
  background: rgba(245, 239, 230, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.55rem 0;
  box-shadow: 0 1px 0 var(--border-subtle);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--text-primary);
}
.logo:hover { color: var(--text-primary); }
.logo__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.logo__name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.nav__list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav__list a:hover { color: var(--accent); }
.nav__list a:hover::after { width: 100%; }

.header__tel {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.header__tel:hover { color: var(--accent-strong); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0.0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu plein écran */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform 0.55s var(--ease-out), opacity 0.45s var(--ease);
}
.js-ready .mobile-menu { opacity: 0; }
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--space-md); padding: 0; text-align: center; }
.mobile-menu li { margin: var(--space-sm) 0; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu__tel {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.82) sepia(0.1) brightness(0.96);
}
.hero__overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  padding-top: 8rem;
  background: linear-gradient(to top, rgba(31,22,17,0.55) 0%, rgba(31,22,17,0.15) 45%, rgba(31,22,17,0) 100%);
}
.hero__panel {
  background: rgba(245, 239, 230, 0.92);
  padding: clamp(1.75rem, 4vw, 3rem);
  max-width: 760px;
  box-shadow: 0 20px 60px rgba(31,22,17,0.25);
}
.hero__panel .eyebrow { color: var(--accent); }
.hero h1 { margin-bottom: var(--space-md); }
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-md);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.hero__trust {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
  letter-spacing: 0.02em;
}
.hero__years {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--text-inverse);
  text-transform: uppercase;
}
.rule--ornament-line {
  width: clamp(40px, 12vw, 120px);
  height: 1px;
  background: rgba(245,239,230,0.6);
  display: inline-block;
}

/* =========================================================
   LAYOUT DEUX COLONNES (CHAPITRE I)
   ========================================================= */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split-layout__text { position: relative; z-index: 2; }
.split-layout__media { margin: 0; }
.split-layout__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split-layout__media figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-align: right;
}
@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; }
  .split-layout__media { order: -1; }
}

/* =========================================================
   CHAPITRE II — LE GESTE
   ========================================================= */
.geste__feature {
  margin: var(--space-lg) 0;
  max-height: 70vh;
}
.geste__feature .parallax-image {
  max-height: 70vh;
  object-position: center 40%;
}
.fascinations {
  list-style: none;
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
  max-width: 860px;
}
.fascinations li {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.fascinations li:first-child { border-top: 1px solid var(--border-subtle); }

.geste__details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.geste__details figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-elevated);
}

.geste__details figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.geste__details figure:hover img {
  transform: scale(1.03);
}

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

/* =========================================================
   CHAPITRE III — LES OUVRAGES (grille éditoriale)
   ========================================================= */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-md);
  margin-top: var(--space-lg);
}

.work {
  display: flex;
  flex-direction: column;
}

.work__media {
  margin: 0 0 var(--space-sm);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elevated);
}

.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.work:hover .work__media img {
  transform: scale(1.03);
}

.work__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-rust);
  margin: 0 0 0.25rem;
  letter-spacing: 0.05em;
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
}

.work__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}

.work__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}
@media (max-width: 560px) {
  .works { grid-template-columns: 1fr; }
}

.chapter__cta { margin-top: var(--space-md); text-align: center; }

/* =========================================================
   CHAPITRE IV — LA MAISON CHARVOLIN
   ========================================================= */
.lineage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-md);
  margin-top: var(--space-lg);
}
.lineage__block { margin: 0; }
.lineage__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-elevated);
  margin: 0 0 var(--space-sm);
}
.lineage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.6) sepia(0.18) grayscale(0.25);
}
.lineage__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-rust);
  margin: 0 0 0.2rem;
}
.lineage__name { margin-bottom: 0.1rem; }
.lineage__date { color: var(--text-muted); margin-bottom: var(--space-xs); font-size: 1rem; }
.lineage__story { font-size: 1rem; color: var(--text-secondary); max-width: none; }
@media (max-width: 900px) {
  .lineage { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* Number counters */
.counters-band {
  background: var(--bg-surface);
  padding: clamp(3rem, 6vw, 5rem) 0;
  margin-top: var(--space-lg);
  position: relative;
  z-index: 2;
}
.chapter--alt .counters-band { background: var(--bg-elevated); }
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}
@media (max-width: 768px) {
  .counters { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-md); }
}
.counter__value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.counter__label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Image finale scale-on-scroll */
.maison__feature {
  margin-top: var(--space-lg);
  max-height: 75vh;
}
.maison__feature .scale-image {
  max-height: 75vh;
  object-fit: cover;
  object-position: center 35%;
}

/* =========================================================
   CHAPITRE V — L'ENGAGEMENT
   ========================================================= */
.steps {
  list-style: none;
  counter-reset: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  max-width: 900px;
}
.step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}
.step:first-child { border-top: 1px solid var(--border-subtle); }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem);
  font-weight: 500;
  color: var(--accent-soft);
  flex-shrink: 0;
  min-width: 3rem;
  line-height: 1;
}
.step__body { flex: 1; }
.step__body h4 { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.5rem); }
.step__body p { margin-bottom: 0; color: var(--text-secondary); max-width: 760px; }

.certs {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 980px;
}
.certs li {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  padding-left: 1.5rem;
}
.certs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
@media (max-width: 680px) { .certs { grid-template-columns: 1fr; } }

.prestations {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
  max-width: 980px;
}
.prestations th, .prestations td {
  text-align: left;
  padding: var(--space-sm) var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.prestations th[scope="row"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.prestations td {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
}
.prestations__highlight th[scope="row"],
.prestations__highlight td {
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
  border-bottom-color: var(--accent);
}

/* FAQ */
.faq { margin-top: var(--space-md); max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__h { margin: 0; }
.faq__question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 500;
  text-align: left;
  color: var(--text-primary);
  font-style: italic;
}
.faq__question:hover { color: var(--accent); }
.faq__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.4s var(--ease);
  stroke: currentColor;
  fill: none;
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__answer { height: 0; overflow: hidden; transition: height 0.5s var(--ease); }
.faq__answer-inner {
  padding: 0 0 1.8rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.75;
  max-width: 760px;
}
.faq__answer-inner p { margin: 0; }

/* =========================================================
   CHAPITRE VI — VISITER
   ========================================================= */
.visit {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

.form { margin-top: var(--space-md); }
.form__row { margin-bottom: var(--space-sm); }
.form__row label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.form__row input,
.form__row select,
.form__row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.chapter--alt .form__row input,
.chapter--alt .form__row select,
.chapter--alt .form__row textarea { background: #fbf7f0; }
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.form__row textarea { resize: vertical; min-height: 110px; }
.form .btn { margin-top: var(--space-xs); }
.form__note { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-sm); }
.form__help {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
  margin-top: var(--space-sm);
}

.visit__info { margin: 0; }
.info__block { margin-bottom: var(--space-md); }
.info__label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}
.info__tel {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
}
.info__tel:hover { color: var(--accent-strong); }
.info__address { font-style: normal; }
.info__address a {
  font-family: var(--font-body);
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.6;
}
.info__address a:hover { color: var(--accent); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.hours__note { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-top: var(--space-xs); }

.map { margin-top: var(--space-lg); position: relative; z-index: 2; }
.map iframe { display: block; width: 100%; filter: saturate(0.9) sepia(0.06); }

/* =========================================================
   COLOPHON / FOOTER
   ========================================================= */
.colophon {
  background: var(--bg-deep);
  color: var(--text-inverse);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
  position: relative;
  z-index: 2;
}
.colophon__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .colophon__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}
.colophon__col ul { list-style: none; margin: 0; padding: 0; }
.colophon__col li { margin: 0.4rem 0; }
.colophon a { color: var(--text-inverse); text-decoration: none; opacity: 0.85; }
.colophon a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.logo__mark--light {
  color: var(--text-inverse);
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}
.colophon__name { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.2rem; }
.colophon__tag { color: rgba(245,239,230,0.7); margin: 0.1rem 0; font-size: 0.95rem; }
.colophon__heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-rust);
  margin: 0 0 var(--space-sm);
  font-weight: 500;
}
.colophon__contact li { color: rgba(245,239,230,0.85); }
.colophon__social { margin-top: var(--space-sm) !important; color: rgba(245,239,230,0.6); font-size: 0.9rem; }
.colophon .rule--ornament { background: rgba(245,239,230,0.3); }
.colophon .rule--ornament::before,
.colophon .rule--ornament::after { background: rgba(245,239,230,0.3); }
.colophon__legal {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245,239,230,0.6);
  max-width: none;
  margin: 0 auto 0.5rem;
}
.colophon__sign {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(245,239,230,0.5);
  max-width: none;
  margin: 0 auto;
}

/* =========================================================
   ÉTATS INITIAUX D'ANIMATION (gated .js-ready, single-line)
   ========================================================= */
.js-ready [data-entry] { opacity: 0; }
.js-ready [data-entry="title"] .word { display: inline-block; opacity: 0; transform: translateY(40%); }
.js-ready [data-entry="eyebrow"], .js-ready [data-entry="subtitle"], .js-ready [data-entry="cta"], .js-ready [data-entry="trust"] { transform: translateY(24px); }
.js-ready [data-entry="image"] { opacity: 0; transform: scale(1.04); }
.js-ready [data-reveal] { opacity: 0; transform: translateY(30px); will-change: transform, opacity; }
.js-ready [data-cascade] { opacity: 0; transform: translateY(40px); will-change: transform, opacity; }
.js-ready .reveal-text .word { display: inline-block; opacity: 0; transform: translateY(60%); }
.js-ready .reveal-text:not(.splitting) { opacity: 1; }

/* =========================================================
   PARALLAX & SCALE WRAPPERS
   ========================================================= */
.parallax-wrapper { overflow: hidden; position: relative; }
.parallax-image { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.scale-wrapper { overflow: hidden; position: relative; }
.scale-image { width: 100%; display: block; transform-origin: center center; will-change: transform; }

/* =========================================================
   RESPONSIVE — NAV / BURGER
   ========================================================= */
@media (max-width: 920px) {
  .nav { display: none; }
  .header__tel { display: none; }
  .burger { display: flex; }
}
@media (min-width: 921px) {
  .mobile-menu { display: none; }
}

/* =========================================================
   RESPONSIVE — TYPO MOBILE (jamais < 16px)
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 1.0625rem; }
  .hero { align-items: flex-end; }
  .hero__panel { max-width: 100%; }
  .pullquote { padding-left: var(--space-sm); }
}

/* ===================================== */
/* MOBILE OPTIMIZATIONS — Charvolin & Fils */
/* ===================================== */

@media (max-width: 768px) {

  /* Container : padding plus serré */
  .container { padding: 0 1.1rem; }

  /* === HERO === */
  .hero { min-height: 92vh; }
  .hero__panel {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.08;
  }
  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.55;
  }
  .hero__cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__trust {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .hero__years { font-size: 0.75rem; }

  /* === HEADER MOBILE === */
  .header__inner { padding: 0 1rem; }
  .nav { display: none; } /* nav classique cachée, burger prend le relais */
  .header__tel { font-size: 0.95rem; }

  /* === SECTIONS / CHAPITRES === */
  .chapter { padding: 3.5rem 0; }
  .chapter h2 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
    line-height: 1.12;
  }
  .chapter__head { margin-bottom: 2rem; }
  .lead { font-size: 1rem; line-height: 1.55; }
  .measure { font-size: 1rem; line-height: 1.7; }

  /* === ROMAN NUMERAL DE FOND === */
  .chapter__bg-numeral {
    font-size: 5rem;
    opacity: 0.7;
    top: 1rem;
    right: 1rem;
  }

  /* === PARALLAX (sécurité : neutralisé sur mobile) === */
  .parallax-image { transform: none !important; height: auto; }
  .parallax-wrapper { overflow: visible; }

  /* === GRILLE GESTE (4 photos en bas du Chapitre II) === */
  .geste__details {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .geste__details figure {
    aspect-ratio: 3 / 4;
  }

  /* === GRILLE OUVRAGES (Chapitre III) === */
  .works {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .work__media {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }
  .work__title { font-size: 1.2rem; }

  /* === LIGNAGE (Chapitre IV) === */
  .lineage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lineage__media {
    aspect-ratio: 3 / 4;
    max-height: 60vh;
  }
  .lineage__name { font-size: 1.3rem; }
  .lineage__story { font-size: 0.98rem; line-height: 1.6; }

  /* === NUMBER COUNTERS === */
  .counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .counter__value {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .counter__label { font-size: 0.8rem; line-height: 1.35; }

  /* === PULL QUOTES === */
  .pullquote {
    font-size: 1.15rem;
    line-height: 1.45;
    padding: 1rem 0 1rem 1rem;
    margin: 2rem auto;
  }
  .pullquote cite { font-size: 0.78rem; }

  /* === FAQ ACCORDION === */
  .faq__question {
    font-size: 1rem;
    padding: 1.2rem 0;
    padding-right: 2rem;
  }
  .faq__answer-inner { font-size: 0.95rem; line-height: 1.65; }

  /* === SECTION VISITER (formulaire + coordonnées) === */
  .visit {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .form__row input,
  .form__row select,
  .form__row textarea {
    font-size: 16px; /* empêche le zoom iOS */
    padding: 0.85rem 1rem;
  }
  .form .btn { width: 100%; justify-content: center; }
  .map iframe { height: 260px; }

  /* === COORDONNÉES === */
  .visit__info h4 { font-size: 1rem; }
  .info__tel,
  .info__address a,
  .visit__info a { font-size: 1rem; word-break: break-word; }

  /* === FOOTER === */
  .colophon__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .colophon__legal,
  .colophon__sign { font-size: 0.78rem; line-height: 1.6; text-align: center; }

  /* === FILETS DÉCORATIFS === */
  .rule, .rule--ornament { margin: 1.5rem auto; }

  /* === DROP CAP : un peu plus petit sur mobile === */
  .dropcap::first-letter {
    font-size: 3.2em;
    margin: 0.08em 0.08em 0 0;
  }

  /* === IMAGES SCALE : neutralisées sur mobile === */
  .scale-image { transform: none !important; }
  .scale-wrapper { overflow: visible; }
}

/* === Resserrer la jonction entre Chapitre IV (pull quote Jean-Marie) et Chapitre V === */

#maison .counters-band {
  padding-bottom: 1.5rem;
}

#engagement {
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

@media (max-width: 768px) {
  #maison .counters-band { padding-bottom: 1rem; }
  #engagement { padding-top: 2rem; }
}

/* === HERO — refonte layout split desktop / stack mobile === */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 0;
}

.hero__media,
.hero__media.parallax-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--bg-primary);
}

.hero__overlay .container {
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0;
}

.hero__panel {
  width: 100%;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.hero__panel .eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 100%;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero__trust {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

/* MCMLVII — MMXXVI ornement bas du hero */
.hero__years {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--text-inverse);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  z-index: 5;
  pointer-events: none;
}
.hero__years .rule--ornament-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--text-inverse);
  opacity: 0.7;
}

/* === HERO MOBILE — stack vertical === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__media,
  .hero__media.parallax-wrapper {
    min-height: 0;
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .hero__img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero__overlay {
    padding: 2.5rem 1.25rem 4.5rem;
  }
  .hero__overlay .container {
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__years {
    position: static;
    margin-top: 2rem;
    color: var(--text-muted);
    text-shadow: none;
    font-size: 0.75rem;
  }
  .hero__years .rule--ornament-line {
    background: var(--text-muted);
    width: 32px;
  }
}

@media (max-width: 560px) {
  .hero__overlay { padding: 2rem 1.1rem 3.5rem; }
  .hero h1 { font-size: 1.95rem; line-height: 1.08; }
  .hero__subtitle { font-size: 0.95rem; }
}

/* Très petits écrans (≤ 380px) — ajustements finaux */
@media (max-width: 380px) {
  .container { padding: 0 0.9rem; }
  .hero h1 { font-size: 1.85rem; }
  .chapter h2 { font-size: 1.65rem; }
  .geste__details { grid-template-columns: 1fr; }
}
