/* ══════════════════════════════════════════════════════════════
   style.css — Patrick Joeghmans · Maçonnerie Ancienne
   Feuille de styles partagée — toutes les pages
   ══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; overflow-x: hidden; }
body {
  background: var(--bg1);
  color: var(--text1);
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.618;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --bg1: #1a1612;
  --bg2: #2a2520;
  --bg3: #0f0d0a;
  --gold: #d4a843;
  --gold2: #b8960c;
  --text1: #f0ead6;
  --text2: #c8bfa8;
  --sep: rgba(212, 168, 67, .4);
  /* Échelle typographique — φ = 1.618, base 1rem = 18 px */
  --fs-xs:  0.786rem;  /* ~14 px */
  --fs-base: 1rem;     /* 18 px  */
  --fs-md:  1.272rem;  /* ~23 px */
  --fs-lg:  1.618rem;  /* ~29 px */
  --fs-xl:  2.058rem;  /* ~37 px */
  --fs-2xl: 2.618rem;  /* ~47 px */
  --fs-3xl: 4.236rem;  /* ~76 px */
  /* Espacement sections */
  --section-pad-y: 4rem;      /* ~72px desktop */
  --section-pad-x: 1.618rem;
  --header-h: 72px;
  /* Cartes */
  --card-gap: 1.778rem;       /* ~32px desktop */
  --card-pad-y: 2rem;
  --card-pad-x: 1.618rem;
}

/* ─── TYPOGRAPHIE ────────────────────────────────────────────── */
h1, h2, h3, h4, .cinzel { font-family: 'Cinzel', serif; }
h1 {
  font-size: clamp(2.618rem, 5vw, 4.236rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.618rem, 3.5vw, 2.618rem);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.2;
}
h3 {
  font-size: clamp(1.272rem, 2.2vw, 1.618rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
}
h4 { font-size: var(--fs-base); letter-spacing: .04em; line-height: 1.2; }
p { font-size: var(--fs-base); letter-spacing: normal; line-height: 1.65; }

/* ─── UTILITAIRES ────────────────────────────────────────────── */
.gold { color: var(--gold); }
.ornament {
  display: block;
  text-align: center;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: var(--fs-lg);
  margin: 1rem 0;
  letter-spacing: .3em; /* décoratif — exception assumée */
}
.section-title {
  text-align: center;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212,168,67,.3);
  margin-bottom: .5rem;
}
.section-sub {
  text-align: center;
  color: var(--text2);
  font-style: italic;
  font-size: var(--fs-md);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.divider { width: 100%; height: 1px; background: var(--sep); margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; }
section {
  padding: var(--section-pad-y) var(--section-pad-x);
  scroll-margin-top: var(--header-h);
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── INTRO PORTAL ───────────────────────────────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  transition: opacity .9s cubic-bezier(.4,0,.2,1);
}
.intro-bg {
  position: absolute; inset: 0;
  background: var(--bg3);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212,168,67,.05) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.012) 2px, rgba(255,255,255,.012) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,.04) 3px, rgba(0,0,0,.04) 6px);
}
#intro.open  { opacity: 0; pointer-events: none; }
#intro.gone  { display: none; }

.intro-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}

/* Couronne */
.intro-crown {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212,168,67,.6), 0 0 60px rgba(212,168,67,.25);
  opacity: 0;
  transform: translateY(-18px);
  animation: introSlideDown .7s cubic-bezier(.22,1,.36,1) forwards .2s;
  margin-bottom: .4rem;
}

/* Grand chiffre "10" */
.intro-hero-number {
  font-family: 'Cinzel', serif;
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(212,168,67,.55), 0 4px 40px rgba(0,0,0,.9);
  opacity: 0;
  transform: scale(.82);
  animation: introScaleIn .85s cubic-bezier(.22,1,.36,1) forwards .5s;
  margin: 0;
}

/* "ans de société" */
.intro-hero-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(.9rem, 2.5vw, 1.272rem);
  font-weight: 600;
  color: var(--text1);
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  animation: introFadeUp .65s ease forwards .95s;
  margin-top: -.1rem;
  margin-bottom: .8rem;
}

/* Filet séparateur */
.intro-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: introExpand .8s ease forwards 1.2s;
  margin: .3rem 0 .9rem;
  align-self: center;
}

/* Nom */
.intro-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  font-weight: 600;
  color: var(--text1);
  letter-spacing: .08em;
  text-shadow: 0 0 20px rgba(212,168,67,.15);
  opacity: 0;
  animation: introFadeUp .65s ease forwards 1.5s;
}

/* Tagline */
.intro-tagline {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xs);
  color: var(--text2);
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: 0;
  animation: introFadeUp .65s ease forwards 1.8s;
  margin-top: .3rem;
}

/* Ornement ⚜ */
.intro-ornament {
  font-size: var(--fs-lg); color: var(--gold); opacity: 0;
  display: block; margin-top: .6rem;
  animation: introFadeUp .5s ease forwards 2.1s, pulse 2.5s ease-in-out infinite 2.6s;
}

/* Bouton Entrer */
.intro-btn {
  pointer-events: all;
  display: inline-block; padding: .6rem 2rem;
  border: 1px solid var(--sep);
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  color: var(--text2); cursor: pointer;
  opacity: 0; animation: introFadeUp .6s ease forwards 2.5s;
  background: transparent; transition: border-color .3s, color .3s;
  margin-top: .8rem;
}
.intro-btn:hover { border-color: var(--gold); color: var(--gold); }

@keyframes introSlideDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes introScaleIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes introExpand {
  to { width: min(220px, 50vw); }
}
@keyframes fadeChar { to { opacity: 1; } }
@keyframes fadeIn   { to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { text-shadow: 0 0 10px rgba(212,168,67,.3); }
  50%       { text-shadow: 0 0 35px rgba(212,168,67,.85); }
}

/* ─── HEADER ─────────────────────────────────────────────────── */
header, #header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
  background: transparent;
}
header.scrolled, #header.scrolled {
  background: rgba(26, 22, 18, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.header-brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.header-brand a { display: flex; align-items: center; gap: .8rem; }
.header-brand img { height: 44px; width: auto; filter: brightness(.9); }
.brand-text { line-height: 1; }
.brand-name {
  font-family: 'Cinzel', serif; font-size: var(--fs-base);
  font-weight: 700; color: var(--gold); letter-spacing: .05em;
}
.brand-sub { font-size: var(--fs-xs); color: var(--text2); letter-spacing: .12em; text-transform: uppercase; }
nav ul { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xs);
  letter-spacing: .1em;      /* ← max .12em */
  text-transform: uppercase;
  color: var(--text2); transition: color .3s;
}
nav a:hover, nav a.active, nav a.nav-current { color: var(--gold); }
@keyframes header-phone-shimmer {
  0%   { background-position: -200% center; }
  40%  { background-position: 200% center; }
  100% { background-position: 200% center; }
}
.header-phone {
  display: inline-block;
  padding: .42rem .78rem;
  border: 1px solid var(--sep);
  background: linear-gradient(
    105deg,
    rgba(212,168,67,.08) 35%,
    rgba(212,168,67,.45) 50%,
    rgba(212,168,67,.08) 65%
  );
  background-size: 250% auto;
  animation: header-phone-shimmer 5s ease-in-out infinite;
  font-family: 'Cinzel', serif; font-size: var(--fs-xs);
  color: var(--gold); letter-spacing: .05em; white-space: nowrap; flex-shrink: 0;
  transition: border-color .25s, color .25s;
}
.header-phone:hover {
  text-decoration: none;
  border-color: var(--gold);
  color: var(--text1);
  animation-play-state: paused;
}

/* ─── BURGER ─────────────────────────────────────────────────── */
.burger-toggle { display: none; }
.burger-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; }
.burger-label span { display: block; width: 24px; height: 2px; background: var(--gold); transition: transform .3s, opacity .3s; }

/* ─── BOUTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .786rem 1.618rem;
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; border: none; border-radius: 0;
  transition: box-shadow .3s, transform .15s;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:hover  { box-shadow: 0 4px 15px rgba(212,168,67,.35); }
.btn:active { box-shadow: inset 0 2px 8px rgba(0,0,0,.4); transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--bg1); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(212,168,67,.08); }

/* ─── HERO (page d'accueil) ──────────────────────────────────── */
@keyframes kenburns-a { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.1) translate(-2%,-1%); } }
@keyframes kenburns-b { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.1) translate(2%,-1%); } }
@keyframes kenburns-c { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.1) translate(-1%,2%); } }
#hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-slides-wrap { position: absolute; inset: -15%; will-change: transform; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: sepia(.3) brightness(.82) contrast(1.1);
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.active            { opacity: 1; animation: kenburns-a 9s ease-out forwards; }
.hero-slide:nth-child(2).active { animation-name: kenburns-b; }
.hero-slide:nth-child(3).active { animation-name: kenburns-c; }
.hero-slide:nth-child(4).active { animation-name: kenburns-a; }
.hero-slide:nth-child(5).active { animation-name: kenburns-b; }
.hero-slide:nth-child(6).active { animation-name: kenburns-c; }
.hero-slide:nth-child(7).active { animation-name: kenburns-a; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(26,22,18,.65), rgba(26,22,18,.45)); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem 1.618rem; max-width: 860px; }
.hero-h1 { text-shadow: 0 0 40px rgba(212,168,67,.35); color: var(--text1); margin-bottom: 1rem; }
.hero-h1 .word {
  display: inline-block; opacity: 0;
  transform: translateY(-15px);
  transition: opacity .6s ease, transform .6s ease; margin-right: .25em;
}
.hero-h1 .word.visible { opacity: 1; transform: translateY(0); }
.hero-h2 {
  font-family: 'Cinzel', serif; font-size: var(--fs-xs);
  color: var(--gold); letter-spacing: .12em; /* ← réduit depuis .2em */
  text-transform: uppercase; margin-bottom: 1.2rem;
  opacity: 0; animation: fadeIn .8s forwards 1.8s;
}
.hero-accroche {
  color: var(--text2); font-size: var(--fs-md); font-style: italic;
  margin-bottom: 2.5rem; line-height: 1.5;
  opacity: 0; animation: fadeIn .8s forwards 2.1s;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeIn .8s forwards 2.4s; }
.hero-badges {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 3rem;
  padding: 1.2rem 1.618rem;
  background: rgba(26, 22, 18, .75); border-top: 1px solid var(--sep); flex-wrap: wrap;
}
.hero-badge { display: flex; align-items: center; gap: .6rem; font-family: 'Cinzel', serif; font-size: var(--fs-xs); letter-spacing: .08em; color: var(--text2); }
.hero-badge i { color: var(--gold); font-size: var(--fs-base); }
.hero-dots { position: absolute; bottom: 5rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .5rem; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(240,234,214,.4); border: none; cursor: pointer; transition: background .3s, transform .3s; }
.hero-dot.active { background: var(--gold); transform: scale(1.4); }

/* ─── SAVOIR-FAIRE ───────────────────────────────────────────── */
#savoir-faire { background: var(--bg2); }
.sf-text { max-width: 720px; margin: 0 auto 2rem; text-align: center; color: var(--text2); font-size: var(--fs-md); font-style: italic; line-height: 1.6; }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--card-gap);
  align-items: stretch;
}
.card {
  border: 1px solid rgba(212,168,67,.3);
  padding: var(--card-pad-y) var(--card-pad-x);
  background: rgba(26, 22, 18, .6);
  transition: box-shadow .3s, transform .3s;
  will-change: transform;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 6px 25px rgba(212,168,67,.15); transform: translateY(-4px); }
.card-icon { font-size: var(--fs-lg); color: var(--gold); margin-bottom: .8rem; display: block; }
.card h3 { color: var(--gold); margin-bottom: .6rem; }
.card p  { color: var(--text2); }

/* ─── CHIFFRES CLÉS ──────────────────────────────────────────── */
#chiffres { background: var(--bg1); border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); }
.chiffres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; max-width: 960px; margin: 0 auto; }
.chiffre-val { font-family: 'Cinzel', serif; font-size: clamp(2.618rem, 7vw, 4.236rem); color: var(--gold); font-weight: 700; text-shadow: 0 0 30px rgba(212,168,67,.3); line-height: 1; }
.chiffre-label { color: var(--text2); font-style: italic; font-size: var(--fs-base); margin-top: .4rem; }

/* ─── SERVICES ───────────────────────────────────────────────── */
#services { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
  align-items: stretch;
}
.service-card {
  border: 1px solid rgba(212,168,67,.25);
  padding: var(--card-pad-y) var(--card-pad-x);
  background: rgba(15, 13, 10, .5);
  transition: box-shadow .3s, transform .3s;
  will-change: transform;
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: 0 8px 30px rgba(212,168,67,.2); transform: translateY(-5px); }
.service-card .svc-icon { font-size: var(--fs-lg); color: var(--gold); margin-bottom: .8rem; }
.service-card h3 { color: var(--gold); margin-bottom: 1rem; }
.service-card ul { padding-left: .5rem; flex: 1; }
.service-card li { color: var(--text2); padding: .2rem 0 .2rem 1rem; position: relative; }
.service-card li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }

/* ─── GALERIE aperçu ─────────────────────────────────────────── */
#realisations { background: var(--bg1); }
.gallery { columns: 3 240px; column-gap: 1rem; max-width: 1200px; margin: 0 auto; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border: 1px solid rgba(212,168,67,.2); cursor: pointer; }
.gallery-item img { width: 100%; display: block; filter: sepia(.4) brightness(.8) contrast(1.1); transition: filter .5s ease, transform .5s ease; }
.gallery-item:hover img { filter: sepia(0) brightness(1) contrast(1); transform: scale(1.04); }

/* ─── POURQUOI ───────────────────────────────────────────────── */
#pourquoi { background: var(--bg2); }
.cards-2x2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* ─── À PROPOS ───────────────────────────────────────────────── */
#apropos { background: var(--bg1); }
.apropos-grid { display: grid; grid-template-columns: 1fr; gap: 2.618rem; align-items: start; max-width: 800px; margin: 0 auto; }
.apropos-img { border: 1px solid rgba(212,168,67,.4); overflow: hidden; box-shadow: 0 0 30px rgba(0,0,0,.5); }
.apropos-img img { width: 100%; height: auto; filter: sepia(.3) brightness(.85) contrast(1.1); }
.apropos-placeholder { aspect-ratio: 3/4; background: var(--bg2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--text2); }
.apropos-placeholder i { font-size: 4rem; color: var(--gold); opacity: .4; }
.apropos-text { text-align: center; }
.apropos-text h2 { color: var(--gold); margin-bottom: .5rem; text-shadow: 0 0 20px rgba(212,168,67,.25); }
.apropos-text p  { color: var(--text2); margin-bottom: 1.5rem; }
/* Timeline */
@keyframes tlOrnamentPulse {
  0%,100% { text-shadow: 0 0 4px rgba(212,168,67,.3); transform: scale(1); }
  50%      { text-shadow: 0 0 16px rgba(212,168,67,.9); transform: scale(1.25); }
}
@keyframes tlUnderline {
  from { width: 0; }
  to   { width: 60%; }
}
.timeline { position: relative; padding-left: 0; margin-top: 2rem; text-align: center; display: flex; flex-direction: column; gap: 0; }
.timeline::before { display: none; }
.timeline.animate::before { height: 100%; }
.tl-item { position: relative; margin-bottom: 2rem; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.tl-item.visible { opacity: 1; transform: translateY(0) scale(1); }
.tl-item::before { content: '⚜'; position: static; display: block; font-size: .85rem; color: var(--gold); margin-bottom: .4rem; background: none; box-shadow: none; width: auto; height: auto; border-radius: 0; }
.tl-item.visible::before { animation: tlOrnamentPulse 2s ease-in-out infinite; }
.tl-item h3,
.tl-item h4 { font-family: 'Cinzel', serif; color: var(--gold); margin-bottom: .4rem; position: relative; display: inline-block; }
.tl-item h3::after,
.tl-item h4::after { content: ''; display: block; height: 1px; background: var(--gold); opacity: .4; width: 0; margin: .3rem auto 0; transition: none; }
.tl-item.visible h3::after,
.tl-item.visible h4::after { animation: tlUnderline .8s .3s cubic-bezier(.22,1,.36,1) forwards; }
.tl-item p  { color: var(--text2); }
.badge-zone { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--sep); padding: .5rem 1.2rem; margin-top: 1.5rem; font-family: 'Cinzel', serif; font-size: var(--fs-xs); color: var(--text2); letter-spacing: .08em; margin-left: auto; margin-right: auto; }
.badge-zone i { color: var(--gold); }

/* ─── AVIS ───────────────────────────────────────────────────── */
#avis { background: var(--bg2); }
/* CAROUSEL FIX : width explicite sur wrap + track pour que translateX(%) soit fiable */
.carousel-wrap { position: relative; overflow: hidden; max-width: 720px; width: 100%; margin: 0 auto; }
.carousel-track { display: flex; width: 100%; transition: transform .6s ease; }
.avis-card {
  flex: 0 0 100%;   /* chaque slide = 100% du wrap, pas de rétrécissement */
  width: 100%;
  padding: 2rem 1.618rem;
  border: 1px solid rgba(212,168,67,.25);
  background: rgba(26, 22, 18, .7);
  box-sizing: border-box;
}
.avis-quote { font-family: 'Cinzel', serif; font-size: var(--fs-2xl); color: var(--gold); line-height: .8; margin-bottom: .5rem; opacity: .5; }
.avis-text  { font-style: italic; color: var(--text1); font-size: var(--fs-md); margin-bottom: 1.5rem; line-height: 1.6; }
.avis-stars  { color: var(--gold); font-size: var(--fs-base); margin-bottom: .4rem; }
.avis-author { font-family: 'Cinzel', serif; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.carousel-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text2); cursor: pointer; transition: background .3s, transform .3s; border: none; }
.dot.active { background: var(--gold); transform: scale(1.3); }

/* ─── FAQ ────────────────────────────────────────────────────── */
#faq { background: var(--bg1); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid rgba(212,168,67,.25); margin-bottom: .8rem; }
.faq-item input[type=checkbox] { display: none; }
.faq-label { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; cursor: pointer; font-family: 'Cinzel', serif; font-size: var(--fs-base); color: var(--text1); letter-spacing: .04em; transition: color .3s; gap: 1rem; }
.faq-label:hover { color: var(--gold); }
.faq-label .faq-icon { font-size: var(--fs-md); color: var(--gold); transition: transform .3s; flex-shrink: 0; }
.faq-item input:checked ~ .faq-label .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .45s ease, padding .3s; padding: 0 1.5rem; color: var(--text2); line-height: 1.65; }
.faq-item input:checked ~ .faq-answer { max-height: 300px; padding: 1rem 1.5rem 1.5rem; }

/* ─── CONTACT ────────────────────────────────────────────────── */
/* ─── CONTACT ───────────────────────────────────────────────── */
#contact, .contact-section {
  position: relative;
  background: var(--bg1);
}
#contact::before, .contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 18% 50%, rgba(212,168,67,.045) 0%, transparent 60%),
    linear-gradient(160deg, rgba(42,37,32,.98) 0%, rgba(15,13,10,1) 100%);
  pointer-events: none;
}
#contact .container, .contact-section .container { position: relative; z-index: 1; }

/* En-tête de section */
.contact-header { text-align: center; margin-bottom: 3rem; }
.contact-overline {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.contact-title {
  font-size: clamp(1.618rem, 3.5vw, 2.618rem);
  color: var(--text1);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  margin-bottom: 1.4rem;
}
.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}
.cbadge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem 1.1rem;
  border: 1px solid rgba(212,168,67,.35);
  border-radius: 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: .08em;
  color: var(--text2);
  background: rgba(212,168,67,.07);
}
.cbadge i { color: var(--gold); font-size: .68rem; }

/* Grille contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.618rem;
  align-items: start;
}

/* Colonne info */
.contact-info { padding: .5rem 0; }
.contact-intro-text {
  color: var(--text2);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.65;
  margin-bottom: 2rem;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text1);
}
.contact-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212,168,67,.1);
  border: 1px solid rgba(212,168,67,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: .9rem;
}
.citem-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .2rem;
}
.contact-item a:hover { color: var(--gold); text-decoration: underline; }

/* Carte formulaire */
.form-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,168,67,.18);
  border-radius: 8px;
  padding: 2rem 1.8rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.form-card form { display: grid; gap: 1rem; }
form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text2);
}
input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 4px;
  color: var(--text1);
  padding: .8rem 1rem;
  font-family: 'EB Garamond', serif;
  font-size: var(--fs-base);
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,.12);
  background: rgba(255,255,255,.07);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
select option { background: var(--bg1); }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: rgba(200,191,168,.45); }
.btn-form {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2rem;
  margin-top: .4rem;
}

/* ─── PAGE HERO (pages intérieures) ─────────────────────────── */
.page-hero {
  position: relative; min-height: 44vh;
  padding-top: var(--header-h);
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: rgba(15, 13, 10, .75); }
.page-hero .hero-content { position: relative; z-index: 1; padding: 2.618rem 1.618rem; }
.page-title { font-size: clamp(2.618rem, 6vw, 4.236rem); font-weight: 700; letter-spacing: .05em; line-height: 1.15; color: var(--text1); text-shadow: 0 0 40px rgba(212,168,67,.3); margin-bottom: .3rem; }
.page-sub   { color: var(--text2); font-style: italic; font-size: var(--fs-md); margin-top: .5rem; line-height: 1.5; }

/* ─── CTA (pages intérieures) ────────────────────────────────── */
.cta-section { background: var(--bg2); border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); }
.cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
#lightbox { display: none; position: fixed; inset: 0; z-index: 8000; background: rgba(0,0,0,.92); align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border: 1px solid var(--sep); }
#lightbox .lb-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: var(--fs-lg); color: var(--gold); cursor: pointer; background: none; border: none; line-height: 1; }

/* ─── BOUTON FLOTTANT ────────────────────────────────────────── */
.float-call { display: none; position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 5000; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--bg1); align-items: center; justify-content: center; font-size: var(--fs-md); box-shadow: 0 4px 20px rgba(212,168,67,.45); border: none; cursor: pointer; transition: transform .2s, box-shadow .2s; text-decoration: none; }
.float-call:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(212,168,67,.6); }

/* ─── GOOGLE MAP ─────────────────────────────────────────────── */
.map-wrap { margin-top: 2.5rem; border: 1px solid var(--sep); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; filter: sepia(.4) brightness(.65) contrast(1.1) saturate(.8); }

/* ─── COMPARATIF CARTES (OPTION 1 / OPTION 2) ──────────────── */
.map-compare {
  margin-top: 2.5rem;
}
.map-option h3 {
  color: var(--gold);
  margin-bottom: .8rem;
  font-size: var(--fs-base);
  letter-spacing: .05em;
}
.map-option .map-wrap { margin-top: 0; }
.map-wrap-leaflet { height: 320px; }
#map150 {
  width: 100%;
  height: 100%;
  background: var(--bg2);
}
#map150 .leaflet-control-attribution {
  background: rgba(26,22,18,.75);
  color: var(--text2);
}
#map150 .leaflet-control-attribution a { color: var(--gold); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--bg3); padding: 3rem 1.618rem 1.618rem; border-top: 1px solid var(--sep); }
.footer-grid { display: grid; grid-template-columns: 1.618fr 1fr 1fr; gap: 2.618rem; max-width: 1200px; margin: 0 auto 2rem; }
.footer-brand .brand-name { margin-bottom: .3rem; }
.footer-brand p { color: var(--text2); margin-top: .5rem; }
.footer-col h4 { font-family: 'Cinzel', serif; color: var(--gold); font-size: var(--fs-xs); letter-spacing: .12em; margin-bottom: .8rem; }
.footer-col a  { display: block; color: var(--text2); margin-bottom: .4rem; transition: color .3s; }
.footer-col a i { margin-right: .4rem; color: var(--gold); font-size: var(--fs-xs); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { text-align: center; color: rgba(200, 191, 168, .45); font-size: var(--fs-xs); border-top: 1px solid rgba(255,255,255,.05); padding-top: 1.2rem; max-width: 1200px; margin: 0 auto; letter-spacing: .04em; }
.footer-bottom .footer-link-rows { margin-top: .6rem; }
.footer-bottom .footer-link-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.footer-bottom .footer-link-row--legal { margin-bottom: .35rem; }
.footer-bottom .legal-mini-link {
  display: inline-block;
  font-size: .68rem;
  color: rgba(200, 191, 168, .75);
  letter-spacing: .04em;
  margin: 0;
}
.footer-bottom .legal-mini-link:hover { color: var(--gold); }

/* ─── ZONES D'INTERVENTION ──────────────────────────────────── */
.zone-pill {
  display: inline-block;
  padding: .45rem 1.1rem;
  border: 1px solid rgba(212,168,67,.35);
  border-radius: 2rem;
  color: var(--text2);
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xs);
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.zone-pill:hover { background: rgba(212,168,67,.12); color: var(--gold); border-color: var(--gold); }
.zone-pill--sm {
  padding: .25rem .7rem;
  font-size: .62rem;
  letter-spacing: .05em;
}

/* ─── NAV CONTACT MOBILE (masqué sur desktop) ───────────────── */
.nav-contact-mobile { display: none; }
/* ─── NAV CLOSE (croix fermeture menu mobile) ─────────────── */
.nav-close { display: none; }
/* ─── FOCUS GLOBAL ───────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 2.2rem;
    --section-pad-x: 1rem;
    --card-gap: 1rem;
  }
  .section-title { margin-bottom: .35rem; }
  .section-sub { font-size: 1.05rem; margin-bottom: 1.2rem; }
  .ornament { margin: .6rem 0 .8rem; }
  .burger-label { display: flex; }
  nav {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    background: rgba(26, 22, 18, .98);
    flex-direction: column; padding: 5rem 2rem 2rem;
    transition: right .35s ease; border-left: 1px solid var(--sep); z-index: 999;
  }
  .burger-toggle:checked ~ nav { right: 0; }
  .burger-toggle:checked ~ .burger-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger-toggle:checked ~ .burger-label span:nth-child(2) { opacity: 0; }
  .burger-toggle:checked ~ .burger-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav ul { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  nav a  { font-size: var(--fs-base); }
  .header-phone { display: none; }
  .nav-contact-mobile { display: list-item; }
  .nav-contact-mobile a {
    display: inline-block;
    margin-top: .4rem;
    padding: .55rem 1.4rem;
    background: rgba(212,168,67,.12);
    border: 1px solid rgba(212,168,67,.45);
    border-radius: 2rem;
    color: var(--gold);
    font-size: var(--fs-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text2);
    cursor: pointer;
    border-radius: 50%;
    transition: color .2s, background .2s;
  }
  .nav-close:hover { color: var(--gold); background: rgba(212,168,67,.1); }
  .hero-badges {
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    padding: .6rem .65rem;
  }
  .hero-badge {
    justify-content: center;
    text-align: center;
    gap: .3rem;
    font-size: .62rem;
    letter-spacing: .03em;
    line-height: 1.2;
  }
  .hero-badge i { font-size: .72rem; }
  .hero-dots { bottom: 4rem; }
  #savoir-faire { padding-top: 2.2rem; padding-bottom: 2.2rem; }
  #chiffres { padding-top: 2rem; padding-bottom: 2rem; }
  .chiffres-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
  }
  .chiffre-val { font-size: clamp(2rem, 12vw, 2.7rem); }
  .chiffre-label { font-size: .92rem; margin-top: .2rem; }
  .sf-text {
    font-size: 1.08rem;
    line-height: 1.45;
    margin-bottom: 1.2rem;
  }
  .cards-3 { gap: .85rem; }
  .cards-3 .card { padding: 1rem .95rem; }
  .cards-3 .card h3 { font-size: 1.02rem; margin-bottom: .35rem; }
  .cards-3 .card p { font-size: .95rem; line-height: 1.4; }
  .services-grid { gap: .85rem; }
  .service-card { padding: 1.15rem .95rem; }
  .service-card h3 { margin-bottom: .55rem; }
  .service-card li { padding: .05rem 0 .05rem .85rem; }
  /* Carrousel mobile: Domaines d'intervention */
  .services-grid {
    display: flex;
    overflow-x: auto;
    gap: .75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: .2rem .1rem .45rem;
    margin: 0 -.1rem;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .services-grid { scrollbar-width: none; }
  .services-grid .service-card {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: center;
  }
  #realisations { padding-top: 2.1rem; padding-bottom: 2.1rem; }
  /* Carrousel mobile: Réalisations */
  .gallery {
    columns: initial;
    display: flex;
    overflow-x: auto;
    gap: .75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: .2rem .1rem .45rem;
    margin: 0 -.1rem;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery { scrollbar-width: none; }
  .gallery-item {
    flex: 0 0 78vw;
    scroll-snap-align: center;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  #avis { padding-top: 2.1rem; padding-bottom: 2.1rem; }
  .carousel-wrap { max-width: 100%; }
  .avis-card { padding: 1.35rem 1rem; }
  .avis-text { font-size: 1.05rem; margin-bottom: .9rem; line-height: 1.45; }
  #faq { padding-top: 2.1rem; padding-bottom: 2.1rem; }
  .faq-label { padding: .78rem .95rem; }
  .faq-answer { padding: 0 .95rem; }
  .faq-item input:checked ~ .faq-answer { padding: .7rem .95rem .95rem; }
  .cards-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apropos-grid { grid-template-columns: 1fr; }
  .apropos-text p { margin-bottom: .95rem; line-height: 1.5; }
  .timeline { margin-top: 1rem; }
  .tl-item { margin-bottom: .9rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-header { margin-bottom: 1.5rem; }
  .contact-intro-text { margin-bottom: 1.1rem; }
  .contact-item { margin-bottom: .95rem; }
  .form-card { padding: 1.25rem .95rem; }
  .btn-form { width: 100%; justify-content: center; }
  .map-wrap { margin-top: 1.3rem; }
  .map-wrap iframe, .map-wrap-leaflet { height: 260px; }
  .footer-grid  { grid-template-columns: 1fr; }
  footer { padding-top: 2rem; }
  .desktop-only { display: none !important; }
  .float-call { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards-2x2 { grid-template-columns: 1fr; }
  .services-grid .service-card { flex-basis: 90%; max-width: 90%; }
  .gallery-item { flex-basis: 86vw; aspect-ratio: 1 / 1; }
  .hero-btns { flex-direction: row; align-items: center; gap: .55rem; }
  #hero .btn { width: auto; max-width: none; padding: .62rem .95rem; text-align: center; }
}
