/*
 * ConformisMaroc — charte strictement dérivée du logo
 * Vert #438e3c · Jaune #ffc107 · Noir #000 · Gris #808080 · Blanc #fff
 */

:root {
  --logo-green: #438e3c;
  --logo-green-dark: #164f2e;
  --logo-green-muted: #e8f3ec;
  --logo-yellow: #ffc107;
  --logo-yellow-dark: #c58b00;
  --logo-yellow-muted: #fff6d8;
  --logo-black: #000000;
  --logo-grey: #68736b;
  --logo-white: #ffffff;
  /* Tokens interface */
  --color-primary: var(--logo-green);
  --color-primary-hover: var(--logo-green-dark);
  --color-primary-muted: var(--logo-green-muted);
  --color-accent: var(--logo-yellow);
  --color-accent-hover: var(--logo-yellow-dark);
  --color-accent-tint: var(--logo-yellow-muted);
  --color-accent-soft: #d9ead8;
  --color-text: #122017;
  --color-text-body: #24332a;
  --color-text-muted: #647268;
  --color-heading: #102016;
  --color-border: #d7e0da;
  --color-surface: var(--logo-white);
  --color-surface-raised: #f6f8f5;
  --color-surface-muted: #edf3ef;
  --color-footer-bg: #07110b;
  --color-footer-text: #aab6ad;
  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-brand: "Sora", system-ui, sans-serif;
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-btn: 999px;
  --radius-card: 18px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 23, 0.06), 0 1px 8px rgba(18, 32, 23, 0.04);
  --shadow-md: 0 18px 45px -28px rgba(18, 32, 23, 0.36);
  --shadow-lg: 0 28px 80px -36px rgba(18, 32, 23, 0.42);
  --header-height: 94px;
  --gradient-corporate: linear-gradient(135deg, #082313 0%, #164f2e 58%, #438e3c 100%);
  /* Alias hérités */
  --color-primary-deep: var(--logo-green-dark);
  --color-brand-blue: var(--logo-green);
  --color-nav: var(--logo-black);
  --color-nav-hover: var(--logo-green);
  --color-heading-dark: var(--color-heading);
  --color-contact-heading: var(--logo-grey);
  --color-strip: var(--color-surface-muted);
  --hero-title-green: var(--logo-green-muted);
  --hero-accent-1: var(--logo-yellow-muted);
  --hero-accent-2: var(--logo-yellow);
  --header-border: var(--color-border);
  --header-shadow: var(--shadow-sm);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* overflow-x: hidden must live on html, NOT body.
   Setting it on body creates a BFC scroll container that breaks position: sticky
   on all mobile browsers (especially iOS Safari). */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-body);
  background-color: var(--color-surface-raised);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(67, 142, 60, 0.07), transparent 50%),
    radial-gradient(ellipse 80% 60% at -10% 60%, rgba(255, 193, 7, 0.06), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 1.75rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--logo-green);
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--logo-green-dark);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  flex-wrap: wrap;
  padding: 0.35rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  display: block;
  border-radius: var(--radius-sm);
  max-height: 52px;
  width: auto;
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-nav);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.sm_nav_menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.15rem;
}

.sm_nav_menu > .menu-item {
  position: relative;
  display: block;
}

.sm_nav_menu > .menu-item > a {
  display: block;
  color: var(--color-nav);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  padding: 0.65rem 0.9rem;
  line-height: 1.25;
  border-radius: var(--radius-btn);
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: none;
}

.sm_nav_menu > .menu-item > a:hover,
.sm_nav_menu > .menu-item > a:focus-visible {
  color: var(--logo-green);
  background: var(--logo-yellow-muted);
}

.sm_nav_menu > .current-menu-item > a,
.sm_nav_menu > .current-menu-parent > a {
  color: var(--logo-green-dark);
  background: var(--logo-green-muted);
  box-shadow: inset 0 0 0 1px rgba(67, 142, 60, 0.45);
}

.menu-item-has-children > a::after {
  content: "\25be";
  display: inline-block;
  font-size: 0.55rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  opacity: 0.55;
  pointer-events: none;
}

.sm_nav_menu > .menu-item > .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.65rem;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: min(300px, 92vw);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.sm_nav_menu > .menu-item:hover > .sub-menu,
.sm_nav_menu > .menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sm_nav_menu > .menu-item > .sub-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  border: 8px solid transparent;
  border-bottom-color: var(--color-surface);
  filter: drop-shadow(0 -1px 0 var(--color-border));
}

.sm_nav_menu .sub-menu .menu-item > a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--color-text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
  border-radius: var(--radius-sm);
  border-bottom: none;
  transition: background 0.15s, color 0.15s;
}

.sm_nav_menu .sub-menu .menu-item > a:hover,
.sm_nav_menu .sub-menu .menu-item > a:focus-visible {
  background: var(--logo-yellow-muted);
  color: var(--logo-green-dark);
}

.sm_nav_menu .sub-menu .current-menu-item > a {
  color: var(--logo-green-dark);
  background: var(--logo-green-muted);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex: 1 1 100%;
    order: 3;
    padding-bottom: 0.75rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .sm_nav_menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
  }

  .sm_nav_menu > .menu-item {
    border-bottom: 1px solid var(--color-border);
  }

  .sm_nav_menu > .menu-item:last-child {
    border-bottom: none;
  }

  .sm_nav_menu > .menu-item > a {
    padding: 0.9rem 1rem;
    border-radius: 0;
  }

  .sm_nav_menu > .current-menu-item > a,
  .sm_nav_menu > .current-menu-parent > a {
    box-shadow: inset 3px 0 0 var(--logo-yellow);
    background: var(--logo-yellow-muted);
  }

  .menu-item-has-children > a::after {
    float: right;
    margin-top: 0.35rem;
  }

  .sm_nav_menu > .menu-item > .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.5rem;
    display: none;
    min-width: 0;
    background: var(--color-surface-muted);
    border: none;
    border-top: 1px solid var(--color-border);
  }

  .sm_nav_menu > .menu-item.sub-open > .sub-menu {
    display: block;
  }

  .sm_nav_menu > .menu-item > .sub-menu::before {
    display: none;
  }

  .sm_nav_menu .sub-menu .menu-item > a {
    font-size: 0.72rem;
    padding: 0.55rem 1rem 0.55rem 1.5rem;
  }

  .sm_nav_menu > .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

.site-main {
  min-height: 50vh;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--logo-black);
  padding: clamp(4.5rem, 13vw, 9rem) 0 clamp(3.75rem, 8vw, 6.5rem);
  text-align: left;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(var(--hero-parallax, 0px));
  will-change: transform;
}

.hero__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroKenburns 38s ease-in-out infinite alternate;
}

.hero__media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.82) 0%, rgba(47, 102, 42, 0.45) 42%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  animation: orbFloat 14s ease-in-out infinite;
}

.hero__orb--a {
  width: min(45vw, 340px);
  height: min(45vw, 340px);
  background: radial-gradient(circle, var(--logo-yellow) 0%, transparent 68%);
  top: -8%;
  right: -5%;
  animation-delay: -2s;
}

.hero__orb--b {
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  background: radial-gradient(circle, var(--logo-green) 0%, transparent 70%);
  bottom: 5%;
  left: -10%;
  animation-delay: -6s;
  animation-duration: 18s;
}

@keyframes heroKenburns {
  0% {
    transform: scale(1.05) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-1.2%, -0.8%);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12px, 10px) scale(1.05);
  }
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: overlay;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 85% 55% at 15% 35%, rgba(67, 142, 60, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 65%, rgba(255, 193, 7, 0.18), transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Motif « L » jaune rappel logo */
.hero__corner {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.hero__corner--tl {
  top: 1.5rem;
  left: 1.5rem;
  width: min(140px, 28vw);
  height: min(100px, 20vw);
  border-left: 4px solid var(--logo-yellow);
  border-bottom: 4px solid var(--logo-yellow);
  border-radius: 0 0 0 12px;
  opacity: 0.85;
}

.hero__corner--br {
  bottom: 0;
  right: 0;
  width: 40%;
  max-width: 320px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--logo-green));
}

.hero__layout {
  position: relative;
  z-index: 5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--logo-green);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-line {
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-line-dark {
  color: var(--logo-white);
  opacity: 0.92;
}

.hero-line-accent1 {
  margin-top: 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  font-style: normal;
  color: var(--hero-accent-1);
}

.hero-line-accent2 {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 500;
  font-style: normal;
  color: var(--logo-yellow);
}

.hero-line--lead {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--logo-white);
  opacity: 1;
}

.hero-stack > .hero-brand {
  margin-bottom: 0;
  padding-bottom: clamp(1rem, 2.6vw, 1.85rem);
}

.hero-stack > .hero-brand::after {
  content: "";
  display: block;
  width: min(280px, 52vw);
  height: 3px;
  margin-top: clamp(0.95rem, 2.2vw, 1.35rem);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--logo-yellow), var(--logo-green));
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.22);
}

.hero-stack > .hero-line-dark:not(.hero-line--lead) {
  margin: 0;
  padding: 0.35rem 0 0.35rem clamp(0.75rem, 2vw, 1.05rem);
  border-left: 3px solid rgba(255, 193, 7, 0.85);
  color: rgba(255, 255, 255, 0.95);
}

.hero-stack > .hero-line--lead {
  margin-top: clamp(1.45rem, 3.25vw, 2.35rem);
  padding-top: clamp(1.2rem, 2.85vw, 2.05rem);
  border-top: 1px solid rgba(255, 193, 7, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(67, 142, 60, 0.28),
    inset 0 14px 24px -20px rgba(67, 142, 60, 0.12);
  color: rgba(255, 255, 255, 0.98);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.chip--glass {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--logo-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.45);
  border-radius: var(--radius-btn);
  backdrop-filter: blur(8px);
  animation: chipGlow 5s ease-in-out infinite;
}

.hero__chips .chip:nth-child(2) {
  animation-delay: 0.6s;
}

.hero__chips .chip:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes chipGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.22);
    border-color: rgba(255, 193, 7, 0.45);
  }
  50% {
    box-shadow: 0 0 20px 1px rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.65);
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--color-heading);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, var(--logo-green), var(--logo-yellow));
}

.title-contact {
  color: var(--color-contact-heading) !important;
}

.title-contact::after {
  background: var(--logo-grey);
}

.section--muted {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section--audience-visual {
  position: relative;
  overflow: hidden;
}

.section--audience-visual::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  background: radial-gradient(circle, rgba(67, 142, 60, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.section--audience-visual::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.section--audience-visual .container {
  position: relative;
  z-index: 1;
}

.section--intro-home {
  background: linear-gradient(180deg, var(--logo-white) 0%, var(--logo-green-muted) 100%);
  border-block: 1px solid rgba(67, 142, 60, 0.2);
  padding-top: clamp(1rem, 2.6vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3.5vw, 2rem);
}

.intro-home__highlight-band {
  width: 100%;
  margin-inline: 0;
  padding-block: clamp(0.9rem, 2.4vw, 1.35rem);
  background: linear-gradient(
    180deg,
    var(--logo-yellow-muted) 0%,
    rgba(255, 237, 160, 0.78) 50%,
    rgba(255, 224, 120, 0.35) 100%
  );
  border-block: 1px solid rgba(255, 193, 7, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(197, 139, 0, 0.08);
}

.intro-home-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3.5vw, 2rem);
}

.intro-split {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.intro-split__visual {
  margin: 0;
}

.intro-split__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-split__visual:hover .intro-split__frame,
.intro-split__visual:focus-within .intro-split__frame {
  transform: rotate(0deg) scale(1.02);
}

.intro-split__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 193, 7, 0.45);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.intro-split__img-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  border-radius: inherit;
  line-height: 0;
  color: inherit;
}

.intro-split__img-btn:focus-visible {
  outline: 3px solid rgba(255, 193, 7, 0.85);
  outline-offset: 2px;
}

.intro-split__img-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.intro-split__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.intro-split__visual:hover .intro-split__img,
.intro-split__visual:focus-within .intro-split__img-btn .intro-split__img {
  transform: scale(1.04);
}

.intro-split__caption {
  margin: 0.95rem 0 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--logo-green-dark);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
  }

  .intro-split__frame {
    transform: none;
  }

  .intro-split__visual:hover .intro-split__frame,
  .intro-split__visual:focus-within .intro-split__frame {
    transform: scale(1.01);
  }
}

.image-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.65rem, 3vw, 1.25rem);
  box-sizing: border-box;
}

.image-viewer-overlay.is-open {
  display: flex;
}

.image-viewer-overlay__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(12, 18, 14, 0.86);
  cursor: zoom-out;
  z-index: 0;
}

.image-viewer-overlay__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: min(94vw, 1120px);
  max-width: min(94vw, 1120px);
  max-height: 92vh;
  pointer-events: auto;
}

.image-viewer-overlay__toolbar {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.image-viewer-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--logo-green-dark);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, background 0.18s ease;
}

.image-viewer-overlay__close:hover,
.image-viewer-overlay__close:focus-visible {
  background: var(--logo-white);
  transform: scale(1.06);
}

.image-viewer-overlay__close:focus-visible {
  outline: 3px solid var(--logo-yellow);
  outline-offset: 3px;
}

.image-viewer-overlay__img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(92vh - 3.25rem);
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

html.intro-photo-lightbox-active,
body.intro-photo-lightbox-active {
  overflow: hidden;
}

.btn--outline {
  flex-shrink: 0;
  background: transparent !important;
  color: var(--logo-green-dark) !important;
  border: 2px solid var(--logo-green);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.9rem 1.65rem;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--logo-green-muted) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ——— Qui sommes-nous ——— */
.page-hero--cream {
  background: linear-gradient(135deg, var(--logo-white) 0%, var(--logo-yellow-muted) 45%, var(--logo-green-muted) 100%);
  color: var(--logo-black);
  box-shadow: inset 0 -1px 0 var(--color-border);
}

.page-hero--cream h1 {
  color: var(--logo-green-dark);
  text-transform: none;
  font-style: normal;
}

.qui-page-title {
  font-weight: 700;
}

.section--qui {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.qui-article {
  max-width: 44rem;
}

.qui-columns {
  display: grid;
  grid-template-columns: minmax(8px, 6px) 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.qui-columns__accent {
  min-height: 100%;
  min-height: 140px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-sm);
}

.qui-brand {
  color: var(--logo-green-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--logo-yellow);
  font-weight: 700;
}

.qui-lead {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--color-text-body);
}

.list-qui {
  margin: 0 0 1.35rem;
  padding: 0 0 0 1.2rem;
  list-style-type: disc;
}

.list-qui li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

@media (max-width: 640px) {
  .qui-columns {
    grid-template-columns: 1fr;
  }

  .qui-columns__accent {
    min-height: 5px;
    width: 100%;
  }
}

/* ——— Domaines ——— */
.section--domaines {
  background: var(--color-surface-muted);
  border-block: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.section--domaines::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 42vw);
  height: 100%;
  background-image: url("../images/photos/services-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, black 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 55%);
}

.section--domaines .container {
  position: relative;
  z-index: 1;
}

.domaines-lead {
  max-width: 40rem;
  margin: -0.25rem 0 1.5rem !important;
  line-height: 1.65;
}

.domaines-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.domain-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--color-heading) !important;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}

.domain-card:hover,
.domain-card:focus-visible {
  border-color: var(--logo-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.domain-card__icon {
  flex-shrink: 0;
  color: var(--logo-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.domain-card__label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* ——— Technologies ——— */
.section--technologies {
  background: linear-gradient(180deg, var(--logo-white) 0%, var(--logo-yellow-muted) 100%);
  border-block: 1px solid var(--color-border);
}

.tech-wrap {
  max-width: 56rem;
}

.tech-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
  margin-bottom: 0;
}

.tech-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.tech-intro {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.list-tech-simple {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-body);
}

.list-tech-simple li {
  margin-bottom: 0.5rem;
}

.tech-subtitle {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
}

.tech-subtitle--spaced {
  margin-top: 1.35rem;
}

.list-tech-x {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-tech-x li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.list-tech-x li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-yellow), var(--logo-green));
}

.list-tech-x--nested {
  margin: 0.4rem 0 0;
  padding: 0;
}

.list-tech-x--nested > li {
  margin-bottom: 0;
}

.tech-soft-desc {
  font-weight: 400;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .tech-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.services-cards {
  margin-bottom: 2rem;
}

.card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.card--cyan::before,
.card--purple::before,
.card--green::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.card--cyan::before {
  background: linear-gradient(90deg, var(--logo-yellow), var(--logo-yellow-dark));
}

.card--purple::before {
  background: linear-gradient(90deg, var(--logo-black), var(--logo-grey));
}

.card--green::before {
  background: linear-gradient(90deg, var(--logo-green), var(--logo-green-dark));
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-heading);
}

.card p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card a {
  font-weight: 600;
  color: var(--logo-green-dark);
}

/* ——— Service boxes ——— */
.service-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-box {
  display: block;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-box:hover,
.service-box:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-box--secu {
  background: linear-gradient(145deg, var(--logo-green) 0%, var(--logo-green-dark) 100%);
  color: var(--logo-white) !important;
}

.service-box--inge {
  background: var(--logo-black);
  color: var(--logo-white) !important;
  box-shadow: inset 0 0 0 2px var(--logo-yellow);
}

.service-box--hse {
  background: linear-gradient(145deg, var(--logo-yellow) 0%, var(--logo-yellow-dark) 100%);
  color: var(--logo-black) !important;
}

.service-box--form {
  background: var(--logo-green-dark);
  color: var(--logo-white) !important;
}

.service-box--cons {
  background: var(--logo-black);
  color: var(--logo-yellow) !important;
  border: 2px solid var(--logo-yellow);
}

.service-box--ener {
  background: linear-gradient(145deg, var(--logo-yellow) 0%, var(--logo-green) 100%);
  color: var(--logo-black) !important;
}

.lists-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.bullet-list {
  background: var(--color-surface-muted);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-card);
  margin: 0;
  font-size: 0.98rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.bullet-list li {
  margin-bottom: 0.35rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

.contact-info .section-title {
  margin-bottom: 0.85rem;
}

.contact-info a {
  color: var(--logo-green-dark);
  font-weight: 600;
}

.contact-info p {
  margin: 0.45rem 0;
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  margin-bottom: 1rem;
  background: var(--color-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--logo-green);
  box-shadow: 0 0 0 3px var(--logo-green-muted);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 0.95rem 1.85rem;
  background: linear-gradient(180deg, var(--logo-yellow) 0%, var(--logo-yellow-dark) 100%);
  color: var(--logo-black) !important;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.45);
}

/* ——— Pages intérieures ——— */
.page-hero {
  background: linear-gradient(120deg, var(--logo-green-dark) 0%, var(--logo-black) 75%);
  color: var(--logo-white);
  padding: clamp(1.75rem, 5vw, 2.85rem) 0;
  box-shadow: inset 0 -3px 0 var(--logo-yellow);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.75vw, 1.85rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--logo-white);
}

.page-breadcrumbs {
  margin: 0 0 0.42rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.page-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-breadcrumbs__item {
  display: inline-flex;
  align-items: baseline;
}

.page-breadcrumbs__item + .page-breadcrumbs__item::before {
  content: "/";
  margin: 0 0.42rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.page-breadcrumbs__link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-breadcrumbs__link:hover,
.page-breadcrumbs__link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.page-breadcrumbs__current {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.page-hero--cream .page-breadcrumbs__item + .page-breadcrumbs__item::before {
  color: rgba(22, 79, 46, 0.32);
}

.page-hero--cream .page-breadcrumbs__link {
  color: rgba(22, 79, 46, 0.72);
}

.page-hero--cream .page-breadcrumbs__link:hover,
.page-hero--cream .page-breadcrumbs__link:focus-visible {
  color: var(--logo-green-dark);
  border-bottom-color: rgba(22, 79, 46, 0.35);
}

.page-hero--cream .page-breadcrumbs__current {
  color: var(--logo-green-dark);
}

.page-content {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 4rem;
  background: var(--color-surface-raised);
}

.page-content .prose {
  max-width: 42rem;
  background: var(--color-surface);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.page-content .prose ul {
  padding-left: 1.35rem;
}

.page-content .prose li {
  margin-bottom: 0.5rem;
}

.page-content .prose p {
  color: var(--color-text-body);
}

.page-content .prose .prose-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-heading);
  margin: 0 0 1.15rem;
  font-weight: 600;
}

.page-content .prose .prose-related {
  margin-top: 1.75rem;
}

.contact-page-lead {
  max-width: 40rem;
  margin-bottom: 1.75rem !important;
}

.qui-lead--mission {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 1.15rem;
}

.services-deck-lead {
  max-width: 40rem;
  margin: -0.25rem 0 1.5rem !important;
}

.contact-deck-hint {
  font-size: 0.95rem;
  margin-bottom: 1.1rem !important;
  line-height: 1.55;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--logo-green-muted);
  border-color: var(--logo-green);
  color: var(--logo-green-dark);
}

.strip-muted {
  background: var(--color-surface);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: center;
  border-block: 1px solid var(--color-border);
}

.strip-muted h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.strip-muted-lead {
  margin: 0 auto !important;
  max-width: 36rem;
  font-size: 0.98rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: center;
  justify-items: center;
  margin-top: 1.5rem;
}

.gallery-grid--referentiels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.15rem;
}

.gallery-grid--referentiels .gallery-item {
  max-width: 200px;
  padding: 0.5rem 0.65rem;
  width: auto;
}

.gallery-grid--clients {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 1rem 1.15rem;
}

.gallery-item {
  margin: 0;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-muted);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 45%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.gallery-item:hover::before {
  transform: translateX(100%);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-grid--clients .gallery-item {
  max-width: 200px;
  padding: 0.5rem 0.65rem;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.section--clients-deco .clients-intro {
  text-align: center;
  margin: -0.25rem auto 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ——— Typo & en-têtes de section ——— */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--logo-green-dark);
  margin: 0 0 0.35rem;
}

.eyebrow2 {
  font-family: var(--font-body);
  
  color: var(--logo-green-dark);
  margin: 0 0 0.35rem;
}

.eyebrow--on-dark {
  color: var(--logo-yellow);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-title--plain::after {
  display: none;
}

.section-head .section-title {
  position: relative;
  padding-bottom: 0.85rem;
}

.section-head .section-title::after {
  display: block;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--logo-green), var(--logo-yellow));
}

.section--clients .section-head .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ——— Carte surface (intro) ——— */
.surface-card--intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6px, 8px) 1fr;
  gap: 0 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--logo-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(67, 142, 60, 0.06);
  overflow: hidden;
}

.surface-card__accent {
  background: linear-gradient(180deg, var(--logo-yellow) 0%, var(--logo-green) 100%);
  border-radius: 4px;
  min-height: 100%;
}

.intro-home__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.intro-home__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.intro-home__highlights > li {
  margin: 0;
  padding: 1.2rem 1.35rem 1.35rem 1.35rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(247, 252, 248, 0.88) 100%
  );
  border: 1px solid rgba(67, 142, 60, 0.2);
  border-left: 4px solid var(--logo-yellow);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 20px -10px rgba(67, 142, 60, 0.2);
}

.intro-home__hi-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 1.35vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--logo-yellow-dark);
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--logo-yellow);
}

.intro-home__hi-text {
  display: block;
  font-size: clamp(1rem, 1.65vw, 1.125rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--color-text);
}

.intro-home__hi-text strong {
  color: var(--logo-yellow-dark);
  font-weight: 700;
}

.intro-home__text {
  margin: 0;
  flex: none;
  width: 100%;
  font-size: 1.03rem;
  max-width: none;
  line-height: 1.72;
  color: var(--color-text-body);
}

.intro-home__text strong {
  color: var(--color-heading);
  font-weight: 700;
}

.intro-home__text .intro-home__lede {
  color: var(--logo-green-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.intro-home__cta {
  margin: 0;
}

.intro-home__btn.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.62rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .intro-home__highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .intro-home__highlights > li {
    padding: 1.1rem 1.2rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .surface-card--intro {
    grid-template-columns: 1fr;
  }

  .surface-card__accent {
    height: 5px;
    min-height: 0;
  }
}

/* ——— Listes audience ——— */
.section--audience .lists-row--cards {
  gap: 1.5rem;
}

.bullet-list--rich {
  position: relative;
  background: var(--logo-white);
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.bullet-list--rich::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--logo-green), var(--logo-yellow));
}

.bullet-list--rich li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.65rem;
  margin: 0;
  border-bottom: 1px solid var(--color-surface-muted);
}

.bullet-list--rich li:last-child {
  border-bottom: none;
}

.bullet-list--rich li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--logo-green);
  box-shadow: 0 0 0 2px var(--logo-green-muted);
}

/* ——— Accueil : quatre blocs hors « cartes » identiques ——— */

.section--home-profiles .section-head--profiles {
  position: relative;
  max-width: 38rem;
  margin-bottom: clamp(1.35rem, 3.2vw, 2rem);
  padding-bottom: 0;
  border-bottom: none;
}

.section--home-profiles .section-head--profiles::after {
  content: "";
  display: block;
  width: min(212px, 48vw);
  height: 4px;
  margin-top: 1rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--logo-green-dark), var(--logo-yellow-dark));
}

.section--home-profiles .eyebrow {
  color: var(--logo-green-dark);
}

.profiles-bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: clamp(0.85rem, 2.2vw, 1.1rem);
}

.profiles-bento__cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: 1.2rem 1.15rem 1.25rem;
  min-height: 5.65rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(67, 142, 60, 0.22);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 20px 48px -36px rgba(18, 32, 23, 0.42);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profiles-bento__cell::before {
  content: "";
  flex-shrink: 0;
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-bottom: 0.82rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--logo-yellow-dark), var(--logo-green-dark));
}

.profiles-bento__cell:hover,
.profiles-bento__cell:focus-within {
  transform: translateY(-4px);
  border-color: rgba(67, 142, 60, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 26px 56px -32px rgba(18, 32, 23, 0.48);
}

.profiles-bento__title {
  font-family: var(--font-heading);
  font-size: clamp(1.03rem, 2vw, 1.14rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.03em;
  color: var(--color-heading);
}

@media (min-width: 800px) {
  .profiles-bento__cell--wide {
    grid-column: span 2;
    min-height: unset;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.15rem;
  }

  .profiles-bento__cell--wide::before {
    margin-bottom: 0;
  }

  .profiles-bento__cell--wide .profiles-bento__title {
    flex: 1;
  }
}

.section--home-enjeux {
  background: linear-gradient(165deg, #fbfffc 0%, #f5faf6 45%, var(--logo-white) 100%);
  border-block: 1px solid rgba(67, 142, 60, 0.16);
}

.section--home-enjeux .section-head {
  max-width: 40rem;
  margin-bottom: 0.5rem;
}

.section--home-enjeux .eyebrow {
  color: #1d4a2f;
}

.section--home-enjeux .bullet-list--rich {
  overflow: hidden;
  padding-top: 1.35rem;
  padding-right: 1.35rem;
  padding-bottom: 1.25rem;
  padding-left: calc(1.35rem + 4px);
  border-left: none;
}

.section--home-enjeux .bullet-list--rich::before {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 4px;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, var(--logo-yellow-dark), var(--logo-green-dark));
}

.section--home-enjeux .bullet-list--rich li::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--logo-yellow);
  box-shadow: none;
}

.section--home-offre .section-head {
  padding-left: 1rem;
  border-left: 4px solid var(--logo-green-dark);
  margin-bottom: 1.5rem;
}

.section--home-offre .eyebrow {
  color: var(--logo-yellow-dark);
}

.section--home-offre .bullet-list--rich {
  counter-reset: home-offre;
}

.section--home-offre .bullet-list--rich li {
  counter-increment: home-offre;
  padding: 0.7rem 0 0.7rem 3.05rem;
  min-height: 3rem;
  display: grid;
  align-items: center;
}

.section--home-offre .bullet-list--rich li::before {
  content: counter(home-offre);
  top: 50%;
  left: 0.2rem;
  transform: translateY(-50%);
  width: 2.05rem;
  height: 2.05rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(155deg, #fff59d 0%, var(--logo-yellow-dark) 100%);
  color: var(--logo-black);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 2.05rem;
  text-align: center;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 2px rgba(67, 142, 60, 0.18);
  box-sizing: border-box;
}

.section--home-benefits .section-head {
  position: relative;
  padding-bottom: 1rem;
}

.section--home-benefits .eyebrow {
  color: var(--logo-green-dark);
}

.section--home-benefits .section-head::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 12rem;
  height: 3px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--logo-yellow-dark), transparent);
}

.section--home-benefits .bullet-list--rich {
  padding: 1.35rem 1.45rem;
  padding-left: 1.85rem;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  border-width: 0 0 0 3px;
  border-style: solid;
  border-color: transparent;
  border-left-color: var(--logo-green-dark);
  background:
    linear-gradient(90deg, rgba(232, 243, 236, 0.35) 0%, rgba(255, 255, 255, 0.98) 28%);
}

.section--home-benefits .bullet-list--rich::before {
  display: none;
}

.section--home-benefits .bullet-list--rich li {
  padding-left: 1.5rem;
  border-bottom-style: dashed;
  border-bottom-color: rgba(22, 79, 46, 0.12);
}

.section--home-benefits .bullet-list--rich li:last-child {
  border-bottom: none;
}

.section--home-benefits .bullet-list--rich li::before {
  left: -0.15rem;
  width: 11px;
  height: 11px;
  background: radial-gradient(circle at 35% 30%, var(--logo-yellow-muted), var(--logo-yellow-dark));
  border-radius: 50%;
  border: 2px solid var(--logo-white);
  box-shadow: 0 0 0 2px rgba(67, 142, 60, 0.28);
}

/* ——— Domaines : cartes plus expressives ——— */
.domain-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.35rem 1.25rem 1.15rem;
}

.domain-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--logo-yellow), var(--logo-green));
  opacity: 0.85;
}

.domain-card__label {
  font-size: 0.95rem;
}

.domain-card:hover .domain-card__icon,
.domain-card:focus-visible .domain-card__icon {
  transform: scale(1.08);
}

.domain-card__icon {
  transition: transform 0.22s ease;
}

/* ——— Bande décorative entre sections ——— */
.section-deco--top {
  height: 5px;
  margin: 0 auto;
  width: min(720px, 88%);
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--logo-green),
    var(--logo-yellow),
    var(--logo-green),
    transparent
  );
  background-size: 200% 100%;
  opacity: 0.95;
  animation: DecoShimmer 8s ease-in-out infinite;
}

@keyframes DecoShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.section--services-deck {
  position: relative;
  background: linear-gradient(180deg, var(--logo-white) 0%, var(--color-surface-raised) 100%);
  overflow: hidden;
}

.section--services-deck::before {
  content: "";
  position: absolute;
  inset: -10% -5% 40% -5%;
  background-image: url("../images/photos/services-bg.jpg");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.section--services-deck::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(180deg, transparent, var(--color-surface-raised));
  z-index: 0;
  pointer-events: none;
}

.section--services-deck .container {
  position: relative;
  z-index: 1;
}

/* ——— Grille prestations ——— */
.service-boxes--polish {
  gap: 1.15rem;
}

.service-boxes--polish .service-box {
  position: relative;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.35rem 1.65rem;
  font-size: 0.88rem;
  overflow: hidden;
}

.service-boxes--polish .service-box::after {
  content: "→";
  position: absolute;
  right: 0.85rem;
  bottom: 0.55rem;
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0.35;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-boxes--polish .service-box:hover::after,
.service-boxes--polish .service-box:focus-visible::after {
  transform: translateX(4px);
  opacity: 0.7;
}

/* ——— Technologies panneaux ——— */
.tech-bento.tech-wrap {
  max-width: 100%;
}

.tech-panel {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: var(--logo-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.tech-panel--accent {
  background: linear-gradient(180deg, var(--logo-white) 0%, var(--logo-yellow-muted) 100%);
  border-top: 3px solid var(--logo-yellow);
}

.tech-panel .eyebrow {
  margin-bottom: 0.65rem;
}

/* ——— Contact bento ——— */
.section--contact-bento {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  background: var(--color-surface-muted);
}

.section-deco--contact {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(67, 142, 60, 0.08), transparent);
  pointer-events: none;
}

.contact-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-bento__panel {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.15rem);
}

.contact-bento__panel--dark {
  background: linear-gradient(160deg, var(--logo-black) 0%, #1a2419 55%, var(--logo-green-dark) 100%);
  color: var(--logo-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.contact-bento__panel--dark .title-contact {
  color: var(--logo-white) !important;
}

.contact-bento__panel--dark .title-contact::after {
  background: linear-gradient(90deg, var(--logo-yellow), var(--logo-green));
}

.contact-bento__panel--dark .contact-deck-hint {
  color: rgba(255, 255, 255, 0.82) !important;
}

.contact-bento__panel--dark a {
  color: var(--logo-yellow);
}

.contact-bento__panel--dark a:hover,
.contact-bento__panel--dark a:focus-visible {
  color: var(--logo-white);
}

.contact-bento__panel--dark strong {
  color: var(--logo-yellow-muted);
}

.contact-bento__panel--form {
  background: var(--logo-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .contact-bento {
    grid-template-columns: 1fr;
  }
}

/* ——— Référentiels bandeau ——— */
.strip-muted--band {
  padding: 0;
  border: none;
  background: transparent;
}

.strip-muted__header {
  background: linear-gradient(90deg, var(--logo-black) 0%, var(--logo-green-dark) 100%);
  color: var(--logo-white);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  text-align: center;
}

.strip-muted__header h2 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.strip-muted__header .strip-muted-lead {
  margin: 0 auto !important;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88) !important;
}

.strip-muted__body {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--color-surface-raised);
}

/* ——— Clients ——— */
.section--clients-deco {
  position: relative;
  background: var(--logo-white);
}

.section--clients-deco::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(67, 142, 60, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.9;
}

.section--clients-deco .container {
  position: relative;
  z-index: 1;
}

.section--clients-deco .section-head {
  text-align: center;
}

/* ——— Animations entrée ——— */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-boxes--polish .service-box::after {
    transition: none;
  }

  .hero__bg {
    animation: none;
  }

  .hero__orb {
    animation: none;
  }

  .chip--glass {
    animation: none;
  }

  .section-deco--top {
    animation: none;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: clamp(2.75rem, 5vw, 3.5rem) 0 1.25rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer strong {
  color: var(--logo-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--logo-yellow);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--logo-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.75fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.site-footer .muted {
  color: var(--color-footer-text);
}

.copyright {
  text-align: center;
  font-size: 0.8125rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  margin: 0;
  color: var(--logo-grey);
}

.muted {
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.section--clients .muted {
  color: var(--color-text-muted);
}

/* Modern corporate refresh */
body {
  font-size: 1rem;
  line-height: 1.7;
  background-color: #f7faf7;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(67, 142, 60, 0.08), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(255, 193, 7, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f6f8f5 38%, #eef4ef 100%);
}

::selection {
  color: var(--logo-black);
  background: rgba(255, 193, 7, 0.55);
}

a {
  color: var(--logo-green-dark);
}

a:hover,
a:focus-visible {
  color: var(--logo-green);
}

:focus-visible {
  outline: 3px solid rgba(255, 193, 7, 0.65);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--container));
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(215, 224, 218, 0.9);
  box-shadow: 0 12px 36px -34px rgba(18, 32, 23, 0.6);
}

.header-inner {
  min-height: var(--header-height);
  padding: 0.55rem 0;
}

.brand img {
  max-height: 56px;
  border-radius: 14px;
  box-shadow: none;
}

.nav-toggle {
  color: var(--logo-green-dark);
  background: var(--logo-white);
  border-color: rgba(22, 79, 46, 0.18);
  box-shadow: var(--shadow-sm);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--logo-green-muted);
}

.sm_nav_menu {
  gap: 0.25rem;
  align-items: center;
}

.sm_nav_menu > .menu-item > a {
  color: #1d2c22;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.7rem 0.95rem;
  letter-spacing: 0;
}

.sm_nav_menu > .menu-item > a:hover,
.sm_nav_menu > .menu-item > a:focus-visible {
  color: var(--logo-green-dark);
  background: rgba(232, 243, 236, 0.95);
}

.sm_nav_menu > .current-menu-item > a,
.sm_nav_menu > .current-menu-parent > a {
  color: var(--logo-green-dark);
  background: var(--logo-green-muted);
  box-shadow: inset 0 0 0 1px rgba(67, 142, 60, 0.18);
}

.sm_nav_menu > .menu-item > .sub-menu {
  min-width: min(320px, 92vw);
  padding: 0.55rem;
  border-color: rgba(215, 224, 218, 0.95);
  border-radius: 18px;
  box-shadow: 0 26px 70px -34px rgba(18, 32, 23, 0.5);
}

.sm_nav_menu .sub-menu .menu-item > a {
  color: #25352b;
  border-radius: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.hero {
  min-height: clamp(560px, 72vh, 760px);
  display: grid;
  align-items: center;
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(4.5rem, 8vw, 6.25rem);
  background: #07110b;
}

.hero__media-shade {
  background:
    linear-gradient(90deg, rgba(7, 17, 11, 0.92) 0%, rgba(7, 17, 11, 0.76) 38%, rgba(7, 17, 11, 0.42) 100%),
    linear-gradient(180deg, rgba(7, 17, 11, 0.18) 0%, rgba(7, 17, 11, 0.92) 100%);
}

.hero__mesh {
  opacity: 0.38;
  mix-blend-mode: soft-light;
}

.hero__orb {
  opacity: 0.2;
  filter: blur(70px);
}

.hero__corner--tl {
  top: 2rem;
  left: max(1rem, calc((100vw - var(--container)) / 2));
  width: min(96px, 24vw);
  height: min(74px, 18vw);
  border-left-width: 3px;
  border-bottom-width: 3px;
  opacity: 0.7;
}

.hero__corner--br {
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.8), var(--logo-green));
}

.hero-inner {
  max-width: 48rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  backdrop-filter: blur(2px);
}

.hero-brand {
  margin-bottom: 0.45rem;
  color: var(--logo-white);
  font-size: clamp(2.75rem, 6.2vw, 5.2rem);
  letter-spacing: -0.065em;
}

.hero-line {
  max-width: 44rem;
}

.hero-line-dark,
.hero-line--lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-line--lead {
  color: var(--logo-white);
}

.hero-line-accent1 {
  width: fit-content;
  margin-top: 1.55rem;
  padding: 0.5rem 0.85rem;
  color: var(--logo-black);
  background: var(--logo-yellow);
  border-radius: var(--radius-btn);
  box-shadow: 0 12px 34px -24px rgba(255, 193, 7, 0.9);
}

.hero-line-accent2 {
  color: rgba(255, 255, 255, 0.78);
}

.chip--glass {
  color: var(--logo-white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  animation: none;
}

@media (max-width: 1024px) {
  .header-inner {
    align-items: center;
  }

  .sm_nav_menu {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .sm_nav_menu > .menu-item > a {
    padding: 0.95rem 1rem;
  }

  .sm_nav_menu > .menu-item > .sub-menu {
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding-top: 4.75rem;
  }

  .hero-inner {
    padding: 1rem 0 1rem 1rem;
    border-radius: 0 22px 22px 0;
  }

  .hero-brand {
    font-size: clamp(2.35rem, 15vw, 3.45rem);
  }
}

.section {
  padding: clamp(3.25rem, 7vw, 5.25rem) 0;
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.25rem);
}

.section-title,
.tech-title,
.strip-muted__header h2 {
  color: var(--color-heading);
  letter-spacing: -0.045em;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.section-head .section-title::after,
.section-title::after {
  width: 88px;
  height: 4px;
  margin-top: 0.95rem;
  background: linear-gradient(90deg, var(--logo-green-dark), var(--logo-green), var(--logo-yellow));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--logo-green-dark);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--on-dark::before {
  background: var(--logo-yellow);
}

.section--intro-home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 243, 236, 0.8) 100%);
  border-block-color: rgba(215, 224, 218, 0.8);
  padding-top: clamp(1rem, 2.6vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3.5vw, 2rem);
}

.intro-split {
  grid-template-columns: minmax(300px, 1.28fr) minmax(280px, 1fr);
}

.intro-split__frame {
  border-radius: 30px;
  transform: none;
  box-shadow: 0 28px 80px -44px rgba(18, 32, 23, 0.55);
}

.intro-split__frame::after {
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.intro-split__caption {
  color: var(--color-text-muted);
}

.surface-card--intro,
.tech-panel,
.contact-bento__panel--form,
.page-content .prose,
.card,
.gallery-item,
.bullet-list--rich,
.domain-card {
  border-color: rgba(215, 224, 218, 0.95);
  box-shadow: var(--shadow-md);
}

.surface-card--intro {
  background: rgba(255, 255, 255, 0.94);
}

.surface-card__accent,
.qui-columns__accent,
.domain-card::before {
  background: linear-gradient(180deg, var(--logo-green-dark) 0%, var(--logo-green) 62%, var(--logo-yellow) 100%);
}

.section--muted,
.section--domaines,
.section--contact-bento {
  background: #f4f8f5;
  border-block-color: rgba(215, 224, 218, 0.85);
}

.section--audience-visual::before,
.section--audience-visual::after {
  opacity: 0.7;
}

.bullet-list--rich {
  background: var(--logo-white);
}

.bullet-list--rich li {
  border-bottom-color: rgba(215, 224, 218, 0.7);
}

.bullet-list--rich li::before {
  background: var(--logo-green-dark);
  box-shadow: 0 0 0 4px var(--logo-green-muted);
}

.section--domaines::before,
.section--services-deck::before {
  opacity: 0.08;
}

.domaines-cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.domain-card {
  min-height: 108px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 248, 0.96));
}

.domain-card:hover,
.domain-card:focus-visible {
  border-color: rgba(67, 142, 60, 0.45);
  box-shadow: var(--shadow-lg);
}

.domain-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--logo-green-dark);
  background: var(--logo-green-muted);
}

.domain-card__label {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.section--services-deck {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8f5 100%);
}

.section-deco--top {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 79, 46, 0.35), rgba(255, 193, 7, 0.55), transparent);
  animation: none;
}

.service-boxes {
  gap: 1.1rem;
}

.service-boxes--polish .service-box {
  min-height: 7rem;
  justify-content: flex-start;
  text-align: left;
  padding: 1.45rem 3rem 1.45rem 1.35rem;
  font-size: 0.94rem;
  border: 1px solid rgba(215, 224, 218, 0.25);
  box-shadow: 0 22px 60px -38px rgba(18, 32, 23, 0.62);
}

.service-box--secu,
.service-box--form {
  background: var(--gradient-corporate);
}

.service-box--inge,
.service-box--cons {
  background: #0a160f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 193, 7, 0.45),
    0 22px 60px -38px rgba(18, 32, 23, 0.62);
}

.service-box--hse,
.service-box--ener {
  background: linear-gradient(135deg, #fff3bd 0%, var(--logo-yellow) 48%, #e0a50a 100%);
}

.section--technologies {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f5 100%);
}

.tech-wrap {
  max-width: var(--container);
}

.tech-columns {
  gap: 1.5rem;
}

.tech-panel {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.96);
}

.tech-panel--accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 246, 216, 0.72) 100%);
  border-top-color: var(--logo-yellow);
}

.list-tech-simple,
.list-tech-x {
  color: var(--color-text-body);
}

.list-tech-x li::before {
  background: var(--logo-green-dark);
}

.section--contact-bento {
  overflow: hidden;
}

.contact-bento {
  gap: 1.25rem;
}

.contact-bento__panel {
  border-radius: 30px;
}

.contact-bento__panel--dark {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 193, 7, 0.16), transparent 34%),
    var(--gradient-corporate);
  box-shadow: var(--shadow-lg);
}

.contact-bento__panel--form {
  background: rgba(255, 255, 255, 0.96);
}

.strip-muted__header {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 193, 7, 0.16), transparent 30%),
    linear-gradient(135deg, #07110b 0%, #164f2e 100%);
}

.strip-muted__body {
  background: #f6f8f5;
}

.gallery-grid {
  gap: 1rem;
}

.gallery-item {
  background: var(--logo-white);
  border-radius: 20px;
  filter: saturate(0.92);
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item::before {
  display: none;
}

.section--clients-deco {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.section--clients-deco::before {
  opacity: 0.55;
}

.site-footer {
  background:
    radial-gradient(circle at 15% 0%, rgba(67, 142, 60, 0.28), transparent 32%),
    linear-gradient(180deg, #07110b 0%, #030705 100%);
  color: var(--color-footer-text);
  padding-top: clamp(3.25rem, 6vw, 4.5rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  justify-self: stretch;
}

.footer-brand .muted {
  margin: 0;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 64px;
  border-radius: 12px;
  background: var(--logo-white);
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-logo:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(67, 142, 60, 0.4);
}

@media (max-width: 600px) {
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

.site-footer strong {
  color: var(--logo-white);
  letter-spacing: 0.08em;
}

.site-footer a {
  color: #ffe08a;
}

.footer-grid {
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(280px, 1.82fr) minmax(158px, 1fr) minmax(158px, 1fr);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 3.35rem) 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 193, 7, 0.16), transparent 30%),
    var(--gradient-corporate);
  box-shadow: none;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 78%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  letter-spacing: -0.055em;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: var(--radius-btn);
  background: var(--logo-yellow);
}

.page-hero--cream {
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 193, 7, 0.3), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef7ef 58%, #fff6d8 100%);
  color: var(--color-heading);
}

.page-hero--cream h1 {
  color: var(--logo-green-dark);
}

.page-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 142, 60, 0.07), transparent 34%),
    #f6f8f5;
}

.page-content .container:not(.prose) > .prose-lead {
  max-width: 58rem;
}

.page-content .prose {
  max-width: 50rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
}

.page-content .prose p {
  font-size: 1.02rem;
}

.page-content .prose .prose-lead,
.contact-page-lead,
.qui-lead--mission {
  color: var(--color-heading);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.page-content .prose ul,
.list-qui {
  list-style: none;
  padding-left: 0;
}

.page-content .prose li,
.list-qui li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}

.page-content .prose li::before,
.list-qui li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--logo-green-dark);
  box-shadow: 0 0 0 4px var(--logo-green-muted);
}

.section--qui {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 193, 7, 0.11), transparent 30%),
    #ffffff;
}

.qui-article {
  max-width: 58rem;
}

.qui-columns {
  grid-template-columns: minmax(8px, 8px) 1fr;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(215, 224, 218, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.qui-brand {
  color: var(--logo-green-dark);
  border-bottom-color: var(--logo-yellow);
}

.contact-page-lead {
  margin-top: 0;
}

.contact-panel {
  gap: 1.25rem;
  align-items: stretch;
}

.contact-panel > .contact-info,
.contact-panel > div:last-child {
  padding: clamp(1.5rem, 3vw, 2.15rem);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(215, 224, 218, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.contact-info .title-contact,
.contact-panel .title-contact {
  color: var(--color-heading) !important;
}

.contact-info .title-contact::after,
.contact-panel .title-contact::after {
  background: linear-gradient(90deg, var(--logo-green-dark), var(--logo-yellow));
}

.contact-info a {
  color: var(--logo-green-dark);
}

.form label {
  color: var(--color-heading);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form input,
.form textarea {
  border-color: rgba(215, 224, 218, 0.95);
  border-radius: 14px;
  background: #fbfdfb;
}

.form input:hover,
.form textarea:hover {
  border-color: rgba(67, 142, 60, 0.35);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--logo-green);
  box-shadow: 0 0 0 4px rgba(67, 142, 60, 0.12);
}

.btn {
  background: linear-gradient(135deg, var(--logo-yellow) 0%, #ffd960 100%);
  color: #1d1700 !important;
  box-shadow: 0 16px 34px -24px rgba(197, 139, 0, 0.95);
}

.btn:hover,
.btn:focus-visible {
  box-shadow: 0 20px 42px -24px rgba(197, 139, 0, 0.95);
}

.btn--outline {
  color: var(--logo-green-dark) !important;
  border-color: rgba(22, 79, 46, 0.38);
  background: rgba(255, 255, 255, 0.72) !important;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--logo-green-muted) !important;
}

.alert-success {
  background: #edf8f0;
  border-color: rgba(67, 142, 60, 0.42);
  color: var(--logo-green-dark);
}

.contact-bento__panel--dark .title-contact {
  color: var(--logo-white) !important;
}

.contact-bento__panel--dark .title-contact::after {
  background: linear-gradient(90deg, var(--logo-yellow), rgba(255, 255, 255, 0.5));
}

.contact-bento__panel--dark a {
  color: var(--logo-yellow);
}

@media (max-width: 768px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .qui-columns {
    padding: 1.35rem;
  }
}

/* ——— Brochure — DearFlip (dflip) ——— */
.page-content--brochure {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.brochure-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem !important;
}

.brochure-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn--download {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.btn--download svg,
.btn--fullscreen svg {
  flex-shrink: 0;
}

.btn--fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

/* Lecteur plus large que le texte : chaque demi-page PDF gagne en taille */
.brochure-dflip-bleed {
  width: min(100vw - 1.25rem, 1480px);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 1.5vw, 0.75rem);
  box-sizing: border-box;
}

.page-content--brochure .container + .brochure-dflip-bleed {
  margin-top: 0.25rem;
}

.flipbook-container.brochure-dflip-shell {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(0.45rem, 1.25vw, 0.85rem);
  min-height: min(580px, 70vh);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.flipbook-container.brochure-dflip-shell:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: 0;
}

.brochure-dflip-shell ._df_book {
  min-height: min(520px, 64vh);
}

/* Masque les boutons zoom DearFlip si l’option hideControls ne suffit pas selon la version */
.brochure-dflip-shell .df-ui-zoomin,
.brochure-dflip-shell .df-ui-zoomout {
  display: none !important;
}

.brochure-fallback {
  text-align: center;
}

.brochure-fallback p {
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .flipbook-container.brochure-dflip-shell {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    min-height: min(460px, 66vh);
  }

  .brochure-dflip-shell ._df_book {
    min-height: min(420px, 62vh);
  }

  .brochure-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--download,
  .btn--fullscreen {
    justify-content: center;
  }
}

/* ===========================================================
   Two-bar header — Top bar (brand + contacts) / Bottom bar (nav)
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 224, 218, 0.9);
  box-shadow: 0 14px 40px -34px rgba(18, 32, 23, 0.5);
}

/* ——— Top bar ——— */
.header-top {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(215, 224, 218, 0.7);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.header-top-trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin-left: auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  background: rgba(232, 243, 236, 0.55);
}

.brand img {
  display: block;
  border-radius: 14px;
  max-height: 56px;
  width: auto;
  box-shadow: none;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--logo-green-dark);
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}

.brand-name__first {
  font-size: 1em;
  font-weight: 800;
}

.brand-name__second {
  font-size: 1em;
  font-weight: 800;
}

.brand-tagline {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.header-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-contact > li {
  display: flex;
}

.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  padding: 0.45rem 0.75rem 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-contact-item:hover,
.header-contact-item:focus-visible {
  background: var(--logo-green-muted);
  border-color: rgba(67, 142, 60, 0.18);
  color: var(--logo-green-dark);
  outline: none;
}

.header-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--logo-green-muted);
  color: var(--logo-green-dark);
  flex: 0 0 auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-contact-item:hover .header-contact-icon,
.header-contact-item:focus-visible .header-contact-icon {
  background: var(--logo-yellow);
  color: var(--logo-black);
}

.header-contact-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.header-contact-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.header-contact-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.header-contact-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* ——— Bottom bar (nav) ——— */
.header-bottom {
  background: rgba(255, 255, 255, 0.94);
  position: relative;
}

.header-bottom::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(67, 142, 60, 0.18) 22%,
    rgba(255, 193, 7, 0.32) 50%,
    rgba(67, 142, 60, 0.18) 78%,
    transparent 100%);
  pointer-events: none;
}

.header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 58px;
  padding: 0.45rem 0 0.35rem;
  flex-wrap: wrap;
  align-content: flex-start;
}

.nav-drawer-backdrop {
  display: none;
}

@media (min-width: 1025px) {
  .header-bottom {
    padding-top: 0.55rem;
  }

  .header-bottom-row {
    min-height: 56px;
    padding: 0.5rem 0 0.9rem;
    justify-content: center;
  }

  .header-bottom-row .main-nav {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-bottom-row .sm_nav_menu {
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
  }

  .nav-drawer-close {
    display: none;
  }

  .nav-drawer-header {
    display: none;
  }
}

@media (max-width: 1024px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-bottom-row {
    min-height: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
  }

  .nav-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 260;
    background: rgba(18, 32, 23, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease;
  }

  .nav-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-bottom-row .main-nav.main-nav--drawer-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: env(safe-area-inset-top, 0px) 0 calc(1rem + env(safe-area-inset-bottom, 0px));
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(215, 224, 218, 0.95);
    box-shadow:
      -12px 0 48px rgba(18, 32, 23, 0.16),
      -2px 0 0 rgba(67, 142, 60, 0.08);
    z-index: 270;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
    flex: unset;
  }

  .header-bottom-row .main-nav.main-nav--drawer-mobile.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .header-bottom-row .main-nav .sm_nav_menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow-x: hidden;
  }

  .header-bottom-row .main-nav.main-nav--drawer-mobile .sm_nav_menu > .menu-item:last-child {
    border-bottom: 1px solid var(--color-border);
  }

  .header-bottom-row .main-nav .sm_nav_menu > .menu-item > a {
    text-align: left;
    border-radius: 0;
  }

  .header-bottom-row .main-nav.main-nav--drawer-mobile .sm_nav_menu .sub-menu .menu-item > a {
    border-radius: 0;
  }

  /* Sub-menus always visible in drawer — no collapse/expand */
  .header-bottom-row .main-nav.main-nav--drawer-mobile .sm_nav_menu > .menu-item > .sub-menu {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border-top: 1px solid var(--color-border);
    padding: 0 0 0.5rem;
    background: var(--apple-bg-alt, #f5f5f7);
  }

  /* Hide chevron — sub-menus are always expanded in the drawer */
  .main-nav--drawer-mobile .menu-item-has-children > a::after {
    display: none;
  }

  .nav-drawer-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 1.75rem);
    max-width: 100%;
    margin: 1rem 0.875rem 0.25rem;
    margin-top: auto;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(22, 79, 46, 0.22);
    background: var(--logo-white);
    color: var(--logo-green-dark);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition:
      background 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease;
  }

  .nav-drawer-close span[aria-hidden="true"] {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    margin-top: -0.06em;
  }

  .nav-drawer-close:hover,
  .nav-drawer-close:focus-visible {
    background: var(--logo-green-muted);
    border-color: rgba(67, 142, 60, 0.45);
    outline: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-bottom-row .main-nav.main-nav--drawer-mobile,
  .nav-drawer-backdrop {
    transition: none;
  }
}

/* Refresh nav-toggle to use icon + label */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: var(--logo-white);
  border: 1px solid rgba(22, 79, 46, 0.18);
  color: var(--logo-green-dark);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--logo-green-muted);
  border-color: rgba(67, 142, 60, 0.4);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ——— Tablet (≤ 1024px): show toggle, contacts compact ——— */
@media (max-width: 1024px) {
  .header-top-inner {
    gap: 0.85rem;
    padding: 0.55rem 0;
  }

  .brand img {
    max-height: 48px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.66rem;
  }

  .header-contact {
    gap: 0.3rem;
  }

  .header-contact-item {
    padding: 0.35rem 0.55rem 0.35rem 0.4rem;
    gap: 0.55rem;
  }

  .header-contact-icon {
    width: 32px;
    height: 32px;
  }

  .header-contact-label {
    font-size: 0.6rem;
  }

  .header-contact-value {
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
}

/* ——— Tablet narrow (≤ 860px): hide labels, keep icons + values ——— */
@media (max-width: 860px) {
  .header-contact-label {
    display: none;
  }

  .header-contact-value {
    font-size: 0.82rem;
  }

  .header-contact-item {
    padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  }
}

/* ——— Mobile (≤ 640px): icon-only contacts ——— */
@media (max-width: 640px) {
  .header-top-inner {
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand img {
    max-height: 42px;
    border-radius: 11px;
  }

  .brand-text {
    display: none;
  }

  .header-contact {
    gap: 0.3rem;
  }

  .header-contact-item {
    padding: 0;
    border-radius: 50%;
  }

  .header-contact-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-contact-icon {
    width: 38px;
    height: 38px;
    box-shadow: inset 0 0 0 1px rgba(67, 142, 60, 0.18);
  }

  .header-contact-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ——— Very narrow (≤ 380px): hide email button to save space ——— */
@media (max-width: 380px) {
  .header-contact-item--email {
    display: none;
  }
}

/* ============================================================
   APPLE STRUCTURE OVERRIDE
   Sharp edges · No icons · No rounded cards · No rounded buttons
   Generous whitespace · Cinematic typography · Minimal UI
   ============================================================ */

/* --- Design tokens: all radii → 0 --- */
:root {
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-btn: 0;
  --radius-card: 0;
  --apple-bg: #fbfbfd;
  --apple-bg-alt: #f5f5f7;
  --apple-text: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-border: rgba(0, 0, 0, 0.09);
}

/* --- Base --- */
body {
  background: var(--apple-bg);
  background-image: none;
  color: var(--apple-text);
  -webkit-font-smoothing: antialiased;
}

/* ——— Remove decorative floating elements ——— */
.hero__orb,
.hero__mesh,
.hero__corner,
.section-deco--top,
.section-deco--contact {
  display: none;
}

/* ——— Header ——— */
.site-header {
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-border);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: clamp(0.45rem, 1.4vw, 0.72rem);
  padding-bottom: 0;
}

/* Single-container layout: logo | divider | main */
.header-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Logo block */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.7rem 1.25rem 0.68rem 0;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  background: transparent;
  opacity: 0.78;
}

.brand img {
  border-radius: 0;
  box-shadow: none;
  max-height: 96px;
  width: auto;
  display: block;
}

/* Vertical divider */
.header-vdivider {
  width: 1px;
  background: var(--apple-border);
  flex-shrink: 0;
  align-self: stretch;
  margin: 0.62rem 0;
}

/* Right-side column */
.header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top row: brand text + contacts + mobile toggle */
.header-top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.88rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid var(--apple-border);
}

.brand-text-link {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  margin-right: auto;
  transition: opacity 0.2s ease;
}

.brand-text-link:hover {
  opacity: 0.75;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--apple-text);
}

.brand-tagline {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--apple-muted);
  margin-top: 3px;
}

/* Contact strip in top row */
.header-contact {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hide contact icons — text only */
.header-contact-icon {
  display: none;
}

.header-contact-item {
  border-radius: 0;
  padding: 0.25rem 0.5rem;
  border: none;
  gap: 0;
  background: transparent;
  transition: color 0.18s ease;
}

.header-contact-item:hover,
.header-contact-item:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--logo-green-dark);
  outline: none;
}

.header-contact-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-contact-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apple-muted);
}

.header-contact-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--apple-text);
  letter-spacing: 0;
}

/* Bottom row: nav */
.header-bottom-row {
  padding: 0.12rem 0 0 1.25rem;
  position: relative;
}

/* Legacy overrides no longer needed */
.header-top,
.header-bottom {
  display: contents;
}

.header-top-inner,
.header-bottom-row {
  display: contents;
}

/* Nav links */
.sm_nav_menu > .menu-item > a {
  color: var(--apple-text);
  font-size: 0.89rem;
  font-weight: 400;
  border-radius: 0;
  letter-spacing: 0;
  padding: 0.72rem 0.92rem;
  transition: color 0.15s ease;
}

.sm_nav_menu > .menu-item > a:hover,
.sm_nav_menu > .menu-item > a:focus-visible {
  background: transparent;
  color: var(--logo-green-dark);
}

.sm_nav_menu > .current-menu-item > a,
.sm_nav_menu > .current-menu-parent > a {
  background: transparent;
  box-shadow: none;
  color: var(--logo-green-dark);
  font-weight: 600;
  position: relative;
}

.sm_nav_menu > .current-menu-item > a::after,
.sm_nav_menu > .current-menu-parent > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0.92rem;
  right: 0.92rem;
  height: 2px;
  background: var(--logo-green);
}

/* Dropdown */
.sm_nav_menu > .menu-item > .sub-menu {
  border-radius: 0;
  border: 1px solid var(--apple-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.sm_nav_menu > .menu-item > .sub-menu::before {
  display: none;
}

.sm_nav_menu .sub-menu .menu-item > a {
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sm_nav_menu .sub-menu .menu-item > a:hover,
.sm_nav_menu .sub-menu .menu-item > a:focus-visible {
  background: var(--apple-bg-alt);
  color: var(--logo-green-dark);
}

/* ——— Nav toggle (hamburger) ——— */
.nav-toggle {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--apple-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--apple-text);
  box-shadow: none;
  letter-spacing: 0.02em;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--apple-bg-alt);
  border-color: rgba(0, 0, 0, 0.18);
}

/* Nav drawer close button */
.nav-drawer-close {
  border-radius: 0;
}

/* ——— Hero ——— */
.hero {
  min-height: clamp(560px, 78vh, 900px);
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(2.5rem, 5.5vw, 4rem);
  background: #07110b;
}

.hero-inner {
  border: none;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  max-width: 60rem;
}

.hero-brand {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.07em;
  color: #f5f5f7;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.hero-line {
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.hero-line-dark,
.hero-line--lead {
  color: rgba(255, 255, 255, 0.88);
}

.hero-line--lead {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 600;
  color: #f5f5f7;
}

.hero-stack > .hero-brand {
  margin-bottom: 0;
  padding-bottom: clamp(1.05rem, 2.85vw, 1.95rem);
}

.hero-stack > .hero-brand::after {
  content: "";
  display: block;
  width: min(296px, 56vw);
  height: 3px;
  margin-top: clamp(1rem, 2.35vw, 1.45rem);
  background: linear-gradient(90deg, var(--logo-yellow), var(--logo-green));
  opacity: 0.95;
}

.hero-stack > .hero-line-dark:not(.hero-line--lead) {
  margin: 0;
  padding: 0.4rem 0 0.4rem clamp(0.8rem, 2vw, 1.1rem);
  border-left: 3px solid rgba(255, 193, 7, 0.75);
  color: rgba(255, 255, 255, 0.9);
}

.hero-stack > .hero-line--lead {
  margin-top: clamp(1.5rem, 3.4vw, 2.55rem);
  padding-top: clamp(1.3rem, 3vw, 2.15rem);
  border-top: 1px solid rgba(255, 193, 7, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(67, 142, 60, 0.25),
    inset 0 16px 28px -22px rgba(255, 193, 7, 0.06);
  color: rgba(245, 245, 247, 0.98);
}

.hero-line-accent1 {
  background: none;
  border-radius: 0;
  color: var(--logo-yellow);
  padding: 0;
  box-shadow: none;
  margin-top: 1.85rem;
  font-weight: 600;
  font-size: clamp(0.92rem, 1.55vw, 1.1rem);
}

.hero-line-accent2 {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

/* Hide chips — not Apple-style */
.hero__chips {
  display: none;
}

/* ——— Buttons ——— */
.btn {
  border-radius: 0;
  box-shadow: none;
  font-size: 0.88rem;
  padding: 0.85rem 1.85rem;
  letter-spacing: 0.01em;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  box-shadow: none;
  transform: none;
  filter: brightness(0.94);
}

.btn--outline {
  border-radius: 0;
  border: 1px solid rgba(22, 79, 46, 0.42);
  padding: 0.85rem 1.85rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  transform: none;
  box-shadow: none;
  background: var(--logo-green-muted) !important;
}

/* ——— Sections — generous Apple whitespace ——— */
.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* Large Apple-style headings */
.section-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--apple-text);
  margin-bottom: 0.65rem;
}

/* Remove all underline decorators from headings */
.section-title::after,
.section-head .section-title::after {
  display: none;
}

.section-head .section-title {
  padding-bottom: 0;
}

.tech-title {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.045em;
}

/* Eyebrow — minimal, no line before */
.eyebrow {
  color: var(--logo-green-dark);
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.eyebrow::before {
  display: none;
}

.eyebrow--on-dark {
  color: var(--logo-yellow);
}

/* ——— Intro section ——— */
.section--intro-home {
  background: var(--apple-bg);
  border-block-color: var(--apple-border);
  padding-top: clamp(0.85rem, 2.2vw, 1.35rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3.5vw, 2rem);
}

.intro-home__highlight-band {
  padding-block: clamp(1.15rem, 2.8vw, 1.65rem);
  border-radius: 0;
  border-block-color: rgba(255, 193, 7, 0.32);
  background: linear-gradient(
    180deg,
    var(--logo-yellow-muted) 0%,
    rgba(255, 239, 180, 0.65) 55%,
    rgba(245, 250, 247, 0.45) 100%
  );
}

.intro-home__highlight-band .intro-home__highlights > li {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--apple-border);
  border-left: 4px solid var(--logo-yellow);
  border-radius: 0;
  box-shadow: 0 10px 28px -22px rgba(18, 32, 23, 0.35);
}

.intro-split__frame {
  border-radius: 0;
  transform: none;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.28);
}

.intro-split__frame::after {
  border-radius: 0;
  border: none;
}

.intro-split__visual:hover .intro-split__frame,
.intro-split__visual:focus-within .intro-split__frame {
  transform: none;
}

.intro-split__visual:hover .intro-split__img,
.intro-split__visual:focus-within .intro-split__img-btn .intro-split__img {
  transform: scale(1.02);
}

.surface-card--intro {
  border-radius: 0;
  border: 1px solid var(--apple-border);
  background: var(--apple-bg);
  box-shadow: none;
}

/* ——— Audience section ——— */
.section--muted {
  background: var(--apple-bg-alt);
  border-block-color: var(--apple-border);
}

.bullet-list--rich {
  border-radius: 0;
  border: 1px solid var(--apple-border);
  box-shadow: none;
  background: var(--apple-bg);
}

.bullet-list--rich::before {
  border-radius: 0;
}

.bullet-list--rich li::before {
  border-radius: 0;
  width: 5px;
  height: 5px;
  background: var(--logo-green-dark);
  box-shadow: none;
}

.section--home-profiles .section-head--profiles::after {
  border-radius: 0;
}

.profiles-bento__cell {
  border-radius: 0;
  background: var(--apple-bg);
  border-color: var(--apple-border);
  box-shadow: none;
}

.profiles-bento__cell:hover,
.profiles-bento__cell:focus-within {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: rgba(67, 142, 60, 0.35);
  background: var(--apple-bg-alt);
}

.section--home-enjeux {
  border-block-color: var(--apple-border);
}

.section--home-enjeux .bullet-list--rich::before {
  width: 3px;
}

.section--home-offre .section-head {
  border-left-color: var(--logo-green-dark);
}

.section--home-offre .bullet-list--rich li::before {
  border-radius: 2px;
}

.section--home-benefits .bullet-list--rich {
  border-radius: 0;
  background: linear-gradient(90deg, var(--apple-bg-alt) 0%, var(--apple-bg) 36%);
}

.section--home-benefits .bullet-list--rich li::before {
  border-radius: 2px;
}

/* ——— Domaines cards — no icons, sharp ——— */
.section--domaines {
  background: var(--apple-bg-alt);
  border-block-color: var(--apple-border);
}

.section--domaines::before {
  display: none;
}

.domaines-cards {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--apple-border);
}

.domaines-cards li {
  border-right: 1px solid var(--apple-border);
  border-bottom: 1px solid var(--apple-border);
}

.domaines-cards li:nth-child(3n) {
  border-right: none;
}

.domain-card {
  border-radius: 0;
  background: var(--apple-bg);
  border: none;
  box-shadow: none;
  padding: 1.75rem 1.65rem;
  min-height: 6rem;
  align-items: flex-start;
  gap: 0;
  transition: background 0.18s ease;
}

.domain-card::before {
  width: 3px;
  background: var(--logo-green-dark);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.domain-card:hover,
.domain-card:focus-visible {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.domain-card:hover::before,
.domain-card:focus-visible::before {
  opacity: 1;
}

.domain-card__label {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--apple-text);
}

/* ——— Services section ——— */
.section--services-deck {
  background: var(--apple-bg);
}

.section--services-deck::before,
.section--services-deck::after {
  display: none;
}

.service-box {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.service-boxes--polish .service-box {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.07);
  min-height: 6.5rem;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.service-boxes--polish .service-box::after {
  content: "→";
  font-size: 1rem;
  opacity: 0.45;
}

.service-box:hover,
.service-box:focus-visible {
  transform: none;
  box-shadow: none;
  filter: brightness(0.94);
}

.service-box:hover::after,
.service-box:focus-visible::after {
  opacity: 0.85;
  transform: translateX(3px);
}

/* ——— Technologies ——— */
.section--technologies {
  background: var(--apple-bg-alt);
  border-block-color: var(--apple-border);
}

.tech-panel {
  border-radius: 0;
  border: 1px solid var(--apple-border);
  box-shadow: none;
  background: var(--apple-bg);
}

.tech-panel--accent {
  background: var(--apple-bg);
  border-top: 3px solid var(--logo-yellow);
}

.list-tech-x li::before {
  border-radius: 0;
  width: 4px;
  height: 4px;
  background: var(--logo-green-dark);
}

/* ——— Contact bento ——— */
.section--contact-bento {
  background: var(--apple-bg-alt);
}

.contact-bento__panel {
  border-radius: 0;
}

.contact-bento__panel--dark {
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.contact-bento__panel--form {
  border-radius: 0;
  border: 1px solid var(--apple-border);
  box-shadow: none;
  background: var(--apple-bg);
}

/* ——— Form ——— */
.form input,
.form textarea {
  border-radius: 0;
  border: 1px solid var(--apple-border);
  background: var(--apple-bg);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--logo-green);
  box-shadow: 0 0 0 3px rgba(67, 142, 60, 0.14);
}

/* ——— Gallery items ——— */
.gallery-item {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--apple-border);
  background: #ffffff !important;
  transition: border-color 0.2s ease;
}

.gallery-item:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.2);
}

.gallery-item::before {
  display: none;
}

/* ——— Client logos: all boxes same fixed size ——— */
.gallery-grid--clients .gallery-item {
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

.gallery-grid--clients .gallery-item img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ——— Strip muted (référentiels) ——— */
.strip-muted__header {
  background: var(--apple-text);
}

/* Force white text on the dark strip header */
.strip-muted__header h2,
.strip-muted__header p {
  color: #ffffff !important;
}

.strip-muted__body {
  background: #ffffff;
  width: 100%;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
}

/* Uniform logo boxes – one row of 7 on desktop, 2 per row on mobile */
.gallery-grid--referentiels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.9rem;
  justify-items: center;
}

.gallery-grid--referentiels .gallery-item {
  width: 100%;
  min-width: 0;
  height: 110px;
  max-width: none;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid var(--apple-border, #e0e0e0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.gallery-grid--referentiels .gallery-item img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .gallery-grid--referentiels {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid--referentiels .gallery-item {
    height: 90px;
  }
}

/* ——— Clients section ——— */
.section--clients-deco {
  background: var(--apple-bg);
  overflow-x: hidden;
}

/* ——— Footer ——— */
.site-footer {
  background: #1d1d1f;
}

.footer-logo img {
  border-radius: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
}

.footer-logo:hover img {
  transform: none;
  box-shadow: none;
}

/* ——— Page hero (interior pages) ——— */
.page-hero {
  overflow: hidden;
  border-radius: 0;
}

.page-hero::before {
  display: none;
}

.page-hero h1::after {
  display: none;
}

/* ——— Page content ——— */
.page-content .prose {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--apple-border);
  background: var(--apple-bg);
}

.page-content .prose li::before,
.list-qui li::before {
  border-radius: 0;
  width: 5px;
  height: 5px;
  background: var(--logo-green-dark);
  box-shadow: none;
}

/* ——— Qui columns ——— */
.qui-columns {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--apple-border);
  background: var(--apple-bg);
}

/* ——— Contact page panel ——— */
.contact-panel > .contact-info,
.contact-panel > div:last-child {
  border-radius: 0;
  box-shadow: none;
}

/* ——— Alert ——— */
.alert {
  border-radius: 0;
}

/* ——— Mobile nav drawer ——— */
@media (max-width: 1024px) {
  .sm_nav_menu {
    border-radius: 0;
  }

  .sm_nav_menu > .menu-item > .sub-menu {
    border-radius: 0;
  }

  .header-bottom-row .main-nav.main-nav--drawer-mobile {
    border-radius: 0;
  }

  .domaines-cards {
    grid-template-columns: 1fr;
  }

  .domaines-cards li {
    border-right: none;
  }
}

/* ——— Mobile hero ——— */
@media (max-width: 700px) {
  .hero-inner {
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
  }

  .hero-brand {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* ——— Section qui ——— */
.section--qui {
  background: var(--apple-bg);
}

/* ——— Focus outline ——— */
:focus-visible {
  outline: 2px solid var(--logo-green);
  outline-offset: 2px;
}
/* ============================================================ */

/* ============================================================
   STICKY HEADER — GUARANTEED ON ALL PAGES
   position: sticky requires body to remain the scroll container.
   Moving scroll-lock to <html> (which JS already marks) fixes
   the common Safari/Chrome bug where overflow:hidden on body
   breaks sticky.
   ============================================================ */

/* ── Authoritative sticky declaration (overrides everything above) ── */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* ── Scroll lock: JS adds this class when the drawer is open ── */
html.nav-drawer-open {
  overflow: hidden;
}

/* ── Mobile: belt-and-suspenders sticky in its own media query ── */
@media (max-width: 1024px) {
  .site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    /* No transform / will-change that could break sticky on mobile */
    transform: none !important;
  }
}

/* ── Drawer nav: items always start from the top (mobile only) ── */
@media (max-width: 1024px) {
  .header-bottom-row .main-nav.main-nav--drawer-mobile .sm_nav_menu {
    justify-content: flex-start !important;
    align-items: stretch !important;
  }
}

/* ── Drawer header bar (brand label at top of panel) ── */
/* Hidden on desktop; shown only inside the mobile drawer */
.nav-drawer-header {
  flex-shrink: 0;
  display: none;
  align-items: center;
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--apple-border);
  background: rgba(251, 251, 253, 0.98);
}

@media (max-width: 1024px) {
  .nav-drawer-header {
    display: flex;
  }
}

.nav-drawer-title {
  font-family: var(--font-brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apple-muted, #6e6e73);
}

/* ============================================================ */

/* ============================================================
   ICONS & FULL RESPONSIVENESS — Phase 2
   ============================================================ */

/* ─── Header contact icons (restored, minimal) ─── */
.header-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: var(--logo-green-muted);
  color: var(--logo-green-dark);
  transition: background 0.18s ease, color 0.18s ease;
}

.header-contact-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-contact-item {
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  gap: 0.5rem;
}

.header-contact-item:hover .header-contact-icon,
.header-contact-item:focus-visible .header-contact-icon {
  background: var(--logo-yellow-muted);
  color: var(--logo-green-dark);
}

/* ─── Domain card icons (restored, meaningful) ─── */
.domain-card {
  gap: 0.9rem;
  align-items: center;
  padding: 1.35rem 1.5rem 1.35rem 1.25rem;
}

.domain-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--logo-green-muted);
  color: var(--logo-green-dark);
  transition: background 0.18s ease, color 0.18s ease;
}

.domain-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Domain cards: fixed 3-col grid (overrides auto-fill) ─── */
.domaines-cards {
  grid-template-columns: repeat(3, 1fr) !important;
}

.domaines-cards li:nth-child(3n) {
  border-right: none !important;
}

.domaines-cards li:nth-child(2n) {
  border-right: 1px solid var(--apple-border) !important;
}

/* ─── Domain cards: per-card meaningful colors & icons ─── */
/* 1 — Ingénierie sécurité incendie → orange / flamme */
.domaines-cards li:nth-child(1) .domain-card { background: #fff3e0; }
.domaines-cards li:nth-child(1) .domain-card::before { background: #ef6c00; opacity: 1; }
.domaines-cards li:nth-child(1) .domain-card__icon { color: #ef6c00; background: #ffe0b2; }
.domaines-cards li:nth-child(1) .domain-card:hover,
.domaines-cards li:nth-child(1) .domain-card:focus-visible { background: #ffeacc; }
.domaines-cards li:nth-child(1) .domain-card:hover .domain-card__icon { background: #ef6c00; color: #fff; }
.domaines-cards li:nth-child(1) .domain-card__label { color: #bf360c; }

/* 2 — Hygiène — Sécurité — Environnement → vert HSE */
.domaines-cards li:nth-child(2) .domain-card { background: #e8f5e9; }
.domaines-cards li:nth-child(2) .domain-card::before { background: #2e7d32; opacity: 1; }
.domaines-cards li:nth-child(2) .domain-card__icon { color: #2e7d32; background: #c8e6c9; }
.domaines-cards li:nth-child(2) .domain-card:hover,
.domaines-cards li:nth-child(2) .domain-card:focus-visible { background: #dcedc8; }
.domaines-cards li:nth-child(2) .domain-card:hover .domain-card__icon { background: #2e7d32; color: #fff; }
.domaines-cards li:nth-child(2) .domain-card__label { color: #1b5e20; }

/* 3 — Ingénierie énergétique → ambre solaire / thermique */
.domaines-cards li:nth-child(3) .domain-card { background: #fff8e1; }
.domaines-cards li:nth-child(3) .domain-card::before { background: #ffa000; opacity: 1; }
.domaines-cards li:nth-child(3) .domain-card__icon { color: #f57c00; background: #ffecb3; }
.domaines-cards li:nth-child(3) .domain-card:hover,
.domaines-cards li:nth-child(3) .domain-card:focus-visible { background: #fff3cd; }
.domaines-cards li:nth-child(3) .domain-card:hover .domain-card__icon { background: #f57c00; color: #fff; }
.domaines-cards li:nth-child(3) .domain-card__label { color: #e65100; }

/* 4 — Fluides → cyan eau / fluides techniques */
.domaines-cards li:nth-child(4) .domain-card { background: #e0f7fa; }
.domaines-cards li:nth-child(4) .domain-card::before { background: #0097a7; opacity: 1; }
.domaines-cards li:nth-child(4) .domain-card__icon { color: #0097a7; background: #b2ebf2; }
.domaines-cards li:nth-child(4) .domain-card:hover,
.domaines-cards li:nth-child(4) .domain-card:focus-visible { background: #cff5fb; }
.domaines-cards li:nth-child(4) .domain-card:hover .domain-card__icon { background: #0097a7; color: #fff; }
.domaines-cards li:nth-child(4) .domain-card__label { color: #006064; }

/* 5 — Électricité → bleu « utility » */
.domaines-cards li:nth-child(5) .domain-card { background: #e3f2fd; }
.domaines-cards li:nth-child(5) .domain-card::before { background: #1565c0; opacity: 1; }
.domaines-cards li:nth-child(5) .domain-card__icon { color: #1565c0; background: #bbdefb; }
.domaines-cards li:nth-child(5) .domain-card:hover,
.domaines-cards li:nth-child(5) .domain-card:focus-visible { background: #d6ebfc; }
.domaines-cards li:nth-child(5) .domain-card:hover .domain-card__icon { background: #1565c0; color: #fff; }
.domaines-cards li:nth-child(5) .domain-card__label { color: #0d47a1; }

/* 6 — Analyse risque incendie / explosion → magenta–bordeaux danger */
.domaines-cards li:nth-child(6) .domain-card { background: #fce4ec; }
.domaines-cards li:nth-child(6) .domain-card::before { background: #880e4f; opacity: 1; }
.domaines-cards li:nth-child(6) .domain-card__icon { color: #ad1457; background: #f8bbd9; }
.domaines-cards li:nth-child(6) .domain-card:hover,
.domaines-cards li:nth-child(6) .domain-card:focus-visible { background: #fbd8e7; }
.domaines-cards li:nth-child(6) .domain-card:hover .domain-card__icon { background: #880e4f; color: #fff; }
.domaines-cards li:nth-child(6) .domain-card__label { color: #4a0072; }

/* 7 — Assistance et conseil → indigo cabinet */
.domaines-cards li:nth-child(7) .domain-card { background: #e8eaf6; }
.domaines-cards li:nth-child(7) .domain-card::before { background: #283593; opacity: 1; }
.domaines-cards li:nth-child(7) .domain-card__icon { color: #283593; background: #c5cae9; }
.domaines-cards li:nth-child(7) .domain-card:hover,
.domaines-cards li:nth-child(7) .domain-card:focus-visible { background: #dcdff7; }
.domaines-cards li:nth-child(7) .domain-card:hover .domain-card__icon { background: #283593; color: #fff; }
.domaines-cards li:nth-child(7) .domain-card__label { color: #1a237e; }

/* 8 — Formations → violet formation */
.domaines-cards li:nth-child(8) .domain-card { background: #f3e5f5; }
.domaines-cards li:nth-child(8) .domain-card::before { background: #7b1fa2; opacity: 1; }
.domaines-cards li:nth-child(8) .domain-card__icon { color: #7b1fa2; background: #e1bee7; }
.domaines-cards li:nth-child(8) .domain-card:hover,
.domaines-cards li:nth-child(8) .domain-card:focus-visible { background: #ebd9ef; }
.domaines-cards li:nth-child(8) .domain-card:hover .domain-card__icon { background: #7b1fa2; color: #fff; }
.domaines-cards li:nth-child(8) .domain-card__label { color: #4a148c; }

/* Hover: bordure neutre (remplace le vert générique sur la grille domaines) */
.domaines-cards .domain-card:hover,
.domaines-cards .domain-card:focus-visible {
  border-color: rgba(55, 71, 79, 0.22);
}

/* ─── Prestations cards: exact brand colors from conformismaroc.com ─── */
.service-box--secu {
  background: #ff0000 !important;
  color: #ffffff !important;
}
.service-box--inge {
  background: #aa0606 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
.service-box--hse {
  background: #cfc329 !important;
  color: #ffffff !important;
}
.service-box--form {
  background: linear-gradient(260deg, #18dafa 11%, #06c1ff 100%) !important;
  color: #ffffff !important;
}
.service-box--cons {
  background: linear-gradient(180deg, #c75bff 0%, #8c19ff 100%) !important;
  color: #ffffff !important;
  border: none !important;
}
.service-box--ener {
  background: #0fb152 !important;
  color: #ffffff !important;
}

/* ─── Service box icons ─── */
.service-boxes--polish .service-box {
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 2.5rem 1.35rem 1.25rem;
}

.service-box__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.88;
}

.service-box__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Contact icon rows (ci-row) ─── */
.ci-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0.7rem 0;
}

.ci-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--logo-yellow);
  margin-top: 2px;
}

.ci-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ci-text {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* White-background panels get green icons */
.contact-panel .ci-icon {
  color: var(--logo-green-dark);
}

/* Footer icon color */
.site-footer .ci-icon {
  color: rgba(255, 193, 7, 0.8);
  margin-top: 0;
}

.site-footer .ci-text {
  padding-top: 0;
}

/* ─── Services section: background image accent ─── */
.services-deck__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* ─── Technologies section: background image ─── */
.tech-section__img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.55;
  margin-bottom: 2rem;
  filter: saturate(0.7);
}

/* ─── Footer ci rows ─── */
.footer-ci-col {
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════ */

/* ── 1024px: tablet, nav drawer, domain cards 2-col ── */
@media (max-width: 1024px) {
  .domaines-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .domaines-cards li:nth-child(3n) {
    border-right: 1px solid var(--apple-border) !important;
  }

  .domaines-cards li:nth-child(2n) {
    border-right: none !important;
  }

  .services-deck__bg {
    display: none;
  }

  .tech-section__img {
    height: 220px;
  }
}

/* ── 900px: intro split stacks, contact bento stacks ── */
@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
    max-width: min(720px, 100%);
    margin-inline: auto;
  }

  .contact-bento {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ── 768px: tech columns, service boxes 2-col, section padding ── */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section--intro-home {
    padding-top: clamp(0.75rem, 2.2vw, 1.2rem);
  }

  .section-head {
    margin-bottom: 1.5rem;
  }

  .tech-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .service-boxes--polish .service-box {
    min-height: 5rem;
    padding: 1.15rem 1rem 1.15rem 1.1rem;
    font-size: 0.87rem;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .lists-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tech-section__img {
    height: 180px;
  }
}

/* ── 540px: domain cards 1-col, service boxes 1-col, footer 1-col ── */
@media (max-width: 540px) {
  .domaines-cards {
    grid-template-columns: 1fr !important;
  }

  .domaines-cards li {
    border-right: none !important;
  }

  .service-boxes {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .gallery-grid--clients {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  /* referentiels grid handled by its own responsive block */

  .section {
    padding: 2.75rem 0;
  }

  .section--intro-home {
    padding-top: clamp(0.65rem, 2vw, 1rem);
  }

  .section-title {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
    letter-spacing: -0.04em;
  }

  .domain-card__icon {
    width: 36px;
    height: 36px;
  }

  .domain-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .tech-section__img {
    display: none;
  }
}

/* ── 400px: hero text scale, single header contact ── */
@media (max-width: 400px) {
  .hero-brand {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .hero-line--lead {
    font-size: clamp(1rem, 5vw, 1.4rem);
  }

  .hero-line {
    font-size: clamp(0.95rem, 4.5vw, 1.3rem);
  }

  .header-contact > li:not(:first-child) {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(1.3rem, 6.25vw, 1.85rem);
  }

  .service-boxes--polish .service-box {
    font-size: 0.82rem;
    padding: 1rem 0.9rem;
  }
}

/* ── 860px: hide contact labels and email — keep phone numbers only ── */
@media (max-width: 860px) {
  .header-contact-label {
    display: none;
  }

  /* Email address is too wide without its label — hide it at tablet widths */
  .header-contact-item--email {
    display: none;
  }
}

/* ── 640px: compact header — hide contact strip entirely, shrink logo ── */
@media (max-width: 640px) {
  /* Compact logo */
  .brand img {
    max-height: 58px !important;
  }

  /* Hide the vertical divider on small screens */
  .header-vdivider {
    display: none;
  }

  /* Hide contact strip — accessible via footer / menu */
  .header-contact {
    display: none !important;
  }

  /* Tighten top row padding */
  .header-top-row {
    padding: 0.4rem 0 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  /* Slightly smaller brand name */
  .brand-name {
    font-size: 0.95rem;
  }

  .brand-tagline {
    display: none;
  }

  /* Tighter nav bottom row */
  .header-bottom-row {
    padding-left: 0.75rem;
  }
}

/* ============================================================ */

/* ──────────────────────────────────────────────────────────────
   CLIENTS CAROUSEL  – 3 scrolling rows × 6 visible columns
   ────────────────────────────────────────────────────────────── */

.clients-carousel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 0.5rem 0 1.5rem;
  width: 100%;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: clients-ltr 40s linear infinite;
}

.clients-track--rtl {
  animation: clients-rtl 40s linear infinite;
}

.clients-track:hover,
.clients-track--rtl:hover {
  animation-play-state: paused;
}

@keyframes clients-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes clients-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.clients-logo-box {
  flex-shrink: 0;
  width: 160px;
  height: 110px;
  background: #ffffff;
  border: 1px solid var(--apple-border, #e0e0e0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s ease, transform .2s ease;
}

.clients-logo-box:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.clients-logo-box img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track,
  .clients-track--rtl {
    animation: none;
  }
  .clients-carousel {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .clients-logo-box {
    width: 120px;
    height: 88px;
  }
  .clients-track,
  .clients-track--rtl {
    animation-duration: 28s;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE HEADER RESTRUCTURE (≤640px)
   — Logo + Contact icons + Menu button all visible in a single row
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  /* Reset header-inner to simple row layout */
  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.58rem 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  /* Logo stays visible on left */
  .brand {
    flex: 0 0 auto;
    order: 1;
  }

  /* Hide vertical divider */
  .header-vdivider {
    display: none !important;
  }

  /* Restructure header-main for mobile */
  .header-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    order: 2;
    min-width: 0;
  }

  /* Hide top-row wrapper but keep its children accessible */
  .header-top-row {
    display: contents;
  }

  /* Hide brand text on mobile — logo is enough */
  .brand-text-link {
    display: none !important;
  }

  /* SHOW contact strip as icon-only circles */
  .header-contact {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
  }

  /* Contact items as icon circles */
  .header-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: var(--logo-green-muted, #e8f5e8);
    border: 1px solid rgba(67, 142, 60, 0.18);
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .header-contact-item:hover,
  .header-contact-item:focus-visible {
    background: var(--logo-yellow, #ffc107);
    transform: scale(1.05);
  }

  /* Show contact icons */
  .header-contact-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 50%;
  }

  .header-contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--logo-green-dark, #164f2e);
    fill: none;
    stroke-width: 1.5;
  }

  .header-contact-item:hover .header-contact-icon svg,
  .header-contact-item:focus-visible .header-contact-icon svg {
    stroke: var(--logo-black, #07110b);
  }

  /* Hide contact text — icon only */
  .header-contact-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Show email on mobile too (if space allows) */
  .header-contact-item--email {
    display: flex;
  }

  /* Nav toggle styling */
  .nav-toggle {
    flex: 0 0 auto;
    order: 3;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background: var(--logo-green-dark, #164f2e);
    color: #fff;
    border: none;
    border-radius: 6px;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: var(--logo-green, #438e3c);
  }

  .nav-toggle__bars span {
    background: #fff;
  }

  .nav-toggle__label {
    color: #fff;
  }

  /* Header-bottom-row: keep it in DOM for the drawer, but don't take visual space */
  .header-bottom-row {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
}

/* Very small screens — hide email to save space */
@media (max-width: 380px) {
  .header-contact-item--email {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   DESKTOP vs MOBILE NAVIGATION — Separate elements
   ══════════════════════════════════════════════════════════════════════ */

/* Desktop navigation — visible only on large screens */
.main-nav--desktop {
  display: none;
}

@media (min-width: 1025px) {
  .main-nav--desktop {
    display: flex;
    justify-content: center;
  }

  .header-bottom-row--desktop {
    display: block;
  }

  /* Hide mobile drawer on desktop */
  body > .nav-drawer-backdrop,
  body > .main-nav--drawer-mobile {
    display: none !important;
  }
}

/* Mobile drawer — visible only on small screens */
@media (max-width: 1024px) {
  /* Hide desktop nav on mobile */
  .header-bottom-row--desktop {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   SIDEBAR / NAV DRAWER — Appended to body, always fixed in viewport
   ══════════════════════════════════════════════════════════════════════ */

/* Drawer backdrop — full viewport coverage */
body > .nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(18, 32, 23, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

body > .nav-drawer-backdrop.is-open {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Drawer panel — always fixed in viewport */
body > .main-nav--drawer-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: min(340px, 88vw);
  height: 100vh;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #fff);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.32s ease;
}

body > .main-nav--drawer-mobile.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

/* Menu items scroll within the drawer */
body > .main-nav--drawer-mobile .sm_nav_menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Drawer header stays at top */
body > .main-nav--drawer-mobile .nav-drawer-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  background: var(--color-surface, #fff);
}

body > .main-nav--drawer-mobile .nav-drawer-title {
  font-family: var(--font-brand, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #666);
}

/* Close button stays at bottom */
body > .main-nav--drawer-mobile .nav-drawer-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text, #333);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body > .main-nav--drawer-mobile .nav-drawer-close:hover,
body > .main-nav--drawer-mobile .nav-drawer-close:focus-visible {
  background: var(--logo-green-muted, #e8f5e8);
  border-color: rgba(67, 142, 60, 0.45);
}

body > .main-nav--drawer-mobile .nav-drawer-close span[aria-hidden="true"] {
  font-size: 1.25rem;
  line-height: 1;
}

/* Menu item styles in drawer — all left-aligned */
body > .main-nav--drawer-mobile .sm_nav_menu {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  text-align: left;
}

body > .main-nav--drawer-mobile .sm_nav_menu > .menu-item {
  text-align: left;
}

body > .main-nav--drawer-mobile .sm_nav_menu > .menu-item > a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text, #333);
  text-decoration: none;
  text-align: left;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  transition: background 0.15s ease, color 0.15s ease;
}

body > .main-nav--drawer-mobile .sm_nav_menu > .menu-item > a:hover,
body > .main-nav--drawer-mobile .sm_nav_menu > .menu-item > a:focus-visible {
  background: var(--logo-green-muted, #e8f5e8);
  color: var(--logo-green-dark, #164f2e);
}

body > .main-nav--drawer-mobile .sm_nav_menu > .current-menu-item > a,
body > .main-nav--drawer-mobile .sm_nav_menu > .current-menu-parent > a {
  color: var(--logo-green-dark, #164f2e);
  font-weight: 600;
  background: var(--logo-green-muted, #e8f5e8);
}

/* Sub-menus always visible in drawer — inline list (left to right) */
body > .main-nav--drawer-mobile .sm_nav_menu > .menu-item > .sub-menu,
body > .main-nav--drawer-mobile .sub-menu {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem;
  list-style: none;
  padding: 0.6rem 1rem 0.75rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  transform: none !important;
  pointer-events: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-align: left;
}

body > .main-nav--drawer-mobile .sub-menu .menu-item {
  flex: 0 0 auto;
}

body > .main-nav--drawer-mobile .sub-menu .menu-item > a {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text, #333);
  text-decoration: none;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

body > .main-nav--drawer-mobile .sub-menu .menu-item > a:hover,
body > .main-nav--drawer-mobile .sub-menu .menu-item > a:focus-visible {
  background: var(--logo-green-muted, #e8f5e8);
  color: var(--logo-green-dark, #164f2e);
  border-color: rgba(67, 142, 60, 0.3);
}

body > .main-nav--drawer-mobile .sub-menu .current-menu-item > a {
  color: var(--logo-green-dark, #164f2e);
  font-weight: 600;
  background: var(--logo-green-muted, #e8f5e8);
  border-color: rgba(67, 142, 60, 0.3);
}

/* Hide chevrons in drawer — sub-menus always expanded */
body > .main-nav--drawer-mobile .menu-item-has-children > a::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body > .main-nav--drawer-mobile,
  body > .nav-drawer-backdrop {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   FORM VALIDATION STYLES
   ══════════════════════════════════════════════════════════════════════ */

/* Valid state */
.form input.is-valid,
.form textarea.is-valid {
  border-color: var(--logo-green, #438e3c);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23438e3c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

.form textarea.is-valid {
  background-position: right 0.75rem top 0.75rem;
}

/* Invalid state */
.form input.is-invalid,
.form textarea.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

.form textarea.is-invalid {
  background-position: right 0.75rem top 0.75rem;
}

.form input.is-invalid:focus,
.form textarea.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Error message */
.form-error {
  display: none;
  color: #dc3545;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}

/* Success alert */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-success {
  background: var(--logo-green-muted, #e8f5e8);
  border: 1px solid rgba(67, 142, 60, 0.25);
  color: var(--logo-green-dark, #164f2e);
}

.alert-error {
  background: #fce8e8;
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #8b1a1a;
}

/* Submit button loading state */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.75s linear infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form group wrapper for better structure */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
}

/* Required field asterisk */
.required {
  color: #dc3545;
  font-weight: 600;
}

/* Form placeholder styling */
.form input::placeholder,
.form textarea::placeholder {
  color: var(--color-text-muted, #888);
  opacity: 0.7;
}

/* Improve form input focus for accessibility */
.form input:focus,
.form textarea:focus {
  outline: none;
}

/* Alert list styling */
.alert ul {
  list-style: disc;
  padding-left: 1rem;
}

.alert li {
  margin: 0.25rem 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Thèmes page détail = couleurs des cartes domaines (body.page-theme-*)
   ═══════════════════════════════════════════════════════════════════ */

body[class*="page-theme-"] .page-hero:not(.page-hero--cream) {
  color: var(--logo-white);
  box-shadow: none;
}

body[class*="page-theme-"] .page-hero:not(.page-hero--cream) h1 {
  color: var(--logo-white);
}

body[class*="page-theme-"] .page-hero:not(.page-hero--cream) h1::after {
  background: rgba(255, 255, 255, 0.92);
}

/* --- Incendie (orange carte 1) --- */
body.page-theme-incendie .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 88% -5%, rgba(255, 213, 79, 0.35), transparent 45%),
    linear-gradient(135deg, #fb8c00 0%, #ef6c00 48%, #d84315 100%);
}

body.page-theme-incendie .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 108, 67, 0.14), transparent 42%),
    #faf6f4;
}

body.page-theme-incendie .page-content .prose {
  border-color: rgba(239, 108, 67, 0.28);
  border-top: 3px solid #ef6c00;
  box-shadow: 0 16px 48px rgba(239, 108, 67, 0.07);
}

body.page-theme-incendie .page-content .prose li::before {
  background: linear-gradient(135deg, #ef6c00, #ffa726);
  box-shadow: 0 0 0 4px rgba(239, 108, 67, 0.2);
}

/* --- HSE --- */
body.page-theme-hse .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 92% 0%, rgba(129, 199, 132, 0.45), transparent 48%),
    linear-gradient(135deg, #1b5e20 0%, #2e7d32 52%, #1b5e20 100%);
}

body.page-theme-hse .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 125, 50, 0.14), transparent 40%),
    #f5faf5;
}

body.page-theme-hse .page-content .prose {
  border-color: rgba(46, 125, 50, 0.28);
  border-top: 3px solid #2e7d32;
  box-shadow: 0 16px 48px rgba(46, 125, 50, 0.07);
}

body.page-theme-hse .page-content .prose li::before {
  background: linear-gradient(135deg, #2e7d32, #66bb6a);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}

/* --- Fluides --- */
body.page-theme-fluides .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 85% -8%, rgba(128, 222, 234, 0.55), transparent 45%),
    linear-gradient(135deg, #006064 0%, #0097a7 52%, #004d61 100%);
}

body.page-theme-fluides .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 151, 167, 0.12), transparent 40%),
    #f5fbfc;
}

body.page-theme-fluides .page-content .prose {
  border-color: rgba(0, 151, 167, 0.26);
  border-top: 3px solid #0097a7;
  box-shadow: 0 16px 48px rgba(0, 151, 167, 0.07);
}

body.page-theme-fluides .page-content .prose li::before {
  background: linear-gradient(135deg, #0097a7, #4dd0e1);
  box-shadow: 0 0 0 4px rgba(0, 151, 167, 0.2);
}

/* --- Électricité --- */
body.page-theme-electricite .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 90% 0%, rgba(100, 181, 246, 0.5), transparent 46%),
    linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #0d47a1 100%);
}

body.page-theme-electricite .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 101, 192, 0.13), transparent 40%),
    #f6f9fc;
}

body.page-theme-electricite .page-content .prose {
  border-color: rgba(21, 101, 192, 0.26);
  border-top: 3px solid #1565c0;
  box-shadow: 0 16px 48px rgba(21, 101, 192, 0.07);
}

body.page-theme-electricite .page-content .prose li::before {
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.2);
}

/* --- Énergétique --- */
body.page-theme-energetique .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 88% -5%, rgba(255, 213, 79, 0.55), transparent 44%),
    linear-gradient(135deg, #f57c00 0%, #ffa000 45%, #e65100 100%);
}

body.page-theme-energetique .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 160, 0, 0.14), transparent 40%),
    #fdfaf3;
}

body.page-theme-energetique .page-content .prose {
  border-color: rgba(245, 124, 0, 0.3);
  border-top: 3px solid #f57c00;
  box-shadow: 0 16px 48px rgba(255, 160, 0, 0.09);
}

body.page-theme-energetique .page-content .prose li::before {
  background: linear-gradient(135deg, #f57c00, #ffca28);
  box-shadow: 0 0 0 4px rgba(255, 160, 0, 0.25);
}

/* --- Analyse risque incendie / explosion --- */
body.page-theme-risque .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 86% 0%, rgba(248, 187, 208, 0.45), transparent 46%),
    linear-gradient(135deg, #4a0072 0%, #880e4f 40%, #ad1457 100%);
}

body.page-theme-risque .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(173, 20, 87, 0.12), transparent 40%),
    #fcf5f9;
}

body.page-theme-risque .page-content .prose {
  border-color: rgba(136, 14, 79, 0.28);
  border-top: 3px solid #880e4f;
  box-shadow: 0 16px 48px rgba(136, 14, 79, 0.08);
}

body.page-theme-risque .page-content .prose li::before {
  background: linear-gradient(135deg, #880e4f, #ec407a);
  box-shadow: 0 0 0 4px rgba(173, 20, 87, 0.22);
}

/* --- Assistance et conseil --- */
body.page-theme-assistance .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 90% -5%, rgba(121, 134, 203, 0.55), transparent 46%),
    linear-gradient(135deg, #1a237e 0%, #283593 50%, #1a237e 100%);
}

body.page-theme-assistance .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(40, 53, 147, 0.12), transparent 40%),
    #f5f7fc;
}

body.page-theme-assistance .page-content .prose {
  border-color: rgba(40, 53, 147, 0.26);
  border-top: 3px solid #283593;
  box-shadow: 0 16px 48px rgba(40, 53, 147, 0.07);
}

body.page-theme-assistance .page-content .prose li::before {
  background: linear-gradient(135deg, #283593, #5c6bc0);
  box-shadow: 0 0 0 4px rgba(40, 53, 147, 0.22);
}

/* --- Formations --- */
body.page-theme-formations .page-hero:not(.page-hero--cream) {
  background:
    radial-gradient(circle at 85% -5%, rgba(206, 147, 216, 0.45), transparent 46%),
    linear-gradient(135deg, #4a148c 0%, #7b1fa2 52%, #4a148c 100%);
}

body.page-theme-formations .page-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 31, 162, 0.12), transparent 40%),
    #faf5fc;
}

body.page-theme-formations .page-content .prose {
  border-color: rgba(123, 31, 162, 0.26);
  border-top: 3px solid #7b1fa2;
  box-shadow: 0 16px 48px rgba(123, 31, 162, 0.07);
}

body.page-theme-formations .page-content .prose li::before {
  background: linear-gradient(135deg, #7b1fa2, #ba68c8);
  box-shadow: 0 0 0 4px rgba(123, 31, 162, 0.2);
}

body[class*="page-theme-"] .page-content .prose .prose-lead {
  color: var(--color-heading);
}
