/* ==========================================================================
   J'ai 1001 façons de voir Dieppe — Feuille de style principale
   Palette : bleu marine + accents sable / écume
   Style : classique / pro, glassmorphism, animations fluides
   ========================================================================== */

:root {
  --navy-900: #061229;
  --navy-800: #0a1c3d;
  --navy-700: #0e2650;
  --navy-600: #143262;
  --navy-500: #1d4380;
  --navy-400: #2c5aa0;

  --sand: #d9b382;
  --sand-light: #e8cfa8;
  --mint: #7fd7c4;
  --sky: #8fc4e8;

  --ink: #0b1930;
  --body: #3d4a60;
  --muted: #7a869c;

  --white: #ffffff;
  --paper: #f6f7fa;
  --line: rgba(14, 38, 80, 0.1);

  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-dark: rgba(14, 38, 80, 0.1);
  --glass-blur: blur(18px);

  --shadow-sm: 0 4px 18px rgba(6, 18, 41, 0.08);
  --shadow-md: 0 14px 40px rgba(6, 18, 41, 0.14);
  --shadow-lg: 0 30px 70px rgba(6, 18, 41, 0.22);

  --font-title: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 84px;
  --radius: 18px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { max-width: 70ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 5%; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--navy-700);
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 38, 80, 0.28);
}
.btn-primary:hover { background: var(--navy-600); box-shadow: 0 18px 40px rgba(14, 38, 80, 0.34); }

.btn-sand {
  background: var(--sand);
  color: var(--navy-900);
  box-shadow: 0 12px 30px rgba(217, 179, 130, 0.4);
}
.btn-sand:hover { background: var(--sand-light); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 38, 80, 0.25);
}
.btn-ghost:hover { border-color: var(--navy-600); background: rgba(20, 50, 98, 0.06); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
              height 0.5s var(--ease), backdrop-filter 0.5s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 41, 0.55) 0%, rgba(6, 18, 41, 0) 100%);
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.site-header.scrolled {
  height: 70px;
  background: rgba(6, 18, 41, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 40px rgba(6, 18, 41, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header.scrolled::after { opacity: 0; }

.nav {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-text strong {
  font-family: var(--font-title);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.95;
}

.nav-links { display: flex; align-items: center; gap: 34px; }

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.35s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--sand);
  transition: width 0.45s var(--ease);
}

.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.35s ease, transform 0.4s var(--ease);
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }
.nav-cta svg { width: 15px; height: 15px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.6px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { transform: translateX(-50%) translateY(5.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateX(-50%) translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(6, 18, 41, 0.94);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-title);
  font-size: 1.75rem;
  padding: 12px 0;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s ease, color 0.3s ease;
}
.mobile-menu.open a { transform: translateY(0); opacity: 1; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--sand); }

.mobile-menu .mm-contact {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 18, 41, 0.9) 0%, rgba(10, 28, 61, 0.72) 45%, rgba(14, 38, 80, 0.42) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 5% 90px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--sand);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero-eyebrow svg { width: 15px; height: 15px; }

.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em {
  font-style: italic;
  color: var(--sand);
  display: block;
}

.hero-sub {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  max-width: 56ch;
  font-weight: 300;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-facts {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
}

.hero-fact {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.5s var(--ease), background 0.4s ease;
}
.hero-fact:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.14); }
.hero-fact strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
}
.hero-fact span {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ------------------------------------------------- Page hero (pages internes) */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-900);
}
.page-hero .hero-media { animation: heroZoom 22s ease-out forwards; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 41, 0.72) 0%, rgba(6, 18, 41, 0.62) 40%, rgba(6, 18, 41, 0.92) 100%);
}
.page-hero .wrap {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 70px;
}
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero p { color: rgba(255, 255, 255, 0.8); margin-top: 18px; font-weight: 300; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}
.breadcrumb span { color: rgba(255, 255, 255, 0.55); }

/* ---------------------------------------------------------------- Sections */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy-500);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-navy .eyebrow { color: var(--sand); }
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--body); font-size: 1.03rem; font-weight: 300; }
.section-navy .section-head p { color: rgba(255, 255, 255, 0.7); }

.lead { font-size: 1.1rem; }

/* ---------------------------------------------------------------- Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 67, 128, 0.28);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .media-frame img,
.media-frame:hover img { transform: scale(1.07); }

.media-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 15px;
  border-radius: 100px;
  background: rgba(6, 18, 41, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.card-body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 12px; }
.card-body p { font-size: 0.95rem; }

.card-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy-600);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.card-link:hover svg { transform: translateX(6px); }

/* Glass card on dark */
.glass-card {
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.55s var(--ease), background 0.45s ease;
}
.glass-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.14); }
.glass-card h3 { color: #fff; margin-bottom: 12px; font-size: 1.3rem; }
.glass-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; }

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(217, 179, 130, 0.16);
  border: 1px solid rgba(217, 179, 130, 0.3);
  color: var(--sand);
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split.reverse .split-media { order: -1; }

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.split-media.small { aspect-ratio: 1 / 1; }

.media-stack { position: relative; padding-bottom: 60px; padding-right: 50px; }
.media-stack .split-media { aspect-ratio: 4 / 5; }
.media-stack .float-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}
.media-stack .float-img img { width: 100%; height: 100%; object-fit: cover; }

.split-text p + p { margin-top: 18px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat-row strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.3rem;
  color: var(--navy-700);
  line-height: 1;
}
.stat-row span {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Galerie */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
  justify-content: center;
}
.filter-btn {
  padding: 11px 24px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.filter-btn:hover { border-color: var(--navy-500); color: var(--navy-700); }
.filter-btn.active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--navy-800);
}
.gallery-item.tall { aspect-ratio: 3 / 4; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 41, 0) 40%, rgba(6, 18, 41, 0.86) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay strong { font-family: var(--font-title); font-size: 1.25rem; }
.gallery-overlay span {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 6px;
}

.gallery-item.hidden { display: none; }

.zoom-hint {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.45s var(--ease);
}
.gallery-item:hover .zoom-hint { opacity: 1; transform: scale(1); }
.zoom-hint svg { width: 17px; height: 17px; color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 12, 28, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  padding: 6vh 5vw;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform 0.5s var(--ease);
}
.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox-cap {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------------------------------------------------------------- Citation */
.quote-band {
  position: relative;
  padding: 120px 0;
  background: var(--navy-800);
  overflow: hidden;
  text-align: center;
}
.quote-band .hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  animation: none;
  transform: none;
}
.quote-band .wrap { position: relative; z-index: 3; }
.quote-band blockquote {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  color: #fff;
  font-style: italic;
  line-height: 1.4;
  max-width: 25ch;
  margin: 0 auto;
}
.quote-band cite {
  display: block;
  margin-top: 28px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------------------------------------------------------------- Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-list { margin-top: 34px; display: grid; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease;
}
.contact-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(29, 67, 128, 0.25);
}
.contact-item .icon-badge { margin: 0; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; }
.contact-item small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-item strong,
.contact-item a {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
  transition: color 0.3s ease;
}
.contact-item a:hover { color: var(--navy-500); }

.phone-highlight {
  display: block;
  margin-top: 30px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--navy-800);
  color: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.phone-highlight:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.phone-highlight small {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}
.phone-highlight strong {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 600;
}
.phone-highlight strong svg { width: 26px; height: 26px; color: var(--sand); }

.form-card {
  padding: 44px 40px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 9px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 67, 128, 0.1);
}
.field textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 16px;
}

.form-alert {
  display: none;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.form-alert.show { display: block; }
.form-alert.ok { background: rgba(127, 215, 196, 0.16); border: 1px solid rgba(127, 215, 196, 0.5); color: #0d6b58; }
.form-alert.err { background: rgba(220, 90, 90, 0.1); border: 1px solid rgba(220, 90, 90, 0.35); color: #a33; }

.map-frame {
  margin-top: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  height: 420px;
  background: var(--paper);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- CTA */
.cta-band {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-500) 100%);
  overflow: hidden;
  text-align: center;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}
.cta-band::before {
  width: 420px; height: 420px;
  background: var(--mint);
  top: -140px; left: -80px;
  animation: floatBlob 16s ease-in-out infinite;
}
.cta-band::after {
  width: 380px; height: 380px;
  background: var(--sand);
  bottom: -150px; right: -60px;
  animation: floatBlob 20s ease-in-out infinite reverse;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.14); }
}
.cta-band .wrap { position: relative; z-index: 3; }
.cta-band h2 { color: #fff; margin-bottom: 22px; }
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 38px;
  max-width: 60ch;
  font-weight: 300;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.66);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 46px;
  padding-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.footer-col a:hover { color: var(--sand); transform: translateX(4px); }

.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.4s var(--ease);
}
.socials a:hover {
  background: var(--sand);
  border-color: var(--sand);
  transform: translateY(-4px);
}
.socials svg { width: 19px; height: 19px; color: #fff; }
.socials a:hover svg { color: var(--navy-900); }

.footer-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 18px;
}
.footer-phone svg { width: 20px; height: 20px; color: var(--sand); flex: 0 0 20px; }
.footer-phone a { color: #fff; font-weight: 600; font-size: 1rem; }
.footer-phone small { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.footer-bottom a:hover { color: var(--sand); }

/* ---------------------------------------------------------- Reveal anim */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Fallback : garantit l'affichage meme si l'observer ne se declenche pas */
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: revealFallback 0.9s ease 1.2s forwards; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Utils */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.center-text { text-align: center; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(20, 50, 98, 0.07);
  border: 1px solid rgba(20, 50, 98, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-600);
}
.section-navy .tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.steps { display: grid; gap: 22px; margin-top: 34px; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.step-num {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
}
.step h3 { font-size: 1.15rem; margin-bottom: 7px; }
.step p { font-size: 0.92rem; }

/* ================================================================
   RESPONSIVE — verification obligatoire de chaque grille
   ================================================================ */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split { gap: 46px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 60px 0; }

  /* grilles multi-colonnes -> 1 colonne */
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; gap: 26px; }
  .split,
  .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }

  .split-media { aspect-ratio: 4 / 3; }
  .media-stack { padding-bottom: 40px; padding-right: 30px; }
  .media-stack .float-img { width: 52%; }

  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 72px; }

  body { font-size: 16px; }

  .hero { min-height: 92svh; }
  .hero-inner { padding: calc(var(--nav-h) + 40px) 5% 70px; }

  /* stats du hero : 1 colonne sur mobile */
  .hero-facts { grid-template-columns: 1fr; gap: 12px; margin-top: 44px; }
  .hero-facts .hero-fact { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
  .hero-facts .hero-fact strong { font-size: 1.55rem; }
  .hero-facts .hero-fact span { margin-top: 0; }

  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .brand-text strong { font-size: 1.05rem; }
  .brand-text span { font-size: 0.52rem; letter-spacing: 0.2em; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .form-card { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .stat-row { grid-template-columns: 1fr; gap: 26px; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
  .gallery-overlay { padding: 16px; }
  .gallery-overlay strong { font-size: 1rem; }
  .zoom-hint { display: none; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .quote-band { padding: 80px 0; }

  .map-frame { height: 320px; margin-top: 44px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

  .media-stack { padding-right: 0; padding-bottom: 0; }
  .media-stack .float-img { display: none; }
  .split-media { aspect-ratio: 4 / 3; }

  .lightbox-nav { display: none; }
  .lightbox { padding: 5vh 4vw; }

  .phone-highlight strong { font-size: 1.45rem; }
  .contact-item { padding: 16px 18px; }

  .page-hero { min-height: 54vh; }
  .page-hero .wrap { padding-bottom: 50px; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.18em; }
  .btn { padding: 14px 26px; font-size: 0.76rem; }
}
