/* ===== ENCYCLIE — main.css =====
   Design System v2 — Montserrat + Playwrite IS
   Palette : bleu #2B4A9A · jaune #FCBD0C · rouge #E84519 · rose #F6B9C8 · bleu clair #CAE7F0
   Style : flat, no shadow, pill buttons, large radius, bold colour blocks
   ========================================================================== */

/* === Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

@font-face {
  font-family: 'Playwrite IS';
  src: url('/fonts/PlaywriteIS-Thin.ttf') format('truetype');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playwrite IS';
  src: url('/fonts/PlaywriteIS-ExtraLight.ttf') format('truetype');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playwrite IS';
  src: url('/fonts/PlaywriteIS-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playwrite IS';
  src: url('/fonts/PlaywriteIS-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* === Design tokens === */
:root {
  /* Brand colours */
  --enc-bleu:        #2B4A9A;
  --enc-bleu-clair:  #CAE7F0;
  --enc-jaune:       #FCBD0C;
  --enc-rouge:       #E84519;
  --enc-rose:        #F6B9C8;

  /* Tints */
  --enc-bleu-700:    #20376F;
  --enc-bleu-300:    #6E8BCB;
  --enc-rouge-700:   #BF3411;
  --enc-jaune-700:   #D89E00;

  /* Neutrals */
  --enc-noir:        #1A1A1A;
  --enc-creme:       #FBF7EF;
  --enc-blanc:       #FFFFFF;
  --enc-gris:        #6B6B6B;
  --enc-gris-clair:  #E7E2D8;

  /* Semantic */
  --bg:        var(--enc-creme);
  --surface:   var(--enc-blanc);
  --fg1:       var(--enc-noir);
  --fg2:       var(--enc-gris);

  /* Fonts */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-accent:  'Playwrite IS', cursive;

  /* Layout */
  --container: 1180px;

  /* Radii */
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --radius-pill: 999px;

  /* Elevation — FLAT system, no shadows */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --outline-soft: 1px solid var(--enc-gris-clair);
  --outline-bold: 2px solid var(--enc-noir);

  /* Motion */
  --ease-back: cubic-bezier(.34,1.56,.64,1);
  --ease-out:  cubic-bezier(.22,.61,.36,1);
  --dur-fast:  140ms;
  --dur:       240ms;

  /* Legacy aliases — pages intérieures en attente de mise à jour */
  --color-primary:    var(--enc-bleu);
  --color-accent:     var(--enc-rouge);
  --color-light:      var(--enc-creme);
  --color-white:      var(--enc-blanc);
  --color-text:       var(--enc-noir);
  --color-muted:      var(--enc-gris);
  --color-border:     var(--enc-gris-clair);
  --font-heading:     var(--font-display);
  --radius:           var(--radius-sm);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg1);
  background: var(--enc-creme);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === Container === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--enc-bleu);
  color: var(--enc-blanc);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--enc-blanc);
  outline-offset: 2px;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--enc-bleu);
  margin-bottom: 8px;
}

.handwritten {
  font-family: var(--font-accent);
  font-weight: 400;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-back),
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
  line-height: 1;
}
.btn:hover  { transform: scale(1.03); }
.btn:active { transform: scale(.97); }

.btn-primary          { background: var(--enc-bleu);  color: var(--enc-blanc); }
.btn-primary:hover    { background: var(--enc-bleu-700); }
.btn-rouge            { background: var(--enc-rouge); color: var(--enc-blanc); }
.btn-rouge:hover      { background: var(--enc-rouge-700); }
.btn-jaune            { background: var(--enc-jaune); color: var(--enc-noir); }
.btn-jaune:hover      { background: var(--enc-jaune-700); }
.btn-ghost {
  background: transparent;
  color: var(--enc-bleu);
  box-shadow: inset 0 0 0 2px var(--enc-bleu);
}
.btn-ghost:hover      { background: var(--enc-bleu); color: var(--enc-blanc); }
.btn-ghost-blanc {
  background: transparent;
  color: var(--enc-blanc);
  box-shadow: inset 0 0 0 2px var(--enc-blanc);
}
.btn-ghost-blanc:hover { background: var(--enc-blanc); color: var(--enc-noir); }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,239,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--enc-gris-clair);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  justify-self: center;
  grid-column: 2;
}
.logo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo img { width: 52px; height: 52px; transition: transform var(--dur) var(--ease-back); display: block; }
.nav-logo:hover img { transform: scale(1.07); }
.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--enc-bleu);
  opacity: 0;
  pointer-events: none;
}
.nav-logo:hover .logo-ring:nth-child(2) { animation: logo-wave 3.0s ease-out 0s    infinite; }
.nav-logo:hover .logo-ring:nth-child(3) { animation: logo-wave 3.5s ease-out 1.1s  infinite; }
.nav-logo:hover .logo-ring:nth-child(4) { animation: logo-wave 2.8s ease-out 2.3s  infinite; }
@keyframes logo-wave {
  0%   { opacity: 0.70; transform: scale(1);    }
  18%  { opacity: 0.42; transform: scale(1.38); }
  100% { opacity: 0;    transform: scale(3.2);  }
}
.nav-link--active { color: var(--enc-bleu); }
.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  grid-column: 1;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
  grid-column: 3;
}
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fg1);
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-link:hover { color: var(--enc-bleu); }
.nav-cta {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
  grid-column: 3;
  justify-self: end;
}
.hamburger-line {
  display: block; width: 100%; height: 2px;
  background: var(--enc-noir); border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile dropdown */
.nav-mobile {
  display: none;
  background: var(--enc-blanc);
  border-top: 1px solid var(--enc-gris-clair);
  padding: 8px 24px 20px;
}
.nav-mobile.nav-open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile li { border-bottom: 1px solid var(--enc-gris-clair); }
.nav-mobile li:last-child { border-bottom: none; padding-top: 12px; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg1);
}
.nav-mobile .btn {
  display: block;
  text-align: center;
  padding: 14px 22px;
}

/* === MEGA MENU / NAV DROP === */
.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-drop-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--fg1);
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}
.nav-drop-btn:hover,
.nav-drop.is-open .nav-drop-btn { color: var(--enc-bleu); }
.nav-chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out);
}
.nav-drop.is-open .nav-chevron { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--enc-blanc);
  border-bottom: 2px solid var(--enc-gris-clair);
  padding: 24px 0 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    visibility 0.25s;
  z-index: 98;
  box-shadow: 0 12px 40px rgba(26,26,26,0.09);
}
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mega-card {
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-back);
  overflow: hidden;
  position: relative;
  min-height: 148px;
}
.mega-card:hover { transform: scale(1.03); }
.mega-card--web    { background: var(--enc-bleu);  color: var(--enc-blanc); }
.mega-card--design { background: var(--enc-rose);  color: var(--enc-noir); }
.mega-card--mkt    { background: var(--enc-jaune); color: var(--enc-noir); }
.mega-card--ia     { background: var(--enc-rouge); color: var(--enc-blanc); }
.mega-card-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}
.mega-card-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.88;
  flex: 1;
}
.mega-card-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 2px;
  transition: gap var(--dur-fast) var(--ease-out);
}

/* Mobile: cacher mega menu desktop, afficher sous-menu mobile */
.nav-mobile-drop-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg1);
}
.nav-mobile-sub {
  display: none;
  flex-direction: column;
  padding: 2px 0 8px 16px;
  border-top: 1px solid var(--enc-gris-clair);
}
.nav-mobile-sub.is-open { display: flex; }
.nav-mobile-sub li { border-bottom: none; }
.nav-mobile-sub a {
  display: block;
  padding: 9px 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--enc-bleu);
}
.nav-mobile-drop .nav-chevron { color: var(--fg1); }
.nav-mobile-drop.is-open .nav-chevron { transform: rotate(180deg); }

/* === HERO === */
.hero {
  background: var(--enc-creme);
  padding: 96px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-motif {
  position: absolute;
  pointer-events: none;
  user-select: none;
  aria-hidden: true;
}
.hero-motif--tr {
  top: -40px; right: -30px;
  width: 320px; opacity: .5;
  transform: rotate(18deg);
}
.hero-motif--bl {
  bottom: -50px; left: -40px;
  width: 260px; opacity: .4;
  transform: rotate(-15deg);
}
.hero-content { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.hero-chip {
  display: inline-block;
  background: var(--enc-bleu);
  color: var(--enc-blanc);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.hero h1 {
  color: var(--enc-noir);
  margin-bottom: 20px;
}
.hero h1 .accent-rouge { color: var(--enc-rouge); }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  color: var(--fg2);
  max-width: 640px;
  margin: 0 auto 14px;
  line-height: 1.6;
}
.hero-handwritten {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--enc-rouge);
  margin: 0 auto 34px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  border-top: 1px solid var(--enc-gris-clair);
  padding-top: 44px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--enc-bleu);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--fg2);
  margin-top: 6px;
}

/* === SECTION LAYOUT === */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { color: var(--fg1); margin-top: 6px; }
.section-header p { color: var(--fg2); max-width: 580px; margin: 14px auto 0; font-size: 1.05rem; line-height: 1.6; }

/* === SERVICES === */
.services { background: var(--enc-creme); padding-top: 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease-back);
}
.service-card:hover { transform: scale(1.02); }
.service-card--web     { background: var(--enc-bleu);  color: var(--enc-blanc); }
.service-card--design  { background: var(--enc-rose);  color: var(--enc-noir); }
.service-card--mkt     { background: var(--enc-jaune); color: var(--enc-noir); }
.service-card-motif {
  position: absolute;
  bottom: -18px; right: -14px;
  width: 115px;
  pointer-events: none;
  user-select: none;
}
.service-card-motif--web     { opacity: .18; }
.service-card-motif--design  { opacity: .22; }
.service-card-motif--mkt     { opacity: .18; }
.service-card h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.service-card > p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
  opacity: .92;
  position: relative;
  z-index: 1;
  flex: 1;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.service-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.service-card--web .service-tag   { background: rgba(255,255,255,.18); }
.service-card--design .service-tag,
.service-card--mkt .service-tag   { background: rgba(0,0,0,.08); }
.service-card-link {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.service-card:hover .service-card-link { gap: 10px; }
.service-card--web .service-card-link   { color: rgba(255,255,255,.9); }
.service-card--design .service-card-link,
.service-card--mkt .service-card-link   { color: var(--enc-noir); }

/* === DIFFÉRENCIATEUR === */
.diff { background: var(--enc-blanc); }
.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.diff-text .section-label { margin-bottom: 10px; }
.diff-text h2 { margin-bottom: 18px; }
.diff-text > p { color: var(--fg2); margin-bottom: 16px; font-size: 0.97rem; }
.diff-points { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.diff-point { display: flex; gap: 16px; align-items: flex-start; }
.diff-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: var(--enc-bleu-clair);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--enc-bleu);
}
.diff-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diff-point h4 { font-weight: 700; margin-bottom: 4px; }
.diff-point p  { color: var(--fg2); font-size: 0.92rem; margin: 0; }
.diff-visual {
  background: var(--enc-creme);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.diff-compare { display: flex; flex-direction: column; gap: 14px; }
.compare-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--enc-blanc);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
}
.compare-row--highlight {
  border: 2px solid var(--enc-bleu);
  background: var(--enc-bleu-clair);
}
.compare-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-tag--rouge  { background: var(--enc-rouge);      color: var(--enc-blanc); }
.compare-tag--muted  { background: var(--enc-gris-clair); color: var(--fg2); }
.compare-tag--bleu   { background: var(--enc-bleu);       color: var(--enc-blanc); }
.compare-row--highlight .compare-label { font-weight: 700; color: var(--enc-bleu); }

/* === COLLECTIF === */
.collective { background: var(--enc-creme); }
.collective-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.collective-text .section-label { margin-bottom: 10px; }
.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--enc-bleu-clair);
  color: var(--enc-bleu);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.collective-text h2 { margin-bottom: 16px; }
.collective-text > p { color: var(--fg2); margin-bottom: 14px; font-size: 0.97rem; }
.team-list { display: flex; flex-direction: column; gap: 12px; }
.team-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--enc-blanc);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.team-avatar {
  width: 52px; height: 52px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}
.team-avatar--bleu  { background: var(--enc-bleu);  color: var(--enc-blanc); }
.team-avatar--rose  { background: var(--enc-rose);  color: var(--enc-noir); }
.team-avatar--jaune { background: var(--enc-jaune); color: var(--enc-noir); }
.team-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; line-height: 1.2; }
.team-role { font-size: 0.82rem; color: var(--fg2); }

/* === PROCESS === */
.process { background: var(--enc-blanc); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--enc-gris-clair);
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  margin: 0 auto 22px;
}
.process-step:nth-child(1) .step-num { background: var(--enc-bleu);  color: var(--enc-blanc); }
.process-step:nth-child(2) .step-num { background: var(--enc-rouge); color: var(--enc-blanc); }
.process-step:nth-child(3) .step-num { background: var(--enc-jaune); color: var(--enc-noir); }
.process-step:nth-child(4) .step-num { background: var(--enc-rose);  color: var(--enc-noir); }
.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.process-step p  { font-size: 0.88rem; color: var(--fg2); line-height: 1.5; }

/* === CTA === */
.cta-section {
  background: var(--enc-bleu);
  color: var(--enc-blanc);
  text-align: center;
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}
.cta-motif {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .14;
}
.cta-motif--tr { top: -30px; right: -20px; width: 200px; }
.cta-motif--bl { bottom: -30px; left: -20px; width: 180px; transform: rotate(180deg); }
.cta-section h2 { color: var(--enc-blanc); margin-bottom: 14px; position: relative; z-index: 1; }
.cta-section > .container > p { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 36px; font-size: 1.05rem; position: relative; z-index: 1; }
.cta-meta { margin-top: 32px; font-size: 0.8rem; color: rgba(255,255,255,.6); position: relative; z-index: 1; }

/* === FOOTER === */
.footer {
  background: var(--enc-noir);
  color: rgba(255,255,255,.6);
  padding: 44px 0;
}
.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-content p { margin-bottom: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--enc-blanc);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--enc-blanc); }

/* === PAGE HERO (pages intérieures) === */
.page-hero {
  background: var(--enc-bleu);
  color: var(--enc-blanc);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-motif {
  position: absolute;
  pointer-events: none;
  opacity: .14;
}
.page-hero-motif--tr { top: -30px; right: -20px; width: 220px; }
.page-hero-motif--bl { bottom: -30px; left: -20px; width: 180px; transform: rotate(180deg); }
.page-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-hero h1 { color: var(--enc-blanc); margin-bottom: 16px; }
.page-hero .tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* === ACCESSIBILITY / FOCUS === */
.nav-link:focus-visible,
.nav-cta:focus-visible,
.nav-logo:focus-visible,
.nav-drop-btn:focus-visible,
.hamburger:focus-visible,
.nav-mobile a:focus-visible,
.nav-mobile-drop-btn:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--enc-bleu);
  outline-offset: 3px;
}
.nav-logo:focus-visible { border-radius: 50%; }
.nav-cta:focus-visible  { border-radius: var(--radius-pill); }
.hamburger:focus-visible { border-radius: 4px; }

/* Focus animations désactivées si prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .nav-link:focus-visible,
  .nav-cta:focus-visible,
  .nav-logo:focus-visible,
  .nav-drop-btn:focus-visible,
  .hamburger:focus-visible,
  .nav-mobile a:focus-visible,
  .nav-mobile-drop-btn:focus-visible,
  .footer-links a:focus-visible {
    transition: none;
  }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 36px; }
  .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .mega-menu { display: none !important; }
  .hamburger { display: flex; }
  .nav-left, .nav-right { display: none; }
  .nav-container { grid-template-columns: 1fr auto; }
  .nav-logo { grid-column: 1; justify-self: start; }
  .hamburger { grid-column: 2; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-inner, .collective-inner { grid-template-columns: 1fr; gap: 44px; }
  .diff-visual { padding: 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 32px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .btn, .service-card, .service-card-link, .mega-card { transition: none; }
  html { scroll-behavior: auto; }
  .logo-ring { display: none; }
  .nav-logo img { transition: none; }
  .nav-logo:hover img { transform: scale(1.04); }
  .mega-menu { transition: none; }
}
