/* ========================================
   FORMEXA — Stylesheet principal
   Site vitrine — CRM formation + réseau
   ======================================== */

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

:root {
  --primary: #1a56db;
  --primary-dark: #1342a8;
  --primary-light: #e8effc;
  --secondary: #0e9f6e;
  --secondary-light: #e6f9f1;
  --dark: #111827;
  --text: #374151;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-dark: #111827;
  --white: #ffffff;
  --error: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --max-w: 1200px;
  --transition: .25s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { color: var(--dark); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: .5rem; }
p { margin-bottom: 1rem; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p, .section-dark li { color: #d1d5db; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 40rem; }

/* --- Grid --- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Flex --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 80px; width: auto; display: block; }
.footer .logo img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--text); font-size: .95rem; font-weight: 500; transition: color var(--transition); }
.nav a:hover { color: var(--primary); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a::after { content: ' ▾'; font-size: .7em; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 240px; padding: .5rem 0; margin-top: .5rem;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; padding: .6rem 1.25rem; font-size: .9rem; white-space: nowrap; }
.dropdown a:hover { background: var(--bg-alt); color: var(--primary); }

.nav-cta { margin-left: .5rem; }

/* Mobile menu */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  position: absolute; left: 4px; transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 99; padding: 2rem 1.5rem;
  overflow-y: auto;
}
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: .75rem 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; text-align: center; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .nav-cta.desktop-only { display: none; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block; padding: .75rem 1.75rem;
  border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn + .btn { margin-left: .75rem; }

@media (max-width: 640px) {
  .hero-actions .btn { display: block; width: 100%; margin: 0 0 .75rem 0; }
  .hero-actions .btn + .btn { margin-left: 0; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-light) 100%);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-light); margin-bottom: 2rem; max-width: 680px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-inner { padding: 5rem 0 4rem; }
.hero-inner h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.card-icon.green { background: var(--secondary-light); color: var(--secondary); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }

/* Pillar cards */
.pillar-card { border-top: 4px solid var(--primary); }
.pillar-card.green { border-top-color: var(--secondary); }

/* Pricing cards */
.pricing-card { text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--primary); border-width: 2px; }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); padding: .25rem 1rem;
  border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin: 1.5rem 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card ul { text-align: left; margin: 1.5rem 0; }
.pricing-card li { padding: .4rem 0; padding-left: 1.5rem; position: relative; font-size: .95rem; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-card li.disabled { color: var(--text-light); }
.pricing-card li.disabled::before { content: '—'; color: var(--text-light); }

/* ========================================
   FEATURE LIST
   ======================================== */
.feature-list { margin: 1.5rem 0; }
.feature-list li {
  padding: .6rem 0 .6rem 2rem; position: relative;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓'; position: absolute; left: 0; top: .6rem;
  color: var(--primary); font-weight: 700; font-size: 1.1rem;
}

/* ========================================
   STEPS / TIMELINE
   ======================================== */
.steps { display: flex; gap: 2rem; counter-reset: step; }
.step { flex: 1; text-align: center; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-weight: 700; font-size: 1.25rem;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; color: var(--text-light); }

@media (max-width: 768px) {
  .steps { flex-direction: column; gap: 1.5rem; }
  .step { text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
  .step::before { margin: 0; flex-shrink: 0; }
  .step-content { flex: 1; }
}

/* ========================================
   FAQ / ACCORDION
   ======================================== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer; width: 100%;
  background: none; border: none; text-align: left;
  font-size: 1.05rem; font-weight: 600; color: var(--dark);
  font-family: inherit;
}
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--text-light); transition: transform var(--transition); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 0 1.25rem; color: var(--text); line-height: 1.7; }

/* ========================================
   TABLES
   ======================================== */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--bg-alt); font-weight: 600; color: var(--dark); white-space: nowrap; }
td { color: var(--text); }
td:not(:first-child), th:not(:first-child) { text-align: center; }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--text-light); }

/* ========================================
   FORM
   ======================================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--dark); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .helper { font-size: .8rem; color: var(--text-light); margin-top: .3rem; }
.form-group .error-msg { font-size: .8rem; color: var(--error); margin-top: .3rem; display: none; }

.form-check { display: flex; align-items: flex-start; gap: .6rem; }
.form-check input[type="checkbox"] { width: auto; margin-top: .25rem; }
.form-check label { font-weight: 400; font-size: .9rem; }

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

/* ========================================
   BADGES
   ======================================== */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-green { background: var(--secondary-light); color: var(--secondary); }

.trust-badges { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 2rem 0; }
.trust-badge {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1.2rem; background: var(--bg-alt);
  border-radius: var(--radius); font-size: .875rem; font-weight: 500;
  color: var(--text); border: 1px solid var(--border);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ========================================
   TESTIMONIAL
   ======================================== */
.testimonial {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: 2rem; border-left: 4px solid var(--primary);
  max-width: 700px; margin: 2rem auto;
}
.testimonial blockquote { font-size: 1.05rem; font-style: italic; color: var(--text); margin-bottom: 1rem; line-height: 1.7; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--dark); font-size: .95rem; }

/* ========================================
   CTA BAND
   ======================================== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); text-align: center; padding: 4rem 0;
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.1rem; }

/* ========================================
   TWO COLUMNS
   ======================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

.img-placeholder {
  background: var(--bg-alt); border: 2px dashed var(--border);
  border-radius: var(--radius-lg); padding: 3rem; text-align: center;
  color: var(--text-light); font-size: .9rem; min-height: 250px;
  display: flex; align-items: center; justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--bg-dark); color: #9ca3af; padding: 4rem 0 2rem; }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer a { color: #9ca3af; font-size: .9rem; }
.footer a:hover { color: var(--white); }
.footer ul li { margin-bottom: .5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { font-size: .9rem; margin-top: .75rem; line-height: 1.6; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #374151; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-newsletter { margin-top: 1rem; }
.footer-newsletter input {
  padding: .6rem .8rem; border: 1px solid #374151; border-radius: var(--radius) 0 0 var(--radius);
  background: #1f2937; color: var(--white); font-size: .9rem; width: 180px;
}
.footer-newsletter button {
  padding: .6rem 1rem; border: none; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary); color: var(--white); font-size: .9rem; font-weight: 600; cursor: pointer;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.1); padding: 1.25rem 1.5rem;
  display: none;
}
.cookie-banner.show { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cookie-banner p { font-size: .9rem; margin-bottom: 0; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }

@media (max-width: 640px) {
  .cookie-banner.show { flex-direction: column; text-align: center; }
}

/* ========================================
   SECTION LABEL
   ======================================== */
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); margin-bottom: .75rem;
}

/* ========================================
   MISC / UTILITIES
   ======================================== */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ========================================
   ANIMATIONS
   ======================================== */

/* --- Base reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Staggered delays --- */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* --- Slide from left / right --- */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* --- Scale in --- */
.reveal-scale { opacity: 0; transform: scale(.85); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* --- Fade up subtle (for text) --- */
.reveal-fade { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal-fade.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   ANIMATED BACKGROUNDS
   ======================================== */

/* --- Hero gradient shift --- */
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #e8effc, #f0f4ff, #e6f9f1, #f0f7ff);
  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;
}

.hero-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #e8effc, #f0f4ff, #e6f9f1, #f0f7ff);
  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;
}

/* --- Floating blobs (hero backgrounds) --- */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(.97); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 18px) scale(.95); }
  66% { transform: translate(20px, -25px) scale(1.03); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(15px, -10px) rotate(5deg); }
}

.hero::before,
.hero::after,
.hero-inner::before,
.hero-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .15;
  pointer-events: none;
  z-index: 0;
}
.hero::before, .hero-inner::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -100px; right: -80px;
  animation: float1 8s ease-in-out infinite;
}
.hero::after, .hero-inner::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: -60px; left: -50px;
  animation: float2 10s ease-in-out infinite;
}

.hero .container,
.hero-inner .container { position: relative; z-index: 1; }

/* --- Floating dots / geometric shapes decoration --- */
@keyframes floatDot {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-12px); opacity: .7; }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.15); opacity: .8; }
}

/* Decorative dots in sections */
.section-decorated { position: relative; overflow: hidden; }
.section-decorated::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 20px 20px;
  top: 40px; right: -40px;
  opacity: .06;
  animation: rotateSlow 60s linear infinite;
  pointer-events: none;
}
.section-decorated::after {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  bottom: 30px; left: -40px;
  opacity: .06;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* --- CTA band animated gradient --- */
@keyframes ctaShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-band {
  background: linear-gradient(-45deg, var(--primary), var(--primary-dark), #2563eb, #1e40af);
  background-size: 300% 300%;
  animation: ctaShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: float1 10s ease-in-out infinite;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  bottom: -150px; left: -80px;
  animation: float2 12s ease-in-out infinite;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }

/* ========================================
   ENHANCED CARD EFFECTS
   ======================================== */
.card {
  transition: box-shadow .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1);
}
.card:hover {
  box-shadow: 0 12px 32px rgba(26,86,219,.12);
  transform: translateY(-4px);
}

/* Card icon spin on hover */
.card:hover .card-icon svg {
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  transform: scale(1.1) rotate(-5deg);
}
.card-icon svg {
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

/* Step counter pulse on reveal */
@keyframes stepPop {
  0% { transform: scale(.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.step.visible::before {
  animation: stepPop .5s cubic-bezier(.22,1,.36,1) forwards;
}

/* Pricing featured card glow */
.pricing-card.featured {
  box-shadow: 0 0 0 0 rgba(26,86,219,.15);
  animation: pricingGlow 3s ease-in-out infinite;
}
@keyframes pricingGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(26,86,219,.1); }
  50% { box-shadow: 0 8px 32px rgba(26,86,219,.2); }
}

/* ========================================
   PHOTO BLOCKS
   ======================================== */
.photo-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.photo-block:hover img {
  transform: scale(1.03);
}
.photo-block.photo-rounded { border-radius: 50%; }
.photo-block.photo-shadow { box-shadow: var(--shadow-lg); }

/* Photo with overlay text */
.photo-overlay {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
}
.photo-overlay img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  position: absolute; top: 0; left: 0;
}
.photo-overlay::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(17,24,39,.6) 0%, transparent 60%);
  pointer-events: none;
}
.photo-overlay-content {
  position: relative; z-index: 1;
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px;
  color: var(--white);
}
.photo-overlay-content h3 { color: var(--white); }
.photo-overlay-content p { color: rgba(255,255,255,.85); margin-bottom: 0; }

/* Photo grid for teams */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.photo-grid .photo-block { aspect-ratio: 4/3; }
@media (max-width: 768px) { .photo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr; } }

/* Full-width photo band */
.photo-band {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.photo-band img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.photo-band::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,86,219,.15) 0%, rgba(14,159,110,.1) 100%);
  pointer-events: none;
}
@media (max-width: 768px) { .photo-band { height: 250px; } }

/* ========================================
   SVG ILLUSTRATION CONTAINERS
   ======================================== */
.illustration {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0f4ff 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.illustration::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(26,86,219,.08) 0%, transparent 50%);
  pointer-events: none;
}
.illustration svg { position: relative; z-index: 1; max-width: 100%; height: auto; }
.illustration.green {
  background: linear-gradient(135deg, var(--secondary-light) 0%, #f0fdf4 100%);
}
.illustration.green::before {
  background: radial-gradient(circle at 80% 20%, rgba(14,159,110,.08) 0%, transparent 50%);
}

/* Hero illustration */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-visual svg {
  animation: heroFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(26,86,219,.15));
}

/* Animated lines in illustrations */
@keyframes drawLine {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
@keyframes fadeInSvg {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   BUTTON HOVER EFFECTS
   ======================================== */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s ease, height .5s ease;
}
.btn-primary:hover::after {
  width: 300px; height: 300px;
}

/* --- Subtle shine on trust badges --- */
@keyframes badgeShine {
  0% { left: -100%; }
  100% { left: 200%; }
}
.trust-badge {
  position: relative;
  overflow: hidden;
}
.trust-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition: none;
}
.trust-badge:hover::after {
  animation: badgeShine .6s ease forwards;
}

/* Back to top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; cursor: pointer; border: none;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Print */
@media print {
  .header, .footer, .cookie-banner, .back-to-top { display: none; }
  .section { padding: 2rem 0; }
}
