/* =========================================================================
   ENENCE — refonte 2026
   Vanilla CSS, mobile-first, no framework.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Variables
   ------------------------------------------------------------------------- */
:root {
  /* Couleurs principales */
  --enence-navy: #1a1f4d;
  --enence-navy-deep: #0f1437;
  --enence-navy-light: #2a3170;
  --enence-lime: #c8e024;        /* Vert anis lumineux (matche le logo officiel) */
  --enence-lime-soft: #d4ee3a;   /* Hover / lime plus clair */
  --enence-lime-bright: #d4ee3a; /* Alias rétrocompat — = soft */
  --enence-lime-dark: #a8c01a;   /* Texte sur fond clair, eyebrow */
  --enence-lime-glow: rgba(200, 224, 36, 0.4); /* Lueur drop-shadow */
  --enence-cyan: #3ec6e0;
  --enence-yellow: #f5e64a;

  /* Neutres */
  --enence-white: #ffffff;
  --enence-gray-50: #f7f8fa;
  --enence-gray-100: #eef0f4;
  --enence-gray-200: #e5e7eb;
  --enence-gray-400: #9ca3af;
  --enence-gray-600: #4b5563;
  --enence-gray-900: #111827;

  /* Typographie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 2vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 3vw, 2rem);
  --fs-3xl: clamp(2rem, 4vw, 2.75rem);
  --fs-4xl: clamp(2.5rem, 5vw, 3.75rem);
  --fs-hero: clamp(2.75rem, 7vw, 5.5rem);

  /* Layout */
  --max-width: 1280px;
  --container-padding-x: clamp(1.25rem, 4vw, 3rem);
  --section-padding-y: clamp(4rem, 8vw, 8rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Animations */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 400ms var(--ease-out);
  --transition-slow: 800ms var(--ease-smooth);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 20, 55, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 20, 55, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 20, 55, 0.15);

  /* Header */
  --header-height: 80px;
  --header-height-scrolled: 64px;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--enence-gray-900);
  background: var(--enence-white);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--enence-lime); color: var(--enence-navy-deep); }

:focus-visible {
  outline: 3px solid var(--enence-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   3. Typographie
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--enence-navy-deep);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { font-size: var(--fs-base); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--enence-cyan);
  margin-bottom: 1rem;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--enence-gray-600);
  max-width: 65ch;
}

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.section {
  padding-block: var(--section-padding-y);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--navy { background: var(--enence-navy); color: var(--enence-white); }
.section--navy-deep { background: var(--enence-navy-deep); color: var(--enence-white); }
.section--gray { background: var(--enence-gray-50); }

.section--navy h2,
.section--navy h3,
.section--navy-deep h2,
.section--navy-deep h3 { color: var(--enence-white); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head--center { margin-inline: auto; text-align: center; }

/* Grilles */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   5. Boutons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(1); }

.btn--primary {
  background: var(--enence-lime);
  color: var(--enence-navy-deep);
}
.btn--primary:hover { background: var(--enence-lime-soft); }

.btn--ghost {
  background: transparent;
  color: var(--enence-white);
  border: 2px solid var(--enence-white);
}
.btn--ghost:hover { background: var(--enence-white); color: var(--enence-navy-deep); }

.btn--dark {
  background: var(--enence-navy);
  color: var(--enence-white);
}
.btn--dark:hover { background: var(--enence-navy-deep); }

.btn--link {
  padding: 0;
  background: none;
  color: var(--enence-navy);
  font-weight: 600;
  position: relative;
}
.btn--link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--enence-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.btn--link:hover::after { transform: scaleX(1); }

.btn .arrow { transition: transform var(--transition-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   6. Logo + sphère animée
   ------------------------------------------------------------------------- */
/* =========================================================
   Logo header — bubble PNG officielle (gauche) + texte "Enence"
   ========================================================= */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  height: 44px;
  line-height: 1;
}
.logo-bubble {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  will-change: transform;
  animation: bubble-float-3d 7s ease-in-out infinite;
  transform-origin: center;
}
.logo-text {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  color: var(--enence-navy);
  letter-spacing: -0.01em;
  line-height: 1;
}

@keyframes bubble-float-3d {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg) scale(1);
  }
  25% {
    transform: translate3d(1px, -2px, 0) rotate3d(1, 1, 0, 8deg) scale(1.04);
  }
  50% {
    transform: translate3d(-1px, 1px, 0) rotate3d(0, 1, 0, -5deg) scale(0.98);
  }
  75% {
    transform: translate3d(-2px, -1px, 0) rotate3d(1, 0, 1, 5deg) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-bubble { animation: none; }
}

/* =========================================================
   Logo footer — texte blanc + bubble + baseline
   ========================================================= */
.logo-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.logo-text-footer {
  font-size: 36px;
  font-weight: 600;
  color: var(--enence-white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-bubble-footer {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  animation: bubble-float-3d 7s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
.logo-baseline {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--enence-gray-400);
  margin-top: 4px;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .logo-bubble-footer { animation: none; }
}

@keyframes breathe {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%      { transform: translate(2px, -1px) scale(1.01) rotate(1deg); }
  50%      { transform: translate(-1px, 2px) scale(0.99) rotate(-1deg); }
  75%      { transform: translate(-2px, -2px) scale(1.02) rotate(0.5deg); }
}

.logo-sphere {
  animation: breathe 6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .logo-sphere { animation: none; }
}

/* -------------------------------------------------------------------------
   7. Header
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--enence-gray-100);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-nav {
  display: none;
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-nav ul { display: flex; gap: 0.25rem; align-items: center; }
  .site-nav a {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--enence-gray-900);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
  }
  .site-nav a:hover { color: var(--enence-navy); background: var(--enence-gray-100); }
  .site-nav a[aria-current="page"] { color: var(--enence-navy); font-weight: 600; }
  .site-nav a[aria-current="page"]::after {
    content: '';
    display: block;
    height: 2px;
    width: 24px;
    margin: 4px auto 0;
    background: var(--enence-lime);
    border-radius: var(--radius-pill);
  }
}

.site-header__cta {
  display: none;
}
@media (min-width: 1024px) {
  .site-header__cta { display: inline-flex; }
}

/* Burger mobile */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--enence-navy);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--transition-fast);
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-fast), top var(--transition-fast);
}
.burger span::before { top: -7px; }
.burger span::after  { top:  7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }

/* Overlay mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--enence-navy-deep);
  color: var(--enence-white);
  padding: calc(var(--header-height) + 2rem) var(--container-padding-x) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility 0s linear var(--transition-base);
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility 0s;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  display: block;
  padding: 1rem 0.5rem;
  font-size: var(--fs-2xl);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav a:hover { color: var(--enence-lime); }
.mobile-nav__cta { margin-top: auto; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* -------------------------------------------------------------------------
   7bis. Language switcher (FR/EN — JS pur, pas de redirection)
   ------------------------------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 0.5rem;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--enence-gray-100);
}
.lang-btn {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--enence-gray-600);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--enence-navy); }
.lang-btn.is-active {
  background: var(--enence-navy);
  color: var(--enence-white);
}
@media (max-width: 1023px) {
  .site-header .lang-switch { display: none; }
}

/* Switcher FR/EN dans le menu mobile : centré, espacement vertical */
.lang-switch--mobile {
  align-self: center;
  margin: 1rem auto;
  padding: 6px;
}
.lang-switch--mobile .lang-btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Photo welcome-pack (portrait) : pleine largeur mobile, max-height crop sur desktop */
.welcome-pack-frame img {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 768px) {
  .welcome-pack-frame {
    max-height: 520px;
  }
  .welcome-pack-frame img {
    height: 520px;
    object-fit: cover;
  }
}

/* -------------------------------------------------------------------------
   8. Page offset (header fixed)
   ------------------------------------------------------------------------- */
.page { padding-top: var(--header-height); }
.page--no-offset { padding-top: 0; } /* homepage: hero plein écran absorbe le header */

/* -------------------------------------------------------------------------
   9. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--enence-white);
  background: var(--enence-navy-deep);
  overflow: hidden;
}
.hero--compact { min-height: 56vh; padding-block: 6rem 4rem; }

/* Hero avec image de fond (5 pages : home, histoire, métiers, interventions, références) */
.hero--has-image {
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .hero--has-image {
    height: 70vh;
    min-height: 500px;
  }
}

.hero--home {
  background-image: linear-gradient(rgba(15, 20, 55, 0.78), rgba(15, 20, 55, 0.88)),
                    url('../img/hero/home-hero.webp');
}
.hero--histoire {
  background-image: linear-gradient(rgba(15, 20, 55, 0.65), rgba(15, 20, 55, 0.80)),
                    url('../img/hero/histoire-hero.webp');
}
.hero--metiers {
  background-image: linear-gradient(rgba(15, 20, 55, 0.75), rgba(15, 20, 55, 0.85)),
                    url('../img/hero/metiers-hero.webp');
}
.hero--interventions {
  background-image: linear-gradient(rgba(15, 20, 55, 0.72), rgba(15, 20, 55, 0.82)),
                    url('../img/hero/interventions-hero.webp');
}
.hero--references {
  background-image: linear-gradient(rgba(15, 20, 55, 0.68), rgba(15, 20, 55, 0.82)),
                    url('../img/hero/references-hero.webp');
}
.hero--recrutement {
  background-image: linear-gradient(rgba(15, 20, 55, 0.72), rgba(15, 20, 55, 0.85)),
                    url('../img/hero/recrutement-hero.webp');
}
.hero--contact {
  background-image: linear-gradient(rgba(15, 20, 55, 0.68), rgba(15, 20, 55, 0.82)),
                    url('../img/hero/contact-hero.webp');
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 20, 55, 0.92) 0%, rgba(26, 31, 77, 0.78) 60%, rgba(26, 31, 77, 0.65) 100%);
}
.hero__bg img,
.hero__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%) contrast(1.05);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--enence-lime);
  border: 1px solid var(--enence-lime);
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--enence-white);
  max-width: min(16ch, 100%);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: min(56ch, 100%);
  margin-bottom: 2.5rem;
  overflow-wrap: break-word;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}
.hero__scroll svg { animation: bounce-down 2s ease-in-out infinite; }
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* -------------------------------------------------------------------------
   10. KPI / chiffres clés
   ------------------------------------------------------------------------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
}
/* Variante 3 chiffres centrés */
.kpis--3 {
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (min-width: 768px) {
  .kpis--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}
.kpi { text-align: left; }
.kpis--3 .kpi { text-align: center; }
.kpi__value {
  display: block;
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--enence-lime);
  line-height: 1;
  letter-spacing: -0.03em;
}
.kpi__label {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------
   11. Valeurs — typo signature
   ------------------------------------------------------------------------- */
.values-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--enence-navy-deep);
  color: var(--enence-white);
  text-align: center;
}
.values-banner span {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
  line-height: 1;
}
.value-1,
.value-2,
.value-3,
.value-4,
.value-5 {
  color: var(--enence-white);
  font-weight: 600;
  font-size: 1em;
  opacity: 1;
}

/* -------------------------------------------------------------------------
   12. Cartes
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 2rem;
  background: var(--enence-white);
  border: 1px solid var(--enence-gray-100);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--enence-lime);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--enence-navy-deep);
  color: var(--enence-lime);
  margin-bottom: 1.25rem;
}
.card__icon img,
.card__icon svg { width: 32px; height: 32px; }

/* =========================================================
   Pictogrammes officiels Enence — taille FORCÉE (les SVG sources
   n'ont pas de width/height intrinsèques et explosent par défaut).
   Sélecteur global : tous les SVG du dossier /icons/original/.
   ========================================================= */
img[src*="/icons/original/"],
img[src*="img/icons/original/"] {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  img[src*="/icons/original/"],
  img[src*="img/icons/original/"] {
    width: 56px;
    height: 56px;
  }
}

/* Variante : carte d'icône officielle (background transparent vs .card__icon) */
.card__icon--official {
  background: transparent;
  width: auto;
  height: auto;
  padding: 0;
  margin-bottom: 1rem;
}
.card__icon--official img {
  width: 64px;
  height: 64px;
  display: block;
}

/* Sécurité : SVG inline éventuels dans des cards valeurs/forces/métiers */
.value-card svg,
.force-card svg,
.metier-card svg,
.card svg {
  max-width: 64px;
  max-height: 64px;
}

/* Exceptions : pictogrammes plus grands intentionnels */
.process-image img,
.process-wrap img {
  width: 100% !important;
  height: auto !important;
  max-width: 1100px;
  display: block;
}
/* Section "Expertise technique" : icône d'en-tête plus large (96px) */
.section-head img[src*="/icons/original/"] {
  width: 96px;
  height: 96px;
}
/* Sections "Gestion de projet" / "Mgmt des risques" : illustration 160px */
.founders-photo img,
[style*="aspect-ratio"] img[src*="/icons/original/"] {
  width: 160px;
  height: 160px;
}
/* La photo des fondateurs reprend ses dimensions normales : */
.founders-photo img {
  width: 100%;
  height: auto;
  max-width: 400px;
  object-fit: cover;
  object-position: center;
}

/* Strip de pictos pour bandeau valeurs */
.values-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2.5rem clamp(1rem, 4vw, 3rem) 4rem;
  background: var(--enence-navy-deep);
  color: var(--enence-white);
}
.values-icons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  flex: 0 0 calc(20% - 2.4rem);
  min-width: 90px;
  max-width: 140px;
}
.values-icons__item img {
  width: 56px;
  height: 56px;
  /* Inverse pour rendre les pictos navy en blanc sur fond navy */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.values-icons__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

/* Section processus.svg (page interventions) */
.process-image {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: block;
}
.process-image img {
  width: 100%;
  height: auto;
  /* Garde le SVG sur fond clair pour visibilité (background blanc derrière) */
}
.process-wrap {
  background: var(--enence-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
}
.card__title {
  font-size: var(--fs-xl);
  margin-bottom: 0.75rem;
}
.card__text {
  font-size: var(--fs-base);
  color: var(--enence-gray-600);
  margin-bottom: 1.25rem;
}
.card__link { font-weight: 600; color: var(--enence-navy); }

/* Carte "client" pour références */
.client-card {
  padding: 1.5rem;
  background: var(--enence-white);
  border: 1px solid var(--enence-gray-100);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.client-card:hover {
  transform: translateY(-2px);
  border-color: var(--enence-cyan);
  box-shadow: var(--shadow-md);
}
.client-card__name {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--enence-navy-deep);
  margin-bottom: 0.75rem;
  text-align: center;
}
.client-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.client-card__tags li {
  font-size: var(--fs-xs);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(62, 198, 224, 0.08);
  color: var(--enence-navy);
  border: 1px solid rgba(62, 198, 224, 0.25);
}

/* -------------------------------------------------------------------------
   13. Mur de logos clients
   ------------------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--enence-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--enence-gray-100);
}
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }

.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--enence-white);
  min-height: 110px;
}
.logo-wall__item span {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--enence-gray-400);
  text-transform: uppercase;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.logo-wall__item:hover span {
  color: var(--enence-navy-deep);
  transform: scale(1.06);
}

/* -------------------------------------------------------------------------
   14. Filtres (références)
   ------------------------------------------------------------------------- */
.filters {
  position: sticky;
  top: var(--header-height-scrolled);
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--enence-gray-100);
  padding: 1rem 0;
}
.filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid var(--enence-gray-200);
  color: var(--enence-gray-600);
  background: var(--enence-white);
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  border-color: var(--enence-navy);
  color: var(--enence-navy);
}
.filter-btn.is-active {
  background: var(--enence-navy);
  color: var(--enence-white);
  border-color: var(--enence-navy);
}

@media (max-width: 768px) {
  .filters__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .filters__list::-webkit-scrollbar { display: none; }
  .filters__list > li { flex-shrink: 0; }
  .filter-btn { flex-shrink: 0; }
}

/* Cibles tactiles mobiles : min 44px sur liens footer, tel/mail, flèche scroll */
@media (max-width: 768px) {
  .site-footer ul a,
  .site-footer__bottom a {
    display: inline-block;
    padding-block: 0.5rem;
    min-height: 44px;
    line-height: 1.4;
  }
  a[href^="tel:"],
  a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .hero__scroll {
    padding: 0.75rem 1rem;
    bottom: 1rem;
  }
  .hero--home .hero__actions {
    margin-bottom: 2rem;
  }
}

.is-hidden { display: none !important; }

/* -------------------------------------------------------------------------
   15. Timeline (histoire)
   ------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--enence-lime);
}
.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--enence-lime);
  border: 4px solid var(--enence-white);
  box-shadow: 0 0 0 2px var(--enence-lime);
}
.timeline__date {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--enence-cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.timeline__title { font-size: var(--fs-xl); margin-bottom: 0.5rem; }
.timeline__text { color: var(--enence-gray-600); }

/* -------------------------------------------------------------------------
   16. Process horizontal (interventions)
   ------------------------------------------------------------------------- */
.process {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
  .process::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--enence-navy-light);
    z-index: 0;
  }
}
.process__step { position: relative; z-index: 1; text-align: left; }
@media (min-width: 900px) { .process__step { text-align: center; } }
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: var(--fs-xl);
  font-weight: 700;
  background: var(--enence-lime);
  color: var(--enence-navy-deep);
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--enence-navy);
}
.process__title { font-size: var(--fs-lg); color: var(--enence-white); margin-bottom: 0.5rem; }
.process__text { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.7); }

/* -------------------------------------------------------------------------
   16bis. Section "Aux origines" (histoire.html)
   ------------------------------------------------------------------------- */
.founders-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--enence-white);
  color: var(--enence-navy);
}
.founders-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.founders-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.founders-photo {
  margin: 0;
  position: relative;
}
/* Léger décalage vers le bas pour aligner le haut de l'image avec le 1er paragraphe (desktop uniquement) */
@media (min-width: 861px) {
  .founders-photo {
    margin-top: 2rem;
  }
}
.founders-photo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 4px;
  filter: contrast(1.02);
  box-shadow:
    0 4px 20px rgba(15, 20, 55, 0.12),
    0 1px 3px rgba(15, 20, 55, 0.08);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.founders-photo:hover img {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(15, 20, 55, 0.18),
    0 2px 6px rgba(15, 20, 55, 0.10);
}
.founders-photo figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--enence-gray-600);
  font-style: italic;
  text-align: center;
  letter-spacing: 0.02em;
}
.founders-text .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a9e15; /* lime profond, déduit du lime officiel */
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}
.founders-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--enence-navy);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.01em;
}
.founders-text p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #3d4250;
  margin: 0 0 1.25rem 0;
  max-width: 56ch;
}
.founders-text p:last-child {
  margin-bottom: 0;
}
@media (max-width: 860px) {
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .founders-photo {
    max-width: 360px;
    margin: 0 auto;
  }
  .founders-text {
    text-align: left;
  }
}

/* -------------------------------------------------------------------------
   17. Map / tags pays + voyants scintillants
   ------------------------------------------------------------------------- */
.world-map {
  max-width: 900px;
  margin: 2rem auto;
  display: block;
}
.world-map svg { width: 100%; height: auto; display: block; }

/* Point de fond — trame discrète */
.point-bg {
  fill: rgba(200, 224, 36, 0.22);
}

/* Point actif — pays Enence (couleur via variable, override final en fin de fichier) */
.point-active {
  fill: var(--enence-lime);
  filter: drop-shadow(0 0 5px rgba(200, 224, 36, 0.85));
}

/* Scintillement actif (7 points sur 14) */
@keyframes twinkle-active {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(200, 224, 36, 0.85));
  }
  50% {
    opacity: 0.6;
    transform: scale(1.5);
    filter: drop-shadow(0 0 14px rgba(212, 238, 58, 1));
  }
}
.point-twinkle {
  animation: twinkle-active 2.5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@media (prefers-reduced-motion: reduce) {
  .point-twinkle { animation: none; }
}

/* Conservé pour compat */
.country-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.country-tags li {
  padding: 0.4rem 0.9rem;
  font-size: var(--fs-sm);
  border: 1px solid var(--enence-lime);
  color: var(--enence-lime);
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.country-tags li:hover { background: var(--enence-lime); color: var(--enence-navy-deep); }

/* -------------------------------------------------------------------------
   18. CTA final pleine largeur
   ------------------------------------------------------------------------- */
.cta-banner {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.cta-banner h2 { color: var(--enence-white); margin-bottom: 1rem; }
.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-lg);
  max-width: 56ch;
  margin: 0 auto 2rem;
}

/* -------------------------------------------------------------------------
   19. Formulaires
   ------------------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form__field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--enence-navy-deep);
}
.form__field input,
.form__field textarea,
.form__field select {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--enence-gray-200);
  border-radius: var(--radius-md);
  background: var(--enence-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--enence-cyan);
  box-shadow: 0 0 0 3px rgba(62, 198, 224, 0.15);
}
.form__field textarea { resize: vertical; min-height: 140px; }

.form__rgpd {
  display: flex;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--enence-gray-600);
}
.form__rgpd input {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--enence-navy-deep);
  cursor: pointer;
}

.form__feedback { font-size: var(--fs-sm); }
.form__feedback.is-success { color: #15803d; }
.form__feedback.is-error { color: #b91c1c; }

/* -------------------------------------------------------------------------
   20. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--enence-navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--enence-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); transition: color var(--transition-fast); }
.site-footer a:hover { color: var(--enence-lime); }
.site-footer ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--fs-sm); }
.site-footer__brand p { font-size: var(--fs-sm); max-width: 36ch; }
.site-footer__brand .logo { margin-bottom: 1rem; }
.site-footer__brand .logo path,
.site-footer__brand .logo text { fill: var(--enence-white); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.5); }
.site-footer__bottom a:hover { color: var(--enence-lime); }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  display: inline-flex;
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.social-links a:hover { border-color: var(--enence-lime); }

/* -------------------------------------------------------------------------
   21. Reveal on scroll
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }

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

/* -------------------------------------------------------------------------
   22. Animation d'intro
   ------------------------------------------------------------------------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--enence-navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 600ms var(--ease-smooth);
}
.intro-overlay.is-done {
  opacity: 0;
  pointer-events: none;
}

.intro-stage {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Sphère : PNG officiel bubble-enence-270.png */
.intro-stage__sphere {
  width: 180px;
  height: 180px;
  display: block;
  transform: scale(0);
  opacity: 0;
  transition: transform 800ms var(--ease-out),
              opacity 600ms var(--ease-out),
              width 800ms cubic-bezier(0.65, 0, 0.35, 1),
              height 800ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Wordmark : logo officiel cropé pour ne montrer que le mot "Enence" (sans bubble) */
.intro-stage__wordmark-img {
  display: block;
  height: clamp(2.5rem, 6vw, 4rem);
  width: 0;
  margin-left: 0;
  opacity: 0;
  /* On crop la partie droite (bubble) du logo via aspect-ratio + object-fit */
  aspect-ratio: 390 / 205;
  object-fit: cover;
  object-position: left center;
  /* On filtre pour avoir le mot en blanc sur fond navy */
  filter: brightness(0) invert(1);
  transition: opacity 500ms var(--ease-out),
              width 600ms var(--ease-out),
              margin-left 600ms var(--ease-out);
}

/* Stage 1 : sphère apparaît au centre */
.intro-overlay.stage-1 .intro-stage__sphere {
  transform: scale(1);
  opacity: 1;
}

/* Stage 2 : sphère rétrécit + wordmark apparaît */
.intro-overlay.stage-2 .intro-stage__sphere {
  width: 56px;
  height: 56px;
}
.intro-overlay.stage-2 .intro-stage__wordmark-img {
  /* Largeur calculée pour aspect-ratio 390/205 et height ~3rem ≈ 48-64px */
  width: clamp(4.5rem, 11vw, 7.5rem);
  margin-left: 0.5rem;
  opacity: 1;
}

.intro-skip {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.intro-skip:hover { color: var(--enence-lime); border-color: var(--enence-lime); }

@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none; }
}

/* -------------------------------------------------------------------------
   23. Utilitaires
   ------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--enence-navy-deep);
  color: var(--enence-white);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: clamp(2rem, 4vw, 3rem); } .mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; }

/* =============================== */
/* FORCE FOOTER LOGO SIZE          */
/* =============================== */
footer .footer-logo,
.site-footer .footer-logo,
footer .logo-footer,
.site-footer .logo-footer {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

footer .footer-logo img,
footer .logo-bubble-footer,
.site-footer .footer-logo img,
.site-footer .logo-bubble-footer {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  animation: bubble-float-3d 7s ease-in-out infinite !important;
}

footer .footer-logo .logo-text-footer,
.site-footer .logo-text-footer {
  font-size: 32px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

footer .logo-baseline,
.site-footer .logo-baseline {
  display: block !important;
  width: 100% !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  color: rgba(255,255,255,0.5) !important;
  margin-top: 6px !important;
  text-transform: uppercase !important;
}

/* ============================================ */
/* === LOGO SIZE LOCK — OVERRIDE TERMINAL === */
/* ============================================ */

header .logo-link,
.site-header .logo-link,
nav.main-nav .logo-link,
.header-nav .logo-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  max-height: 44px !important;
  text-decoration: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

header img.logo-bubble,
.site-header img.logo-bubble,
nav.main-nav img.logo-bubble,
.header-nav img.logo-bubble,
.logo-link > img,
.logo-link img.logo-bubble {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  vertical-align: middle !important;
  animation: bubble-float-3d 7s ease-in-out infinite !important;
  transform-origin: center center !important;
  will-change: transform !important;
}

header .logo-link span.logo-text,
.site-header .logo-link span.logo-text,
nav .logo-link span.logo-text {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: var(--enence-navy, #1f3a8a) !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

@media (prefers-reduced-motion: reduce) {
  header img.logo-bubble,
  .site-header img.logo-bubble { animation: none !important; }
}

/* ============================================ */
/* === PICTOS SIZE LOCK — OVERRIDE TERMINAL === */
/* ============================================ */

img[src*="/icons/"],
img[src*="technicite"],
img[src*="exigence"],
img[src*="transparence"],
img[src*="convivialite"],
img[src*="convivalite"],
img[src*="reactivite"],
img[src*="expertise"],
img[src*="gestion-projet"],
img[src*="risque"],
img[src*="proximite"],
img[src*="references_bis"],
img[src*="emploi_local"],
img[src*="solide"],
img[src*="conditions"],
img[src*="diversite"],
img[src*="corruption"],
.value-card img,
.value-card svg,
.force-card img,
.force-card svg,
.metier-card img,
.metier-card svg,
.icon-svg,
.card-icon {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 1.25rem auto !important;
  flex-shrink: 0 !important;
}

@media (max-width: 640px) {
  img[src*="/icons/"],
  .value-card img,
  .force-card img,
  .metier-card img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
}

/* ============================================ */
/* === EXCEPTIONS — schéma, sphère intro, logo officiel === */
/* (Re-postées APRÈS le bloc pictos pour rester prioritaires)  */
/* ============================================ */

img[src*="processus.svg"] {
  width: 100% !important;
  height: auto !important;
  max-width: 1100px !important;
  max-height: none !important;
  margin: 0 auto !important;
}

img[src*="logo-enence-officiel"] {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
}

.intro-stage__sphere {
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  margin: 0 !important;
}

/* Footer bubble : conserve sa taille 44px (override post-pictos) */
footer .logo-bubble-footer,
.site-footer .logo-bubble-footer {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  animation: bubble-float-3d 7s ease-in-out infinite !important;
}

/* ============================================ */
/* === HOME — HERO CENTRÉ + ANIMATION D'ENTRÉE === */
/* ============================================ */

.hero--home .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--home .hero__title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--home .hero__lead {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .hero--home .hero__actions {
    margin-top: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }
  .hero--home .hero__actions > .btn {
    width: auto;
    min-width: 220px;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero--home .hero__badge,
.hero--home .hero__title,
.hero--home .hero__lead,
.hero--home .hero__actions {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--home .hero__badge   { animation-delay: 0ms; }
.hero--home .hero__title   { animation-delay: 100ms; }
.hero--home .hero__lead    { animation-delay: 300ms; }
.hero--home .hero__actions { animation-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--home .hero__badge,
  .hero--home .hero__title,
  .hero--home .hero__lead,
  .hero--home .hero__actions {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === HEROS ÉPURÉS — fond marine uni, sans photo === */
/* (style Stripe partagé : filet lime + eyebrow cyan + H1 blanc + boutons) */
/* À appliquer en ajoutant la classe .hero--epure au <section class="hero ..."> */
/* ============================================ */

.hero--epure {
  background: linear-gradient(rgba(15, 20, 55, 0.72), rgba(15, 20, 55, 0.82)), url('../img/hero-raffinerie.webp') center/cover no-repeat !important;
  background-color: var(--enence-navy-deep);
  min-height: 85vh;
  height: auto;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .hero--epure {
    min-height: auto;
    padding: 5rem 0 3rem;
    background: linear-gradient(rgba(15, 20, 55, 0.80), rgba(15, 20, 55, 0.86)), url('../img/hero-raffinerie.webp') center/cover no-repeat !important;
  }
}

/* Filet lime décoratif : <span class="hero-accent"></span> avant le badge */
.hero-accent {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--enence-lime);
  margin: 0 auto 1rem;
  border: 0;
}

/* Eyebrow épuré (override du pill .hero__badge) */
.hero--epure .hero__badge {
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--enence-cyan);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* Sous-titre légèrement atténué sur fond marine */
.hero--epure .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Bouton ghost : bord blanc semi-transparent */
.hero--epure .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
}
.hero--epure .btn--ghost:hover {
  border-color: var(--enence-white);
}

/* ============================================ */
/* === HOME — CHIFFRES CLÉS (flexbox row) === */
/* ============================================ */

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding-block: 1rem;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 180px;
  min-width: 140px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--enence-lime);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .stats-grid { gap: 1.5rem; }
  .stat-block { flex: 0 1 45%; }
}

/* ============================================ */
/* === HOME — CARTE MONDE avec contours continents === */
/* ============================================ */

.section--world .world-map {
  position: relative;
  max-width: 950px;
  margin: 2rem auto;
  aspect-ratio: 950 / 520;
  background-image: url('../img/world-map.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.section--world .world-map .world-map__points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Points statiques : lime vif */
.section--world .world-map .country-point {
  fill: var(--enence-lime);
  filter: drop-shadow(0 0 4px rgba(200, 224, 36, 0.7));
  transform-origin: center;
  transform-box: fill-box;
}

/* Points actifs (twinkle) : blanc lumineux pour contraste sur navy */
@keyframes country-pulse {
  0%, 100% {
    fill: #ffffff;
    r: 5;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
  }
  50% {
    fill: #ffffff;
    r: 8;
    opacity: 0.55;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 1));
  }
}

.section--world .world-map .country-point.twinkle {
  fill: #ffffff;
  animation: country-pulse 2s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@media (prefers-reduced-motion: reduce) {
  .section--world .world-map .country-point.twinkle { animation: none; }
}

/* ============================================ */
/* === REVEAL-ON-SCROLL — H2 et autres ciblés === */
/* ============================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================ */
/* === HOME — VALEURS : flex 3+2 centré + responsive === */
/* ============================================ */

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid > .value-card {
  flex: 0 0 calc(33.333% - 2rem);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
}

.values-grid > .value-card h3,
.values-grid > .value-card p {
  text-align: center;
  margin: 0;
}

/* Tablette : 2 par ligne (le 5e bloc se centre seul sur ligne 3) */
@media (max-width: 1024px) {
  .values-grid > .value-card {
    flex: 0 0 calc(50% - 1.5rem);
  }
}

/* Mobile : 1 par ligne, tout centré */
@media (max-width: 768px) {
  .values-grid { gap: 2rem; }
  .values-grid > .value-card {
    flex: 0 0 100%;
    max-width: 360px;
  }
}

/* ============================================ */
/* === HOME — RECONNAISSANCES : alignement 3 cartes === */
/* (scopé sur .award-card pour ne pas affecter Forces/Métiers qui partagent .grid--3) */
/* ============================================ */

.award-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  text-align: center;
}

.award-card h3 {
  /* 3 lignes réservées = line-height (1.3) × 3, en em pour suivre la font-size clamp(1.5rem, 3vw, 2rem) */
  min-height: calc(1.3em * 3);
  line-height: 1.3;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.award-card p {
  margin: 0;
}

/* Mobile : 1 colonne, alignement vertical n'a plus de sens */
@media (max-width: 768px) {
  .award-card h3 {
    min-height: auto;
  }
}

/* ============================================ */
/* === ÉQUIPE — RECONNAISSANCES : 2 cartes centrées === */
/* ============================================ */

@media (min-width: 769px) {
  .awards-grid--2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
}

.awards-grid--2 > .card,
.awards-grid--2 > .card .card__title,
.awards-grid--2 > .card .card__text {
  text-align: center;
}

/* ============================================ */
/* === HISTOIRE — HERO CENTRÉ + FADEINUP === */
/* (mirror du pattern .hero--home, adapté pour .hero__subtitle) */
/* ============================================ */

.hero--histoire .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--histoire .hero__title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--histoire .hero__subtitle {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--histoire .hero__badge,
.hero--histoire .hero__title,
.hero--histoire .hero__subtitle {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--histoire .hero__badge    { animation-delay: 0ms; }
.hero--histoire .hero__title    { animation-delay: 100ms; }
.hero--histoire .hero__subtitle { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--histoire .hero__badge,
  .hero--histoire .hero__title,
  .hero--histoire .hero__subtitle {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === EYEBROW CENTRÉ — modifier opt-in === */
/* (à ajouter explicitement aux badges via class="eyebrow eyebrow--centered") */
/* ============================================ */

.eyebrow--centered {
  display: block !important;
  width: fit-content;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ============================================ */
/* === METIERS — HERO CENTRÉ + FADEINUP === */
/* (mirror du pattern .hero--histoire) */
/* ============================================ */

.hero--metiers .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--metiers .hero__title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  hyphens: none;
  overflow-wrap: normal;
}

.hero--metiers .hero__subtitle {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--metiers .hero__badge,
.hero--metiers .hero__title,
.hero--metiers .hero__subtitle {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--metiers .hero__badge    { animation-delay: 0ms; }
.hero--metiers .hero__title    { animation-delay: 100ms; }
.hero--metiers .hero__subtitle { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--metiers .hero__badge,
  .hero--metiers .hero__title,
  .hero--metiers .hero__subtitle {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === INTERVENTIONS — HERO CENTRÉ + FADEINUP === */
/* (mirror du pattern .hero--histoire / .hero--metiers) */
/* ============================================ */

.hero--interventions .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--interventions .hero__title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--interventions .hero__subtitle {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--interventions .hero__badge,
.hero--interventions .hero__title,
.hero--interventions .hero__subtitle {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--interventions .hero__badge    { animation-delay: 0ms; }
.hero--interventions .hero__title    { animation-delay: 100ms; }
.hero--interventions .hero__subtitle { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--interventions .hero__badge,
  .hero--interventions .hero__title,
  .hero--interventions .hero__subtitle {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === REFERENCES — HERO CENTRÉ + FADEINUP === */
/* (mirror du pattern .hero--histoire / .hero--metiers / .hero--interventions) */
/* ============================================ */

.hero--references .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--references .hero__title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--references .hero__subtitle {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--references .hero__badge,
.hero--references .hero__title,
.hero--references .hero__subtitle {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--references .hero__badge    { animation-delay: 0ms; }
.hero--references .hero__title    { animation-delay: 100ms; }
.hero--references .hero__subtitle { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--references .hero__badge,
  .hero--references .hero__title,
  .hero--references .hero__subtitle {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === REFERENCES — Titres catégories centrés === */
/* Cible toutes les sections avec [data-category] : couvre les 5 catégories       */
/* (Pétrole & Gaz, Nucléaire, Pharmacie, Autres industries, Export) en une règle. */
/* Les grilles de client-card en dessous restent inchangées.                      */
/* ============================================ */

section[data-category] .section-head {
  text-align: center;
  margin-inline: auto;
}

/* ============================================ */
/* === METIERS — PILIER #1 head centré + orpheline 7e === */
/* ============================================ */

/* Pilier #1 : icône au-dessus + texte centré (au lieu d'icône à gauche) */
#expertise-technique .section-head {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* 7e carte orpheline (3+3+1) : la centrer dans la dernière rangée */
#expertise-technique .grid--3 > .card:last-child:nth-child(3n+1) {
  grid-column: 2;
}

@media (max-width: 768px) {
  #expertise-technique .grid--3 > .card:last-child:nth-child(3n+1) {
    grid-column: auto;
  }
}

/* ============================================ */
/* === METIERS — PILIER #2 (Gestion de projet) === */
/* Structure mirror du Pilier #1 : icône + texte centré, illustration full-width retirée */
/* La <ul> bullets est en inline-grid pour rester centrée comme un bloc avec ✓ alignés */
/* ============================================ */

#gestion-projet .section-head {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* ============================================ */
/* === METIERS — PILIER #4 (Gestion administrative) === */
/* 5 cartes sur 3 colonnes : flex + justify-content center pour recentrer la dernière rangée incomplète (2 cartes orphelines) */
/* Largeur des cartes calquée sur grid--3 pour parité visuelle avec Expertise technique */
/* ============================================ */

#gestion-administrative .grid--3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

#gestion-administrative .grid--3 > .card {
  flex: 0 1 100%;
}

@media (min-width: 960px) {
  #gestion-administrative .grid--3 > .card {
    flex: 0 1 calc((100% - 2 * clamp(1rem, 2vw, 1.5rem)) / 3);
  }
}

/* ============================================ */
/* === EQUIPE — ENGAGEMENTS : centrage cartes orphelines === */
/* 5 cartes sur 3 colonnes : flex + justify-content center pour recentrer la dernière rangée (Diversité + Lutte contre la corruption) */
/* Largeur des cartes calquée sur grid--3 pour parité visuelle */
/* ============================================ */

#engagements-equipe .grid--3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

#engagements-equipe .grid--3 > .card {
  flex: 0 1 100%;
}

@media (min-width: 960px) {
  #engagements-equipe .grid--3 > .card {
    flex: 0 1 calc((100% - 2 * clamp(1rem, 2vw, 1.5rem)) / 3);
  }
}

/* ============================================ */
/* === EQUIPE — HERO CENTRÉ + FADEINUP === */
/* (mirror du pattern .hero--histoire) */
/* ============================================ */

.hero--equipe .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--equipe .hero__title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  hyphens: none;
  overflow-wrap: normal;
}

.hero--equipe .hero__subtitle {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--equipe .hero__badge,
.hero--equipe .hero__title,
.hero--equipe .hero__subtitle {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--equipe .hero__badge    { animation-delay: 0ms; }
.hero--equipe .hero__title    { animation-delay: 100ms; }
.hero--equipe .hero__subtitle { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--equipe .hero__badge,
  .hero--equipe .hero__title,
  .hero--equipe .hero__subtitle {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === RECRUTEMENT — HERO CENTRÉ + FADEINUP === */
/* (mirror du pattern .hero--histoire, avec CTA centré en plus) */
/* ============================================ */

.hero--recrutement .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--recrutement .hero__title {
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--recrutement .hero__subtitle {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--recrutement .hero__badge,
.hero--recrutement .hero__title,
.hero--recrutement .hero__subtitle,
.hero--recrutement .hero__inner > .btn {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--recrutement .hero__badge       { animation-delay: 0ms; }
.hero--recrutement .hero__title       { animation-delay: 100ms; }
.hero--recrutement .hero__subtitle    { animation-delay: 300ms; }
.hero--recrutement .hero__inner > .btn { animation-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--recrutement .hero__badge,
  .hero--recrutement .hero__title,
  .hero--recrutement .hero__subtitle,
  .hero--recrutement .hero__inner > .btn {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === CONTACT — HERO CENTRÉ + FADEINUP === */
/* (mirror du pattern .hero--histoire) */
/* ============================================ */

.hero--contact .hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--contact .hero__title {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--contact .hero__subtitle {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--contact .hero__badge,
.hero--contact .hero__title,
.hero--contact .hero__subtitle {
  opacity: 0;
  animation: fadeInUp 800ms ease-out forwards;
}

.hero--contact .hero__badge    { animation-delay: 0ms; }
.hero--contact .hero__title    { animation-delay: 100ms; }
.hero--contact .hero__subtitle { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .hero--contact .hero__badge,
  .hero--contact .hero__title,
  .hero--contact .hero__subtitle {
    animation: none;
    opacity: 1;
  }
}

/* ============================================ */
/* === HOME — NOS FORCES : centrage 3 colonnes === */
/* ============================================ */

.force-card {
  text-align: center;
}

/* ============================================ */
/* === HOME — TROIS PILIERS : alignement haut + titres égalisés === */
/* ============================================ */

.metier-card {
  display: flex;
  flex-direction: column;
  align-self: start;
  align-items: center;
  text-align: center;
}

.metier-card h3 {
  /* 2 lignes réservées pour égaliser "Management des risques" (2 lignes) avec les autres (1 ligne) */
  min-height: calc(1.3em * 2);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .metier-card h3 {
    min-height: auto;
  }
}

/* ============================================ */
/* === RECRUTEMENT — Cartes offres (accordéon natif) === */
/* ============================================ */

.offer-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.offer {
  background: var(--enence-white);
  border: 1px solid var(--enence-gray-100);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.offer[open] {
  border-color: var(--enence-lime);
  box-shadow: var(--shadow-lg);
}

.offer__summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 4rem 1.5rem 2rem;
  position: relative;
  min-height: 44px;
  display: block;
}

.offer__summary::-webkit-details-marker,
.offer__summary::marker {
  display: none;
  content: "";
}

.offer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.offer__title {
  font-size: var(--fs-xl);
  margin: 0;
  color: var(--enence-navy);
}

.offer__pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--enence-navy-deep);
  color: var(--enence-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  white-space: nowrap;
}

.offer__lead {
  margin: 0;
  color: var(--enence-gray-600);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.offer__chevron {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  color: var(--enence-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: transform var(--transition-base);
}

.offer[open] .offer__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.offer__body {
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--enence-gray-100);
  margin-top: 0.5rem;
  padding-top: 1.5rem;
}

.offer__subtitle {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--enence-navy);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer__subtitle + .offer__list {
  margin-bottom: 1.5rem;
}

.offer__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.offer__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--enence-gray-600);
  line-height: 1.55;
}

.offer__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--enence-lime);
  font-weight: 700;
}

.offer__apply {
  margin-top: 0.5rem;
  min-height: 44px;
}

@media (max-width: 640px) {
  .offer__summary {
    padding: 1.25rem 3.25rem 1.25rem 1.25rem;
  }
  .offer__chevron {
    right: 1rem;
  }
  .offer__body {
    padding: 1.25rem;
    padding-top: 1.25rem;
  }
  .offer__title {
    font-size: var(--fs-lg);
  }
}

/* ============================================ */
/* === BOUTON "REMONTER EN HAUT" === */
/* ============================================ */

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--enence-navy-deep);
  color: var(--enence-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(15, 20, 55, 0.25);
  padding: 0;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--enence-navy);
  transform: translateY(-2px);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--enence-lime);
  outline-offset: 3px;
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top,
  .scroll-top.is-visible,
  .scroll-top:hover {
    transition: opacity 0.15s linear, visibility 0.15s linear;
    transform: none;
  }
}

/* ============================================ */
/* === FORMULAIRES — Marge anti-chevauchement scroll-top + cible RGPD === */
/* ============================================ */

/* G2 : sur mobile, le bouton submit ne doit pas être recouvert par .scroll-top (bottom 24px + 48px = 72px réservés + buffer) */
@media (max-width: 768px) {
  .form {
    padding-bottom: 88px;
  }
}

/* G4 : cible tactile RGPD ≥ 44px (label cliquable plein, checkbox élargie) */
.form__rgpd {
  align-items: flex-start;
  padding: 12px 0;
  cursor: pointer;
  min-height: 44px;
}

.form__rgpd input {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin-top: 2px;
}

/* ============================================ */
/* === FILTRES RÉFÉRENCES — Indicateur de scroll horizontal (mobile) === */
/* ============================================ */

@media (max-width: 768px) {
  .filters {
    position: sticky;
    /* sticky existant conservé ; ajout du fade overlay */
  }
  .filters > .container {
    position: relative;
  }
  .filters > .container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
    pointer-events: none;
  }
}

/* ============================================ */
/* === Centrage horizontal global des cartes === */
/* (exclut les accordéons .offer dont le summary doit rester en ligne) */
/* ============================================ */

.card:not(.offer) {
  text-align: center;
}

/* G6 : filtres références — cible tactile ≥ 44px */
.filter-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* C3 : mentions légales — légère respiration verticale sur les liens inline (cible tactile mobile) */
.legal-prose p {
  line-height: 1.7;
}
.legal-prose p a {
  padding: 2px 0;
  display: inline-block;
  line-height: 1.5;
}

/* ============================================ */
/* === Formulaires — anti-overflow horizontal mobile === */
/* ============================================ */

.form {
  width: 100%;
  max-width: 100%;
}

.form__field input,
.form__field textarea,
.form__field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  /* Réduit le padding interne du form qui mange la largeur sur petit écran */
  .form[style] {
    padding: 1.25rem !important;
  }
  /* Submit pleine largeur sur mobile pour ne pas être tronqué et faciliter le tap */
  .form > button[type="submit"] {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================ */
/* === MOBILE — Centrages ciblés (desktop inchangé) === */
/* ============================================ */

@media (max-width: 768px) {
  /* histoire.html — bouton "Découvrir l'équipe d'aujourd'hui" centré */
  .history-constants-text {
    text-align: center;
  }
  /* equipe.html — "NOTRE ÉQUIPE / Une équipe à votre service" centré */
  .team-intro-text {
    text-align: center;
  }
  .team-intro-text .eyebrow {
    display: inline-block;
  }
  /* equipe.html — "DÉVELOPPEMENT DURABLE / Nos engagements au quotidien" centré */
  #engagements-equipe .section-head {
    text-align: center;
  }
  #engagements-equipe .section-head .eyebrow {
    display: inline-block;
  }
}

/* ============================================ */
/* === DESKTOP — Centrages ciblés (mobile inchangé, déjà centré ci-dessus) === */
/* ============================================ */

@media (min-width: 769px) {
  /* histoire.html — paragraphes + bouton "Découvrir l'équipe d'aujourd'hui" centrés */
  .history-constants-text {
    text-align: center;
  }
  /* equipe.html — eyebrow "NOTRE ÉQUIPE" + titre + paragraphe centrés (image à droite inchangée) */
  .team-intro-text {
    text-align: center;
  }
  .team-intro-text .eyebrow {
    display: inline-block;
  }
  /* equipe.html — "DÉVELOPPEMENT DURABLE / Nos engagements au quotidien" centrés */
  #engagements-equipe .section-head {
    text-align: center;
    margin-inline: auto;
  }
  #engagements-equipe .section-head .eyebrow {
    display: inline-block;
  }
  /* recrutement.html — "POURQUOI NOUS REJOINDRE / Quatre raisons de choisir Enence" centrés */
  #pourquoi-rejoindre .section-head {
    text-align: center;
    margin-inline: auto;
  }
  #pourquoi-rejoindre .section-head .eyebrow {
    display: inline-block;
  }
}

/* ============================================ */
/* === MOBILE — Bouton "Nous contacter" dans le header (visible <1024px) === */
/* === Desktop ≥1024px : invisible (le .site-header__cta classique prend le relais) === */
/* ============================================ */

.header-contact-btn {
  display: none;
}

@media (max-width: 1023px) {
  .header-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    background: var(--enence-lime-soft);
    color: var(--enence-navy-deep);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
    text-decoration: none;
    min-height: 36px;
    line-height: 1;
    white-space: nowrap;
    margin-right: 0.5rem;
    transition: background 0.2s ease;
  }
  .header-contact-btn:hover,
  .header-contact-btn:focus-visible {
    background: var(--enence-lime);
  }
}

/* Très petits écrans : compacter */
@media (max-width: 380px) {
  .header-contact-btn {
    padding: 0.4rem 0.625rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
  }
}
