/*
Theme Name: Nonem Media Group
Theme URI: https://nonem-mediagroup.com
Author: Nonem Media Group
Description: Thème sur mesure pour Nonem Media Group - Agence de communication globale
Version: 1.3
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --noir:    #323231;
  --jaune:   #FFC832;
  --gris:    #ABABAB;
  --blanc:   #FFFFFF;
  --creme:   #F5F3EE;
  --creme-2: #EDEAE3;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 300;
  background: var(--noir);
  color: var(--blanc);
  overflow-x: hidden;
}

/* Bandeau plein sur la zone de la barre d'état iOS (encoche). Empêche le contenu
   de la page de transparaître au-dessus du menu sur Safari iOS. Même couleur que
   le menu scrollé → barre continue jusqu'au bord haut. Hauteur = inset safe-area
   (0px sur les écrans sans encoche → invisible). z-index au-dessus du header. */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top, 0px);
  background: #1c1c1b;
  z-index: 1100;
  pointer-events: none;
}

/* Grain overlay — texture premium sur toute la page */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 9998; pointer-events: none;
  opacity: 0.028;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Container global */
.container { max-width: 1280px; margin-left: auto; margin-right: auto; width: 100%; }

/* Ancrage sous le header fixe */
section[id] { scroll-margin-top: 90px; }

/* Focus visible — accessibilité clavier */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 3px;
  border-radius: 1px;
}

a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}
.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-bottom: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  width: 100%;
}
.section-title-wrap {
  margin-bottom: 3rem;
}
.section-title::after {
  content: '|';
  color: var(--jaune);
  animation: blink 1.1s step-end infinite;
  text-shadow: 0 0 18px rgba(255,200,50,0.65);
}
@keyframes blink { 50% { opacity: 0; } }

/* NAV */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: calc(1.5rem + env(safe-area-inset-top)) 4rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(18,18,18,0.97) 0%, rgba(18,18,18,0.85) 40%, rgba(18,18,18,0.5) 65%, rgba(18,18,18,0.2) 82%, rgba(18,18,18,0.05) 93%, transparent 100%);
  transition: padding 0.4s;
}
/* Fond du header scrollé sur ::before : un backdrop-filter posé directement
   sur #header en ferait le containing block du menu mobile (position:fixed),
   qui se retrouverait confiné dans la barre au lieu de couvrir l'écran. */
#header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: #1c1c1b; /* opaque : le contenu du hero ne transparaît plus derrière le menu scrollé (bug Safari iOS, barre d'adresse en bas) */
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255,200,50,0.15);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
#header.scrolled { padding: calc(1rem + env(safe-area-inset-top)) 4rem 1rem; }
#header.scrolled::before { opacity: 1; }
.logo-text {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 0.4em;
}
.logo-text .bar {
  display: inline-block; width: 3px; height: 1.3em;
  background: var(--jaune); border-radius: 2px;
  box-shadow: 0 0 10px rgba(255,200,50,0.5), 0 0 24px rgba(255,200,50,0.2);
}
nav ul { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
nav ul li a {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600;
  font-size: 0.85rem; text-transform: lowercase; letter-spacing: 0.08em;
  color: var(--gris); transition: color 0.3s; position: relative;
}
nav ul li a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--jaune); transition: width 0.3s;
}
nav ul li a:hover, nav ul li a.active { color: var(--blanc); }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
nav ul li.cta a {
  color: var(--jaune); border: 1px solid var(--jaune);
  padding: 0.5em 1.2em; border-radius: 2px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 14px rgba(255,200,50,0.1);
}
nav ul li.cta a:hover { background: var(--jaune); color: var(--noir); box-shadow: 0 0 22px rgba(255,200,50,0.25); }
nav ul li.cta a::after { display: none; }

/* Burger — masqué sur desktop, visible sous 900px */
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 0.5rem; z-index: 999;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--blanc);
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  /* Panel — toujours positionné, masqué via opacity/visibility pour permettre la transition */
  nav {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; inset: 0; background: var(--noir); z-index: 998; gap: 2rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.4s cubic-bezier(0.16,1,0.3,1),
      transform 0.4s cubic-bezier(0.16,1,0.3,1),
      visibility 0s linear 0.4s;
  }
  nav.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 0.4s cubic-bezier(0.16,1,0.3,1),
      transform 0.4s cubic-bezier(0.16,1,0.3,1),
      visibility 0s linear 0s;
  }
  nav ul { flex-direction: column; align-items: center; gap: 2rem; }
  /* Liens — fade + slide avec stagger à l'ouverture */
  nav ul li {
    opacity: 0; transform: translateY(14px);
    transition:
      opacity 0.35s cubic-bezier(0.16,1,0.3,1),
      transform 0.35s cubic-bezier(0.16,1,0.3,1);
  }
  nav.open ul li { opacity: 1; transform: translateY(0); }
  nav.open ul li:nth-child(1) { transition-delay: 0.08s; }
  nav.open ul li:nth-child(2) { transition-delay: 0.14s; }
  nav.open ul li:nth-child(3) { transition-delay: 0.20s; }
  nav.open ul li:nth-child(4) { transition-delay: 0.26s; }
  nav.open ul li:nth-child(5) { transition-delay: 0.32s; }
  nav.open ul li:nth-child(6) { transition-delay: 0.38s; }
  nav ul li a { font-size: 1.4rem; color: var(--blanc); }
  nav ul li.cta a { font-size: 1.4rem; }
  .burger { display: flex; }
}

/* HERO */
#hero {
  min-height: 110vh; min-height: 110svh;
  position: relative; overflow: hidden;
  clip-path: inset(0); /* containment absolu : Safari ignore overflow:hidden sur les SVG sans cela */
  margin-bottom: 0;
  z-index: 1;
  background: #141413;
  display: flex; align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.hero-left {
  position: relative; z-index: 3;
  max-width: 720px;
  padding: 2rem 3rem 2rem 4rem;
  margin-top: -5rem;
}
.hero-tag {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--jaune); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-tag::before, .hero-tag::after { content: ''; display: block; width: 40px; height: 1px; background: var(--jaune); }
.hero-headline {
  font-family: 'Raleway', sans-serif; font-weight: 900; text-transform: lowercase;
  font-size: clamp(3.2rem, 5.8vw, 6rem); line-height: 0.97; margin-bottom: 1.5rem; color: var(--blanc);
  letter-spacing: -0.03em;
}
.hero-headline em { font-style: normal; color: var(--jaune); }
.hero-sub { font-size: 1rem; font-weight: 300; color: var(--gris); max-width: 420px; line-height: 1.7; margin-bottom: 2rem; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--noir); background: var(--jaune); padding: 1rem 2rem;
  width: fit-content;
}
.hero-collage { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-collage-item { position: absolute; overflow: hidden !important; box-shadow: 0 0 0 5px #1c1c1b; }
.hero-collage-item img, .hero-collage-item video {
  display: block !important; width: 100% !important; height: 100% !important;
  object-fit: cover !important; object-position: center !important;
}
/* Positions C2 : vidéo verticale droite, photos en arc */
.hero-collage-aquarium { width: 454px; height: 454px; border-radius: 50%; top: 253px; left: 560px; z-index: 1; }
.hero-collage-gite     { width: 397px; height: 535px; border-radius: 50% 50% 50% 8%; top: 155px; left: 1009px; box-shadow: none; z-index: 2; }
.hero-collage-pizza    { width: 354px; height: 343px; border-radius: 8% 50% 50% 50%; top: 494px; left: 899px; z-index: 2; }
.hero-collage-pain     { width: 198px; height: 198px; border-radius: 50%; top: 627px; left: 629px; box-shadow: 0 0 0 5px #1c1c1b, 0 0 0 8px #FFC832, 0 0 0 11px #1c1c1b; z-index: 3; }
.hero-collage-video    { width: 299px; height: 529px; top: 161px; border-radius: 18px; left: 1354px; z-index: 2; background: #1c1c1b; }
.hero-collage-video video { background: transparent; }

/* Icône play vidéo */
.hero-collage-video::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-left: 16px solid #FFC832; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  transform: translate(-40%, -50%); z-index: 1; pointer-events: none;
}


/* Points décoratifs jaunes */
.hero-dot {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 3;
}
.hero-dot-1 { width: 14px; height: 14px; background: #FFC832; opacity: 0.5; top: 462px; left: 558px; }
.hero-dot-2 { width: 8px;  height: 8px;  background: #FFC832; opacity: 0.35; top: 642px; left: 1190px; }
.hero-dot-3 { width: 6px;  height: 6px;  background: #FFC832; opacity: 0.3; top: 210px; left: 1150px; }
.hero-rings {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  overflow: hidden; /* Safari: SVG overflow n'est pas hidden par défaut sans cette déclaration CSS */
}
.hero-rings .ring {
  fill: none; stroke-linecap: round;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
  animation: hero-ring-draw 2s cubic-bezier(0.16,1,0.3,1) var(--delay) forwards;
}
.hero-rings .ring-yellow { stroke: #FFC832; stroke-width: 2.5; }
.hero-rings .ring-white { stroke: #ffffff; stroke-width: 2; opacity: 0.28; }
.hero-rings .ring-yellow:nth-of-type(1) { opacity: 0.65; }
.hero-rings .ring-yellow:nth-of-type(3) { opacity: 0.5; }
.hero-rings .ring-yellow:nth-of-type(5) { opacity: 0.38; }
@keyframes hero-ring-draw  { to { stroke-dashoffset: 0; } }
/* Tracé des anneaux concentriques #agence / #realisations (déclenchés par IntersectionObserver) */
@keyframes ring-group-draw { to { stroke-dashoffset: 0; opacity: 1; } }
/* ── Hero responsive : base commune ── */
@media (max-width: 1099px) {
  #hero { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center; }
  .hero-tag { justify-content: center; }
  .hero-left { transform: none !important; }
}

/* ── Hero mobile (≤768px) ── */
/* Container proportionné sur la bounding box desktop du collage (840×582 → ratio 140/97).
   Les % reproduisent exactement la disposition C2 à l'intérieur. */
@media (max-width: 768px) {
  #hero {
    min-height: auto !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important; padding: calc(110px + env(safe-area-inset-top)) 1.5rem 3rem !important;
  }
  .hero-left {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; width: 100%; max-width: 100%; padding: 0;
    margin-top: 0 !important;
  }
  #hero .hero-collage {
    position: relative !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    inset: unset !important;
    width: min(100%, 440px) !important; max-width: 100% !important;
    aspect-ratio: 140/97 !important; height: auto !important;
    margin: 2rem auto 15px !important;
    z-index: 2 !important; pointer-events: none; overflow: visible !important;
  }
  /* Positions en % de la bounding box 840×582 du collage desktop */
  .hero-collage-aquarium {
    width: 47%; aspect-ratio: 1; height: auto;
    top: 14.6%; bottom: auto; left: -5%; right: auto;
    border-radius: 50%; z-index: 1;
  }
  .hero-collage-gite {
    width: 41%; aspect-ratio: 345/465; height: auto;
    top: 0%; bottom: auto; left: 41.4%; right: auto;
    border-radius: 50% 50% 50% 8%; z-index: 2; box-shadow: none;
  }
  .hero-collage-pizza {
    width: 36.7%; aspect-ratio: 308/298; height: auto;
    top: 50.7%; bottom: auto; left: 30.1%; right: auto;
    transform: none;
    border-radius: 8% 50% 50% 50%; z-index: 2;
  }
  .hero-collage-pain {
    width: 20.5%; aspect-ratio: 1; height: auto;
    top: 70.4%; bottom: auto; left: 2.1%; right: auto;
    border-radius: 50%; z-index: 3;
  }
  .hero-collage-video {
    width: 31%; aspect-ratio: 260/460; height: auto;
    top: 0.9%; bottom: auto; left: 74%; right: auto;
    border-radius: 14px; z-index: 2;
  }
}

/* ── Hero tablette (769–1099px) ── */
@media (min-width: 769px) and (max-width: 1099px) {
  #hero {
    min-height: auto !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important; padding: calc(130px + env(safe-area-inset-top)) 2rem 3rem !important;
  }
  .hero-left {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; width: 100%; max-width: 100%; padding: 0;
    margin-top: 0 !important;
  }
  #hero .hero-collage {
    position: relative !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    inset: unset !important;
    width: min(100%, 680px) !important; max-width: 100% !important;
    aspect-ratio: 140/97 !important; height: auto !important;
    margin: 2.5rem auto 15px !important;
    z-index: 2 !important; pointer-events: none; overflow: visible !important;
  }
  .hero-collage-aquarium {
    width: 47%; aspect-ratio: 1; height: auto;
    top: 14.6%; bottom: auto; left: -5%; right: auto;
    border-radius: 50%; z-index: 1;
  }
  .hero-collage-gite {
    width: 41%; aspect-ratio: 345/465; height: auto;
    top: 0%; bottom: auto; left: 41.4%; right: auto;
    border-radius: 50% 50% 50% 8%; z-index: 2; box-shadow: none;
  }
  .hero-collage-pizza {
    width: 36.7%; aspect-ratio: 308/298; height: auto;
    top: 50.7%; bottom: auto; left: 30.1%; right: auto;
    transform: none;
    border-radius: 8% 50% 50% 50%; z-index: 2;
  }
  .hero-collage-pain {
    width: 20.5%; aspect-ratio: 1; height: auto;
    top: 70.4%; bottom: auto; left: 2.1%; right: auto;
    border-radius: 50%; z-index: 3;
  }
  .hero-collage-video {
    width: 31%; aspect-ratio: 260/460; height: auto;
    top: 0.9%; bottom: auto; left: 74%; right: auto;
    border-radius: 14px; z-index: 2;
  }
}

/* AGENCE */
#agence {
  background: var(--creme); padding: 7rem 4rem;
  position: relative; overflow: hidden;
  isolation: isolate; /* crée un stacking context : garantit que overflow:hidden clip les SVG avec transform en Safari */
}
#agence .section-title { color: var(--noir); border-bottom-color: rgba(50,50,49,0.12); }
#agence .section-title::after { color: var(--jaune); }
.agence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width: 1280px; margin: 0 auto; }
.agence-text p { font-size: 1rem; line-height: 1.8; color: rgba(50,50,49,0.72); margin-bottom: 1.2rem; }
.agence-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.stat-item {
  border-top: 1px solid rgba(50,50,49,0.15); padding-top: 1.5rem;
  position: relative;
}
.stat-item::before {
  content: '';
  position: absolute; top: -1px; left: 0;
  width: 0; height: 2px; background: var(--jaune);
  transition: width 0.7s cubic-bezier(0.16,1,0.3,1) 0.15s;
}
.stat-item.visible::before { width: 28px; }
.stat-number {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: 2.8rem; color: var(--jaune); line-height: 1;
  filter: brightness(0.72);
  font-variant-numeric: tabular-nums;
}
/* #agence — fond clair : badge plein jaune, --noir sur --jaune ≥ 7:1 ✓
   inline-flex + height explicite : contourne le bug Safari sur min-height.
   justify-content:center centre le span sur l'axe principal de façon
   explicite (vs inline-grid place-items:center dont le track auto-sizing
   non-stretch peut créer un décalage sur un seul char comme "5").
   <sup> en position:absolute le sort du flux → même structure pour tous
   les badges qu'il y ait un exposant ou non. */
#agence .stat-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jaune);
  color: var(--noir);
  filter: none;
  height: 1.5em;
  padding: 0 0.5em;
  border-radius: 6px;
  line-height: 1;
  position: relative;
}
#agence .stat-number span {
  line-height: 1;
}
#agence .stat-number sup {
  position: absolute;
  top: 0.1em;
  right: 0.1em;
  font-size: 0.42em;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--noir); margin-top: 0.4rem;
  opacity: 0.75;
}
.agence-visual {
  position: relative; aspect-ratio: 4/5;
  background: linear-gradient(145deg, #c5c1b8 0%, #b5b1a8 55%, #a8a49b 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(50,50,49,0.12);
}
.agence-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(50,50,49,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none; z-index: 1;
}
.agence-visual::after {
  content: ''; position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 55%; height: 55%; border: 2px solid var(--jaune); z-index: 0;
}
.agence-visual-text {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: 5rem; color: rgba(50,50,49,0.07);
  -webkit-text-stroke: 1px rgba(50,50,49,0.30);
  text-align: center; line-height: 1; text-transform: lowercase;
  position: relative; z-index: 2;
}

/* SAVOIR-FAIRE */
#savoir-faire { padding: 7rem 4rem; background: var(--noir); position: relative; overflow: hidden; }
.services-container { max-width: 1280px; margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.service-card {
  background: #3a3a39;
  padding: 2.5rem 1.8rem;
  position: relative; overflow: hidden; cursor: default;
  transition: background 0.35s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 14px 34px -16px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.06);
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px; background: var(--jaune);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
              background 0.35s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover::before { transform: scaleX(1); background: var(--noir); }
.service-card:hover {
  background: var(--jaune);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 20px 60px -18px rgba(0,0,0,0.55);
}
.service-icon {
  width: 28px; height: 28px; margin-bottom: 1.5rem; display: block;
  color: var(--jaune);
  transition: color 0.35s cubic-bezier(0.16,1,0.3,1),
              filter 0.35s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-icon { color: var(--noir); filter: none; }
.service-name {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: 1.15rem; text-transform: lowercase;
  line-height: 1.1; margin-bottom: 0.8rem; color: var(--blanc);
  transition: color 0.35s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-name { color: var(--noir); }
.service-desc {
  font-size: 0.82rem; line-height: 1.6; color: var(--gris);
  transition: color 0.35s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-desc { color: rgba(50,50,49,0.75); }

/* RÉALISATIONS */
#realisations { padding: 7rem 4rem; background: var(--creme); position: relative; overflow: hidden; }
#realisations .section-title { color: var(--noir); border-bottom-color: rgba(50,50,49,0.12); }
#realisations .section-title::after { color: var(--jaune); }
.real-container { max-width: 1280px; margin: 0 auto; }
/* CARROUSEL */
.realisations-carousel { position: relative; }
.realisations-track-wrap { width: 100%; }
.realisations-grid {
  position: relative; /* offsetParent pour les items → calculs scrollLeft corrects */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  transition: opacity 0.25s ease;
}
.realisations-grid.switching { opacity: 0; }
/* display:contents rend <a> transparent au grid/flex — clicks gérés par délégation JS (bug Safari display:contents) */
.realisations-grid > a { display: contents; text-decoration: none; color: inherit; }
.carousel-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 2rem;
}
.carousel-btn {
  background: var(--jaune); color: var(--noir); border: none;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-weight: 900; transition: background 0.2s, transform 0.2s;
}
.carousel-btn:hover { background: #e6b800; transform: scale(1.08); }
.carousel-btn:disabled { background: rgba(0,0,0,0.1); color: rgba(0,0,0,0.25); cursor: default; transform: none; }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,0.15); cursor: pointer;
  border: none; padding: 0; transition: background 0.3s;
}
.carousel-dot.active { background: var(--jaune); width: 24px; border-radius: 4px; }
/* Dots desktop / mobile — masquage croisé */
.carousel-dot--desktop { display: flex; }
.carousel-dot--mobile  { display: none; }
.carousel-pause {
  width: 40px; height: 40px;
  background: transparent; color: rgba(0,0,0,0.55);
  border: 1px solid rgba(0,0,0,0.22);
}
.carousel-pause:hover { background: rgba(0,0,0,0.07); transform: none; }
.carousel-pause svg { display: block; }
.carousel-pause .icon-play { display: none; }
.carousel-pause.paused .icon-pause { display: none; }
.carousel-pause.paused .icon-play { display: block; }
.realisation-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: #1a1a19;
}
.realisation-item::after {
  content: '';
  position: absolute; inset: 0; z-index: 4;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
  pointer-events: none;
}
.realisation-item:hover::after {
  border-color: rgba(255,200,50,0.28);
}
/* Barre navigateur factice — 3 dots macOS + champ URL en CSS pur */
.realisation-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 28px; z-index: 5; pointer-events: none;
  background-color: #1c1c1b;
  background-image:
    radial-gradient(circle 4px at center, #ff5f57 100%, transparent 0),
    radial-gradient(circle 4px at center, #febc2e 100%, transparent 0),
    radial-gradient(circle 4px at center, #28c840 100%, transparent 0),
    linear-gradient(#252524 0%, #252524 100%);
  background-repeat: no-repeat;
  background-size: 8px 8px, 8px 8px, 8px 8px, calc(100% - 68px) 14px;
  background-position: 10px 50%, 23px 50%, 36px 50%, 52px 50%;
  border-bottom: 1px solid rgba(255,200,50,0.10);
}
.realisation-item img {
  position: absolute; top: 28px; left: 0; right: 0; bottom: 0;
  width: 100%; height: calc(100% - 28px);
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s ease;
  filter: grayscale(15%) brightness(0.9);
  display: block;
}
.realisation-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(1);
}
.realisation-item.no-browser-bar::before { display: none; }
.realisation-item.no-browser-bar img { top: 0; height: 100%; }
.realisation-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(to top,
    rgba(30,30,28,0.98) 0%,
    rgba(30,30,28,0.98) 30%,
    rgba(30,30,28,0.45) 44%,
    rgba(30,30,28,0.08) 57%,
    transparent 66%
  );
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem 2.5rem;
  transition: background 0.5s ease;
}
.realisation-item:hover .realisation-overlay {
  background: linear-gradient(to top,
    rgba(30,30,28,0.98) 0%,
    rgba(30,30,28,0.98) 30%,
    rgba(30,30,28,0.55) 48%,
    rgba(30,30,28,0.12) 62%,
    transparent 72%
  );
}
.realisation-cat {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--jaune);
  margin-bottom: 0.5rem;
  transform: translateY(6px); opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.realisation-item:hover .realisation-cat {
  transform: translateY(0); opacity: 1;
}
.realisation-title {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  text-transform: lowercase; color: var(--blanc);
  line-height: 1.1;
  transform: translateY(8px);
  transition: transform 0.4s ease 0.05s;
}
.realisation-item:hover .realisation-title {
  transform: translateY(0);
}
/* Staggered animation delays — service cards */
.service-card:nth-child(1) { --delay: 0s; }
.service-card:nth-child(2) { --delay: 0.09s; }
.service-card:nth-child(3) { --delay: 0.18s; }
.service-card:nth-child(4) { --delay: 0.27s; }
.service-card:nth-child(5) { --delay: 0.36s; }

/* Contact details staggered */
.contact-detail:nth-child(2) { --delay: 0s; }
.contact-detail:nth-child(3) { --delay: 0.1s; }
.contact-detail:nth-child(4) { --delay: 0.2s; }
.contact-detail:nth-child(5) { --delay: 0.3s; }

/* AVIS CLIENTS */
#avis { background: var(--noir); padding: 7rem 4rem; position: relative; overflow: hidden; }
#avis .section-title { color: var(--blanc); border-bottom-color: rgba(255,255,255,0.08); }
#avis .section-title::after { color: var(--jaune); }
.avis-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 1280px; margin: 0 auto;
}
.avis-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.avis-card:hover {
  background: rgba(255,200,50,0.05); border-color: rgba(255,200,50,0.2);
}
.avis-stars { color: var(--jaune); font-size: 1.1rem; letter-spacing: 0.1em; }
.avis-texte {
  font-size: 0.97rem; line-height: 1.75; color: rgba(255,255,255,0.8);
  font-style: italic; margin: 0; flex: 1;
}
.avis-auteur {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.07);
}
.avis-auteur::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--jaune);
  flex-shrink: 0;
}
.avis-nom {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blanc);
}
.avis-source { font-size: 0.78rem; color: var(--gris); margin-left: auto; }

/* ASSISTANCE */
#assistance { background: var(--jaune); padding: 5rem 4rem; position: relative; overflow: hidden; }
.assistance-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
}
.assistance-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem); color: var(--noir); margin-bottom: 1rem;
}
.assistance-text h2::after { color: rgba(50,50,49,0.3); }
.assistance-text p { font-size: 0.95rem; color: rgba(50,50,49,0.7); max-width: 460px; line-height: 1.7; }
.assistance-cta {
  margin-top: 2rem;
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blanc); background: var(--noir);
  padding: 1.2rem 2.5rem; border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 4px 20px rgba(50,50,49,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
}
.assistance-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(50,50,49,0.45), inset 0 1px 0 rgba(255,255,255,0.07);
}
.assistance-cta:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.carousel-btn:active { transform: scale(0.92) !important; }

/* ── ICÔNE SUPPORT + PULSE ──────────────────────────────────── */
.assistance-icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.assistance-icon-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
}

@keyframes assist-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.assistance-icon-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px solid rgba(50,50,49,0.32);
  animation: assist-pulse 2.2s cubic-bezier(0.16,1,0.3,1) infinite;
  pointer-events: none;
}

.assistance-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(50,50,49,0.22);
}

.assistance-icon-label {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(50,50,49,0.45);
  text-align: center;
}

/* ── FORMES DÉCORATIVES SUPPLÉMENTAIRES ─────────────────────── */
.assistance-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.assistance-deco--ring-sm {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(50,50,49,0.07);
  top: calc(50% - 140px);
  left: calc(50% - 140px);
}

.assistance-deco--ring-lg {
  width: 580px;
  height: 580px;
  border-radius: 50%;
  border: 1px solid rgba(50,50,49,0.04);
  top: calc(50% - 290px);
  left: calc(50% - 290px);
}

.assistance-deco--dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(50,50,49,0.18);
}

.assistance-deco--dot-1 { top: 24%; right: 16%; }
.assistance-deco--dot-2 { bottom: 26%; left: 13%; }

.assistance-deco--sq {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(50,50,49,0.18);
  transform: rotate(45deg);
  top: 34%;
  left: 22%;
}

/* ── STATS RAPIDES ───────────────────────────────────────────── */
.assistance-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.assistance-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.6rem 1.5rem;
  background: rgba(50,50,49,0.08);
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.3s cubic-bezier(0.16,1,0.3,1);
}
@media (hover: hover) and (pointer: fine) {
  .assistance-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(50,50,49,0.14);
  }
}

.assistance-stat-card + .assistance-stat-card {
  border-left: none;
}

.assistance-stat-value {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--noir);
  line-height: 1;
  letter-spacing: -0.04em;
}

.assistance-stat-label {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(50,50,49,0.65);
}

/* SÉPARATEUR AVIS → CONTACT */
.avis-contact-sep {
  background: var(--noir);
  padding: 0 4rem;
}
.avis-contact-sep__line {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
  height: 2px;
  background: var(--jaune);
  box-shadow: 0 0 8px rgba(255,200,50,0.5);
}

/* CONTACT */
#contact { background: var(--noir); padding: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 80vh; }
.contact-info {
  background: #2a2a29; padding: 6rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.contact-info::after {
  content: 'contact|';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-family: 'Raleway', sans-serif; font-weight: 900; font-size: 5.5rem;
  text-transform: lowercase; color: transparent;
  -webkit-text-stroke: 1px rgba(255,200,50,0.05);
  pointer-events: none; line-height: 1; white-space: nowrap;
}
/* Supprimer la ligne blanche sous le titre contact — trop proche des icônes */
#contact .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2.5rem;
  width: auto;
}
.contact-detail { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-detail-icon {
  width: 44px; height: 44px; border: 1px solid rgba(255,200,50,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; color: var(--jaune);
  font-style: normal; line-height: 1; font-family: inherit;
  letter-spacing: 0; text-transform: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-detail:hover .contact-detail-icon {
  border-color: rgba(255,200,50,0.65);
  box-shadow: 0 0 16px rgba(255,200,50,0.14);
}
.contact-detail-content strong {
  display: block; font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gris); margin-bottom: 0.3rem;
}
.contact-detail-content span, .contact-detail-content a {
  font-size: 0.95rem; color: var(--blanc);
}
.contact-form-wrap {
  padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: center;
}
.contact-sub {
  font-weight: 300; font-size: 1rem; color: var(--gris);
  text-transform: lowercase; letter-spacing: 0.05em; margin-bottom: 2.5rem;
}
.contact-form-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 300; font-size: 1.1rem; color: var(--gris);
  margin-bottom: 2.5rem; text-transform: lowercase; letter-spacing: 0.05em;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--gris); margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%; background: #3a3a39; border: 1px solid rgba(255,255,255,0.06);
  color: var(--blanc); font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 300; font-size: 0.95rem; padding: 0.9rem 1.2rem;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--jaune);
  background: #3e3e3d;
  box-shadow: 0 0 0 3px rgba(255,200,50,0.07), inset 0 1px 4px rgba(0,0,0,0.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  width: 100%; background: var(--jaune); color: var(--noir);
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em;
  padding: 1.2rem; border: none; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s; margin-top: 0.5rem;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,200,50,0.35); }

/* ══════════════════════════════════════════════
   WPFORMS — CSS plugin désactivé, on gère tout
══════════════════════════════════════════════ */

/* Conteneur général */
.contact-form-wrap .wpforms-container,
.contact-form-wrap .wpforms-form { width: 100%; }
.contact-form-wrap .wpforms-field { margin-bottom: 1rem !important; padding: 0 !important; }

/* Labels */
.contact-form-wrap .wpforms-field-label {
  font-family: 'Barlow Semi Condensed', sans-serif !important;
  font-size: 0.72rem !important; font-weight: 600 !important;
  text-transform: uppercase !important; letter-spacing: 0.15em !important;
  color: var(--gris) !important; margin-bottom: 0.4rem !important;
  display: block !important;
}

/* Fieldset Nom (Prénom + Nom) — retirer la bordure navigateur */
.contact-form-wrap fieldset {
  border: 0 !important; padding: 0 !important;
  margin: 0 !important; min-width: 0 !important;
}
.contact-form-wrap fieldset legend { display: none !important; }

/* Prénom + Nom côte à côte */
.contact-form-wrap .wpforms-field-name .wpforms-field-row {
  display: flex !important; gap: 1rem !important;
}
.contact-form-wrap .wpforms-field-name .wpforms-name-first,
.contact-form-wrap .wpforms-field-name .wpforms-name-last { flex: 1 !important; }
/* Masquer le label groupé "Nom" ; afficher Prénom / Nom au-dessus de leur champ */
.contact-form-wrap .wpforms-field-name .wpforms-field-label,
.contact-form-wrap .wpforms-field-name legend { display: none !important; }
.contact-form-wrap .wpforms-field-row-block { display: flex !important; flex-direction: column !important; }
.contact-form-wrap .wpforms-field-sublabel {
  order: -1 !important;
  display: block !important;
  font-family: 'Barlow Semi Condensed', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: rgba(255,255,255,0.65) !important;
  margin: 0 0 0.4rem !important;
}

/* Tous les champs */
.contact-form-wrap .wpforms-field input,
.contact-form-wrap .wpforms-field textarea,
.contact-form-wrap .wpforms-field select {
  width: 100% !important; background: #3a3a39 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  color: var(--blanc) !important;
  font-family: 'Barlow Semi Condensed', sans-serif !important;
  font-weight: 300 !important; font-size: 0.95rem !important;
  padding: 0.9rem 1.2rem !important; border-radius: 0 !important;
  outline: none !important; box-shadow: none !important;
  box-sizing: border-box !important;
}
.contact-form-wrap .wpforms-field input::placeholder,
.contact-form-wrap .wpforms-field textarea::placeholder { color: rgba(255,255,255,0.55) !important; }
.contact-form-wrap .wpforms-field input:focus,
.contact-form-wrap .wpforms-field textarea:focus { border-color: var(--jaune) !important; }
.contact-form-wrap .wpforms-field textarea { min-height: 130px !important; resize: vertical !important; }

/* Bouton ENVOYER */
.contact-form-wrap .wpforms-submit-container { margin-top: 0.5rem !important; padding: 0 !important; }
.contact-form-wrap .wpforms-submit,
.contact-form-wrap input[type="submit"],
.contact-form-wrap button[type="submit"] {
  width: 100% !important; background: var(--jaune) !important;
  color: var(--noir) !important; border: none !important;
  font-family: 'Barlow Semi Condensed', sans-serif !important;
  font-weight: 800 !important; font-size: 0.85rem !important;
  text-transform: uppercase !important; letter-spacing: 0.15em !important;
  padding: 1.2rem 0 !important; border-radius: 0 !important;
  cursor: pointer !important; box-sizing: border-box !important;
  text-align: center !important; display: block !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.contact-form-wrap .wpforms-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(255,200,50,0.35) !important;
}
.contact-form-wrap label.wpforms-error { color: #ff6b6b !important; font-size: 0.75rem !important; }

/* FOOTER */
#footer { background: #1a1a19; padding: 4rem 4rem 2rem; border-top: 1px solid rgba(255,200,50,0.1); }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 2rem;
  max-width: 1280px; margin: 0 auto 0 auto; padding-bottom: 3rem;
}
.footer-brand .tagline { font-size: 0.82rem; color: var(--gris); margin-top: 0.8rem; max-width: 200px; line-height: 1.5; }
.footer-nav h4 {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 800;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--jaune); margin-bottom: 1.2rem;
}
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 0.6rem; }
.footer-nav ul li a { font-size: 0.85rem; color: var(--gris); text-transform: lowercase; transition: color 0.3s; }
.footer-nav ul li a:hover { color: var(--blanc); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; max-width: 1280px; margin: 2rem auto 0;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem;
}
.footer-legal { font-size: 0.72rem; color: rgba(171,171,171,0.85); line-height: 1.7; }
.footer-copy { font-size: 0.72rem; color: rgba(171,171,171,0.75); }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE TABLETTE
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {
  #header { padding: calc(1.2rem + env(safe-area-inset-top)) 2rem 1.2rem; }
  #header.scrolled { padding: calc(0.9rem + env(safe-area-inset-top)) 2rem 0.9rem; }
  nav ul { gap: 1.6rem; }

  #agence, #savoir-faire, #realisations, #avis { padding: 5rem 2.5rem; }
  .avis-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  #assistance { padding: 4rem 2.5rem; }
  .avis-contact-sep { padding: 0 2.5rem; }
  /* Agence — texte pleine largeur, stats | visual côte à côte */
  #agence { padding: 4rem 2.5rem; }
  .agence-text { display: contents; }
  .agence-grid { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
  .agence-text > .section-title,
  .agence-text > p { grid-column: 1 / -1; }
  .agence-text > p { line-height: 1.45; }
  .agence-stats { grid-column: 1; margin-top: 0; gap: 0.8rem; }
  #agence .stat-number { font-size: 1.8rem; }
  #agence .stat-item { padding-top: 0.7rem; }
  .agence-visual { grid-column: 2; aspect-ratio: auto; align-self: stretch; }
  .agence-visual-text { font-size: clamp(2rem, 3.5vw, 2.8rem); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: 1 / -1; }

  /* Réalisations overlay tablette — texte toujours ancré en bas (pas de hover) */
  .realisation-cat  { transform: translateY(0); opacity: 1; }
  .realisation-title { transform: translateY(0); }

  .contact-info { padding: 4rem 2.5rem; }
  .contact-form-wrap { padding: 4rem 2.5rem; }
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  #header { padding: calc(1.2rem + env(safe-area-inset-top)) 1.5rem 1.2rem; }
  #header.scrolled { padding: calc(0.8rem + env(safe-area-inset-top)) 1.5rem 0.8rem; }

  /* Sections padding — padding 0 pour que les grilles soient bord à bord */
  #agence { padding: 4rem 1.5rem; }
  #savoir-faire { padding: 5rem 0; }
  #realisations { padding: 5rem 0; }
  #avis { padding: 5rem 1.5rem; }
  .avis-contact-sep { padding: 0 1.5rem; }
  .avis-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  /* Agence — texte pleine largeur, stats | visual côte à côte */
  .agence-text { display: contents; }
  .agence-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; align-items: stretch; }
  .agence-text > .section-title,
  .agence-text > p { grid-column: 1 / -1; }
  #agence .section-title { justify-content: flex-start; }
  .agence-text > p { text-align: left; line-height: 1.45; }
  .agence-stats { grid-column: 1; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 0; }
  .stat-item { text-align: left; }
  #agence .stat-number { font-size: 1.8rem; }
  #agence .stat-item { padding-top: 0.7rem; }
  .agence-visual { grid-column: 2; aspect-ratio: auto; align-self: stretch; }
  .agence-visual-text { font-size: clamp(1.2rem, 5vw, 1.8rem); }

  /* Savoir-faire — cartes compactes horizontales */
  .services-container { width: 100%; padding: 0; }
  .services-grid {
    grid-template-columns: 1fr;
    width: 100%; margin: 0;
    gap: 8px;
    padding: 0 1rem;
  }
  .service-card {
    display: grid;
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    padding: 12px 14px;
    text-align: left;
  }
  .service-card:last-child { grid-column: span 1; }
  .service-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 22px;
    height: 22px;
    margin-bottom: 0;
    margin-top: 3px;
  }
  .service-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.88rem;
    margin-bottom: 0;
  }
  .service-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.69rem;
    line-height: 1.4;
  }
  #savoir-faire .section-title { padding-left: 1.5rem; }

  /* Réalisations — carrousel peek (70 vw, scroll-snap center) */
  .real-container { width: 100%; padding: 0; }
  .realisations-carousel { padding: 0 6vw; }
  .realisations-track-wrap { overflow: visible; }
  .realisations-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    width: 100%;
    margin: 0;
  }
  .realisations-grid::-webkit-scrollbar { display: none; }
  .realisations-grid.switching { opacity: 1; }
  .realisation-item {
    flex: 0 0 72vw;
    scroll-snap-align: center;
    aspect-ratio: 16/9;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
                opacity 0.35s ease,
                box-shadow 0.35s ease;
    transform: scale(0.88);
    opacity: 0.45;
    box-shadow: none;
  }
  /* Espaceurs peek : carte 1 et dernière restent centrables */
  .realisation-item:first-child { margin-left: 12vw; }
  .realisation-item:last-child,
  .realisations-grid > a:last-child > .realisation-item { margin-right: 12vw; }
  /* Carte active */
  .realisation-item.is-active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.55);
  }
  /* Barre navigateur réduite pour petites cartes */
  .realisation-item::before {
    height: 20px;
    background-image:
      radial-gradient(circle 3px at center, #ff5f57 100%, transparent 0),
      radial-gradient(circle 3px at center, #febc2e 100%, transparent 0),
      radial-gradient(circle 3px at center, #28c840 100%, transparent 0),
      linear-gradient(#252524 0%, #252524 100%);
    background-size: 6px 6px, 6px 6px, 6px 6px, calc(100% - 46px) 10px;
    background-position: 8px 50%, 18px 50%, 28px 50%, 38px 50%;
    border-bottom: none;
  }
  .realisation-item img {
    top: 20px;
    height: calc(100% - 20px);
    object-position: top center;
  }
  .realisation-item.no-browser-bar img { top: 0; height: 100%; }
  /* Désactiver effets hover sur touch */
  .realisation-item:hover img { transform: none; filter: grayscale(15%) brightness(0.9); }
  .realisation-item:hover::after { border-color: transparent; }
  #realisations .section-title { justify-content: center; padding-left: 1.5rem; }
  /* Overlay et texte */
  .realisation-overlay {
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.8rem;
    justify-content: flex-end;
  }
  .realisation-cat {
    transform: translateY(0);
    opacity: 1;
    text-align: center;
    font-size: 0.55rem;
    margin-bottom: 0.25rem;
  }
  .realisation-title {
    transform: translateY(0);
    text-align: center;
    font-size: clamp(0.7rem, 2.8vw, 0.88rem);
  }
  /* Dots mobile — 1 par item, pill actif */
  .carousel-dot--desktop { display: none !important; }
  .carousel-dot--mobile  { display: flex; width: 5px; height: 5px; }
  .carousel-dot--mobile.active { background: var(--jaune); width: 14px; border-radius: 3px; }
  /* Flèches : marge écran + arrondis cercle */
  .carousel-nav { padding: 0 14px; }
  .carousel-btn { border-radius: 50%; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 4rem 1.5rem; }
  .contact-form-wrap { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 2rem; padding: 0 1.5rem 2rem; }
  #footer { padding: 3rem 1.5rem 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .footer-legal { text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: span 1; }
  .agence-stats { grid-template-columns: 1fr; } /* 1 col dans demi-colonne étroite */
}


/* ============================================================
   PAGE LÉGALE — POLITIQUE DE CONFIDENTIALITÉ
   ============================================================ */

/* Hero */
.legal-hero {
  position: relative; overflow: hidden;
  min-height: 38vh; padding: 9rem 4rem 5rem;
  display: flex; align-items: flex-end;
  background: linear-gradient(160deg, #272726 0%, #1f1f1e 60%, #191918 100%);
}
.legal-hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,200,50,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,200,50,0.024) 1px, transparent 1px);
  background-size: 56px 56px;
}
.legal-hero-inner {
  position: relative; z-index: 1;
  padding-left: 0; padding-right: 0;
}
.legal-breadcrumb {
  font-size: 0.75rem; font-weight: 600; text-transform: lowercase;
  letter-spacing: 0.12em; color: var(--gris); margin-bottom: 1.5rem;
}
.legal-breadcrumb a { color: var(--jaune); transition: opacity 0.2s; }
.legal-breadcrumb a:hover { opacity: 0.75; }
.legal-title {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem); text-transform: lowercase;
  letter-spacing: -0.03em; line-height: 0.95;
  color: var(--blanc); margin-bottom: 1.5rem;
}
.legal-title em { font-style: normal; color: var(--jaune); }
.legal-updated {
  font-size: 0.78rem; color: var(--gris); font-weight: 300;
  letter-spacing: 0.05em;
}

/* Layout deux colonnes */
.legal-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  padding: 5rem 4rem 6rem;
  align-items: start;
}

/* Sommaire latéral */
.legal-nav {
  position: sticky; top: 110px;
}
.legal-nav-label {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--jaune);
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,200,50,0.2);
}
.legal-nav ol {
  list-style: none; counter-reset: sommaire;
}
.legal-nav ol li {
  counter-increment: sommaire;
  margin-bottom: 0.5rem;
}
.legal-nav ol li a {
  font-size: 0.8rem; color: var(--gris); font-weight: 400;
  line-height: 1.4; display: block;
  padding: 0.25rem 0 0.25rem 0.8rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.legal-nav ol li a:hover {
  color: var(--blanc); border-left-color: var(--jaune);
}

/* Corps du document */
.legal-body { min-width: 0; }

.legal-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem); text-transform: lowercase;
  letter-spacing: -0.02em; color: var(--blanc);
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,200,50,0.18);
  display: flex; align-items: center; gap: 0.6em;
}
.legal-section h2::before {
  content: '';
  display: inline-block; width: 10px; height: 10px;
  background: var(--jaune); border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,200,50,0.45);
  flex-shrink: 0;
}
.legal-section h3 {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--jaune); margin: 2rem 0 0.75rem;
}
.legal-section p {
  font-size: 0.95rem; line-height: 1.8;
  color: rgba(255,255,255,0.72); margin-bottom: 1rem;
}
.legal-section p a {
  color: var(--jaune); border-bottom: 1px solid rgba(255,200,50,0.35);
  transition: border-color 0.2s;
}
.legal-section p a:hover { border-bottom-color: var(--jaune); }
.legal-section ul {
  margin: 0.5rem 0 1rem 0; padding: 0; list-style: none;
}
.legal-section ul li {
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
  padding: 0.35rem 0 0.35rem 1.4rem; line-height: 1.6;
  position: relative;
}
.legal-section ul li::before {
  content: ''; position: absolute; left: 0; top: 0.75rem;
  width: 6px; height: 1px; background: var(--jaune);
}
.legal-section ul li strong { color: rgba(255,255,255,0.88); }

/* Carte info */
.legal-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,200,50,0.12);
  border-left: 3px solid var(--jaune);
  padding: 2rem 2.5rem; margin: 1.5rem 0;
}
.legal-card dl { display: grid; grid-template-columns: 160px 1fr; gap: 0.6rem 1.5rem; }
.legal-card dl div { display: contents; }
.legal-card dt {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gris);
  display: flex; align-items: center;
}
.legal-card dd {
  font-size: 0.9rem; color: rgba(255,255,255,0.82);
  margin: 0; display: flex; align-items: center;
}
.legal-card dd a { color: var(--jaune); }
.legal-card p { font-size: 0.92rem; color: rgba(255,255,255,0.72); margin: 0; }

/* Tableau */
.legal-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.legal-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}
.legal-table thead tr {
  background: rgba(255,200,50,0.06);
  border-bottom: 1px solid rgba(255,200,50,0.2);
}
.legal-table th {
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--jaune); padding: 0.9rem 1.2rem; text-align: left;
}
.legal-table td {
  padding: 0.85rem 1.2rem; color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5; vertical-align: top;
}
.legal-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Grille droits */
.legal-rights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin: 1.5rem 0;
}
.legal-right-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 1.2rem; border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}
.legal-right-item:hover {
  border-color: rgba(255,200,50,0.2);
  background: rgba(255,200,50,0.03);
}
.legal-right-icon {
  display: block; font-size: 1.2rem; color: var(--jaune);
  margin-bottom: 0.6rem; line-height: 1;
}
.legal-right-item strong {
  display: block; font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blanc); margin-bottom: 0.5rem;
}
.legal-right-item p {
  font-size: 0.82rem; color: var(--gris); margin: 0;
  line-height: 1.55;
}

/* Bloc contact */
.legal-contact-block {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.75rem; margin: 1.5rem 0 2rem;
}
.legal-contact-btn {
  display: inline-flex; align-items: center;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; text-transform: lowercase; letter-spacing: 0.05em;
  color: var(--noir); background: var(--jaune);
  padding: 0.75rem 1.5rem; border-radius: 2px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(255,200,50,0.2);
}
.legal-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,200,50,0.35);
}
.legal-contact-or {
  font-size: 0.78rem; color: var(--gris); text-transform: lowercase;
}
.legal-contact-block address {
  font-style: normal; font-size: 0.9rem;
  color: rgba(255,255,255,0.65); line-height: 1.7;
}

/* Notice de mise à jour */
.legal-update-notice {
  background: rgba(255,200,50,0.05);
  border: 1px solid rgba(255,200,50,0.15);
  padding: 1.2rem 1.5rem; margin-top: 2rem; border-radius: 2px;
}
.legal-update-notice p {
  font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0;
}

/* Bouton retour */
.legal-back { margin-top: 3rem; }
.legal-back-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600;
  font-size: 0.82rem; text-transform: lowercase; letter-spacing: 0.08em;
  color: var(--gris); border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 1.2rem; border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.legal-back-btn:hover { color: var(--blanc); border-color: rgba(255,255,255,0.25); }

/* Responsive tablette */
@media (max-width: 1100px) {
  .legal-content { grid-template-columns: 180px 1fr; gap: 3rem; padding: 4rem 2.5rem 5rem; }
  .legal-rights-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .legal-hero { padding: 7rem 1.5rem 3rem; min-height: auto; }
  .legal-content { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem 4rem; }
  .legal-nav { position: static; margin-bottom: 1rem; }
  .legal-nav ol { display: none; } /* masqué sur mobile — navigation par scroll */
  .legal-nav-label { margin-bottom: 0; border-bottom: none; }
  .legal-rights-grid { grid-template-columns: 1fr; }
  .legal-card dl { grid-template-columns: 130px 1fr; }
  .legal-table th, .legal-table td { padding: 0.7rem 0.8rem; }
}

/* ============================================================
   ANIMATIONS HERO — ENTRÉE PAGE
   ============================================================ */

@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tag, sous-titre et CTA apparaissent en cascade */
.hero-tag {
  animation: hero-fadein 0.7s cubic-bezier(0.16,1,0.3,1) 0.08s both;
}
.hero-sub {
  animation: hero-fadein 0.7s cubic-bezier(0.16,1,0.3,1) 0.85s both;
}
.hero-cta {
  animation: hero-fadein 0.7s cubic-bezier(0.16,1,0.3,1) 1.05s both;
}

/* ── Révélation mot par mot ── */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  transition:
    opacity   0.65s cubic-bezier(0.16,1,0.3,1) var(--word-delay, 0ms),
    transform 0.65s cubic-bezier(0.16,1,0.3,1) var(--word-delay, 0ms);
}
.word-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CARTES SAVOIR-FAIRE — HOVER AMÉLIORÉ
   ============================================================ */

/* Ajout de transform dans la transition */
.service-card {
  transition:
    background 0.35s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.35s cubic-bezier(0.16,1,0.3,1),
    transform  0.38s cubic-bezier(0.16,1,0.3,1);
}

/* Élévation sur hover */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-5px);
  }
}

/* Icône — pop animé sur hover */
@keyframes icon-pop {
  0%   { transform: scale(1)    rotate(0deg); }
  38%  { transform: scale(1.28) rotate(11deg); }
  68%  { transform: scale(0.91) rotate(-5deg); }
  100% { transform: scale(1)    rotate(0deg); }
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-icon {
    animation: icon-pop 0.52s cubic-bezier(0.16,1,0.3,1) both;
  }
}

/* ============================================================
   RÉALISATIONS — CARROUSEL 3 PAR PAGE + HOVER
   ============================================================ */

/* Titre et catégorie toujours visibles en bas de chaque carte */
.realisation-cat {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease;
}
.realisation-item:hover .realisation-cat {
  opacity: 1;
  transform: none;
}

.realisation-title {
  opacity: 1;
  transform: none;
  transition: none;
}
.realisation-item:hover .realisation-title {
  transform: none;
  opacity: 1;
}

/* Overlay fixe — gradient permanent pour lisibilité du texte */
.realisation-overlay {
  background: linear-gradient(
    to top,
    rgba(20,20,19,0.94) 0%,
    rgba(20,20,19,0.80) 25%,
    rgba(20,20,19,0.22) 50%,
    transparent 66%
  );
}
.realisation-item:hover .realisation-overlay {
  background: linear-gradient(
    to top,
    rgba(20,20,19,0.97) 0%,
    rgba(20,20,19,0.85) 28%,
    rgba(20,20,19,0.28) 52%,
    transparent 68%
  );
}

/* Hover : élévation + bordure dorée */
.realisation-item {
  transition: transform 0.38s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.38s cubic-bezier(0.16,1,0.3,1);
}
@media (hover: hover) and (pointer: fine) {
  .realisation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px -8px rgba(0,0,0,0.55),
                0 0 0 1px rgba(255,200,50,0.45);
    z-index: 2;
  }
  /* Le ::after existant (border au hover) est remplacé par le box-shadow ci-dessus */
  .realisation-item:hover::after { border-color: transparent; }
}

/* ============================================================
   TILT 3D + PARALLAX SOURIS
   ============================================================ */

/* will-change activé par JS au mouseenter — déclaré ici pour les éléments
   de parallax qui sont animés souvent (hover de grande section) */
@media (hover: hover) and (pointer: fine) {
  .agence-visual-text {
    will-change: transform;
  }
}

/* Cercle décoratif injecté par JS dans #assistance */
.assistance-parallax-shape {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(50,50,49,0.09);
  /* Centrage via calc() — transform libre pour le parallax JS */
  top: calc(50% - 210px);
  left: calc(50% - 210px);
  pointer-events: none;
  will-change: transform;
}
.assistance-parallax-shape::after {
  content: '';
  position: absolute; inset: -55px;
  border-radius: 50%;
  border: 1px solid rgba(50,50,49,0.05);
}

/* ============================================================
   PARTENAIRES — section #agence
   ============================================================ */

/* ============================================================
   PARTENAIRES — BULLES FLOTTANTES
   ============================================================ */

.partenaires-block {
  background: var(--creme-2);
  padding: 2.75rem 0;
  border-top: 2px solid rgba(50,50,49,0.12);
}

.partenaires-eyebrow {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--noir);
  margin-bottom: 1.75rem;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.partenaires-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--jaune);
  flex-shrink: 0;
}

/* ---- MARQUEE WRAPPER — fondu bords gauche/droit ---- */
.partenaires-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

/* ---- TRACK ANIMÉ — deux sets côte à côte ---- */
.partenaires-track {
  display: flex;
  width: max-content;
  animation: partenaires-scroll 30s linear infinite;
  will-change: transform;
}

@keyframes partenaires-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause au survol — gérée en JS (voir marquee-hover dans main.js) pour éviter
   les faux :hover déclenchés par #header / .scroll-badge (position: fixed)
   qui overlappent visuellement le marquee et font fluctuer animation-play-state */

/* ---- SET — un exemplaire des 9 bulles ---- */
/* padding-right = gap → crée l'espace entre fin set1 et début set2,
   garantit que -50% = exactement un set (9×88 + 8×16 + 16 = 936px) */
.partenaires-set {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
}

/* ---- LIEN WRAPPER ---- */
/* display:contents supprime la zone cliquable sous Safari (bug WebKit connu).
   display:block + width:fit-content préserve le layout flex tout en maintenant
   une hit-area correcte sur tous les navigateurs. */
.partenaire-link {
  display: block;
  width: fit-content;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
}
.partenaire-item {
  pointer-events: auto;
}

/* ---- BULLE UNIFORME ---- */
.partenaire-item {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanc);
  box-shadow:
    inset 0 0 0 2px rgba(255,200,50,0.45),
    0 2px 8px -2px rgba(50,50,49,0.06);
  transition:
    scale      0.35s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.3s  cubic-bezier(0.16,1,0.3,1);
}

/* ---- LOGO ---- */
.partenaire-logo {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
  opacity: 0.72;
  mix-blend-mode: multiply;
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* ---- VARIANTE fond sombre — logos à texte blanc (ex: River Aqua) ---- */
.partenaire-item--dark {
  background: oklch(16% 0.018 230);
  box-shadow:
    inset 0 0 0 2px rgba(255,200,50,0.35),
    0 2px 8px -2px rgba(0,0,0,0.22);
}
.partenaire-item--dark .partenaire-logo {
  mix-blend-mode: normal;
  opacity: 0.88;
}

/* ---- HOVER individuel par-dessus la pause globale ---- */
@media (hover: hover) and (pointer: fine) {
  .partenaire-item:hover {
    scale: 1.08;
    box-shadow:
      inset 0 0 0 3px rgba(255,200,50,0.7),
      0 10px 28px -8px rgba(50,50,49,0.18),
      0 0 20px rgba(255,200,50,0.28);
  }
  .partenaire-item:hover .partenaire-logo { opacity: 1; }
  .partenaire-item--dark:hover {
    box-shadow:
      inset 0 0 0 3px rgba(255,200,50,0.7),
      0 10px 28px -8px rgba(0,0,0,0.32),
      0 0 20px rgba(255,200,50,0.28);
  }
  .partenaire-item--dark:hover .partenaire-logo { opacity: 1; }
}

/* ---- TABLETTE 769-1100px ---- */
@media (min-width: 769px) and (max-width: 1100px) {
  .partenaires-block { padding: 2.5rem 0; }
  .partenaires-eyebrow { padding: 0 1.75rem; }
  .partenaire-item { width: 76px; height: 76px; }
}

/* ---- MOBILE ≤ 768px ---- */
@media (max-width: 768px) {
  .partenaires-block { padding: 2.25rem 0; }
  .partenaires-eyebrow { padding: 0 1.25rem; }
  .partenaire-item { width: 68px; height: 68px; }
}

/* ============================================================
   #ASSISTANCE — COMPACT MOBILE + TABLET (≤899px)
   ============================================================ */
@media (max-width: 899px) {
  #assistance { padding: 1.5rem; }

  /* Grille 2 colonnes : icône 52px | texte */
  .assistance-inner {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
    row-gap: 0;
    align-items: start;
    text-align: left;
    margin-bottom: 0.75rem;
  }

  /* Icône placée en colonne 1 via order -1 */
  .assistance-icon-block {
    order: -1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
  }
  .assistance-text { order: 0; text-align: left; }

  /* Icône réduite à 52px */
  .assistance-icon-wrapper { width: 52px; height: 52px; }
  .assistance-icon-circle  { width: 52px; height: 52px; }
  .assistance-icon-circle svg { width: 22px; height: 22px; }

  /* Anneau pulse proportionnel : 52 × (18/88) ≈ 10.6px → -11px */
  .assistance-icon-ring { inset: -11px; }

  /* Label "support en ligne" masqué */
  .assistance-icon-label { display: none; }

  /* Titre compact */
  .assistance-text h2.section-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
  }

  /* Description compacte */
  .assistance-text p {
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: none;
    margin-bottom: 0;
  }

  /* CTA pleine largeur */
  .assistance-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0.75rem 0 0;
    padding: 0.85rem 1.25rem;
    box-sizing: border-box;
  }

  /* Stats : pleine largeur (span 2 colonnes) + 3 sous-colonnes */
  .assistance-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  .assistance-stat-card {
    padding: 10px 6px;
    border-radius: 10px;
    text-align: center;
  }
  .assistance-stat-value { font-size: 1rem; }
  .assistance-stat-label { font-size: 0.6rem; }

  /* CTA plein après les stats — span 2 colonnes */
  .assistance-cta {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
  }
}

/* ============================================================
   DÉCORS DÉCORATIFS — halos & cercles concentriques
   Éléments injectés par JS. Les sections parentes ont déjà
   position: relative; overflow: hidden.
   ============================================================ */

/* Conteneurs de contenu au-dessus des couches décoratives */
.agence-grid,
.services-container,
.real-container,
.avis-grid { position: relative; z-index: 1; }

/* ============================================================
   SCROLL BADGE — CTA flottant rotatif vers #contact
   ============================================================ */
.scroll-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  z-index: 997;
  border-radius: 50%;
  background: var(--noir);
  border: 1.5px solid rgba(255, 200, 50, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  pointer-events: none;
  will-change: transform, opacity;
}
.scroll-badge--visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
  .scroll-badge--visible:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 200, 50, 0.55);
  }
}
.scroll-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: scroll-badge-spin 14s linear infinite;
}
.scroll-badge__text {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 6.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  fill: rgba(255, 255, 255, 0.72);
}
.scroll-badge__arrow {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: var(--blanc);
  flex-shrink: 0;
}
@keyframes scroll-badge-spin {
  to { transform: rotate(360deg); }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .scroll-badge { width: 56px; height: 56px; bottom: 20px; right: 20px; }
  .scroll-badge__text { font-size: 5.7px; }
  .scroll-badge__arrow { width: 15px; height: 15px; }
}
@media (max-width: 768px) {
  .scroll-badge { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .scroll-badge__text { font-size: 4.9px; }
  .scroll-badge__arrow { width: 13px; height: 13px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .section-title::after { animation: none; opacity: 1; }
  .stat-item::before { transition: none; }
  .realisations-grid { transition: none; }
  .fade-in {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
  .fade-in.visible { opacity: 1; }
  .service-card,
  .service-card::before,
  .service-icon,
  .service-name,
  .service-desc { transition: none; }
  .realisation-item img { transition: filter 0.2s ease; }
  .realisation-item::after { transition: none; }
  .realisation-cat,
  .realisation-title { transition: opacity 0.3s ease; transform: none !important; }
  .realisation-item:hover .realisation-cat,
  .realisation-item:hover .realisation-title { transform: none; opacity: 1; }
  nav ul li a::after { transition: none; }
  .hero-cta,
  .assistance-cta { transition: box-shadow 0.2s ease; }
  /* Nouvelles animations */
  .hero-tag, .hero-sub, .hero-cta { animation: none; opacity: 1; transform: none; }
  .hero-rings .ring { animation: none; stroke-dashoffset: 0; }
  /* Anneaux #agence / #realisations — visibles immédiatement, pas de tracé */
  .ring-group-pending { stroke-dashoffset: 0 !important; opacity: 1 !important; animation: none !important; }
  .word-reveal { transition: opacity 0.3s ease !important; transform: none !important; }
  .word-reveal.revealed { opacity: 1; transform: none; }
  .service-card { transition: background 0.2s ease, box-shadow 0.2s ease !important; }
  .service-card:hover { transform: none; }
  .service-card:hover .service-icon { animation: none; }
  /* Burger nav — fade simple sans slide ni stagger */
  nav {
    transition: opacity 0.2s ease, visibility 0s linear 0.2s !important;
    transform: none !important;
  }
  nav.open {
    transition: opacity 0.2s ease, visibility 0s linear 0s !important;
  }
  nav ul li {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
  nav.open ul li { transition-delay: 0s !important; }
  /* Partenaires — défilement stoppé, bulles statiques centrées */
  .partenaires-marquee { mask-image: none; -webkit-mask-image: none; overflow: visible; }
  .partenaires-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 12px;
    padding: 0 2rem;
  }
  .partenaires-set { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .partenaires-set + .partenaires-set { display: none; }
  .partenaire-item { will-change: auto; transition: box-shadow 0.25s ease; }
  .partenaire-logo { transition: opacity 0.2s ease; }
  @media (hover: hover) and (pointer: fine) {
    .partenaire-item:hover {
      scale: 1;
      box-shadow:
        inset 0 0 0 3px rgba(255,200,50,0.68),
        0 2px 8px -2px rgba(50,50,49,0.05),
        0 0 18px rgba(255,200,50,0.22);
    }
  }
  /* Assistance icon pulse */
  .assistance-icon-ring { animation: none; opacity: 0.25; transform: scale(1.2); }
  /* Assistance stat-cards — fond uniquement, pas de déplacement */
  .assistance-stat-card { transition: background 0.2s ease; }
  @media (hover: hover) and (pointer: fine) {
    .assistance-stat-card:hover { transform: none; background: rgba(50,50,49,0.14); }
  }
  /* Tilt + parallax — JS ne s'exécute pas (prefersReducedMotion guard),
     ces règles bloquent tout style résiduel éventuel */
  .service-card { will-change: auto !important; }
  .agence-visual-text,
  .assistance-parallax-shape {
    will-change: auto !important;
    transform: none !important;
  }
  /* Nouvelles animations slide-in / blur — reset transform et filter */
  .section-title,
  .agence-visual,
  .stat-item,
  .service-card,
  .contact-detail {
    transform: none !important;
  }
  .realisation-item {
    transform: none !important;
    filter: none !important;
  }
  /* Badge rotatif — rotation stoppée, badge statique mais cliquable */
  .scroll-badge {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
  .scroll-badge--visible { transform: none !important; }
  .scroll-badge__ring { animation: none !important; }
}
