/* ============================================================
   Alves Construction — styles.css v4 (CIMENT)
   Gris béton clair + accent ocre soutenu + charbon
   BTP minéral contemporain — Aesop industrial / Vitra
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --ink-900: #1A1D22;   /* charbon chaud (plus 'béton' qu'en v3) */
  --ink-800: #25282E;
  --ink-700: #383B41;
  --ink-500: #5A5F67;
  --ink-400: #7D828A;
  --ink-300: #9CA0A8;
  --ink-200: #C6C9CC;
  --ink-100: #DCDFE2;
  --ink-050: #ECEDEF;

  --bg:          #E5E7EA;   /* gris ciment clair — fond principal */
  --paper:       #FFFFFF;   /* surfaces blanches (cards, forms, hero-tags) */
  --paper-warm:  #FFFFFF;   /* sections 'alternées' = blanc franc sur fond ciment */
  --paper-deep:  #1A1D22;   /* bandes sombres CTA/footer */
  --paper-soft:  #FFFFFF;

  /* ACCENT : OCRE soutenu (les noms --petrole-* sont gardés pour ne pas casser
     les références existantes dans le CSS/HTML). Lire : --petrole-600 = ocre principal. */
  --petrole-800: #5C3F0B;   /* ocre très foncé */
  --petrole-700: #7A5818;   /* ocre foncé (hover) */
  --petrole-600: #A77821;   /* OCRE PRINCIPAL (accent) */
  --petrole-500: #C28E2C;
  --petrole-400: #D9A93F;
  --petrole-200: #E8C875;
  --petrole-100: #F4E6C8;
  --petrole-050: #FBF6E8;

  --steel-500:  #6B7378;
  --steel-300:  #B5BDC2;

  --ocre-500:   #A77821;
  --ocre-300:   #C28E2C;

  --success: #2E6E50;
  --warning: #B27A1F;
  --danger:  #A2342A;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter Tight', system-ui, -apple-system, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   18px;
  --radius-pill: 999px;

  --shadow-card:
    0 1px 0 rgba(15, 18, 22, 0.04),
    0 1px 3px rgba(15, 18, 22, 0.04);

  --shadow-elevated:
    0 1px 0 rgba(15, 18, 22, 0.06),
    0 12px 28px -10px rgba(15, 18, 22, 0.14);

  --ease-soft:    cubic-bezier(0.32, 0.72, 0, 1);
  --ease-quick:   cubic-bezier(0.4, 0, 0.2, 1);

  --sp-1: 8px;   --sp-2: 16px;  --sp-3: 24px;  --sp-4: 32px;
  --sp-5: 48px;  --sp-6: 64px;  --sp-7: 96px;  --sp-8: 128px;
  --sp-9: 192px;

  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: 'kern', 'liga', 'ss01', 'cv01', 'cv02', 'cv11';
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  background: var(--ink-050);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--petrole-600);
  color: var(--paper);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--ink-900);
}

p { text-wrap: pretty; max-width: 64ch; }

.hero-title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 96, 'wght' 480, 'wdth' 95;
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw + 0.5rem, 6.5rem);
  letter-spacing: -0.028em;
  line-height: 0.98;
}

.hero-title .accent {
  color: var(--petrole-600);
  font-variation-settings: 'opsz' 96, 'wght' 560, 'wdth' 90;
}

.h1 {
  font-size: clamp(2.2rem, 3.5vw + 0.5rem, 4.25rem);
  letter-spacing: -0.022em;
  line-height: 1.02;
  font-variation-settings: 'opsz' 60, 'wght' 500;
}

.h1 .accent { color: var(--petrole-600); }

.h2 {
  font-size: clamp(1.85rem, 2vw + 0.8rem, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-variation-settings: 'opsz' 48, 'wght' 500;
}

.h2 .accent { color: var(--petrole-600); }

.h3 {
  font-size: clamp(1.2rem, 0.5vw + 1rem, 1.65rem);
  letter-spacing: -0.014em;
  line-height: 1.18;
  font-variation-settings: 'opsz' 24, 'wght' 540;
}

.lead {
  font-size: clamp(1.05rem, 0.3vw + 1rem, 1.25rem);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 62ch;
}

/* ── EYEBROW ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-500);
  text-transform: none;
}

.eyebrow-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' 12, 'wght' 600;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--petrole-600);
  display: inline-block;
  flex-shrink: 0;
}

.eyebrow-label {
  color: var(--ink-700);
  font-weight: 500;
}

.eyebrow--light .eyebrow-num,
.eyebrow--light .eyebrow-label { color: var(--paper); }
.eyebrow--light .eyebrow-dot { background: var(--petrole-400); }

.tabular { font-variant-numeric: tabular-nums; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
  position: relative;
}

.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--airy  { padding-block: clamp(96px, 12vw, 160px); }

.section--paper-warm { background: var(--paper-warm); }
.section--paper-deep { background: var(--paper-deep); color: var(--paper); }
.section--paper-deep h1,
.section--paper-deep h2,
.section--paper-deep h3 { color: var(--paper); }

.section--bordered {
  border-top: 1px solid var(--ink-200);
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: calc(100% - 32px);
  max-width: 1240px;
  transition: top 350ms var(--ease-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 20px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--ink-200);
  transition: background 350ms var(--ease-soft), box-shadow 350ms var(--ease-soft);
}

.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' 14, 'wght' 600;
  font-size: 16px;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  white-space: nowrap;
}

.nav-logo-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--ink-900);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 14, 'wght' 700;
  font-size: 14px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 250ms var(--ease-soft), background 250ms var(--ease-soft);
  white-space: nowrap;
}

.nav-link:hover { color: var(--ink-900); background: var(--ink-050); }
.nav-link.is-active { color: var(--ink-900); background: var(--ink-100); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--petrole-600);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background 350ms var(--ease-soft), transform 350ms var(--ease-soft);
  white-space: nowrap;
}

.nav-cta:hover { background: var(--petrole-700); transform: translateY(-1px); }
.nav-cta:active { transform: scale(0.98); }

.nav-cta-arrow {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms var(--ease-soft);
}

.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-burger span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 350ms var(--ease-soft);
}

.nav-burger span:nth-child(1) { transform: translateY(-4px); }
.nav-burger span:nth-child(2) { transform: translateY(4px); }

.nav.is-open .nav-burger span:nth-child(1) { transform: rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .nav-burger { display: inline-flex; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper-deep);
  z-index: 75;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 80px 32px;
  color: var(--paper);
}

.nav.is-open .nav-overlay { opacity: 1; pointer-events: auto; }

.nav-overlay-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96, 'wght' 500;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.022em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-soft), transform 500ms var(--ease-soft), color 200ms ease;
}

.nav-overlay-link:hover { color: var(--petrole-400); }

.nav.is-open .nav-overlay-link { opacity: 1; transform: translateY(0); }
.nav.is-open .nav-overlay-link:nth-child(1) { transition-delay: 80ms; }
.nav.is-open .nav-overlay-link:nth-child(2) { transition-delay: 120ms; }
.nav.is-open .nav-overlay-link:nth-child(3) { transition-delay: 160ms; }
.nav.is-open .nav-overlay-link:nth-child(4) { transition-delay: 200ms; }
.nav.is-open .nav-overlay-link:nth-child(5) { transition-delay: 240ms; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(120px, 14vw, 180px) clamp(72px, 8vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-eyebrow { margin-bottom: 28px; }

.hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  color: var(--ink-700);
  font-size: clamp(1.05rem, 0.3vw + 1rem, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
  align-items: center;
  font-size: 13px;
  color: var(--ink-500);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--petrole-600);
  display: inline-block;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ink-200);
}

.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-visual-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
}

.hero-visual-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  position: relative;
}

.hero-visual-tag-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  opacity: 0.35;
  animation: pulse-ring 2400ms infinite var(--ease-soft);
}

@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.45; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-visual-stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(15, 18, 22, 0.78);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-visual-stamp::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--petrole-400);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  transition: background 250ms var(--ease-soft), color 250ms var(--ease-soft),
              transform 250ms var(--ease-soft), border-color 250ms var(--ease-soft);
  white-space: nowrap;
  border: 1px solid transparent;
}

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

.btn--primary {
  background: var(--petrole-600);
  color: var(--paper);
  padding: 13px 22px;
}

.btn--primary:hover { background: var(--petrole-700); }

.btn--primary .btn-arrow {
  width: 16px; height: 16px;
  transition: transform 300ms var(--ease-soft);
}

.btn--primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  padding: 13px 20px;
  border-color: var(--ink-300);
}

.btn--ghost:hover {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}

.btn--dark {
  background: var(--paper);
  color: var(--ink-900);
  padding: 13px 22px;
}

.btn--dark:hover { background: var(--petrole-600); color: var(--paper); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-900);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap 300ms var(--ease-soft), color 250ms ease;
}

.btn-link:hover { gap: 12px; color: var(--petrole-700); }

/* ── STATS ──────────────────────────────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: var(--ink-200);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.stat-item {
  background: var(--paper);
  padding: clamp(28px, 3.5vw, 56px) clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  border-right: 1px solid var(--ink-200);
}

.stat-item:last-child { border-right: none; }

@media (max-width: 540px) {
  .stat-item { border-right: none; border-bottom: 1px solid var(--ink-200); }
  .stat-item:last-child { border-bottom: none; }
}

.stat-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96, 'wght' 500;
  font-size: clamp(2.4rem, 3vw + 0.6rem, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 0.4em;
  color: var(--ink-400);
  margin-left: 4px;
  font-weight: 500;
}

.stat-label {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.4;
  max-width: 30ch;
}

/* ── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  padding: clamp(20px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: border-color 300ms var(--ease-soft), transform 300ms var(--ease-soft), box-shadow 300ms var(--ease-soft);
}

.service-card:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.service-card--featured {
  grid-column: span 12;
  background: var(--paper-deep);
  color: var(--paper);
  border-color: var(--paper-deep);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(24px, 2.5vw, 36px);
}

.service-card--featured > .service-card-image {
  grid-row: 1 / -1;
  grid-column: 1;
  aspect-ratio: 5 / 4;
  margin: 0;
}

.service-card--featured > .service-card-num,
.service-card--featured > .service-card-title,
.service-card--featured > .service-card-desc,
.service-card--featured > .service-card-meta,
.service-card--featured > .service-card-link {
  grid-column: 2;
}

@media (max-width: 768px) {
  .service-card--featured {
    grid-template-columns: 1fr;
  }
  .service-card--featured > .service-card-image,
  .service-card--featured > .service-card-num,
  .service-card--featured > .service-card-title,
  .service-card--featured > .service-card-desc,
  .service-card--featured > .service-card-meta,
  .service-card--featured > .service-card-link {
    grid-row: auto;
    grid-column: 1;
  }
}

.service-card--featured h3 { color: var(--paper); }
.service-card--featured .service-card-desc { color: var(--ink-200); }
.service-card--featured .service-card-num { color: var(--petrole-400); }
.service-card--featured .service-card-link {
  color: var(--paper);
  border-color: var(--paper);
}
.service-card--featured:hover { border-color: var(--petrole-600); }

.service-card--half  { grid-column: span 6; }
.service-card--third { grid-column: span 4; }

@media (max-width: 900px) {
  .service-card--featured,
  .service-card--half,
  .service-card--third { grid-column: span 12; }
}

.service-card-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 24, 'wght' 500;
  font-size: 14px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  margin-bottom: -6px;
}

.service-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
}

.service-card--featured .service-card-image {
  border-color: var(--ink-700);
}

.service-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-soft);
}

.service-card:hover .service-card-image img { transform: scale(1.03); }

.service-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: 0;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 0.8vw + 1rem, 1.85rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 48, 'wght' 520;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service-card-desc {
  color: var(--ink-500);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 46ch;
  flex-grow: 1;
}

.service-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 4px;
}

.service-card-meta-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--petrole-600);
  flex-shrink: 0;
}

.service-card-link { margin-top: auto; }

/* ── GANTT (signature exclusive Alves) ──────────────────────── */
.gantt {
  margin-top: 56px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gantt-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--ink-900);
  color: var(--paper);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
}

.gantt-header-title { letter-spacing: -0.005em; }

.gantt-header-weeks {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  opacity: 0.7;
  font-size: 12px;
}

.gantt-rows { position: relative; }

.gantt-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink-100);
}

.gantt-row:last-child { border-bottom: none; }

.gantt-row-label {
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ink-700);
  font-weight: 500;
  border-right: 1px solid var(--ink-200);
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gantt-row-label-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
  min-width: 16px;
}

.gantt-row-track {
  position: relative;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  background: var(--paper);
}

.gantt-row-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--ink-100) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%;
  pointer-events: none;
}

.gantt-bar {
  margin: 18px 4px;
  border-radius: 4px;
  position: relative;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1100ms var(--ease-soft);
  height: 20px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 11px;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt.visible .gantt-bar { transform: scaleX(1); }

.gantt.visible .gantt-bar:nth-child(1) { transition-delay: 0ms; }
.gantt.visible .gantt-bar:nth-child(2) { transition-delay: 120ms; }
.gantt.visible .gantt-bar:nth-child(3) { transition-delay: 200ms; }
.gantt.visible .gantt-bar:nth-child(4) { transition-delay: 280ms; }
.gantt.visible .gantt-bar:nth-child(5) { transition-delay: 360ms; }
.gantt.visible .gantt-bar:nth-child(6) { transition-delay: 440ms; }
.gantt.visible .gantt-bar:nth-child(7) { transition-delay: 520ms; }
.gantt.visible .gantt-bar:nth-child(8) { transition-delay: 600ms; }

.gantt-bar--visite     { background: var(--ink-500); grid-column: 1 / 2; }
.gantt-bar--demo       { background: var(--ink-900); grid-column: 2 / 4; }
.gantt-bar--plomb      { background: var(--petrole-600); grid-column: 3 / 6; }
.gantt-bar--elec       { background: var(--ocre-500); color: var(--ink-900); grid-column: 3 / 6; }
.gantt-bar--macon      { background: var(--steel-500); grid-column: 4 / 7; }
.gantt-bar--peinture   { background: var(--paper); color: var(--ink-900); grid-column: 6 / 8; border: 1px solid var(--ink-300); }
.gantt-bar--couv       { background: var(--steel-300); color: var(--ink-900); grid-column: 5 / 7; }
.gantt-bar--recep      { background: var(--petrole-800); grid-column: 8 / 9; }

.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 20px;
  border-top: 1px solid var(--ink-200);
  background: var(--paper-warm);
  font-size: 12px;
  color: var(--ink-500);
}

.gantt-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gantt-legend-swatch {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .gantt-header { grid-template-columns: 1fr; }
  .gantt-header-weeks { display: none; }
  .gantt-row { grid-template-columns: 1fr; }
  .gantt-row-label { border-right: none; border-bottom: 1px solid var(--ink-100); }
  .gantt-row-track { height: 32px; }
  .gantt-bar { height: 14px; margin: 9px 4px; }
}

/* ── BENTO ENGAGEMENTS ─────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-cell {
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  padding: clamp(22px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 300ms var(--ease-soft), transform 300ms var(--ease-soft), box-shadow 300ms var(--ease-soft);
}

.bento-cell:hover {
  border-color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.bento-cell--lg { grid-column: span 6; min-height: 240px; }
.bento-cell--md { grid-column: span 4; min-height: 200px; }
.bento-cell--sm { grid-column: span 3; min-height: 180px; }
.bento-cell--full { grid-column: span 12; }
.bento-cell--dark {
  background: var(--paper-deep);
  color: var(--paper);
  border-color: var(--paper-deep);
}
.bento-cell--dark:hover { border-color: var(--petrole-600); }
.bento-cell--dark h3 { color: var(--paper); }
.bento-cell--dark p { color: var(--ink-200); }

@media (max-width: 768px) {
  .bento-cell--lg,
  .bento-cell--md,
  .bento-cell--sm { grid-column: span 12; }
}

.bento-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
  margin-bottom: -4px;
}

.bento-cell--dark .bento-num { color: var(--petrole-400); }

.bento-cell h3 {
  font-size: clamp(1.2rem, 0.5vw + 1rem, 1.55rem);
  letter-spacing: -0.018em;
  font-variation-settings: 'opsz' 24, 'wght' 540;
}

.bento-cell p {
  color: var(--ink-500);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 38ch;
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.testimonial {
  border-top: 1px solid var(--ink-200);
  padding-top: 28px;
  margin-bottom: 48px;
}

.testimonial:last-child { margin-bottom: 0; }

.testimonial-quote {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 24, 'wght' 480;
  font-weight: 500;
  font-size: clamp(1.2rem, 0.4vw + 1rem, 1.55rem);
  line-height: 1.4;
  color: var(--ink-900);
  letter-spacing: -0.012em;
  max-width: 56ch;
}

.testimonial-quote::before {
  content: '« ';
  color: var(--petrole-600);
}

.testimonial-quote::after {
  content: ' »';
  color: var(--petrole-600);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-500);
}

.testimonial-author strong {
  color: var(--ink-900);
  font-weight: 600;
}

.testimonial-project {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--petrole-600);
  line-height: 1.45;
}

/* ── MARQUES ────────────────────────────────────────────────── */
.marques {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(32px, 5vw, 64px);
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  border-top: 1px solid var(--ink-200);
}

.marque {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 48, 'wght' 500;
  font-size: clamp(1.15rem, 0.7vw + 0.8rem, 1.6rem);
  letter-spacing: -0.022em;
  color: var(--ink-400);
  transition: color 300ms ease;
}

.marque:hover { color: var(--ink-900); }

/* ── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  background: var(--paper-deep);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--paper-deep);
}

@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; padding: 36px 24px; }
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(26, 74, 85, 0.42) 0%, transparent 65%);
  pointer-events: none;
}

.cta-band h1,
.cta-band h2,
.cta-band h3,
.cta-band h4 { color: var(--paper); }

.cta-band p { color: var(--ink-200); }

.cta-band h2 {
  font-size: clamp(1.85rem, 2.5vw + 0.8rem, 3rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 60, 'wght' 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
}

.cta-band h2 .accent,
.cta-band h2 em { color: var(--petrole-400); font-style: italic; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.cta-actions .btn { width: 100%; justify-content: space-between; max-width: 360px; }
.cta-actions .btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.32); }
.cta-actions .btn--ghost:hover { background: var(--petrole-600); border-color: var(--petrole-600); color: var(--paper); }

/* ── COMMUNES ───────────────────────────────────────────────── */
.communes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
  max-width: 760px;
}

.commune-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-700);
  padding: 5px 13px;
  background: var(--paper);
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-200);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.commune-tag:hover {
  background: var(--petrole-600);
  color: var(--paper);
  border-color: var(--petrole-600);
}

/* ── FORM ───────────────────────────────────────────────────── */
.form-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-card);
}

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

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

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--wide { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
}

.form-field label .req {
  color: var(--petrole-600);
  margin-left: 3px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--petrole-600);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--petrole-100);
}

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

.form-field .hint {
  font-size: 12px;
  color: var(--ink-400);
}

.form-submit { margin-top: 20px; }

/* ── DETAIL LIST (numérotée via spans manuels .detail-list-num) ─ */
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.detail-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-200);
  font-size: 14.5px;
  color: var(--ink-700);
  align-items: start;
  list-style: none;
  line-height: 1.55;
}

.detail-list li:last-child { border-bottom: none; }

.detail-list-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 16, 'wght' 500;
  font-size: 13px;
  color: var(--petrole-600);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.detail-list strong { color: var(--ink-900); font-weight: 600; }

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  padding-top: 130px;
  padding-bottom: 72px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-200);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.page-hero-visual {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-card);
}

.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb-sep { color: var(--ink-300); }

/* ── TAG PILL ───────────────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-700);
}

.tag-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--petrole-600);
  flex-shrink: 0;
}

.tag-pill strong { color: var(--ink-900); font-weight: 600; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--ink-900);
  color: var(--paper);
  padding-block: clamp(56px, 7vw, 96px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

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

.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-300);
  margin-bottom: 18px;
  font-weight: 500;
  text-transform: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand-mark {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--petrole-600);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 14, 'wght' 700;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' 20, 'wght' 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: var(--ink-300);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 36ch;
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-contact a:hover { color: var(--petrole-400); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-300);
}

.footer-links a:hover { color: var(--paper); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-400);
  font-size: 12.5px;
}

/* ── REVEAL ─────────────────────────────────────────────────── */
.reveal, .gantt {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 600ms var(--ease-soft),
              transform 600ms var(--ease-soft),
              filter 500ms ease-out;
  will-change: opacity, transform;
}

.reveal.visible, .gantt.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .gantt {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .gantt-bar { transform: scaleX(1) !important; transition: none !important; }
  .hero-visual-tag-dot::after { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── FOCUS ──────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--petrole-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── SCROLL TO TOP ──────────────────────────────────────────── */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-900);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 300ms var(--ease-soft), transform 300ms var(--ease-soft), background 250ms ease;
  z-index: 60;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover { background: var(--petrole-600); border-color: var(--petrole-600); }

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider-tiny {
  width: 48px;
  height: 1px;
  background: var(--ink-900);
  opacity: 0.16;
  margin-block: 20px;
}

/* ── PROOF / 2-COL ──────────────────────────────────────────── */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr; gap: 28px; }
}
