/* ==========================================================================
   HORIZON ASSURANCE - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary-dark: #0B2545;     /* Deep Trust Blue */
  --primary-brand: #0B2545;    /* Brand dark blue */
  --primary-brand-light: #1A4476; /* Bright secondary blue */
  --accent-orange: #FF4757;     /* Bright Coral for high CTR */
  --accent-orange-hover: #E03544;
  --accent-green: #22c55e;     /* Success/positive states */
  --accent-green-light: #f0fdf4;
  
  --bg-main: hsl(210, 40%, 98%);          /* Main canvas background (#f8fafc) */
  --bg-card: hsl(0, 0%, 100%);            /* Cards / white panels */
  --text-main: hsl(215, 25%, 27%);        /* Body text (#334155) */
  --text-muted: hsl(215, 16%, 47%);       /* Subtitles (#64748b) */
  --text-light: hsl(0, 0%, 100%);
  --border-color: hsl(214, 32%, 91%);     /* Dividers and borders (#e2e8f0) */
  
  /* Layout & Spacing */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-card);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Typography elements */
h1, h2, h3, h4 {
  color: var(--primary-brand);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  letter-spacing: -0.02em;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--accent-orange);
  margin: 12px auto 0 auto;
  border-radius: var(--radius-full);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

a {
  color: var(--primary-brand-light);
  text-decoration: none;
  transition: var(--transition-all);
}

a:hover {
  color: var(--primary-brand);
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: normal;
  line-height: 1.3;
  max-width: 100%;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  color: var(--text-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 10px 20px -10px var(--accent-orange);
}

.btn-secondary {
  background-color: var(--primary-brand);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #051426;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-brand);
  border: 2px solid var(--primary-brand);
}

.btn-outline:hover {
  background-color: var(--bg-card);
  color: var(--primary-brand-light);
  border-color: var(--primary-brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* FAQ Accordion Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.faq-item.active {
  border-color: var(--primary-brand-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-brand);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-all);
}

.faq-question:hover {
  color: var(--accent-orange);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--primary-brand-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--bg-main);
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* arbitrary large value */
  padding: 0 25px 25px 25px;
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
}

.faq-answer ul {
  margin: 15px 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.faq-answer li {
  margin-bottom: 8px;
}

.btn-block {
  display: flex;
  width: fit-content;
}

/* ==========================================================================
   NAVBAR (HEADER)
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-all);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-brand);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent-orange);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-weight: 550;
  color: var(--primary-brand);
  position: relative;
  padding: 6px 0;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: var(--transition-all);
}

.nav-link:hover::after,
.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   MEGA MENU STYLES
   ========================================================================== */
.has-dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 600px;
  border: 1px solid var(--border-color);
  z-index: 1000;
  pointer-events: none;
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-column h4 {
  font-size: 0.95rem;
  color: var(--primary-brand);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-column a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.mega-column a:hover {
  color: var(--accent-orange);
}

.mega-column a.mega-cta {
  color: var(--accent-orange);
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
}

.mega-column a.mega-cta::before {
  content: '➔ ';
}

@media (max-width: 992px) {
  .mega-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0 10px 15px;
    display: none;
    min-width: auto;
  }

  .has-dropdown:hover .mega-menu,
  .has-dropdown.active .mega-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
}

/* Mobile Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-brand);
  border-radius: 3px;
  transition: var(--transition-all);
}

/* Open states for toggle */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, hsl(210, 100%, 96%) 0%, var(--bg-main) 100%);
  padding: 100px 0 80px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary-brand-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(214, 100%, 93%);
}

.hero-tag svg {
  width: 14px;
  height: 14px;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.hero-features-list {
  display: flex;
  gap: 30px;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero-feat-item svg {
  color: var(--accent-green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Visual Illustration container (Glassmorphic cards mockup) */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-mockup {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 320px;
  transition: var(--transition-smooth);
}

.card-mockup-1 {
  transform: translate(-40px, -40px) rotate(-4deg);
  z-index: 3;
}

.card-mockup-2 {
  transform: translate(60px, 40px) rotate(3deg);
  z-index: 2;
  background: linear-gradient(135deg, var(--primary-brand) 0%, hsl(220, 80%, 25%) 100%);
  color: var(--text-light);
  border: none;
}

.card-mockup:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 5;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.mockup-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-mockup-1 .mockup-icon {
  background-color: hsl(24, 95%, 95%);
  color: var(--accent-orange);
}

.card-mockup-2 .mockup-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.mockup-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.mockup-price {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.mockup-price span {
  font-size: 0.9rem;
  font-weight: 400;
}

.mockup-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.mockup-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   PRODUCT SHOWCASE GRID
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 3rem;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--primary-brand-light);
  transition: var(--transition-all);
}

.product-card.card-auto::before {
  background-color: var(--accent-orange);
}

.product-card.card-sante::before {
  background-color: var(--primary-brand-light);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-auto .product-icon {
  background-color: hsl(24, 95%, 96%);
  color: var(--accent-orange);
}

.card-sante .product-icon {
  background-color: var(--primary-light);
  color: var(--primary-brand-light);
}

.product-bullets {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.product-bullets li svg {
  color: var(--accent-green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-card .btn {
  margin-top: auto;
}

/* ==========================================================================
   BROKER PROPOSITION / COMPARATOR SECTION
   ========================================================================== */
.broker-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-text h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.step-text p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.stats-card {
  background: linear-gradient(135deg, var(--primary-brand) 0%, hsl(220, 80%, 15%) 100%);
  color: var(--text-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   FORMULA PRICING TABLES
   ========================================================================== */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

.formula-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.formula-card.popular {
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  z-index: 2;
}

.formula-card.popular::before {
  content: 'LE PLUS DEMANDÉ';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-orange);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.formula-header {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.formula-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-brand);
  margin-bottom: 0.5rem;
}

.formula-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.formula-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-brand);
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.formula-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.formula-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 35px;
}

.formula-bullets li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.formula-bullets li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.formula-bullets li.yes svg {
  color: var(--accent-green);
}

.formula-bullets li.no svg {
  color: var(--text-muted);
  opacity: 0.4;
}

.formula-bullets li.no {
  color: var(--text-muted);
  text-decoration: line-through;
}

.formula-card .btn {
  margin-top: auto;
}

/* ==========================================================================
   DYNAMIC MULTI-STEP DEVIS FORM
   ========================================================================== */
.devis-container {
  max-width: 750px;
  margin: 40px auto;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.devis-header {
  background: linear-gradient(135deg, var(--primary-brand) 0%, hsl(220, 80%, 20%) 100%);
  color: var(--text-light);
  padding: 30px;
  text-align: center;
}

.devis-header h1 {
  color: var(--text-light);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.devis-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* Step Progress Indicator */
.devis-progress {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.devis-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 3px;
  background-color: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}

.devis-progress-bar {
  position: absolute;
  top: 50%;
  left: 40px;
  height: 3px;
  background-color: var(--accent-orange);
  transform: translateY(-50%);
  z-index: 1.5;
  width: 0%;
  transition: var(--transition-all);
}

.progress-step {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 2.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  transition: var(--transition-all);
  color: var(--text-muted);
}

.progress-step.active {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px hsl(24, 95%, 90%);
}

.progress-step.completed {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--text-light);
}

/* Form Steps Panels */
.devis-body {
  padding: 40px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inputs & Form Layouts */
.form-group {
  margin-bottom: 25px;
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

label {
  display: block;
  font-weight: 600;
  color: var(--primary-brand);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.required::after {
  content: ' *';
  color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 14px;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: var(--transition-all);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-brand-light);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px hsl(214, 100%, 93%);
}

/* Card Selection Radios */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.radio-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-all);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background-color: var(--bg-main);
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-icon {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.radio-card-title {
  font-weight: 700;
  color: var(--primary-brand);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.radio-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Selected state for radio cards */
.radio-card:hover {
  border-color: var(--primary-brand-light);
}

.radio-card.selected {
  border-color: var(--accent-orange);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-md);
}

/* Checked indicators */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  user-select: none;
  margin-top: 15px;
}

.checkbox-container input {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-container a {
  text-decoration: underline;
  font-weight: 600;
}

/* Form Action Buttons */
.devis-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.devis-footer .btn {
  padding: 12px 24px;
}

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

.btn-prev:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.error-message {
  color: red;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

/* Success Step styles */
.success-card {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--accent-green-light);
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 25px;
}

/* ==========================================================================
   TESTIMONIALS & TRUST SIGNALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stars {
  color: gold;
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0px;
}

/* Partner Logos Slider */
.partners-logo-wrap {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.75;
  margin-top: 2rem;
}

.partner-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-logo span {
  color: var(--primary-brand-light);
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  background-color: var(--primary-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10000;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-banner.show {
  bottom: 24px;
}

.cookie-text h3 {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent-orange);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cookie-btns .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
}

.btn-cookie-accept {
  background-color: var(--accent-orange);
  color: var(--text-light);
}

.btn-cookie-deny {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-deny:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 60px 0 20px 0;
  margin-top: auto;
  border-top: 5px solid var(--accent-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--accent-orange);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-all);
}

.footer-socials a:hover {
  background-color: var(--accent-orange);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-orange);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.footer-contact-item svg {
  color: var(--accent-orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   SCROLL REVEAL (SCROLL-DRIVEN ANIMATIONS & FALLBACKS)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes scroll-fade-in {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-on-scroll {
      animation: scroll-fade-in auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* Fallback class for browsers without scroll-driven animations */
.reveal-fallback {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-fallback.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.85rem;
  }
  
  .hero-grid,
  .product-grid,
  .broker-grid,
  .formula-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-visual {
    height: 350px;
  }
  
  .card-mockup-1 {
    transform: translate(-30px, -20px) rotate(-4deg);
  }
  
  .card-mockup-2 {
    transform: translate(40px, 40px) rotate(3deg);
  }
  
  .stats-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .formula-card.popular {
    transform: scale(1);
    border-color: var(--border-color);
  }
  
  .formula-card.popular::before {
    top: 15px;
    left: auto;
    right: 20px;
    transform: none;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: fit-content;
    margin: 0 auto;
  }
  
  .hero-features-list {
    flex-direction: column;
    gap: 15px;
  }
  
  .devis-body {
    padding: 24px;
  }
  
  .devis-progress {
    padding: 20px 20px;
  }
  
  .devis-progress::before,
  .devis-progress-bar {
    left: 20px;
    right: 20px;
  }
  
  .radio-cards,
  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .devis-footer {
    padding: 20px 24px;
  }
  
  .cookie-banner {
    width: 95%;
    padding: 16px;
  }
  
  .cookie-btns {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-btns .btn {
    width: fit-content;
    margin: 0 auto;
  }
}

/* ==========================================================================
   TYPEFORM-STYLE FULLSCREEN FUNNEL (devis.html)
   ========================================================================== */
.funnel-body {
  background-color: var(--bg-main);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.funnel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.funnel-close {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.funnel-close:hover {
  color: var(--accent-orange);
}

.funnel-progress {
  height: 4px;
  background-color: #e2e8f0;
  width: 100%;
}

.funnel-progress-bar {
  height: 100%;
  background-color: var(--accent-orange);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.funnel-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  padding: 40px 20px;
}

#typeformForm {
  width: 100%;
  max-width: 700px;
  position: relative;
}

.funnel-step {
  display: none;
  width: 100%;
  animation: slideUpFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.funnel-step.active {
  display: block;
}

.funnel-question {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-brand);
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.3;
}

.funnel-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.funnel-options-list {
  grid-template-columns: 1fr;
}

.funnel-option {
  display: flex;
  align-items: center;
  padding: 30px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-all);
  position: relative;
  overflow: hidden;
}

.funnel-option:hover {
  border-color: var(--primary-brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.funnel-radio {
  opacity: 0;
  position: absolute;
}

/* Checked State */
.funnel-radio:checked + .funnel-icon {
  color: var(--accent-orange);
}

.funnel-option.selected {
  border-color: var(--accent-orange);
  background-color: hsla(24, 95%, 95%, 0.5);
  box-shadow: var(--shadow-md), 0 0 0 2px var(--accent-orange);
}

.funnel-icon {
  font-size: 3rem;
  margin-right: 20px;
  transition: transform 0.2s;
}

.funnel-option:hover .funnel-icon {
  transform: scale(1.1);
}

.funnel-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-brand);
}

.funnel-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.funnel-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.funnel-input-huge {
  width: 100%;
  padding: 20px 25px;
  font-size: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-all);
  font-family: inherit;
  background: white;
}

.funnel-input-huge:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.1);
}

.btn-huge {
  font-size: 1.25rem;
  padding: 16px 32px;
  border-radius: var(--radius-md);
}

.funnel-error {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  font-weight: 600;
  text-align: center;
  animation: shake 0.4s;
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@media (max-width: 768px) {
  .funnel-question {
    font-size: 2rem;
  }
  .funnel-input-huge, .btn-huge {
    font-size: 1.1rem;
    padding: 14px 20px;
  }
  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  .funnel-inputs-grid {
    grid-template-columns: 1fr;
  }
  .funnel-header {
    padding: 15px 20px;
  }
}

/* ==========================================================================
   STICKY MOBILE CTA (QUICK WINS)
   ========================================================================== */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  padding: 15px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
  z-index: 9999;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block;
  }
  /* Add padding to body so the sticky footer doesn't overlap content */
  body.has-sticky-cta {
    padding-bottom: 80px;
  }
}

/* Responsive Sidebar Grid */
.content-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.content-sidebar-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
@media (max-width: 992px) {
  .content-sidebar-grid, .content-sidebar-grid-2-1 {
    grid-template-columns: 1fr;
  }
}
