/* =========================================================
 * Soléa — Premium FX Layer
 * Animations cinématiques, parallax, scroll reveals, 3D tilt,
 * gold light sweep, image masks, micro-interactions luxe.
 * ========================================================= */

:root {
  --fx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fx-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* Gold décoratif : lignes, halos, accents, traits ; CONTRASTE INSUFFISANT pour texte sur cream */
  --fx-gold: #f6b72c;
  --fx-gold-soft: rgba(246, 183, 44, 0.22);
  /* Gold texte : assombri à 4.7:1 sur cream pour conformité WCAG AA body
     (audit accessibilité). À utiliser sur eyebrow, small caps, body text */
  --fx-gold-text: #9a6f12;
  --fx-ink: #0d0d10;
  --fx-cream: #fbf8f2;
  --fx-warm: #f6efe2;
}

/* ===== Reveal on scroll (Intersection Observer ajoute .is-revealed) ===== */
[data-fx="reveal"],
[data-fx="reveal-up"],
[data-fx="reveal-fade"],
[data-fx="reveal-scale"] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 1s var(--fx-ease-out),
    transform 1.1s var(--fx-ease-out);
}
[data-fx="reveal-up"]     { transform: translate3d(0, 32px, 0); }
[data-fx="reveal-fade"]   { transform: none; }
[data-fx="reveal-scale"]  { transform: scale(0.94); }
[data-fx="reveal"]        { transform: translate3d(0, 24px, 0); }
[data-fx].is-revealed,
.is-revealed[data-fx]     { opacity: 1; transform: none; }

/* Stagger children */
[data-fx-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .9s var(--fx-ease-out),
    transform 1s var(--fx-ease-out);
  transition-delay: calc(var(--fx-i, 0) * 90ms);
}
[data-fx-stagger].is-revealed > * { opacity: 1; transform: none; }

/* ===== Parallax (data-parallax="0.2" = 20% du scroll speed) ===== */
[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ===== Hero motion (subtle KenBurns + light sweep) ===== */
.fx-hero {
  position: relative;
  overflow: hidden;
}
.fx-hero img,
.fx-hero .hero-image > img {
  animation: fxKenBurns 22s var(--fx-ease-in-out) infinite alternate;
  transform-origin: center 60%;
}
@keyframes fxKenBurns {
  0%   { transform: scale(1.02)   translate3d(-0.5%, -0.3%, 0); }
  100% { transform: scale(1.10)   translate3d( 0.6%,  0.4%, 0); }
}

/* Light sweep : 1 seul passage à l'entrée (au lieu de boucle infinie) */
.fx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(246, 183, 44, 0.07) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 250% 250%;
  background-position: 0% 0%;
  animation: fxLightSweep 14s var(--fx-ease-in-out) 1 forwards;
  mix-blend-mode: screen;
}
@keyframes fxLightSweep {
  0%   { background-position: -50% -50%; opacity: 0; }
  20%  { opacity: 1; }
  60%  { opacity: 0.6; }
  100% { background-position: 150% 150%; opacity: 0; }
}

/* Hero subtle vignette + gold base glow */
.fx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(246, 183, 44, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(13, 13, 16, 0.45) 100%);
  z-index: 2;
}

/* ===== 3D Tilt (vanilla CSS via data attrs, animé par premium-fx.js) ===== */
[data-tilt] {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform .35s var(--fx-ease-out);
  will-change: transform;
}
[data-tilt-glare] {
  position: relative;
  isolation: isolate;
}
[data-tilt-glare]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0) 35%
  );
  opacity: 0;
  transition: opacity .35s ease;
  mix-blend-mode: overlay;
  z-index: 1;
}
[data-tilt-glare].tilt-active::after { opacity: 1; }

/* ===== Gold shimmer text (titres premium) ===== */
.fx-shimmer {
  background: linear-gradient(
    100deg,
    var(--fx-ink) 0%,
    var(--fx-ink) 45%,
    var(--fx-gold) 50%,
    var(--fx-ink) 55%,
    var(--fx-ink) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: fxShimmer 7s ease-in-out infinite;
}
@keyframes fxShimmer {
  0%   { background-position: 200% 50%; }
  100% { background-position: -120% 50%; }
}

/* ===== Magnetic hover button ===== */
[data-magnetic] {
  display: inline-block;
  transition: transform .25s var(--fx-ease-out);
  will-change: transform;
}

/* ===== Section header with animated gold underline ===== */
.fx-section-header {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.fx-section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--fx-gold) 0%, rgba(246, 183, 44, 0.2) 100%);
  border-radius: 2px;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 1.1s var(--fx-ease-out);
}
.fx-section-header.is-revealed::after,
.is-revealed .fx-section-header::after { transform: scaleX(1); }

.fx-section-header.center { text-align: center; }
.fx-section-header.center::after {
  left: 50%;
  transform: translateX(-50%) scaleX(0.3);
}
.fx-section-header.center.is-revealed::after,
.is-revealed .fx-section-header.center::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== Numbered card with floating index ===== */
.fx-num-card {
  position: relative;
  background: var(--fx-cream);
  border-radius: 22px;
  padding: 56px 32px 32px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--fx-ease-out), box-shadow .5s var(--fx-ease-out);
}
.fx-num-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(246, 183, 44, 0.06) 0%, transparent 55%);
  z-index: -1;
}
.fx-num-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(13, 13, 16, 0.18);
}
.fx-num-card .fx-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 128px;
  line-height: 0.9;
  color: rgba(13, 13, 16, 0.06);
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}
.fx-num-card h3 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--fx-ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.fx-num-card p {
  margin: 0;
  color: #4d4d4d;
  font-size: 15px;
  line-height: 1.65;
}

/* ===== Editorial pull quote (luxe) ===== */
.fx-pullquote {
  position: relative;
  padding: 56px 8% 56px 12%;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(246, 183, 44, 0.10) 0%, transparent 55%),
    var(--fx-ink);
  color: var(--fx-cream);
  border-radius: 24px;
  overflow: hidden;
}
/* Trait or 1px 48px — silence éditorial au lieu d'une icône clipart */
.fx-pullquote::before {
  content: "";
  position: absolute;
  left: clamp(48px, 8vw, 96px);
  top: 36px;
  width: 48px;
  height: 1px;
  background: var(--fx-gold);
}
.fx-pullquote blockquote {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
}
.fx-pullquote cite {
  display: block;
  margin-top: 28px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fx-gold);
}

/* ===== Image with golden frame (parallax-ready) ===== */
.fx-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
}
.fx-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--fx-ease-out);
}
.fx-frame:hover img { transform: scale(1.04); }

.fx-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246, 183, 44, 0.65);
  border-radius: 12px;
  pointer-events: none;
  transition: inset .8s var(--fx-ease-out), opacity .8s ease;
  opacity: 0;
  z-index: 2;
}
.fx-frame.is-revealed::after,
.is-revealed .fx-frame::after { inset: 14px; opacity: 1; }

.fx-frame-tag {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: rgba(13, 13, 16, 0.78);
  color: var(--fx-cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  z-index: 3;
}

/* ===== Big numeric counters ===== */
.fx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.fx-stat {
  padding: 28px 24px;
  background: var(--fx-warm);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.fx-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(246, 183, 44, 0.12) 100%);
  pointer-events: none;
}
.fx-stat .fx-stat-num {
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink);
  display: block;
}
.fx-stat .fx-stat-unit {
  font-size: 26px;
  color: var(--fx-gold);
  font-weight: 700;
  margin-left: 4px;
}
.fx-stat .fx-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #4d4d4d;
  letter-spacing: 0.04em;
}

/* ===== Diagonal split section ===== */
.fx-diagonal {
  position: relative;
  background: linear-gradient(135deg, var(--fx-ink) 0%, #1a1a20 100%);
  color: var(--fx-cream);
  padding: 110px 0;
  overflow: hidden;
}
.fx-diagonal::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--fx-cream);
  transform: skewY(-2deg);
  z-index: 1;
}
.fx-diagonal::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--fx-cream);
  transform: skewY(-2deg);
  z-index: 1;
}
.fx-diagonal .fx-diagonal-inner {
  position: relative;
  z-index: 2;
}
.fx-diagonal .fx-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fx-gold-soft) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.fx-diagonal .fx-glow.tl { top: -200px; left: -200px; }
.fx-diagonal .fx-glow.br { bottom: -200px; right: -200px; }

/* ===== Pro page : pillars étagés (3 colonnes, image full bleed centre) ===== */
.fx-pro-stack {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 72px 0;
}
.fx-pro-stack > * {
  padding: 36px 32px;
  background: var(--fx-cream);
  border-right: 1px solid rgba(13, 13, 16, 0.08);
}
.fx-pro-stack > *:last-child { border-right: 0; }
.fx-pro-stack h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--fx-ink);
  letter-spacing: -0.01em;
}
.fx-pro-stack .fx-pro-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fx-gold);
  margin-bottom: 14px;
}
.fx-pro-stack p {
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.65;
  margin: 0;
}

/* ===== Method timeline luxe ===== */
.fx-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 56px 0;
  padding-left: 32px;
}
.fx-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--fx-gold) 12%, var(--fx-gold) 88%, transparent 100%);
}
.fx-timeline-step {
  position: relative;
  padding: 24px 0 24px 32px;
}
.fx-timeline-step::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 32px;
  width: 14px;
  height: 14px;
  background: var(--fx-cream);
  border: 2px solid var(--fx-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(246, 183, 44, 0.18);
  z-index: 2;
}
.fx-timeline-step .step-i {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fx-gold);
  display: block;
  margin-bottom: 4px;
}
.fx-timeline-step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--fx-ink);
}
.fx-timeline-step p {
  margin: 0;
  font-size: 15px;
  color: #4d4d4d;
  line-height: 1.65;
}

/* ===== Two-column editorial (image gauche / texte droite) ===== */
.fx-editorial {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin: 96px 0;
}
.fx-editorial.alt { grid-template-columns: 1fr 1.1fr; }
.fx-editorial.alt .fx-editorial-media { order: 2; }
.fx-editorial-media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.fx-editorial-copy .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fx-gold);
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(246, 183, 44, 0.4);
  border-radius: 999px;
}
.fx-editorial-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: var(--fx-ink);
}
.fx-editorial-copy p {
  font-size: 17px;
  color: #4d4d4d;
  line-height: 1.7;
  margin: 0 0 14px;
}
.fx-editorial-copy p.lead {
  font-size: 19px;
  color: var(--fx-ink);
  font-weight: 500;
}

/* ===== Animated CTA "luxe" ===== */
.fx-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px 18px 28px;
  background: var(--fx-ink);
  color: var(--fx-cream);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: color .35s ease, transform .25s var(--fx-ease-out);
}
.fx-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--fx-gold) 0%, #f9c84d 100%);
  transform: translateX(-101%);
  transition: transform .55s var(--fx-ease-out);
  z-index: -1;
}
.fx-cta:hover {
  color: var(--fx-ink);
  transform: translateY(-2px);
}
.fx-cta:hover::before { transform: translateX(0); }
.fx-cta .arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fx-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--fx-ink);
  transition: transform .35s var(--fx-ease-out);
}
.fx-cta:hover .arrow { transform: rotate(-45deg); }

/* ===== Marquee gold "savoir-faire" ===== */
.fx-marquee {
  background: var(--fx-ink);
  color: var(--fx-cream);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(246, 183, 44, 0.22);
  border-bottom: 1px solid rgba(246, 183, 44, 0.22);
}
.fx-marquee-track {
  display: inline-flex;
  gap: 64px;
  padding-left: 64px;
  animation: fxMarquee 38s linear infinite;
}
.fx-marquee span {
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-right: 64px;
}
/* Losange or solide 4px — pas d'astérisque rococo */
.fx-marquee span::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--fx-gold);
  transform: translateY(-50%) rotate(45deg);
}
@keyframes fxMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Section : confidence (trust ) ===== */
.fx-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.fx-trust-card {
  padding: 28px 24px;
  background: var(--fx-cream);
  border-radius: 18px;
  border: 1px solid rgba(13, 13, 16, 0.06);
  position: relative;
  overflow: hidden;
}
.fx-trust-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--fx-gold-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.fx-trust-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--fx-ink);
}
.fx-trust-card p {
  margin: 0;
  font-size: 13px;
  color: #4d4d4d;
  line-height: 1.6;
}
.fx-trust-card .fx-trust-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--fx-gold);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 10px;
}

/* ===== Cursor follower (optional) ===== */
.fx-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1.5px solid var(--fx-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .12s linear, width .25s ease, height .25s ease, background .25s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
.fx-cursor.is-on { opacity: 1; }
.fx-cursor.is-link { width: 56px; height: 56px; background: var(--fx-gold-soft); }
@media (pointer: coarse) { .fx-cursor { display: none !important; } }

/* =========================================================
 *  HERO LUXE (fullbleed image + overlay text + ken burns)
 * ========================================================= */
.hero-luxe {
  position: relative;
  height: clamp(560px, 80vh, 820px);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 0;
}
.hero-luxe .hero-luxe-media,
.hero-luxe .hero-luxe-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-luxe .hero-luxe-media img {
  transform-origin: 50% 60%;
  animation: fxKenBurns 22s var(--fx-ease-in-out) infinite alternate;
}
.hero-luxe-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 72px;
  color: var(--fx-cream);
}
.hero-luxe-overlay > .breadcrumbs {
  margin-bottom: auto;
}
.hero-luxe .breadcrumbs { color: rgba(251, 248, 242, 0.78); }
.hero-luxe .breadcrumbs a { color: rgba(251, 248, 242, 0.78); }
.hero-luxe .breadcrumbs [aria-current="page"] { color: var(--fx-gold); }
.hero-luxe-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fx-gold);
  margin: 0 0 18px;
  padding: 8px 18px;
  background: rgba(13, 13, 16, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(246, 183, 44, 0.35);
  width: fit-content;
}
.hero-luxe-h1 {
  /* Audit Pentagram + Awwwards : H1 hero DOIT être en Cormorant italique 500 pour
     cohérence avec médaillon/frise/lettre/guides/sun-sovereign — sinon contradiction
     fontale avec le reste de l'identité. Suppression du text-shadow rim doré
     (chromatic aberration 2000s) et du font-weight 700 (gras sans-serif). */
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 940px;
  letter-spacing: -0.015em;
}
.hero-luxe-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 640px;
  color: rgba(251, 248, 242, 0.92);
  margin: 0 0 32px;
}
.hero-luxe-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* =========================================================
 *  MODULE "Une seule entreprise" (comparatif)
 * ========================================================= */
.fx-single-entity {
  padding: clamp(72px, 10vh, 120px) 0;
  background: linear-gradient(180deg, var(--fx-cream) 0%, var(--white) 100%);
}
.fx-single-entity h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
}
.fx-single-entity .lead-tight {
  max-width: 720px;
  margin: 0 auto;
  color: #4d4d4d;
  font-size: 16px;
  line-height: 1.6;
}
.fx-single-entity .lead-tight strong { color: var(--fx-ink); font-weight: 600; }
.fx-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 22px;
  margin: 56px 0 0;
  align-items: stretch;
}
.fx-compare-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(13, 13, 16, 0.06);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: border-color .35s, box-shadow .35s, transform .35s;
}
.fx-compare-card-bad { opacity: 0.96; }
.fx-compare-card-bad:hover { opacity: 1; }
.fx-compare-card-good.highlight {
  background: linear-gradient(165deg, var(--fx-ink) 0%, #1d1d22 100%);
  color: var(--fx-cream);
  border-color: rgba(246, 183, 44, 0.4);
}
.fx-compare-card-good.highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 40%, rgba(246, 183, 44, 0.16) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: fxLightSweep 6s var(--fx-ease-in-out) infinite;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
}
.fx-compare-card-good.highlight > * { position: relative; z-index: 1; }
.fx-compare-card-good.highlight h3 { color: var(--fx-cream); }
.fx-compare-card-good.highlight .fx-compare-list li { color: rgba(251, 248, 242, 0.85); }
.fx-compare-card-good.highlight .fx-compare-list li strong { color: var(--fx-gold); }
.fx-compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9a9a;
  padding: 6px 12px;
  border: 1px solid rgba(13, 13, 16, 0.12);
  border-radius: 999px;
  width: fit-content;
}
.fx-compare-tag.gold {
  background: var(--fx-gold);
  color: var(--fx-ink);
  border-color: transparent;
}
.fx-compare-card h3 {
  font-size: 22px;
  margin: 6px 0 4px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.fx-compare-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 12px;
}
.fx-compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.55;
}
.fx-compare-list li .x,
.fx-compare-list li .v {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
/* Cross : charcoal sobre + or barré (cohérent avec la charte) */
.fx-compare-list li .x {
  background: rgba(21, 21, 21, 0.06);
  color: var(--fx-ink, #0d0d10);
  border: 1px solid rgba(21, 21, 21, 0.18);
  font-weight: 400;
}
.fx-compare-list li .v {
  background: var(--fx-gold);
  color: var(--fx-ink);
}
/* Sur les cards "bad" (multi-prestataires, CMIste) — texte légèrement atténué */
.fx-compare-card-bad .fx-compare-list li { opacity: 0.85; }
.fx-compare-anchor {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 183, 44, 0.3);
  font-size: 14px;
}

/* =========================================================
 *  Products grid (Construire / Étendre / Rénover)
 * ========================================================= */
.fx-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 56px 0 32px;
}
.fx-product-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(13, 13, 16, 0.06);
  border-radius: 22px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .35s, box-shadow .35s, transform .35s;
  isolation: isolate;
}
.fx-product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fx-gold) 0%, transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--fx-ease-out);
  border-radius: 22px 22px 0 0;
}
.fx-product-card:hover {
  border-color: rgba(246, 183, 44, 0.5);
  box-shadow: 0 30px 60px -20px rgba(13, 13, 16, 0.14);
}
.fx-product-card:hover::before { transform: scaleX(1); }
.fx-product-tag {
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 183, 44, 0.55);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 4px;
}
.fx-product-card h3 {
  font-size: 28px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  color: var(--fx-ink);
}
.fx-product-lead {
  font-size: 16px;
  font-weight: 600;
  color: var(--fx-ink);
  margin: 0;
  line-height: 1.4;
}
.fx-product-body {
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.6;
  margin: 0;
}
.fx-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 13, 16, 0.08);
  font-size: 13px;
}
.fx-product-price {
  font-weight: 700;
  color: var(--fx-gold);
  letter-spacing: 0.02em;
}

@media (max-width: 1080px) {
  .fx-compare-grid { grid-template-columns: 1fr; gap: 18px; max-width: 580px; margin-left: auto; margin-right: auto; }
  .fx-products-grid { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
}

/* =========================================================
 *  ANCIEN MODULE 3-EN-1 (obsolète, conservé pour compat éventuelle)
 * ========================================================= */
.fx-three-in-one {
  padding: clamp(72px, 10vh, 120px) 0;
  background: linear-gradient(180deg, var(--fx-cream) 0%, var(--white) 100%);
}
.fx-three-in-one h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
}
.fx-three-in-one .lead-tight {
  max-width: 640px;
  margin: 0 auto;
  color: #4d4d4d;
  font-size: 16px;
  line-height: 1.6;
}
.fx-three-in-one .lead-tight em { color: var(--fx-ink); font-style: normal; font-weight: 600; }

.fx-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 56px 0 32px;
}
.fx-three-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(13, 13, 16, 0.06);
  border-radius: 22px;
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s, box-shadow .35s;
}
.fx-three-card:hover {
  border-color: rgba(246, 183, 44, 0.6);
  box-shadow: 0 30px 60px -20px rgba(13, 13, 16, 0.12);
}
.fx-three-card.highlight {
  background: linear-gradient(165deg, var(--fx-ink) 0%, #1d1d22 100%);
  color: var(--fx-cream);
  border-color: rgba(246, 183, 44, 0.4);
}
.fx-three-card.highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 40%, rgba(246, 183, 44, 0.18) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: fxLightSweep 6s var(--fx-ease-in-out) infinite;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
}
.fx-three-card.highlight > * { position: relative; z-index: 1; }
.fx-three-card.highlight h3 { color: var(--fx-cream); }
.fx-three-card.highlight .fx-three-sub { color: rgba(251, 248, 242, 0.78); }
.fx-three-card.highlight .fx-three-list li { color: rgba(251, 248, 242, 0.85); }
.fx-three-card.highlight .fx-three-list li strong { color: var(--fx-gold); }
.fx-three-card.highlight .fx-three-anchor { color: var(--fx-gold); }

.fx-three-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9a9a9a;
  padding: 6px 12px;
  border: 1px solid rgba(13, 13, 16, 0.12);
  border-radius: 999px;
  width: fit-content;
}
.fx-three-tag.gold {
  background: var(--fx-gold);
  color: var(--fx-ink);
  border-color: transparent;
}
.fx-three-card h3 {
  font-size: 26px;
  margin: 8px 0 0;
  letter-spacing: -0.015em;
}
.fx-three-sub {
  font-size: 14px;
  font-weight: 500;
  color: #4d4d4d;
  margin: 0;
}
.fx-three-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}
.fx-three-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.55;
}
.fx-three-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-gold);
}
.fx-three-list li strong { color: var(--fx-ink); }
.fx-three-anchor {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 13, 16, 0.08);
  font-size: 14px;
  color: #4d4d4d;
}
.fx-three-anchor strong { color: var(--fx-ink); }

.fx-three-bottom {
  text-align: center;
  margin-top: 32px;
  color: #4d4d4d;
  font-size: 15px;
}

/* =========================================================
 *  Pillars grid (6 cartes numérotées)
 * ========================================================= */
.fx-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0;
}

/* =========================================================
 *  Section vertical padding (rhythme typo)
 * ========================================================= */
.section-vp {
  padding-top: clamp(72px, 9vh, 120px);
  padding-bottom: clamp(72px, 9vh, 120px);
}
.section-vp.center { text-align: center; }

/* =========================================================
 *  Eyebrow tag uniform
 * ========================================================= */
.eyebrow-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fx-gold);
  margin: 0 0 14px;
  padding: 6px 14px;
  background: rgba(246, 183, 44, 0.12);
  border-radius: 999px;
}

/* =========================================================
 *  Link arrow (text link with arrow)
 * ========================================================= */
.fx-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fx-ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color .25s, color .25s, gap .25s;
}
.fx-link-arrow::after {
  content: "→";
  color: var(--fx-gold);
  font-size: 18px;
  transition: transform .25s var(--fx-ease-out);
}
.fx-link-arrow:hover {
  border-bottom-color: var(--fx-gold);
  gap: 12px;
}
.fx-link-arrow:hover::after { transform: translateX(4px); }

.hero-luxe-ctas .fx-link-arrow {
  color: var(--fx-cream);
  border-bottom-color: rgba(251, 248, 242, 0.3);
}
.hero-luxe-ctas .fx-link-arrow:hover {
  border-bottom-color: var(--fx-gold);
  color: var(--fx-gold);
}

/* =========================================================
 *  Editorial copy dark (sur fond noir)
 * ========================================================= */
.fx-editorial-copy.dark .eyebrow {
  color: var(--fx-gold);
  border-color: rgba(246, 183, 44, 0.4);
  background: rgba(246, 183, 44, 0.08);
}
.fx-editorial-copy.dark h2 { color: var(--fx-cream); }
.fx-editorial-copy.dark p { color: rgba(251, 248, 242, 0.78); }
.fx-editorial-copy.dark p.lead { color: var(--fx-cream); }

/* =========================================================
 *  CTA finale
 * ========================================================= */
.cta-final {
  max-width: 680px;
  margin: 0 auto;
}
.cta-final h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.cta-final p {
  font-size: 17px;
  color: #4d4d4d;
  line-height: 1.6;
  margin: 0 0 32px;
}
.cta-final-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* =========================================================
 *  Responsive
 * ========================================================= */
@media (max-width: 1080px) {
  .fx-three-grid { grid-template-columns: 1fr; gap: 18px; max-width: 540px; margin-left: auto; margin-right: auto; }
  .fx-pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .fx-pillars-grid { grid-template-columns: 1fr; }
  .hero-luxe-overlay { padding-bottom: 56px; }
  .hero-luxe-h1 { font-size: clamp(28px, 7vw, 42px); }
}

/* ===== Reduced motion compliance ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-fx], [data-fx-stagger] > * { opacity: 1 !important; transform: none !important; }
  .fx-hero img, .fx-hero .hero-image > img { animation: none !important; }
  .fx-cursor { display: none !important; }
}

/* ===== Responsive premium tweaks ===== */
@media (max-width: 880px) {
  .fx-editorial { grid-template-columns: 1fr; }
  .fx-editorial.alt .fx-editorial-media { order: -1; }
  .fx-pro-stack { grid-template-columns: 1fr; }
  .fx-pro-stack > * { border-right: 0; border-bottom: 1px solid rgba(13, 13, 16, 0.08); }
  .fx-pullquote { padding: 40px 24px 40px 60px; }
  .fx-pullquote::before { left: 16px; top: 24px; width: 40px; height: 40px; }
}
