/* ===================================================================
   MAISON SAINT-MICHEL — Design system (côtier / haut de gamme)
   =================================================================== */

:root {
  /* Palette : océan profond + sable + laiton */
  --ink: #10333f;          /* bleu-vert profond (océan) */
  --ink-2: #0b2530;
  --sea: #2f6f7e;          /* teal */
  --sand: #e9e0d1;         /* sable clair */
  --cream: #f8f5ef;        /* fond principal */
  --cream-2: #f1ece2;
  --surface: #ffffff;
  --text: #23302f;
  --muted: #6a7877;
  --accent: #c1873f;       /* laiton chaud */
  --accent-2: #a96f2d;
  --line: #e5ddd0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 6px 20px rgba(16, 51, 63, 0.08);
  --shadow-md: 0 20px 50px rgba(16, 51, 63, 0.16);
  --shadow-lg: 0 40px 90px rgba(11, 37, 48, 0.28);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typo helpers ---------- */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.3rem;
  color: var(--ink);
}
.lead { font-size: 1.15rem; color: var(--text); margin: 0 0 1.2rem; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  font-weight: 500;
  white-space: nowrap;
}
.btn-sm { padding: 0.7rem 1.4rem; font-size: 0.72rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(193, 135, 63, 0.28); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(193, 135, 63, 0.4); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-3px); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 500; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link-arrow span { color: var(--accent); transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { transform: translateX(5px); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; transition: color 0.45s; }
.scrolled .brand { color: var(--ink); }
.brand-mark {
  font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.04em; line-height: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 50%;
}
.brand-text { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; line-height: 1.15; }
.brand-text em { font-style: italic; color: currentColor; opacity: 0.85; font-size: 0.88rem; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-link {
  color: rgba(255,255,255,0.92); font-size: 0.82rem; letter-spacing: 0.08em;
  position: relative; padding: 0.3rem 0; transition: color 0.3s;
}
.scrolled .nav-link { color: var(--text); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }
.scrolled .nav-link.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1.3rem; }
.header-phone,
.header-email {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.92); font-size: 0.85rem; letter-spacing: 0.05em;
  text-decoration: none; transition: color 0.45s;
}
.scrolled .header-phone,
.scrolled .header-email { color: var(--ink); }
.header-phone .dot,
.header-email .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fd08c; box-shadow: 0 0 0 4px rgba(111,208,140,0.25); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(111,208,140,0.25); } 50% { box-shadow: 0 0 0 7px rgba(111,208,140,0); } }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: all 0.3s var(--ease); }
.scrolled .nav-toggle span { background: var(--ink); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; overflow: hidden;
  transform: scale(1.12);
  animation: heroZoom 18s ease-out forwards;
}
.hero-bg {
  position: absolute; top: -20%; left: 0; width: 100%; height: 140%;
  background: url("assets/header.webp") center/cover no-repeat;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,37,48,0.55) 0%, rgba(11,37,48,0.25) 40%, rgba(11,37,48,0.75) 100%),
    radial-gradient(120% 80% at 20% 20%, rgba(16,51,63,0.15), rgba(11,37,48,0.65));
}
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 820px; padding-top: 84px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 1.4rem;
  opacity: 0; animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-eyebrow .line { width: 42px; height: 1px; background: var(--accent); display: inline-block; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; max-width: 560px; margin: 0 0 1.6rem; opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start;
  margin: 0 0 2rem; padding: 0.55rem 1.15rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50px; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.65s forwards;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0; opacity: 0; animation: fadeUp 0.9s var(--ease) 0.8s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-facts {
  position: relative; z-index: 2;
  background: rgba(11, 37, 48, 0.42);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.14);
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}
.hero-facts-inner { display: flex; align-items: center; }
.hero-fact { flex: 1; padding: 1.6rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.hero-fact + .hero-fact { border-left: 1px solid rgba(255,255,255,0.14); }
.hero-fact-value { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; }
.hero-fact-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.hero-fact-cta { align-items: flex-end; text-align: right; }
.scroll-link { font-size: 0.8rem; letter-spacing: 0.1em; color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: gap 0.3s; }
.scroll-link:hover { color: var(--accent); }

/* ===================== INTRO ===================== */
.intro { background: var(--cream); }
.intro-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro-text p { color: var(--muted); }
.intro-text .lead { color: var(--text); }
.intro-text .link-arrow { margin-top: 0.5rem; }

.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; color: var(--ink); line-height: 1; }
.stat-unit { font-family: var(--font-display); font-size: 0.95rem; color: var(--accent); margin-top: -2px; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

/* ===================== GALERIE ===================== */
.galerie { background: var(--cream-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.gallery-item {
  position: relative; padding: 0; border: none; cursor: pointer; overflow: hidden;
  border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow-sm);
}
.gallery-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,37,48,0.35), rgba(11,37,48,0)); opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,0.9); color: var(--ink);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: 50px;
}

/* ===================== HIGHLIGHT (dépendance) ===================== */
.highlight { background: var(--ink); color: #fff; position: relative; padding-top: clamp(9.5rem, 14vw, 13rem); padding-bottom: clamp(9.5rem, 14vw, 13rem); }
.highlight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.highlight-media { position: relative; }
.highlight-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.highlight-badge {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.1rem;
  padding: 0.7rem 1.4rem; border-radius: 50px; box-shadow: var(--shadow-md);
}
.highlight-text .section-title { color: #fff; }
.highlight-text p { color: rgba(255,255,255,0.8); }
.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.check-list li { position: relative; padding-left: 2rem; color: rgba(255,255,255,0.92); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: rgba(193,135,63,0.2); color: var(--accent); border-radius: 50%; font-size: 0.75rem;
}

/* ===================== ATOUTS ===================== */
.atouts { background: var(--cream); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  font-size: 1.7rem; line-height: 1; width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--cream-2); border-radius: 50%;
}
.feature-name { font-size: 0.92rem; color: var(--text); letter-spacing: 0.02em; }

/* ===================== LOCALISATION ===================== */
.localisation { background: var(--cream-2); }
.localisation-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.localisation-text p { color: var(--muted); }
.localisation-list { margin-top: 1.6rem; }
.localisation-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.localisation-list li span { color: var(--text); font-size: 0.98rem; }
.localisation-list li strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); font-weight: 500; }
.localisation-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 420px; }
.localisation-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(1.05); }

/* ===================== CONTACT ===================== */
.contact { background: var(--ink); color: #fff; padding-top: clamp(9.5rem, 14vw, 13rem); }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-info .section-title { color: #fff; }
.contact-info p { color: rgba(255,255,255,0.78); }
.contact-details { margin-top: 2rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.ci-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ci-value { font-size: 1.1rem; color: #fff; transition: color 0.3s; }
a.ci-value:hover { color: var(--accent); }

.contact-form { background: var(--surface); color: var(--text); padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.field-optional { text-transform: none; letter-spacing: 0; font-size: 0.72rem; color: var(--muted); opacity: 0.85; }
.field input, .field textarea {
  width: 100%; padding: 0.95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.98rem; color: var(--text); background: var(--cream); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(193,135,63,0.14); }
.field textarea { resize: vertical; }
.error { display: block; color: #c0392b; font-size: 0.78rem; margin-top: 0.35rem; min-height: 1rem; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.form-success { margin: 1rem 0 0; padding: 1rem 1.1rem; background: #eef6ee; border: 1px solid #cfe6cf; border-radius: var(--radius); color: #2e6b34; font-size: 0.92rem; }
.form-error { margin: 1rem 0 0; padding: 1rem 1.1rem; background: #fdf0ef; border: 1px solid #efc5c0; border-radius: var(--radius); color: #9b3d34; font-size: 0.92rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-loading { opacity: 0.72; pointer-events: none; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,0.72); padding: 3.5rem 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { font-size: 0.85rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); transition: color 0.3s; }
.footer-nav a:hover { color: var(--accent); }
.footer-note, .footer-copy { margin: 0; font-size: 0.83rem; }
.footer-copy { opacity: 0.55; }

/* ===================== CTA FLOTTANT ===================== */
.floating-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: var(--accent); color: #fff;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  padding: 1rem 1.6rem; border-radius: 50px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none;
  transition: all 0.4s var(--ease);
}
.floating-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta:hover { background: var(--accent-2); transform: translateY(-3px); }

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 24, 31, 0.96); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; animation: fadeIn 0.3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox-figure img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius); margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: rgba(255,255,255,0.85); margin-top: 1.1rem; font-size: 0.95rem; letter-spacing: 0.05em; }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; cursor: pointer; transition: background 0.3s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* ===================== REVEAL + CASCADE ===================== */
/* Arrivée verticale en fondu via @keyframes (n'entre pas en conflit avec
   les transforms de survol). La cascade se fait via animation-delay (JS). */
.reveal { opacity: 0; }
.reveal.visible { opacity: 1; animation: revealUp 0.85s var(--ease) backwards; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== BARRE DE PROGRESSION ===================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 200; background: linear-gradient(90deg, var(--sea), var(--accent));
  box-shadow: 0 0 12px rgba(193,135,63,0.5);
  transition: width 0.1s linear;
}

/* ===================== VAGUES ANIMÉES ===================== */
.wave { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.wave svg { position: relative; display: block; width: 200%; height: 56px; }
.wave-top { top: -1px; }
.wave-top svg { animation: waveShift 14s linear infinite; }
.wave-top path { fill: var(--cream-2); }
.wave-bottom { bottom: -1px; }
.wave-bottom svg { animation: waveShift 18s linear infinite reverse; }
.wave-bottom path { fill: var(--cream); }
@keyframes waveShift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.highlight, .contact { overflow: hidden; }
.highlight .container, .contact .container { position: relative; z-index: 4; }

/* ===================== SURVOL SOBRE DES CARTES ===================== */
/* Léger soulèvement fluide au survol (pas d'effet 3D gadget). */
.stat-card, .feature, .gallery-item {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

/* ===================== REFLET SUR LES BOUTONS ===================== */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: none;
}
.btn-primary:hover::after { animation: shine 0.8s var(--ease); }
@keyframes shine { to { left: 140%; } }

/* ===================== KEN BURNS (photo vedette) ===================== */
.gallery-feature img { animation: kenBurns 18s ease-in-out infinite alternate; }
.gallery-feature:hover img { animation-play-state: paused; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ===================== CADRE PARALLAXE (dépendance) ===================== */
.highlight-media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.highlight-media-frame img { transform: scale(1.18); will-change: transform; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: none; border-radius: 0; }

/* Flottement doux du badge + CTA flottant */
.highlight-badge { animation: floaty 4s ease-in-out infinite; }
.floating-cta.show { animation: ctaPop 0.5s var(--ease); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ctaPop { from { transform: translateY(20px) scale(0.9); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-facts, .hero-badge { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-media, .hero-bg, .gallery-feature img, .highlight-badge, .wave svg { animation: none !important; }
  .highlight-media-frame img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ===================== BALADE PHOTO ===================== */
.section-lead {
  max-width: 620px; margin: 0.8rem auto 0; text-align: center; color: var(--muted);
  font-size: 1.05rem; line-height: 1.65;
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.5rem;
  align-items: start;
}

.tour-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tour-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}

.tour-zone {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.35rem;
}

.tour-title {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 500;
  margin: 0 0 0.25rem; line-height: 1.15;
}

.tour-caption { margin: 0; color: var(--muted); font-size: 0.92rem; }

.tour-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.tour-action {
  border: 1px solid var(--line); background: var(--cream);
  color: var(--ink); font-family: var(--font-sans); font-size: 0.82rem;
  padding: 0.55rem 0.85rem; border-radius: var(--radius); cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.tour-action:hover { background: #fff; border-color: var(--accent); }

.tour-viewer {
  position: relative; aspect-ratio: 16 / 10; background: var(--ink-2);
  overflow: hidden;
}
.tour-viewer.is-changing .tour-image { opacity: 0.35; transform: scale(1.02); }

.tour-image {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}

.tour-hotspots { position: absolute; inset: 0; pointer-events: none; }

.tour-hotspot {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(193, 135, 63, 0.92); color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  display: grid; place-items: center;
  animation: tourPulse 2s ease-in-out infinite;
  transition: transform 0.2s, background 0.2s;
}
.tour-hotspot::before {
  content: ""; width: 10px; height: 10px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, 1px);
}
.tour-hotspot:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-2); }

.tour-hotspot-label {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: rgba(16, 51, 63, 0.88); color: #fff;
  font-size: 0.75rem; letter-spacing: 0.04em; padding: 0.35rem 0.65rem;
  border-radius: 4px; pointer-events: none;
}

@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 135, 63, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(193, 135, 63, 0); }
}

.tour-nav {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid var(--line);
}

.tour-nav-btn {
  border: 1px solid var(--line); background: var(--cream-2);
  font-family: var(--font-sans); font-size: 0.82rem;
  padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tour-nav-btn:hover { background: #fff; border-color: var(--accent); color: var(--accent-2); }

.tour-sidebar {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.2rem;
  position: sticky; top: 100px;
}

.tour-map-title {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem;
}

.tour-map-group + .tour-map-group { margin-top: 1rem; }

.tour-map-heading {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sea); margin: 0 0 0.45rem;
}

.tour-map-list { display: flex; flex-direction: column; gap: 0.35rem; }

.tour-map-btn {
  text-align: left; border: none; background: transparent;
  font-family: var(--font-sans); font-size: 0.88rem; color: var(--text);
  padding: 0.45rem 0.55rem; border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tour-map-btn:hover { background: var(--cream-2); }
.tour-map-btn.is-active { background: rgba(193, 135, 63, 0.14); color: var(--accent-2); font-weight: 500; }

.tour-hint {
  margin: 1.2rem 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .intro-inner, .highlight-inner, .localisation-inner, .contact-inner { grid-template-columns: 1fr; }
  .tour-layout { grid-template-columns: 1fr; }
  .tour-sidebar { position: static; }
  .highlight-media { order: -1; max-width: 560px; }
  .contact-form { order: 2; }
  .gallery-feature { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; top: 0; right: 0;
    width: min(84vw, 340px); height: 100vh;
    background: var(--cream); flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 3rem 2.4rem; gap: 1.8rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(0); }
  .nav-link { color: var(--ink); font-size: 1.15rem; }
  .scrolled .nav-link { color: var(--ink); }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-facts-inner { flex-wrap: wrap; }
  .hero-fact { flex: 1 1 50%; min-width: 50%; }
  .hero-fact:nth-child(1), .hero-fact:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .hero-fact + .hero-fact:nth-child(odd) { border-left: none; }
  .hero-fact-cta { display: none; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .intro-stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-feature { grid-column: span 2; aspect-ratio: 4/3; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-toolbar { flex-direction: column; }
  .tour-hotspot-label { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .floating-cta { left: 16px; right: 16px; text-align: center; }
}

@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
}
