/* ============================================================
   HALLY PHARMA — Landing Page Styles
   Topbar : blanc
   Hero   : violet (#282045) · texte accent : or (#FCC149)
   ============================================================ */

/* ===== Variables ===== */
:root {
  --purple-dark:  #282045;
  --purple:       #7551E8;
  --purple-light: #9370F0;

  --gold:         #FCC149;
  --gold-dark:    #B77526;
  --gold-glow:    rgba(252, 193, 73, 0.4);

  --sky:          #BADDFC;

  --white:    #FFFFFF;
  --gray-50:  #F7F5FF;
  --gray-100: #EEEAFF;
  --gray-200: #EAEAEA;
  --gray-300: #D4D0DC;
  --gray-400: #9E99AE;
  --gray-500: #6B6679;
  --gray-600: #4D4860;
  --gray-700: #36323F;
  --gray-800: #211D2E;
  --gray-900: #14102A;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(40,32,69,0.06);
  --shadow:    0 4px 12px rgba(40,32,69,0.08);
  --shadow-md: 0 10px 28px rgba(40,32,69,0.12);
  --shadow-lg: 0 20px 48px rgba(40,32,69,0.16);
  --shadow-xl: 0 30px 64px rgba(0,0,0,0.3);

  --radius-sm:   6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===== Animations scroll ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* Or — CTA principal (fonctionne sur fond clair et foncé) */
.btn-accent {
  background: var(--gold);
  color: var(--purple-dark);
  border-color: var(--gold);
}
.btn-accent:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

/* Outline sur fond BLANC (navbar) */
.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: rgba(117, 81, 232, 0.3);
}
.btn-outline:hover {
  background: rgba(117, 81, 232, 0.06);
  border-color: var(--purple);
}

/* Ghost sur fond SOMBRE (hero) */
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
}

/* Outline sur fond SOMBRE (CTA section) */
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
}

/* ============================================================
   ÉLÉMENTS SECTION COMMUNS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--purple-dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Tag sur fond CLAIR */
.section-tag {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
/* Tag sur fond SOMBRE */
.section-tag.light {
  background: rgba(252, 193, 73, 0.15);
  color: var(--gold);
  border: 1px solid rgba(252, 193, 73, 0.3);
}

/* ============================================================
   NAVBAR — BLANC
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Au scroll : ombre plus marquée, bordure effacée */
.navbar.scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 2px 20px rgba(40, 32, 69, 0.1);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

/* Logo couleurs naturelles sur fond blanc */
.nav-logo img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 36px;
  margin-right: auto;
}
.nav-links a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--purple);
  background: rgba(117, 81, 232, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}
.lang-sep { color: var(--gray-300); font-size: 13px; }
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition);
}
.lang-btn:hover,
.lang-btn.active { color: var(--purple-dark); }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--purple-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO — FOND VIOLET
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--purple-dark);
  overflow: hidden;
  padding: 140px 0 100px;
}

/* Couches de fond */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Halo violet central */
.hero-glow-top {
  position: absolute;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  width: 960px; height: 720px;
  background: radial-gradient(ellipse, rgba(117, 81, 232, 0.55) 0%, transparent 68%);
}
/* Halo or discret côté droit */
.hero-glow-side {
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 100%;
  background: radial-gradient(ellipse at right center, rgba(252, 193, 73, 0.07) 0%, transparent 60%);
}
/* Grille de points */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  animation: heroFadeIn 0.85s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 9px 18px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.hero-badge svg { color: var(--gold); flex-shrink: 0; }

/* Titre : blanc + accent OR */
.hero-title {
  font-size: clamp(40px, 6.5vw, 78px);
  font-weight: 900;
  line-height: 1.07;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title .highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-note {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 13px;
  font-weight: 500;
}
.dot-sep { color: rgba(255, 255, 255, 0.2); }

/* Flèche scroll */
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.28);
  animation: scrollBounce 2.2s ease-in-out infinite;
  transition: color var(--transition);
}
.hero-scroll:hover { color: rgba(255,255,255,0.6); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   FEATURES OVERVIEW
   ============================================================ */
.features-overview { background: var(--gray-50); }

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================================
   FEATURE DETAIL
   ============================================================ */
.feature-detail { background: var(--white); }
.feature-detail.alt-bg { background: var(--gray-50); }

.feature-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-detail-inner.reverse .feature-detail-text  { order: 2; }
.feature-detail-inner.reverse .feature-detail-visual { order: 1; }

.feature-detail-text h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--purple-dark);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.feature-detail-text p {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 32px;
}

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
}
.check-icon {
  flex-shrink: 0;
  color: var(--purple-dark);
  background: var(--gold);
  border-radius: var(--radius-full);
  padding: 3px;
  width: 22px; height: 22px;
}

/* ===== Mock UI Cards ===== */
.mock-card {
  background: var(--purple-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.07);
}
.mock-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mock-dots { display: flex; gap: 5px; }
.mdot { width: 10px; height: 10px; border-radius: 50%; }
.mdot.red    { background: #FF5F57; }
.mdot.yellow { background: #FFBD2E; }
.mdot.green  { background: #28CA41; }
.mock-title {
  margin-left: 8px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}
.mock-card-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mock-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.mock-tag.blue   { background: rgba(186,221,252,0.12); color: var(--sky); border-color: rgba(186,221,252,0.28); }
.mock-tag.yellow { background: rgba(252,193,73,0.15);  color: var(--gold); border-color: rgba(252,193,73,0.3); }
.mock-tag.teal   { background: rgba(117,81,232,0.2);  color: var(--purple-light); border-color: rgba(117,81,232,0.35); }

.mock-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.mock-progress-label {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.mock-progress-track {
  flex: 1; height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.mock-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #FFD87A);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(252,193,73,0.5);
}
.mock-progress-pct {
  font-size: 13px; font-weight: 700;
  color: var(--gold);
  width: 36px; text-align: right;
}
.mock-stats {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
}
.mock-stat {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.mock-stat:last-child { border-right: none; }
.mock-stat-num {
  font-size: 30px; font-weight: 800;
  color: var(--white);
  line-height: 1; letter-spacing: -0.03em;
}
.mock-stat-num.accent { color: var(--gold); }
.mock-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 5px; font-weight: 500;
}

.audit-log { display: flex; flex-direction: column; }

.audit-entry {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.audit-entry:last-child  { border-bottom: none; padding-bottom: 0; }
.audit-entry:first-child { padding-top: 0; }

/* Ligne 1 : badge action + date */
.audit-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.audit-badge {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.audit-badge.mod      { background: rgba(117,81,232,0.22); color: #B39AF8; }
.audit-badge.approve  { background: rgba(40,202,65,0.15);  color: #4ADE80; }
.audit-badge.create   { background: rgba(252,193,73,0.15); color: var(--gold); }

.audit-datetime {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Ligne 2 : champ / donnée concernée */
.audit-field {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* Ligne 3 : avant → après */
.audit-diff {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.audit-diff-before {
  color: rgba(255,255,255,0.28);
  text-decoration: line-through;
}
.audit-diff-sep {
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.audit-diff-after {
  color: #4ADE80;
  font-weight: 600;
}

/* Ligne 4 : utilisateur */
.audit-meta {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.32);
}

/* ============================================================
   DEMO SECTION — fond sombre
   ============================================================ */
.demo-section {
  padding: 110px 0;
  background: var(--purple-dark);
  position: relative;
  overflow: hidden;
}
.demo-glow-left {
  position: absolute;
  bottom: -180px; left: -200px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(117,81,232,0.3) 0%, transparent 65%);
  pointer-events: none;
}
.demo-glow-right {
  position: absolute;
  top: -100px; right: -150px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(252,193,73,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.demo-inner {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.demo-content { max-width: 680px; }
.demo-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.demo-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.58);
  line-height: 1.75; margin-bottom: 36px;
}
.demo-checklist {
  display: flex; flex-direction: column;
  gap: 14px; margin-bottom: 44px;
}
.demo-checklist li {
  display: flex; align-items: center;
  gap: 12px;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.82);
}
.demo-checklist li svg { flex-shrink: 0; color: var(--gold); }

.demo-visual { width: 100%; }

/* Carrousel screenshots */
.demo-carousel { width: 100%; }
.demo-carousel-track-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
.demo-carousel-track {
  display: flex;
  transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}
.demo-carousel-slide { flex: 0 0 100%; }
.demo-carousel-slide img {
  width: 100%; height: auto;
  display: block;
}
.demo-carousel-dots {
  display: flex; justify-content: center;
  gap: 8px; margin-top: 18px;
}
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.demo-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* ============================================================
   CTA SECTION — dégradé violet
   ============================================================ */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(140deg, var(--purple) 0%, var(--purple-dark) 65%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 60% at 50% 50%, rgba(252,193,73,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  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: 60px 60px;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-inner h2 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 18px;
}
.cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 48px;
}
.cta-buttons {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  padding: 80px 0 0;
  color: var(--gray-400);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img {
  height: 30px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px; line-height: 1.7;
  margin-bottom: 28px; color: var(--gray-500);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  color: var(--gray-400);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--purple); color: var(--white); }
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
  font-size: 14px; color: var(--gray-500);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 0;
  font-size: 13px; color: var(--gray-600);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   FAQ
   ============================================================ */
/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.testimonials-section { background: var(--white); }

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

.testimonial-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.testimonial-card blockquote p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-700);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

.faq-section { background: var(--gray-50); }

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

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open {
  border-color: rgba(117, 81, 232, 0.4);
  box-shadow: 0 4px 20px rgba(117, 81, 232, 0.09);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--purple-dark);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--purple); }
.faq-item.open .faq-question { color: var(--purple); }

/* Icône +/× */
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.faq-icon svg {
  color: var(--purple);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  background: var(--purple);
  border-color: var(--purple);
}
.faq-item.open .faq-icon svg {
  color: var(--white);
  transform: rotate(45deg);
}

/* Réponse accordéon */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 22px;
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
}
.faq-answer-inner p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

/* En-tête formulaire */
.contact-form-wrap .section-tag { margin-bottom: 16px; }
.contact-form-wrap h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--purple-dark);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.contact-form-wrap > p {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 36px;
}

/* Champs du formulaire */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(117, 81, 232, 0.1);
}
/* Flèche select custom */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236B6679' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Champ en erreur */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

/* État succès */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  gap: 16px;
}
.form-success.visible { display: flex; }
.form-success-icon {
  width: 68px; height: 68px;
  background: rgba(117, 81, 232, 0.08);
  border: 2px solid rgba(117, 81, 232, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.form-success h3 {
  font-size: 22px; font-weight: 700;
  color: var(--purple-dark);
}
.form-success p { font-size: 15px; color: var(--gray-500); max-width: 360px; }

/* Barre latérale contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 88px; /* aligner avec les champs du form */
}
.contact-info-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(117, 81, 232, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 14px;
}
.contact-info-card h4 {
  font-size: 14px; font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 6px;
}
.contact-info-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}
.contact-info-card a { color: var(--purple); font-weight: 500; }
.contact-info-card a:hover { text-decoration: underline; }
.contact-info-note {
  font-size: 12px !important;
  color: var(--gray-400) !important;
  margin-top: 4px;
}
/* Carte démo — fond violet */
.contact-demo-card {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-color: transparent;
}
.contact-demo-card .contact-info-icon {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
}
.contact-demo-card h4 { color: var(--white); }
.contact-demo-card p { color: rgba(255,255,255,0.65); }
.contact-demo-card .btn-accent { margin-top: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-detail-inner { gap: 56px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-info { padding-top: 0; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .navbar.mobile-open {
    background: var(--white);
    box-shadow: 0 8px 32px rgba(40,32,69,0.1);
    border-bottom-color: transparent;
  }
  .navbar.mobile-open .nav-links,
  .navbar.mobile-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--gray-200);
    gap: 8px;
  }
  .navbar.mobile-open .nav-links a { font-size: 16px; padding: 10px 16px; color: var(--gray-700); }
  .navbar.mobile-open .nav-actions { padding-top: 8px; gap: 10px; }
  .navbar.mobile-open .lang-toggle { margin-bottom: 4px; }
  .nav-container { flex-wrap: wrap; }

  .hero { padding: 120px 0 80px; }
  .hero-title { font-size: clamp(34px, 9vw, 56px); }

  .features-grid { grid-template-columns: 1fr; }

  .feature-detail-inner,
  .feature-detail-inner.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-detail-inner.reverse .feature-detail-text  { order: 1; }
  .feature-detail-inner.reverse .feature-detail-visual { order: 2; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-note { flex-direction: column; gap: 6px; }
  .dot-sep { display: none; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
}
