/* ═══════════════════════════════════════════════════════════════
   Build Project IA — Personal Brand Theme
   Logo DNA: Magenta→Orange gradient · Diagonal streaks · /// triple bars
   ═══════════════════════════════════════════════════════════════ */

/* ──────────── Reset & Variables ──────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  /* Brand Colors — Minimalist Revision (Black, White, Lavender) */
  --primary-black: #000000;
  --primary-lavender: #E0C3FC;
  --primary-white: #FFFFFF;

  --primary: var(--primary-black);
  --secondary: #1F2937;
  /* Very dark gray for contrast */
  --accent: var(--primary-lavender);

  --gradient: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-lavender) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(224, 195, 252, .12) 0%, rgba(224, 195, 252, .02) 100%);
  --gradient-border: linear-gradient(135deg, rgba(224, 195, 252, .2) 0%, rgba(0, 0, 0, .1) 100%);

  /* Surfaces — Clean Minimalist Theme */
  --bg: #FAFAFA;
  --bg-raised: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-white: #ffffff;
  --bg-white-raised: #f1f3f5;
  --bg-glass: rgba(255, 255, 255, .85);
  --bg-glass-hover: rgba(255, 255, 255, 1);
  --border: rgba(0, 0, 0, .06);
  --border-hover: rgba(0, 0, 0, .12);

  /* Text — High Legibility */
  --text: #000000;
  --text-primary: #000000;
  --text-on-white: #000000;
  --text-secondary: #4B5563;
  --text-dim: #9CA3AF;

  /* Brand Specifics */
  --nav-text: #000000;
  --btn-text: #FFFFFF;

  /* UI — Clean pill shapes and upscale shadows */
  --radius: 12px;
  --radius-sm: 9999px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --transition: all .35s var(--ease);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

/* ──────────── Dashboard Layout ──────────── */
/* ──────────── Gradient Text ──────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  /* Added weight for better visibility on light background */
}

/* ──────────── Buttons ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  background: var(--secondary);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(0, 0, 0, 0.02);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: #ffffff;
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
}

/* Streaks removed for Minimalist Theme */

/* ══════════════════════════════ NAVBAR ═════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: var(--transition)
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08)
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em
}

.nav-links {
  display: flex;
  gap: 32px
}

.nav-links>a {
  font-size: .88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links>a:hover,
.nav-links .nav-link-active {
  color: var(--text-primary);
}

.nav-links>a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width .3s var(--ease);
}

.nav-links>a:hover::after,
.nav-links .nav-link-active::after {
  width: 100%
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: var(--transition);
}

@media(max-width:768px) {
  .nav-links {
    display: none
  }

  .hamburger {
    display: flex
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-actions .btn-ghost {
    display: none
  }
}

/* ══════════════════════════════ HERO ═════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

/* Glow removed for Minimalist Theme */

.hero-content {
  text-align: center;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  animation: fadeInUp .7s var(--ease);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-lavender);
  box-shadow: 0 0 12px rgba(224, 195, 252, .5);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(224, 195, 252, .6)
  }

  50% {
    opacity: .5;
    box-shadow: 0 0 4px rgba(224, 195, 252, .3)
  }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text-on-white);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 28px;
  animation: fadeInUp .7s var(--ease) .1s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary-on-white);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.7;
  animation: fadeInUp .7s var(--ease) .2s both;
}

.hero-subtitle strong {
  color: var(--text-on-white);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp .7s var(--ease) .3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  animation: fadeInUp .7s var(--ease) .4s both;
}

.stat {
  text-align: center
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-on-white);
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-on-white);
}

.stat-label {
  display: block;
  font-size: .78rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border)
}

/* Triple bar removed for new brand */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:768px) {
  .hero {
    padding: 120px 20px 80px
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px
  }

  .stat-divider {
    width: 48px;
    height: 1px
  }
}

/* ═══════════════════════ MARQUEE ═══════════════════════ */
.marquee-section {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-raised);
}

.marquee-track {
  width: 100%;
  overflow: hidden
}

.marquee-content {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee-content span {
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.marquee-dot {
  color: var(--text-dim);
  font-weight: 900;
  font-size: .9rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ═══════════════════════ SECTION HEADERS ═══════════════════════ */
section {
  padding: 120px 0
}

.section-header {
  text-align: center;
  margin-bottom: 64px
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-on-white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════ SHOWCASE ═══════════════════════ */
.showcase {
  background: var(--bg-raised);
  position: relative;
  overflow: hidden
}

.showcase-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
}



.showcase-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  display: block;
}

.showcase-labels {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  padding: 0 10%;
}

.showcase-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(6, 6, 8, .7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  text-transform: uppercase;
  animation: fadeInUp .6s var(--ease) both;
}

.label-avant {
  animation-delay: .2s
}

.label-pendant {
  animation-delay: .4s
}

.label-apres {
  animation-delay: .6s
}

.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.label-avant .label-dot {
  background: #9CA3AF;
}

.label-pendant .label-dot {
  background: #4B5563;
}

.label-apres .label-dot {
  background: #111827;
}

@media(max-width:640px) {
  .showcase-labels {
    padding: 0 4%;
    gap: 8px
  }

  .showcase-label {
    padding: 6px 12px;
    font-size: .7rem
  }
}

/* ═══════════════════════ FEATURES ═══════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.feature-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
  opacity: 1
}

.feature-card-hero {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--text-on-white);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7
}

.feature-card-visual {
  margin-top: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-card-visual img {
  width: 100%;
  border-radius: var(--radius-sm)
}

@media(max-width:768px) {
  .features-grid {
    grid-template-columns: 1fr
  }

  .feature-card-hero {
    grid-column: span 1;
    grid-row: span 1
  }
}

/* ═══════════════════════ WORKFLOW ═══════════════════════ */
.workflow {
  position: relative;
  overflow: hidden;
}

/* Removed glow from workflow */

.workflow-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.workflow-step:hover {
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.step-number-wrap {
  min-width: 72px
}

.step-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-dim);
}

.step-content {
  flex: 1
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px
}

.step-content p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  color: var(--text-on-white);
  flex-shrink: 0;
  transition: var(--transition);
}

.workflow-step:hover .step-icon-wrap {
  background: var(--text-on-white);
  color: #fff;
}

/* Connector */
.workflow-connector {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.connector-bar {
  display: block;
  width: 2px;
  height: 32px;
  background: var(--border);
  border-radius: 2px;
}

@media(max-width:768px) {
  .workflow-step {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px
  }

  .step-icon-wrap {
    display: none
  }

  .workflow-step:hover {
    transform: translateY(-4px)
  }
}

/* ═══════════════════════ TESTIMONIALS ═══════════════════════ */
.testimonials {
  background: var(--bg-raised)
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--border);
  opacity: .5;
  line-height: 1;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.testimonial-stars {
  font-size: 1rem;
  color: #111827;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card>p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: .88rem
}

.testimonial-author span {
  font-size: .76rem;
  color: var(--text-dim)
}

@media(max-width:768px) {
  .testimonials-grid {
    grid-template-columns: 1fr
  }
}

/* ═══════════════════════ CTA ═══════════════════════ */
.cta-section {
  padding: 80px 0 120px
}

.cta-box {
  text-align: center;
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  background: #111827;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Glow and streaks removed */

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-box>p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════ PRICING (tarifs.html) ═══════════════════════ */
.pricing-hero {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.toggle-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label.active {
  color: var(--primary-lavender)
}

.toggle-badge {
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-on-white);
  font-size: .7rem;
  font-weight: 700;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.toggle-switch.active {
  background: rgba(224, 195, 252, .15);
  border-color: rgba(224, 195, 252, .3);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient);
  transition: var(--transition);
}

.toggle-switch.active .toggle-knob {
  left: calc(100% - 23px)
}

.pricing {
  padding-top: 40px
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card-popular {
  border-color: rgba(0, 0, 0, 0.15);
  background: #ffffff;
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card-popular:hover {
  transform: scale(1.04) translateY(-8px);
}

.popular-badge,
.section-white .popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 22px;
  border-radius: 50px;
  background: #111827;
  font-size: .75rem;
  font-weight: 700;
  color: #fff !important;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pricing-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px
}

.pricing-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6
}

.pricing-price {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 2px
}

.price-amount {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -.03em;
  transition: all .3s var(--ease)
}

.price-currency {
  font-size: 1.6rem;
  font-weight: 700
}

.price-period {
  font-size: .9rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 4px
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  font-size: .88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.check.dim {
  color: var(--text-dim)
}

@media(max-width:768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto
  }

  .pricing-card-popular {
    transform: none
  }

  .pricing-card-popular:hover {
    transform: translateY(-8px)
  }
}

/* ═══════════════════════ FAQ ═══════════════════════ */
.faq {
  padding-bottom: 40px
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: rgba(224, 195, 252, .2)
}

.faq-item summary {
  padding: 20px 28px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform .3s var(--ease);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}

.faq-item summary:hover {
  color: var(--primary)
}

.faq-item p {
  padding: 0 28px 20px;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════ FOOTER ═══════════════════════ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  margin-bottom: 48px;
  justify-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand p {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-links h4 {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim)
}

.footer-links a {
  font-size: .85rem;
  color: var(--text-secondary);
  transition: var(--transition)
}

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

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-triple-bar {
  color: var(--text-dim);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 2px;
}

.footer-bottom p {
  font-size: .8rem;
  color: var(--text-dim)
}

@media(max-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }
}

/* ═══════════════════════ SCROLL ANIMATIONS ═══════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ═══════════════════════ PAGE HEADERS ═══════════════════════ */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: none;
  -webkit-text-fill-color: initial;
}

.page-header-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════ FORMS ═══════════════════════ */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.2);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
  background: linear-gradient(135deg, #000000 0%, #FF006D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.8;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* ═══════════════════════ AUTH PAGES ═══════════════════════ */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.auth-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  /* Reduced from 32px */
  color: var(--text-dim);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 12px;
}

.btn-social {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
}

.btn-social:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border-hover);
}

.auth-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}


/* ═══════════════════════ MEGA MENU / DROPDOWNS ═══════════════════════ */
/* For a Pro SaaS feel, we update the navbar to handle dropdown menus */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item>a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-item>a:hover {
  color: var(--primary);
}

.nav-item>a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 280px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.nav-item:hover .nav-dropdown {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-item:hover>a::after {
  transform: translateY(2px) rotate(-135deg);
}

.nav-dropdown a {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-dropdown a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}

.nav-dropdown a span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 4px;
}

/* ═══════════════════════ MEGA FOOTER ═══════════════════════ */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════ SPLIT AUTH LAYOUT ═══════════════════════ */
.auth-split {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.auth-split-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  /* Reduced from 60px */
  background: var(--bg-white-raised);
  border-right: 1px solid var(--border);
}

.auth-split-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  /* Reduced from 40px */
}

.auth-split-form {
  width: 100%;
  max-width: 440px;
}

.auth-split-brand {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-split-brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.auth-split-brand span {
  font-size: 1.8rem;
  font-weight: 800;
}

.visual-quote {
  position: relative;
  z-index: 10;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 600px;
}

.visual-badges {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.visual-badge {
  padding: 8px 16px;
  background: rgba(224, 195, 252, 0.1);
  border: 1px solid rgba(224, 195, 252, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media(max-width: 900px) {
  .auth-split {
    flex-direction: column;
  }

  .auth-split-visual {
    display: none;
  }
}

/* Huge Brand Logo background in Hero */
.hero-huge-logo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  animation: floatLogo 15s ease-in-out infinite;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 100px rgba(0, 0, 0, 0.1));
}

.hero-huge-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-5deg) scale(1);
    opacity: 0.15;
  }

  50% {
    transform: translate(-50%, -54%) rotate(5deg) scale(1.05);
    opacity: 0.25;
  }
}

@media(max-width:768px) {
  .hero-huge-logo {
    width: 400px;
    height: 400px;
    opacity: 0.1;
  }
}

/* ═══════════════════════ CUSTOM VALIDATION ═══════════════════════ */
.form-input.invalid-haze {
  border-color: #ef4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1) !important;
  animation: shakeInput 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shakeInput {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.custom-error-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid #ef4444;
  padding: 10px 18px;
  border-radius: 12px;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: errorPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-error-tooltip::before {
  content: '✕';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  font-size: 0.75rem;
  color: #fff;
}

@keyframes errorPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ═══════════════════════ HYBRID THEME UTILITIES ═══════════════════════ */
.section-white {
  background: var(--bg-white) !important;
  color: var(--text-on-white) !important;
  position: relative;
  z-index: 1;
}

/* Force dark text on everything except specific tags */
.section-white *:not(.section-tag):not(.btn-primary):not(.btn-primary *):not(.popular-badge):not(.modal-plan-badge) {
  color: var(--text-on-white) !important;
}

.section-white .section-desc {
  opacity: 0.7;
}

.section-white .feature-card,
.section-white .workflow-step,
.section-white .testimonial-card,
.section-white .pricing-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: var(--text-on-white) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
}

.section-white .feature-card:hover,
.section-white .workflow-step:hover {
  border-color: var(--primary) !important;
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}

.section-white .section-tag {
  background: var(--gradient);
  color: white !important;
  box-shadow: 0 4px 15px rgba(224, 195, 252, 0.2);
}

/* Fix for icons that might be white */
.section-white .feature-icon i,
.section-white .feature-icon svg {
  color: white !important;
  /* Keep icons white on gradient backgrounds */
}

.section-white .pricing-card.popular {
  border: 2px solid var(--primary) !important;
}

/* Variety: Alternating padding for some sections */
.section-white.variety {
  padding: 120px 0 !important;
}

/* ──────────── Logout Confirmation ──────────── */
.dash-nav-item.logout-confirm {
  background: rgba(255, 71, 87, 0.15) !important;
  color: #ff4757 !important;
  border-color: rgba(255, 71, 87, 0.2) !important;
}

.dash-nav-item.logout-confirm svg {
  stroke: #ff4757 !important;
}

/* ══════════════════════ INTERACTIVE IMAGE COMPARE ══════════════════════ */
.image-compare-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 195, 252, 0.1);
  border: 1px solid var(--border);
}

.image-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  user-select: none;
  cursor: ew-resize;
  overflow: hidden;
}

.image-compare img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.image-compare .img-overlay {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.image-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(224, 195, 252, 0.4);
  border: 4px solid var(--bg);
}

.handle-button svg {
  width: 24px;
  height: 24px;
}

/* Effet de dézoom sur la photo après */
.img-after-tp {
  transform: scale(0.90);
  transform-origin: center;
}

/* FINAL OVERRIDE — FORCE WHITE TEXT ON POPULAR BADGES */
.popular-badge,
.modal-plan-badge,
section.section-white .popular-badge,
.section-white .popular-badge,
.section-white *:not(.section-tag) .popular-badge {
  color: #ffffff !important;
}