/**
 * Landing premium UI — ombres, typo, cartes, sections.
 * Chargé après landing-overrides.css.
 */

/* ---- Typographie premium ---- */
.headline-hero {
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.1;
}

.headline-section {
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Badge / tag ---- */
.tag-badge {
  letter-spacing: 0.02em;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--jaune) / 0.25);
  background: hsl(var(--jaune) / 0.08);
  color: #374151;
}

/* ---- Boutons ---- */
.btn-primary {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px hsl(var(--jaune) / 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 8px 24px hsl(var(--jaune) / 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 1.5px solid var(--color-border);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  border-color: hsl(var(--jaune) / 0.5);
  background-color: hsl(var(--jaune) / 0.06);
  color: hsl(var(--klozd-black));
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* ---- Cartes premium ---- */
.card-premium {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card-premium:hover {
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  transform: translateY(-3px);
}

.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ---- Hero ---- */
.hero-gradient-bg {
  background: linear-gradient(
    180deg,
    hsl(0 0% 100%) 0%,
    hsl(220 9% 99%) 30%,
    hsl(220 9% 97%) 100%
  );
}

/* ---- Nav glass renforcé ---- */
.glass-nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.glass-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ---- Mockup / image ---- */
.mockup-shadow {
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.08);
}

/* ---- Section backgrounds ---- */
.section-alt {
  background: linear-gradient(180deg, hsl(220 9% 98%) 0%, #fff 100%);
}

/* ---- Calculator / formulaire ---- */
.input-range-premium {
  accent-color: hsl(var(--jaune));
}

.input-range-premium::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: hsl(var(--jaune));
  box-shadow: 0 2px 8px hsl(var(--jaune) / 0.5);
  cursor: pointer;
}

.input-range-premium::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: hsl(var(--jaune));
  box-shadow: 0 2px 8px hsl(var(--jaune) / 0.5);
  cursor: pointer;
  border: none;
}

/* ---- Comparaison (fond sombre) - tableau premium ---- */
#comparison .comparison-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 24px 48px rgba(0, 0, 0, 0.15);
}

#comparison .comparison-table {
  width: 100%;
  border-collapse: collapse;
}

#comparison .comparison-table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#comparison .comparison-table thead th:first-child {
  padding-left: 1.75rem;
}

#comparison .comparison-table thead th:nth-child(2),
#comparison .comparison-table thead th:nth-child(3) {
  text-align: center;
  width: 7rem;
}

#comparison .comparison-table thead th:nth-child(3) {
  color: hsl(var(--jaune));
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

#comparison .comparison-table tbody td:nth-child(3) {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

#comparison .comparison-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s ease;
}

#comparison .comparison-table tbody tr:last-child {
  border-bottom: none;
}

#comparison .comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

#comparison .comparison-table tbody td {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

#comparison .comparison-table tbody td:first-child {
  padding-left: 1.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

#comparison .comparison-table tbody td:nth-child(2),
#comparison .comparison-table tbody td:nth-child(3) {
  text-align: center;
  vertical-align: middle;
}

#comparison .comparison-table tbody td:nth-child(2) {
  color: rgba(255, 255, 255, 0.35);
}

#comparison .comparison-table .comparison-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: hsl(var(--jaune) / 0.2);
  color: hsl(var(--jaune));
  flex-shrink: 0;
}

#comparison .comparison-table .comparison-miss {
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
}

/* ---- Pricing plan mis en avant ---- */
.plan-popular {
  box-shadow:
    0 0 0 2px hsl(var(--jaune) / 0.5),
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.06);
}

/* ---- FAQ accordion ---- */
.faq-item {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  background-color: hsl(220 9% 98%);
}

.faq-item[data-open="true"] {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ---- Footer premium ---- */
footer.landing-footer {
  position: relative;
  background: linear-gradient(
    180deg,
    #0a0a0a 0%,
    #0c0c0c 40%,
    #09090b 100%
  );
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

footer.landing-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(var(--jaune) / 0.2) 50%,
    transparent 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

.landing-footer-inner {
  padding: 4rem 0 2.5rem;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .landing-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.landing-footer-brand {
  max-width: 22rem;
}

.landing-footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.landing-footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.landing-footer-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}

.landing-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-footer-links li {
  margin-bottom: 0.625rem;
}

.landing-footer-links li:last-child {
  margin-bottom: 0;
}

.landing-footer-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer-links a:hover {
  color: hsl(var(--jaune));
}

.landing-footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.landing-footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---- Animation float légère (hero image) ---- */
@keyframes premium-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: premium-float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-float {
    animation: none;
  }
}
