/* =============================================================
   TOITS DU BASSIN — Design system global
   Palette artisan premium : crème, terracotta, bois, ardoise
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Palette */
  --cream:        #F7F3EC;
  --cream-deep:   #EFE8DB;
  --sand:         #E4D9C3;
  --bois:         #A6713E;
  --bois-dark:    #7D4F26;
  --terracotta:   #C2502E;
  --terracotta-d: #A33E1E;
  --ardoise:      #1F2A30;
  --ardoise-2:    #2E3A41;
  --ink:          #2A2522;
  --ink-soft:     #5A524C;
  --muted:        #8A7F76;
  --line:         #D9CFBE;
  --white:        #FFFFFF;

  /* Typo */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-xs:    clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --fs-sm:    clamp(0.88rem, 0.84rem + 0.2vw, 0.95rem);
  --fs-base:  clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
  --fs-lg:    clamp(1.12rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-xl:    clamp(1.4rem, 1.25rem + 0.8vw, 1.75rem);
  --fs-h3:    clamp(1.6rem, 1.35rem + 1.2vw, 2.1rem);
  --fs-h2:    clamp(2rem, 1.55rem + 2.2vw, 3.1rem);
  --fs-h1:    clamp(2.5rem, 1.8rem + 3.5vw, 4.6rem);
  --fs-display:clamp(2.8rem, 1.9rem + 4.5vw, 5.4rem);

  /* Spacing */
  --sp-1: .35rem;
  --sp-2: .7rem;
  --sp-3: 1.1rem;
  --sp-4: 1.6rem;
  --sp-5: 2.4rem;
  --sp-6: 3.6rem;
  --sp-7: 5rem;
  --sp-8: 7rem;
  --sp-9: 9rem;

  /* Layout */
  --container: 1240px;
  --container-tight: 980px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows — chaudes et douces */
  --sh-1: 0 2px 6px rgba(86, 56, 30, .07);
  --sh-2: 0 10px 30px -12px rgba(86, 56, 30, .18);
  --sh-3: 0 24px 60px -20px rgba(86, 56, 30, .28);

  /* Transitions */
  --t-fast: 180ms ease;
  --t-med:  320ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* Subtle paper grain on body — premium artisan texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .6 0 0 0 0 .5 0 0 0 0 .4 0 0 0 .08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- 3. TYPO ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  color: var(--ardoise);
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 { font-size: var(--fs-h1); font-weight: 400; }
h2 { font-size: var(--fs-h2); font-weight: 450; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; }
h4 { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
p  { margin: 0 0 1em; max-width: 65ch; }
strong { font-weight: 600; color: var(--ardoise); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--terracotta);
}
.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--bois); }

/* ---------- 4. LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); position: relative; z-index: 2; }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); position: relative; z-index: 2; }
.section { padding: var(--sp-8) 0; position: relative; }
.section-sm { padding: var(--sp-7) 0; }
.section-tight { padding: var(--sp-6) 0; }
.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-sand { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); }
.bg-dark { background: var(--ardoise); color: #E8E2D5; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--cream); }
.bg-dark .lead { color: #C9C1B2; }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(217, 207, 190, .6);
  transition: box-shadow var(--t-med);
}
.site-header.scrolled { box-shadow: var(--sh-1); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: .85rem 0;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ardoise);
  letter-spacing: -.01em;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand > span:not(.brand-mark) { display: inline-flex; flex-direction: column; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .brand small { display: none; }
}

.nav-main { display: none; }
@media (min-width: 960px) {
  .nav-main { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
}
.nav-main a {
  padding: .55rem .7rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-main a:hover { color: var(--terracotta); background: rgba(194, 80, 46, .07); }
.nav-main a.active { color: var(--terracotta); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.header-phone {
  display: none;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ardoise);
  padding: .45rem .7rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; color: var(--terracotta); flex-shrink: 0; }
.header-phone:hover { color: var(--terracotta); }
@media (min-width: 1180px) { .header-phone { display: inline-flex; } }
.header-actions .btn { white-space: nowrap; padding: .65rem 1.2rem; font-size: .92rem; }

/* Burger */
.burger {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  color: var(--ardoise);
}
@media (min-width: 960px) { .burger { display: none; } }
.burger svg { width: 24px; height: 24px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  transform: translateY(-100%);
  transition: transform var(--t-med);
  display: flex; flex-direction: column;
  padding: var(--sp-3) clamp(1.2rem, 5vw, 2rem);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu nav { padding: var(--sp-4) 0; flex: 1; overflow-y: auto; }
.mobile-menu nav a {
  display: block;
  padding: .9rem 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ardoise);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .menu-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-family: var(--font-sans); font-weight: 600; padding: 1.2rem 0 .5rem; }
.mobile-menu .menu-sub a { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 500; padding: .55rem 0; }
.mobile-menu-cta { padding: var(--sp-4) 0; display: grid; gap: .7rem; }

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--r-sm);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 6px 18px -8px rgba(194, 80, 46, .55);
}
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(194, 80, 46, .65); }
.btn-ghost {
  background: transparent;
  color: var(--ardoise);
  border: 1.5px solid var(--ardoise);
}
.btn-ghost:hover { background: var(--ardoise); color: var(--cream); }
.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247, 243, 236, .4);
}
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(247, 243, 236, .08); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--terracotta);
  padding: .25rem 0;
  position: relative;
}
.btn-link::after {
  content: "→";
  transition: transform var(--t-fast);
}
.btn-link:hover::after { transform: translateX(4px); }
.btn-lg { padding: 1.15rem 2rem; font-size: 1rem; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
}
.hero-content { position: relative; z-index: 3; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bois-dark);
  background: rgba(166, 113, 62, .12);
  padding: .45rem .85rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
}
.hero-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: var(--sp-4);
}
.hero h1 em {
  font-style: italic;
  color: var(--bois);
  font-weight: 400;
}
.hero-lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.55;
  margin-bottom: var(--sp-5);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: var(--sp-5); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.hero-trust svg { width: 16px; height: 16px; color: var(--terracotta); flex-shrink: 0; }

/* Hero visual — mosaic of 2 images */
.hero-visual {
  position: relative;
  min-height: clamp(360px, 50vw, 580px);
}
.hero-photo-main,
.hero-photo-sub {
  position: absolute;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.hero-photo-main {
  inset: 0 0 18% 12%;
  z-index: 2;
}
.hero-photo-sub {
  width: 42%;
  aspect-ratio: 3 / 4;
  bottom: 0;
  left: 0;
  z-index: 3;
  border: 6px solid var(--cream);
}
.hero-photo-main img,
.hero-photo-sub img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
@media (max-width: 720px) {
  .hero-photo-main { inset: 0 0 22% 22%; }
  .hero-photo-sub { width: 50%; }
}
/* Decorative shape behind */
.hero-deco {
  position: absolute;
  inset: 5% 0 5% 5%;
  background: linear-gradient(135deg, var(--bois) 0%, var(--terracotta) 100%);
  border-radius: var(--r-lg);
  opacity: .08;
  z-index: 1;
}

/* ---------- 8. SAVOIR-FAIRE — layout asymétrique ---------- */
.savoir {
  background: var(--cream-deep);
}
.savoir-intro {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
@media (min-width: 880px) {
  .savoir-intro { grid-template-columns: 1fr 1.15fr; gap: var(--sp-6); align-items: end; }
}
.savoir-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(12, 1fr);
}
.savoir-card {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--t-med), box-shadow var(--t-med);
  grid-column: span 12;
}
.savoir-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.savoir-card .ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(194, 80, 46, .1);
  color: var(--terracotta);
  display: grid; place-items: center;
  margin-bottom: var(--sp-3);
}
.savoir-card .ico svg { width: 26px; height: 26px; }
.savoir-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.savoir-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.savoir-card.featured {
  background: var(--ardoise);
  color: #D9D1C2;
  border-color: transparent;
}
.savoir-card.featured h3 { color: var(--cream); }
.savoir-card.featured p { color: #C5BCAA; }
.savoir-card.featured .ico { background: rgba(194, 80, 46, .25); }
.savoir-card.with-image {
  padding: 0;
  min-height: 320px;
  color: var(--cream);
}
.savoir-card.with-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.savoir-card.with-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 42, 48, .15) 0%, rgba(31, 42, 48, .85) 80%);
  z-index: 1;
}
.savoir-card.with-image .ico,
.savoir-card.with-image h3,
.savoir-card.with-image p { position: relative; z-index: 2; }
.savoir-card.with-image { padding: var(--sp-5); justify-content: flex-end; }
.savoir-card.with-image h3 { color: var(--cream); }
.savoir-card.with-image p { color: rgba(247, 243, 236, .85); }
@media (min-width: 720px) {
  .savoir-card { grid-column: span 6; }
  .savoir-card.size-lg { grid-column: span 12; min-height: 360px; }
}
@media (min-width: 1024px) {
  .savoir-card { grid-column: span 4; }
  .savoir-card.size-lg { grid-column: span 8; flex-direction: row; gap: var(--sp-5); align-items: center; }
  .savoir-card.size-lg .ico { margin-bottom: 0; }
  .savoir-card.size-sm { grid-column: span 4; }
}

/* ---------- 9. SPLIT TEXT/IMAGE (alternance) ---------- */
.split {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .split.reverse .split-image { order: 2; }
}
.split-image {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-2);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-tag {
  position: absolute;
  bottom: var(--sp-3); left: var(--sp-3);
  background: var(--cream);
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ardoise);
}

/* ---------- 10. RÉALISATIONS — mosaïque ---------- */
.reals-mosaic {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(6, 1fr);
}
.real-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ardoise);
  aspect-ratio: 4 / 3;
  grid-column: span 6;
  transition: transform var(--t-med);
}
.real-item:hover { transform: translateY(-3px); }
.real-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}
.real-item:hover img { transform: scale(1.05); }
.real-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(31, 42, 48, .85) 100%);
}
.real-caption {
  position: absolute;
  bottom: var(--sp-3); left: var(--sp-3); right: var(--sp-3);
  color: var(--cream);
  z-index: 2;
}
.real-caption .real-type {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--terracotta);
  padding: .25rem .65rem;
  border-radius: var(--r-pill);
  margin-bottom: .55rem;
}
.real-caption h4 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.25;
}
@media (min-width: 720px) {
  .real-item { grid-column: span 3; }
  .real-item.span-3 { grid-column: span 6; aspect-ratio: 16 / 9; }
  .real-item.span-4 { grid-column: span 4; }
  .real-item.span-2 { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .real-item { grid-column: span 2; aspect-ratio: 1 / 1; }
  .real-item.span-3 { grid-column: span 3; aspect-ratio: 4 / 3; }
  .real-item.span-4 { grid-column: span 4; aspect-ratio: 16 / 10; }
  .real-item.span-2 { grid-column: span 2; aspect-ratio: 1 / 1; }
}

/* ---------- 11. POURQUOI NOUS (fond ardoise) ---------- */
.why {
  background: var(--ardoise);
  color: #D9D1C2;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: ""; position: absolute;
  width: 600px; height: 600px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(194, 80, 46, .15) 0%, transparent 70%);
  z-index: 0;
}
.why .container { position: relative; z-index: 2; }
.why h2 { color: var(--cream); }
.why .eyebrow { color: var(--terracotta); }
.why-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 880px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item .num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--terracotta);
  font-style: italic;
  display: block;
  margin-bottom: .5rem;
}
.why-item h4 { color: var(--cream); font-size: 1.15rem; margin-bottom: .5rem; }
.why-item p { color: #B8AF9F; font-size: .95rem; margin: 0; }

/* ---------- 12. COMMUNES ---------- */
.communes-list {
  display: grid;
  gap: 0;
  margin-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.commune-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.commune-row:hover { background: rgba(166, 113, 62, .04); }
.commune-row .num-com {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--bois);
  width: 50px;
}
.commune-row .info h3 {
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
}
.commune-row .cp {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .05em;
}
.commune-row .info p {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: .25rem 0 0;
}
.commune-row .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ardoise);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.commune-row:hover .arrow { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }

/* ---------- 13. FAQ ---------- */
.faq {
  background: var(--cream-deep);
}
.faq-list { max-width: 820px; margin: var(--sp-5) auto 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ardoise);
  line-height: 1.3;
}
.faq-q .plus {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--ardoise);
  display: grid; place-items: center;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--ardoise);
  transition: transform var(--t-fast), background var(--t-fast);
}
.faq-q .plus::before { width: 12px; height: 1.5px; }
.faq-q .plus::after  { width: 1.5px; height: 12px; }
.faq-item.open .faq-q .plus { background: var(--terracotta); border-color: var(--terracotta); }
.faq-item.open .faq-q .plus::before,
.faq-item.open .faq-q .plus::after { background: var(--cream); }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med);
}
.faq-a-inner { padding: 0 0 1.6rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; max-width: 70ch; }
.faq-item.open .faq-a { max-height: 800px; }

/* ---------- 14. CTA FINAL ---------- */
.cta-final {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-card {
  background: linear-gradient(135deg, var(--ardoise) 0%, var(--ardoise-2) 100%);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  color: #D9D1C2;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute;
  width: 400px; height: 400px;
  right: -150px; bottom: -150px;
  background: radial-gradient(circle, rgba(194, 80, 46, .2) 0%, transparent 70%);
}
.cta-card h2 { color: var(--cream); max-width: 18ch; margin-bottom: var(--sp-3); }
.cta-card p { color: #C9C1B2; max-width: 50ch; margin-bottom: var(--sp-5); font-size: var(--fs-lg); }
.cta-card .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 2; }

/* ---------- 15. FOOTER ---------- */
.site-footer {
  background: var(--ardoise);
  color: #B8AF9F;
  padding: var(--sp-7) 0 var(--sp-4);
  position: relative;
}
.footer-grid {
  display: grid;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: var(--cream); margin-bottom: var(--sp-3); }
.footer-brand p { color: #968D7E; font-size: .95rem; max-width: 32ch; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--cream);
  margin: 0 0 var(--sp-3);
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: #B8AF9F; font-size: .95rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(217, 207, 190, .1);
  font-size: .85rem;
  color: #756C5E;
}
.footer-bottom a { color: #968D7E; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- 16. REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 18. PAGE HERO (secondaire) ---------- */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 113, 62, .18) 0%, transparent 70%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.8rem);
  max-width: 22ch;
  margin-bottom: var(--sp-3);
}
.page-hero .lead { max-width: 60ch; margin-bottom: var(--sp-4); }
.page-hero.with-photo {
  display: grid;
  gap: var(--sp-5);
}
.page-hero-grid {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 880px) {
  .page-hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-6); }
}
.page-hero-photo {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--sh-2);
}
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 19. BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--ardoise); font-weight: 500; }

/* ---------- 20. PRESTATION BLOC (detail) ---------- */
.preset-section { padding: var(--sp-7) 0; }
.preset-head {
  max-width: 720px;
  margin-bottom: var(--sp-5);
}
.preset-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 980px) {
  .preset-grid { grid-template-columns: 1.6fr 1fr; gap: var(--sp-6); }
}
.preset-list {
  display: grid;
  gap: var(--sp-3);
}
.preset-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.preset-item:last-child { border-bottom: 0; }
.preset-item .check {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(194, 80, 46, .12);
  color: var(--terracotta);
  display: grid; place-items: center;
  margin-top: 4px;
}
.preset-item .check svg { width: 14px; height: 14px; }
.preset-item h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.preset-item p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

.preset-side {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.preset-side h4 {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: var(--sp-3);
}
.preset-side dl { margin: 0; }
.preset-side dt {
  font-weight: 600;
  color: var(--ardoise);
  margin-top: var(--sp-3);
  font-size: .95rem;
}
.preset-side dt:first-child { margin-top: 0; }
.preset-side dd {
  margin: .2rem 0 0;
  color: var(--ink-soft);
  font-size: .94rem;
}

.preset-info {
  background: rgba(166, 113, 62, .08);
  border-left: 3px solid var(--bois);
  padding: var(--sp-4);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: var(--sp-4);
}
.preset-info strong { color: var(--bois-dark); }
.preset-info p { margin: 0; color: var(--ink); font-size: .96rem; }

/* ---------- 21. PRESET-CARDS (3 col layout pour charpente, gouttières) ---------- */
.preset-cards {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .preset-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .preset-cards { grid-template-columns: repeat(3, 1fr); } }
.preset-cards.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .preset-cards.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .preset-cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.preset-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-fast);
}
.preset-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--bois);
}
.preset-card .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--terracotta);
  display: inline-block;
  margin-bottom: .8rem;
}
.preset-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.preset-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Definition list grid (zinguerie matériaux) */
.def-grid {
  display: grid;
  gap: .8rem;
  margin: var(--sp-3) 0 0;
}
.def-grid div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--sp-3);
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.def-grid div:last-child { border-bottom: 0; }
.def-grid dt {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ardoise);
  font-weight: 500;
  margin: 0;
}
.def-grid dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
}

/* ---------- 22. CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); }
}
.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sh-1);
}
.field {
  display: grid;
  gap: .4rem;
  margin-bottom: var(--sp-3);
}
.field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ardoise);
}
.field label .req { color: var(--terracotta); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; font-family: var(--font-sans); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(194, 80, 46, .12);
}
.field-row {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--ink-soft);
  margin: var(--sp-3) 0;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; }

.contact-info {
  background: var(--ardoise);
  color: #D9D1C2;
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  align-self: start;
}
.contact-info h3 { color: var(--cream); margin-bottom: var(--sp-3); }
.contact-info .info-line {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(217, 209, 194, .12);
}
.contact-info .info-line:last-child { border-bottom: 0; }
.contact-info .info-line svg {
  width: 20px; height: 20px;
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info .info-line strong { display: block; color: var(--cream); font-size: .95rem; margin-bottom: .15rem; }
.contact-info .info-line span,
.contact-info .info-line a { color: #B8AF9F; font-size: .92rem; }
.contact-info .info-line a:hover { color: var(--terracotta); }

/* Phone block per commune */
.phones-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  margin-top: var(--sp-5);
}
@media (min-width: 720px) { .phones-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .phones-grid { grid-template-columns: repeat(3, 1fr); } }
.phone-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: transform var(--t-med), border-color var(--t-fast);
}
.phone-card:hover { transform: translateY(-3px); border-color: var(--terracotta); }
.phone-card .commune-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ardoise);
  margin-bottom: .15rem;
  font-weight: 500;
}
.phone-card .cp-small {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: var(--sp-3);
}
.phone-card .phone-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--terracotta);
}
.phone-card .phone-link svg { width: 16px; height: 16px; }

/* ---------- 23. COMMUNE PAGE LAYOUT ---------- */
.commune-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 980px) {
  .commune-grid { grid-template-columns: 1.5fr 1fr; gap: var(--sp-6); align-items: start; }
}
.commune-content h2 { margin-top: var(--sp-5); }
.commune-content h2:first-child { margin-top: 0; }
.commune-content p { color: var(--ink); margin-bottom: 1.1em; }

.commune-side {
  background: var(--ardoise);
  color: #D9D1C2;
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  position: sticky;
  top: 88px;
}
.commune-side h4 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.commune-side h3 {
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: var(--sp-3);
}
.commune-side .side-row {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(217, 209, 194, .12);
  font-size: .92rem;
}
.commune-side .side-row:last-of-type { border-bottom: 0; }
.commune-side .side-row strong {
  display: block;
  color: var(--cream);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .2rem;
}
.commune-side .side-row span,
.commune-side .side-row a { color: #B8AF9F; }
.commune-side .side-row a:hover { color: var(--terracotta); }
.commune-side .side-cta {
  margin-top: var(--sp-4);
  display: grid;
  gap: .6rem;
}
.commune-side .badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: var(--sp-3);
}
.commune-side .badges span {
  background: rgba(247, 243, 236, .08);
  color: #D9D1C2;
  padding: .3rem .65rem;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 500;
}

/* Commune neighbours nav */
.neighbours {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  margin-top: var(--sp-5);
}
@media (min-width: 720px) { .neighbours { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .neighbours { grid-template-columns: repeat(4, 1fr); } }
.neighbour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ardoise);
  transition: border-color var(--t-fast), transform var(--t-med);
}
.neighbour:hover { border-color: var(--terracotta); transform: translateY(-2px); color: var(--terracotta); }
.neighbour::after { content: "→"; font-family: var(--font-sans); font-size: 1.1rem; }

/* ---------- 24. ABOUT (a-propos) ---------- */
.about-intro {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 880px) {
  .about-intro { grid-template-columns: 1fr 1.1fr; gap: var(--sp-6); }
}
.about-values {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  margin-top: var(--sp-5);
}
@media (min-width: 720px) { .about-values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .about-values { grid-template-columns: repeat(3, 1fr); } }
.about-value {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.about-value .ico {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(194, 80, 46, .1);
  color: var(--terracotta);
  display: grid; place-items: center;
  margin-bottom: var(--sp-3);
}
.about-value .ico svg { width: 24px; height: 24px; }
.about-value h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.about-value p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Process steps */
.steps {
  display: grid;
  gap: var(--sp-3);
  counter-reset: step;
  margin-top: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: var(--sp-4);
  background: var(--cream-deep);
  border-radius: var(--r-md);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: .5rem;
}
.step h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- 25. LEGAL / 404 ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.6rem; margin-top: var(--sp-5); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.2rem; margin-top: var(--sp-4); }
.legal-content p, .legal-content li { color: var(--ink); line-height: 1.75; }
.legal-content ul { padding-left: 1.3rem; list-style: disc; }
.legal-content ul li { margin-bottom: .4rem; }

.error-block {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 10rem);
  font-style: italic;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: var(--sp-3);
}

/* Galerie réalisations (page dédiée) */
.gallery-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  background: var(--cream);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.gallery-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms ease; }
.gallery-item:hover .gallery-photo img { transform: scale(1.05); }
.gallery-body { padding: var(--sp-4); flex: 1; display: flex; flex-direction: column; }
.gallery-body .type {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: .5rem;
}
.gallery-body h3 { font-size: 1.15rem; margin-bottom: .5rem; line-height: 1.3; }
.gallery-body p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 .8rem; }
.gallery-body .loc {
  margin-top: auto;
  font-size: .85rem;
  color: var(--muted);
  display: flex; align-items: center; gap: .4rem;
}

/* ---------- 17. UTILS ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.no-scroll { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
