/* ================================================================
   PARTENAIRE ÉQUIPEMENT — TERRAIN DESIGN SYSTEM
   Direction créa : Editorial Sport / Urban
   Palette : Noir #0a0a0a · Orange #9f72b4 · Blanc · Sable #FAF7F2
   Typo : Barlow Condensed (impact) + DM Sans (corps)
   ================================================================ */

/* ── Fonts ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:wght@300;400;500;700&display=swap');

/* ── Variables ────────────────────────────────────────────────── */
:root {
  --black:    #0a0a0a;
  --black2:   #141414;
  --black3:   #1e1e1e;
  --violet:   #9f72b4;
  --violet2:  #7d5a90;
  --white:    #ffffff;
  --ink-rgb:  255 255 255;  /* encre en RGB (traits et textes pâles) : un thème clair la met en foncé */
  --sand:     #FAF7F2;
  --sand2:    #F0EBE1;
  --gray:     #888;
  --gray2:    #555;

  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 68px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* ── Design tokens — overridable per theme ── */
  --radius:          0px;
  --radius-btn:      0px;
  --section-py:      100px;
  --card-gap:        1px;
  --logo-clip:       polygon(50% 0%, 100% 100%, 0% 100%);
  --clip-process:    polygon(0 5%, 100% 0%, 100% 95%, 0% 100%);
  --process-margin:  -60px 0;
  --heading-ls:      -0.01em;
  --heading-lh:      0.9;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Focus clavier ─────────────────────────────────────────────
   Le curseur personnalisé masque le curseur natif de la souris ;
   il ne doit jamais masquer le focus clavier. Un site qui démarche
   des collectivités doit rester utilisable au clavier (RGAA). */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* ── Touch devices — tap & cursor fixes ───────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Supprime cursor personnalisé inutile sur touch */
  body, button, a, select, input, textarea { cursor: auto !important; }
  .cursor { display: none !important; }
  /* Supprime highlight bleu iOS/Android au tap */
  * { -webkit-tap-highlight-color: transparent; }
  /* Élimine le délai 300ms sur éléments interactifs */
  a, button, [role="button"], label, summary { touch-action: manipulation; }
}

/* ── Custom cursor ────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--violet);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: normal;
}
.cursor.hover { width: 40px; height: 40px; background: color-mix(in srgb, var(--violet) 30%, transparent); border: 1.5px solid var(--violet); }

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 40px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}
/* Haut de page : léger dégradé pour garder le menu lisible sur une photo claire
   (articles) ; remplacé par le fond plein une fois la page défilée. */
.nav:not(.scrolled) { background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0)); }
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--violet);
  clip-path: var(--logo-clip);
  flex-shrink: 0;
  transition: clip-path 0.3s;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.nav-logo-text span { color: var(--violet); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.7);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Menu déroulant (core/layout.php) : survol, ou .open (flèche ▾, au doigt ou au clavier). */
.nav-links .has-sub { position: relative; display: flex; align-items: center; gap: 4px; }
.sub-toggle {
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.7); font: inherit; font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.sub-toggle:hover, .has-sub.open > .sub-toggle { color: var(--white); }
.sub-toggle:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.sub-toggle--title { padding: 4px 0; }
.sub-menu {
  position: absolute; top: 100%; left: -18px; min-width: 240px;
  padding: 10px 0; margin-top: 12px;
  background: rgba(10,10,10,0.97); border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  display: none; flex-direction: column; z-index: 110;
}
.sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* pont pour la souris */
.has-sub:hover > .sub-menu, .has-sub.open > .sub-menu { display: flex; }
.sub-menu a { display: block; padding: 10px 18px; white-space: nowrap; }
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: color-mix(in srgb, var(--violet) 12%, transparent); }
.nav-drawer-links a.nav-drawer-sub { font-size: 1.25rem; padding-left: 22px; color: rgb(var(--ink-rgb, 255 255 255) / 0.4); }
.nav-drawer-title {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800; text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.5); letter-spacing: 0.05em; padding: 8px 0;
}

.nav-cta {
  background: var(--violet) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--violet2) !important; }

/* Menu trop long pour la largeur (Seb peut ajouter des liens) : main.js pose
   .nav--compact et le menu passe au bouton ☰ au lieu de se chevaucher
   (2026-10-09 : « Devis gratuit » se cassait sur deux lignes vers 960-1200 px). */
.nav-links a, .nav-links .sub-toggle { white-space: nowrap; }
.nav-cta { display: inline-flex; align-items: center; white-space: nowrap; }
.nav.nav--compact .nav-links { display: none; }
.nav.nav--compact .nav-hamburger { display: flex; }
@media (max-width: 1280px) { .nav-links { gap: 24px; } }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; height: 100dvh; min-height: 700px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0813 40%, #0a0a0a 100%);
}
/* Subtle grid texture */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(var(--ink-rgb, 255 255 255) / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ink-rgb, 255 255 255) / 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, color-mix(in srgb, var(--violet) 18%, transparent) 0%, transparent 70%);
}

/* Big background number */
.hero-number {
  position: absolute;
  right: -2vw; bottom: 5vh;
  font-family: var(--font-head);
  font-size: 38vw;
  font-weight: 900;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink-rgb, 255 255 255) / 0.04);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 40px 80px;
  display: flex; flex-direction: column; gap: 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 24px;
}
.hero-tag::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--violet);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 12vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero-title .accent { color: var(--violet); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.1);
  flex-wrap: wrap; gap: 24px;
}
.hero-desc {
  max-width: 460px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.6);
  font-weight: 300;
}
.hero-actions {
  display: flex; gap: 12px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  transition: all 0.25s var(--ease);
}
.btn-orange {
  background: var(--violet);
  color: var(--white);
}
.btn-orange:hover { background: var(--white); color: var(--black); }
.btn-outline {
  border: 1.5px solid rgb(var(--ink-rgb, 255 255 255) / 0.3);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgb(var(--ink-rgb, 255 255 255) / 0.06); }

/* Arrow button */
.btn svg { width: 18px; height: 18px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2; opacity: 0.4;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll span {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  writing-mode: vertical-rl; text-orientation: mixed;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollline 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollline {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── TICKER ───────────────────────────────────────────────────── */
.ticker {
  background: var(--violet);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 0;
  animation: ticker 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  padding-right: 24px;
}
.ticker-dot {
  width: 6px; height: 6px;
  background: rgb(var(--ink-rgb, 255 255 255) / 0.5);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── STATS ────────────────────────────────────────────────────── */
.stats {
  background: var(--sand);
  color: var(--black);
  padding: 80px 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  padding: 40px;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute; top: 20%; right: 0; bottom: 20%;
  width: 1px;
  background: rgba(0,0,0,0.1);
}
.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.03em;
}
.stat-number span { color: var(--violet); }
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray2);
  margin-top: 8px;
}
.stat-desc {
  font-size: 0.9rem;
  color: var(--gray2);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 220px;
}

/* ── SERVICES ─────────────────────────────────────────────────── */
.services {
  background: var(--black2);
  padding: var(--section-py) 40px;
}
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap; gap: 24px;
}
.section-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--violet);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: var(--heading-lh);
  color: var(--white);
  letter-spacing: var(--heading-ls);
}
.section-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
.section-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.4);
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--violet); }
.section-link svg { width: 16px; height: 16px; }

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  background: rgb(var(--ink-rgb, 255 255 255) / 0.06);
}
.service-card {
  position: relative;
  background: var(--black2);
  padding: 40px 36px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: background 0.35s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { background: var(--black3); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink-rgb, 255 255 255) / 0.08);
  line-height: 1;
  margin-bottom: -16px;
  transition: color 0.35s, -webkit-text-stroke 0.35s;
}
.service-card:hover .service-num {
  color: color-mix(in srgb, var(--violet) 12%, transparent);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--violet) 20%, transparent);
}
.service-icon {
  width: 52px; height: 52px;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 20%, transparent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background 0.35s, border-color 0.35s;
}
.service-card:hover .service-icon { background: var(--violet); border-color: var(--violet); }
.service-icon svg { width: 24px; height: 24px; color: var(--violet); transition: color 0.35s; }
.service-card:hover .service-icon svg { color: var(--white); }

.service-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}
.service-desc {
  font-size: 0.875rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.45);
  line-height: 1.7;
}
.service-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-top: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.service-arrow svg { width: 14px; height: 14px; }
.service-card:hover .service-arrow, .service-arrow:focus-visible { opacity: 1; transform: translateX(0); }
/* Le lien « En savoir plus » couvre toute la carte. */
a.service-arrow { text-decoration: none; }
a.service-arrow::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.service-card:has(a.service-arrow) { cursor: pointer; }
/* Sans survol (mobile), le lien reste visible. */
@media (hover: none) { .service-arrow { opacity: 1; transform: none; } }

/* ── EXPERTISE ────────────────────────────────────────────────── */
.expertise {
  background: var(--black);
  padding: var(--section-py) 40px;
  position: relative;
  overflow: hidden;
}
.expertise::before {
  content: 'EXPERTISE';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: 20vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink-rgb, 255 255 255) / 0.025);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative; z-index: 1;
}
.expertise-left {}
.expertise-right {
  display: flex; flex-direction: column; gap: 0;
}
.expertise-item {
  padding: 32px 0;
  border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.07);
  display: flex; gap: 24px; align-items: flex-start;
  transition: padding-left 0.3s var(--ease);
}
.expertise-item:first-child { border-top: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.07); }
.expertise-item:hover { padding-left: 12px; }

.expertise-n {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--violet);
  flex-shrink: 0;
  min-width: 32px;
  padding-top: 2px;
}
.expertise-content {}
.expertise-title-item {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.expertise-text {
  font-size: 0.875rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.5);
  line-height: 1.7;
}

/* Left side visual */
.expertise-visual {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--black3);
  overflow: hidden;
}
.expertise-visual-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a0800 0%, #0a0a0a 100%);
}
.expertise-visual-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    color-mix(in srgb, var(--violet) 4%, transparent) 30px,
    color-mix(in srgb, var(--violet) 4%, transparent) 31px
  );
}
.expertise-visual-content {
  position: relative; z-index: 1;
  padding: 40px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.expertise-big-num {
  font-family: var(--font-head);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.04em;
}
.expertise-big-num span { color: var(--violet); }
.expertise-big-label {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.6);
  margin-bottom: 24px;
}
.expertise-certifs {
  display: flex; flex-direction: column; gap: 8px;
}
.certif-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.5);
}
.certif-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--violet);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PROCESS ──────────────────────────────────────────────────── */
.process {
  background: var(--sand);
  color: var(--black);
  padding: var(--section-py) 40px;
  clip-path: var(--clip-process);
  margin: var(--process-margin);
  position: relative; z-index: 2;
}
.process .section-tag { color: var(--violet); }
.process .section-tag::before { background: var(--violet); }
.process .section-title { color: var(--black); }
.process .section-title .outline { -webkit-text-stroke: 2px var(--black); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-top: 60px;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, var(--violet), color-mix(in srgb, var(--violet) 20%, transparent));
}
.process-step {
  padding: 0 20px 0 0;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-6px); }
.process-step-dot {
  width: 56px; height: 56px;
  background: var(--black);
  border: 2px solid var(--violet);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.process-step:hover .process-step-dot { background: var(--violet); }
.process-step-dot svg { width: 22px; height: 22px; color: var(--violet); transition: color 0.3s; }
.process-step:hover .process-step-dot svg { color: var(--white); }
.process-step-n {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.process-step-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  margin-bottom: 10px;
}
.process-step-desc {
  font-size: 0.86rem;
  color: var(--gray2);
  line-height: 1.7;
}

/* ── REFERENCES ───────────────────────────────────────────────── */
.references {
  background: var(--black);
  padding: 160px 40px 100px;
  position: relative; z-index: 1;
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 8px;
  margin-top: 60px;
}
/* Bento asymmetric layout */
.ref-card { position: relative; overflow: hidden; }
.ref-card:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 2; aspect-ratio: 16/9; }
.ref-card:nth-child(2) { grid-column: 7 / 10; grid-row: 1 / 2; }
.ref-card:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 2; }
.ref-card:nth-child(4) { grid-column: 1 / 4; grid-row: 2 / 3; }
.ref-card:nth-child(5) { grid-column: 4 / 9; grid-row: 2 / 3; aspect-ratio: 4/3; }
.ref-card:nth-child(6) { grid-column: 9 / 13; grid-row: 2 / 3; }

.ref-card-inner {
  position: absolute; inset: 0;
  background: var(--black3);
  transition: transform 0.6s var(--ease);
}
.ref-card:hover .ref-card-inner { transform: scale(1.04); }

.ref-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(1) brightness(0.5);
  transition: filter 0.5s var(--ease);
}
/* Gradient placeholders */
.ref-card:nth-child(1) .ref-card-bg { background-image: linear-gradient(135deg, #1a1a1a, #2a1800); }
.ref-card:nth-child(2) .ref-card-bg { background-image: linear-gradient(135deg, #0d1a0d, #1a2e0d); }
.ref-card:nth-child(3) .ref-card-bg { background-image: linear-gradient(135deg, #1a0d0d, #2e1a0d); }
.ref-card:nth-child(4) .ref-card-bg { background-image: linear-gradient(135deg, #0d0d1a, #1a0d2e); }
.ref-card:nth-child(5) .ref-card-bg { background-image: linear-gradient(135deg, #1a1a0d, #2e2e0d); }
.ref-card:nth-child(6) .ref-card-bg { background-image: linear-gradient(135deg, #0d1a1a, #0d2e2e); }

.ref-card:hover .ref-card-bg { filter: grayscale(0) brightness(0.65); }

.ref-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.ref-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent);
  border-radius: var(--radius);
  padding: 4px 10px;
  margin-bottom: 8px;
  width: fit-content;
}
.ref-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.ref-card:hover .ref-name { transform: translateY(0); opacity: 1; }
.ref-location {
  font-size: 0.75rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.55);
  margin-top: 4px;
}

/* Placeholder icon inside ref cards */
.ref-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0.2;
  transition: opacity 0.3s;
}
.ref-card:hover .ref-placeholder { opacity: 0; }
.ref-placeholder-icon {
  font-size: 3rem; line-height: 1;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.3);
  margin-bottom: 8px;
}
.ref-placeholder-text {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.3);
}

/* ── CERTIFICATIONS ───────────────────────────────────────────── */
.certifications {
  background: var(--black2);
  padding: 60px 40px;
  border-top: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.05);
  border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.05);
}
.certif-list {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap; justify-content: center;
}
.certif-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.25);
  white-space: nowrap;
}
.certif-items {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.certif-norm {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.35);
  text-transform: uppercase;
  transition: color 0.2s;
}
.certif-norm:hover { color: var(--violet); }
.certif-sep {
  width: 4px; height: 4px;
  background: rgb(var(--ink-rgb, 255 255 255) / 0.15);
  border-radius: 50%;
}

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact {
  background: var(--black);
  padding: var(--section-py) 40px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left: Contact info */
.contact-info {}
.contact-headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  margin-top: 24px;
  margin-bottom: 40px;
}
.contact-headline span { color: var(--violet); }
.contact-headline .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgb(var(--ink-rgb, 255 255 255) / 0.3);
  display: block;
}

.contact-detail {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 48px;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px;
  border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.07);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.contact-item:hover { border-color: color-mix(in srgb, var(--violet) 30%, transparent); background: color-mix(in srgb, var(--violet) 4%, transparent); }
.contact-item-icon {
  width: 40px; height: 40px;
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; color: var(--violet); }
.contact-item-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.35);
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
}
.contact-item-value a:hover { color: var(--violet); }

/* Right: Form — dans un cadre, avec son titre (2026-10-09 : le formulaire
   flottait sans cadre, textes pâles, et la colonne de gauche le dépassait). */
.contact-form-wrap {
  background: rgb(var(--ink-rgb, 255 255 255) / 0.03);
  border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.09);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.contact-form-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.07); }
.contact-form-title {
  font-family: var(--font-head); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); line-height: 1.1;
}
.contact-form-sub { margin-top: 8px; font-size: 0.95rem; color: rgb(var(--ink-rgb, 255 255 255) / 0.6); }
.contact-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.contact-item { padding: 18px; gap: 14px; min-width: 0; }
.contact-item-value { font-size: 1rem; overflow-wrap: anywhere; }
.contact-form {
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.65);
}
.form-label .req { color: var(--violet); }
.form-control {
  background: rgb(var(--ink-rgb, 255 255 255) / 0.04);
  border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.1);
  color: var(--white);
  padding: 14px 18px;
  font-size: max(16px, 0.95rem); /* iOS : ≥16px = pas de zoom auto */
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  border-radius: var(--radius);
  outline: none;
  appearance: none;
}
.form-control::placeholder { color: rgb(var(--ink-rgb, 255 255 255) / 0.35); }
.form-control:focus {
  border-color: var(--violet);
  background: color-mix(in srgb, var(--violet) 4%, transparent);
}
.form-control select option { background: var(--black3); }
select.form-control { cursor: none; }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }

.form-submit {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: 8px;
}
.form-note {
  font-size: 0.75rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.25);
  max-width: 240px;
  line-height: 1.5;
}
.btn-submit {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--violet);
  color: var(--white);
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-btn);
  display: flex; align-items: center; gap: 10px;
  transition: background 0.25s, transform 0.2s;
}
.btn-submit:hover { background: var(--white); color: var(--black); }
.btn-submit svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-submit:hover svg { transform: translateX(4px); }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: var(--black2);
  padding: 60px 40px 40px;
  border-top: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.05);
}
.footer-top {
  display: grid;
  /* La marque occupe 2fr ; chaque colonne suivante (Navigation, Contact)
     prend 1fr implicitement. Un gabarit fixe en 4 colonnes laissait une
     colonne vide à droite : le footer n'en rend que 2 ou 3 selon que des
     liens de pied de page sont configurés ou non. */
  grid-template-columns: 2fr;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
  margin-bottom: 32px;
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.footer-logo-mark {
  width: 32px; height: 32px;
  background: var(--violet);
  clip-path: var(--logo-clip);
}
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-logo-text span { color: var(--violet); }
.footer-tagline {
  font-size: 0.85rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.4);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 24px;
}
.footer-social {
  display: flex; gap: 12px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.1);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, transparent); }
.footer-social svg { width: 16px; height: 16px; color: rgb(var(--ink-rgb, 255 255 255) / 0.5); }
.footer-social a:hover svg { color: var(--violet); }

.footer-col {}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.25);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 0.875rem; color: rgb(var(--ink-rgb, 255 255 255) / 0.45); } /* adresse : ligne sans lien */
.footer-col li a {
  font-size: 0.875rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.45);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-col li a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.2);
}
.footer-links {
  display: flex; gap: 20px;
}
.footer-links a {
  font-size: 0.75rem;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--violet); }

/* ── Scroll animations ────────────────────────────────────────── */
/* Marges latérales du contenu, alignées sur le menu (.nav : 40px).
   Seules les tailles tablette/téléphone existaient : sur ordinateur le texte
   touchait le bord (actualités, accueil › Dernières actualités). */
.container { padding: 0 40px; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Respecte la préférence système « réduire les animations » ────
   Ticker défilant, rebond du repère de scroll, apparitions au
   scroll : tout s'affiche directement, sans mouvement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Mobile navigation drawer ─────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  height: 100vh; height: 100dvh;
  background: var(--black2);
  border-left: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.07);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px;
  /* Safe area notch/Dynamic Island */
  padding-top:    max(40px, env(safe-area-inset-top,    40px));
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
  padding-right:  max(40px, env(safe-area-inset-right,  40px));
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-links {
  display: flex; flex-direction: column; gap: 8px;
}
.nav-drawer-links a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb, 255 255 255) / 0.5);
  letter-spacing: 0.05em;
  padding: 8px 0;
  border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-drawer-links a:hover { color: var(--violet); padding-left: 12px; }
.nav-drawer-cta { margin-top: 32px; }
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile-first breakpoints
   ══════════════════════════════════════════════════════════════════ */

/* ── Tablet large 1100px ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid        { grid-template-columns: repeat(3, 1fr); }
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .expertise-layout  { gap: 48px; }
  .footer-top        { grid-template-columns: 1fr 1fr; grid-auto-flow: row; gap: 40px; }
  .container         { padding: 0 28px; }
}

/* ── Tablet 900px ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  .nav               { padding: 0 20px; }
  .nav-links         { display: none; }
  .nav-hamburger     { display: flex; }

  /* Hero */
  .hero-content      { padding: 0 20px 60px; }
  .hero-bottom       { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-actions      { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-number       { font-size: clamp(14rem, 40vw, 26rem); }

  /* Stats */
  .stats             { padding: 60px 20px; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after  { display: none; }
  .stat-item         { border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / .06); padding: 28px 0; }

  /* Services */
  .services          { padding: 80px 20px; }
  .services-grid     { grid-template-columns: 1fr; gap: 16px; }

  /* Expertise */
  .expertise         { padding: 80px 20px; }
  .expertise-layout  { grid-template-columns: 1fr; gap: 40px; }
  .expertise-visual  { aspect-ratio: 16/9; min-height: 260px; }
  .expertise-list    { gap: 12px; }

  /* Process */
  .process           { clip-path: none; margin: 0; padding: var(--section-py, 80px) 20px; }
  .process-steps     { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }

  /* Références */
  .references        { padding: 80px 20px; }
  .ref-grid          { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .ref-card          { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/3; }

  /* Contact */
  .contact           { padding: 80px 20px; }
  .contact-layout    { grid-template-columns: 1fr; gap: 32px; }
  /* Téléphone/tablette : titre, puis le formulaire, puis les coordonnées —
     « Devis gratuit » arrive directement sur le formulaire. */
  .contact-info      { display: contents; }
  .contact-info > .section-tag, .contact-headline { order: 1; }
  .contact-headline  { margin: 0; }
  .contact-form-wrap { order: 2; }
  .contact-detail    { order: 3; }
  .btn-submit        { width: 100%; justify-content: center; }
  .form-row          { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner      { padding: 60px 20px 32px; }
  .footer-top        { grid-template-columns: 1fr; grid-auto-flow: row; gap: 36px; }

  /* Section headers */
  .section-header    { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-link      { font-size: .78rem; }
}

/* ── Mobile 640px ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container         { padding: 0 16px; }

  /* Hero */
  .hero-title        { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-desc         { font-size: .95rem; }
  .hero-tag          { font-size: .65rem; }
  .hero-scroll       { display: none; }

  /* Ticker */
  .ticker-item       { font-size: .75rem; }

  /* Stats */
  .stats-grid        { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-value        { font-size: clamp(2.5rem, 10vw, 4rem); }

  /* Services */
  .service-card      { padding: 28px 20px; }
  .service-num       { font-size: 3rem; }

  /* Process */
  .process-steps     { grid-template-columns: 1fr; }
  .process-title     { font-size: clamp(2rem, 10vw, 4rem); }

  /* Références */
  .ref-grid          { grid-template-columns: 1fr; }
  .ref-card          { aspect-ratio: 16/10; }
  .ref-overlay       { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%); }

  /* Contact */
  .contact-cta       { flex-direction: column; }
  .contact-cta .btn  { width: 100%; justify-content: center; }

  /* Section title */
  .section-title     { font-size: clamp(2.2rem, 10vw, 4rem); }

  /* News section */
  .news-section      { padding: 60px 0; }

  /* Footer */
  .footer-bottom     { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links li   { line-height: 2; }
}

/* ── Mobile petit 420px ───────────────────────────────────────── */
@media (max-width: 420px) {
  .container         { padding: 0 12px; }
  .nav               { padding: 0 14px; }
  .hero-title        { font-size: clamp(2.6rem, 18vw, 4rem); }
  .stats-grid        { grid-template-columns: 1fr; }
  .stat-item         { border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / .06); }
  .hero-number       { opacity: .04; }
  .btn               { padding: .7rem 1.2rem; font-size: .85rem; }
}

/* ── Safe areas (notch iPhone / Dynamic Island) ───────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer-bottom {
    padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom)));
  }
  /* Slider : espace supplémentaire si on scroll en bas */
  .news-slider { padding-bottom: env(safe-area-inset-bottom, 4px); }
}

/* ── Utility ──────────────────────────────────────────────────── */
.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;
}

/* ═══════════════════════════════════════════════════════════════════════
   NEWS SECTION — bento photo overlay
   ═══════════════════════════════════════════════════════════════════════ */
.news-section {
  padding: clamp(80px,10vw,130px) 0;
  background: var(--black);
}

/* ── Slider actualités homepage — carrés photo overlay ─────────── */
.news-slider-wrap {
  position: relative;
  margin-top: 48px;
}
.news-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  /* Débord léger des bords pour montrer qu'on peut glisser */
  padding-left: 4px;
  padding-right: 32px;
}
.news-slider::-webkit-scrollbar { display: none; }

/* Flèches de navigation */
.news-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgb(var(--ink-rgb, 255 255 255) / .18);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.news-nav:hover { background: var(--violet); border-color: var(--violet); }
.news-nav--prev { left: -16px; }
.news-nav--next { right: -16px; }

/* Cacher flèches si pas nécessaire */
.news-nav[disabled] { opacity: .25; pointer-events: none; }
.news-grid {
  /* kept for legacy – unused */
}
.news-card {
  position: relative;
  display: block;
  text-decoration: none;
  flex: 0 0 300px;
  width: 300px;
  aspect-ratio: 1/1;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.news-card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform .65s cubic-bezier(.25,.46,.45,.94);
}
.news-card:hover .news-card-photo { transform: scale(1.08); }

/* Gradient bas → haut */
.news-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.90) 0%,
    rgba(0,0,0,.45) 45%,
    transparent     100%
  );
}

/* Contenu ancré en bas */
.news-card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px 20px;
}
.news-card-cat {
  font-family: var(--font-body);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.news-card-title {
  font-family: var(--font-head);
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 14px;
}
.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-card-date {
  font-size: .6rem;
  color: rgb(var(--ink-rgb, 255 255 255) / .5);
  font-family: var(--font-body);
}
.news-card-arrow {
  width: 28px; height: 28px;
  border: 1px solid rgb(var(--ink-rgb, 255 255 255) / .3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: rgb(var(--ink-rgb, 255 255 255) / .5);
  flex-shrink: 0;
  transition: background .25s, border-color .25s, color .25s;
}
.news-card:hover .news-card-arrow {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
@media (max-width: 600px) {
  .news-card  { flex: 0 0 260px; width: 260px; }
  .news-nav   { display: none; }
}

.news-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--gray);
  font-size: 1rem;
}

/* ── Page listing actualités ────────────────────────────────── */
.news-page { padding: clamp(80px,10vw,130px) 0; background: var(--black); }
.news-page-title { font-family: var(--font-head); font-size: clamp(2.5rem,6vw,5rem); font-weight: 900; margin-bottom: 60px; color: var(--white); text-transform: uppercase; }
.news-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }

/* ── Article individuel ─────────────────────────────────────── */
.article-hero { padding: clamp(80px,10vw,130px) 0 60px; background: var(--black); }
.article-cat  { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); display: block; margin-bottom: 16px; }
.article-title{ font-family: var(--font-head); font-size: clamp(2rem,5vw,4rem); font-weight: 900; color: var(--white); line-height: 1.1; max-width: 800px; text-transform: uppercase; }
.article-meta { margin-top: 20px; color: var(--gray); font-size: .85rem; }
.article-feat-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin: 40px 0; }
.article-body { max-width: 740px; font-size: 1.05rem; line-height: 1.8; color: rgb(var(--ink-rgb, 255 255 255) / .85); }
.article-body h2 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin: 48px 0 16px; color: var(--white); text-transform: uppercase; }
.article-body h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin: 32px 0 12px; color: var(--white); }
.article-body p  { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a  { color: var(--violet); }
.article-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); text-decoration: none; font-size: .85rem; margin-bottom: 40px; }
.article-back:hover { color: var(--white); }


/* ── Formulaire de contact : message d'erreur et remerciement ───────── */
.form-msg {
  margin-top: 4px; padding: 14px 18px; font-size: .9rem; line-height: 1.55;
  border-left: 3px solid #ff6b6b; background: rgba(255,107,107,.08); color: #fecaca;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.form-control.is-invalid { border-color: #ff6b6b; }
.form-success {
  padding: 44px 36px; text-align: center;
  border: 1px solid rgb(var(--ink-rgb, 255 255 255) / .08); border-top: 3px solid var(--violet);
  background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 10%, transparent), rgb(var(--ink-rgb, 255 255 255) / .02));
  border-radius: var(--radius); outline: none;
}
.form-success-icon {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet); color: var(--white);
  animation: formSuccessPop .45s cubic-bezier(.2,1.4,.4,1) both;
}
.form-success-icon svg { width: 30px; height: 30px; }
.form-success-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; color: var(--white); margin: 0 0 14px;
}
.form-success p { color: rgb(var(--ink-rgb, 255 255 255) / .75); line-height: 1.65; margin: 0 auto 12px; max-width: 460px; }
.form-success .form-success-note { color: var(--white); font-weight: 500; }
.form-success-call a { color: var(--violet); font-weight: 700; text-decoration: none; white-space: nowrap; }
.form-success-call a:hover { text-decoration: underline; }
.form-success-again {
  margin-top: 18px; background: none; border: 1px solid rgb(var(--ink-rgb, 255 255 255) / .18); color: rgb(var(--ink-rgb, 255 255 255) / .7);
  font: inherit; font-size: .85rem; padding: 10px 20px; border-radius: var(--radius-btn); transition: border-color .2s, color .2s;
}
.form-success-again:hover { border-color: var(--violet); color: var(--white); }
@keyframes formSuccessPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .form-success-icon { animation: none; } }
.contact-form[hidden], .form-success[hidden], .form-msg[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════════════
   Accueil — refonte du 2026-10-09
   Signature : la photo d'une réalisation, pleine, avec le marquage d'un
   terrain tracé dessus à l'ouverture ; le titre est dans « son » camp, le
   grand chiffre de l'admin dans le rond central. Le reste se calme : liste
   des métiers fixe, chiffres réels sans décompte, normes au lieu de 01-06.
   ════════════════════════════════════════════════════════════════════ */
.hero--pitch .hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
}
.hero--pitch .hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.2) 70%, rgba(0,0,0,.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, transparent 42%);
}
.hero-pitch { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hp-line {
  fill: none; stroke: #fff; stroke-opacity: .58; stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hp-draw 1.3s var(--ease, ease) forwards;
}
.hp-1 { animation-delay: .2s; animation-duration: 1.6s; }
.hp-2 { animation-delay: 1.0s; animation-duration: .7s; }
.hp-3 { animation-delay: 1.4s; animation-duration: .9s; }
.hp-4 { animation-delay: 1.7s; animation-duration: .8s; }
.hp-spot { fill: var(--violet); opacity: 0; animation: hp-fade .4s ease 2.2s forwards; }
.hp-num {
  font-family: var(--font-head); font-weight: 900; font-size: 150px; letter-spacing: -0.02em;
  fill: none; stroke: #fff; stroke-opacity: .5; stroke-width: 1.4; vector-effect: non-scaling-stroke;
  opacity: 0; animation: hp-fade .8s ease 2.1s forwards;
}
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
@keyframes hp-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hp-line { animation: none; stroke-dashoffset: 0; }
  .hp-spot, .hp-num { animation: none; opacity: 1; }
}
.hero--pitch .hero-number { display: none; }
.hero--pitch .hero-content { z-index: 2; }
.hero--pitch .hero-title { font-size: clamp(3.2rem, 7.4vw, 7.4rem); max-width: 60vw; }
.hero--pitch .hero-desc { color: rgba(255,255,255,.82); font-weight: 400; }
.hero--pitch .hero-bottom { border-top: 0; padding-top: 0; }
.hero--pitch .hero-tag { color: rgba(255,255,255,.88); }
.hero--pitch .hero-tag::before { background: rgba(255,255,255,.6); }
/* Plus étroit : le cadre passerait sous le texte, on garde médiane, rond et surface */
@media (max-width: 1200px) { .hp-1 { display: none; } }
@media (max-width: 900px) {
  .hero--pitch .hero-title { max-width: none; }
  .hero--pitch .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.35) 100%); }
  .hp-line { stroke-opacity: .4; }
  .hp-num, .hp-4 { display: none; }   /* coupés au bord sur téléphone */
}

/* Liste des métiers : fixe, sur une ou deux lignes */
.ticker--static { overflow: visible; white-space: normal; padding: 16px 40px; }
.ticker--static .ticker-track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  animation: none; margin: 0; padding: 0; list-style: none;
}
.ticker--static .ticker-item { padding: 0 18px; gap: 0; position: relative; }
.ticker--static .ticker-item + .ticker-item::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: currentColor; opacity: .55;
}
@media (max-width: 600px) { .ticker--static { padding: 14px 16px; } .ticker--static .ticker-item { font-size: .78rem; padding: 0 12px; } }

/* Services : la norme suivie, à la place du numéro */
.service-norm {
  display: inline-block; margin-bottom: 18px; padding: 4px 8px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .12em;
  color: var(--violet); border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent);
  border-radius: var(--radius, 0);
}
.service-norm + .service-icon { margin-top: 0; }
/* Carte sans norme : même hauteur de départ que ses voisines */
.service-card:not(:has(.service-norm)) .service-icon { margin-top: 44px; }
