/* ═══════════════════════════════════════════════════════════════════════════
   Premium design system - inspire odoo.fr, charte Emakesolution preservee.
   A inclure APRES upgrade.css. Composants modulaires reutilisables.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── HALOS LUMINEUX D'ARRIERE-PLAN ────────────────────────────────────────── */
.prm-halo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.prm-halo::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(250, 181, 18, 0.18) 0%, rgba(250, 181, 18, 0) 60%);
  pointer-events: none;
  z-index: -1;
}
.prm-halo--left::before {
  right: auto;
  left: -200px;
  top: -100px;
  width: 600px;
  height: 600px;
}
.prm-halo--bottom::after {
  content: "";
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(250, 181, 18, 0.10) 0%, rgba(250, 181, 18, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── HERO SECTION PREMIUM ─────────────────────────────────────────────────── */
.prm-hero {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
  overflow: hidden;
}
.prm-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.prm-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.prm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(250, 181, 18, 0.30);
  border-radius: 100px;
  background: rgba(250, 181, 18, 0.06);
  color: #fab512;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prm-hero__title {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 28px 0 24px;
}
.prm-hero__title em {
  font-style: normal;
  color: #fab512;
  background: linear-gradient(180deg, #fab512 0%, #ffd166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.prm-hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin-bottom: 40px;
}

/* ── CARDS GLASSMORPHISM ──────────────────────────────────────────────────── */
.prm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.prm-card {
  position: relative;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s, background 0.35s;
  overflow: hidden;
}
.prm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(250, 181, 18, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.prm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 181, 18, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
.prm-card:hover::before {
  opacity: 1;
}
.prm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(250, 181, 18, 0.20) 0%, rgba(250, 181, 18, 0.05) 100%);
  border: 1px solid rgba(250, 181, 18, 0.20);
  margin-bottom: 20px;
  color: #fab512;
}
.prm-card__num {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fab512;
  margin-bottom: 16px;
}
.prm-card__title {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 14px;
}
.prm-card__body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.prm-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #fab512;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s;
}
.prm-card__link:hover {
  gap: 12px;
}
.prm-card__link::after {
  content: "→";
  transition: transform 0.2s;
}

/* ── SECTION HEAD PREMIUM ─────────────────────────────────────────────────── */
.prm-section {
  padding: 100px 0;
  position: relative;
}
.prm-section--alt {
  background: linear-gradient(180deg, #0a0a0a 0%, #060606 50%, #0a0a0a 100%);
}
.prm-section-head {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}
.prm-section-head--left {
  margin-left: 0;
  text-align: left;
}
.prm-section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(250, 181, 18, 0.25);
  border-radius: 100px;
  color: #fab512;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.prm-section-head__title {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 20px;
}
.prm-section-head__lead {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ── FLUX SVG : NODES + LIGNES CONNECTEES ─────────────────────────────────── */
.prm-flux {
  position: relative;
  margin: 56px auto 0;
  max-width: 980px;
  padding: 40px 0;
}
.prm-flux__svg {
  width: 100%;
  height: auto;
  display: block;
}
.prm-flux__node-bg {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 1;
}
.prm-flux__node-ico {
  fill: none;
  stroke: #fab512;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prm-flux__node-label {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 700;
  font-size: 13px;
  fill: #ffffff;
  text-anchor: middle;
}
.prm-flux__node-sub {
  font-family: var(--font-body, "Inter"), system-ui;
  font-weight: 400;
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.55);
  text-anchor: middle;
}
.prm-flux__line {
  fill: none;
  stroke: #fab512;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  opacity: 0.55;
  animation: prmFluxDash 2.6s linear infinite;
}
.prm-flux__pulse {
  fill: #fab512;
  filter: drop-shadow(0 0 6px rgba(250, 181, 18, 0.85));
  animation: prmFluxPulse 2.6s linear infinite;
}
@keyframes prmFluxDash {
  to { stroke-dashoffset: -120; }
}
@keyframes prmFluxPulse {
  0%   { opacity: 0; offset-distance: 0%; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* ── BLOC "VOIR AUSSI" / HUB → SPOKES ─────────────────────────────────────── */
.prm-hub {
  margin-top: 80px;
}
.prm-hub-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  margin-bottom: 12px;
}
.prm-hub-card:hover {
  background: rgba(250, 181, 18, 0.05);
  border-color: rgba(250, 181, 18, 0.30);
  transform: translateX(4px);
}
.prm-hub-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(250, 181, 18, 0.20) 0%, rgba(250, 181, 18, 0.05) 100%);
  border: 1px solid rgba(250, 181, 18, 0.20);
  color: #fab512;
  flex-shrink: 0;
}
.prm-hub-card__body { flex: 1; min-width: 0; }
.prm-hub-card__title {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 4px;
}
.prm-hub-card__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.prm-hub-card__arrow {
  color: #fab512;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.prm-hub-card:hover .prm-hub-card__arrow {
  transform: translateX(4px);
}

/* ── TIMELINE VERTICALE (REFORME FACTURE ELEC) ────────────────────────────── */
.prm-timeline {
  position: relative;
  margin: 64px auto 0;
  max-width: 720px;
  padding-left: 40px;
}
.prm-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(250, 181, 18, 0.6) 0%, rgba(250, 181, 18, 0.1) 100%);
}
.prm-timeline__item {
  position: relative;
  padding: 0 0 36px;
}
.prm-timeline__item:last-child { padding-bottom: 0; }
.prm-timeline__dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid #fab512;
  box-shadow: 0 0 0 4px rgba(250, 181, 18, 0.15);
}
.prm-timeline__date {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fab512;
  margin-bottom: 8px;
}
.prm-timeline__title {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 8px;
}
.prm-timeline__body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ── PILLS / TAGS PREMIUM ─────────────────────────────────────────────────── */
.prm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  justify-content: center;
}
.prm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.prm-pill:hover {
  background: rgba(250, 181, 18, 0.08);
  border-color: rgba(250, 181, 18, 0.30);
  color: #fab512;
}
.prm-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fab512;
  box-shadow: 0 0 6px rgba(250, 181, 18, 0.8);
}

/* ── CTA FINAL PREMIUM ────────────────────────────────────────────────────── */
.prm-cta {
  position: relative;
  margin: 100px 0 80px;
  padding: 64px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f0f0f 0%, #181818 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-align: center;
}
.prm-cta::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(250, 181, 18, 0.20) 0%, rgba(250, 181, 18, 0) 65%);
  pointer-events: none;
}
.prm-cta::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(250, 181, 18, 0.12) 0%, rgba(250, 181, 18, 0) 65%);
  pointer-events: none;
}
.prm-cta__inner { position: relative; z-index: 1; }
.prm-cta__title {
  font-family: var(--font-display, "Manrope"), system-ui;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 18px;
}
.prm-cta__sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 36px;
}

/* ── REVEAL ANIMATION (fade + slide) ──────────────────────────────────────── */
.prm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.prm-reveal--delay-1 { transition-delay: 0.08s; }
.prm-reveal--delay-2 { transition-delay: 0.16s; }
.prm-reveal--delay-3 { transition-delay: 0.24s; }
.prm-reveal--delay-4 { transition-delay: 0.32s; }

/* ── BTN VARIATIONS PREMIUM ───────────────────────────────────────────────── */
.prm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body, "Inter"), system-ui;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.prm-btn--primary {
  background: linear-gradient(180deg, #fab512 0%, #e6a30c 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(250, 181, 18, 0.30),
              inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.prm-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 181, 18, 0.40),
              inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.prm-btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.prm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.40);
}

.prm-cta-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .prm-hero { padding: 80px 0 60px; }
  .prm-section { padding: 60px 0; }
  .prm-card { padding: 24px; }
  .prm-cta { padding: 40px 24px; margin: 60px 0 48px; }
  .prm-grid { grid-template-columns: 1fr; gap: 16px; }
  .prm-timeline { padding-left: 32px; }
  .prm-flux { padding: 20px 0; }
}
