/* =========================================================
   HELYO ARCHITECTES — feuille de style principale (v2)
   Palette issue du logo et du nuancier d'Elody :
   noir encre, vert anis, vert canard + nuances de vert
   ========================================================= */

@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ink: #231f20;
  --ink-soft: #5d5a58;
  --line: #dcd9d0;
  --paper: #f4f2ec;
  --white: #ffffff;
  --anis: #bbcc62;
  --anis-light: #dfe8b0;
  --canard: #10757a;
  --canard-deep: #0a4d51;
  --foret: #2f5b3c;
  --sauge: #7fa383;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", "Century Gothic", system-ui, sans-serif;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 60px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--sans); font-weight: 350; font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--anis); }
.on-dark .eyebrow { color: rgba(255,255,255,.7); }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 100px; border: 1px solid currentColor;
  transition: background .35s, color .35s, gap .35s var(--ease), border-color .35s;
}
.btn:hover { gap: 22px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.fill { background: var(--anis); border-color: var(--anis); color: var(--ink); }
.btn.fill:hover { background: var(--white); border-color: var(--white); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,242,236,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 7px; height: 7px; border-radius: 50%; background: var(--anis); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav .nav-cta { background: var(--canard); color: var(--white); padding: 11px 20px; border-radius: 100px; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--canard-deep); }
.lang { display: flex; gap: 8px; font-size: 12px; letter-spacing: .1em; }
.lang a { opacity: .45; }
.lang a.active { opacity: 1; font-weight: 600; }
.lang a::after { display: none; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; }
@media (max-width: 960px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 88px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 26px; padding: 40px var(--gutter); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
  .nav.open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav a { font-size: 24px; letter-spacing: .06em; }
  .logo img { height: 46px; }
}

/* ---------- Hero accueil : titre + diaporama ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - 88px); max-height: 940px; }
.hero-left { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(40px, 6vw, 80px) var(--gutter); overflow: hidden; }
.hero-left h1 { font-size: clamp(46px, 6.4vw, 104px); font-weight: 300; line-height: .98; position: relative; z-index: 2; }
.hero-left h1 em { color: var(--canard); }
.hero-left .sub { max-width: 34ch; font-size: 18px; color: var(--ink-soft); position: relative; z-index: 2; }
.hero-circle { position: absolute; width: clamp(260px, 30vw, 460px); aspect-ratio: 1; border-radius: 50%; background: var(--anis); right: -18%; bottom: 12%; z-index: 1; opacity: .9; }
.hero-bottom { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; position: relative; z-index: 2; }
.slides { position: relative; overflow: hidden; background: var(--ink); }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.slides figure.on { opacity: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slides figure.on img { transform: scale(1); }
.slides figcaption { position: absolute; left: 28px; bottom: 26px; color: var(--white); font-size: 14px; letter-spacing: .04em; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.slides figcaption strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 26px; }
.slide-dots { position: absolute; right: 28px; bottom: 30px; display: flex; gap: 8px; z-index: 3; }
.slide-dots button { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.slide-dots button.on { background: var(--anis); }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; max-height: none; min-height: 0; }
  .hero-left { gap: 40px; }
  .slides { height: 70vh; min-height: 420px; }
}

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--canard); color: var(--white); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: slide 38s linear infinite; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.4vw, 34px); }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--anis); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(40px, 5vw, 70px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 68px); font-weight: 300; margin-top: 16px; }
.section-head h2 em { color: var(--canard); }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 8vw, 130px); align-items: center; }
.portrait-wrap { position: relative; }
.portrait-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.05); position: relative; z-index: 1; }
.portrait-wrap::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--anis); top: -9%; left: -12%; }
.portrait-wrap::after { content: ""; position: absolute; inset: 8% -6% -6% 8%; border: 1px solid var(--canard); z-index: 0; }
.portrait-tag { position: absolute; z-index: 2; right: -18px; bottom: 36px; background: var(--ink); color: var(--paper); padding: 16px 22px; font-size: 14px; }
.portrait-tag strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; }
.intro .lead { font-size: clamp(24px, 2.5vw, 34px); font-weight: 300; line-height: 1.35; margin: 22px 0 28px; }
.intro .lead em { color: var(--canard); }
.intro p.body { color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .portrait-wrap { max-width: 420px; margin: 0 20px; } }

/* Chiffres */
.stats { background: var(--canard-deep); color: var(--white); padding: clamp(60px, 8vw, 100px) 0; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; }
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 6vw, 92px); line-height: 1; color: var(--anis); }
.stat span { display: block; margin-top: 12px; font-size: 15px; opacity: .85; max-width: 22ch; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; } }

/* Typologies en cartes-images */
.typo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.typo { position: relative; overflow: hidden; aspect-ratio: 3/4.4; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.typo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.typo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 28%, var(--tint) 72%, var(--tint) 100%); opacity: .95; transition: opacity .5s; z-index: 1; }
.typo::after { content: ""; position: absolute; inset: 0; background: var(--tint); opacity: 0; transition: opacity .5s; z-index: 1; }
.typo > *:not(img) { position: relative; z-index: 2; }
.typo .num { font-family: var(--serif); font-style: italic; font-size: 64px; font-weight: 200; line-height: 1; margin-bottom: auto; position: absolute; top: 20px; left: 26px; opacity: .9; }
.typo h3 { font-size: 26px; font-weight: 400; line-height: 1.1; text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.typo p { font-size: 15px; margin: 10px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.typo .go { margin-top: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.typo .go::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--anis); }
.typo:hover img { transform: scale(1.06); }
.typo:hover::after { opacity: .55; }
.typo:hover p { max-height: 120px; opacity: 1; }
.t1 { --tint: var(--canard-deep); } .t2 { --tint: var(--foret); } .t3 { --tint: #4d6b2f; } .t4 { --tint: #1d3b3d; }
@media (max-width: 1000px) { .typo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .typo-grid { grid-template-columns: 1fr; } .typo { aspect-ratio: 4/3.6; } .typo p { max-height: none; opacity: 1; } }

/* Projets sélectionnés */
.projects { background: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(22px, 3vw, 44px); row-gap: clamp(50px, 6vw, 90px); }
.card { grid-column: span 5; position: relative; }
.card.big { grid-column: span 7; }
.card.offset { margin-top: clamp(0px, 8vw, 120px); }
.card.full { grid-column: 2 / span 10; }
.card .img { overflow: hidden; position: relative; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card.tall img { aspect-ratio: 4/5; }
.card.full img { aspect-ratio: 21/9; }
.card:hover img { transform: scale(1.04); }
.card .idx { position: absolute; top: -0.55em; left: -0.08em; z-index: 2; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(60px, 7vw, 110px); line-height: 1; color: var(--canard); pointer-events: none; }
.card .img::after { content: "Voir le projet"; position: absolute; right: 18px; bottom: 18px; background: var(--anis); color: var(--ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 10px 16px; border-radius: 100px; transform: translateY(20px); opacity: 0; transition: .45s var(--ease); }
.card:hover .img::after { transform: none; opacity: 1; }
.card .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: start; }
.card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; }
.card .place { font-size: 15px; color: var(--ink-soft); }
.card .typo-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--canard); font-weight: 500; white-space: nowrap; padding-top: 6px; }
.badge-sud, .badge-helyo { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; font-weight: 500; }
.badge-sud { color: var(--ink-soft); border: 1px solid var(--line); }
.badge-helyo { color: var(--ink); background: var(--anis); }
@media (max-width: 800px) { .card, .card.big, .card.full { grid-column: 1 / -1; } .card.offset { margin-top: 0; } .card.full img { aspect-ratio: 4/3; } }

/* Citation */
.quote { background: var(--anis); overflow: hidden; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.6vw, 70px); line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; position: relative; z-index: 1; }
.quote blockquote::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--canard); }
.quote cite { display: block; font-family: var(--sans); margin-top: 34px; font-style: normal; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.quote .ring { position: absolute; width: clamp(340px, 42vw, 640px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink); right: -8%; top: 50%; transform: translateY(-50%); opacity: .35; }
.quote .ring::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: var(--canard); opacity: .9; }

/* Références */
.refs { background: var(--ink); color: var(--paper); overflow: hidden; }
.refs .section-head h2 em { color: var(--anis); }
.refs-rows { display: grid; gap: 10px; }
.refs-row { white-space: nowrap; overflow: hidden; border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; }
.refs-row .track { display: inline-flex; gap: 60px; animation: slide 50s linear infinite; font-size: clamp(26px, 3.2vw, 46px); font-weight: 300; }
.refs-row.rev .track { animation-direction: reverse; }
.refs-row .track span { display: inline-flex; align-items: baseline; gap: 14px; }
.refs-row .track small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--anis); }
.refs-row .track i { font-style: normal; color: var(--canard); margin-left: 46px; }
.refs .btn { color: var(--paper); margin-top: 50px; }
.refs .btn:hover { background: var(--anis); color: var(--ink); border-color: var(--anis); }

/* Actualités */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.news .img { overflow: hidden; margin-bottom: 20px; }
.news img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform 1s var(--ease); }
.news:hover img { transform: scale(1.04); }
.news time { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: var(--canard); color: var(--white); padding: 4px 10px; border-radius: 100px; }
.news h3 { font-size: 23px; margin: 14px 0 10px; }
.news:hover h3 { color: var(--canard); }
.news p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* Appel contact */
.cta { background: var(--canard); color: var(--white); text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(40px, 6.4vw, 100px); font-weight: 300; max-width: 16ch; margin: 22px auto 44px; position: relative; z-index: 1; }
.cta h2 em { color: var(--anis); }
.cta .circle { position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%; background: var(--canard-deep); left: -120px; bottom: -160px; }
.cta .circle.two { width: 180px; background: var(--anis); left: auto; right: 8%; top: 14%; bottom: auto; opacity: .9; }
.cta .wrap { position: relative; z-index: 1; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 80px 0 30px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.14); flex-wrap: wrap; }
.footer-top .big { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(34px, 4vw, 60px); color: var(--white); line-height: 1.05; }
.footer-logo { background: var(--paper); padding: 14px 18px; border-radius: 4px; }
.footer-logo img { height: 60px; width: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin: 0 0 14px; color: var(--anis); }
.footer-grid a:hover { color: var(--anis); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 60px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; opacity: .6; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Fiche projet ---------- */
.project-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(92vh - 88px); }
.project-intro { background: var(--canard-deep); color: var(--white); padding: clamp(30px, 5vw, 70px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.project-intro .circle { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--anis); right: -16%; bottom: -14%; opacity: .95; }
.project-intro > * { position: relative; z-index: 1; }
.project-intro h1.long { font-size: clamp(40px, 4.6vw, 76px); }
.breadcrumb { font-size: 13px; letter-spacing: .04em; opacity: .75; position: relative; z-index: 1; }
.breadcrumb a:hover { color: var(--anis); }
.breadcrumb span { margin: 0 8px; opacity: .5; }
.project-intro h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(52px, 7vw, 116px); line-height: .95; margin: 16px 0 12px; position: relative; z-index: 1; }
.project-intro .place { font-size: clamp(17px, 1.6vw, 22px); opacity: .9; }
.project-intro .eyebrow { color: rgba(255,255,255,.75); }
.project-intro .badge-sud { color: var(--white); border-color: rgba(255,255,255,.4); }
.project-hero { position: relative; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .project-top { grid-template-columns: 1fr; } .project-hero img { aspect-ratio: 4/3; } }

.project-body { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); padding: clamp(70px, 9vw, 130px) 0; }
.facts { margin: 0; position: sticky; top: 110px; align-self: start; background: var(--white); padding: 12px 30px 20px; border-top: 4px solid var(--anis); }
.facts div { display: grid; grid-template-columns: 124px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--canard); font-weight: 500; padding-top: 3px; }
.facts dd { margin: 0; }
.project-text h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 300; margin-bottom: 34px; max-width: 20ch; }
.project-text h2 em { color: var(--canard); }
.project-text p { font-size: 18px; max-width: 62ch; }
.project-text p:first-of-type::first-letter { font-family: var(--serif); font-size: 4.2em; float: left; line-height: .85; padding: 6px 12px 0 0; color: var(--canard); }
@media (max-width: 960px) { .project-body { grid-template-columns: 1fr; } .facts { position: static; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); padding-bottom: clamp(70px, 9vw, 130px); }
.gallery figure { margin: 0; cursor: zoom-in; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.g-full { grid-column: span 12; } .g-half { grid-column: span 6; } .g-third { grid-column: span 4; } .g-2third { grid-column: span 8; }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--paper); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
@media (max-width: 700px) { .g-half, .g-third, .g-2third { grid-column: span 12; } }

.project-nav { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.project-nav a { padding: clamp(40px, 5vw, 70px) var(--gutter); display: flex; flex-direction: column; gap: 8px; transition: background .4s, color .4s; }
.project-nav a + a { text-align: right; border-left: 1px solid var(--line); }
.project-nav small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.project-nav strong { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 44px); font-weight: 300; }
.project-nav a:hover { background: var(--canard); color: var(--white); }
.project-nav a:hover small { color: var(--anis); }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,19,.96); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: inherit; font-size: 30px; cursor: pointer; padding: 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--anis); }
.lb-close { top: 10px; right: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Apparition douce */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .refs-row .track { animation: none; }
  .slides figure, .slides img { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   PAGES INTÉRIEURES
   ========================================================= */
section.tight { padding: clamp(50px, 6vw, 90px) 0; }
.narrow { max-width: 860px; }
.h-lg { font-size: clamp(34px, 4vw, 58px); font-weight: 300; margin-top: 16px; }
.h-lg em { color: var(--canard); }
.lead-s { font-size: clamp(20px, 1.9vw, 25px); font-weight: 300; line-height: 1.5; color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; font: inherit; font-size: 13px; letter-spacing: .04em;
  padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s, color .3s;
}
.chip:hover { border-color: var(--canard); color: var(--canard); }
.chip.on { background: var(--canard); border-color: var(--canard); color: var(--white); }

/* En-tête de page */
.page-head { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 130px) 0 clamp(50px, 7vw, 100px); border-bottom: 1px solid var(--line); }
.page-head-inner { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(48px, 7.4vw, 118px); font-weight: 300; line-height: .98; margin: 18px 0 0; }
.page-head h1 em { color: var(--canard); }
.page-intro { max-width: 60ch; margin-top: 30px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); }
.page-intro a { color: var(--canard); text-decoration: underline; }
.ph-circle { position: absolute; width: clamp(240px, 32vw, 520px); aspect-ratio: 1; border-radius: 50%; background: var(--anis); right: -8%; top: -30%; opacity: .9; }
.page-head.with-img { padding-bottom: 0; border: 0; }
.page-head.with-img .page-head-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: end; }
.page-head.with-img .page-head-text { padding-bottom: clamp(40px, 6vw, 90px); }
.page-head-img img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }
.page-head.with-img .ph-circle { right: auto; left: 44%; top: 8%; width: clamp(160px, 20vw, 320px); }
@media (max-width: 900px) {
  .page-head.with-img .page-head-inner { grid-template-columns: 1fr; }
  .page-head-img img { aspect-ratio: 4/3; }
  .page-head.with-img .ph-circle { left: auto; right: -20%; }
}

/* Filtres + liste de projets */
.filters { display: grid; gap: 14px; margin-bottom: clamp(40px, 5vw, 60px); padding: 22px 24px; background: var(--paper); }
.f-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; margin-right: 8px; min-width: 90px; }
.f-sep { width: 1px; height: 24px; background: var(--line); margin: 0 14px; }
.grid-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); row-gap: clamp(44px, 5vw, 70px); }
.grid-list .card { grid-column: auto; }
.grid-list .card img { aspect-ratio: 4/3; }
.grid-list .card.hide { display: none; }
.empty { padding: 40px 0; color: var(--ink-soft); }
.other-typos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(60px, 7vw, 100px); padding-top: 30px; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-list { grid-template-columns: 1fr; } .f-sep { display: none; } .f-label { width: 100%; } }

/* Galerie projet (colonnes calculées par le générateur) */
.g4 { grid-column: span 4; } .g6 { grid-column: span 6; } .g8 { grid-column: span 8; } .g10 { grid-column: span 10; } .g12 { grid-column: span 12; }
.gallery figure.plan { background: var(--white); }
.gallery figure.plan img { object-fit: contain; padding: 14px; }
@media (max-width: 700px) { .g4, .g6, .g8, .g10 { grid-column: span 12; } }
.project-typos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

/* Agence */
.two-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 8vw, 130px); align-items: start; }
.two-cols > div:first-child { position: sticky; top: 120px; }
.prose p { font-size: 18px; color: var(--ink-soft); }
.prose p.lead-s { color: var(--ink); }
.prose a { color: var(--canard); text-decoration: underline; }
@media (max-width: 900px) { .two-cols { grid-template-columns: 1fr; } .two-cols > div:first-child { position: static; } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--paper); padding: clamp(28px, 3vw, 44px); transition: background .4s; }
.pillar:hover { background: var(--white); }
.pillar .num { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 46px; color: var(--canard); line-height: 1; }
.pillar h3 { font-size: 23px; margin: 18px 0 12px; }
.pillar p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--canard); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 0 0 30px 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--anis); }
.timeline .yr { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--canard); line-height: 1.2; }
.timeline strong { display: block; font-weight: 500; font-size: 17px; }
.timeline span { font-size: 15px; color: var(--ink-soft); }

/* Références */
.refs-page { padding-top: clamp(40px, 5vw, 70px); }
.ref-cat { margin-bottom: clamp(50px, 6vw, 90px); }
.ref-cat-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); color: var(--canard); margin-bottom: 10px; }
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ref h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; }
.ref-projects { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ref-projects a { font-size: 14px; padding: 7px 14px; border-radius: 100px; background: var(--white); border: 1px solid var(--line); transition: .3s; }
.ref-projects a span { color: var(--ink-soft); margin-left: 4px; }
.ref-projects a:hover { background: var(--canard); color: var(--white); border-color: var(--canard); }
.ref-projects a:hover span { color: var(--anis); }
.ref-projects .note { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 700px) { .ref { grid-template-columns: 1fr; gap: 12px; } }

/* Actualités */
.news .cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-left: 8px; }
.article { padding: clamp(50px, 7vw, 100px) 0; }
.article h1 { font-size: clamp(38px, 5vw, 72px); font-weight: 300; margin: 18px 0 22px; }
.breadcrumb.dark { opacity: 1; color: var(--ink-soft); margin-bottom: 30px; }
.breadcrumb.dark a:hover { color: var(--canard); }
.article-hero { margin: clamp(30px, 5vw, 60px) auto; }
.article-hero img { width: 100%; max-height: 80vh; object-fit: cover; }
.article-photos { display: grid; gap: 20px; margin: 30px auto 40px; }
.article-photos figure { margin: 0; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact-card { background: var(--canard-deep); color: var(--white); padding: clamp(30px, 4vw, 50px); position: sticky; top: 120px; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 180px; aspect-ratio: 1; border-radius: 50%; background: var(--anis); right: -60px; bottom: -60px; }
.contact-card h2 { font-size: 34px; font-weight: 400; line-height: 1; margin-bottom: 26px; }
.contact-card h2 em { color: var(--anis); }
.contact-card p { opacity: .92; }
.contact-card a:hover { color: var(--anis); }
.contact-card .chip { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.contact-form { display: grid; gap: 20px; }
.contact-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); background: var(--white); border-radius: 2px; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--canard); box-shadow: 0 0 0 3px rgba(16,117,122,.12); }
.contact-form label.file input { padding: 12px; background: var(--paper); }
.contact-form label small { text-transform: none; letter-spacing: 0; font-weight: 350; }
.contact-form .consent { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 350; }
.contact-form .consent input { width: auto; margin-top: 4px; }
.contact-form .consent a { color: var(--canard); text-decoration: underline; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button { justify-self: start; cursor: pointer; font-family: inherit; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { position: static; } .contact-form .f2 { grid-template-columns: 1fr; } }

/* Pied de page : territoires */
.footer-zones { margin: 44px 0 0; font-size: 14px; line-height: 1.9; }
.footer-zones span { color: var(--anis); letter-spacing: .06em; margin-right: 6px; }
.footer-zones a:hover { color: var(--anis); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--canard); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; max-width: 60ch; }
.prose .chip { text-decoration: none; }

/* =========================================================
   MOBILE — finitions (téléphones et petites tablettes)
   ========================================================= */
.nav-extra { display: none; }
.stat b { white-space: nowrap; }

@media (max-width: 960px) {
  /* En-tête plein : le flou d'arrière-plan cassait le menu en position fixe */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .site-header .wrap { height: 72px; }

  /* Menu plein écran */
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; height: calc(100dvh - 72px);
    background: var(--paper); z-index: 60; overflow-y: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 18px var(--gutter) 40px;
  }
  .nav > a:not(.nav-cta) {
    font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0;
    font-size: 34px; padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .nav > a::after { display: none; }
  .nav > a[aria-current="page"] { color: var(--canard); }
  .nav .nav-cta { order: 10; margin-top: 30px; text-align: center; padding: 16px 20px; font-size: 14px; }
  .nav .lang { order: 11; margin-top: 24px; font-size: 14px; gap: 18px; }
  .nav .lang a { padding: 6px 0; }
  .nav-extra { display: block; order: 12; margin-top: auto; padding-top: 34px; font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
  .nav-extra a { display: block; color: var(--ink); }

  /* Bouton ☰ → ✕ */
  .burger { position: relative; z-index: 61; padding: 12px; margin-right: -12px; }
  .burger span { transition: transform .35s var(--ease), opacity .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  section.tight { padding: 40px 0; }
  .section-head { margin-bottom: 34px; gap: 20px; }
  .section-head h2 { font-size: 34px; }
  .btn { padding: 14px 22px; font-size: 12px; }

  /* Accueil : ouverture */
  .hero-left { padding: 34px var(--gutter) 40px; gap: 28px; }
  .hero-left h1 { font-size: 46px; }
  .hero-circle { width: 170px; right: -60px; top: 28px; bottom: auto; opacity: .85; }
  .hero-left .sub { font-size: 16px; }
  .slides { height: 62vh; min-height: 360px; }
  .slides figcaption { left: 20px; bottom: 44px; }
  .slide-dots { left: 20px; right: auto; bottom: 22px; }
  .marquee { padding: 16px 0; }

  /* Portrait */
  .portrait-wrap { margin: 20px 16px 0 0; }
  .portrait-wrap::before { width: 46%; left: -8%; top: -6%; }
  .portrait-tag { right: -10px; bottom: 20px; padding: 12px 16px; }
  .intro .lead { font-size: 23px; }

  /* Chiffres */
  .stats-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 34px; }
  .stat b { font-size: 44px; }
  .stat span { font-size: 14px; }

  /* Cartes projets : catégorie sous le titre */
  .card .meta { flex-direction: column; gap: 6px; }
  .card .typo-tag { order: -1; padding-top: 0; font-size: 11px; }
  .card .idx { font-size: 56px; }
  .card .img::after { display: none; }

  /* Citation : on retire le cercle derrière le texte */
  .quote .ring { display: none; }
  .quote blockquote { font-size: 30px; }

  /* Bloc contact */
  .cta h2 { font-size: 40px; margin: 16px auto 30px; }
  .cta .circle { width: 220px; left: -110px; bottom: -120px; }
  .cta .circle.two { width: 90px; right: -20px; top: 20px; }

  /* En-têtes de pages */
  .page-head { padding: 44px 0 40px; }
  .page-head h1 { font-size: 44px; }
  .page-intro { font-size: 16px; margin-top: 20px; }
  .ph-circle { width: 150px; right: -50px; top: -50px; }
  .page-head.with-img .page-head-text { padding-bottom: 30px; }
  .page-head.with-img .ph-circle { width: 120px; right: -40px; left: auto; top: 20px; }

  /* Fiche projet */
  .project-intro { padding: 26px var(--gutter) 34px; gap: 26px; }
  .project-intro h1 { font-size: 50px; }
  .project-intro h1.long { font-size: 38px; }
  .project-intro .circle { width: 120px; right: -40px; bottom: -40px; }
  .project-body { padding: 44px 0 50px; gap: 34px; }
  .facts { padding: 6px 20px 12px; }
  .facts div { grid-template-columns: 110px 1fr; gap: 12px; font-size: 14.5px; }
  .project-text h2 { font-size: 28px; margin-bottom: 22px; }
  .project-text p { font-size: 16.5px; }
  .gallery { gap: 10px; padding-bottom: 50px; }
  .gallery img { aspect-ratio: 4/3 !important; }
  .project-nav a { padding: 28px 18px; }
  .project-nav small { font-size: 10px; letter-spacing: .12em; }
  .project-nav strong { font-size: 22px; line-height: 1.2; }

  /* Filtres du portfolio : une ligne défilante par groupe */
  .filters { padding: 16px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .f-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .f-row::-webkit-scrollbar { display: none; }
  .f-row .chip { flex: none; }
  .f-label { width: auto; min-width: 0; flex: none; }
  .f-row:last-child { flex-wrap: wrap; row-gap: 12px; }
  .f-sep { display: none; }

  /* Tuiles typologies */
  .typo { aspect-ratio: auto; min-height: 260px; padding: 22px; }
  .typo .num { font-size: 48px; top: 16px; left: 22px; }

  /* Agence */
  .pillar { padding: 26px 22px; }
  .timeline li { grid-template-columns: 70px 1fr; gap: 12px; padding-left: 20px; }
  .timeline .yr { font-size: 18px; }

  /* Références */
  .ref { padding: 20px 0; }
  .ref h3 { font-size: 24px; }

  /* Contact */
  .contact-card { position: relative; padding: 28px 24px; }
  .contact-card::after { width: 110px; right: -40px; bottom: -40px; }
  .contact-form .consent { display: block; }
  .contact-form .consent input { margin: 0 8px 0 0; vertical-align: -2px; }
  .contact-form button { width: 100%; justify-content: center; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; } /* évite le zoom iPhone */

  /* Articles */
  .article { padding: 40px 0 60px; }
  .article h1 { font-size: 34px; }

  /* Pied de page : une colonne */
  .site-footer { padding: 56px 0 28px; }
  .footer-top { flex-direction: column; align-items: flex-start; padding-bottom: 34px; margin-bottom: 34px; }
  .footer-top .big { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-grid > div:first-child, .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .footer-grid ul { gap: 2px; }
  .footer-grid ul a { display: inline-block; padding: 5px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 34px; }
  .faq-item summary { font-size: 17px; }
}

@media (max-width: 380px) {
  .hero-left h1 { font-size: 40px; }
  .page-head h1 { font-size: 38px; }
  .stat b { font-size: 38px; }
  .nav > a:not(.nav-cta) { font-size: 30px; }
}
@media (max-width: 960px) {
  .nav .nav-extra a { font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 3px 0; font-family: var(--sans); font-style: normal; border: 0; overflow-wrap: anywhere; }
}
@media (max-width: 960px) {
  .site-header { background: var(--paper) !important; }
  .nav { height: calc(100vh - 72px); height: calc(100dvh - 72px); padding-bottom: calc(40px + env(safe-area-inset-bottom)); background: var(--paper) !important; }
  .nav:not(.open) { pointer-events: none; }
}
