/* ============================================
   Edile Consulting — Design System
   ============================================ */

:root {
  /* Brand */
  --primary: #2E135B;
  --primary-container: #2e1966;
  --secondary: #b89fc9;
  --secondary-soft: #b89fc9;
  --lavande: #c4a8f2;
  --primary-fixed: #e8ddff;

  /* Surfaces */
  --bg: #f8f7fa;
  --surface: #fef7ff;
  --surface-low: #f9f1ff;
  --surface-container: #f4eafc;
  --white: #ffffff;
  --outline: #e8e5ec;
  --outline-strong: #cac4d2;

  /* Section rhythm (Mix) */
  --section-lilac: #efe8ff;
  --section-lilac-soft: #f5f0ff;
  --section-dark: #2e135b;

  /* Text */
  --text: #17131f;
  --text-muted: #484550;
  --text-soft: #797581;

  /* Type */
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: Inter, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 4px 20px rgba(23, 19, 31, 0.04);

  /* Motion */
  --reveal-duration: 900ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 80px;
}

.section-head {
  margin-bottom: 48px;
  max-width: 36rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-contact {
  background: var(--white);
  color: var(--primary);
}

.btn-contact:hover {
  background: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .btn-contact {
  background: var(--primary);
  color: var(--white);
}

.site-header.is-scrolled .btn-contact:hover {
  background: var(--primary-container);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-container);
}

.btn-primary .material-symbols-outlined {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.btn-submit:hover {
  background: rgba(255, 255, 255, 0.92);
}

.btn-submit .material-symbols-outlined {
  transition: transform 0.3s var(--ease);
}

.btn-submit:hover .material-symbols-outlined {
  transform: translateX(6px);
}

/* Header — hauteur identique sur toutes les pages */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: auto;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

/* opening state overridden once ready */

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--outline);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Logo clair sur hero sombre */
.site-header:not(.is-scrolled) .logo img {
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .logo img,
.page-inner .site-header .logo img {
  filter: none;
}

@media (min-width: 900px) {
  .logo img {
    height: 48px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-desktop a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

/* Random letter swap (hover) — équivalent RandomLetterSwap */
.nav-desktop a.nav-letter-swap {
  display: inline-flex;
  align-items: flex-end;
  text-decoration: none;
}

.nav-letter-swap__track {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.nav-letter-swap__unit {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
  vertical-align: bottom;
}

.nav-letter-swap__unit.is-space {
  width: 0.28em;
}

.nav-letter-swap__char {
  display: block;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.34, 1.45, 0.64, 1);
  transition-delay: var(--swap-delay, 0s);
}

.nav-letter-swap__char--out {
  transform: translateY(0);
}

.nav-letter-swap__char--in {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-110%);
}

/* reverse=true → lettres glissent vers le bas */
.nav-letter-swap.is-swapped .nav-letter-swap__char--out {
  transform: translateY(110%);
}

.nav-letter-swap.is-swapped .nav-letter-swap__char--in {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .nav-letter-swap__char {
    transition: none;
  }
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
  opacity: 0.95;
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a[aria-current="page"]::after,
.nav-desktop a.is-nav-active::after {
  transform: scaleX(1);
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-desktop a[aria-current="page"],
.nav-desktop a.is-nav-active {
  color: var(--white);
  font-weight: 600;
}

.site-header.is-scrolled .nav-desktop a {
  color: var(--text-muted);
}

.site-header.is-scrolled .nav-desktop a:hover,
.site-header.is-scrolled .nav-desktop a[aria-current="page"],
.site-header.is-scrolled .nav-desktop a.is-nav-active {
  color: var(--primary);
}

.page-inner .site-header .nav-desktop a::after {
  background: var(--primary);
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.site-header.is-scrolled .nav-divider {
  background: var(--outline);
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 64px;
  height: 32px;
  padding: 3px;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 10, 24, 0.42);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lang-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
  pointer-events: none;
}

.lang-switch.is-en::before {
  transform: translateX(32px);
}

.lang-sep {
  display: none;
}

.lang-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.5;
  font: inherit;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
  box-shadow: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.lang-btn:focus,
.lang-btn:focus-visible,
.lang-btn:active {
  outline: none;
  box-shadow: none;
  background: none;
}

.lang-btn.is-active,
.lang-btn:hover {
  opacity: 1;
  color: var(--white);
}

.site-header.is-scrolled .lang-switch,
.page-inner .site-header .lang-switch,
body.menu-open .lang-switch {
  background: #fff;
  border-color: rgba(184, 159, 201, 0.45);
  color: var(--text-muted);
}

.site-header.is-scrolled .lang-switch::before,
.page-inner .site-header .lang-switch::before,
body.menu-open .lang-switch::before {
  background: var(--primary);
}

.site-header.is-scrolled .lang-btn,
.page-inner .site-header .lang-btn,
body.menu-open .lang-btn {
  color: var(--text-muted);
}

.site-header.is-scrolled .lang-btn.is-active,
.site-header.is-scrolled .lang-btn:hover,
.page-inner .site-header .lang-btn.is-active,
.page-inner .site-header .lang-btn:hover,
body.menu-open .lang-btn.is-active,
body.menu-open .lang-btn:hover {
  color: var(--white);
  opacity: 1;
}

.btn-contact {
  display: none;
}


.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-social-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.site-header.is-scrolled .nav-social-link,
.page-inner .site-header .nav-social-link {
  color: var(--primary);
}

.site-header.is-scrolled .nav-social-link:hover,
.page-inner .site-header .nav-social-link:hover {
  color: var(--secondary);
  background: rgba(46, 19, 91, 0.06);
}

@media (max-width: 480px) {
  .nav-social-link {
    width: 30px;
    height: 30px;
  }

  .nav-social {
    gap: 0;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.4s var(--ease), opacity 0.3s ease, top 0.4s var(--ease);
}

.menu-toggle-bars span:nth-child(1) {
  top: 1px;
}

.menu-toggle-bars span:nth-child(2) {
  top: 7.25px;
}

.menu-toggle-bars span:nth-child(3) {
  top: 13.5px;
}

body.menu-open .menu-toggle-bars span:nth-child(1) {
  top: 7.25px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

body.menu-open .menu-toggle-bars span:nth-child(3) {
  top: 7.25px;
  transform: rotate(-45deg);
}

.site-header.is-scrolled .menu-toggle {
  color: var(--primary);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px var(--gutter) 24px;
  background: var(--white);
  border-bottom: 1px solid var(--outline);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--outline);
  color: var(--primary);
  font-weight: 500;
}

.nav-mobile a:last-child {
  border-bottom: 0;
}

@media (max-width: 899px) {
  .site-header {
    display: flex;
    flex-direction: column;
    height: var(--header-h);
    overflow: hidden;
    transition: height 0.5s var(--ease), background-color 0.4s ease, border-color 0.4s ease;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .header-actions {
    display: flex;
    width: auto;
    margin-left: 0;
  }

  .header-actions .nav-social {
    display: none;
  }

  .site-header .lang-switch {
    position: fixed;
    left: 50%;
    top: calc(env(safe-area-inset-top, 0px) + (var(--header-h) / 2));
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 401;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-header {
    inset: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #faf8fc;
    border-bottom-color: transparent;
    backdrop-filter: none;
    z-index: 400;
  }

  body.menu-open .header-inner {
    flex-shrink: 0;
    z-index: 2;
  }

  body.menu-open .site-header .logo img {
    filter: none;
  }

  body.menu-open .menu-toggle {
    color: var(--primary);
  }

  body.menu-open .cookie-banner {
    display: none !important;
  }

  .nav-mobile {
    position: static;
    inset: auto;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    padding: 8px 28px calc(28px + env(safe-area-inset-bottom, 0px));
    background: #faf8fc;
    border-bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s var(--ease);
  }

  .nav-mobile[hidden] {
    display: flex !important;
  }

  body.menu-open .nav-mobile {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-mobile-links {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
  }

  .nav-mobile-links a,
  .nav-mobile > a {
    position: relative;
    padding: 18px 0;
    border-bottom: 1px solid rgba(46, 19, 91, 0.08);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .nav-mobile-links a:last-child,
  .nav-mobile > a:last-child {
    border-bottom: 1px solid rgba(46, 19, 91, 0.08);
  }

  .nav-mobile-links a[aria-current="page"],
  .nav-mobile-links a.is-nav-active,
  .nav-mobile > a[aria-current="page"],
  .nav-mobile > a.is-nav-active {
    font-weight: 700;
  }

  .nav-mobile-links a[aria-current="page"]::after,
  .nav-mobile-links a.is-nav-active::after,
  .nav-mobile > a[aria-current="page"]::after,
  .nav-mobile > a.is-nav-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 42px;
    height: 1.5px;
    background: var(--secondary);
  }

  .nav-mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 28px;
  }

  .nav-mobile-social .nav-social-link {
    width: 42px;
    height: 42px;
    color: var(--primary);
  }

  .nav-mobile-social .nav-social-link:hover {
    color: var(--secondary);
    background: rgba(46, 19, 91, 0.06);
  }
}

@keyframes edile-nav-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 899px) {
  .nav-mobile-links a,
  .nav-mobile-social {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.45s var(--ease);
  }

  body.menu-open .nav-mobile-links a,
  body.menu-open .nav-mobile-social {
    opacity: 1;
    transform: none;
  }

  body.menu-open .nav-mobile-links a:nth-child(1) { transition-delay: 0.08s; }
  body.menu-open .nav-mobile-links a:nth-child(2) { transition-delay: 0.12s; }
  body.menu-open .nav-mobile-links a:nth-child(3) { transition-delay: 0.16s; }
  body.menu-open .nav-mobile-links a:nth-child(4) { transition-delay: 0.2s; }
  body.menu-open .nav-mobile-links a:nth-child(5) { transition-delay: 0.24s; }
  body.menu-open .nav-mobile-social { transition-delay: 0.28s; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bars span,
  .nav-mobile,
  .nav-mobile-links a,
  .nav-mobile-social,
  .site-header {
    transition: none !important;
  }
}

@media (min-width: 900px) {
  /* Logo à gauche — actions à droite (largeur réelle, sans écraser FR/EN) */
  .logo {
    width: 200px;
  }

  .header-actions {
    width: auto;
    min-width: 200px;
  }

  .nav-desktop {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 14px;
  }

  .nav-desktop a {
    font-size: 13px;
    white-space: nowrap;
  }

  @media (min-width: 1200px) {
    .nav-desktop {
      gap: 26px;
    }

    .nav-desktop a {
      font-size: 14px;
    }
  }

  .btn-contact {
    display: inline-flex;
  }

  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }

  .site-header .lang-switch,
  .site-header.is-scrolled .lang-switch,
  .page-inner .site-header .lang-switch {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
  }

  .site-header .lang-switch::before,
  .site-header.is-scrolled .lang-switch::before,
  .page-inner .site-header .lang-switch::before {
    display: none;
  }

  .site-header .lang-sep {
    display: inline;
    opacity: 0.55;
    pointer-events: none;
    color: #fff;
  }

  .site-header .lang-btn {
    flex: none;
    height: auto;
    min-width: 0;
    opacity: 0.72;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  }

  .site-header .lang-btn.is-active,
  .site-header .lang-btn:hover {
    opacity: 1;
    color: #fff;
  }

  .site-header.is-scrolled .lang-btn,
  .page-inner .site-header .lang-btn {
    color: var(--text-muted);
  }

  .site-header.is-scrolled .lang-btn.is-active,
  .site-header.is-scrolled .lang-btn:hover,
  .page-inner .site-header .lang-btn.is-active,
  .page-inner .site-header .lang-btn:hover {
    color: var(--primary);
    opacity: 1;
  }
}

/* Sticky hero + page overlay reveal */
.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
  background: var(--primary);
}

/* Following sections stack above the pinned hero */
.hero-sticky ~ * {
  position: relative;
  z-index: 10;
}

.hero {
  --hero-cover: 0;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
  /* Vidéo fixe : pas de scale (évite les bandes noires sur les côtés) */
  transform: none;
  opacity: 1;
  filter: brightness(calc(1 - (var(--hero-cover) * 0.1)));
  will-change: filter;
}

.page-overlay {
  position: relative;
  z-index: 10;
  isolation: isolate;
  /* Pas de filet clair en haut (évite la ligne blanche au scroll sur le hero) */
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero {
    filter: brightness(calc(1 - (var(--hero-cover) * 0.08)));
  }
}

/* Page loader / opening */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  gap: 20px;
  background: var(--primary);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.page-loader-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  margin-inline: auto;
  filter: brightness(0) invert(1);
  animation: loader-brand 1.15s var(--ease) both;
}

.page-loader-bar {
  width: min(220px, 58vw);
  height: 2px;
  margin-inline: auto;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.page-loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 168, 242, 0.35) 35%,
    #ffffff 50%,
    rgba(196, 168, 242, 0.35) 65%,
    transparent 100%
  );
  animation: loader-bar 1.1s ease-in-out infinite;
}

body.is-ready .page-loader,
body.is-internal-nav .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

/* Retour depuis une autre page : pas de grande intro */
body.is-internal-nav .hero-brand,
body.is-internal-nav .hero-content h1,
body.is-internal-nav .hero-lead,
body.is-internal-nav .hero-glass-cta,
body.is-internal-nav .hero-scroll,
body.is-internal-nav .hero-video,
body.is-internal-nav .hero-overlay,
body.is-internal-nav .site-header {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

body.is-loading {
  overflow: hidden;
}

/*
  Sous le loader : hero + CTA pleinement peints pour LiquidGlass
  (sinon capture opacity:0 → bouton noir à l’ouverture).
*/
body.is-loading .hero-video,
body.is-loading .hero-overlay,
body.is-loading.glass-cta-preparing .hero-glass-cta,
body.is-loading .hero-glass-cta.glass-ready {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}

body.is-loading .site-header,
body.is-ready .site-header {
  opacity: 0;
  transform: translateY(-16px);
}

body.is-ready .site-header {
  animation: header-in 0.9s var(--ease) 0.15s both;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  /* Légère scale pour éviter tout filet noir aux bords (ratio vidéo) */
  transform: scale(1.04);
  transform-origin: center center;
  opacity: 1;
  overflow: hidden;
  background: #2e135b;
}

.hero-yt {
  pointer-events: none;
}

.hero-yt-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Conteneur + iframe YouTube : scale fort pour cropper la barre / chrome restant */
.hero-yt-player,
.hero-yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  border: 0;
  transform: translate(-50%, -50%) scale(1.55);
  pointer-events: none !important;
}

.hero-yt iframe {
  z-index: 0;
}

/* Voile transparent : bloque toute interaction résiduelle sur le player */
.hero-yt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-yt.is-playing .hero-yt-poster {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

body.is-ready .hero-video {
  animation: hero-video-in 2.4s var(--ease) 0.1s both;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 52rem;
  padding-block: calc(var(--header-h) + 48px) 0;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--white);
  opacity: 0;
}

body.is-ready .hero-brand {
  animation: hero-attention 1.2s var(--ease) 0.45s both;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
}

body.is-ready .hero-content h1 {
  animation: hero-attention 1.3s var(--ease) 0.7s both;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
}

body.is-ready .hero-lead {
  animation: hero-attention 1.25s var(--ease) 0.95s both;
}

.hero-glass-cta {
  position: relative;
  z-index: 3;
  margin-top: 0;
  margin-bottom: 96px;
  padding: 14px 32px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
  /* Glass CSS par défaut — visible même avant / sans WebGL */
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: visible;
  opacity: 0;
}

/* Apparition rapide — forwards seul (pas both = pas d’opacity 0 pendant le délai) */
body.is-ready .hero-glass-cta {
  animation: hero-attention 0.65s var(--ease) 0.15s forwards;
}

body.is-internal-nav .hero-glass-cta,
body.is-ready .hero-glass-cta.glass-ready,
body.is-ready .hero-glass-cta.is-liquid {
  opacity: 1;
  animation: none;
}

.hero-glass-cta.is-liquid {
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.hero-glass-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #c4a8f2;
}

.hero-glass-cta.is-liquid:hover {
  background: transparent;
  color: #fff;
}

.hero-glass-cta.glass-fallback:hover,
.hero-glass-cta.glass-ready:not(.is-liquid):hover {
  color: #fff;
  border-color: #c4a8f2;
  background: rgba(255, 255, 255, 0.2);
}

/* Fallback premium tant que WebGL n’est pas prêt (évite le noir GitHub) */
.hero-glass-cta.glass-fallback,
.hero-glass-cta.glass-ready:not(.is-liquid) {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
}

body.is-ready .hero-scroll {
  animation: hero-scroll-in 0.8s var(--ease) 1.45s both, bounce 2s ease-in-out 2.3s infinite;
}

/* Intro */
.intro {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 159, 201, 0.28), transparent 55%),
    var(--section-dark);
  border-bottom: 1px solid rgba(184, 159, 201, 0.22);
  color: #fff;
}

.intro-grid {
  display: grid;
  gap: 40px;
}

.intro-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.intro-copy p {
  max-width: 36rem;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.intro-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e8ddff;
}

.intro-copy .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #c4a8f2;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.intro-copy > * {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible .intro-copy .eyebrow {
  animation: intro-copy-in 0.8s var(--ease) 0.08s both;
}

[data-reveal].is-visible .intro-copy .eyebrow::before {
  animation: intro-line 0.7s var(--ease) 0.22s both;
}

[data-reveal].is-visible .intro-copy h2 {
  animation: intro-copy-in 0.95s var(--ease) 0.22s both;
}

[data-reveal].is-visible .intro-copy p {
  animation: intro-copy-in 1s var(--ease) 0.42s both;
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat.is-counting .stat-value {
  animation: stat-pulse 0.45s var(--ease);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.stat--locations {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.stat-cities {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-cities::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--lavande) 18%,
    var(--lavande) 82%,
    transparent
  );
  opacity: 0.7;
}

.stat-city {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 0;
  color: #fff;
  opacity: 0;
  transform: translateX(-14px);
}

[data-reveal].is-visible .stat-city {
  animation: loc-in 0.75s var(--ease) calc(0.18s + var(--i) * 0.14s) both;
}

.stat-city-pin {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--lavande);
  box-shadow: 0 0 0 3px rgba(196, 168, 242, 0.12);
  transition: border-color 0.55s var(--ease), background-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease), transform 0.55s var(--ease);
}

.stat-city-pin::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--secondary);
  opacity: 0;
  pointer-events: none;
}

.stat-city-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  opacity: 0.42;
  transform: translateX(0);
  transition: opacity 0.55s var(--ease), color 0.55s var(--ease), transform 0.55s var(--ease);
}

.stat-city.is-active .stat-city-pin {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(184, 159, 201, 0.16);
}

.stat-city.is-active .stat-city-pin::after {
  animation: loc-ping 2.2s var(--ease) infinite;
}

.stat-city.is-active .stat-city-name {
  opacity: 1;
  color: #fff;
  transform: translateX(3px);
}

.stat-city:hover .stat-city-name {
  opacity: 1;
}

@media (hover: hover) {
  .stat-cities.is-paused .stat-city:hover .stat-city-pin {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 0 5px rgba(184, 159, 201, 0.16);
  }
}

@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 48px;
  }

  .intro-stats {
    border-left: 1px solid var(--outline-strong);
    padding-left: 40px;
  }
}

/* Expertises accordion */
.expertises {
  background: var(--section-dark);
}

.accordion-item {
  border-top: 1px solid var(--outline);
  transition: background-color 0.35s ease;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--outline);
}

.accordion-item.is-open,
.accordion-item:hover {
  background: var(--surface-container);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--primary);
}

.accordion-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  min-width: 1.5rem;
}

.accordion-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  transition: transform 0.35s var(--ease);
}

.accordion-item:hover .accordion-title {
  transform: translateX(8px);
}

.accordion-icon {
  transition: transform 0.35s var(--ease);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.35s ease, padding 0.35s ease;
  padding: 0 8px 0 calc(8px + 1.5rem + 24px);
}

.accordion-item.is-open .accordion-panel {
  max-height: 520px;
  opacity: 1;
  padding-bottom: 28px;
}

.accordion-panel[hidden] {
  display: block;
}

.accordion-grid {
  display: grid;
  gap: 24px;
  max-width: 52rem;
}

.accordion-grid p,
.accordion-grid li {
  color: var(--text-muted);
}

.accordion-extra {
  margin-top: 12px;
}

.accordion-grid ul {
  display: grid;
  gap: 8px;
}

.accordion-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.accordion-grid li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .accordion-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Expertise teasers (homepage) */
.section-head--row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: none;
  align-items: flex-start;
}

.section-head--row > div {
  max-width: 36rem;
}

.btn-expertise-all {
  flex-shrink: 0;
}

/* Notre approche — accordion images + copy */
.approche {
  --approche-ease: cubic-bezier(0.33, 0.12, 0.18, 1);
  --approche-panel: 1.15s;
  --approche-ink: #2E135B;
  --approche-violet: #714ad4;
  --approche-lavande: #c4a8f2;
  --approche-muted: #54515c;
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 12px);
  background: #ffffff;
}

.approche-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.approche-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.42;
}

.approche-orb--a {
  width: min(48vw, 400px);
  height: min(48vw, 400px);
  left: -14%;
  top: 18%;
  background: rgba(113, 74, 212, 0.22);
  animation: exp-orb-a 16s ease-in-out infinite;
}

.approche-orb--b {
  width: min(44vw, 340px);
  height: min(44vw, 340px);
  right: -12%;
  bottom: 8%;
  background: rgba(196, 168, 242, 0.32);
  animation: exp-orb-b 18s ease-in-out infinite;
}

.approche-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(28px, 4vw, 40px);
}

.approche-accordion {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 320px;
  height: min(58vw, 420px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  opacity: 0;
}

.approche-accordion::-webkit-scrollbar {
  display: none;
}

.approche-acc-item {
  position: relative;
  flex: 0.2 1 0;
  width: auto;
  min-width: 48px;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  box-shadow:
    0 14px 32px rgba(46, 19, 91, 0.14),
    0 4px 12px rgba(46, 19, 91, 0.06);
  transition:
    flex var(--approche-panel) var(--approche-ease),
    box-shadow 0.9s ease,
    filter 0.9s ease;
  will-change: flex;
}

.approche-acc-item.is-active {
  flex: 3.6 1 0;
  width: auto;
  min-width: 0;
  box-shadow:
    0 22px 44px rgba(46, 19, 91, 0.2),
    0 6px 16px rgba(46, 19, 91, 0.1);
}

.approche-acc-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.12);
  filter: brightness(0.9) saturate(0.95);
  transition:
    transform 1.25s var(--approche-ease),
    filter 1s ease;
  will-change: transform;
}

.approche-acc-item.is-active img {
  transform: scale(1);
  filter: brightness(1) saturate(1);
}

.approche-acc-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0.75;
  z-index: 1;
  transition: opacity 0.9s ease;
}

.approche-acc-item.is-active::after {
  opacity: 1;
}

.approche-acc-label {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  opacity: 0.88;
  transition:
    bottom var(--approche-panel) var(--approche-ease),
    left var(--approche-panel) var(--approche-ease),
    transform var(--approche-panel) var(--approche-ease),
    font-size 0.9s ease,
    opacity 0.7s ease;
  /* Fermé : texte vertical, bas de la bande */
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center center;
}

.approche-acc-item.is-active .approche-acc-label {
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  font-size: 1.05rem;
  opacity: 1;
}

/* Noms longs : courte en bandeau, complète en fondu après la rotation */
.approche-acc-label--long {
  display: inline-grid;
  place-items: center;
  justify-items: center;
}

.approche-acc-label-short,
.approche-acc-label-full {
  grid-area: 1 / 1;
  transition:
    opacity 0.5s ease,
    transform 0.5s var(--approche-ease),
    filter 0.5s ease,
    visibility 0.5s;
}

.approche-acc-label-short {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.approche-acc-label-full {
  display: block;
  opacity: 0;
  visibility: hidden;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: min(16rem, 88%);
  width: max-content;
  pointer-events: none;
  /* Fermé : ne pas élargir le label (évite un bandeau vertical trop large) */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 10px));
}

.approche-acc-item.is-active .approche-acc-label-short {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  /* Disparaît en même temps que le nom complet apparaît */
  transition-delay: 0.5s;
}

.approche-acc-item.is-active .approche-acc-label-full {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  /* Laisse la rotation se terminer avant le changement de nom */
  transition-delay: 0.55s;
}

.approche-acc-item:not(.is-active) .approche-acc-label-short {
  transition-delay: 0.15s;
}

.approche-acc-item:not(.is-active) .approche-acc-label-full {
  transition-delay: 0s;
}

.approche-acc-item.is-active .approche-acc-label--long {
  font-size: clamp(0.78rem, 1.4vw, 0.98rem);
  letter-spacing: 0;
  max-width: 92%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-height: 2.6em;
}

.approche-copy {
  min-width: 0;
}

.approche-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  opacity: 0;
}

.approche-copy .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--approche-violet);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.approche-copy h2 {
  color: var(--approche-ink);
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 22px;
  opacity: 0;
}

.approche-text {
  display: grid;
  gap: 14px;
  position: relative;
}

/* Texte réduit : 2 premiers paragraphes ; le reste s’ouvre en douceur */
.approche-text > p:nth-child(n + 3) {
  display: block;
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(10px);
  filter: none;
  transition:
    max-height 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.55s ease,
    visibility 0s linear 0.55s;
}

.approche-text > p:nth-child(3) {
  transition-delay: 0.04s;
}

.approche-text > p:nth-child(4) {
  transition-delay: 0.1s;
}

.approche-text > p:nth-child(5) {
  transition-delay: 0.16s;
}

.approche-text.is-expanded > p:nth-child(n + 3) {
  max-height: 12rem;
  margin: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition:
    max-height 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.55s ease,
    visibility 0s linear 0s;
}

.approche-text p {
  color: var(--approche-muted);
  font-size: clamp(0.95rem, 1.45vw, 1.05rem);
  line-height: 1.7;
  opacity: 0;
}

.approche-voir-tous {
  margin-top: 18px;
  gap: 8px;
  opacity: 0;
  transition: margin 0.45s ease, transform 0.35s ease;
}

.approche-voir-tous .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.approche-copy.is-text-open .approche-voir-tous {
  margin-top: 18px;
}

.approche-copy.is-text-open .approche-voir-tous .material-symbols-outlined {
  transform: rotate(180deg);
}

.approche-sign {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(113, 74, 212, 0.18);
  opacity: 0;
}

/* Galerie ouverte : bandes égales, puis hover comme la version réduite */
.approche-accordion.is-gallery .approche-acc-item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  transition:
    flex 0.7s var(--approche-ease),
    box-shadow 0.9s ease,
    transform 1s var(--approche-ease);
}

.approche-accordion.is-gallery .approche-acc-item:nth-child(1) {
  transition-delay: 0.02s;
}
.approche-accordion.is-gallery .approche-acc-item:nth-child(2) {
  transition-delay: 0.06s;
}
.approche-accordion.is-gallery .approche-acc-item:nth-child(3) {
  transition-delay: 0.1s;
}
.approche-accordion.is-gallery .approche-acc-item:nth-child(4) {
  transition-delay: 0.14s;
}
.approche-accordion.is-gallery .approche-acc-item:nth-child(5) {
  transition-delay: 0.18s;
}
.approche-accordion.is-gallery .approche-acc-item:nth-child(6) {
  transition-delay: 0.22s;
}

.approche-accordion.is-gallery .approche-acc-item.is-active {
  flex: 3.6 1 0;
}

.approche-accordion.is-gallery .approche-acc-label {
  bottom: 1.15rem;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  font-size: clamp(0.68rem, 1.1vw, 0.85rem);
  white-space: nowrap;
}

.approche-accordion.is-gallery:has(.approche-acc-item.is-active) .approche-acc-item:not(.is-active) .approche-acc-label {
  bottom: 5.5rem;
  transform: translateX(-50%) rotate(-90deg);
  font-size: 0.95rem;
}

.approche-accordion.is-gallery .approche-acc-item.is-active .approche-acc-label {
  bottom: 1.35rem;
  transform: translateX(-50%) rotate(0deg);
  font-size: clamp(0.78rem, 1.4vw, 0.98rem);
  white-space: normal;
  max-width: 92%;
  text-align: center;
  line-height: 1.25;
}

.approche-accordion.is-gallery .approche-acc-item img {
  transform: scale(1);
}

.approche-accordion.is-gallery:has(.approche-acc-item.is-active) .approche-acc-item:not(.is-active) img {
  transform: scale(1.12);
}

.approche-sign-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--approche-ink);
  letter-spacing: -0.02em;
}

.approche-sign-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b89fc9;
}

.approche.is-inview .approche-copy .eyebrow {
  animation: intro-copy-in 0.8s var(--approche-ease) 0.28s both;
}

.approche.is-inview .approche-copy .eyebrow::before {
  animation: intro-line 0.7s var(--approche-ease) 0.4s both;
}

.approche.is-inview .approche-copy h2 {
  animation: intro-copy-in 0.95s var(--approche-ease) 0.4s both;
}

.approche.is-inview .approche-text p:nth-child(1) {
  animation: intro-copy-in 0.85s var(--approche-ease) 0.52s both;
}

.approche.is-inview .approche-text p:nth-child(2) {
  animation: intro-copy-in 0.85s var(--approche-ease) 0.6s both;
}

.approche.is-inview .approche-voir-tous {
  animation: intro-copy-in 0.85s var(--approche-ease) 0.78s both;
}

.approche.is-inview .approche-sign {
  animation: intro-copy-in 0.85s var(--approche-ease) 0.68s both;
}

.approche.is-inview .approche-accordion {
  animation: intro-copy-in 0.9s var(--approche-ease) 0.12s both;
}

.approche.is-settled .approche-copy .eyebrow,
.approche.is-settled .approche-copy h2,
.approche.is-settled .approche-text p:nth-child(1),
.approche.is-settled .approche-text p:nth-child(2),
.approche.is-settled .approche-sign,
.approche.is-settled .approche-accordion,
.approche.is-settled .approche-voir-tous {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.approche.is-settled .approche-text.is-expanded > p:nth-child(n + 3) {
  opacity: 1;
  animation: none;
}

.approche.is-settled .approche-copy .eyebrow::before {
  opacity: 1;
  transform: scaleX(1);
  animation: none;
}

.approche-copy.is-text-open .approche-text p:nth-child(1),
.approche-copy.is-text-open .approche-text p:nth-child(2),
.approche-copy.is-text-open .approche-text.is-expanded > p:nth-child(n + 3) {
  opacity: 1;
}

@media (min-width: 900px) {
  .approche-wrap {
    flex-direction: row;
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
  }

  .approche-accordion {
    flex: 1.15 1 0;
    min-width: 0;
    width: 100%;
    height: min(62vh, 450px);
    gap: 12px;
    padding: 0;
    margin: 0;
    overflow: visible;
    justify-content: stretch;
    align-items: stretch;
    box-sizing: border-box;
  }

  .approche-acc-item {
    flex: 0.18 1 0;
    width: auto;
    min-width: 56px;
    max-width: none;
    height: 100%;
    border-radius: 22px;
    box-shadow:
      0 12px 28px rgba(46, 19, 91, 0.12),
      0 2px 8px rgba(46, 19, 91, 0.06);
  }

  /* Carte active : flex animé (pas de width fixe) → transition fluide */
  .approche-acc-item.is-active {
    flex: 3.8 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    box-shadow:
      0 18px 36px rgba(46, 19, 91, 0.16),
      0 4px 12px rgba(46, 19, 91, 0.08);
  }

  .approche-copy {
    flex: 0.95 1 0;
    max-width: 34rem;
  }
}

/* Mobile : les 5 photos restent accessibles (dont Le Drian) */
@media (max-width: 899px) {
  .approche-accordion {
    gap: 8px;
    height: min(68vw, 360px);
    min-height: 260px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    padding-inline: 2px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .approche-acc-item {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 16px;
    scroll-snap-align: center;
    transition:
      flex-basis var(--approche-panel) var(--approche-ease),
      width var(--approche-panel) var(--approche-ease),
      box-shadow 0.9s ease,
      filter 0.9s ease;
  }

  .approche-acc-item.is-active {
    flex: 0 0 min(52vw, 210px);
    width: min(52vw, 210px);
    min-width: 0;
    max-width: min(52vw, 210px);
  }

  .approche-acc-label {
    font-size: 0.72rem;
    bottom: 4.2rem;
  }

  .approche-acc-item.is-active .approche-acc-label {
    font-size: 0.88rem;
    bottom: 1rem;
  }

  .approche-wrap {
    gap: 1cm;
  }
}

@media (prefers-reduced-motion: reduce) {
  .approche-acc-item,
  .approche-acc-item img {
    transition: none !important;
  }

  .approche-copy .eyebrow,
  .approche-copy h2,
  .approche-text p,
  .approche-sign,
  .approche-accordion,
  .approche-voir-tous {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

.expertises {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 159, 201, 0.28), transparent 55%),
    var(--section-dark);
  color: #fff;
}

.expertises-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.expertises-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  will-change: transform;
}

.expertises-orb--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  left: -12%;
  top: 8%;
  background: rgba(184, 159, 201, 0.35);
  animation: exp-orb-a 14s ease-in-out infinite;
}

.expertises-orb--b {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  right: -10%;
  bottom: 4%;
  background: rgba(196, 168, 242, 0.28);
  animation: exp-orb-b 16s ease-in-out infinite;
}

.expertises .section-head {
  position: relative;
  z-index: 1;
}

.expertises .section-head h2 {
  color: #fff;
}

.expertises .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.expertises .section-head h2,
.expertises .section-head p {
  opacity: 0;
}

.expertises.is-visible .section-head h2 {
  animation: intro-copy-in 0.9s var(--ease) 0.08s both;
}

.expertises.is-visible .section-head p {
  animation: intro-copy-in 0.95s var(--ease) 0.24s both;
}

.expertise-teasers {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding-top: 28px;
}

.expertise-teasers::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--secondary) 25%,
    var(--lavande) 50%,
    #ffffff 62%,
    var(--lavande) 74%,
    var(--secondary) 100%
  );
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(184, 159, 201, 0.45);
}

.expertises.is-visible .expertise-teasers::before {
  animation:
    exp-rule 1.1s var(--ease) 0.18s forwards,
    exp-rule-flow 2.2s linear 1.2s infinite;
}

.expertise-teaser {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --spot-x: 50%;
  --spot-y: 40%;
  --lift: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 28px 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(232, 229, 236, 0.9);
  background: rgba(255, 255, 255, 0.72);
  scroll-margin-top: calc(var(--header-h) + 24px);
  opacity: 0;
  transform: translateY(var(--lift));
  transition: border-color 0.45s var(--ease), background-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), transform 0.2s ease-out;
}

/* Cartes expertises — verre clair sur fond violet (comme témoignages) */
.expertise-teaser--media {
  min-height: 300px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.08) 55%,
      rgba(184, 159, 201, 0.12) 100%
    );
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.expertise-teaser--media::before {
  content: none;
}

.expertise-teaser--rp,
.expertise-teaser--influence,
.expertise-teaser--strategie {
  --exp-bg: none;
}

.expertise-teaser--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 168, 242, 0.22), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(113, 74, 212, 0.2), transparent 40%);
  opacity: 1;
  transition: opacity 0.45s ease;
}

.expertise-teaser--media .expertise-teaser-index {
  display: none;
}

.expertise-teaser--media .expertise-teaser-body {
  z-index: 2;
}

.expertise-teaser-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #c4a8f2;
  font-size: 26px;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  will-change: transform, box-shadow;
  transition: background 0.35s ease, color 0.35s ease;
}

/* Flotte comme les anciens 01 / 02 / 03 */
.expertises.is-visible .expertise-teaser-icon,
.expertises.is-settled .expertise-teaser-icon {
  animation: exp-icon-float 5.2s ease-in-out calc(var(--i, 0) * 0.45s) infinite !important;
}

.expertise-teaser--media .expertise-teaser-body h3 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.expertise-teaser--media .expertise-teaser-body h3::after {
  background: linear-gradient(90deg, #c4a8f2, rgba(196, 168, 242, 0));
}

.expertise-teaser--media .expertise-teaser-body p {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.expertises.is-visible .expertise-teaser {
  animation: exp-card-in 0.95s var(--ease) calc(0.22s + var(--i) * 0.16s) both;
}

.expertise-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    640px circle at var(--spot-x) var(--spot-y),
    rgba(196, 168, 242, 0.34),
    rgba(232, 221, 255, 0.16) 42%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.expertise-teaser-index {
  display: none;
}

.expertises.is-visible .expertise-teaser-index {
  display: none;
  animation: none;
}

.expertise-teaser-body {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  opacity: 0;
}

.expertises.is-visible .expertise-teaser-body {
  animation: exp-body-in 0.9s var(--ease) calc(0.38s + var(--i) * 0.16s) both;
}

.expertises.is-settled .section-head h2,
.expertises.is-settled .section-head p,
.expertises.is-settled .expertise-teaser,
.expertises.is-settled .expertise-teaser-body {
  opacity: 1;
  animation: none;
  filter: none;
}

.expertises.is-settled .expertise-teaser {
  transform: translateY(var(--lift)) scale(1);
}

.expertises.is-settled .expertise-teaser--media {
  transform: translateY(var(--lift)) scale(1);
}

.expertises.is-settled .expertise-teaser-body {
  transform: none;
}

.expertises.is-settled .expertise-teaser-index {
  display: none;
  animation: none;
}

.expertise-teaser-body h3 {
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  transform: translateX(0);
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}

.expertise-teaser-body h3::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--lavande));
  transition: width 0.55s var(--ease);
}

.expertise-teaser-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 48rem;
  transition: color 0.4s ease;
}

.expertise-teaser:hover {
  --lift: -10px;
  /* Couleur de carte inchangée au hover */
  border-color: rgba(232, 229, 236, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(46, 19, 91, 0.1);
}

.expertise-teaser--media:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.08) 55%,
      rgba(184, 159, 201, 0.12) 100%
    );
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.expertise-teaser--media:hover::before {
  content: none;
}

.expertise-teaser--media:hover::after {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 168, 242, 0.22), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(113, 74, 212, 0.2), transparent 40%);
}

.expertise-teaser:hover::after {
  opacity: 1;
}

.expertise-teaser:hover .expertise-teaser-index {
  display: none;
}

.expertise-teaser--media:hover .expertise-teaser-index {
  display: none;
}

.expertise-teaser:hover .expertise-teaser-body h3 {
  transform: translateX(8px);
  color: var(--secondary);
}

.expertise-teaser--media:hover .expertise-teaser-body h3 {
  color: #fff;
}

.expertise-teaser:hover .expertise-teaser-body h3::after {
  width: 72px;
}

.expertise-teaser--media:hover .expertise-teaser-icon {
  animation-play-state: paused !important;
  transform: translate3d(-4px, -12px, 0) scale(1.08);
  background: rgba(196, 168, 242, 0.28);
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.btn-voir-plus {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-voir-plus .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}

.btn-voir-plus:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.btn-voir-plus:hover .material-symbols-outlined {
  transform: translate(2px, -2px);
}

@media (min-width: 768px) {
  .section-head--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .expertise-teaser {
    min-height: 280px;
    padding: 32px 28px 28px;
  }

  .btn-voir-plus {
    grid-column: auto;
    margin-top: 0;
    padding: 10px 16px;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
  }

  .btn-voir-plus:hover {
    border-color: var(--primary);
    background: var(--white);
  }
}

@media (min-width: 900px) {
  .expertise-teasers {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }

  .expertise-teaser {
    min-height: 360px;
    padding: 36px 30px 32px;
  }

  .expertise-teaser--media {
    min-height: 360px;
    transform: translateY(var(--lift)) scale(1);
    transition:
      border-color 0.45s var(--ease),
      background-color 0.45s var(--ease),
      box-shadow 0.45s var(--ease),
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .expertise-teaser--media:hover {
    z-index: 4;
    transform: translateY(-12px) scale(1.08);
    box-shadow:
      0 28px 60px rgba(46, 19, 91, 0.34),
      0 0 0 1px rgba(196, 168, 242, 0.28);
  }

  .expertises.is-settled .expertise-teaser--media:hover {
    transform: translateY(-12px) scale(1.08);
  }

  .expertises.is-settled .expertise-teaser--media.is-tilting:hover {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
      translateY(-12px) scale(1.08);
  }

  .expertise-teaser-index {
    display: none;
  }

  .expertise-teaser-body {
    max-width: none;
  }

  .expertise-teaser:hover {
    z-index: 2;
  }

  .expertise-teaser.is-tilting {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
      translateY(var(--lift));
  }

  .expertise-teaser--media.is-tilting {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
      translateY(var(--lift)) scale(1);
  }

  .expertise-teaser--media.is-tilting:hover {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
      translateY(-12px) scale(1.08);
  }
}

@media (max-width: 767px) {
  .expertise-teaser {
    min-height: 220px;
    transform: translateY(var(--lift));
  }

  .expertises-orb {
    filter: blur(28px);
    opacity: 0.4;
  }
}

@media (hover: none) {
  .expertise-teaser {
    transform: translateY(var(--lift));
    transition: border-color 0.45s var(--ease), background-color 0.45s var(--ease),
      box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
  }

  .expertise-teaser:active {
    --lift: -6px;
  }
}

/* Inner page — Expertises (layout maquette) */
.page-inner {
  background: #f7f4fb;
}

.page-inner .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--outline);
  backdrop-filter: blur(12px);
}

.page-inner .site-header .menu-toggle {
  color: var(--primary);
}

.page-inner .site-header .nav-desktop a {
  color: var(--text-muted);
}

.page-inner .site-header .nav-desktop a:hover,
.page-inner .site-header .nav-desktop a[aria-current="page"],
.page-inner .site-header .nav-desktop a.is-nav-active {
  color: var(--primary);
}

.exp-hero {
  padding: calc(var(--header-h) + 64px) 0 48px;
}

.exp-hero .eyebrow {
  margin-bottom: 20px;
}

.exp-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--primary);
  max-width: 18ch;
  margin-bottom: 20px;
}

.exp-hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 40rem;
}

.exp-blocks {
  padding-bottom: 40px;
}

.exp-block {
  padding-block: 48px;
  border-top: 1px solid var(--outline);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.exp-block:last-child {
  border-bottom: 1px solid var(--outline);
}

.exp-block-grid {
  display: grid;
  gap: 32px;
}

.exp-block-num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.exp-block-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.exp-block-body > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 36rem;
}

.exp-list {
  display: grid;
  gap: 14px;
}

.exp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.exp-list .material-symbols-outlined {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 14px;
  color: var(--secondary);
  border: 1px solid rgba(184, 159, 201, 0.35);
  border-radius: 50%;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-card:not(.project-card):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.case-card-media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.case-card-media--1 {
  background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuDFm3NE4AK_yHq1vDrnPvQOuzqFWJ68AluRGeTnAPyuXAf3fDkQxxyrxA4yywJAWfIUYuuyOAoz4BA7OTxYE-fMk1dx-rm-FpKpubZVydYs9mi5jXijLGdkV9a_RrQOLtUpmOrKGao_jYltUmab6xeV4MUy11jy0yxC0reTvgJGxX8g2setnROAh0AhYP-Zhmtv95VyrxBVp9tztHcN9qyToLTnnOs242AMYIrOuhDLCh0PtRh7Fqr3PN3zY4o7J3wwcVPo9MyyT2A");
}

.case-card-media--2 {
  background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuDKYFzS0RU-lzJN7HWnhu3_mptU7cdhjIQC6rQv1o7wfc2mDKpLFxCSnTeVEPa1qN8ehi5Dmb3SIfBSrHAE4zOuFCwNsiIMGAwKyo3mySuNhRtuhPlGISzmmCrsD_EwxbQ2oUvOR3GYc5RLbngjZ0IJ5pn2yETp0VfgAV_ZJ64p2liV_ZLKMn-IHgwuObPNrJvAZgddu_ZF7-gX82UQ6ZYjtiElTYHbFHmpTpgJXnP7DJLfz8bMcW4HtUdaJkzOmb6-kHuwu3M0x_4");
}

.case-card-media--3 {
  background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuAC0u0-741Z5Utug8dbiEfgDsnW-gdr79TNYYRtePFvzEp6MMX2uQyZzWXQrnLdr5WpeOvamTpHLeFtft7pd7EEUemm95f1L39RH301AovgVjouubgMIadflFX_QzviYIu08cYUd29fp7cqIavSopZH3DKWn3COW7m8ufHtKNmwZ9HZyH1Bzai5r-n1K6TJy0_qDXTIYB06VZITE3sX1xIctrtS9cJMtwZzZQXMMBoK29924_kktppow_y0uFysgwYGjmXPipewMCw");
}

.case-card-content {
  padding: 20px;
}

.case-card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.case-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.case-card-content p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.exp-cta {
  background: var(--primary-container);
  color: var(--white);
  padding: 80px 0;
}

.exp-cta-inner {
  max-width: 40rem;
}

.exp-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.exp-cta p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  .exp-hero {
    padding: calc(var(--header-h) + 80px) 0 64px;
  }

  .exp-block {
    padding-block: 64px;
  }

  .exp-block-grid {
    grid-template-columns: 0.9fr 1.4fr 0.95fr;
    gap: 40px;
    align-items: start;
  }

  .exp-block-head {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ============================================
   Fondateurs — showcase éditorial premium
   ============================================ */
.founders {
  --founders-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --founders-duration: 700ms;
  --founders-ink: #2E135B;
  --founders-deep: #321080;
  --founders-violet: #714ad4;
  --founders-lavande: #c4a8f2;
  --founders-muted: #54515c;
  position: relative;
  background:
    radial-gradient(circle at 15% 50%, rgba(113, 74, 212, 0.06), transparent 35%),
    #f9f8fc;
  overflow: hidden;
}

.founders-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.founders-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.42;
}

.founders-orb--a {
  width: min(46vw, 380px);
  height: min(46vw, 380px);
  left: -12%;
  top: 12%;
  background: rgba(113, 74, 212, 0.2);
  animation: exp-orb-a 16s ease-in-out infinite;
}

.founders-orb--b {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  right: -10%;
  bottom: 6%;
  background: rgba(196, 168, 242, 0.3);
  animation: exp-orb-b 18s ease-in-out infinite;
}

.founders-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), 1320px);
  margin-inline: auto;
}

.founders-head {
  max-width: 42rem;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.founders-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  opacity: 0;
}

.founders-head .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--founders-violet);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.founders-head h2 {
  color: var(--founders-ink);
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  opacity: 0;
}

.founders-head > p {
  color: var(--founders-muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  max-width: 36rem;
  opacity: 0;
}

.founders.is-inview .founders-head .eyebrow {
  animation: intro-copy-in 0.8s var(--founders-ease) 0.06s both;
}

.founders.is-inview .founders-head .eyebrow::before {
  animation: intro-line 0.7s var(--founders-ease) 0.18s both;
}

.founders.is-inview .founders-head h2 {
  animation: intro-copy-in 0.95s var(--founders-ease) 0.18s both;
}

.founders.is-inview .founders-head > p {
  animation: intro-copy-in 0.95s var(--founders-ease) 0.32s both;
}

.founders.is-settled .founders-head .eyebrow,
.founders.is-settled .founders-head h2,
.founders.is-settled .founders-head > p {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.founders.is-settled .founders-head .eyebrow::before {
  opacity: 1;
  transform: scaleX(1);
  animation: none;
}

.founders-stage {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.founders-media {
  position: relative;
  justify-self: start;
  width: 100%;
  max-width: 420px;
  opacity: 0;
}

.founders.is-inview .founders-media {
  animation: tgc-in-left 1.05s var(--founders-ease) 0.16s both;
}

.founders.is-settled .founders-media {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.founders.is-inview .founders-frame {
  animation: founders-frame-in 1.15s var(--founders-ease) 0.22s both;
}

.founders.is-inview .founders-frame::after {
  animation: case-shine 1.25s var(--founders-ease) 0.5s both;
}

.founders.is-inview .founders-mark {
  animation: case-copy-in 0.8s var(--founders-ease) 0.62s both;
}

.founders.is-settled .founders-frame,
.founders.is-settled .founders-mark {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.founders-copy {
  position: relative;
  display: grid;
  min-height: 0;
  align-content: start;
  opacity: 0;
}

.founders.is-inview .founders-copy {
  animation: tgc-in-right 1.05s var(--founders-ease) 0.24s both;
}

.founders.is-settled .founders-copy {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.founders.is-inview .founders-switch {
  animation: case-copy-in 0.85s var(--founders-ease) 0.55s both;
}

.founders.is-settled .founders-switch {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.founders-portrait {
  position: relative;
  width: 100%;
}

.founders-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: #ebe6f4;
  box-shadow:
    0 18px 45px rgba(46, 19, 91, 0.1),
    0 8px 18px rgba(46, 19, 91, 0.06);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.founders-portrait:hover .founders-frame {
  transform: translateY(-2px);
  box-shadow:
    0 24px 55px rgba(46, 19, 91, 0.12),
    0 10px 22px rgba(46, 19, 91, 0.08);
}

.founders-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 1.1s ease;
}

.founders-portrait:hover .founders-frame::after {
  transform: translateX(120%);
}

.founders-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition:
    opacity var(--founders-duration) var(--founders-ease),
    transform var(--founders-duration) var(--founders-ease),
    visibility 0s linear var(--founders-duration);
  pointer-events: none;
}

.founders-img.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
  transition:
    opacity var(--founders-duration) var(--founders-ease),
    transform var(--founders-duration) var(--founders-ease),
    visibility 0s linear 0s;
}

.founders-img.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  z-index: 2;
}

.founders-mark {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
}

.founders-mark span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(46, 19, 91, 0.35);
}

.founders-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity var(--founders-duration) var(--founders-ease),
    transform var(--founders-duration) var(--founders-ease),
    visibility 0s linear var(--founders-duration);
  pointer-events: none;
}

.founders-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--founders-duration) var(--founders-ease),
    transform var(--founders-duration) var(--founders-ease),
    visibility 0s linear 0s;
  pointer-events: auto;
  z-index: 1;
}

.founders-panel.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition:
    opacity 0.45s var(--founders-ease),
    transform 0.45s var(--founders-ease),
    visibility 0s linear 0.45s;
  pointer-events: none;
  z-index: 0;
}

.founders-index {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--founders-violet);
}

.founders-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--founders-ink);
}

.founders-role {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b89fc9;
}

.founders-rule {
  display: block;
  width: 50px;
  height: 2px;
  margin-bottom: 28px;
  background: var(--founders-ink);
}

.founders-bio {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}

.founders-bio p {
  margin: 0;
  max-width: 650px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--founders-muted);
}

.founders-panel.is-active .founders-index,
.founders-panel.is-active h3,
.founders-panel.is-active .founders-role,
.founders-panel.is-active .founders-rule,
.founders-panel.is-active .founders-bio p {
  animation: founders-stagger 0.75s var(--founders-ease) both;
}

.founders-panel.is-active .founders-index { animation-delay: 0ms; }
.founders-panel.is-active h3 { animation-delay: 60ms; }
.founders-panel.is-active .founders-role { animation-delay: 120ms; }
.founders-panel.is-active .founders-rule { animation-delay: 170ms; }
.founders-panel.is-active .founders-bio p:nth-child(1) { animation-delay: 220ms; }
.founders-panel.is-active .founders-bio p:nth-child(2) { animation-delay: 280ms; }
.founders-panel.is-active .founders-bio p:nth-child(3) { animation-delay: 340ms; }

@keyframes founders-stagger {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

@keyframes founders-frame-in {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-1.5deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.founders-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-top: 8px;
  max-width: 520px;
  opacity: 0;
}

.founders-switch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 10px;
  text-align: left;
  cursor: pointer;
  color: #8d8997;
  opacity: 0.45;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.founders-switch-btn:hover {
  opacity: 0.75;
  color: var(--founders-ink);
}

.founders-switch-btn.is-active {
  color: var(--founders-ink);
  opacity: 1;
}

.founders-switch-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.founders-switch-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.founders-switch-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founders-switch-track {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(46, 19, 91, 0.12);
  overflow: hidden;
}

.founders-switch-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  background: var(--founders-ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.founders-switch-btn.is-active .founders-switch-bar.is-running {
  animation: founders-progress 5s linear forwards;
}

.founders-stage.is-paused .founders-switch-bar.is-running {
  animation-play-state: paused;
}

@keyframes founders-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (min-width: 900px) {
  .founders-stage {
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: clamp(48px, 6vw, 100px);
  }

  .founders-media {
    max-width: 420px;
  }
}

@media (max-width: 899px) {
  .founders-media {
    justify-self: center;
    width: 100%;
    max-width: 380px;
  }

  .founders-panel h3 {
    font-size: 38px;
  }

  .founders-bio p {
    font-size: 16px;
  }

  .founders-switch {
    max-width: none;
  }

  .founders.is-inview .founders-media,
  .founders.is-inview .founders-copy {
    animation-name: tgc-in-up;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founders-img,
  .founders-panel,
  .founders-switch-btn,
  .founders-frame::after {
    transition: opacity 0.35s ease !important;
  }

  .founders-img,
  .founders-img.is-active,
  .founders-img.is-leaving,
  .founders-panel,
  .founders-panel.is-active,
  .founders-panel.is-leaving,
  .founders-portrait:hover .founders-frame {
    transform: none !important;
  }

  .founders-panel.is-active .founders-index,
  .founders-panel.is-active h3,
  .founders-panel.is-active .founders-role,
  .founders-panel.is-active .founders-rule,
  .founders-panel.is-active .founders-bio p {
    animation: none !important;
  }

  .founders-switch-btn.is-active .founders-switch-bar.is-running {
    animation: none !important;
    transform: scaleX(1);
  }

  .founders-frame::after {
    display: none;
  }

  .founders-head .eyebrow,
  .founders-head h2,
  .founders-head > p,
  .founders-media,
  .founders-copy,
  .founders-switch,
  .founders-mark,
  .founders-frame {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .founders-head .eyebrow::before {
    opacity: 1 !important;
    transform: scaleX(1) !important;
  }

  .founders-orb {
    animation: none !important;
  }
}

/* ---------- Fondatrice WOW (GSAP) — overrides entrée CSS ---------- */
.founders.founders--wow {
  padding-block: clamp(20px, 3.5vh, 36px);
  min-height: calc(100svh - var(--header-h));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founders--wow .founders-wrap {
  width: min(100% - (var(--gutter) * 2), 1280px);
}

.founders--wow .founders-orb {
  opacity: 0.28;
  filter: blur(36px);
}

.founders--wow .founders-head {
  max-width: none;
  margin-bottom: clamp(14px, 2.2vh, 24px);
}

.founders--wow .founders-head .eyebrow,
.founders--wow .founders-head h2,
.founders--wow .founders-head > p,
.founders--wow .founders-media,
.founders--wow .founders-copy,
.founders--wow .founders-mark {
  opacity: 1;
  animation: none !important;
  filter: none;
}

/* Texte à gauche, portrait à droite */
.founders--wow .founders-copy {
  order: 1;
}

.founders--wow .founders-media {
  order: 2;
  max-width: min(420px, 100%);
}

.founders--wow .founders-stage {
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .founders--wow .founders-stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
    gap: clamp(32px, 4.5vw, 64px);
  }

  .founders--wow .founders-media {
    justify-self: end;
    width: 100%;
    max-width: 420px;
  }

  .founders--wow .founders-frame {
    aspect-ratio: 3 / 4;
    max-height: min(64vh, 540px);
    border-radius: 22px;
  }
}

.founders--wow .founders-head .eyebrow::before {
  display: none;
}

.founders--wow .founders-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  opacity: 1;
}

.founders--wow .founders-eyebrow-line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--founders-violet);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.founders--wow .founders-eyebrow-text {
  display: inline-block;
  will-change: transform, opacity;
}

.founders--wow .founders-title {
  margin-bottom: 8px;
  opacity: 1;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.2;
}

.founders--wow .founders-title-mask {
  display: block;
  overflow: hidden;
}

.founders--wow .founders-title-inner {
  display: block;
  will-change: transform;
}

.founders--wow .founders-lead {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.5;
  color: var(--founders-muted);
  will-change: transform, opacity, filter;
}

.founders--wow .founders-portrait {
  perspective: 900px;
}

.founders--wow .founders-frame {
  box-shadow: 0 0 0 rgba(46, 19, 91, 0);
  will-change: clip-path, transform, box-shadow;
  transition: none;
}

.founders--wow .founders-portrait:hover .founders-frame {
  transform: none;
  box-shadow: inherit;
}

.founders--wow .founders-frame::after {
  display: none;
}

.founders--wow .founders-img-parallax {
  position: absolute;
  /* Étendre seulement vers le bas : le haut (tête) reste dans le cadre */
  inset: 0 0 -14% 0;
  z-index: 0;
  will-change: transform;
}

.founders--wow .founders-img,
.founders--wow .founders-img.is-active {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.06);
  transform-origin: center top;
  filter: grayscale(100%);
  will-change: transform, filter;
  transition: none;
}

.founders--wow .founders-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 80%
  );
  transform: translateX(-130%);
  will-change: transform;
}

.founders--wow .founders-name {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28em;
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--founders-ink);
}

.founders--wow .founders-name-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.founders--wow .founders-name-word {
  display: inline-block;
  will-change: transform;
}

.founders--wow .founders-role {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b89fc9;
  will-change: transform, opacity;
}

.founders--wow .founders-rule {
  display: block;
  width: 36px;
  height: 2px;
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--founders-violet), var(--founders-lavande));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Typo bio — plus éditoriale / pro */
.founders--wow .founders-bio {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 2px solid rgba(113, 74, 212, 0.22);
}

.founders--wow .founders-bio p {
  margin: 0;
  opacity: 1;
  will-change: transform, opacity, filter;
}

.founders--wow .founders-bio p:first-child {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(46, 19, 91, 0.08);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--founders-ink);
}

.founders--wow .founders-bio p:not(:first-child) {
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--founders-muted);
}

.founders--wow .founders-bio p:nth-child(2) {
  margin-bottom: 10px;
}

.founders--wow .founders-panel.is-active .founders-index,
.founders--wow .founders-panel.is-active h3,
.founders--wow .founders-panel.is-active .founders-role,
.founders--wow .founders-panel.is-active .founders-rule,
.founders--wow .founders-panel.is-active .founders-bio p {
  animation: none !important;
}

.founders--wow .founders-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(46, 19, 91, 0.28);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) {
  .founders--wow .founders-cursor {
    display: flex;
  }
}

.founders--wow.is-ready .founders-media,
.founders--wow.is-ready .founders-copy {
  opacity: 1;
}

@media (max-width: 899px) {
  .founders--wow .founders-stage {
    gap: 1cm;
  }

  .founders--wow .founders-name {
    font-size: 38px;
  }

  .founders--wow .founders-cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founders--wow .founders-eyebrow-line,
  .founders--wow .founders-title-inner,
  .founders--wow .founders-name-word,
  .founders--wow .founders-rule,
  .founders--wow .founders-img,
  .founders--wow .founders-img.is-active,
  .founders--wow .founders-frame,
  .founders--wow .founders-shine {
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }

  .founders--wow .founders-cursor {
    display: none !important;
  }
}

/* ============================================
   Témoignages — glass premium + bordure conic (#2E135B)
   ============================================ */
.temoignages {
  --tgc-ink: #2E135B;
  --tgc-deep: #321080;
  --tgc-violet: #714ad4;
  --tgc-lavande: #c4a8f2;
  --tgc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 10;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196, 168, 242, 0.12), transparent 55%),
    #ffffff;
  overflow: hidden;
  color: var(--primary);
}

.tgc-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.tgc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.45;
}

.tgc-orb--a {
  width: min(46vw, 360px);
  height: min(46vw, 360px);
  left: -10%;
  top: 18%;
  background: rgba(113, 74, 212, 0.2);
  animation: exp-orb-a 15s ease-in-out infinite;
}

.tgc-orb--b {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  right: -8%;
  bottom: 8%;
  background: rgba(196, 168, 242, 0.32);
  animation: exp-orb-b 17s ease-in-out infinite;
}

.temoignages .container {
  position: relative;
  z-index: 1;
}

.temoignages .section-head {
  margin-inline: auto;
  text-align: center;
  max-width: 36rem;
  margin-bottom: 56px;
}

.temoignages .section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--primary);
  opacity: 0;
}

.temoignages .section-head .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #714ad4;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.temoignages .section-head h2 {
  color: var(--primary);
}

.temoignages .section-head p {
  color: var(--text-muted);
}

.temoignages .section-head h2,
.temoignages .section-head p {
  opacity: 0;
}

.temoignages.is-visible .section-head .eyebrow {
  animation: intro-copy-in 0.8s var(--tgc-ease) 0.06s both;
}

.temoignages.is-visible .section-head .eyebrow::before {
  animation: intro-line 0.7s var(--tgc-ease) 0.18s both;
}

.temoignages.is-visible .section-head h2 {
  animation: intro-copy-in 0.95s var(--tgc-ease) 0.18s both;
}

.temoignages.is-visible .section-head p {
  animation: intro-copy-in 0.95s var(--tgc-ease) 0.32s both;
}

.temoignages.is-settled .section-head .eyebrow,
.temoignages.is-settled .section-head h2,
.temoignages.is-settled .section-head p {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.temoignages.is-settled .section-head .eyebrow::before {
  opacity: 1;
  transform: scaleX(1);
  animation: none;
}

.temoignages-list {
  display: grid;
  gap: clamp(22px, 3vw, 32px);
  max-width: 1120px;
  margin-inline: auto;
  align-items: start;
}

@media (min-width: 900px) {
  .temoignages-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Carte : wrapper bordure animée (conic) —— */
.tgc {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 2px;
  isolation: isolate;
  overflow: hidden;
  background: rgba(46, 19, 91, 0.1);
  box-shadow: 0 0 12px rgba(46, 19, 91, 0.1);
  opacity: 0;
  cursor: default;
}

.tgc.is-inview.tgc--a {
  animation: tgc-in-left 1s var(--tgc-ease) calc(var(--i, 0) * 0.12s) both;
}

.tgc.is-inview.tgc--b {
  animation: tgc-in-right 1s var(--tgc-ease) calc(var(--i, 0) * 0.12s) both;
}

.tgc.is-settled {
  opacity: 1;
  animation: none;
  filter: none;
  transform: none;
  transition: transform 0.55s var(--tgc-ease), box-shadow 0.55s var(--tgc-ease);
}

.tgc.is-open {
  z-index: 4;
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 28px 56px rgba(46, 19, 91, 0.22);
}

/* Lumière qui circule UNIQUEMENT dans l’anneau de 2px */
.tgc::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 285deg,
    #2E135B 305deg,
    #714ad4 330deg,
    #c4a8f2 345deg,
    transparent 360deg
  );
  animation: tgc-border-spin 7s linear infinite;
}

.tgc--b::before {
  animation-delay: -2.5s;
}

@keyframes tgc-border-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tgc-in-left {
  from {
    opacity: 0;
    transform: translateX(-48px) translateY(28px) rotate(-1.4deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes tgc-in-right {
  from {
    opacity: 0;
    transform: translateX(48px) translateY(28px) rotate(1.4deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes tgc-quote-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.06);
  }
}

@keyframes tgc-rule {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Carte blanche : masque totalement le centre (seule la bordure 2px reste visible) */
.tgc-glass {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(22px, 3vw, 28px);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px);
  border-radius: 22px;
  background: #fff;
  border: 0;
  color: var(--primary);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px rgba(46, 19, 91, 0.05);
  overflow: hidden;
}

/* Pas d’effet hover : ouverture uniquement via « Voir plus » */
.tgc-spotlight {
  display: none;
}

.tgc-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tgc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tgc-ink);
  background: rgba(232, 221, 255, 0.85);
  border: 1px solid rgba(196, 168, 242, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
}

.tgc-mark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.6;
  color: var(--tgc-violet);
  opacity: 0;
  flex-shrink: 0;
  transform-origin: top right;
  transition: transform 0.55s var(--tgc-ease), color 0.45s ease;
}

.tgc-quote-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  max-width: 52rem;
  max-height: 7.2em;
  overflow: hidden;
  transition: max-height 0.75s var(--tgc-ease);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.tgc-quote-text::after {
  display: none;
}

.tgc.is-open .tgc-quote-text {
  max-height: 90em;
  -webkit-mask-image: none;
  mask-image: none;
}

.tgc-quote-text p {
  margin: 0 0 1em;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.8;
  color: #3a3542;
  opacity: 0;
}

.tgc-quote-text p:last-child {
  margin-bottom: 0;
  color: #2a2533;
  font-weight: 500;
}

.tgc-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b89fc9;
  opacity: 0;
  transition: color 0.3s ease, opacity 0.35s ease, transform 0.35s var(--tgc-ease);
}

.tgc-more .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.4s var(--tgc-ease);
}

.tgc-more:hover {
  color: #2E135B;
}

.tgc.is-open .tgc-more .material-symbols-outlined {
  transform: rotate(180deg);
}

.tgc.is-inview .tgc-badge {
  animation: case-copy-in 0.7s var(--tgc-ease) 0.18s both;
}

.tgc.is-inview .tgc-mark {
  animation: case-copy-in 0.75s var(--tgc-ease) 0.26s both;
}

.tgc.is-inview .tgc-quote-text p:nth-child(1) {
  animation: case-copy-in 0.75s var(--tgc-ease) 0.32s both;
}

.tgc.is-inview .tgc-more {
  animation: case-copy-in 0.7s var(--tgc-ease) 0.48s both;
}

.tgc.is-inview .tgc-author {
  animation: case-copy-in 0.75s var(--tgc-ease) 0.55s both;
}

.tgc.is-inview .tgc-author-rule {
  animation: tgc-rule 0.7s var(--tgc-ease) 0.62s both;
}

.tgc.is-settled .tgc-badge,
.tgc.is-settled .tgc-quote-text p,
.tgc.is-settled .tgc-author,
.tgc.is-settled .tgc-more {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.tgc.is-settled .tgc-mark {
  opacity: 1;
  animation: tgc-quote-float 4.6s ease-in-out infinite;
  filter: none;
}

.tgc.is-settled .tgc-author-rule {
  transform: scaleY(1);
  opacity: 1;
  animation: none;
}

.tgc.is-open .tgc-mark {
  animation: none;
  color: var(--tgc-ink);
  transform: scale(1.08);
}

.tgc-author {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding-top: 4px;
  opacity: 0;
}

.tgc-author-rule {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tgc-violet), var(--tgc-ink));
  flex-shrink: 0;
  transform: scaleY(0);
  transform-origin: top;
}

.tgc-author-meta {
  display: grid;
  gap: 4px;
}

.tgc-author-meta strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tgc-ink);
  letter-spacing: -0.01em;
}

.tgc-author-meta span {
  font-size: 0.92rem;
  color: #6b6575;
}

@media (max-width: 700px) {
  .temoignages .section-head {
    margin-bottom: 36px;
  }

  .tgc-glass {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .tgc-mark {
    font-size: 3rem;
  }

  .tgc-more {
    font-size: 11px;
  }

  .tgc.is-inview.tgc--a,
  .tgc.is-inview.tgc--b {
    animation-name: tgc-in-up;
  }
}

@keyframes tgc-in-up {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (hover: none) {
  .tgc.is-settled:hover {
    transform: none;
    box-shadow: 0 0 12px rgba(46, 19, 91, 0.08);
  }

  .tgc.is-open {
    z-index: 4;
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(46, 19, 91, 0.12);
  }

  .tgc-spotlight {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgc,
  .tgc.is-inview,
  .tgc.is-settled,
  .tgc.is-settled:hover,
  .temoignages .section-head .eyebrow,
  .temoignages .section-head h2,
  .temoignages .section-head p,
  .tgc-badge,
  .tgc-mark,
  .tgc-quote-text p,
  .tgc-author,
  .tgc-more {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .tgc-quote-text {
    max-height: none !important;
  }

  .tgc-quote-text::after,
  .tgc-more {
    display: none;
  }

  .tgc-orbs,
  .tgc::before,
  .presse-card::before {
    animation: none !important;
  }
}

/* ============================================
   Réalisations — sticky stack storytelling
   ============================================ */
.realisations.case-studies {
  --case-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --case-ink: #17131f;
  --case-indigo: #2e1966;
  --case-violet: #714ad4;
  --case-lavender: #c4a8f2;
  --header-height: var(--header-h);
  /* Zone sous la nav ; carte quasi pleine hauteur, petites marges égales */
  --case-viewport: calc(100svh - var(--header-height));
  --case-v-pad: 28px;
  --case-card-h: min(760px, calc(var(--case-viewport) - (2 * var(--case-v-pad))));
  --stack-gap: 14px;
  position: relative;
  z-index: 10;
  overflow: visible;
  padding-block: 0;
  background: #f8f7fa;
}

.case-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 40px) 8px;
}

.case-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.case-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.5;
}

.case-orb--a {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  left: -8%;
  top: 8%;
  background: rgba(113, 74, 212, 0.2);
  animation: exp-orb-a 16s ease-in-out infinite;
}

.case-orb--b {
  width: min(44vw, 340px);
  height: min(44vw, 340px);
  right: -10%;
  top: 42%;
  background: rgba(196, 168, 242, 0.32);
  animation: exp-orb-b 18s ease-in-out infinite;
}

/* Intro */
.case-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 20px;
  max-width: 52rem;
}

.case-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--case-violet);
  opacity: 0;
}

.case-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--case-violet);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.case-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--case-ink);
  opacity: 0;
}

.case-intro p {
  margin: 0;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(23, 19, 31, 0.68);
  opacity: 0;
}

.case-intro-cta {
  opacity: 0;
  flex-shrink: 0;
}

.case-intro.is-visible .case-eyebrow {
  animation: intro-copy-in 0.8s var(--case-ease) 0.06s both;
}

.case-intro.is-visible .case-eyebrow::before {
  animation: intro-line 0.7s var(--case-ease) 0.18s both;
}

.case-intro.is-visible h2 {
  animation: intro-copy-in 0.95s var(--case-ease) 0.18s both;
}

.case-intro.is-visible p {
  animation: intro-copy-in 0.95s var(--case-ease) 0.32s both;
}

.case-intro.is-visible .case-intro-cta {
  animation: intro-copy-in 0.85s var(--case-ease) 0.42s both;
}

.case-intro.is-settled .case-eyebrow,
.case-intro.is-settled h2,
.case-intro.is-settled p,
.case-intro.is-settled .case-intro-cta {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.case-intro.is-settled .case-eyebrow::before {
  opacity: 1;
  transform: scaleX(1);
  animation: none;
}

/*
  Scroll overlay stack (CSS sticky):
  IMPORTANT
  1) Pas de transform/filter sur l’élément sticky ni un ancêtre
  2) Toutes les cartes sticky doivent être sœurs sous .case-stack
     (sinon chacune se détache dès que son wrapper sort du viewport)
*/
.case-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

/* Shell sticky : plein viewport sous la nav → carte centrée (marge haut = marge bas) */
.case-studies .case-sticky {
  --cover: 0;
  position: sticky;
  top: var(--header-height);
  z-index: calc(20 + var(--index, 0));
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--case-viewport);
  min-height: var(--case-viewport);
  box-sizing: border-box;
  /* Décalage stack : chaque carte descend un peu sans casser le centrage */
  padding-top: calc(var(--index, 0) * var(--stack-gap));
  /* Course de scroll pour que chaque carte recouvre la précédente */
  margin: 0 0 28vh;
}

/* Pas de marge morte sous la dernière carte → évite le grand vide avant les témoignages */
.case-studies .case-sticky:last-child {
  margin-bottom: 0;
  /* Même hauteur visuelle que les cartes centrées, sans le “trou” sous la 3e */
  height: auto;
  min-height: 0;
  align-items: flex-start;
  padding-top: calc(
    (var(--case-viewport) - var(--case-card-h)) / 2 +
      (var(--index, 0) * var(--stack-gap))
  );
  padding-bottom: var(--case-v-pad);
}

.case-studies .case-card.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  /* Hauteur fixe ; centrage vertical via flex sur .case-sticky */
  height: var(--case-card-h);
  max-height: var(--case-card-h);
  min-height: 0;
  padding: 28px 24px;
  border-radius: 40px;
  background:
    linear-gradient(
      165deg,
      #ffffff 0%,
      #f8f7fa 55%,
      rgba(241, 236, 250, 0.82) 100%
    );
  border: 1px solid rgba(232, 229, 236, 0.95);
  box-shadow:
    0 -8px 32px rgba(46, 25, 102, 0.07),
    0 20px 56px rgba(23, 19, 31, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  overflow: visible;
  /* Pas de scale : il décalait les bords gauche/droit sous la carte du dessus */
  opacity: calc(1 - (var(--cover, 0) * 0.04));
  transition: none;
}

/* Carte 01 & 03 — Soft Lilac */
.case-studies .case-card.case-card--lilac {
  background: #f3eefd;
  border-color: rgba(184, 159, 201, 0.22);
  box-shadow:
    0 -8px 32px rgba(46, 19, 91, 0.06),
    0 20px 56px rgba(46, 19, 91, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Carte 02 — Deep Purple */
.case-studies .case-card.case-card--deep {
  background: #2e135b;
  border-color: rgba(184, 159, 201, 0.28);
  box-shadow:
    0 -8px 32px rgba(46, 19, 91, 0.2),
    0 20px 56px rgba(20, 8, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.case-studies .case-card.case-card--deep .case-num,
.case-studies .case-card.case-card--deep .case-card-link {
  color: #b89fc9;
}

.case-studies .case-card.case-card--deep .case-cat {
  color: rgba(243, 238, 253, 0.72);
}

.case-studies .case-card.case-card--deep .case-card-copy h3 {
  color: #fff;
}

.case-studies .case-card.case-card--deep .case-card-copy > p {
  color: rgba(243, 238, 253, 0.82);
}

.case-studies .case-card.case-card--deep .case-card-copy::before {
  color: #b89fc9;
}

.case-studies .case-card.case-card--deep .case-card-link:hover {
  color: #f3eefd;
}

.case-studies .case-card-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  min-height: 0;
  z-index: 1;
  align-self: center;
  overflow: visible;
  padding-top: 12px;
}

.case-studies .case-card-copy::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 10vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: var(--case-indigo);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.case-studies .case-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  max-width: 100%;
}

.case-studies .case-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--case-violet);
  flex-shrink: 0;
}

.case-studies .case-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(23, 19, 31, 0.55);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-studies .case-card-copy h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--case-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-studies .case-card-copy > p {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(23, 19, 31, 0.68);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-studies .case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--case-indigo);
  transition: gap 0.35s var(--case-ease), color 0.35s ease;
  flex-shrink: 0;
}

.case-studies .case-card-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.35s var(--case-ease);
}

.case-studies .case-card-link:hover {
  color: var(--case-violet);
  gap: 12px;
}

.case-studies .case-card-link:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.case-studies .case-card-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 100%;
  background: rgba(232, 229, 236, 0.45);
  border: none;
  align-self: stretch;
}

.case-studies .case-card-copy h3,
.case-studies .case-card-copy > p,
.case-studies .case-card-meta,
.case-studies .case-card-link {
  opacity: 0;
}

.case-studies .case-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  display: block;
  transform: scale(1.02);
  opacity: 0.35;
}

.case-studies .case-card-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Couverture magazine : cadrage haut pour garder la tête */
.case-studies .case-card-visual--cover img {
  object-position: center 45%;
}

.case-studies .case-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  opacity: 0;
}

.case-sticky.is-inview .case-card-meta {
  animation: case-copy-in 0.75s var(--case-ease) 0.08s both;
}

.case-sticky.is-inview .case-card-copy h3 {
  animation: case-copy-in 0.85s var(--case-ease) 0.18s both;
}

.case-sticky.is-inview .case-card-copy > p {
  animation: case-copy-in 0.9s var(--case-ease) 0.3s both;
}

.case-sticky.is-inview .case-card-link {
  animation: case-copy-in 0.8s var(--case-ease) 0.42s both;
}

.case-sticky.is-inview .case-card-copy::before {
  animation:
    case-ghost-in 1.1s var(--case-ease) 0.12s both,
    case-num-float 5.5s ease-in-out 1.3s infinite;
}

.case-sticky.is-inview .case-card-visual img {
  animation: case-img-in 1.15s var(--case-ease) 0.16s both;
}

.case-sticky.is-inview .case-card-visual::after {
  animation: case-shine 1.2s var(--case-ease) 0.45s both;
}

.case-sticky.is-settled .case-card-meta,
.case-sticky.is-settled .case-card-copy h3,
.case-sticky.is-settled .case-card-copy > p,
.case-sticky.is-settled .case-card-link {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.case-sticky.is-settled .case-card-copy::before {
  opacity: 0.1;
  animation: case-num-float 5.5s ease-in-out infinite;
  filter: none;
}

.case-sticky.is-settled .case-card-visual img {
  opacity: 1;
  transform: scale(1);
  animation: case-img-ken 18s ease-out forwards;
}

.case-sticky.is-settled .case-card-visual::after {
  opacity: 0;
  animation: none;
}

.case-sticky.is-active .case-card.project-card {
  border-color: rgba(113, 74, 212, 0.38);
  box-shadow:
    0 -8px 32px rgba(46, 25, 102, 0.1),
    0 24px 60px rgba(23, 19, 31, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.case-sticky.is-active .case-num {
  color: var(--secondary);
}

.case-studies .case-card:hover .case-card-visual img {
  transform: scale(1.04);
  transition: transform 1.1s var(--case-ease);
}

@media (min-width: 900px) {
  .case-shell {
    padding: 40px clamp(24px, 4vw, 48px) 12px;
  }

  .case-intro {
    max-width: none;
    margin-bottom: 24px;
  }

  .case-studies .case-card.project-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    padding: 36px 40px;
    border-radius: 42px;
    height: var(--case-card-h);
    max-height: var(--case-card-h);
  }

  .case-studies .case-card-visual {
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }

  .case-studies .case-card-copy {
    max-height: 100%;
    overflow: visible;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .case-studies {
    --case-v-pad: 22px;
    --case-card-h: min(720px, calc(var(--case-viewport) - (2 * var(--case-v-pad))));
    --stack-gap: 12px;
  }

  .case-studies .case-sticky {
    margin-bottom: 24vh;
  }

  .case-studies .case-sticky:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .case-stack {
    padding-bottom: 0;
  }

  .case-studies .case-sticky {
    position: relative;
    top: auto;
    z-index: 1;
    display: block;
    height: auto;
    min-height: 0;
    padding-top: 0;
    margin-bottom: 20px;
  }

  .case-studies .case-sticky:last-child {
    margin-bottom: 0;
  }

  .case-studies .case-card.project-card {
    height: auto;
    max-height: none;
    --cover: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    border-radius: 28px;
    padding: 24px 20px;
    align-items: stretch;
  }

  .case-studies .case-card-visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: none;
    background: transparent;
    border: none;
  }

  .case-studies .case-card-visual img {
    object-fit: cover;
    object-position: center center;
    transform: none !important;
    transform-origin: center center;
    opacity: 1;
    animation: none !important;
    width: 100%;
    height: 100%;
  }

  /* Couvertures magazine (02 Émir, 03 Moza) — image entière sur mobile */
  .case-studies .case-card-visual--cover {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    background: transparent;
  }

  .case-studies .case-card-visual--cover img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
    display: block;
  }

  .case-studies .case-card:hover .case-card-visual img {
    transform: none !important;
  }

  .case-sticky.is-settled .case-card-visual img,
  .case-sticky.is-inview .case-card-visual img {
    transform: none !important;
    animation: none !important;
    opacity: 1;
  }

  .case-studies .case-card-copy h3 {
    -webkit-line-clamp: 3;
  }

  .case-studies .case-card-copy > p {
    -webkit-line-clamp: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-eyebrow,
  .case-intro h2,
  .case-intro p,
  .case-intro-cta,
  .case-studies .case-card-meta,
  .case-studies .case-card-copy h3,
  .case-studies .case-card-copy > p,
  .case-studies .case-card-link {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }

  .case-orb {
    animation: none;
  }

  .case-studies .case-card-visual img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }

  .case-stack {
    padding-bottom: 0;
  }

  .case-studies .case-sticky {
    position: relative;
    top: auto;
    display: block;
    height: auto;
    min-height: 0;
    padding-top: 0;
    margin-bottom: 20px;
  }

  .case-studies .case-sticky:last-child {
    margin-bottom: 0;
  }

  .case-studies .case-card.project-card {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Ancien data-reveal sectionnel — garder le shell hors transform */
.hero-sticky ~ .case-studies > .case-shell {
  opacity: 1;
  transform: none;
}

/* Contact — fond vidéo plein cadre (comme le hero), sans bandes */
.contact.section {
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding-block: 0;
  background: var(--primary);
  color: var(--white);
  /* Ne jamais hériter d’un --hero-cover du sticky hero */
  --hero-cover: 0;
  scroll-margin-top: var(--header-h);
}

.contact-glass-root {
  position: relative;
  isolation: isolate;
  padding-block: 80px;
  /* Pas de transform ici : sinon la vidéo / le glass se découpent à l’envers */
  opacity: 1;
  transform: none;
  scroll-margin-top: var(--header-h);
}

.contact-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  opacity: 1;
  overflow: hidden;
  background: #2e135b;
}

.contact.is-visible .contact-video {
  animation: hero-video-in 2.4s var(--ease) both;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(46, 19, 91, 0.35) 0%,
    rgba(46, 25, 102, 0.4) 40%,
    rgba(46, 19, 91, 0.62) 100%
  );
  opacity: 0;
}

.contact.is-visible .contact-overlay {
  animation: fade-only 1.2s var(--ease) 0.15s forwards;
}

/*
  Reveal contact : animer seulement le contenu (pas le média),
  pour éviter l’effet “fenêtre inversée” / bandes violettes.
*/
.hero-sticky ~ .contact[data-reveal] > .contact-glass-root {
  opacity: 1;
  transform: none;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 48px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--reveal-duration) var(--ease),
    transform var(--reveal-duration) var(--ease);
}

.contact.is-visible .contact-grid {
  opacity: 1;
  transform: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
}

.contact-info .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

.contact-info .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.contact-info h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 22px;
  color: #ffffff;
}

.contact-info > p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 28rem;
}

.contact-info > p + p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-form {
  position: relative;
  z-index: 3;
  padding: 32px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--white);
  overflow: visible;
}

.contact-form.glass-fallback,
.contact-form.glass-ready {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/*
  WebGL liquid : on garde aussi le verre CSS.
  (sinon fond transparent = formulaire “invisible” / effet inversé)
*/
.contact-form.is-liquid {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.form-row {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.contact-form .field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.contact-form .field input,
.contact-form .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  padding: 10px 0;
  color: #ffffff;
  caret-color: #ffffff;
  outline: none;
  resize: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.contact-form .field input:focus,
.contact-form .field textarea:focus {
  border-bottom-color: #ffffff;
  box-shadow: 0 2px 0 0 rgba(255, 255, 255, 0.35);
}

/* Autofill navigateur — garder le texte blanc */
.contact-form .field input:-webkit-autofill,
.contact-form .field input:-webkit-autofill:hover,
.contact-form .field input:-webkit-autofill:focus,
.contact-form .field textarea:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  transition: background-color 9999s ease-out;
  box-shadow: 0 0 0 1000px transparent inset;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: #ffffff;
}

.form-status.is-error {
  color: #ffdad6;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 8px;
  cursor: pointer;
  user-select: none;
}

.contact-consent__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.contact-consent__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-consent__check {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.contact-consent__input:checked + .contact-consent__box {
  background: rgba(184, 159, 201, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(184, 159, 201, 0.25);
}

.contact-consent__input:checked + .contact-consent__box .contact-consent__check {
  opacity: 1;
  transform: scale(1);
}

.contact-consent__input:focus-visible + .contact-consent__box {
  outline: 2px solid #c4a8f2;
  outline-offset: 2px;
}

.contact-consent.is-error .contact-consent__box {
  border-color: #ffb4ab;
  box-shadow: 0 0 0 3px rgba(255, 180, 171, 0.22);
}

.contact-consent__text {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.contact-consent__text a {
  color: #e8ddff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-consent__text a:hover {
  color: #fff;
}

.contact-form .form-row,
.contact-form .field,
.contact-form .contact-consent,
.contact-form .btn-submit,
.contact-form .form-status {
  position: relative;
  z-index: 2;
}

.contact-info h2,
.contact-info > p {
  color: #ffffff;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: center;
  }

  .contact-form {
    padding: 40px;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-top: 1px solid var(--outline);
  padding-block: 80px 40px;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  line-height: 0;
}

.footer-logo img {
  display: block;
  height: 52px;
  width: auto;
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-muted);
  opacity: 0.8;
  max-width: 18rem;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 16px;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a,
.site-footer span {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--outline);
  display: flex;
  justify-content: center;
  text-align: center;
  color: rgba(72, 69, 80, 0.65);
  font-size: 15px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* Footer mobile — grille compacte, plus de colonne vide à droite */
@media (max-width: 767px) {
  .site-footer {
    padding-block: 48px 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
    text-align: left;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4px;
  }

  .footer-brand p {
    max-width: 22rem;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.55;
  }

  .footer-logo {
    margin-bottom: 12px;
  }

  .footer-logo img {
    height: 44px;
  }

  .site-footer h3 {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .site-footer a,
  .site-footer span {
    font-size: 13px;
    line-height: 1.35;
  }

  .site-footer li + li {
    margin-top: 8px;
  }

  .footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    font-size: 13px;
  }
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/*
 * Sticky hero stack: fading a whole section would show the pinned hero through it.
 * Keep the section opaque; animate only its direct children.
 */
.hero-sticky ~ [data-reveal] {
  opacity: 1;
  transform: none;
}

.hero-sticky ~ [data-reveal] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease);
}

.hero-sticky ~ [data-reveal].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Keyframes */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-attention {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes hero-video-in {
  from {
    opacity: 0.35;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes fade-only {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loader-brand {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.9);
    filter: brightness(0) invert(1) blur(6px);
  }
  60% {
    opacity: 1;
    transform: none;
    filter: brightness(0) invert(1);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: brightness(0) invert(1);
  }
}

@keyframes loader-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes hero-scroll-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes stat-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes loc-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes loc-ping {
  0% {
    transform: scale(0.7);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes intro-copy-in {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes intro-line {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes exp-card-in {
  from {
    opacity: 0;
    filter: blur(12px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

@keyframes exp-featured-in {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.9);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1.04) translateY(0);
    filter: none;
  }
}

@keyframes exp-featured-pulse {
  0%,
  100% {
    box-shadow:
      0 28px 60px rgba(46, 19, 91, 0.34),
      0 0 0 1px rgba(196, 168, 242, 0.22),
      0 0 0 0 rgba(196, 168, 242, 0.25);
  }
  50% {
    box-shadow:
      0 32px 70px rgba(46, 19, 91, 0.4),
      0 0 0 1px rgba(196, 168, 242, 0.38),
      0 0 28px 4px rgba(113, 74, 212, 0.28);
  }
}

@keyframes exp-ken {
  0%,
  100% {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.14) translate3d(-2%, 1%, 0);
  }
}

@keyframes exp-index-in {
  from {
    opacity: 0;
    transform: translate3d(18px, 28px, 0) scale(0.72);
    filter: blur(8px);
  }
  to {
    opacity: 0.1;
    transform: none;
    filter: none;
  }
}

@keyframes exp-index-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-6px, -10px, 0);
  }
}

@keyframes exp-icon-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  }
  25% {
    transform: translate3d(5px, -8px, 0);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translate3d(-4px, -14px, 0);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
  }
  75% {
    transform: translate3d(3px, -6px, 0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  }
}

@keyframes exp-body-in {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes exp-rule {
  from {
    width: 0;
    opacity: 0.2;
  }
  to {
    width: min(100%, 320px);
    opacity: 1;
  }
}

@keyframes exp-rule-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes case-copy-in {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes case-ghost-in {
  from {
    opacity: 0;
    transform: translate3d(16px, 24px, 0) scale(0.78);
    filter: blur(8px);
  }
  to {
    opacity: 0.1;
    transform: none;
    filter: none;
  }
}

@keyframes case-num-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-8px, -12px, 0);
  }
}

@keyframes case-img-in {
  from {
    opacity: 0.2;
    transform: scale(1.04);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes case-img-ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes case-shine {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes exp-orb-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(8%, 12%, 0) scale(1.12);
  }
}

@keyframes exp-orb-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10%, -8%, 0) scale(1.18);
  }
}

@keyframes hero-ken {
  to {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .stat-city {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .stat-city-name {
    opacity: 1;
  }

  .stat-city-pin::after {
    animation: none;
  }

  .intro-copy > * {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .intro-copy .eyebrow::before {
    opacity: 1;
    transform: scaleX(1);
  }

  .expertises-orb {
    animation: none;
  }

  .expertise-teaser,
  .expertise-teaser-index,
  .expertise-teaser-icon,
  .expertise-teaser-body,
  .expertises .section-head h2,
  .expertises .section-head p {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .expertise-teasers::before {
    width: min(100%, 320px);
    animation: none;
    background: linear-gradient(90deg, var(--secondary), var(--lavande));
    background-size: 100% 100%;
  }

  .page-loader {
    display: none;
  }

  body.is-loading,
  body.is-ready .site-header,
  body.is-loading .site-header,
  .hero-brand,
  .hero-content h1,
  .hero-lead,
  .hero-glass-cta,
  .hero-scroll,
  .hero-video,
  .hero-overlay,
  .contact-video,
  .contact-overlay {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  /* Keep sticky structure; disable secondary cover FX */
  .hero {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}

/* ============================================
   Page Réalisations
   ============================================ */

.page-realisations {
  background: var(--surface);
}

.rea-hero {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: center;
  margin-top: var(--header-h);
  overflow: hidden;
  color: var(--white);
}

.rea-hero-media {
  position: absolute;
  inset: 0;
}

.rea-hero-image {
  position: absolute;
  inset: 0;
  background:
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuBL9gWOPMNHdRTeFynpV2SdQHGPHG1_I4QgvShsjWe_mpUTDF-ON8VlktiIT35-aNdzrcj7-bcsLVbqQtqC-6tbMzyOcXJCTmrvgcZd5orGTcHyi8-DvczVeE41NRBpCVEGejOYCma3NViURuz8qbMJri91Csi1I_RyKXrUjYib24ie6ZArd-Eu34PQocGz2wP9pZEH4XEFPv4raA1nE_pBnTSESlED2EgzKPIkL7HrIuBDnwyQYht_5ll_xFphZKXlnPTnhgRuc1M")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-ken 16s ease-out forwards;
}

.rea-hero-image--actualites {
  background-image: url("../assets/images/actualites/sihem-souid-interview-3.webp");
  background-position: center 30%;
}

.rea-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(46, 25, 102, 0.92), rgba(46, 19, 91, 0.72));
}

.rea-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 64px 96px;
  max-width: 52rem;
  animation: fade-up 1s var(--ease) both;
}

.rea-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-fixed);
  background: rgba(100, 82, 159, 0.25);
  border: 1px solid rgba(100, 82, 159, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.rea-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.rea-hero-content > p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--primary-fixed);
  max-width: 38rem;
  margin-bottom: 36px;
}

.rea-locations {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid #64529f;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-fixed);
}

.rea-locations .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #64529f;
}

.rea-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 221, 255, 0.75);
  animation: bounce 2s ease-in-out infinite;
}

.rea-intro {
  padding-block: 80px;
  background: var(--surface);
}

.rea-intro-grid {
  display: grid;
  gap: 40px;
}

.rea-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--primary);
}

.rea-intro-copy {
  display: grid;
  gap: 20px;
}

.rea-intro-copy p {
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 900px) {
  .rea-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

.rea-filters {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(254, 247, 255, 0.92);
  border-bottom: 1px solid rgba(202, 196, 210, 0.35);
  backdrop-filter: blur(12px);
  padding-block: 14px;
}

.rea-filter-list {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rea-filter-list::-webkit-scrollbar {
  display: none;
}

.rea-filter-list li {
  flex-shrink: 0;
}

.rea-filter {
  display: inline-block;
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rea-filter:hover,
.rea-filter:focus-visible {
  color: var(--primary);
}

.rea-filter:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.rea-filter.is-active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.rea-projects {
  padding-block: 80px;
  background: var(--white);
}

.rea-projects-list {
  display: grid;
  gap: 32px;
}

.rea-project {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  scroll-margin-top: calc(var(--header-h) + 72px);
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(46, 19, 91, 0.04);
  transition: opacity 0.35s ease, transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.rea-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(46, 19, 91, 0.08);
}

.rea-project.is-filtered-out {
  display: none;
}

.rea-project-copy,
.rea-project-visual {
  min-width: 0;
  width: 100%;
}

.rea-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64529f;
}

.rea-project-meta .line {
  display: none;
}

.rea-project-meta span:last-child {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--primary-container);
  background: var(--primary-fixed);
  border-radius: 999px;
}

.rea-project-copy {
  order: 2;
  padding: 28px 24px 32px;
}

.rea-project-copy h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
}

.rea-project-text {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}

.rea-project-text p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.rea-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.25s ease;
}

.rea-project-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}

.rea-project-link:hover {
  color: #64529f;
}

.rea-project-link:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Mobile : image en haut, style On parle de nous */
.rea-project-visual {
  order: 1;
  display: block;
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.rea-project-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.rea-project-visual--full {
  aspect-ratio: auto;
  overflow: visible;
}

.rea-project-visual--full img {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.rea-project:hover .rea-project-visual img {
  transform: scale(1.04);
}

.rea-project:hover .rea-project-visual--full img {
  transform: none;
}

.rea-project--reverse .rea-project-visual {
  order: 1;
}

@media (min-width: 1024px) {
  .rea-projects {
    background: var(--white);
  }

  .rea-projects-list {
    gap: 120px;
  }

  .rea-project {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .rea-project:hover {
    transform: none;
    box-shadow: none;
  }

  .rea-project-copy,
  .rea-project-visual {
    flex: 1 1 0;
  }

  .rea-project-copy {
    order: 0;
    padding: 0;
  }

  .rea-project-meta {
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .rea-project-meta .line {
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(100, 82, 159, 0.35);
  }

  .rea-project-meta span:last-child {
    padding: 0;
    background: none;
    border-radius: 0;
    color: #64529f;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .rea-project-copy h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text);
    margin-bottom: 20px;
  }

  .rea-project-text p {
    font-size: 16px;
    line-height: 1.65;
  }

  .rea-project-visual {
    order: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .rea-project-visual img {
    object-fit: cover;
    object-position: center;
    max-height: 100%;
    width: 100%;
    height: 100%;
  }

  .rea-project-visual--full {
    aspect-ratio: auto;
    height: auto;
    overflow: visible;
    align-self: center;
  }

  .rea-project-visual--full img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .rea-project:hover .rea-project-visual img {
    transform: scale(1.03);
  }

  .rea-project:hover .rea-project-visual--full img {
    transform: none;
  }

  .rea-project--reverse {
    flex-direction: row-reverse;
  }

  .rea-project--reverse .rea-project-visual {
    order: 0;
  }
}

.rea-method {
  padding-block: 80px;
  background: var(--surface);
  border-top: 1px solid rgba(121, 117, 129, 0.12);
}

.rea-method h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 56px;
}

.rea-method-grid {
  display: grid;
  gap: 32px;
}

.rea-step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid #64529f;
}

.rea-step-num {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  padding-inline: 8px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: #64529f;
  opacity: 0.22;
  line-height: 1;
}

.rea-step h3 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 12px;
}

.rea-step p {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 15px;
}

@media (min-width: 768px) {
  .rea-method-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .rea-method-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

.rea-cta {
  background: var(--primary-container);
  padding-block: 80px;
  text-align: center;
}

.rea-cta-inner {
  max-width: 48rem;
}

.rea-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #9784d6;
  margin-bottom: 32px;
}

.btn-cta-light {
  background: #9784d6;
  color: var(--primary-container);
  font-weight: 700;
}

.btn-cta-light:hover {
  background: var(--white);
}

.btn-cta-light .material-symbols-outlined {
  transition: transform 0.3s var(--ease);
}

.btn-cta-light:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* ============================================
   Page On parle de nous
   ============================================ */

.page-presse {
  background: var(--surface);
}

.presse-list {
  padding-block: 72px 40px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.presse-stack {
  display: grid;
  gap: 48px;
}

.presse-card {
  position: relative;
  border-radius: 14px;
  padding: 2px;
  isolation: isolate;
  overflow: hidden;
  background: rgba(46, 19, 91, 0.07);
  box-shadow: 0 0 12px rgba(46, 19, 91, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

/* Même lumière de bordure que les témoignages (index) */
.presse-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 285deg,
    #2E135B 305deg,
    #714ad4 330deg,
    #c4a8f2 345deg,
    transparent 360deg
  );
  animation: tgc-border-spin 7s linear infinite;
}

.presse-card:nth-child(2)::before { animation-delay: -1.8s; }
.presse-card:nth-child(3)::before { animation-delay: -3.6s; }
.presse-card:nth-child(4)::before { animation-delay: -5.2s; }

.presse-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.presse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 14px rgba(46, 19, 91, 0.12);
}

.presse-card-media {
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* Article en entier — pas de crop (cover coupait le titre / colonnes) */
.presse-card-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.presse-card-body {
  padding: 28px 24px 32px;
}

.presse-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.presse-card-top time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.presse-tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-container);
  background: var(--primary-fixed);
  border-radius: 999px;
}

.presse-card-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
}

.presse-card-text {
  display: grid;
  gap: 14px;
}

.presse-card-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .presse-stack {
    gap: 64px;
  }

  .presse-card-inner {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }

  .presse-card--reverse .presse-card-inner {
    direction: rtl;
  }

  .presse-card--reverse .presse-card-inner > * {
    direction: ltr;
  }

  .presse-card-media {
    width: 100%;
  }

  .presse-card-body {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
  }
}

.presse-video {
  padding-block: 80px;
  background: var(--white);
  border-top: 1px solid var(--outline);
}

.presse-video-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.presse-video-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 10px;
}

.presse-video-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.presse-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #12082a;
  border: 1px solid var(--outline);
  box-shadow: 0 20px 60px rgba(46, 19, 91, 0.12);
}

.presse-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.presse-video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #12082a;
}

.presse-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}

.presse-video-play:hover .presse-video-poster {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.presse-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.presse-video-play-btn .material-symbols-outlined {
  font-size: 36px;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 40;
}

.presse-video-play:hover .presse-video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--white);
}

.presse-video-yt-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(18, 8, 42, 0.75);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}

.presse-video-yt-link:hover {
  background: var(--primary);
}

.presse-video-yt-link .material-symbols-outlined {
  font-size: 16px;
}

.presse-video-frame.is-playing .presse-video-play,
.presse-video-frame.is-playing .presse-video-yt-link {
  display: none;
}

.presse-cta {
  background: var(--primary-container);
  color: var(--white);
  padding-block: 72px;
  text-align: center;
}

.presse-cta-inner {
  max-width: 36rem;
}

.presse-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.presse-cta p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
  font-size: 17px;
}

/* ——— Pages légales ——— */
.legal-hero {
  padding: calc(var(--header-h) + 48px) 0 36px;
  background:
    radial-gradient(circle at 12% 20%, rgba(184, 159, 201, 0.14), transparent 42%),
    #f8f7fa;
}

.legal-hero .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--primary);
  letter-spacing: -0.03em;
}

.legal-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.legal-content {
  padding: 40px 0 88px;
  background: var(--white);
}

.legal-prose {
  max-width: 46rem;
}

.legal-prose article {
  margin-bottom: 36px;
}

.legal-prose h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
}

.legal-prose h3 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  color: var(--primary-container);
}

.legal-prose p,
.legal-prose li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-prose p {
  margin: 0 0 12px;
}

.legal-prose ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal-prose li + li {
  margin-top: 6px;
}

.legal-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--secondary);
}

.legal-updated {
  margin-top: 28px !important;
  font-size: 13px !important;
  color: var(--text-soft) !important;
}

/* ——— Bandeau cookies RGPD (barre horizontale basse) ——— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  max-width: none;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(184, 159, 201, 0.35);
  box-shadow: 0 -10px 36px rgba(46, 19, 91, 0.12);
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner:not([hidden]) {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cookie-banner-copy {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 640px;
}

.cookie-banner-inner > h2,
.cookie-banner-copy > h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--primary);
}

.cookie-banner-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cookie-banner-body--short,
.cookie-customize-short {
  display: none;
}

.cookie-banner.is-customizing .cookie-banner-body {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.cookie-prefs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  flex: 1 1 100%;
  margin: 0;
  order: 3;
}

.cookie-prefs[hidden] {
  display: none !important;
}

.cookie-pref {
  display: block;
  margin: 0;
  padding: 8px 12px;
  background: #f8f5fc;
  border: 1px solid rgba(184, 159, 201, 0.25);
  border-radius: 12px;
  cursor: default;
  flex: 1 1 200px;
}

.cookie-pref strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
}

.cookie-pref em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}

.cookie-pref--choice {
  cursor: default;
}

.cookie-pref--choice.is-interactive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f3eefd;
  cursor: pointer;
}

.cookie-pref--choice .cookie-analytics-input {
  margin-top: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.cookie-pref--choice.is-interactive .cookie-analytics-input {
  display: block;
  width: 16px;
  height: 16px;
}

.cookie-banner-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  flex: 0 1 auto;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.cookie-banner-actions .cookie-accept {
  order: 1;
}

.cookie-banner-actions .cookie-refuse {
  order: 2;
}

.cookie-banner-actions .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  width: auto;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cookie-banner .btn-outline-light {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(46, 19, 91, 0.28);
}

.cookie-banner .btn-outline-light:hover {
  background: #f3eefd;
  color: var(--primary);
  border-color: var(--secondary);
}

.cookie-customize {
  display: inline-block;
  margin: 6px 0 0;
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-customize:hover {
  color: var(--secondary);
}

.cookie-banner .cookie-save {
  margin: 0;
  min-height: 40px;
  width: auto;
  padding: 8px 16px;
  white-space: nowrap;
}

/* .btn { display } gagne sur [hidden] — forcer le masquage réel */
.cookie-banner [hidden] {
  display: none !important;
}

.cookie-banner.is-customizing .cookie-banner-actions {
  margin-bottom: 0;
}

.cookie-banner.is-customizing .cookie-banner-inner {
  align-items: flex-start;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border: 0;
    border-top: 1px solid rgba(184, 159, 201, 0.35);
    box-shadow: 0 -10px 36px rgba(46, 19, 91, 0.12);
    backdrop-filter: blur(12px);
    max-height: none;
    overflow: visible;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .cookie-banner-copy {
    flex: 0 0 auto;
    max-width: none;
  }

  .cookie-banner-copy > h2 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--primary);
  }

  .cookie-banner-body--full,
  .cookie-customize-full {
    display: none !important;
  }

  .cookie-banner-body.cookie-banner-body--short {
    display: block;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .cookie-customize {
    display: inline-block;
    width: auto;
    margin-top: 6px;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    text-underline-offset: 3px;
  }

  .cookie-customize-short {
    display: inline;
  }

  .cookie-customize:hover {
    color: var(--secondary);
  }

  .cookie-banner-controls {
    justify-content: stretch;
    width: 100%;
    gap: 8px;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }

  .cookie-banner-actions .cookie-refuse {
    order: 1;
  }

  .cookie-banner-actions .cookie-accept {
    order: 2;
  }

  .cookie-banner-actions .btn,
  .cookie-banner .cookie-save {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  .cookie-banner .btn-outline-light,
  .cookie-banner .cookie-refuse {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(46, 19, 91, 0.28);
  }

  .cookie-banner .btn-outline-light:hover,
  .cookie-banner .cookie-refuse:hover {
    background: #f3eefd;
    color: var(--primary);
    border-color: var(--secondary);
  }

  .cookie-banner .cookie-accept,
  .cookie-banner .cookie-save {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
  }

  .cookie-banner .cookie-accept:hover,
  .cookie-banner .cookie-save:hover {
    background: var(--primary-container);
    color: var(--white);
    border-color: var(--primary-container);
  }

  .cookie-prefs {
    gap: 8px;
  }

  .cookie-pref,
  .cookie-pref--choice.is-interactive {
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8f5fc;
    border-color: rgba(184, 159, 201, 0.25);
  }

  .cookie-pref--choice.is-interactive {
    background: #f3eefd;
  }

  .cookie-pref strong {
    font-size: 12px;
    color: var(--primary);
  }

  .cookie-pref em {
    font-size: 11px;
    color: var(--text-muted);
  }

  .cookie-banner.is-customizing .cookie-banner-actions {
    display: none;
  }

  .cookie-banner.is-customizing .cookie-save {
    width: 100%;
  }
}

/* ============================================
   Actualités — feed vidéos réseaux sociaux
   ============================================ */
.page-actualites {
  --act-ink: #2e135b;
  --act-lilac: #f3eefd;
  --act-lav: #b89fc9;
  --act-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #faf9fc;
}

.act-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h, 88px) + 48px) 0 72px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #2e135b 0%, #4a1f8c 48%, #714ad4 100%);
}

.act-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.act-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: act-float 14s ease-in-out infinite;
}

.act-orb--a {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  left: -12%;
  top: 10%;
  background: rgba(184, 159, 201, 0.55);
}

.act-orb--b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  right: -8%;
  bottom: 5%;
  background: rgba(243, 238, 253, 0.35);
  animation-delay: -4s;
}

.act-orb--c {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  left: 42%;
  top: 18%;
  background: rgba(113, 74, 212, 0.5);
  animation-delay: -7s;
}

.act-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes act-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.06);
  }
}

.act-hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.act-badge {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 238, 253, 0.9);
  animation: act-rise 0.9s var(--act-ease) both;
}

.act-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: act-rise 0.9s var(--act-ease) 0.08s both;
}

.act-hero p {
  margin: 0 0 22px;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  animation: act-rise 0.9s var(--act-ease) 0.16s both;
}

.act-hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 238, 253, 0.72);
  animation: act-rise 0.9s var(--act-ease) 0.24s both;
}

.act-hero-platforms .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--act-lav);
}

.act-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  animation: act-bounce 2.2s ease-in-out infinite;
}

.act-scroll .material-symbols-outlined {
  font-size: 18px;
}

@keyframes act-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes act-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.act-feed {
  position: relative;
  padding: 72px 0 40px;
}

.act-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.act-feed-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--act-ink);
  letter-spacing: -0.03em;
}

.act-feed-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28rem;
}

.act-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.act-filter {
  border: 1px solid rgba(46, 19, 91, 0.14);
  background: #fff;
  color: var(--act-ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--act-ease), color 0.25s, border-color 0.25s, transform 0.25s;
}

.act-filter:hover {
  border-color: var(--act-lav);
  transform: translateY(-1px);
}

.act-filter.is-active {
  background: var(--act-ink);
  color: #fff;
  border-color: var(--act-ink);
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.act-card {
  grid-column: span 4;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.7s var(--act-ease),
    transform 0.7s var(--act-ease),
    box-shadow 0.35s;
  transition-delay: calc(var(--i, 0) * 0.07s);
}

.act-card[data-reveal].is-visible,
.act-card.is-visible,
.act-card:not([data-reveal]) {
  opacity: 1;
  transform: none;
}

.act-card.is-filtering {
  animation: act-pop 0.45s var(--act-ease) both;
}

@keyframes act-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.act-card--featured {
  grid-column: span 8;
}

.act-card--short {
  grid-column: span 3;
}

.act-card--short .act-card-media {
  aspect-ratio: 9 / 14;
}

.act-card--short .act-card-media img {
  object-position: center top;
}

.act-card-hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(46, 19, 91, 0.08);
  transition: transform 0.4s var(--act-ease), box-shadow 0.4s;
}

.act-card-hit:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(46, 19, 91, 0.16);
}

.act-card-hit:hover .act-card-media img,
.act-card-hit:hover .act-card-pattern {
  transform: scale(1.06);
}

.act-card-hit:hover .act-play {
  transform: scale(1.08);
  background: #fff;
  color: var(--act-ink);
}

.act-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #2e135b;
}

.act-card--featured .act-card-media {
  aspect-ratio: 16 / 9;
}

.act-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--act-ease);
}

.act-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 8, 40, 0.45) 100%);
}

.act-card-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(145deg, #2e135b, #714ad4 55%, #b89fc9);
  transition: transform 0.7s var(--act-ease);
}

.act-card-media--alt .act-card-pattern {
  background:
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(160deg, #4a1f8c, #2e135b 60%, #b89fc9);
}

.act-card-media--ig .act-card-pattern {
  background:
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #833ab4, #fd1d1d 50%, #fcb045);
}

.act-card-media--yt .act-card-pattern {
  background:
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.15), transparent 40%),
    linear-gradient(145deg, #2e135b, #c4302b);
}

.act-card-media--in .act-card-pattern {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(145deg, #0a66c2, #2e135b);
}

.act-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--act-ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--act-ease), background 0.35s, color 0.35s;
}

.act-play .material-symbols-outlined {
  font-size: 32px;
  margin-left: 2px;
}

.act-card-body {
  padding: 18px 18px 20px;
}

.act-chip {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.act-chip--youtube {
  color: #c4302b;
}

.act-chip--facebook {
  color: #1877f2;
}

.act-chip--instagram {
  color: #c13584;
}

.act-chip--linkedin {
  color: #0a66c2;
}

.act-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--act-ink);
}

.act-card-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.act-hint {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft, #8a8494);
  max-width: 42rem;
}

.act-cta {
  padding: 56px 0 88px;
}

.act-cta-inner {
  text-align: center;
  padding: 48px 28px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(184, 159, 201, 0.22), transparent 55%),
    #2e135b;
  color: #fff;
}

.act-cta-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.act-cta-inner p {
  margin: 0 0 24px;
  color: rgba(243, 238, 253, 0.8);
}

.act-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.act-cta .nav-social-link {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.act-cta .nav-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.act-cta .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.act-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

/* Lightbox */
body.act-lightbox-open {
  overflow: hidden;
}

.act-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.act-lightbox[hidden] {
  display: none !important;
}

.act-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 40, 0.72);
  backdrop-filter: blur(8px);
  animation: act-fade 0.3s ease both;
}

.act-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  animation: act-rise 0.4s var(--act-ease) both;
}

.act-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

.act-lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.act-lightbox-yt {
  display: inline-flex;
  margin-top: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.act-lightbox-yt[hidden] {
  display: none !important;
}

.act-lightbox.is-short .act-lightbox-dialog {
  width: min(420px, 100%);
}

.act-lightbox.is-short .act-lightbox-frame {
  aspect-ratio: 9 / 16;
  max-height: min(82vh, 760px);
  margin-inline: auto;
}

.act-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes act-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .act-card,
  .act-card--featured {
    grid-column: span 6;
  }

  .act-card--short {
    grid-column: span 3;
  }
}

@media (max-width: 700px) {
  .act-hero {
    min-height: 58vh;
    padding-bottom: 64px;
  }

  .act-card,
  .act-card--featured,
  .act-card--short {
    grid-column: span 12;
  }

  .act-card--short {
    grid-column: span 6;
  }

  .act-feed-head {
    align-items: flex-start;
  }

  .act-play {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .act-orb,
  .act-scroll,
  .act-badge,
  .act-hero h1,
  .act-hero p,
  .act-hero-platforms,
  .act-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* ——— SEO: pourquoi + FAQ ——— */
.seo-why {
  background:
    radial-gradient(ellipse 70% 45% at 80% 20%, rgba(184, 159, 201, 0.22), transparent 50%),
    var(--section-dark);
  padding-block: 72px;
  color: #fff;
}

.seo-why-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 800px) {
  .seo-why-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 56px;
  }
}

.seo-why .eyebrow {
  color: var(--lavande);
}

.seo-why h2 {
  color: #fff;
}

.seo-why-copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0 0 16px;
}

.seo-why-copy .btn {
  margin-top: 8px;
}

.seo-why-copy .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.seo-why-copy .btn-primary:hover {
  background: var(--primary-fixed);
  color: var(--primary);
  border-color: var(--primary-fixed);
}

.faq {
  position: relative;
  isolation: isolate;
  background: #ffffff;
  padding-block: 88px 96px;
  overflow: hidden;
}

.faq-aurora {
  display: none;
}

.faq-wrap {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

@keyframes faq-beam-spin {
  to { transform: rotate(360deg); }
}

@keyframes faq-pulse {
  0% { transform: scale(0.7); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes faq-meter {
  0%, 20% { transform: scaleX(0); transform-origin: left; }
  45%, 60% { transform: scaleX(1); transform-origin: left; }
  80%, 100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes faq-tick {
  0%, 30% { transform: translateX(-4px); opacity: 0.4; }
  50% { transform: translateX(2px); opacity: 1; }
  100% { transform: translateX(16px); opacity: 0; }
}

.faq-intro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 22rem;
  margin: 0 0 36px;
  padding: 12px 22px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  border: 1px solid rgba(46, 19, 91, 0.12);
  background: #ffffff;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  font-weight: 700;
}

.faq-intro__beam,
.faq-intro__pulse {
  position: absolute;
  inset: -110%;
  pointer-events: none;
  border-radius: 50%;
}

.faq-intro__beam {
  background: conic-gradient(from 180deg, rgba(46, 19, 91, 0.16), transparent 30%, rgba(184, 159, 201, 0.2) 58%, transparent 80%);
  animation: faq-beam-spin 18s linear infinite;
  opacity: 0.55;
}

.faq-intro__pulse {
  border: 1px solid currentColor;
  opacity: 0.2;
  animation: faq-pulse 3.4s ease-out infinite;
}

.faq-intro__label {
  position: relative;
  z-index: 1;
}

.faq-intro__meter {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 35%, transparent 85%);
  transform: scaleX(0);
  animation: faq-meter 5.8s ease-in-out infinite;
  opacity: 0.55;
}

.faq-intro__tick {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(46, 19, 91, 0.08);
  animation: faq-tick 3.2s ease-in-out infinite;
}

.faq-head {
  margin-bottom: 32px;
}

.faq-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.faq-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.15;
}

.faq-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: none;
  padding: 0;
  list-style: none;
}

.faq-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(46, 19, 91, 0.1);
  background: #ffffff;
  box-shadow: 0 24px 60px -40px rgba(46, 19, 91, 0.28);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.faq-card:hover,
.faq-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px -36px rgba(46, 19, 91, 0.35);
}

.faq-card-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(220px circle at var(--faq-x, 50%) var(--faq-y, 50%), rgba(184, 159, 201, 0.16), transparent 70%);
}

.faq-card:hover .faq-card-glow,
.faq-card.is-open .faq-card-glow {
  opacity: 1;
}

.faq-card-trigger {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 26px 28px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.faq-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  border: 1px solid rgba(46, 19, 91, 0.16);
  background: rgba(46, 19, 91, 0.04);
  color: var(--primary);
  transition: transform 0.45s var(--ease);
}

.faq-card:hover .faq-card-icon {
  transform: scale(1.05);
}

.faq-card-icon svg {
  transition: transform 0.45s var(--ease);
}

.faq-card.is-open .faq-card-icon svg {
  transform: rotate(45deg);
}

.faq-card-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.faq-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.faq-card-q {
  flex: 1 1 14rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
}

.faq-meta {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 19, 91, 0.1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

.faq-card-panel {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-card-panel > span {
  overflow: hidden;
}

.faq-card.is-open .faq-card-panel {
  grid-template-rows: 1fr;
}

@media (max-width: 640px) {
  .faq-card-trigger {
    padding: 20px 18px;
    gap: 14px;
  }

  .faq-card-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .faq-meta {
    margin-left: 0;
  }
}

.seo-page-intro {
  padding-top: 32px;
}

.agence-cta-block .btn {
  margin: 8px 0 12px;
}

.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Actualités : articles ——— */
.act-articles {
  padding: 40px 0 16px;
}

.act-articles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.act-articles-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--primary);
  letter-spacing: -0.03em;
}

.act-articles-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.act-news-grid {
  display: grid;
  gap: 24px;
}

.act-news-card {
  display: grid;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(46, 19, 91, 0.08);
  box-shadow: 0 28px 70px -42px rgba(46, 19, 91, 0.35);
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.act-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 36px 80px -40px rgba(46, 19, 91, 0.42);
}

.act-news-media {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: #2e135b;
}

.act-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.act-news-card:hover .act-news-media img {
  transform: scale(1.04);
}

.act-news-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 28px 32px;
}

.act-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.act-news-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3eefd;
  color: #4a1f8c;
  letter-spacing: 0.1em;
}

.act-news-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.act-news-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.act-news-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4a1f8c;
}

.act-news-read .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.act-news-card:hover .act-news-read .material-symbols-outlined {
  transform: translateX(4px);
}

@media (min-width: 860px) {
  .act-news-card {
    grid-template-columns: 1.05fr 1fr;
    min-height: 320px;
  }

  .act-news-media,
  .act-news-media img {
    min-height: 100%;
    height: 100%;
  }

  .act-news-body {
    padding: 36px 40px;
  }
}

@media (min-width: 980px) {
  .act-news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .act-news-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .act-news-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .act-news-media img {
    min-height: 220px;
    height: 100%;
  }
}

/* ——— Page article ——— */
.page-article {
  background: #faf9fc;
}

.art-hero {
  padding: calc(var(--header-h, 88px) + 28px) 0 0;
}

.art-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #4a1f8c;
  text-decoration: none;
}

.art-back .material-symbols-outlined {
  font-size: 18px;
}

.art-cover {
  overflow: hidden;
  border-radius: 28px;
  background: #2e135b;
  box-shadow: 0 32px 80px -48px rgba(46, 19, 91, 0.45);
}

.art-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.art-head {
  max-width: 46rem;
  margin: 28px auto 0;
  padding: 0 8px;
}

.art-head .act-news-meta {
  margin-bottom: 12px;
}

.art-head h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--primary);
}

.art-head .art-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.art-head ul {
  margin: 14px 0 0;
  padding-left: 1.25em;
}

.art-head li {
  margin: 0 0 0.45em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a3550;
}

.art-body {
  max-width: 46rem;
  margin: 0 auto;
  padding: 28px 8px 72px;
}

.art-body p {
  margin: 0 0 1.15em;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3550;
}

.art-body h2 {
  margin: 2em 0 0.7em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.art-body ul {
  margin: 0 0 1.35em;
  padding-left: 1.25em;
}

.art-body li {
  margin: 0 0 0.55em;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3550;
}

.art-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 32px;
}

.art-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #eee;
}

.art-gallery figure:first-child {
  grid-column: 1 / -1;
}

.art-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

@media (max-width: 700px) {
  .art-gallery {
    grid-template-columns: 1fr;
  }

  .art-cover {
    border-radius: 18px;
  }
}

.art-cover--portrait {
  display: flex;
  justify-content: center;
  background: linear-gradient(165deg, #2e135b 0%, #12071f 100%);
}

.art-cover--portrait img {
  width: auto;
  max-width: min(100%, 520px);
  max-height: 680px;
  object-fit: contain;
}

.art-shot {
  margin: 8px 0 32px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(46, 19, 91, 0.08);
  box-shadow: 0 24px 60px -40px rgba(46, 19, 91, 0.35);
}

.art-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.art-shot figcaption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 13px;
  color: var(--muted);
}

.art-pdf-actions {
  margin: 0 0 16px;
}

.art-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.art-pdf-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

.art-shot--pdf .art-shot-link {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.art-shot--pdf .art-shot-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(46, 19, 91, 0.55) 100%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.art-shot--pdf .art-shot-link:hover::after,
.art-shot--pdf .art-shot-link:focus-visible::after {
  opacity: 1;
}

.art-shot-cta {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #2e135b;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.art-shot-cta .material-symbols-outlined {
  font-size: 1.15rem;
  color: #b89fc9;
}

.art-shot--pdf .art-shot-link:hover .art-shot-cta,
.art-shot--pdf .art-shot-link:focus-visible .art-shot-cta {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.art-shot--portrait {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.art-related {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(46, 19, 91, 0.1);
}

.art-related a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #4a1f8c;
  text-decoration: none;
}

.art-related a:hover {
  text-decoration: underline;
}

.art-q {
  margin: 1.8em 0 0.5em;
  font-weight: 650;
  color: var(--primary);
  font-size: 1.04rem;
  line-height: 1.55;
}

.art-a {
  margin: 0 0 0.9em;
}

.art-close {
  margin-top: 2.2em;
  font-weight: 600;
  color: var(--muted);
}

/* ============================================
   Bouton retour hero (bas droite)
   ============================================ */
.back-to-hero {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #4a1f8c 0%, var(--primary) 100%);
  box-shadow:
    0 10px 28px rgba(46, 19, 91, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-hero.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-hero:hover {
  background: linear-gradient(145deg, var(--secondary-soft) 0%, #4a1f8c 100%);
  box-shadow:
    0 14px 32px rgba(46, 19, 91, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-2px) scale(1.03);
}

.back-to-hero:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.back-to-hero .material-symbols-outlined {
  font-size: 28px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

@media (max-width: 640px) {
  .back-to-hero {
    right: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-hero {
    transition: opacity 0.15s ease, visibility 0.15s;
    transform: none;
  }

  .back-to-hero.is-visible,
  .back-to-hero:hover {
    transform: none;
  }
}

/* ——— Stories carousel (YouTube Shorts après approche) ——— */
.stories-section {
  --stories-ink: #2e135b;
  --stories-lilac: #b89fc9;
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 70% 60% at 10% 0%, rgba(184, 159, 201, 0.18), transparent 55%),
    #faf9fc;
}

.stories-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  margin-bottom: 28px;
}

.stories-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--stories-ink);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.stories-head h2 {
  margin: 0 0 8px;
  color: var(--stories-ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stories-head p {
  margin: 0;
  max-width: 38rem;
  color: #5a5368;
  font-size: 1.02rem;
  line-height: 1.6;
}

.stories-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.stories {
  position: relative;
}

.stories-nav {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(46, 19, 91, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #2e135b;
  box-shadow: 0 10px 28px rgba(46, 19, 91, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.stories-nav--prev {
  left: 6px;
}

.stories-nav--next {
  right: 6px;
}

.stories-nav .material-symbols-outlined {
  font-size: 26px;
}

.stories-nav:hover:not(:disabled) {
  background: #2e135b;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.stories-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.stories-viewport {
  overflow: hidden;
  cursor: grab;
  padding: 8px 4px 18px;
}

.stories-viewport.is-dragging {
  cursor: grabbing;
}

.stories-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  padding-inline: 2px;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stories-track.is-dragging,
.stories-track.is-instant {
  transition: none;
}

.story {
  position: relative;
  flex: 0 0 auto;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #2e135b;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
  box-shadow:
    0 22px 48px -26px rgba(46, 19, 91, 0.58),
    0 0 0 1px rgba(46, 19, 91, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.story:visited {
  color: #fff;
}

.story:hover,
.story:focus-visible {
  transform: scale(1.02);
  box-shadow:
    0 22px 48px -24px rgba(46, 19, 91, 0.6),
    0 0 0 1px rgba(184, 159, 201, 0.45);
  outline: none;
}

.story-media {
  position: absolute;
  inset: 0;
}

.story-poster,
.story-preview,
.story-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.story-preview {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background: #1a0b36;
}

.story.is-playing .story-preview {
  opacity: 1;
}

.story.is-playing .story-poster {
  opacity: 0;
}

.story-overlay {
  position: absolute;
  left: 0;
  right: 0;
  height: 42%;
  pointer-events: none;
  z-index: 1;
}

.story-overlay--top {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.story-overlay--bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent);
}

.story-title {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 10px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(46, 19, 91, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.story-play .material-symbols-outlined {
  font-size: 30px;
  color: #fff;
  margin-left: 2px;
}

.story:hover .story-play,
.story:focus-visible .story-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(46, 19, 91, 0.9);
}

.story.is-playing .story-play {
  opacity: 0;
}

.story-author {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.story-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.story-author-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lightbox stories */
.stories-lightbox[hidden] {
  display: none !important;
}

.stories-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.stories-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 8, 36, 0.72);
  backdrop-filter: blur(6px);
}

.stories-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stories-lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(78vh, 720px);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.stories-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stories-lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #2e135b;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stories-lightbox-yt {
  align-self: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.stories-lightbox-open {
  overflow: hidden;
}

@media (min-width: 721px) {
  .stories {
    padding-inline: 8px;
  }

  .stories-nav {
    width: 48px;
    height: 48px;
  }

  .stories-nav--prev {
    left: 0;
  }

  .stories-nav--next {
    right: 0;
  }
}

@media (max-width: 720px) {
  .stories-section {
    padding: 56px 0 64px;
  }

  .stories-head {
    margin-bottom: 18px;
  }

  .stories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "view view"
      "prev next";
    column-gap: 12px;
    row-gap: 16px;
    justify-items: center;
    align-items: start;
  }

  .stories-viewport {
    --story-w: min(280px, calc(100vw - 48px));
    grid-area: view;
    width: var(--story-w);
    max-width: 100%;
    min-width: 0;
    padding: 0;
    cursor: default;
  }

  .stories-track {
    gap: 0;
    padding-inline: 0;
  }

  .story {
    flex: 0 0 var(--story-w);
    width: var(--story-w);
    max-width: none;
  }

  .stories-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 48px;
    height: 48px;
    box-shadow: 0 8px 20px rgba(46, 19, 91, 0.12);
  }

  .stories-nav--prev {
    grid-area: prev;
    justify-self: end;
  }

  .stories-nav--next {
    grid-area: next;
    justify-self: start;
  }

  .stories-nav:hover:not(:disabled),
  .stories-nav:focus-visible:not(:disabled) {
    transform: none;
  }

  .story-play {
    width: 50px;
    height: 50px;
  }

  .story-play .material-symbols-outlined {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stories-track,
  .story,
  .story-preview {
    transition: none;
  }

  .story:hover,
  .story:focus-visible {
    transform: none;
  }
}
