/* ============================================
   Koçak Structures - Stylesheet premium
   Palette : orange terracotta, anthracite, sable.
   Type   : Manrope (UI) + Fraunces (display serif)
============================================ */

:root {
  /* Couleurs - palette claire éditoriale */
  --orange: #c97540;
  --orange-dark: #a85d2e;
  --orange-light: #e8a378;
  --orange-soft: rgba(232, 163, 120, .12);
  --anthracite: #2a2a2a;
  --ink: #1a1a1a;
  --grey: #777777;
  --muted: #999999;
  --grey-light: #f5f3f0;
  --sand: #faf8f5;
  --cream: #f4f1ec;
  --hairline: rgba(20, 20, 20, .06);
  --hairline-strong: rgba(20, 20, 20, .12);
  --brown: #6b4a32;
  --white: #ffffff;

  /* Ombres minimales (style éditorial) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .02);
  --shadow-sm: 0 2px 8px rgba(20, 20, 20, .03);
  --shadow-md: 0 6px 20px rgba(20, 20, 20, .05);
  --shadow-lg: 0 14px 40px rgba(20, 20, 20, .07);

  /* Rayons */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --transition: .35s var(--ease);

  /* Mise en page */
  --container: 1320px;
  --section-pad: clamp(80px, 12vw, 160px);

  /* Typo */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--orange); color: var(--white); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Typographie ============ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  letter-spacing: -.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.05;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
  letter-spacing: -.015em;
  font-weight: 600;
}
h4 {
  font-size: .82rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange);
  font-weight: 700;
}

/* Span d'accent : passe en serif italic pour le contraste premium */
.accent {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--orange);
  letter-spacing: -.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--orange);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4.5rem;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-lead {
  color: var(--grey);
  font-size: 1.08rem;
  margin-top: 1.2rem;
  line-height: 1.55;
  letter-spacing: -.005em;
}

/* ============ Boutons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.05rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.005em;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease),
              transform .35s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn .arrow {
  display: inline-block;
  width: 14px;
  margin-left: 2px;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .35s var(--ease);
  font-weight: 500;
}
.btn:hover .arrow { transform: translateX(0); opacity: 1; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(201, 117, 64, .28);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(20, 20, 20, .22);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .45);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-dark:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 30px rgba(20, 20, 20, .05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 4px;
  gap: 2rem;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  width: 92px;
  height: auto;
  margin: -10px 0;
  transition: transform .4s var(--ease);
}
.logo:hover img { transform: scale(1.04); }

.primary-nav ul {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.primary-nav a {
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: -.005em;
  color: var(--ink);
  position: relative;
  padding: .4rem 0;
  transition: color .25s var(--ease);
}
.primary-nav a:not(.cta-link)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width .35s var(--ease-out);
}
.primary-nav a:not(.cta-link):hover { color: var(--orange); }
.primary-nav a:not(.cta-link):hover::after { width: 100%; }

.cta-link {
  background: var(--orange);
  color: var(--white) !important;
  padding: .65rem 1.3rem !important;
  border-radius: 8px;
  transition: background .3s var(--ease), transform .3s var(--ease);
  font-weight: 600;
}
.cta-link:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.primary-nav a.active:not(.cta-link) {
  color: var(--orange);
  font-weight: 600;
}
.primary-nav a.active:not(.cta-link)::after {
  width: 100% !important;
}
.cta-link.active {
  background: var(--orange);
}

/* ============ Page banner (pages internes) ============ */
/* Mini en-tête épuré pour pages internes (style Zara / Apple) */
.page-banner {
  position: relative;
  padding: 110px 0 30px;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.page-banner h1 {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: .3rem 0 .4rem;
  letter-spacing: -.025em;
  line-height: 1.15;
  font-weight: 700;
}
.page-banner .eyebrow {
  color: var(--orange);
  font-size: .68rem;
  margin-bottom: .6rem;
}
.page-banner .eyebrow::before { background: var(--orange); width: 18px; }
.banner-lead {
  font-size: .98rem;
  max-width: 680px;
  color: var(--grey);
  margin-top: .5rem;
  line-height: 1.55;
  font-weight: 400;
}

.breadcrumb {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: .02em;
}
.breadcrumb a {
  color: var(--muted);
  transition: color .25s var(--ease);
}
.breadcrumb a:hover {
  color: var(--orange);
}
.breadcrumb span {
  color: var(--hairline-strong);
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero révolutionnaire ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 90px;
  color: var(--white);
  isolation: isolate;
}

/* Slideshow auto */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease-out), transform 8s var(--ease-out);
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  animation: heroKenburns 9s ease-out forwards;
}
@keyframes heroKenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}

/* Overlay sombre dégradé pour lisibilité maximale */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, .25) 70%, transparent 100%),
    linear-gradient(0deg, rgba(10, 10, 10, .65) 0%, rgba(10, 10, 10, .15) 50%, rgba(10, 10, 10, 0) 100%);
  pointer-events: none;
}

/* Grain subtil (texture noise) */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* Blob orange flottant */
.hero-blob {
  position: absolute;
  z-index: 2;
  top: 25%;
  right: -8%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 117, 64, .42) 0%, rgba(201, 117, 64, 0) 70%);
  filter: blur(20px);
  animation: blobFloat 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, 30px) scale(1.12); }
  100% { transform: translate(20px, -20px) scale(.95); }
}

/* Marquee top dans le hero */
.hero-marquee-top {
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  z-index: 4;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  background: rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: hero-mq 50s linear infinite;
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 500;
  white-space: nowrap;
}
.hero-marquee-track > * {
  margin-right: 2.5rem;
}
.hero-marquee-track i {
  color: var(--orange);
  font-style: normal;
  font-size: .8rem;
}
@keyframes hero-mq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Indicateurs de slides à droite */
.hero-dots {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-dots button {
  width: 8px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, .3);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: background .35s var(--ease), height .35s var(--ease), transform .35s var(--ease);
}
.hero-dots button:hover { background: rgba(255, 255, 255, .55); }
.hero-dots button.is-active {
  background: var(--orange);
  height: 48px;
}

/* Scroll indicator (horizontal, centré en bas) */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .75);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.hero-scroll:hover {
  color: var(--orange-light);
  transform: translateX(-50%) translateY(2px);
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .7), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--orange));
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* Contenu hero */
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 920px;
  padding-top: 40px;
  padding-bottom: 90px;
  width: 100%;
}
.hero-content .eyebrow {
  color: var(--orange-light);
  margin-bottom: 1rem;
  font-size: .74rem;
}
.hero-content .eyebrow::before { background: var(--orange-light); }

.hero-title {
  color: var(--white);
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
  font-weight: 700;
}
.hero-title .word {
  display: inline-block;
  margin-right: .3em;
}
.hero-title .accent {
  display: inline-block;
  position: relative;
}

.hero-content .lead {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  max-width: 600px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .92);
  line-height: 1.55;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.hero .btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(201, 117, 64, .45);
}
.hero .btn-primary:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  box-shadow: 0 18px 40px rgba(255, 255, 255, .3);
}
.hero .btn .arrow {
  display: inline-block;
  width: auto;
  margin-left: 4px;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .35s var(--ease);
}
.hero .btn:hover .arrow { transform: translateX(0); opacity: 1; }

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  padding: 0 2.2rem;
  border-left: 1px solid rgba(255, 255, 255, .15);
}
.hero-stats li:first-child {
  padding-left: 0;
  border-left: none;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--orange-light);
  line-height: 1;
  letter-spacing: -.02em;
  display: inline-block;
}
.hero-stats strong small {
  font-size: .55em;
  font-style: italic;
  margin-left: 2px;
}
.hero-stats span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: .55rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

/* Animations de révélation */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp .9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.line-reveal {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
}
.line-reveal > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineReveal 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes lineReveal {
  to { transform: translateY(0); }
}

/* Compteur stats (entrée discrète) */
.hero-stats strong[data-count] {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active { animation: none; transition: opacity .3s; }
  .hero-marquee-track { animation: none; }
  .hero-blob { animation: none; }
  .hero-scroll-line::after { animation: none; }
  .reveal-up { opacity: 1; transform: none; animation: none; }
  .line-reveal > span { transform: none; animation: none; }
}
/* Anciennes règles hero supprimées : remplacées par .hero révolutionnaire ci-dessus */

/* ============ Sections ============ */
section { padding: var(--section-pad) 0; }

/* ============ Qui sommes-nous ============ */
.qui-sommes-nous { background: var(--white); }

.qsn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.qsn-card {
  position: relative;
  padding: 2.6rem 2rem 2.2rem;
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transition: transform .5s var(--ease-out), background .35s var(--ease),
              border-color .35s var(--ease), box-shadow .4s var(--ease);
}
.qsn-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem;
  width: 32px; height: 2px;
  background: var(--orange);
  transition: width .4s var(--ease-out);
}
.qsn-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}
.qsn-card:hover::before { width: 64px; }
.qsn-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.6rem;
  color: var(--orange);
  opacity: .4;
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}
.qsn-card h3 {
  font-size: 1.18rem;
  margin-bottom: .8rem;
  color: var(--ink);
}
.qsn-card p {
  font-size: .94rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ============ Services ============ */
.services { background: var(--sand); }

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease),
              border-color .35s var(--ease);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--hairline-strong);
}

.services-cta {
  text-align: center;
  margin-top: 4rem;
}

.service-card figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--grey-light);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s var(--ease);
}
.service-card:hover img { transform: scale(1.06); }

.service-body {
  padding: 1.8rem 1.8rem 2rem;
  position: relative;
}
.service-body h3 {
  color: var(--ink);
  font-size: 1.2rem;
  margin-bottom: .6rem;
  transition: color .3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.service-body h3::after {
  content: '→';
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .4s var(--ease), transform .45s var(--ease-out);
}
a.service-card:hover .service-body h3 { color: var(--orange); }
a.service-card:hover .service-body h3::after { opacity: 1; transform: translateX(0); }

.service-body p {
  color: var(--grey);
  font-size: .94rem;
  line-height: 1.6;
}
.service-body a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ============ Savoir-faire ============ */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.savoir-faire { background: var(--white); }
.sf-media img {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.sf-content h2 { margin-bottom: 1.4rem; }
.sf-content p { color: var(--grey); margin-bottom: 1.6rem; line-height: 1.65; }
.sf-list {
  margin: 1.6rem 0 2rem;
  display: grid;
  gap: 1rem;
}
.sf-list li {
  padding-left: 2rem;
  position: relative;
  color: var(--ink);
}
.sf-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 16px; height: 1.5px;
  background: var(--orange);
}

.sf-subtitle {
  font-size: 1.1rem;
  margin: 2rem 0 1.2rem;
  color: var(--ink);
}
.sf-chantiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-bottom: 2rem;
}
.sf-chantiers li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.1rem;
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  transition: var(--transition);
}
.sf-chantiers li:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateX(4px);
}
.sf-chantiers span {
  font-size: 1.3rem;
}

/* ============ Curage detail ============ */
.curage-detail {
  background: var(--white);
  color: var(--ink);
}
.curage-detail .section-head h2 { color: var(--ink); }
.curage-detail .section-lead { color: var(--grey); }

.curage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.curage-item {
  padding: 2.2rem 1.8rem;
  background: transparent;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background .35s var(--ease);
}
.curage-item:hover {
  background: var(--sand);
}
.curage-item h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.curage-item h3::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.curage-item p {
  font-size: .92rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ============ Nettoyage detail ============ */
.nettoyage-detail { background: var(--sand); }

.nettoyage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.nettoyage-block {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 2.6rem;
  transition: var(--transition);
  border-top: 3px solid var(--orange);
}
.nettoyage-block.particulier {
  border-top-color: var(--ink);
}
.nettoyage-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.nettoyage-block header {
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--hairline);
}
.pill {
  display: inline-block;
  padding: .35rem .9rem;
  background: var(--orange);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  border-radius: 50px;
  margin-bottom: .8rem;
}
.nettoyage-block.particulier .pill {
  background: var(--ink);
}
.nettoyage-block h3 {
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.4;
}
.nettoyage-block ul {
  display: grid;
  gap: .9rem;
}
.nettoyage-block ul li {
  padding-left: 1.6rem;
  position: relative;
  font-size: .94rem;
  color: var(--grey);
  line-height: 1.6;
}
.nettoyage-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1.5px;
  background: var(--orange);
}
.nettoyage-block.particulier ul li::before {
  background: var(--ink);
}

.nettoyage-prestations {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.nettoyage-prestations li {
  padding: .8rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: 50px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  transition: var(--transition);
}
.nettoyage-prestations li:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ============ Maçonnerie ============ */
.maconnerie { background: var(--white); }

.maco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.maco-card {
  padding: 2rem;
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  border-left: 2px solid var(--orange);
  transition: var(--transition);
}
.maco-card:hover {
  background: var(--white);
  border-color: var(--hairline-strong);
  border-left-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.maco-card h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.maco-card ul {
  display: grid;
  gap: .7rem;
}
.maco-card ul li {
  padding-left: 1.4rem;
  position: relative;
  font-size: .92rem;
  color: var(--grey);
  line-height: 1.55;
}
.maco-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1.5px;
  background: var(--orange);
}

.maco-objectifs {
  background: var(--sand);
  color: var(--ink);
  padding: 3rem 2.4rem;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  text-align: center;
}
.maco-objectifs h3 {
  color: var(--orange);
  font-size: .82rem;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
}
.obj-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}
.obj-row span {
  padding: .75rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
}

/* ============ Engagements ============ */
.engagements {
  position: relative;
  background: var(--cream);
  color: var(--ink);
}
.engagements .section-head h2 { color: var(--ink); }
.engagements .section-lead { color: var(--grey); }

.engagements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline-strong);
  border-left: 1px solid var(--hairline-strong);
  background: var(--white);
}
.engagement-card {
  padding: 2.8rem 2rem;
  background: transparent;
  border-right: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  text-align: left;
  transition: background .4s var(--ease);
  position: relative;
}
.engagement-card:hover {
  background: var(--sand);
}
.eng-icon {
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}
.engagement-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: .8rem;
  letter-spacing: -.015em;
}
.engagement-card p {
  font-size: .92rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ============ Références - Marquee ============ */
.references { background: var(--white); overflow: hidden; }

.ref-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  margin-bottom: 4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.ref-track {
  display: flex;
  gap: 5rem;
  width: max-content;
  animation: ref-scroll 55s linear infinite;
  will-change: transform;
  align-items: center;
}
.ref-marquee:hover .ref-track {
  animation-play-state: paused;
}

@keyframes ref-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ref-logo {
  flex: 0 0 auto;
  width: 220px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0 1.5rem;
  transition: transform .4s var(--ease), opacity .4s var(--ease), filter .4s var(--ease);
  filter: grayscale(1) contrast(.95);
  opacity: .55;
}
.ref-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}
.ref-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ref-track { animation: none; }
  .ref-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-bg img { animation: none; }
}

.ref-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.ref-col {
  padding: 2.6rem;
}
.ref-col + .ref-col {
  border-left: 1px solid var(--hairline);
}
.ref-col h3 {
  font-size: .78rem;
  color: var(--orange);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
}
.ref-col p {
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}
.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.ref-tags span {
  padding: .35rem .9rem;
  background: var(--white);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--hairline);
  border-radius: 50px;
}
.ref-note {
  font-style: italic;
  font-size: .92rem;
  color: var(--grey);
  font-family: var(--font-display);
  font-weight: 300;
}
.ref-companies {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: -.005em;
  margin: .5rem 0 1rem;
}

/* ============ Réalisations ============ */
.realisations { background: var(--white); color: var(--ink); }
.realisations .section-head h2 { color: var(--ink); }
.realisations .section-lead { color: var(--grey); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.3rem 1.3rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
}

/* ============ Hub Zones d'intervention ============ */
.zones-hub { background: var(--white); padding: clamp(60px, 8vw, 100px) 0; }

.zone-dept {
  border-top: 1px solid var(--hairline);
  padding: 2.4rem 0;
}
.zone-dept:last-child {
  border-bottom: 1px solid var(--hairline);
}

.zone-dept-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.zone-code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.6rem;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.03em;
}
.zone-dept-head h2 {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.2;
}
.zone-dept-head p {
  color: var(--muted);
  font-size: .9rem;
  margin: .2rem 0 0;
}
.zone-dept-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.zone-dept-link:hover {
  color: var(--ink);
}

.zone-cities {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.zone-cities a {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1rem;
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  transition: var(--transition);
}
.zone-cities a:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .zone-dept-head { grid-template-columns: auto 1fr; }
  .zone-dept-link { grid-column: 1 / -1; padding-top: .5rem; }
  .zone-code { font-size: 2rem; }
  .zone-dept-head h2 { font-size: 1.2rem; }
}

/* ============ FAQ ============ */
.faq { background: var(--white); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  transition: background .3s var(--ease);
}
.faq-item[open] {
  background: var(--sand);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.4;
  transition: color .25s var(--ease);
  position: relative;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--orange); }
.faq-item[open] summary { color: var(--orange); }

.faq-q {
  flex: 1;
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: background .25s var(--ease), transform .35s var(--ease);
}
.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-icon::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}
.faq-item summary:hover .faq-icon::before,
.faq-item summary:hover .faq-icon::after {
  background: var(--orange);
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}
.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}
.faq-item[open] .faq-icon::before {
  background: var(--orange);
}

.faq-answer {
  padding: 0 1.4rem 1.8rem;
  animation: faqSlide .4s var(--ease-out);
}
.faq-answer p {
  color: var(--grey);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 720px;
}
.faq-answer strong { color: var(--ink); font-weight: 600; }

.faq-zones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem .8rem;
  margin-top: 1rem;
  padding: 0;
}
.faq-zones li {
  padding: 0;
  list-style: none;
}
.faq-zones a {
  display: block;
  padding: .55rem 1rem;
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}
.faq-zones a:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(201, 117, 64, .25);
}

@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .faq-item summary { padding: 1.2rem 1rem; font-size: .95rem; gap: 1.2rem; }
  .faq-answer { padding: 0 1rem 1.4rem; }
  .faq-answer p { font-size: .94rem; }
}

/* ============ CTA Band ============ */
.cta-band {
  background: var(--sand);
  color: var(--ink);
  text-align: center;
  padding: clamp(80px, 11vw, 130px) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(201, 117, 64, .06) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 {
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}
.cta-band p {
  margin-bottom: 2.4rem;
  color: var(--grey);
  font-size: 1.08rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Sur fond clair, btn-light devient btn-dark logique */
.cta-band .btn-light {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.cta-band .btn-light:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ============ Contact ============ */
.contact { background: var(--sand); }
.contact-info h2 { margin-bottom: 1.2rem; }
.contact-info > p { color: var(--grey); margin-bottom: 2.4rem; line-height: 1.65; }

.contact-list {
  display: grid;
  gap: 1.4rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--hairline);
}
.contact-list .label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--orange);
}
.contact-list a {
  color: var(--ink);
  font-weight: 500;
  transition: color .25s var(--ease);
}
.contact-list a:hover { color: var(--orange); }
.contact-list em { color: var(--grey); font-size: .85rem; }

.contact-form {
  background: var(--white);
  padding: 2.8rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.3rem;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: .95rem 1.1rem;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

.contact-form button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: .94rem;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: feedbackIn .35s var(--ease-out);
}
.form-feedback.success {
  background: rgba(76, 175, 80, .08);
  border-color: rgba(76, 175, 80, .3);
  color: #2e6b30;
}
.form-feedback.error {
  background: rgba(201, 64, 74, .08);
  border-color: rgba(201, 64, 74, .3);
  color: #a73846;
}
@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ Page Merci ============ */
.merci {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: var(--sand);
}
.merci-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 4rem 2.5rem;
  box-shadow: var(--shadow-md);
}
.merci-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.6rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  animation: merciPop .6s var(--ease-out);
}
@keyframes merciPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.merci-card h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: .5rem 0 1rem;
  line-height: 1.15;
}
.merci-lead {
  color: var(--grey);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.merci-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.merci-contact {
  padding-top: 1.8rem;
  border-top: 1px solid var(--hairline);
  font-size: .92rem;
  color: var(--grey);
}
.merci-contact a {
  color: var(--ink);
  transition: color .25s var(--ease);
}
.merci-contact a:hover { color: var(--orange); }

@media (max-width: 600px) {
  .merci-card { padding: 2.5rem 1.6rem; }
  .merci-actions { flex-direction: column; }
  .merci-actions .btn { width: 100%; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--white);
  color: var(--grey);
  padding: 90px 0 36px;
  border-top: 1px solid var(--hairline-strong);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-grid img { margin-bottom: 1.2rem; }
.footer-grid strong { color: var(--ink); }
.footer-grid p { color: var(--grey); font-size: .92rem; line-height: 1.6; }
.footer-grid h4 {
  color: var(--ink);
  font-size: .76rem;
  letter-spacing: .18em;
}
.footer-grid ul { display: grid; gap: .7rem; }
.footer-grid a {
  color: var(--grey);
  transition: color .25s var(--ease);
  font-size: .94rem;
}
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 2.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
}
.footer-legal a {
  color: var(--grey);
  transition: color .25s var(--ease);
}
.footer-legal a:hover { color: var(--orange); }
.footer-legal span { color: var(--hairline-strong); }

/* ============ Pages légales ============ */
.legal-page {
  background: var(--white);
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 11vw, 130px);
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--ink);
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 2.8rem 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  color: var(--grey);
  margin-bottom: 1.1rem;
}
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.legal-content a:hover { color: var(--ink); }
.legal-list {
  margin: 0 0 1.4rem 0;
  display: grid;
  gap: .7rem;
}
.legal-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--grey);
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 10px; height: 1.5px;
  background: var(--orange);
}
.legal-update {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: .88rem;
}

/* ============ Floating CTA ============ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: -.005em;
  box-shadow: 0 10px 28px rgba(201, 117, 64, .28);
  z-index: 50;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta:hover {
  background: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 20, 20, .22);
}

/* ============ Reveal au scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays pour grilles */
.grid-services .reveal:nth-child(1) { transition-delay: 0ms; }
.grid-services .reveal:nth-child(2) { transition-delay: 80ms; }
.grid-services .reveal:nth-child(3) { transition-delay: 160ms; }
.grid-services .reveal:nth-child(4) { transition-delay: 240ms; }
.grid-services .reveal:nth-child(5) { transition-delay: 320ms; }
.grid-services .reveal:nth-child(6) { transition-delay: 400ms; }
.grid-services .reveal:nth-child(7) { transition-delay: 480ms; }
.grid-services .reveal:nth-child(8) { transition-delay: 560ms; }

.qsn-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.qsn-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.qsn-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.qsn-grid .reveal:nth-child(4) { transition-delay: 270ms; }

.curage-grid .reveal:nth-child(odd) { transition-delay: 0ms; }
.curage-grid .reveal:nth-child(even) { transition-delay: 90ms; }

.engagements-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.engagements-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.engagements-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.engagements-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.engagements-grid .reveal:nth-child(5) { transition-delay: 320ms; }

.maco-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.maco-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.maco-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.maco-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.maco-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.maco-grid .reveal:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Responsive ============ */

/* Anti-overflow horizontal global */
html, body { overflow-x: hidden; max-width: 100%; }

/* Grand écran (1440px+) : container un peu plus grand */
@media (min-width: 1600px) {
  :root { --container: 1380px; }
}

/* Laptop / petit desktop (1200px et moins) */
@media (max-width: 1200px) {
  .footer-grid { gap: 2.4rem; }
  .grid-services { gap: 1.5rem; }
}

/* Tablette landscape & iPad pro portrait (≤ 1024px) */
@media (max-width: 1024px) {
  :root { --section-pad: clamp(70px, 10vw, 130px); }
  .container { padding: 0 28px; }
  .section-head { margin-bottom: 3.5rem; }
}

/* Hero responsive : éléments décoratifs */
@media (max-width: 1100px) {
  .hero-dots { right: 22px; }
  .hero-scroll { bottom: 22px; }
  .hero-blob { width: 360px; height: 360px; right: -15%; }
}

/* Tablette portrait / iPad standard (≤ 960px) — passage hamburger ici */
@media (max-width: 960px) {
  .two-cols { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .nettoyage-grid { grid-template-columns: 1fr; }
  .ref-summary { grid-template-columns: 1fr; }
  .ref-col + .ref-col { border-left: none; border-top: 1px solid var(--hairline); }
  .engagements { background-attachment: scroll; }

  /* Hamburger dès 960px pour éviter le débordement nav */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--hairline);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .primary-nav.open { max-height: 560px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: .8rem 0;
    gap: 0;
  }
  .primary-nav li { border-bottom: 1px solid var(--hairline); }
  .primary-nav li:last-child { border-bottom: none; }
  .primary-nav a { display: block; padding: 1rem 28px; }
  .cta-link { margin: .8rem 28px; text-align: center; }

  .logo img { width: 78px; margin: -6px 0; }
  .header-inner { min-height: 58px; }

  .page-banner { padding: 100px 0 26px; }

  .grid-services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .curage-grid,
  .qsn-grid,
  .maco-grid,
  .engagements-grid,
  .gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  .hero-content { max-width: 100%; padding-bottom: 80px; }
  .hero-title { font-size: clamp(2.1rem, 6vw, 3.4rem); }
  .hero-stats li { padding: 0 1.5rem; }
  .hero-stats strong { font-size: clamp(1.5rem, 4vw, 2rem); }
  .hero-marquee-top { padding: 11px 0; }
  .hero-marquee-track { font-size: .72rem; letter-spacing: .22em; }
  .hero-marquee-track > * { margin-right: 2rem; }
  .hero-dots { display: none; }
  .hero-blob { width: 280px; height: 280px; opacity: .8; }
}

/* Mobile large & landscape (≤ 720px) */
@media (max-width: 720px) {
  :root { --section-pad: 70px; }
  section { padding: var(--section-pad) 0; }
  .page-banner { padding: 90px 0 22px; }
  .page-banner h1 { font-size: 1.5rem; }
  .banner-lead { font-size: .92rem; }
  .section-head { margin-bottom: 2.8rem; }

  h1 { letter-spacing: -.028em; }
  h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .section-lead { font-size: 1rem; }

  .container { padding: 0 22px; }
  .logo img { width: 68px; margin: -4px 0; }
  .header-inner { min-height: 54px; }

  .hero { min-height: 92vh; align-items: flex-end; }
  .hero-content {
    padding-top: 30px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
    line-height: 1.08;
    margin-bottom: 1rem;
  }
  .hero-content .lead {
    font-size: .96rem;
    margin-bottom: 1.4rem;
  }
  .hero-marquee-top { top: 70px; padding: 9px 0; }
  .hero-marquee-track { font-size: .66rem; letter-spacing: .18em; }
  .hero-marquee-track > * { margin-right: 1.5rem; }
  .hero-marquee-track i { font-size: .6rem; }
  .hero-scroll { display: none; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    margin-bottom: 1.8rem;
  }
  .hero-actions .btn { width: 100%; padding: .9rem 1.5rem; font-size: .92rem; }

  /* Stats : 3 colonnes compactes au lieu de stack vertical */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 1.2rem;
  }
  .hero-stats li {
    padding: 0 .6rem;
    border-left: 1px solid rgba(255, 255, 255, .15);
    text-align: left;
  }
  .hero-stats li:first-child { padding-left: 0; }
  .hero-stats strong {
    font-size: clamp(1.05rem, 4vw, 1.4rem);
    line-height: 1.05;
  }
  .hero-stats span {
    font-size: .58rem;
    letter-spacing: .08em;
    margin-top: .3rem;
  }

  .contact-form { padding: 1.6rem; }
  .contact-form .row { grid-template-columns: 1fr; gap: 1rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; padding-bottom: 1rem; }
  .contact-list .label { font-size: .68rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { font-size: .76rem; }

  .floating-cta { padding: 11px 18px; font-size: .82rem; bottom: 16px; right: 16px; }

  .sf-chantiers { grid-template-columns: 1fr; }
  .nettoyage-block { padding: 1.6rem; }
  .nettoyage-prestations li { font-size: .82rem; padding: .55rem 1rem; }
  .maco-objectifs { padding: 2rem 1.2rem; }
  .obj-row { gap: .5rem; }
  .obj-row span { font-size: .82rem; padding: .55rem 1rem; }

  .ref-logo { width: 150px; height: 64px; padding: 0 .8rem; }
  .ref-track { gap: 2.5rem; animation-duration: 38s; }

  .qsn-card { padding: 1.8rem 1.4rem; }
  .qsn-num { font-size: 2rem; }
  .service-body { padding: 1.3rem 1.3rem 1.5rem; }
  .service-body h3 { font-size: 1.08rem; }
  .engagement-card { padding: 1.8rem 1.4rem; }
  .curage-item { padding: 1.6rem 1.3rem; }
  .maco-card { padding: 1.6rem 1.3rem; }

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

  .ref-col { padding: 1.8rem; }
  .ref-summary { border-radius: 10px; }
  .breadcrumb { font-size: .76rem; }
}

/* Petit mobile (≤ 480px) */
@media (max-width: 480px) {
  :root { --section-pad: 60px; }
  .container { padding: 0 18px; }
  .logo img { width: 60px; margin: -2px 0; }
  .header-inner { min-height: 50px; }

  h1 { letter-spacing: -.025em; }
  .eyebrow { font-size: .68rem; letter-spacing: .18em; }

  .page-banner { padding: 80px 0 20px; }
  .page-banner h1 { font-size: 1.35rem; }
  .banner-lead { font-size: .88rem; }

  .hero { min-height: 90vh; }
  .hero-content { padding-top: 24px; padding-bottom: 50px; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-content .lead { font-size: .92rem; margin-bottom: 1.2rem; }
  .hero-actions { margin-bottom: 1.4rem; }
  .hero-stats { padding-top: 1rem; }
  .hero-stats li { padding: 0 .5rem; }
  .hero-stats strong { font-size: 1.05rem; }
  .hero-stats span { font-size: .56rem; letter-spacing: .06em; }
  .hero-marquee-top { top: 60px; padding: 7px 0; }
  .hero-marquee-track { font-size: .58rem; }
  .hero-marquee-track > * { margin-right: 1.2rem; }
  .hero-blob { width: 200px; height: 200px; opacity: .65; }

  .floating-cta { padding: 10px 16px; font-size: .78rem; }

  .grid-services { gap: 1.2rem; }
  .qsn-grid { gap: 1.2rem; }

  .contact-form { padding: 1.3rem; }
  .ref-logo { width: 130px; height: 56px; }
  .ref-track { gap: 2rem; animation-duration: 34s; }

  .nettoyage-prestations { gap: .5rem; }
  .nettoyage-prestations li { font-size: .78rem; padding: .5rem .9rem; }
}

/* Très petit mobile (≤ 360px) */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .logo img { width: 54px; }
  h1, .hero-content h1 { font-size: 1.65rem; }
  .page-banner h1 { font-size: 1.25rem; }
  h2 { font-size: 1.55rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(3) { grid-column: 1 / -1; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: .4rem; border-left: none; padding-left: 0; }
}

/* Orientation paysage très basse (téléphones) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 120vh; }
  .hero-content { padding-top: 90px; padding-bottom: 30px; }
  .page-banner { padding: 80px 0 18px; }
}
