@property --cut-btn { syntax: '<length>'; inherits: false; initial-value: 14px; }
@property --mark { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

/* ==========================================================================
   Batilogis — feuille de style partagée
   ========================================================================== */

:root {
  --brand: #FCD936;
  --ink: #121212;
  --ink-2: #1D1D1B;
  --paper: #FFFFFF;
  --soft: #F5F5F3; /* gris très clair pour détacher un bloc sur blanc */
  --surface: #FFFFFF;
  --muted: #5B5A55;
  --line: #E6E6E3;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B4B1A8;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 16px;
  --radius: 4px;
  --cut: 28px; /* angle coupé du logo */
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --cut: 40px; }
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brand); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--ink); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 88px; }
@media (min-width: 1024px) { .section { padding-block: 128px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typo helpers ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--brand); }
.on-dark .eyebrow { color: var(--on-dark-muted); }

.h-display { font-size: clamp(40px, 5.6vw, 80px); font-weight: 600; }
.h-section { font-size: clamp(32px, 4.2vw, 56px); }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 58ch; }
.on-dark .lead { color: var(--on-dark-muted); }
.mark {
  --mark: 100%;
  background-image: linear-gradient(100deg, transparent .2em, var(--brand) .25em, var(--brand) calc(100% - .2em), transparent calc(100% - .12em));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: var(--mark) 46%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .06em; margin-inline: -.06em;
}
.js .mark { --mark: 0%; transition: --mark .7s cubic-bezier(.65, 0, .35, 1) var(--mark-delay, .2s); }
.js .mark.is-marked { --mark: 100%; }
/* Pas de stabilo sur fond noir (texte blanc illisible sur le jaune) */
.on-dark .mark { background: none; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; border: 2px solid var(--btn-bg); border-radius: 0;
  cursor: pointer;
  --cut-btn: 14px;
  clip-path: polygon(0 0, calc(100% - var(--cut-btn)) 0, 100% var(--cut-btn), 100% 100%, 0 100%);
  transition: --cut-btn .3s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { --cut-btn: 24px; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); --cut-btn: 14px; }
.btn--brand { --btn-bg: var(--brand); --btn-fg: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); clip-path: none; }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn--ghost { color: var(--on-dark); border-color: rgba(246,244,239,.5); }
.on-dark .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600;
  text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand-logo img { height: 46px; } }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--font-display); font-weight: 500; font-size: 16px; text-decoration: none; color: var(--ink);
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: none; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration: none;
}
.header-phone svg { width: 18px; height: 18px; }
.header-cta { display: none; min-height: 46px; padding: 0 20px; font-size: 15px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1200px) { .header-phone { display: inline-flex; } }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink); color: var(--on-dark);
  padding: 32px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
}
.nav-open .mobile-nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-open { overflow: hidden; }
.mobile-nav ul li { border-bottom: 1px solid rgba(246,244,239,.12); }
.mobile-nav ul a {
  display: flex; justify-content: space-between; align-items: center; min-height: 64px;
  font-family: var(--font-display); font-size: 28px; font-weight: 500; text-decoration: none;
}
.mobile-nav ul a[aria-current="page"] { color: var(--brand); }
.mobile-nav-foot { display: grid; gap: 12px; margin-top: 32px; }
.mobile-nav-foot a:not(.btn) { color: var(--on-dark-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* Hero -------------------------------------------------------------------- */
.hero { padding-top: 40px; padding-bottom: 72px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-top: 64px; padding-bottom: 104px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.hero-copy { display: grid; gap: 28px; }
.hero h1 { max-width: 14ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .hero-ctas .btn { flex: 0 0 auto; } }

.hero-media { position: relative; }
.hero-media .frame {
  aspect-ratio: 4 / 5;
  clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% calc(var(--cut) * 2), 100% 100%, 0 100%);
  background: var(--line);
  overflow: hidden;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .frame-2 {
  display: none; position: absolute; left: -64px; bottom: -40px; width: 42%;
  aspect-ratio: 3 / 4; border: 8px solid var(--paper);
  clip-path: none;
}
.hero-media .frame-2 img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .hero-media .frame { aspect-ratio: 4 / 4.6; margin-left: 48px; }
  .hero-media .frame-2 { display: block; }
}
.hero-stamp {
  position: absolute; right: -18px; bottom: -36px; width: 116px; height: 116px;
  background: var(--paper); border-radius: 50%; padding: 6px;
}
@media (min-width: 1024px) { .hero-stamp { width: 148px; height: 148px; right: -28px; bottom: -44px; } }
.hero-stamp img { width: 100%; height: 100%; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Trust bar */
.trust-bar { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
@media (min-width: 768px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .trust-bar { margin-top: 80px; } }
.trust-item strong { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.trust-item span { font-size: 15px; color: var(--muted); }

/* Services ---------------------------------------------------------------- */
.section-head { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; margin-bottom: 64px; }
}
.services-grid { display: grid; gap: 0; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service {
  position: relative; background: var(--surface); padding: 32px 28px 36px; display: grid; gap: 16px; align-content: start;
  transition: transform .3s var(--ease-out);
}
.service:hover { transform: translateY(-4px); }
.service:nth-child(odd) { background: var(--ink); color: var(--on-dark); }
.service:nth-child(even) { background: var(--brand); color: var(--ink); }
.service:nth-child(odd) p, .service:nth-child(odd) .service-num { color: var(--on-dark-muted); }
.service:nth-child(even) p, .service:nth-child(even) .service-num { color: #2B2B2B; }
.service:nth-child(even) .service-icon { background: var(--ink); color: var(--brand); }
.service:nth-child(odd) li::before { background: var(--brand); }

.service-num { font-family: var(--font-display); font-size: 14px; color: var(--muted); font-weight: 500; }
.service-icon {
  width: 56px; height: 56px; display: grid; place-items: center; background: var(--brand); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 24px; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { display: grid; gap: 6px; margin-top: 4px; font-size: 15px; }
.service li { display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--ink); transform: translateY(-1px); clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* About / entreprise générale -------------------------------------------- */
.about { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.about-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.about-media { position: relative; }
.about-media .frame {
  aspect-ratio: 4 / 3; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) * 2), calc(100% - var(--cut) * 2) 100%, 0 100%);
}
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media figcaption { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); display: flex; gap: 10px; align-items: center; }
.about-media figcaption::before { content: ""; width: 10px; height: 10px; background: var(--brand); }
.about-copy { display: grid; gap: 28px; }
.about-copy p { color: var(--on-dark-muted); }
.about-copy p strong { color: var(--on-dark); font-weight: 600; }
.checklist { display: grid; gap: 14px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

/* Process ---------------------------------------------------------------- */
.steps { display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.step { position: relative; display: grid; gap: 14px; padding-top: 28px;
  background: linear-gradient(var(--ink), var(--ink)) top left / 100% 3px no-repeat; }
@media (min-width: 1024px) { .step { padding-right: 32px; } }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; color: var(--ink);
  -webkit-text-stroke: 0; letter-spacing: -0.03em;
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 3px; background: var(--brand);
}
.js .steps.reveal { opacity: 1; transform: none; }
.js .steps .step { background-size: 0% 3px; transition: background-size .6s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * .25s); }
.js .steps .step::after { transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out) calc(var(--i) * .25s + .45s); }
.js .steps .step > *, .js .steps .step::before { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out) calc(var(--i) * .25s + .3s), transform .5s var(--ease-out) calc(var(--i) * .25s + .3s); }
.js .steps.is-visible .step { background-size: 100% 3px; }
.js .steps.is-visible .step::after { transform: none; }
.js .steps.is-visible .step > *, .js .steps.is-visible .step::before { opacity: 1; transform: none; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); font-size: 16px; }

/* Projects ---------------------------------------------------------------- */
.projects { background: var(--surface); }
.projects-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(12, 1fr); gap: 40px 28px; }
  .projects-grid .project:nth-child(1), .projects-grid .project:nth-child(2) { grid-column: span 6; }
  .projects-grid .project:nth-child(n+3) { grid-column: span 3; }
  .projects-grid .project:nth-child(n+3) h3 { font-size: 19px; }
  .projects-grid .project:nth-child(n+3) .project-body { flex-direction: column; gap: 4px; }
}
.project { display: grid; gap: 16px; text-decoration: none; color: inherit; }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.projects-grid .project:nth-child(-n+2) .project-media { aspect-ratio: 16 / 10; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.project:hover .project-media img { transform: scale(1.04); }
.project-tag {
  position: absolute; left: 0; top: 0; background: var(--brand); color: var(--ink);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px 8px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.project-arrow {
  position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.project-arrow svg { width: 20px; height: 20px; }
.project:hover .project-arrow, .project:focus-visible .project-arrow { opacity: 1; transform: none; }
@media (hover: none) { .project-arrow { opacity: 1; transform: none; } }
.project-body { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.project h3 { font-size: 21px; line-height: 1.2; }
.project-meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.projects-foot { margin-top: 56px; display: flex; justify-content: center; }

/* Values + founder -------------------------------------------------------- */
.values-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .values-grid { grid-template-columns: 5fr 7fr; gap: 96px; } }
.values-list { display: grid; gap: 0; }
.value { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.value:first-child { border-top: 1px solid var(--line); }
.value svg { width: 32px; height: 32px; }
.value h3 { font-size: 22px; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 16px; }

.founder { position: relative; background: var(--ink); color: var(--on-dark); padding: 40px 32px; display: grid; gap: 24px; border-left: 6px solid var(--brand); }
@media (min-width: 768px) { .founder { padding: 56px 56px; } }
.founder blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.founder-sign { display: flex; gap: 16px; align-items: center; }
.founder-sign img { width: 52px; height: 52px; }
.founder-sign strong { display: block; font-family: var(--font-display); }
.founder-sign span { font-size: 15px; color: var(--on-dark-muted); }
.founder-quote-icon { width: 44px; height: 44px; color: var(--brand); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: var(--brand); position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 80px; } }
.cta-band h2 { max-width: 16ch; }
.cta-band .lead { color: #2B2B2B; margin-top: 20px; }
.cta-actions { display: grid; gap: 14px; }
.cta-contact { display: grid; gap: 4px; margin-top: 12px; }
.cta-contact a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 20px; text-decoration: none; }
.cta-contact svg { width: 22px; height: 22px; }
.cta-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-mark { position: absolute; right: -80px; top: 50%; width: 420px; transform: translateY(-50%); opacity: .35; filter: brightness(0) invert(1); pointer-events: none; }
@media (max-width: 1023px) { .cta-mark { width: 280px; right: -100px; top: 85%; } }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: 80px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.footer-logo img { width: 44px; height: auto; }
.footer-logo span { font-family: var(--font-display); line-height: 1.1; }
.footer-logo b { display: block; font-size: 26px; letter-spacing: .02em; font-weight: 700; }
.footer-logo small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-brand p { color: var(--on-dark-muted); font-size: 15px; max-width: 34ch; }
.site-footer h2 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; margin-bottom: 16px; }
.site-footer address { font-style: normal; }
.site-footer li a, .site-footer address a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.site-footer li a:hover, .site-footer address a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(246,244,239,.12); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; font-size: 14px; color: var(--on-dark-muted);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); }

/* Page placeholder -------------------------------------------------------- */
.page-hero { padding-block: 80px 64px; border-bottom: 1px solid var(--line); }
.page-hero .h-display { margin-top: 20px; }
.page-hero .lead { margin-top: 24px; }

/* Reveal animation ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Pages intérieures
   ========================================================================== */

/* Page hero */
.page-hero { padding-block: 56px 64px; border-bottom: 0; }
@media (min-width: 1024px) { .page-hero { padding-block: 88px 96px; } }
.page-hero-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 80px; } }
.page-hero h1 { margin-top: 20px; max-width: 16ch; }
.page-hero .lead { margin-top: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb li { display: inline-flex; align-items: center; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.chip:hover { background: rgba(18,18,18,.06); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip .count { margin-left: 6px; opacity: .6; font-weight: 500; }

/* Status badge */
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E7D32; }
.status--progress::before { background: #E08A00; }
.status--soon::before { background: #5B5A55; }

/* Project list (page Projets) */
.plist { display: grid; gap: 48px 28px; }
@media (min-width: 640px) { .plist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plist { grid-template-columns: repeat(3, 1fr); } }
.plist .project-media { aspect-ratio: 4 / 3; }
.plist .project h3 { font-size: 21px; }
.plist .project-body { flex-direction: column; gap: 10px; }
.plist .project-info { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.plist .project-info span { display: inline-flex; align-items: center; gap: 6px; }
.plist .project-info svg { width: 16px; height: 16px; }
.plist .project[hidden] { display: none; }
.plist .project .status { position: absolute; right: 12px; top: 12px; }

/* Project detail */
.pd-head { display: grid; gap: 32px; }
@media (min-width: 1024px) { .pd-head { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; } }
.pd-head h1 { font-size: clamp(36px, 5vw, 68px); margin-top: 20px; }
.pd-facts { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.pd-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pd-facts dt { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pd-facts dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.pd-desc { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; max-width: 62ch; margin-top: 28px; }
.pd-cover { margin-top: 56px; aspect-ratio: 16 / 8; overflow: hidden; background: var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% calc(var(--cut) * 2), 100% 100%, 0 100%); }
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .pd-cover { aspect-ratio: 4 / 3; } }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery button {
  position: relative; padding: 0; border: 0; background: var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; display: block; width: 100%;
}
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery button:hover img { transform: scale(1.04); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.gallery-head h2 { font-size: clamp(28px, 3vw, 40px); }
.gallery-head span { color: var(--muted); font-size: 15px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,10,10,.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 16px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 128px); object-fit: contain; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(246,244,239,.12); color: var(--paper); transition: background-color .2s;
}
.lb-btn:hover { background: var(--brand); color: var(--ink); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--on-dark-muted); font-size: 14px; }

/* Prev / next project */
.pd-nav { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .pd-nav { grid-template-columns: 1fr 1fr; } }
.pd-nav a { background: var(--paper); padding: 32px var(--gutter); text-decoration: none; display: grid; gap: 6px; transition: background-color .2s; }
.pd-nav a:hover { background: var(--soft); }
.pd-nav a:last-child { text-align: right; }
.pd-nav small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pd-nav strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* About page */
.split { display: grid; gap: 48px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.split .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) * 2), calc(100% - var(--cut) * 2) 100%, 0 100%); }
.split .frame img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: grid; gap: 20px; }
.prose p { color: var(--muted); font-size: 18px; }
.prose p strong { color: var(--ink); font-weight: 600; }

.timeline { display: grid; gap: 0; margin-top: 12px; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.timeline p { font-size: 16px !important; }

.compare { display: grid; gap: 24px; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { padding: 36px 32px; display: grid; gap: 20px; align-content: start; }
.compare-col h3 { font-size: 24px; }
.compare-col ul { display: grid; gap: 14px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; }
.compare-col svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.compare-col--without { background: transparent; border: 1.5px solid var(--line); }
.compare-col--without li { color: var(--muted); }
.compare-col--without svg { color: #9A978E; }
.compare-col--with { background: var(--ink); color: var(--on-dark); }
.compare-col--with svg { color: var(--brand); }
.compare-col .tag { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.compare-col--with .tag { color: var(--brand); }

.values-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .values-cards { grid-template-columns: repeat(3, 1fr); } }
.values-cards article { background: var(--surface); padding: 36px 32px; display: grid; gap: 14px; align-content: start; }
.values-cards svg { width: 36px; height: 36px; }
.values-cards h3 { font-size: 24px; }
.values-cards p { color: var(--muted); font-size: 16px; }

.founder--wide { border-left: 0; border-top: 6px solid var(--brand); }
@media (min-width: 1024px) {
  .founder--wide { grid-template-columns: auto 1fr; column-gap: 48px; padding: 64px; }
  .founder--wide .founder-quote-icon { grid-row: span 2; width: 64px; height: 64px; }
}

/* Contact page */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.form-card { background: var(--surface); padding: 32px 24px; border: 1px solid var(--line); }
@media (min-width: 768px) { .form-card { padding: 48px; } }
.form-card h2 { font-size: 28px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 32px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; } /* les champs d'une même ligne restent à la même hauteur */
.field label, .chips-field legend { font-weight: 600; font-size: 15px; }
.field label .req { color: #B3261E; margin-left: 2px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid #CFCAC0; border-radius: 0; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px var(--brand); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field .error { display: none; color: #B3261E; font-size: 14px; font-weight: 500; }
.field.has-error .error { display: block; }
.chips-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips-field legend { padding: 0; margin-bottom: 10px; }
.chips-field .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-field input { position: absolute; opacity: 0; pointer-events: none; }
.chips-field label.opt {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #CFCAC0; cursor: pointer;
  font-weight: 500; font-size: 15px; transition: all .2s var(--ease-out);
}
.chips-field label.opt:hover { border-color: var(--ink); }
.chips-field input:checked + label.opt { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips-field input:focus-visible + label.opt { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 28px; }
.form-foot small { color: var(--muted); font-size: 14px; max-width: 40ch; }
.form-success { display: none; padding: 20px 24px; background: #EEF6EE; border-left: 4px solid #2E7D32; margin-top: 24px; }
.form-success.is-visible { display: block; }
.form-success strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }

.info-stack { display: grid; gap: 16px; }
.info-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
a.info-card:hover { border-color: var(--ink); }
.info-card .ic { flex: 0 0 48px; height: 48px; display: grid; place-items: center; background: var(--brand);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-card strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.info-card address { font-style: normal; font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.4; }
.next-steps { background: var(--ink); color: var(--on-dark); padding: 32px; display: grid; gap: 20px; }
.next-steps h2 { font-size: 22px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: ns; display: grid; gap: 16px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--on-dark-muted); font-size: 16px; }
.next-steps li::before { content: counter(ns); width: 32px; height: 32px; display: grid; place-items: center; background: var(--brand); color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.next-steps li b { color: var(--on-dark); display: block; font-weight: 600; }

/* Apparition en cascade (points clés, valeurs, cartes) */
.js .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .stagger.is-visible > * { opacity: 1; transform: none; }
.js .stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.js .stagger.is-visible > *:nth-child(3) { transition-delay: .24s; }
.js .stagger.is-visible > *:nth-child(4) { transition-delay: .36s; }
.js .stagger.is-visible > *:nth-child(5) { transition-delay: .48s; }
.trust-item strong { position: relative; }

/* Badges de la galerie (Avant, Chantier, Visualisation, Plan) */
.shot-tag {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px 6px 12px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}
.shot-tag--avant { background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .js .mark { --mark: 100%; }
  .js .stagger > *, .js .steps .step > *, .js .steps .step::before { opacity: 1; transform: none; }
  .js .steps .step { background-size: 100% 3px; }
  .js .steps .step::after { transform: none; }
}

/* Formulaire : erreur d'envoi et bouton pendant l'envoi */
.form-error { display: none; padding: 16px 20px; background: #FDECEA; border-left: 4px solid #B3261E; color: #7A1A14; margin-top: 24px; font-weight: 500; }
.form-error.is-visible { display: block; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Pages légales */
.legal { max-width: 760px; display: grid; gap: 16px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 32px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: 17px; }
.legal ul { display: grid; gap: 8px; padding-left: 20px; margin: 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: 17px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); }
@media (max-width: 639px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.legal-updated { font-size: 14px; color: var(--muted); }
