/* ============================================================
   VALBUSIN - Construire, Investir, Réunir
   Palette Marine & Or : marine #002245 / or #B87B31 / ivoire #F6F3EE
   Poppins
   ============================================================ */

/* Poppins (SIL Open Font License), hébergée sur le site : aucun appel à un service tiers. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

:root {
  --navy: #002245;
  --navy-2: #0a2f5a;
  --deep: #001a36;
  --ink: #002245;
  --gold: #b87b31;
  --gold-ink: #7d521b;
  --lavender: #e9dfcf;
  --lavender-2: #efe8dc;
  --paper: #f6f3ee;
  --white: #fbf9f6;
  --muted: #535866;
  --muted-dark: #c9c2b3;
  --shade-rgb: 0, 34, 69;
  --line: rgba(var(--shade-rgb), 0.12);
  --line-strong: rgba(var(--shade-rgb), 0.28);
  --line-dark: rgba(233, 223, 207, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 80px;
  --top: var(--nav-h);
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
p { margin: 0; }
::selection { background: var(--navy); color: var(--lavender); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Monogramme (logo de la charte, teinté par currentColor) ---------- */

.mark {
  display: inline-block;
  aspect-ratio: 646 / 487;
  background: currentColor;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat;
  mask: url("../img/logo-mark.png") center / contain no-repeat;
  flex: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo .mark { width: 34px; }

.logo span {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav.on-dark { color: var(--white); }
.nav.on-light { color: var(--navy); }

.nav.scrolled,
.nav.menu-open {
  color: var(--white);
  background: rgba(var(--shade-rgb), 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { opacity: 1; }

.nav-cta {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover { background: currentColor; }
.nav.on-dark .nav-cta:hover,
.nav.scrolled .nav-cta:hover { color: var(--navy); background: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.nav.on-light:not(.scrolled) .nav-cta:hover { color: var(--white); background: var(--navy); }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-burger svg { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: block; }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--top);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--navy);
    color: var(--white);
  }

  .nav-links.open a {
    display: block;
    padding: 16px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-links.open a::after { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
  position: relative;
  display: inline-block;
  padding: 17px 34px;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--lavender); }

.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(253, 253, 254, 0.6); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--white); background: rgba(253, 253, 254, 0.08); }

.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.more svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
a:hover .more svg, .more:hover svg { transform: translateX(5px); }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(88px, 13vh, 160px); }
.section-sm { padding-block: clamp(56px, 8vh, 96px); }
.bg-lavender { background: var(--lavender); }
.bg-navy { background: var(--navy); color: var(--white); }

.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.02rem;
}

.center { text-align: center; }
.center .section-sub { margin-inline: auto; max-width: 56ch; }

/* ---------- Héro (accueil) ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--shade-rgb), 0.78) 0%, rgba(var(--shade-rgb), 0.35) 55%, rgba(var(--shade-rgb), 0.1) 100%),
    linear-gradient(180deg, rgba(var(--shade-rgb), 0.45) 0%, transparent 30%, rgba(var(--shade-rgb), 0.55) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--top) + 40px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero h1 {
  font-size: clamp(3rem, 7.2vw, 6.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 52px);
}

.hero-tagline {
  margin-top: clamp(40px, 7vh, 80px);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(253, 253, 254, 0.85);
}

/* ---------- Bandeau des quatre activités ---------- */

.pillars-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.pillars-title {
  padding: clamp(44px, 7vh, 72px) var(--gutter) clamp(8px, 2vh, 16px);
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pillars-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--gold);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pillar {
  display: block;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 2vw, 28px);
  text-align: center;
  text-decoration: none;
  transition: background 0.35s var(--ease);
}

.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar:hover { background: var(--lavender-2); }

.pillar strong { display: block; font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
.pillar span { display: block; margin-top: 8px; font-size: 0.86rem; font-weight: 300; color: var(--muted); }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Introduction + chiffres ---------- */

.intro { position: relative; overflow: hidden; }

.intro .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.intro h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; }

.intro p {
  margin-top: 24px;
  max-width: 58ch;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
}

.figures { display: grid; gap: clamp(24px, 3.5vh, 36px); }

.figure {
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.figure strong {
  display: block;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.figure span { display: block; margin-top: 4px; font-size: 0.84rem; font-weight: 300; color: var(--muted); }

.watermark {
  position: absolute;
  pointer-events: none;
  color: var(--navy);
  opacity: 0.035;
}

.intro .watermark { width: min(520px, 50vw); left: 22%; top: 50%; translate: 0 -50%; }

@media (max-width: 860px) {
  .intro .container { grid-template-columns: 1fr; }
}

/* ---------- Cartes activités (accueil) ---------- */

.act-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vh, 64px);
  text-align: left;
}

.act-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 30px 28px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
}

.act-card .card-bg { position: absolute; inset: 0; }

.act-card .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.act-card .card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--shade-rgb), 0.72) 0%, rgba(var(--shade-rgb), 0.58) 45%, rgba(var(--shade-rgb), 0.9) 100%);
  transition: opacity 0.6s var(--ease);
}

.act-card:hover .card-bg img { transform: scale(1.06); }

.act-card > *:not(.card-bg) { position: relative; }

.act-card h3 { font-size: 1.45rem; font-weight: 400; line-height: 1.2; }

.act-card p { margin-top: auto; font-size: 0.92rem; font-weight: 300; opacity: 0.85; }

.act-card .more { margin-top: 20px; }

.act-card--outline {
  color: var(--navy);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.4s var(--ease);
}

.act-card--outline:hover { background: rgba(253, 253, 254, 0.45); }

@media (max-width: 1080px) { .act-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .act-cards { grid-template-columns: 1fr; } .act-card { min-height: 300px; } }

/* ---------- Projet mis en avant ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.feature-media { aspect-ratio: 3 / 2; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.feature h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 400; }
.feature .meta { margin-top: 10px; font-size: 0.9rem; color: var(--muted); font-weight: 300; }
.feature p.body { margin-top: 26px; max-width: 48ch; font-weight: 300; color: var(--muted); font-size: 1.02rem; }
.feature .btn { margin-top: 34px; }

@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Bande d'appel ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(64px, 10vh, 112px);
}

.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 400; }
.cta-band .btn { margin-top: 30px; }

.cta-band .watermark {
  color: var(--lavender);
  opacity: 0.06;
  width: 340px;
  right: -60px;
  top: 50%;
  translate: 0 -50%;
}

.cta-band .container { position: relative; }

/* ---------- En-tête de page (fond marine) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding-top: calc(var(--top) + clamp(56px, 9vh, 100px));
  padding-bottom: clamp(56px, 9vh, 100px);
}

.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 400; }

.page-hero p {
  margin: 18px auto 0;
  max-width: 56ch;
  font-weight: 300;
  color: var(--muted-dark);
  font-size: 1.02rem;
}

.page-hero .watermark { color: var(--lavender); opacity: 0.05; width: 380px; right: 4vw; bottom: -90px; }
.page-hero .container { position: relative; }

@media (max-width: 600px) {
  .page-hero .watermark { width: 200px; right: -30px; bottom: -50px; }
  .cta-band .watermark { width: 200px; right: -50px; }
}

/* En-tête de page sur fond clair */
.page-top { padding-top: calc(var(--top) + clamp(40px, 7vh, 80px)); }

/* ---------- Activités ---------- */

.activity { scroll-margin-top: var(--top); }
.activity + .activity { border-top: 1px solid var(--line); }

.activity-head { text-align: center; }
.activity-head .mark { width: 44px; margin-bottom: 22px; }
.activity-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; }
.activity-head p { margin-top: 12px; color: var(--muted); font-weight: 300; font-size: 1.05rem; }

.activity-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(40px, 7vh, 72px);
}

.activity-media { aspect-ratio: 4 / 3.4; overflow: hidden; }
.activity-media img { width: 100%; height: 100%; object-fit: cover; }

.activity.flip .activity-media { order: 2; }

.lead { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 400; line-height: 1.55; letter-spacing: -0.01em; }
.activity-text strong, .bio strong { font-weight: 600; color: var(--ink); }
.activity-text > p + p { margin-top: 18px; }
.activity-text > p:not(.lead) { color: var(--muted); font-weight: 300; }
.activity-text .eyebrow { margin-top: 34px; }
.activity-text .eyebrow + p { color: var(--muted); font-weight: 300; }

.values {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 300;
}

.activity-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.activity-foot p { font-size: 1.1rem; font-weight: 300; }

@media (max-width: 860px) {
  .activity-body { grid-template-columns: 1fr; }
  .activity.flip .activity-media { order: 0; }
}

/* ---------- Projets ---------- */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 6vh, 64px) clamp(16px, 2vw, 28px);
  margin-top: clamp(36px, 5vh, 56px);
  align-items: start;
}

.proj-card { display: block; text-decoration: none; }

button.proj-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.proj-card[hidden] { display: none; }

.proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.3s var(--ease);
}

.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: currentColor; }

.proj-card .card-media { aspect-ratio: 10 / 7; overflow: hidden; background: var(--lavender); }

.proj-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.proj-card:hover .card-media img { transform: scale(1.05); }

.proj-card h3 { margin-top: 22px; font-size: 1.3rem; font-weight: 400; }
.proj-card .loc { display: block; margin-top: 6px; font-size: 0.88rem; font-weight: 300; color: var(--muted); }
/* Survol : voile marine comme les cartes de la page d'accueil */
.proj-card .card-media { position: relative; }
.proj-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--shade-rgb), 0.25) 0%, rgba(var(--shade-rgb), 0.72) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.proj-card:hover .card-media::after, .proj-card:focus-visible .card-media::after { opacity: 1; }

@media (max-width: 1000px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }

.closing-line {
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  color: var(--muted);
}

/* ---------- Page projet ---------- */

.detail-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 400; }
.detail-head .meta { margin-top: 12px; color: var(--muted); font-weight: 300; }
.detail-head .body { margin-top: 24px; max-width: 62ch; color: var(--muted); font-weight: 300; font-size: 1.05rem; }

.back-link { display: inline-flex; margin-bottom: 28px; color: var(--muted); }
.back-link svg { rotate: 180deg; }
.back-link:hover svg { transform: translateX(-5px); }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vh, 44px) clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 6vh, 64px);
}

.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--lavender);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.gallery .wide button { aspect-ratio: 16 / 8; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.gallery button:hover img { transform: scale(1.04); }

.gallery figcaption { margin-top: 12px; font-size: 0.86rem; font-weight: 300; color: var(--muted); }

@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

.other-projects { text-align: center; padding-block: clamp(48px, 7vh, 72px); }

/* ---------- Visionneuse ---------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(var(--shade-rgb), 0.96);
  color: var(--white);
}

.lightbox::backdrop { background: transparent; }

.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: vb-fade 0.4s var(--ease); }

.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; padding: 64px var(--gutter); }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100dvh - 160px); object-fit: contain; }
.lightbox figcaption { font-size: 0.86rem; font-weight: 300; color: var(--muted-dark); }

.lightbox .lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox .lb-btn:hover { opacity: 1; }
.lightbox .lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }

/* ---------- Fondateur ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* Portrait discret, calé contre la colonne de texte */
.founder-portrait { position: sticky; top: calc(var(--top) + 32px); justify-self: end; width: min(100%, 348px); aspect-ratio: 3 / 4; overflow: hidden; }
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; }

.founder h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; }
.founder .role { margin-top: 8px; color: var(--gold); font-weight: 500; letter-spacing: 0.01em; }

.founder blockquote {
  margin: clamp(36px, 6vh, 56px) 0 0;
  padding: 0;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.founder .bio { margin-top: 32px; display: grid; gap: 18px; color: var(--muted); font-weight: 300; font-size: 1.02rem; }

.activity-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  margin: 0;
  padding: 36px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.activity-line a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.activity-line a:hover { color: var(--navy); }

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder-portrait { position: static; justify-self: start; width: min(100%, 312px); }
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 400; }

.contact-info dl { margin: 32px 0 0; display: grid; gap: 26px; }
.contact-info dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.contact-info dd { margin: 6px 0 0; color: var(--muted); font-weight: 300; }
.contact-info dd a { text-decoration: none; }
.contact-info dd a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; }
.field { display: grid; gap: 4px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s;
}

.field select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23051435' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 16px no-repeat;
  padding-right: 28px;
  cursor: pointer;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--navy); }

.field .error { min-height: 1.2em; font-size: 0.78rem; color: #9b1c2c; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: #9b1c2c; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.form-note { font-size: 0.8rem; font-weight: 300; color: var(--muted); }

.form-status { margin-top: 20px; font-size: 0.92rem; }
.form-status[data-state="ok"] { color: var(--navy); }
.form-status[data-state="error"] { color: #9b1c2c; }

.hp { display: none; }

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

.meet {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 420px;
  background: var(--navy);
  color: var(--white);
}

.meet-media { position: relative; min-height: 260px; }
.meet-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.meet-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 72px);
}

.meet-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; }
.meet-body p { margin-top: 18px; color: var(--muted-dark); font-weight: 300; }
.meet-body .more { margin-top: 24px; }

@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */

.footer { background: var(--deep); color: var(--white); padding: clamp(64px, 9vh, 96px) 0 32px; }

.cta-band + .footer { border-top: 1px solid var(--line-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-tagline { margin-top: 20px; font-size: 0.92rem; font-weight: 300; line-height: 1.8; color: var(--muted-dark); }

.footer h4 {
  margin-bottom: 18px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.footer ul a,
.footer address a { text-decoration: none; transition: color 0.2s; }

.footer ul a, .footer address { font-size: 0.92rem; font-weight: 300; color: var(--muted-dark); }
.footer ul a:hover, .footer address a:hover { color: var(--white); }
.footer address { font-style: normal; line-height: 1.9; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted-dark);
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Animations
   ============================================================ */

/* Entrée du héro : lignes qui montent depuis un masque */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }

.line-inner {
  display: block;
  animation: vb-rise 1.1s var(--ease) both;
  animation-delay: calc(0.15s + var(--i, 0) * 0.14s);
}

@keyframes vb-rise { from { transform: translateY(110%); } to { transform: none; } }

.fade-in { animation: vb-fade-up 0.9s var(--ease) both; animation-delay: var(--d, 0.6s); }

@keyframes vb-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes vb-fade { from { opacity: 0; } to { opacity: 1; } }

.hero-media { animation: vb-zoom 2.8s var(--ease) both; }
@keyframes vb-zoom { from { transform: scale(1.08); } to { transform: none; } }

@supports (animation-timeline: scroll()) {
  .hero-media video {
    animation: vb-parallax linear both;
    animation-timeline: scroll();
    animation-range: 0 110vh;
  }
  @keyframes vb-parallax { to { transform: translateY(12%) scale(1.06); } }
}

/* Apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s);
}

.reveal.in { opacity: 1; transform: none; }

/* Révélation des images par balayage.
   Le masque est posé sur l'image et non sur le conteneur observé :
   IntersectionObserver ignore un élément entièrement masqué par clip-path. */
.reveal-img img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.12);
  transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s);
}

.reveal-img.in img { clip-path: inset(0 0 0 0); transform: none; }

/* Monogramme flottant */
@media (prefers-reduced-motion: no-preference) {
  .watermark { animation: vb-float 10s ease-in-out infinite alternate; }
}

@keyframes vb-float { from { transform: translateY(-14px); } to { transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .line-inner, .fade-in, .hero-media, .hero-media video, .watermark { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-img img { clip-path: none; transform: none; transition: none; }
  .lightbox[open] { animation: none; }
}

/* ============================================================
   Accents or
   ============================================================ */

::selection { background: var(--gold); color: var(--navy); }
.logo { color: var(--gold); }
.nav-links a::after { background: var(--gold); }
.eyebrow { color: var(--gold-ink); }
.figure { border-left-color: var(--gold); }
.activity-head .mark { color: var(--gold); }
.intro .watermark { color: var(--gold); opacity: 0.08; }
.cta-band .watermark,
.page-hero .watermark { color: var(--gold); opacity: 0.14; }
.footer h4 { color: var(--gold); }
.btn-white:hover { background: var(--gold); color: var(--navy); }
.btn-navy:hover { background: var(--gold); color: var(--navy); }
.pillar:hover strong,
.contact-info dd a:hover,
.activity-line a:hover { color: var(--gold-ink); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--gold-ink); }

/* ============================================================
   Conformité : pages légales, mentions IA, information RGPD
   ============================================================ */

.legal { max-width: 72ch; margin-inline: auto; color: var(--muted); font-weight: 300; }
.legal h2 {
  margin: clamp(40px, 6vh, 56px) 0 14px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}
.legal h2:first-child { margin-top: 0; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 14px; }
.legal ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-ink); }
.legal strong { font-weight: 500; color: var(--ink); }
.legal-lead { font-size: 1.08rem; color: var(--ink); font-weight: 400; }

.form-privacy {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}
.form-privacy a { color: var(--ink); text-underline-offset: 3px; }

.proj-disclaimer {
  margin-top: clamp(40px, 6vh, 64px);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
}

.footer-bottom a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   Vidéo d'accueil : time-lapse du jour à la nuit, jouée une fois,
   puis arrêtée sur la dernière image (la façade éclairée).
   ============================================================ */

.hero-video { background: var(--navy); }

/* ============================================================
   Corrections octobre 2026 : langue, diaporamas, projets en cours
   ============================================================ */

/* Sélecteur de langue */
.nav-links .lang-item { margin-left: 4px; }
.nav-links a.lang-switch {
  padding: 4px 9px;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 0.85;
}
.nav-links a.lang-switch::after { display: none; }
@media (max-width: 960px) {
  .nav-links.open a.lang-switch { display: inline-block; margin-top: 16px; padding: 8px 14px; }
}

/* Diaporama */
.slideshow { position: relative; width: 100%; height: 100%; background: var(--navy); }
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.slideshow img.is-active { opacity: 1; }
.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}
.slide-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 249, 246, 0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.slide-dots button[aria-current="true"] { background: var(--gold); transform: scale(1.25); }

/* Les trois mots du Cercle */
.values-big {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(40px, 6vh, 64px);
  text-align: center;
}
.values-big strong {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.values-big strong::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 14px auto 12px;
  background: var(--gold);
}
.values-big span { color: var(--muted); font-weight: 300; }
@media (max-width: 700px) { .values-big { grid-template-columns: 1fr; } }

/* Domaine Pescatore sur l'accueil : blason et bandeau de photos */
.feature .blason { width: 64px; height: 64px; margin-bottom: 18px; }
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
  margin-top: clamp(28px, 4vh, 44px);
}
.strip-item {
  display: block;
  padding: 0;
  border: 0;
  background: var(--lavender);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.strip-item:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .feature-strip { grid-template-columns: 1fr 1fr; } }

/* Groupes de projets : en cours puis réalisations */
.proj-group + .proj-group { margin-top: clamp(56px, 9vh, 96px); }
.proj-group-title {
  margin-top: clamp(36px, 5vh, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 400;
}
.proj-group-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: -23px 0 21px;
  background: var(--gold);
}
.proj-group[hidden] { display: none; }

/* Pastille « En cours » avec le monogramme */
.badge-encours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge-encours .mark { width: 15px; color: var(--gold); }
.card-media .badge-encours { position: absolute; top: 12px; left: 12px; z-index: 1; }
.detail-head .badge-encours { margin-top: 4px; }

/* Contact : bouton dans la barre sur grand écran, entrée du menu sur mobile */
.nav-links .nav-mobile-only { display: none; }
@media (max-width: 960px) {
  .nav-links.open .nav-mobile-only { display: block; }
}

/* Partenaires (sous le Cercle de Valbusin) : deux bandeaux qui défilent lentement */
.partners {
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.partners .eyebrow { color: var(--gold-ink); }
.partners h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: clamp(18px, 3vh, 30px); }
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: vb-marquee 95s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 110s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; padding: 10px clamp(26px, 3.4vw, 48px); }
.marquee-track img { display: block; height: auto; opacity: 0.82; }
@keyframes vb-marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .marquee-track img { zoom: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track li[aria-hidden] { display: none; }
}

/* Signature de l'agence (andmore) */
.footer-credit {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-credit svg { width: 92px; height: auto; display: block; }
.footer-credit a:hover,
.footer-credit a:focus-visible { color: var(--white); }
@media (max-width: 560px) { .footer-credit { justify-content: flex-start; } }
