/* ========================================
   MCP Solutions - Design System
   Clinical High-Tech Pharmaceutical
   ======================================== */

/* --- Design Tokens --- */
:root {
  /* Primary - Medical Blue #314899 */
  --primary: hsl(227, 52%, 40%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-10: hsla(227, 52%, 40%, 0.1);
  --primary-20: hsla(227, 52%, 40%, 0.2);
  --primary-30: hsla(227, 52%, 40%, 0.3);

  /* Background & Foreground */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 20%, 10%);

  /* Card */
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 20%, 10%);

  /* Secondary / Muted */
  --secondary: hsl(220, 14%, 96%);
  --secondary-30: hsla(220, 14%, 96%, 0.3);
  --muted: hsl(220, 14%, 96%);
  --muted-foreground: hsl(220, 10%, 46%);

  /* Borders */
  --border: hsl(220, 14%, 90%);
  --border-50: hsla(220, 14%, 90%, 0.5);

  /* Steel Greys */
  --steel-50: hsl(220, 14%, 98%);
  --steel-100: hsl(220, 14%, 96%);
  --steel-200: hsl(220, 14%, 90%);
  --steel-300: hsl(220, 14%, 80%);

  /* Radius */
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Font */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 20px -6px hsla(220, 20%, 10%, 0.06);
  --shadow-md: 0 8px 30px -8px hsla(220, 20%, 10%, 0.1);
  --shadow-lg: 0 8px 30px -12px hsla(220, 20%, 10%, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

[id] {
  scroll-margin-top: 130px;
}

@media (max-width: 768px) {
  [id] { scroll-margin-top: 74px; }
}

body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hidden { display: none !important; }

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-primary { color: var(--primary); }
.section__label .text-primary { font-weight: 800; }

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover { opacity: 0.9; }

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  min-width: 220px;
  justify-content: center;
}

.btn--outline-white {
  background: hsla(0, 0%, 100%, 0.1);
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  color: white;
}
.btn--outline-white:hover {
  background: white;
  color: var(--primary);
}

.btn--white {
  background: white;
  color: var(--primary);
  font-weight: 600;
}
.btn--white:hover { background: hsla(0, 0%, 100%, 0.9); }

.btn--contact {
  background: hsl(204, 76%, 87%);
  color: var(--foreground);
  border: 1px solid #9ac5ef;
  padding: 0.875rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn--contact:hover { background: hsl(204, 76%, 82%); }

.btn--full { width: 100%; justify-content: center; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* ========================================
   HEADER
   ======================================== */

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  animation: slideDown 0.6s ease-out;
}

/* Top Bar */
.top-bar {
  background: #232323;
  color: var(--steel-100);
  font-size: 0.875rem;
  display: none;
}

@media (min-width: 769px) {
  .top-bar { display: block; }
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.5rem;
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.top-bar__link:hover { color: white; }

.top-bar__tagline { color: var(--steel-300); }

/* Navbar */
.navbar {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.is-scrolled { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 769px) {
  .navbar__inner { height: 5rem; }
}

.navbar__logo img {
  height: 50px;
  width: auto;
}

@media (min-width: 769px) {
  .navbar__logo img { height: 60px; }
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 769px) {
  .navbar__links { display: flex; }
}

.navbar__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
  position: relative;
}

.navbar__link::before,
.navbar__link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: bottom right;
}

.navbar__link::before { top: -4px; }
.navbar__link::after { bottom: -4px; }

.navbar__link:hover,
.navbar__link.active {
  color: var(--foreground);
}

.navbar__link:hover::before,
.navbar__link:hover::after,
.navbar__link.active::before,
.navbar__link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar__actions {
  display: none;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .navbar__actions { display: flex; }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.lang-toggle:hover { color: var(--foreground); }

.navbar__burger {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
}

@media (min-width: 769px) {
  .navbar__burger { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  padding-bottom: 1.5rem;
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu__nav-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.mobile-menu__nav-link:hover,
.mobile-menu__nav-link.active {
  color: var(--foreground);
}

.mobile-menu__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.mobile-menu__actions .btn--primary { flex: 1; }

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--background), var(--secondary-30));
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, var(--steel-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--steel-200) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, transparent 30%, var(--background) 70%);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}
.hero__blob--1 {
  top: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: var(--primary-10);
}
.hero__blob--2 {
  bottom: 33%;
  left: 25%;
  width: 20rem;
  height: 20rem;
  background: hsla(227, 52%, 40%, 0.05);
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 150px 1rem 0;
  text-align: center;
}

.hero__text {
  max-width: 56rem;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-10);
  border: 1px solid var(--primary-20);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 769px) { .hero__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 3rem; } }

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 769px) { .hero__subtitle { font-size: 1.25rem; } }

.hero__pills {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 769px) { .hero__pills { display: flex; } }

.pill {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--background);
  white-space: nowrap;
}

.pill--active {
  border-color: var(--primary);
  color: var(--primary);
}

.hero__image-section {
  position: relative;
  z-index: 10;
  background: var(--background);
  background: linear-gradient(to bottom, var(--secondary-30), var(--background));
  padding: 2rem 0;
}

.hero__image-wrapper {
  max-width: 64rem;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  background: #e8e8e8;
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Hero Before/After Slider --- */
.hero__compare {
  position: relative;
  cursor: col-resize;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.hero__image--before {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__compare-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 0 0 25%);
}

.hero__compare-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Before layer (clip-path inverse pour la pill Avant) */
.hero__compare-before-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  clip-path: inset(0 75% 0 0);
}

/* Pills Avant / Après sur l'image */
.hero__compare-pill {
  position: absolute;
  bottom: 1.25rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.hero__compare-pill--before {
  left: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero__compare-pill--after {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Slider handle */
.hero__compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25%;
  z-index: 10;
  width: 3px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.35);
}

.hero__compare-knob {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--primary);
  pointer-events: auto;
  cursor: col-resize;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero__compare-knob:hover,
.hero__compare-knob:active {
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.hero__compare-knob svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero__compare-knob {
    width: 40px;
    height: 40px;
  }
  .hero__compare-knob svg {
    width: 14px;
    height: 14px;
  }
  .hero__compare-pill {
    font-size: 0.7rem;
    padding: 0.375rem 0.875rem;
    bottom: 0.75rem;
  }
  .hero__compare-pill--before { left: 0.75rem; }
  .hero__compare-pill--after { right: 0.75rem; bottom: 0.75rem; }
}

.hero__frise {
  width: 100%;
  max-width: 56rem;
  margin: 4rem auto;
  object-fit: contain;
}

/* ========================================
   SECTIONS COMMON
   ======================================== */

.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--secondary-30);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 769px) {
  .section__header h2 { font-size: 2.25rem; }
}

.section__header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.section__label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 769px) {
  .section__title { font-size: 1.875rem; }
}

/* ========================================
   EXPERTISE
   ======================================== */

.expertise__header {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 769px) {
  .expertise__header { grid-template-columns: 1fr 1fr; }
}

.expertise__intro {
  display: flex;
  align-items: center;
}

.expertise__intro p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.expertise__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 769px) {
  .expertise__grid { grid-template-columns: 1fr 1fr; }
}

.expertise__card--image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-lg);
}

.expertise__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expertise__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4), transparent);
}

.expertise__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.expertise__card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.expertise__card-content p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.link--highlight {
  color: var(--primary);
  font-weight: 500;
}
.link--highlight:hover { text-decoration: underline; }

.expertise__stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expertise__card--vision {
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: hsl(204, 69%, 87%);
  border: 1px solid #9ac5ef;
  flex: 1;
}

.expertise__card--vision h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.expertise__card--vision p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.expertise__card--mission {
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: hsl(0, 0%, 33%);
  flex: 1;
}

.expertise__card--mission h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.expertise__card--mission p {
  color: hsl(213, 27%, 80%);
  line-height: 1.7;
}

/* Trust Banner */
.trust-banner {
  margin-top: 3rem;
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.5rem;
  background: hsla(220, 14%, 96%, 0.5);
  border: 1px solid var(--border-50);
  overflow: hidden;
}

@media (min-width: 769px) {
  .trust-banner { padding: 3.5rem 3rem; }
}

.trust-banner__header {
  text-align: center;
  margin-bottom: 3rem;
}

.trust-banner__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--primary-20);
  color: var(--primary);
  margin-bottom: 1rem;
}

.trust-banner__header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (min-width: 769px) {
  .trust-banner__header h3 { font-size: 1.875rem; }
}

.trust-banner__header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.7;
}

.trust-banner__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 769px) {
  .trust-banner__grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-card {
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  background: var(--background);
  border: 1px solid var(--border-50);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.trust-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  background: var(--primary-10);
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.trust-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ========================================
   SERVICES
   ======================================== */

.services__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 769px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 769px) {
  .service-card { height: 500px; }
}

.service-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card__hover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
  display: none;
}

@media (min-width: 769px) {
  .service-card__hover-image { display: block; }
  .service-card:hover .service-card__image { transform: scale(1.05); }
  .service-card:hover .service-card__hover-image { opacity: 1; }
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(0,0%,10%,0.1), hsla(0,0%,10%,0.6), hsla(0,0%,10%,0.95));
  transition: all 0.5s;
}

@media (min-width: 769px) {
  .service-card__overlay {
    background: linear-gradient(to bottom, transparent, hsla(0,0%,10%,0.3), hsla(0,0%,10%,0.8));
  }
  .service-card:hover .service-card__overlay {
    background: linear-gradient(to bottom, hsla(0,0%,10%,0.1), hsla(0,0%,10%,0.6), hsla(0,0%,10%,0.95));
  }
}

.service-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  color: white;
}

.service-card__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  transition: transform 0.5s;
}

@media (min-width: 769px) {
  .service-card__content h3 {
    font-size: 1.875rem;
    transform: translateY(1rem);
  }
  .service-card:hover .service-card__content h3 {
    transform: translateY(0);
  }
}

.service-card__details {
  transition: all 0.5s ease-out;
}

@media (min-width: 769px) {
  .service-card__details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
  .service-card:hover .service-card__details {
    opacity: 1;
    max-height: 300px;
  }
}

.service-card__details p {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ========================================
   PROCESS
   ======================================== */

.process__wrapper {
  position: relative;
}

.process__line {
  display: none;
}

@media (min-width: 1024px) {
  .process__line {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    transform: translateY(-50%);
  }
}

.process__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 769px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process__grid { grid-template-columns: repeat(5, 1fr); }
}

.process-step { position: relative; }

.process-step__card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 10;
  transition: border-color 0.2s;
}

.process-step__card:hover {
  border-color: var(--primary-30);
}

.process-step__number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.process-step__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  color: var(--primary);
}

.process-step__card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.process-step__card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   FAQ
   ======================================== */

.faq__header {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 769px) {
  .faq__header { grid-template-columns: 1fr 1fr; }
}

.faq__filters-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 769px) {
  .faq__filters-wrapper { align-items: flex-end; }
}

.faq__sheep {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.faq__filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .faq__filters {
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

.faq__filter {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid var(--border);
  color: var(--foreground);
  white-space: nowrap;
  width: 100%;
}

@media (min-width: 769px) {
  .faq__filter { width: auto; }
}

.faq__filter:hover {
  border-color: var(--primary-30);
}

.faq__filter.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.faq__list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--primary-30);
}

.faq-item__question {
  padding: 1.5rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
  content: '';
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding-bottom: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ========================================
   LEAD MAGNET
   ======================================== */

.lead__stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.lead-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.lead-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-card__overlay-blue {
  position: absolute;
  inset: 0;
  background: #1663bf;
  mix-blend-mode: multiply;
}

.lead-card__content {
  position: relative;
  padding: 2rem;
  max-width: 42rem;
}

@media (min-width: 769px) {
  .lead-card__content { padding: 3rem; }
}

.lead-card__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

@media (min-width: 769px) {
  .lead-card__content h2 { font-size: 1.875rem; }
}

.lead-card__content p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.lead-card--dark .lead-card__content h2 {
  color: var(--primary-foreground);
}

.lead-card--dark .lead-card__content p {
  color: hsla(0, 0%, 100%, 0.9);
}

.lead-card--dark { border: none; }

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: #232323;
  color: white;
  position: relative;
}

.footer__cta-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.footer__main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .footer__main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__brand {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer__logo {
  height: 5rem;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.footer__tagline {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 20rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #232323;
  transition: opacity 0.2s;
}
.footer__social-link:hover { opacity: 0.9; }

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer__info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsla(0, 0%, 100%, 0.7);
}

.footer__info-item svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer__info-item a {
  color: hsla(0, 0%, 100%, 0.7);
  transition: color 0.2s;
}
.footer__info-item a:hover { color: white; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 0.5rem 0;
  margin-top: 1.5rem;
}

.footer__nav a {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer__nav a:hover { color: white; }

.footer__bottom {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

@media (min-width: 769px) {
  .footer__bottom-inner { flex-direction: row; }
}

.footer__bottom p {
  font-size: 0.875rem;
  color: hsla(0, 0%, 100%, 0.5);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__legal a {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer__legal a:hover { color: white; }

.footer__separator { color: hsla(0, 0%, 100%, 0.3); }

/* Whitespace for footer address */
[data-i18n="footer.address"] { white-space: pre-line; }

/* ============================================
   LEGAL PAGE (CGV, Mentions légales, etc.)
   ============================================ */

.legal-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 100vh;
  background: var(--background);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content strong {
  color: var(--foreground);
  font-weight: 600;
}

.legal-version {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* Back button for mobile on legal pages */
.navbar__burger-back {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.navbar__burger-back:hover {
  background: hsla(227, 52%, 40%, 0.08);
}

@media (max-width: 768px) {
  .legal-page .navbar__actions { display: none; }
  .navbar__burger-back { display: flex; }

  .legal-content h1 { font-size: 1.5rem; }
  .legal-content h2 { font-size: 1.1rem; }
}