/* Homepage art direction. Shared pages keep their existing foundation. */
body[data-page="home"] {
  background: #08060d;
}

body[data-page="home"] .container { max-width: 1280px; }

/* Header styles live in style.css so every page shares one header. */

body[data-page="home"] .btn-primary {
  background: linear-gradient(115deg, #f2d98e, #d8b05a 60%, #c99b34);
  box-shadow: 0 10px 30px rgba(216, 176, 90, .16), inset 0 1px rgba(255, 255, 255, .55);
}

body[data-page="home"] .btn-primary:hover {
  box-shadow: 0 16px 36px rgba(216, 176, 90, .28), inset 0 1px rgba(255, 255, 255, .55);
}

body[data-page="home"] a:focus-visible,
body[data-page="home"] button:focus-visible {
  outline: 2px solid #f2d98e;
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 58px 0 35px;
  background:
    radial-gradient(ellipse 50% 65% at 78% 37%, rgba(113, 28, 71, .23), transparent 74%),
    linear-gradient(180deg, #130916 0%, #08060d 78%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .33;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  pointer-events: none;
}

.hero-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-atmosphere span { position: absolute; display: block; border-radius: 50%; filter: blur(44px); animation: heroGlow 16s ease-in-out infinite alternate; }
.hero-atmosphere span:nth-child(1) { width: 38vw; height: 38vw; right: -10%; top: -27%; background: rgba(214, 94, 189, .12); }
.hero-atmosphere span:nth-child(2) { width: 27vw; height: 27vw; right: 24%; bottom: -38%; background: rgba(125, 77, 255, .11); animation-delay: -6s; }
.hero-atmosphere span:nth-child(3) { width: 22vw; height: 22vw; left: -12%; top: 35%; background: rgba(216, 176, 90, .06); animation-delay: -11s; }

@keyframes heroGlow { to { transform: translate3d(5%, -6%, 0) scale(1.12); } }

.hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(30px, 5vw, 84px);
  min-height: 515px;
}

.hero-copy { position: relative; z-index: 2; padding: 24px 0; }

.hero-eyebrow {
  padding: 9px 14px;
  border: 1px solid rgba(216, 176, 90, .24);
  border-radius: 999px;
  background: rgba(216, 176, 90, .07);
  font-size: 10px;
  letter-spacing: .13em;
}

.hero h1 {
  max-width: 11.5ch;
  margin: 25px 0 17px;
  font-size: clamp(50px, 5.2vw, 76px);
  line-height: .94;
  letter-spacing: -.035em;
}

.hero h1 em {
  display: inline-block;
  padding-right: .05em;
  font-weight: 500;
  font-style: italic;
  background: linear-gradient(110deg, #ffb0b5, #ff6996 55%, #d65ebd);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .lead-sub {
  margin: 0 0 9px;
  max-width: none;
  color: var(--ivory);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
}

.hero #hero-lead {
  max-width: 47ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #cbb8c6;
}

.hero .cta-row { align-items: center; gap: 12px 25px; margin-top: 31px; }
.hero #hero-cta { min-height: 55px; padding: 14px 26px; font-size: 14px; }
.hero #hero-cta span, .nav-actions .btn span, .mobile-menu-actions .btn span { font-size: 18px; line-height: .8; }

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 239, 229, .4);
  transition: color .2s ease, border-color .2s ease;
}
.hero-secondary:hover { color: #f2d98e; border-color: #f2d98e; }
.hero-secondary span { transition: transform .2s ease; }
.hero-secondary:hover span { transform: translateX(3px); }

.hero .trust-row { gap: 8px 0; margin-top: 23px; }
.hero .trust-item {
  gap: 0;
  font-size: 11px;
  font-weight: 600;
  color: #a995a5;
}
.hero .trust-item + .trust-item::before {
  content: '·';
  margin: 0 11px;
  color: var(--gold);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 500px;
  max-height: none;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  isolation: isolate;
}

.hero-visual::before {
  content: '';
  position: absolute;
  z-index: -2;
  width: 83%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 63, 126, .26), rgba(121, 30, 103, .10) 47%, transparent 70%);
  filter: blur(10px);
  animation: visualPulse 9s ease-in-out infinite;
}

.hero-visual picture {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 575px);
  border: 1px solid rgba(252, 213, 185, .28);
  border-radius: 29px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .52), 0 0 85px rgba(203, 69, 134, .12);
  transform: rotate(-3deg);
  animation: visualFloat 8s ease-in-out infinite;
}
.hero-visual picture img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 176, 90, .16);
  border-radius: 50%;
  transform: rotate(-20deg) scaleY(.72);
  animation: orbitTurn 28s linear infinite;
}
.hero-orbit-one { border-style: dashed; }
.hero-orbit-two { width: 90%; border-color: rgba(214, 94, 189, .17); animation-duration: 38s; animation-direction: reverse; }

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 155px;
  padding: 13px 18px;
  border: 1px solid rgba(246, 239, 229, .19);
  border-radius: 14px;
  background: rgba(22, 12, 29, .85);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: floatY 7s ease-in-out infinite;
}
.hero-float span { color: var(--gold); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; }
.hero-float strong { color: var(--ivory); font-size: 12px; }
.hero-float-top { top: 11%; left: -4%; }
.hero-float-bottom { right: -2%; bottom: 9%; animation-delay: -3.5s; }

@keyframes visualPulse { 50% { transform: scale(1.12); opacity: .72; } }
@keyframes visualFloat { 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes orbitTurn { to { transform: rotate(340deg) scaleY(.72); } }

.feature-constellation {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(246, 239, 229, .12);
}
.feature-constellation .constellation-lines { display: none; }
.feature-rail-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 12px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.feature-rail-heading a { color: var(--gold); font-family: var(--font-body); font-size: 11px; font-weight: 800; text-decoration: none; }
.feature-rail-heading a:hover { color: #f2d98e; }

.feature-constellation .feature-signal,
.feature-constellation .feature-signal:nth-of-type(n) {
  --signal-shift: 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 8px 9px;
  border: 0;
  border-right: 1px solid rgba(246, 239, 229, .1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}
.feature-constellation .feature-signal:last-child { border-right: 0; }
.feature-constellation .feature-signal:hover,
.feature-constellation .feature-signal:focus-visible { background: rgba(216, 176, 90, .06); transform: none; }
.feature-constellation .feature-signal::after { display: none; }
.feature-constellation .signal-icon { flex: none; width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(216, 176, 90, .08); }
.feature-constellation .signal-icon svg { width: 17px; height: 17px; }
.feature-constellation .feature-signal strong { font-size: 11px; line-height: 1.3; }
.feature-constellation .feature-signal small { display: none; }

.pillars { padding: 83px 0 77px; background: #0d0911; }
.pillars-intro { margin-bottom: 30px; }
.pillars-intro h2 { max-width: 14ch; margin-top: 11px; font-size: clamp(36px, 4.6vw, 56px); }
.pillars-grid { gap: 0; border-top: 1px solid rgba(246, 239, 229, .15); border-bottom: 1px solid rgba(246, 239, 229, .15); }
.pillar-card {
  min-height: 205px;
  padding: 27px 35px 30px 0;
  text-align: left;
  border: 0;
  border-right: 1px solid rgba(246, 239, 229, .12);
  border-radius: 0;
  background: transparent;
}
.pillar-card + .pillar-card { padding-left: 35px; }
.pillar-card:last-child { border-right: 0; }
.pillar-icon { margin-bottom: 17px; color: var(--gold); font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.pillar-card h3 { margin-bottom: 10px; font-size: 28px; }
.pillar-card p { max-width: 34ch; color: #bba8b7; font-size: 13px; line-height: 1.65; opacity: 1; }

#comment-ca-marche, #fonctionnalites { padding-top: 88px; padding-bottom: 88px; }
#comment-ca-marche .section-head, #fonctionnalites .section-head { max-width: 760px; }
#comment-ca-marche .section-head h2, #fonctionnalites .section-head h2 { font-size: clamp(35px, 4.4vw, 54px); }
#comment-ca-marche .section-head p, #fonctionnalites .section-head p { max-width: 58ch; margin-left: auto; margin-right: auto; line-height: 1.7; }
#comment-ca-marche .steps { gap: 12px; }
#comment-ca-marche .step-card {
  min-height: 220px;
  padding: 27px 26px;
  border-color: rgba(246, 239, 229, .1);
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
}
#comment-ca-marche .step-number { width: auto; height: auto; margin-bottom: 32px; border-radius: 0; background: none; color: var(--gold); font-size: 11px; letter-spacing: .16em; }
#comment-ca-marche .step-number::before { content: '0'; }
#comment-ca-marche .step-card h3 { font-size: 25px; }
#comment-ca-marche .step-card p { line-height: 1.65; }

#fonctionnalites { background: linear-gradient(180deg, transparent, rgba(48, 18, 47, .16)); }
#fonctionnalites .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#fonctionnalites .feature-card {
  min-height: 218px;
  padding: 25px 21px;
  border-color: rgba(246, 239, 229, .1);
  background: rgba(255, 255, 255, .025);
}
#fonctionnalites .feature-card:hover { background: rgba(216, 176, 90, .045); }
#fonctionnalites .feature-icon { width: 39px; height: 39px; margin-bottom: 33px; border-radius: 12px; }
#fonctionnalites .feature-card h3 { font-size: 22px; }
#fonctionnalites .feature-card p { line-height: 1.6; }

#tarifs .section-head { max-width: 740px; }
#tarifs .price-card { border-color: rgba(246, 239, 229, .11); }
#tarifs .price-card.featured { box-shadow: 0 20px 70px rgba(193, 74, 128, .12); }

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  background: radial-gradient(ellipse 65% 100% at 50% 130%, rgba(206, 76, 124, .35), transparent), linear-gradient(135deg, #211024, #130a1d);
  border-color: rgba(216, 176, 90, .2);
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 66%;
  height: 1px;
  top: 0;
  left: 17%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.final-cta h2 { max-width: 15ch; margin: 13px auto 19px; font-size: clamp(42px, 5.2vw, 65px); }
.final-cta p { max-width: 48ch; line-height: 1.7; }
.final-cta .btn { min-height: 50px; }

@media (max-width: 1080px) {
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: clamp(50px, 6vw, 66px); }
  .hero-float-top { left: 0; }
  .hero-float-bottom { right: 0; }
  .feature-constellation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-constellation .feature-signal:nth-of-type(3n) { border-right: 0; }
  #fonctionnalites .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { padding-top: 38px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: none; }
  .hero-visual { min-height: 430px; width: min(100%, 650px); margin: 35px auto 0; }
  .hero-visual picture { width: 84%; }
  .feature-constellation { margin-top: 10px; }
}

@media (max-width: 620px) {
  .hero { padding: 31px 0 26px; }
  .hero::before { background-size: 55px 55px; }
  .hero-eyebrow { max-width: 100%; font-size: 9px; padding: 8px 10px; letter-spacing: .08em; white-space: normal; }
  .hero h1 { margin: 24px 0 19px; font-size: clamp(48px, 12vw, 56px); line-height: .97; }
  .hero .lead-sub { font-size: 16px; margin-bottom: 8px; }
  .hero #hero-lead { font-size: 14px; line-height: 1.65; }
  .hero .cta-row { align-items: flex-start; gap: 6px; margin-top: 26px; }
  .hero #hero-cta { width: 100%; min-height: 53px; }
  .hero-secondary { font-size: 12px; }
  .hero .trust-row { margin-top: 16px; }
  .hero .trust-item { font-size: 10px; }
  .hero .trust-item::before, .hero .trust-item + .trust-item::before { content: '·'; margin: 0 5px 0 0; color: var(--gold); }
  .hero-visual { min-height: 260px; margin-top: 32px; }
  .hero-visual picture { width: 88%; border-radius: 18px; }
  .hero-float { min-width: 0; padding: 8px 10px; border-radius: 10px; }
  .hero-float span { font-size: 7px; }
  .hero-float strong { font-size: 9px; }
  .hero-float-top { top: 4%; }
  .hero-float-bottom { bottom: 1%; }
  .feature-constellation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .feature-rail-heading { padding: 16px 0 10px; font-size: 19px; }
  .feature-rail-heading a { font-size: 10px; }
  .feature-constellation .feature-signal { min-height: 54px; border-bottom: 1px solid rgba(246, 239, 229, .08); }
  .feature-constellation .feature-signal:nth-of-type(3n) { border-right: 1px solid rgba(246, 239, 229, .1); }
  .feature-constellation .feature-signal:nth-of-type(2n) { border-right: 0; }
  .feature-constellation .feature-signal strong { font-size: 10.5px; }
  .pillars { padding: 60px 0; }
  .pillars-intro { margin-bottom: 24px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card, .pillar-card + .pillar-card { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(246, 239, 229, .12); }
  .pillar-card:last-child { border-bottom: 0; }
  .pillar-icon { margin-bottom: 9px; }
  .pillar-card h3 { font-size: 25px; }
  #comment-ca-marche, #fonctionnalites { padding-top: 58px; padding-bottom: 58px; }
  #comment-ca-marche .step-card { min-height: 0; }
  #comment-ca-marche .step-number { margin-bottom: 18px; }
  #fonctionnalites .feature-grid { grid-template-columns: 1fr; }
  #fonctionnalites .feature-card { min-height: 0; }
  #fonctionnalites .feature-icon { margin-bottom: 18px; }
  .final-cta { padding: 55px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere span, .hero-visual::before, .hero-visual picture,
  .hero-orbit, .hero-float { animation: none !important; }
}
