/* ===================================================================
   Moovis Architecte — style.css
   Bleu marine + doré champagne, cartes verre, typographie bold.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --navy: #101c30;
  --navy-deep: #0a1220;
  --navy-soft: #17253d;
  --gold: #c9a668;
  --gold-light: #e6d3ac;
  --white: #ffffff;
  --offwhite: #f2f3f6;
  --text: #14181f;
  --muted: #6b7178;
  --muted-on-dark: rgba(242,243,246,0.64);
  --line: rgba(20,24,31,0.1);
  --line-dark: rgba(242,243,246,0.14);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-xl: 2.2rem;
  --radius-lg: 1.4rem;
  --radius-md: 0.9rem;
  --radius-pill: 100px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white); color: var(--text);
  font-family: var(--font-body); font-weight: 400; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 900px) { .wrap { padding: 0 1.4rem; } }
section { position: relative; }

.eyebrow {
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  display: inline-block; margin-bottom: 0.9rem;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; }
.hl-gold { color: var(--gold); }
.hl-muted { color: var(--muted); }
.hl-muted-dark { color: var(--muted-on-dark); }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--navy); color: #fff;
  padding: 0.9rem 1.7rem; border-radius: var(--radius-pill);
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  border: none; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 20px rgba(16,28,48,0.22);
}
.btn-pill:hover { transform: translateY(-2px); background: var(--navy-deep); }
.btn-pill.gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(201,166,104,0.3); }
.btn-pill.gold:hover { background: var(--gold-light); }
.btn-pill.white { background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(20,24,31,0.2); color: var(--text);
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,166,104,0.08); }
.btn-outline.on-dark { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-outline.on-dark:hover { border-color: var(--gold); background: rgba(201,166,104,0.12); }

.tag-pill {
  display: inline-flex; align-items: center; padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark);
}
.tag-pill.on-light { border-color: var(--line); color: var(--muted); }
.tag-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 1.2rem; left: 0; right: 0; z-index: 500; padding: 0 2rem; display: flex; justify-content: center; }
header.site-nav {
  width: 100%; max-width: 1200px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-radius: var(--radius-pill); padding: 0.6rem 0.7rem 0.6rem 1.3rem;
  box-shadow: 0 10px 34px rgba(16,28,48,0.1);
  transition: background 0.3s ease;
}
body.on-dark-page header.site-nav { background: rgba(16,28,48,0.85); }
@media (max-width: 900px) {
  .nav-wrap { padding: 0 1rem; top: 0.9rem; }
  header.site-nav { background: none; backdrop-filter: none; box-shadow: none; padding: 0; }
  .logo-mark {
    background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
    border-radius: var(--radius-pill); padding: 0.65rem 0.9rem;
    box-shadow: 0 10px 34px rgba(16,28,48,0.1);
  }
  body.on-dark-page .logo-mark { background: rgba(16,28,48,0.85); }
  .nav-right {
    background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
    border-radius: var(--radius-pill); padding: 0.5rem 0.5rem;
    box-shadow: 0 10px 34px rgba(16,28,48,0.1);
  }
  body.on-dark-page .nav-right { background: rgba(16,28,48,0.85); }
}

.logo-mark { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; color: var(--navy); }
.logo-mark-img {
  display: block; background-color: currentColor;
  -webkit-mask-image: url('images/logo-moovis.png'); mask-image: url('images/logo-moovis.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
}
.logo-mark .logo-mark-img { width: 63px; height: 24px; }
body.on-dark-page .logo-mark { color: #fff; }
.footer-brand .logo-mark { color: #fff; }
.footer-brand .logo-mark .logo-mark-img { width: 78px; height: 30px; }

.nav-center { display: flex; gap: 1.8rem; list-style: none; }
.nav-center a {
  color: var(--text); text-decoration: none; font-size: 0.86rem; font-weight: 500;
  transition: color 0.2s;
}
body.on-dark-page .nav-center a { color: rgba(255,255,255,0.85); }
.nav-center a:hover, .nav-center a.active { color: var(--gold); }
@media (max-width: 900px) { .nav-center { display: none; } }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-socials { display: flex; gap: 0.4rem; margin-right: 0.4rem; }
@media (max-width: 700px) { .nav-socials { display: none; } }
.nav-socials a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
body.on-dark-page .nav-socials a { border-color: rgba(255,255,255,0.2); color: #fff; }
.nav-socials a:hover { border-color: var(--gold); background: rgba(201,166,104,0.1); }
.nav-socials svg { width: 14px; height: 14px; }
.nav-contact-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 0.7rem 1.3rem; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 500;
  transition: background 0.2s;
}
.nav-contact-btn:hover { background: var(--navy-deep); }
.nav-contact-btn svg { width: 15px; height: 15px; }
.nav-contact-btn .nc-label { display: inline; }
@media (max-width: 560px) { .nav-contact-btn .nc-label { display: none; } .nav-contact-btn { padding: 0.7rem; } }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.5rem; }
.burger span { width: 20px; height: 1.5px; background: var(--text); display: block; }
body.on-dark-page .burger span { background: #fff; }
@media (max-width: 900px) { .burger { display: flex; } }

.mobile-menu {
  position: fixed; inset: 0; background: var(--navy); z-index: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-menu a { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.mobile-menu-close { position: absolute; top: 1.6rem; right: 1.6rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Glass card ---------- */
.glass-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  color: #fff;
}
.glass-card .gc-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; display: block; }
.glass-card .gc-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 0.3rem; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100vh;
  background: var(--offwhite);
  display: flex; align-items: center;
  padding: 9rem 0 9rem;
  overflow: hidden;
}
.hero-watermark {
  position: absolute; bottom: -1vw; left: 50%; transform: translate(-50%, 0);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(9rem, 27vw, 20rem); line-height: 1;
  color: rgba(16,28,48,0.06); white-space: nowrap; user-select: none; pointer-events: none; z-index: 0;
  will-change: transform;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; width: 100%; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-sketch { display: none; }
@media (max-width: 980px) {
  .hero-copy { position: relative; }
  .hero-sketch {
    display: block; position: absolute; top: -1.5rem; right: -1rem;
    width: 240px; height: auto; opacity: 0.09; color: var(--navy); z-index: -1; pointer-events: none;
  }
}
.hero-sketch path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.visible .hero-sketch path { animation: heroSketchDraw 1.6s ease forwards; }
.reveal.visible .hero-sketch path:nth-child(2) { animation-delay: 1.05s; }
.reveal.visible .hero-sketch path:nth-child(3) { animation-delay: 1.25s; }
.reveal.visible .hero-sketch path:nth-child(4) { animation-delay: 1.45s; }
@keyframes heroSketchDraw { to { stroke-dashoffset: 0; } }
.hero-copy h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); max-width: 12ch; }
.hero-copy p { color: var(--muted); margin: 1.3rem 0 1.8rem; max-width: 42ch; font-size: 1.02rem; }
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3.4; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Stat badges sit below the image in normal flow — never overlaid on
   the photo, so they can neither collide with each other nor lose
   contrast against whatever the photo happens to show. */
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.8rem; }
.hero-badges .glass-card {
  flex: 1 1 140px; min-width: 140px; max-width: 220px;
  background: var(--navy-soft); backdrop-filter: none; border-color: transparent;
}
@media (max-width: 640px) {
  .hero { padding: 7.5rem 0 4rem; }
  .hero-copy p { margin: 1.1rem 0 1.6rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .hero-cta-row .btn-pill, .hero-cta-row .btn-outline { justify-content: center; width: 100%; }
}

/* ---------- Statement (manifesto) ---------- */
.statement-section {
  position: relative; z-index: 2; margin-top: -7rem;
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--offwhite); padding: 8.5rem 0 6.5rem; text-align: center;
  box-shadow: 0 -30px 60px rgba(10,18,32,0.1);
}
.statement-text {
  max-width: 780px; margin: 0 auto; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem); line-height: 1.5; color: var(--text);
}
.statement-text strong { color: var(--gold); }
.statement-tags { margin-top: 2.4rem; display: flex; justify-content: center; }

/* ---------- Numbered process ---------- */
.process-section {
  position: relative; z-index: 1;
  background: var(--navy); color: #fff; padding: 6.5rem 0;
}
.process-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
@media (max-width: 980px) { .process-grid { grid-template-columns: 1fr; } }
.process-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 14ch; margin-bottom: 1rem; }
.process-list { list-style: none; margin-top: 2.5rem; }
.process-item {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.2rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line-dark);
}
.process-item:last-child { border-bottom: 1px solid var(--line-dark); }
.process-item .pnum { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.process-item h4 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.process-item p { font-size: 0.88rem; color: var(--muted-on-dark); max-width: 40ch; }
/* Stat badges sit below the image in normal flow — never overlaid on
   the photo, so they can neither collide with each other nor lose
   contrast against whatever the photo happens to show. */
.process-media { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.process-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-xl); }
.process-media .glass-card {
  flex: 1 1 140px; min-width: 140px; max-width: 220px;
  background: var(--navy-soft); backdrop-filter: none; border-color: transparent;
}

/* ---------- Stats showcase ---------- */
.stats-section { background: var(--navy); color: #fff; padding: 2rem 0 6.5rem; text-align: center; }
.stats-section .title-block { max-width: 640px; margin: 0 auto 3rem; }
.stats-section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.stats-section > .wrap > p { color: var(--muted-on-dark); margin-top: 1rem; }
.stats-showcase { display: grid; grid-template-columns: 0.7fr 1.4fr 0.7fr; gap: 1.3rem; align-items: center; }
@media (max-width: 900px) { .stats-showcase { grid-template-columns: 1fr; } }
.stats-side { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.6; }
.stats-side img { width: 100%; height: 100%; object-fit: cover; }
/* Stat badges sit below the image in normal flow — never overlaid on
   the photo, so they can neither collide with each other nor lose
   contrast against whatever the photo happens to show. */
.stats-main { display: flex; flex-wrap: wrap; gap: 0.8rem; text-align: left; }
.stats-main img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--radius-xl); }
.stats-main .glass-card {
  flex: 1 1 160px; min-width: 160px; max-width: 260px;
  background: var(--navy-soft); backdrop-filter: none; border-color: transparent;
}

/* ---------- Value marquee (text with inline image chips) ---------- */
.marquee-section { background: var(--navy); color: #fff; padding: 6.5rem 0; text-align: center; }
.marquee-text {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5em;
}
.marquee-text .chip-img { width: 3.4em; height: 1.7em; border-radius: 1.5em; object-fit: cover; display: inline-block; vertical-align: middle; }
.marquee-tagline { margin-top: 3rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--muted-on-dark); font-family: var(--font-display); font-weight: 600; max-width: 26ch; margin-left: auto; margin-right: auto; }
.marquee-strip { display: flex; gap: 1rem; margin-top: 3.5rem; overflow-x: auto; padding: 1rem 0; }
.marquee-strip img { width: 220px; height: 260px; object-fit: cover; border-radius: var(--radius-lg); flex-shrink: 0; }
.marquee-strip img:nth-child(odd) { margin-top: 1.6rem; }

/* ---------- Generic sections ---------- */
.section-pad { padding: 6rem 0; }
.section-pad.tight { padding: 4rem 0; }
.bg-offwhite { background: var(--offwhite); }
.bg-navy { background: var(--navy); color: #fff; }
.title-block h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 10rem 0 1.2rem; }
.page-header h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); max-width: 16ch; }
.page-header p { color: var(--muted); margin-top: 1.1rem; max-width: 54ch; }
.page-header.on-dark { color: #fff; }
.page-header.on-dark p { color: var(--muted-on-dark); }

/* ---------- Projects grid ---------- */
.filter-pills-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin: 0 0 1.3rem; }
.filter-group-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 0.2rem; }
.filter-pill.filter-pill-lg {
  padding: 0.85rem 2rem; border-radius: var(--radius-pill); border: 1.5px solid var(--gold);
  background: var(--white); color: var(--navy); font-size: 0.95rem; font-weight: 600;
  font-family: var(--font-display); cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.filter-pill.filter-pill-lg.active { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); box-shadow: 0 8px 20px rgba(201,166,104,0.3); }
.filter-pill.filter-pill-lg:hover:not(.active) { background: rgba(201,166,104,0.1); }

.filter-divider { border: none; border-top: 1px solid var(--line); margin: 0 0 1.6rem; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 2.6rem; }
.filter-pill {
  padding: 0.65rem 1.3rem; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--white); color: var(--text); font-size: 0.82rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-pill:hover:not(.active) { border-color: var(--navy); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { text-decoration: none; color: var(--text); display: block; }
.project-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--offwhite); }
.project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3; background: rgba(255,255,255,0.9); color: var(--navy);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill);
  pointer-events: none;
}
.project-info { margin-top: 0.9rem; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.project-info h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.2rem; }
.project-info span { font-size: 0.84rem; color: var(--muted); }
.project-view-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--navy); background: var(--white); white-space: nowrap; cursor: pointer;
  border: 1.5px solid var(--gold); border-radius: var(--radius-pill);
  padding: 0.5rem 1rem; flex-shrink: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.project-view-link:hover { background: var(--gold); color: var(--navy-deep); box-shadow: 0 6px 16px rgba(201,166,104,0.35); }

/* ---------- Before / after compare slider (on project tiles) ---------- */
.compare { cursor: ew-resize; touch-action: none; -webkit-user-select: none; user-select: none; }
.compare-after, .compare-before { position: absolute; inset: 0; }
.compare-after img, .compare-before img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.compare-before { clip-path: inset(0 50% 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff;
  pointer-events: none; z-index: 3; transform: translateX(-50%);
}
.compare-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 14px rgba(10,18,32,0.28);
}
.compare-handle::before {
  content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; color: var(--navy); font-size: 0.9rem; line-height: 1;
}
.compare-labels span {
  position: absolute; bottom: 0.7rem; z-index: 3; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(16,28,48,0.65); color: #fff; padding: 0.28rem 0.6rem; border-radius: 4px; pointer-events: none;
}
.compare-label-before { left: 0.7rem; }
.compare-label-after { right: 0.7rem; }

/* ---------- Project modal (gallery + description) ---------- */
.project-modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,18,32,0.72); z-index: 970;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-modal-backdrop.open { opacity: 1; visibility: visible; }
.project-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.97);
  width: min(880px, 94vw); max-height: 90vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-xl); z-index: 980;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.project-modal.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.project-modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(16,28,48,0.55); color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
}

.pgallery { position: relative; aspect-ratio: 16/10; background: var(--offwhite); border-radius: var(--radius-xl) var(--radius-xl) 0 0; overflow: hidden; }
.pgallery-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.pgallery-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.pgallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.85); color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.pgallery-arrow:hover { background: #fff; }
.pgallery-prev { left: 1rem; }
.pgallery-next { right: 1rem; }
.pgallery-arrow svg { width: 18px; height: 18px; }
.pgallery-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 0.5rem; }
.pgallery-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,0.55); cursor: pointer; padding: 0; }
.pgallery-dots button.active { background: #fff; width: 18px; border-radius: 4px; }

.pmodal-info { padding: 2rem 2.2rem 2.2rem; }
.pmodal-tags { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.pmodal-tags span {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: var(--offwhite); color: var(--navy);
}
.pmodal-info h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.3rem; }
.pmodal-location { color: var(--gold); font-weight: 500; font-size: 0.92rem; margin-bottom: 1.2rem; display: block; }
.pmodal-info p { color: var(--muted); line-height: 1.75; max-width: 62ch; }

/* ---------- Founder / values ---------- */
.founder-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .founder-split { grid-template-columns: 1fr; gap: 1.8rem; } }
.founder-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 3/4; }
.founder-media img { width: 100%; height: 100%; object-fit: cover; }
.founder-text p { color: var(--muted); margin: 1.1rem 0 1.4rem; max-width: 52ch; }
.founder-quote { border-left: 3px solid var(--gold); padding-left: 1.4rem; margin: 1.6rem 0; }
.founder-quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: var(--text); }
.founder-quote cite { display: block; margin-top: 0.6rem; font-size: 0.85rem; font-style: normal; color: var(--gold); letter-spacing: 0.04em; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--offwhite); border-radius: var(--radius-md); padding: 1.8rem 1.6rem; }
.value-card .vnum { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: 0.9rem; }
.value-card h4 { font-size: 1.02rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.contact-hero-media { position: absolute; inset: 0; z-index: 0; }
.contact-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(16,28,48,0.72) 0%, rgba(16,28,48,0.32) 60%); }
.contact-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; width: 100%; }
@media (max-width: 980px) { .contact-hero-grid { grid-template-columns: 1fr; } }
.contact-hero-copy h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 12ch; }
.contact-hero-copy p { color: var(--muted-on-dark); margin-top: 1rem; max-width: 40ch; }

.contact-form-card { padding: 2rem; }
.contact-form-card h3 { font-size: 1.4rem; margin-bottom: 1.3rem; }
.contact-form-card .cf-field { margin-bottom: 1.1rem; }
.contact-form-card label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); display: block; margin-bottom: 0.4rem; }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.32);
  color: #fff; font-family: var(--font-body); font-size: 0.95rem; padding: 0.5rem 0.1rem; outline: none;
}
.contact-form-card input::placeholder, .contact-form-card textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus { border-color: var(--gold); }
.contact-form-card textarea { resize: vertical; min-height: 70px; }
.contact-form-card select option { color: var(--text); }
.contact-form-card .btn-pill { width: 100%; justify-content: center; margin-top: 0.6rem; }

/* ---------- Storytelling (agence.html) ---------- */
.story-section { padding: 6rem 0; }
.story-intro { max-width: 720px; margin: 0 auto 4.5rem; text-align: center; }
.story-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.story-chapters { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 3.4rem; }
.story-chapter h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 1.1rem; }
.story-chapter p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.03rem; line-height: 1.8; }
.story-chapter p:last-child { margin-bottom: 0; }
.story-chapter p strong { color: var(--text); font-weight: 600; }

.story-quote {
  max-width: 700px; margin: 0.5rem auto; padding: 3rem 2.6rem;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  text-align: center;
}
.story-quote blockquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1.3;
  margin-bottom: 1rem;
}
.story-quote cite { font-size: 0.85rem; color: var(--gold); font-style: normal; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.6s ease; }
.reveal.visible .story-quote cite { opacity: 1; }

.story-quote blockquote .tw-char { display: inline-block; opacity: 0; transform: translateY(0.35em); }
.reveal.visible .story-quote blockquote .tw-char {
  animation: twCharIn 0.01s linear forwards;
  animation-delay: calc(var(--i) * 26ms);
}
@keyframes twCharIn { to { opacity: 1; transform: none; } }

.story-quote blockquote .tw-cursor {
  display: inline-block; width: 2px; height: 0.85em; background: var(--gold);
  margin-left: 2px; vertical-align: -0.08em; opacity: 0; transition: opacity 0.3s ease;
}
.reveal.visible .story-quote blockquote .tw-cursor { opacity: 1; animation: twCursorBlink 0.85s steps(1) infinite; }
.story-quote blockquote .tw-cursor.tw-cursor-done { opacity: 0 !important; animation: none; }
@keyframes twCursorBlink { 50% { opacity: 0; } }

.story-media { max-width: 700px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }

.story-closing {
  max-width: 700px; margin: 3.5rem auto 0; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--gold);
}

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .info-cards { grid-template-columns: 1fr; } }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.7rem; }
.info-card h5 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; font-weight: 600; }
.info-card p { font-size: 0.95rem; line-height: 1.6; }
.info-card a { text-decoration: none; color: var(--text); }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: #fff; padding-top: 4rem; position: relative; overflow: hidden; }
.footer-top-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.footer-socials svg { width: 14px; height: 14px; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.82rem; margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--muted-on-dark); text-decoration: none; font-size: 0.88rem; margin-bottom: 0.7rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-giant {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 11rem); line-height: 0.75;
  color: rgba(255,255,255,0.05); text-align: left; margin: 1rem 0 -1.2rem -0.2rem;
  user-select: none; pointer-events: none; white-space: nowrap; overflow: hidden;
}
.footer-bottom {
  position: relative; z-index: 1; border-top: 1px solid var(--line-dark);
  padding: 1.4rem 0 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.78rem; color: rgba(242,243,246,0.5);
}
.footer-bottom a { color: rgba(242,243,246,0.5); text-decoration: none; }

/* ---------- Instagram feed teaser ---------- */
.instagram-section { padding: 6rem 0; text-align: center; }
.instagram-handle {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--navy);
  font-weight: 600; margin-top: 0.4rem;
}
.instagram-handle svg { width: 18px; height: 18px; }
.instagram-handle:hover { color: var(--gold); }
.instagram-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; margin: 2.6rem 0 2.2rem; }
@media (max-width: 900px) { .instagram-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .instagram-grid { grid-template-columns: repeat(2, 1fr); } }
.instagram-tile { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; display: block; }
.instagram-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.instagram-tile:hover img { transform: scale(1.08); }
.instagram-tile::after {
  content: ''; position: absolute; inset: 0; background: rgba(16,28,48,0); transition: background 0.25s ease;
}
.instagram-tile:hover::after { background: rgba(16,28,48,0.35); }
.instagram-tile .ig-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.7);
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; color: #fff;
}
.instagram-tile:hover .ig-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.instagram-tile .ig-icon svg { width: 26px; height: 26px; }

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

/* ---------- Demo badge ---------- */
.demo-badge {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 700;
  background: rgba(10,18,32,0.9); color: #fff; font-size: 0.7rem; letter-spacing: 0.02em;
  padding: 0.55rem 0.9rem; border-radius: var(--radius-pill); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15); opacity: 0.85; transition: opacity 0.2s, background 0.2s;
  backdrop-filter: blur(6px);
}
.demo-badge:hover { opacity: 1; background: var(--navy); }

/* ---------- Loader (plan d'architecte) ---------- */
#loader {
  position: fixed; inset: 0; z-index: 999999;
  background: var(--white); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.loader-out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,28,48,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,28,48,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0; animation: loaderGridIn 1.1s ease 0.15s forwards;
}
@keyframes loaderGridIn { to { opacity: 1; } }

.loader-mark {
  width: 34px; height: 34px; opacity: 0;
  animation: loaderMarkIn 0.5s ease 0.15s forwards;
}
.loader-mark path {
  fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: loaderMarkDraw 0.9s ease 0.25s forwards;
}
@keyframes loaderMarkIn { to { opacity: 1; } }
@keyframes loaderMarkDraw { to { stroke-dashoffset: 0; } }

.loader-word-wrap { position: relative; display: inline-block; line-height: 1; }
.loader-word {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 10vw, 6.5rem); letter-spacing: 0.02em; white-space: nowrap;
}
.loader-word-ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,166,104,0.4);
  text-stroke: 1px rgba(201,166,104,0.4);
}
.loader-word-fill {
  position: absolute; inset: 0; color: var(--navy);
  clip-path: inset(0 100% 0 0);
  animation: loaderWordReveal 2.2s cubic-bezier(.6,0,.3,1) 0.4s forwards;
}
@keyframes loaderWordReveal { to { clip-path: inset(0 0% 0 0); } }

.loader-pen {
  position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px;
  background: var(--gold); border-radius: 2px; box-shadow: 0 0 10px rgba(201,166,104,0.75);
  opacity: 0;
  animation: loaderPenMove 2.2s cubic-bezier(.6,0,.3,1) 0.4s forwards,
             loaderPenShow 0.1s linear 0.4s forwards,
             loaderPenHide 0.25s ease 2.5s forwards;
}
@keyframes loaderPenMove { to { left: 100%; } }
@keyframes loaderPenShow { to { opacity: 1; } }
@keyframes loaderPenHide { to { opacity: 0; } }

.loader-label {
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: loaderLabelIn 0.6s ease 2.7s forwards;
}
@keyframes loaderLabelIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .loader-grid, .loader-mark, .loader-mark path, .loader-word-fill, .loader-pen, .loader-label { animation: none; }
  .loader-grid, .loader-mark, .loader-label { opacity: 1; }
  .loader-mark path { stroke-dashoffset: 0; }
  .loader-word-fill { clip-path: inset(0 0% 0 0); }
  .loader-pen { opacity: 0; }
  .story-quote blockquote .tw-char { animation: none !important; opacity: 1; transform: none; }
  .story-quote blockquote .tw-cursor { display: none; }
  .hero-sketch path { animation: none !important; stroke-dashoffset: 0; }
}
