/* ═══════════════════════════════════════════════════════════════════
   Léa Julien Intérieurs — Site statique
   Design System v2 [RÉSIDENTIEL] · Bleu logo oklch(80.4% 0.069 230.8) · Lin oklch(97.4% 0.006 84.6) · Terracotta oklch(70.9% 0.083 59.7)
   Bunny Fonts : Poppins (headings) + Jost (body)
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.bunny.net/css?family=poppins:400,600,700,700i,800|jost:300,400,500|playfair-display:400,400i,600,600i,700,700i|fraunces:900,900i&display=fallback');

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg: #efebe2; /* Beige PDF */
  --surface: #fff;
  --surface-2: #cedbfe; /* Bleu pâle PDF */
  --border: oklch(88.7% 0.009 78.3);
  --text: #36211c; /* Dark Brown PDF */
  --muted: oklch(51.1% 0.011 62.4);
  --light: oklch(70.7% 0.018 70.5);

  /* Primaire — Accent (Olive Green PDF) */
  --accent: #afa533;
  --accent-h: #8c8429;
  --accent-lt: #e0dbaf;
  --accent-dark: #66601b;
  --blue: #cedbfe;
  --blue-lt: #cedbfe; /* Bleu pâle PDF */

  /* Olive Green PDF */
  --olive: #afa533;

  /* Secondaire — Terracotta doux (remplace orange industriel) */
  --warm: oklch(70.9% 0.083 59.7);
  --warm-h: oklch(60.6% 0.082 56.4);
  --warm-lt: oklch(95.1% 0.016 64.7);

  /* Héritage orange (alias pour ne pas casser les refs existantes) */
  --orange: oklch(70.9% 0.083 59.7);
  --orange-h: oklch(60.6% 0.082 56.4);
  --orange-lt: oklch(95.1% 0.016 64.7);
  --r: 1.25rem;
  --r-lg: 2rem;
  --shadow: 0 2px 8px rgb(0 0 0 / 5%);
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 10%);
  --font-h: 'Graphie', 'Poppins', system-ui, sans-serif;
  --font-b: 'Graphie', 'Jost', system-ui, sans-serif;
  --font-serif: 'Fraunces', 'Playfair Display', serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 300; /* Graphie Light */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero__h1,
.section-title {
  font-weight: 800; /* Graphie ExtraBold */
}

.font-serif,
[style*='font-family: var(--font-serif)'],
em {
  font-family: var(--font-serif);
  font-weight: 900; /* Fraunces 9pt Black */
}

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

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

/* Focus visible global — WCAG 2.4.7 */
:focus-visible {
  outline: 2px solid var(--accent-h);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Utilitaires ────────────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--white {
  background: var(--surface);
}

.section--soft {
  background: var(--surface-2);
}

.section--dark {
  background: var(--text);
  color: var(--surface);
}

.section--accent {
  background: var(--accent);
  color: oklch(100% 0 0);
}

.section--blue {
  background: var(--blue-lt);
}

.divider {
  width: 3rem;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.divider--center {
  margin-inline: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-lt);
  color: var(
    --accent-dark
  ); /* oklch(51.5% 0.106 240.6) — contraste 10.5:1 sur accent-lt ✓ WCAG AA */
}

.badge--blue {
  background: var(--blue-lt);
  color: var(--accent-dark);
}

/* ── Boutons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--r-lg);
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

/* Bouton primaire — Bleu (cohérent avec la palette principale) */
.btn--primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgb(145 200 228 / 30%);
}

.btn--primary:hover {
  background: var(--accent-h);
  color: oklch(100% 0 0);
  border-color: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(58 143 196 / 35%);
}

.btn--ghost {
  background: transparent;
  color: var(--text); /* contraste 100% sur blanc — bouton style neutre */
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.btn--white {
  background: oklch(100% 0 0);
  color: var(--accent);
  border-color: oklch(100% 0 0);
}

.btn--white:hover {
  background: var(--accent-lt);
}

/* ── Header ─────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: 0 4px 20px rgb(0 0 0 / 3%);
  padding: 1.5rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-img {
  display: flex;
  align-items: center;
}

.logo-img img {
  height: 52px;
  width: auto;
  display: block;
  transition:
    height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s;
  opacity: 0.85;
}

.logo-img:hover img {
  opacity: 1;
}

/* Logo réduit quand scrolled */
.header.scrolled .logo-img img {
  height: 40px;
  opacity: 1;
}

/* Fallback */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav a {
  padding: 0.45rem 1rem;
  border-radius: 99px;
  font-family: var(--font-h);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}

.nav a:hover {
  background: var(--surface-2);
}

.nav a.active {
  background: var(--accent);
  color: oklch(100% 0 0);
  font-weight: 700;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text);
  opacity: 0.65;
  transition: all 0.2s;
}

.nav-social a:hover {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.nav-social svg {
  display: block;
  flex-shrink: 0;
}

.nav-social a:hover svg {
  color: var(--accent-h);
}

.footer-socials svg {
  display: block;
  flex-shrink: 0;
}

/* Dead CSS removed: FA i-rules no longer needed after SVG migration */

.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.75rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 70px 0 0;
  background: var(--surface);
  padding: 2rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  padding: 1rem;
  border-radius: var(--r);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
  background: var(--accent-lt);
  color: var(--accent);
}

/* ── Cartes ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.card:hover .card__img img {
  transform: scale(1.06);
}

.card__body {
  padding: 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer-cta {
  background: var(--accent);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}

.footer-cta h2 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: oklch(100% 0 0);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.footer-main {
  background: var(--text);
  color: oklch(100% 0 0);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-name {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.footer-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 55%);
  line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 45%);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 60%);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: oklch(100% 0 0);
}

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 60%);
  display: block;
  margin-bottom: 0.75rem;
}

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

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 15%);
  color: rgb(255 255 255 / 60%);
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: oklch(100% 0 0);
  transform: translateY(-2px);
}

.footer-socials i {
  font-size: 15px;
  line-height: 1;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 30%);
}

/* ── Hero principal ─────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero--home {
  background-color: var(--surface);
  background-image: radial-gradient(circle, rgb(145 200 228 / 9%) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.hero--page {
  min-height: 40vh;
  background: var(--bg);
  align-items: flex-end;
  padding-bottom: 3rem;
}

.hero__blob {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero__blob--tr,
.hero__blob--bl {
  display: none;
} /* blur orbs supprimés — anti-pattern Impeccable */

/* Lettre décorative géante */
.hero__deco-letter {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-h);
  font-size: clamp(12rem, 20vw, 22rem);
  font-weight: 800;
  font-style: italic;
  color: rgb(145 200 228 / 6%);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-h); /* 4.8:1 sur fond blanc — WCAG AA ✓ */
  margin-bottom: 1.5rem;
}

.hero__tag::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__h1 {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

/* em italique du titre hero — bleu foncé pour contraste WCAG AA ✓ */
.hero__h1 em {
  font-style: italic;
  color: var(--accent-h);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.hero__stat-n {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero__stat-l {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Page hero ──────────────────────────────────────────────────── */
.page-hero {
  padding-top: 120px;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, oklch(100% 0 0), var(--surface-2));
}

.page-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 1rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 480px;
  margin-top: 0.75rem;
}

/* ── Sections thématiques ───────────────────────────────────────── */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-more {
  font-family: var(--font-h);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-h); /* 4.8:1 sur fond blanc — WCAG AA ✓ */
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.section-more:hover {
  gap: 0.6rem;
}

/* ── Grid projets ───────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.projects-grid .card:first-child {
  grid-column: span 3;
}

.projects-grid .card:first-child .card__img {
  aspect-ratio: 21/9;
}

/* ── Grid conseils ──────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.articles-grid .card:first-child {
  grid-column: span 2;
}

.articles-grid .card:first-child .card__img {
  aspect-ratio: 16/9;
}

/* ── Expertise — Marquee tape ────────────────────────────────────── */
.expertise-section {
  background: oklch(20.7% 0.008 67.4);
  padding: 5rem 0;
  overflow: hidden;
}

.expertise-section .section-title {
  color: oklch(100% 0 0);
}

/* Ruban défilant */
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.marquee-track--fwd {
  animation: marqueeFwd 42s linear infinite;
}

.marquee-track--back {
  animation: marqueeBack 50s linear infinite;
}

@keyframes marqueeFwd {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeBack {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.marquee-wrap {
  overflow: hidden;
  margin-top: 1rem;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    oklch(0% 0 0) 8%,
    oklch(0% 0 0) 92%,
    transparent 100%
  );
}

.marquee-wrap + .marquee-wrap {
  margin-top: 0.85rem;
}

/* Tags individuels */
.mtag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-h);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.mtag--outline {
  border: 1.5px solid rgb(255 255 255 / 25%);
  color: rgb(255 255 255 / 75%);
}

/* Tag filled — Bleu (cohérent avec la palette) */
.mtag--filled {
  background: var(--accent);
  color: oklch(100% 0 0);
  border: 1.5px solid var(--accent);
}

.mtag--ghost {
  color: rgb(255 255 255 / 30%);
  font-style: italic;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
}

.mtag--cream {
  background: oklch(96.8% 0.007 80.7);
  color: oklch(20.7% 0.008 67.4);
  border: 1.5px solid oklch(96.8% 0.007 80.7);
}

/* Pause au hover sur le wrap */
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* Override old pills */
.services-grid {
  display: none;
}

.service-pill {
  background: var(--surface);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.service-pill:hover {
  background: var(--accent-lt);
  color: var(--accent);
  transform: translateY(-2px);
}

.service-pill::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Étapes ─────────────────────────────────────────────────────── */
.etapes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* 4 étapes — grille responsive dédiée */
.etapes-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Section bilan 2 colonnes — responsive */
.bilan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.etape {
  padding: 2.5rem;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.etape--orange {
  background: var(--accent-lt);
}

.etape--blue {
  background: var(--blue-lt);
}

.etape__num {
  font-family: var(--font-h);
  font-size: 6rem;
  font-weight: 800;
  font-style: italic;
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  opacity: 0.1;
  line-height: 1;
  color: var(--accent);
}

.etape--blue .etape__num {
  color: var(--blue);
}

.etape h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.etape p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Projet détail ──────────────────────────────────────────────── */
.project-hero-img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
  display: block;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.meta-item dt {
  font-family: var(--font-h);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meta-item dd {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.project-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 700px;
}

.project-body p + p {
  margin-top: 1.25rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.project-gallery img {
  border-radius: var(--r);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ── Article détail ─────────────────────────────────────────────── */
.article-hero-img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  display: block;
}

.article-body {
  max-width: 740px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-body p + p {
  margin-top: 1.25rem;
}

/* ── Contact ────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 0.875rem 1.125rem;
  font-family: var(--font-b);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(145 200 228 / 10%);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.info-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card dt {
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.info-card a,
.info-card dd {
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.info-card a:hover {
  color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (width <= 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid .card:first-child {
    grid-column: span 2;
  }

  .etapes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bilan-grid {
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 768px) {
  .header__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid .card:first-child {
    grid-column: span 1;
  }

  .projects-grid .card:first-child .card__img {
    aspect-ratio: 4/3;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid .card:first-child {
    grid-column: span 1;
  }

  .etapes-grid {
    grid-template-columns: 1fr;
  }

  .etapes-grid--4 {
    grid-template-columns: 1fr;
  }

  .bilan-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero__deco-letter {
    display: none;
  }

  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.fade-up--d1 {
  animation-delay: 0.1s;
}

.fade-up--d2 {
  animation-delay: 0.2s;
}

.fade-up--d3 {
  animation-delay: 0.3s;
}

/* ── Accessibilité ───────────────────────────────────────────────── */

/* Skip-to-content link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: oklch(100% 0 0);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Focus visible sur tous les éléments interactifs (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ── Polish visuel ───────────────────────────────────────────────── */

/* Hero lead — meilleur contraste sur mobile (WCAG AA oklch(56.2% 0.000 0.0) min sur blanc) */
.hero__lead {
  color: oklch(45.5% 0.012 81.8);
}

/* Histoire/Missions — layout éditorial */
.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Citation client */
.client-quote {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-lt);
  border-radius: var(--r);
}

.client-quote p {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.client-quote cite {
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* Histoire/Missions — responsive mobile */
@media (width <= 768px) {
  .histoire-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .histoire-grid > div:first-child img {
    aspect-ratio: 3/2 !important;
  }

  /* Mobile nav — cacher icônes sociales dans le hamburger */
  .nav-social {
    display: none;
  }
}

/* Stats hero — 2×2 sur mobile */
@media (width <= 560px) {
  .hero__stats {
    gap: 1.5rem 2rem;
  }

  .hero__stats > div {
    flex: 0 0 calc(50% - 1rem);
  }

  .hero__stat-n {
    font-size: 1.6rem;
  }
}

/* Marquee — taille réduite sur mobile */
@media (width <= 480px) {
  .mtag {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }

  .expertise-section {
    padding: 3.5rem 0;
  }
}

/* Amélioration article-img responsive */
.article-img-grid {
  gap: 0.75rem;
}

/* Articles grid — équilibre la hauteur des cartes */
.articles-grid .card {
  display: flex;
  flex-direction: column;
}

.articles-grid .card .card__body {
  flex: 1;
}

/* Amélioration scroll sur mobile — padding body-top pour header fixe */
@media (width <= 768px) {
  .hero {
    padding-top: 85px;
  }

  .page-hero {
    padding-top: 100px;
  }
}

/* ── Expertise — Table éditoriale ──────────────────────────── */
.expertise-list {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.expertise-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.2fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  align-items: start;
}

.expertise-row:hover {
  background: rgb(145 200 228 / 5%);
}

.expertise-row:hover .expertise-name {
  transform: translateX(4px);
}

.expertise-num {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-h);
  line-height: 1;
  padding-top: 0.15rem;
}

.expertise-name {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: transform 0.2s ease;
  padding-top: 0.2rem;
}

.expertise-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (width <= 768px) {
  .expertise-row {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .expertise-desc {
    grid-column: 2;
  }
}

/* ── Parcours — Stats + CTA ─────────────────────────────────── */
.parcours-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.parcours-stats strong {
  display: block;
  font-family: var(--font-h);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.parcours-stats span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.parcours-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--accent-h);
  padding-bottom: 0.2rem;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.parcours-cta:hover {
  color: var(--accent-h);
}

/* ── prefers-reduced-motion (WCAG 2.3.3) ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .marquee-track--fwd,
  .marquee-track--back {
    animation: none !important;
  }

  .fade-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
