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

:root {
  /* Brand */
  --red: #E51927;
  --red-dark: #B30D1F;
  --red-light: #FF3548;
  --red-tint: rgba(229, 25, 39, 0.08);
  --red-glow: rgba(229, 25, 39, 0.32);

  /* Black / paper scale */
  --ink: #0A0A0A;
  --charcoal: #141414;
  --graphite: #1F1F1F;
  --smoke: #2D2D2D;
  --ash: #555555;
  --mist: #8A8A8A;
  --bone: #DEDEDE;
  --bone-2: #EAEAEA;
  --paper: #F6F5F2;
  --white: #FFFFFF;

  /* Typography */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii — only two values */
  --r-sm: 4px;
  --r-md: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(10,10,10,0.04), 0 8px 24px -10px rgba(10,10,10,0.08);
  --shadow-card-hover: 0 1px 0 rgba(10,10,10,0.06), 0 18px 40px -16px rgba(10,10,10,0.18);
  --shadow-cta: 0 1px 0 rgba(229,25,39,0.4), 0 14px 30px -10px rgba(229,25,39,0.45);
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Selection */
::selection { background: var(--red); color: var(--white); }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--smoke); border-radius: 8px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.form-input:focus-visible, .form-textarea:focus-visible, .form-select:focus-visible {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 9999;
  background: var(--ink); color: var(--white);
  padding: 10px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* RGPD consent */
.form-consent {
  display: flex; flex-direction: row; align-items: flex-start;
  gap: 10px; margin-bottom: 20px;
}
.form-consent input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--red); cursor: pointer;
}
.form-consent label {
  font-size: 13px; color: var(--ash); line-height: 1.55;
  font-weight: 400; letter-spacing: 0; text-transform: none;
  cursor: pointer;
}
.form-consent label a { color: var(--red); text-decoration: underline; }

/* Reveal-on-scroll utility */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* Reusable mono accent */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum", "ss01";
}

/* ── NAV ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
}
nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(20,20,20,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}
.nav-logo:hover { opacity: 0.75; }

.brand-logo {
  display: block;
  height: 38px; width: auto;
}
.brand-logo .lt-text { fill: currentColor; }
.brand-logo .lt-bolt { fill: var(--red); }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}

.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--ash); text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta):not(.nav-phone)::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 8px;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):not(.nav-phone):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: var(--r-sm) !important;
  transition: background 0.25s var(--ease) !important;
}
.nav-cta:hover { background: var(--red) !important; color: var(--white) !important; }

.nav-phone {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500; color: var(--ink) !important;
  text-decoration: none; border-left: 1px solid var(--bone-2);
  padding-left: 20px; margin-left: 8px;
}
.nav-phone:hover { color: var(--red) !important; }
.nav-phone svg { color: var(--red); }

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding-top: 72px; padding-bottom: 80px;
  background: var(--ink);
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?w=900&q=80') center/cover no-repeat;
  transform: scale(1.04);
  filter: contrast(1.05) saturate(0.85);
}
@media (min-width: 769px) {
  .hero-bg { background-image: url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?w=1400&q=82'); }
}
@media (min-width: 1281px) {
  .hero-bg { background-image: url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?w=1800&q=85'); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.7) 45%, rgba(10,10,10,0.2) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, transparent 30%, rgba(10,10,10,0.6) 100%);
}

.hero-red-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--red);
  box-shadow: 0 0 24px rgba(229,25,39,0.4);
  z-index: 3;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 60px; max-width: 920px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 100px;
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--red);
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 900; line-height: 0.98;
  color: var(--white); margin-bottom: 28px;
  letter-spacing: -0.025em;
}
.hero-title .red { color: var(--red); position: relative; }
.hero-title .red::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.05em;
  height: 0.08em; background: var(--red);
  transform-origin: left; animation: underline-in 1s 0.4s var(--ease) backwards;
}
@keyframes underline-in {
  from { transform: scaleX(0); } to { transform: scaleX(1); }
}

.hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.7);
  max-width: 540px; font-weight: 400; line-height: 1.7;
  margin-bottom: 44px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Primary CTA — vraie hiérarchie */
.btn-red {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: var(--white);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 18px 30px; border-radius: var(--r-sm); text-decoration: none;
  border: none; box-shadow: var(--shadow-cta);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.btn-red::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.7s var(--ease);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(229,25,39,0.4), 0 22px 44px -10px rgba(229,25,39,0.55); }
.btn-red:hover::before { transform: translateX(100%); }
.btn-red:active { transform: translateY(0); }
.btn-red svg { transition: transform 0.3s var(--ease); }
.btn-red:hover svg { transform: translateX(4px); }

/* Secondary CTA — discret mais lisible */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 18px 8px; text-decoration: none;
  border: none; transition: color 0.2s var(--ease);
  position: relative;
}
.btn-ghost::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 14px;
  height: 1px; background: rgba(255,255,255,0.4);
  transition: background 0.25s var(--ease);
}
.btn-ghost:hover { color: var(--red); }
.btn-ghost:hover::after { background: var(--red); }
.btn-ghost svg { transition: transform 0.3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* Stats — alignées au contenu, mono, bordure verticale rouge */
.hero-stats {
  position: relative; z-index: 2;
  margin-top: 64px; padding: 0 60px;
  width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}

.stat-item {
  padding: 24px 28px 24px 28px;
  border-left: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.stat-item::before {
  content: ''; position: absolute; left: -1px; top: 0; width: 1px; height: 24px;
  background: var(--red);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 38px; font-weight: 600;
  color: var(--white); line-height: 1;
  letter-spacing: -0.02em;
  display: block; margin-bottom: 12px;
}
.stat-num .accent { color: var(--red); }

.stat-info { display: flex; flex-direction: column; }
.stat-label {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.92);
  line-height: 1.3;
}
.stat-sub {
  font-family: var(--font-mono);
  font-size: 11px; color: rgba(255,255,255,0.5);
  margin-top: 4px; letter-spacing: 0.04em;
}

/* ── SERVICES ── */
#services {
  padding: 120px 60px;
  background: var(--white);
  position: relative;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.section-tag::before {
  content: ''; width: 32px; height: 1px; background: var(--red); display: block;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800; line-height: 1.02;
  color: var(--ink);
  margin-bottom: 18px; letter-spacing: -0.025em;
}

.section-lead {
  font-size: 16px; color: var(--ash);
  max-width: 540px; line-height: 1.75; font-weight: 400;
}

.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px; gap: 32px;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--bone-2);
  padding: 36px 32px 32px;
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--red);
  transition: width 0.5s var(--ease);
}

.svc-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.svc-card:hover::before { width: 100%; }

.svc-icon {
  width: 52px; height: 52px;
  background: var(--ink);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.svc-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-sm);
  border: 1px solid var(--red); opacity: 0; transform: scale(1.15);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--red); }
.svc-card:hover .svc-icon::after { opacity: 1; transform: scale(1.3); }



.svc-name {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em;
  line-height: 1.2;
}

.svc-desc {
  font-size: 14px; color: var(--ash); line-height: 1.7; font-weight: 400;
  margin-bottom: 24px;
}

.svc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--red);
}
.svc-tag::after {
  content: '↗'; font-size: 12px; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.svc-card:hover .svc-tag::after { transform: translate(2px, -2px); }

/* ── À PROPOS ── */
#apropos {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.apropos-img {
  position: relative; min-height: 660px; overflow: hidden;
}

.apropos-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.65) saturate(0.7) contrast(1.05);
  transition: transform 1.2s var(--ease);
}
#apropos:hover .apropos-img img { transform: scale(1.04); }

/* Surcouche teintée rouge très subtile */
.apropos-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(229,25,39,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Marqueur date "1991 →" en mono */
.apropos-datemark {
  position: absolute; top: 40px; left: 40px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85); text-transform: uppercase;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px);
  padding: 10px 14px; border-radius: var(--r-sm);
  border-left: 2px solid var(--red);
}
.apropos-datemark .arrow { color: var(--red); font-weight: 600; }

/* Badge en débord, plus dramatique */
.apropos-badge {
  position: absolute; bottom: -1px; left: -1px;
  background: var(--red); padding: 22px 36px 22px 28px;
  display: flex; align-items: baseline; gap: 12px;
  border-radius: 0 var(--r-md) 0 0;
  box-shadow: 18px -18px 36px -16px rgba(229,25,39,0.4);
  z-index: 2;
}

.apropos-badge-num {
  font-family: var(--font-head); font-size: 56px; font-weight: 900;
  color: var(--white); line-height: 1; letter-spacing: -0.03em;
}

.apropos-badge-text {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.92); line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.apropos-content {
  padding: 100px 72px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}

.apropos-body {
  font-size: 16px; color: rgba(255,255,255,0.7);
  font-weight: 400; line-height: 1.85; margin-bottom: 22px;
}
.apropos-body strong { color: var(--white); font-weight: 600; }

.certifs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 44px;
}

.certif-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 18px; border-radius: var(--r-sm);
  position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.certif-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--red);
}
.certif-item:hover { border-color: rgba(229,25,39,0.4); transform: translateX(2px); }

.certif-text {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
}

/* ── RÉALISATIONS ── */
#realisations {
  padding: 120px 60px;
  background: var(--paper);
  position: relative;
}

.real-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}

/* Filtres éditoriaux : pas de pilules, juste du texte avec underline rouge */
.filters {
  display: flex; gap: 28px; flex-wrap: wrap;
  border-bottom: 1px solid var(--bone);
  padding-bottom: 0;
}

.fbtn {
  background: transparent; border: none;
  color: var(--ash);
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 0; min-height: 44px;
  cursor: pointer; position: relative;
  transition: color 0.2s var(--ease);
}
.fbtn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.fbtn:hover { color: var(--ink); }
.fbtn:hover::after { transform: scaleX(0.4); background: var(--ash); }
.fbtn[aria-pressed="true"] { color: var(--ink); }
.fbtn[aria-pressed="true"]::after { transform: scaleX(1); background: var(--red); }

.real-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.real-card {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  cursor: pointer; background: var(--graphite);
}

.real-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.6) saturate(0.75) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  aspect-ratio: 4/3;
}
.real-card:hover img { transform: scale(1.06); filter: brightness(0.45) saturate(0.6); }

.real-info {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 24px;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.4) 40%, transparent 70%);
}

.real-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 10px; width: fit-content;
}
.real-cat::before {
  content: ''; width: 14px; height: 1px; background: var(--red);
}

.real-title {
  font-family: var(--font-head); font-size: 19px; font-weight: 700;
  color: var(--white); line-height: 1.25; letter-spacing: -0.01em;
}

.real-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.real-card:hover .real-meta { opacity: 1; transform: translateY(0); }

/* ── CONTACT ── */
#contact {
  display: grid; grid-template-columns: 1fr 1.3fr;
}

.contact-left {
  background: var(--ink); padding: 110px 60px;
  position: relative; overflow: hidden;
}

.contact-left::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--red);
  box-shadow: 0 0 24px rgba(229,25,39,0.4);
}
.contact-left > * { position: relative; z-index: 1; }

.contact-lead {
  font-size: 15px; color: rgba(255,255,255,0.6);
  margin-top: 16px; line-height: 1.7;
  max-width: 340px;
}

.contact-infos { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; }

.ci {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.ci:hover {
  border-color: rgba(229,25,39,0.35);
  background: rgba(255,255,255,0.05);
}

.ci-icon {
  width: 40px; height: 40px;
  background: rgba(229,25,39,0.12);
  border: 1px solid rgba(229,25,39,0.3);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--red);
}

.ci-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 4px;
}

.ci-val {
  font-size: 15px; font-weight: 500; color: var(--white); line-height: 1.5;
}
.ci-val.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }

.ci-val a { color: var(--white); text-decoration: none; }
.ci-val a:hover { color: var(--red); }

.urgence-box {
  margin-top: 32px; padding: 22px 24px;
  background: rgba(229,25,39,0.08);
  border: 1px solid rgba(229,25,39,0.25);
  border-left: 3px solid var(--red);
  border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.urgence-box::before {
  content: ''; position: absolute; left: 22px; top: 50%;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  transform: translateY(-50%);
  animation: pulse-dot 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px var(--red);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.urgence-content { padding-left: 18px; }

.urgence-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--red); display: block; margin-bottom: 4px;
}

.urgence-desc { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }

.contact-right {
  background: var(--white); padding: 110px 72px;
  position: relative;
}

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

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

.form-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ash);
}

.form-input, .form-textarea, .form-select {
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--bone);
  border-bottom: 1.5px solid var(--bone-2);
  border-radius: var(--r-sm);
  padding: 13px 16px; outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none; -webkit-appearance: none; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--mist); }

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--red); border-bottom-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,25,39,0.08);
}

.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.form-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E51927' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown),
.form-select:invalid:not(:focus) {
  border-color: var(--red);
}

.form-title {
  font-family: var(--font-head); font-size: 36px; font-weight: 800;
  letter-spacing: -0.025em; margin-bottom: 40px; line-height: 1.05;
  color: var(--ink);
}
.form-title .red { color: var(--red); }

.form-submit {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 18px 32px; border-radius: var(--r-sm);
  border: none; cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.form-submit:hover { background: var(--red); transform: translateY(-1px); box-shadow: var(--shadow-cta); }
.form-submit:active { transform: translateY(0); }
.form-submit svg { transition: transform 0.3s var(--ease); }
.form-submit:hover svg { transform: translateX(4px); }

/* ── Burger ── */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--bone-2);
  border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.nav-burger:hover { background: var(--paper); }
.nav-burger svg { width: 22px; height: 22px; color: var(--ink); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 80px 60px 36px;
  position: relative;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  margin-bottom: 64px;
}

.f-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-bottom: 20px;
}

.f-tagline {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 300px;
}

.f-head {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.f-head::before {
  content: ''; width: 16px; height: 1px; background: var(--red);
}

.f-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.f-links a {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px;
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
  position: relative; padding-left: 0;
}
.f-links a:hover { color: var(--white); padding-left: 8px; }
.f-links a::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px; background: var(--red);
  transition: width 0.25s var(--ease);
}
.f-links a:hover::before { width: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.footer-bottom a {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-bottom a:hover { color: var(--white) !important; }
.f-address {
  color: rgba(255,255,255,0.6); font-size: 14px;
  margin-top: 6px; line-height: 1.6;
  font-style: normal;
  font-family: var(--font-body);
}

/* Body scroll lock when mobile menu is open */
body.nav-open { overflow: hidden; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #hero { min-height: auto; padding-bottom: 90px; }

  .services-grid, .real-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  #apropos, #contact { grid-template-columns: 1fr !important; }
  .apropos-img { min-height: 380px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  /* Stats 2×2 : séparation horizontale entre rangée 1 et rangée 2 */
  .stat-item:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 12px; padding-top: 24px;
  }

  /* Headers : empile titre et CTA/filtres pour éviter le crowding tablette */
  .services-header, .real-header {
    flex-direction: column; align-items: flex-start; gap: 24px;
  }

  /* Padding réduit pour récupérer de la largeur utile */
  .apropos-content { padding: 72px 40px; }
  .contact-left, .contact-right { padding: 72px 40px; }
  #services, #realisations { padding: 96px 40px; }
  footer { padding: 64px 40px 32px; }
  nav { padding: 0 40px; }
  .hero-content { padding: 0 40px; }
  .hero-stats { padding: 0 40px; }
}

@media (max-width: 960px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--bone-2);
    box-shadow: 0 8px 24px rgba(10,10,10,0.08);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links[data-open="true"] { max-height: 400px; }
  .nav-links a, .nav-phone { width: 100%; justify-content: flex-start; padding: 14px 20px; }
  .nav-phone { border-left: none; margin-left: 0; border-top: 1px solid var(--bone-2); }
  .nav-links a:not(.nav-cta):not(.nav-phone)::after { display: none; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; height: 64px; }
  .nav-links { top: 64px; }

  #hero { padding-top: 100px; padding-bottom: 60px; min-height: auto; }
  .hero-content { padding: 0 20px; }
  .hero-desc { font-size: 16px; }

  .hero-stats {
    margin-top: 56px; padding: 0 20px;
    grid-template-columns: 1fr 1fr; gap: 0;
  }
  .stat-item { padding: 18px 16px; }
  .stat-item:nth-child(n+3) { padding-top: 22px; margin-top: 10px; }
  .stat-num { font-size: 30px; }

  #services, #realisations { padding: 80px 20px; }
  .services-header, .real-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services-grid, .real-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 28px 24px; }

  .apropos-content { padding: 64px 24px; }
  .apropos-img { min-height: 320px; }
  .apropos-datemark { top: 24px; left: 24px; }
  .certifs-grid { grid-template-columns: 1fr; }
  .apropos-badge { padding: 18px 24px; }
  .apropos-badge-num { font-size: 44px; }

  .contact-left, .contact-right { padding: 64px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-title { font-size: 28px; }

  footer { padding: 56px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .filters { gap: 18px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(38px, 9vw, 56px); }
  .section-title { font-size: clamp(28px, 7vw, 36px); }
  .btn-red { padding: 16px 26px; font-size: 14px; }
  .btn-ghost { padding: 16px 4px; }

  /* Badge apropos plus compact sur petit mobile */
  .apropos-badge { padding: 14px 20px 14px 16px; gap: 10px; }
  .apropos-badge-num { font-size: 36px; }
  .apropos-badge-text { font-size: 11px; }

  /* Filtres : scroll horizontal au lieu de wrap pour garder une seule ligne propre */
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    margin: 0 -20px; padding: 0 20px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .fbtn { white-space: nowrap; flex-shrink: 0; }
}

/* ── LEGAL PAGES ── */
.legal-hero {
  padding: 160px 48px 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--bone-2);
}
.legal-hero-inner { max-width: 980px; margin: 0 auto; }
.legal-hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.02;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 14px;
}
.legal-hero h1 .red { color: var(--red); }
.legal-hero .legal-subtitle {
  color: var(--ash); font-size: 16px; max-width: 680px; line-height: 1.7;
}

.legal-content {
  max-width: 820px; margin: 0 auto; padding: 70px 48px 100px;
}
.legal-content section { margin-bottom: 56px; }
.legal-content section:last-of-type { margin-bottom: 0; }
.legal-content h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 24px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 22px;
  padding-bottom: 12px; border-bottom: 2px solid var(--red);
  display: inline-block;
}
.legal-content p { color: var(--graphite); margin-bottom: 14px; line-height: 1.7; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a {
  color: var(--red); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-content a:hover { color: var(--red-dark); }

.legal-table {
  display: grid; grid-template-columns: minmax(180px, 32%) 1fr;
  border: 1px solid var(--bone-2); border-radius: var(--r-md);
  overflow: hidden; background: var(--white);
}
.legal-table dt, .legal-table dd {
  padding: 14px 18px; border-bottom: 1px solid var(--bone-2);
}
.legal-table dt {
  background: var(--paper); font-weight: 600; color: var(--smoke);
  font-size: 13px; letter-spacing: 0.04em;
  font-family: var(--font-mono); text-transform: uppercase;
}
.legal-table dd {
  color: var(--graphite); font-size: 15px;
  font-family: var(--font-body); font-weight: 400; word-break: break-word;
}
.legal-table > *:nth-last-child(-n+2) { border-bottom: 0; }

.legal-meta {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--bone-2);
  font-size: 13px; color: var(--mist);
  font-family: var(--font-mono); letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .legal-hero { padding: 130px 20px 40px; }
  .legal-content { padding: 50px 20px 70px; }
  .legal-table { grid-template-columns: 1fr; }
  .legal-table dt { border-bottom: 0; padding-bottom: 4px; }
  .legal-table dd { padding-top: 6px; }
}
