/* ==========================================
   DESIGN SYSTEM – CSS PUR (100% VALIDE)
   ========================================== */

/* ==========================================
   1. DESIGN TOKENS (Variables CSS)
   ========================================== */

:root {
  /* ========== MARAISFIX BRAND COLORS ========== */
  --mf-blue-dark: #011166;
  --mf-blue: #083AA1;
  --mf-green: #56C958;
  --mf-lime: #E1EE36;

  /* Semantic aliases */
  --mf-primary: #011166;
  --mf-secondary: #083AA1;
  --mf-action: #56C958;
  --mf-accent: #E1EE36;

  /* RGB versions for rgba() */
  --mf-blue-dark-rgb: 1, 17, 102;
  --mf-blue-rgb: 8, 58, 161;
  --mf-green-rgb: 86, 201, 88;
  --mf-lime-rgb: 225, 238, 54;

  /* PRIMARY COLORS – Aligned with MaraisFix logo */
  --primary: var(--mf-primary);
  --primary-dark: var(--mf-secondary);
  --primary-light: #F3F7FF;

  /* SECONDARY + ACCENT – Aligned with MaraisFix logo */
  --secondary: var(--mf-action);
  --secondary-dark: #4ab84c;
  --accent: var(--mf-accent);
  --accent-dark: #c8d430;

  /* TEXT COLORS */
  --text: var(--mf-text, #111827);
  --text-secondary: var(--mf-muted, #6B7280);
  --text-muted: #86868b;

  /* BACKGROUNDS */
  --bg: var(--mf-bg, #FFFFFF);
  --bg-alt: var(--mf-bg-soft, #F3F7FF);
  --bg-muted: #E8E8ED;

  /* BORDERS */
  --border: var(--mf-border, #DDE6F6);

  /* States */
  --error: #dc3545;
  --success: var(--mf-action);
  --warning: #ffc107;
  --info: #17a2b8;

  /* SPACING SCALE (Apple's 8px unit) */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* BORDER RADIUS – APPLE SPEC */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 980px;

  /* SHADOWS – APPLE SPEC */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);

  /* TYPOGRAPHY – SYSTEM FONTS + LETTER-SPACING */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;

  /* Font sizes – Apple semantic scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 21px;
  --text-2xl: 28px;
  --text-3xl: 40px;
  --text-title: 56px;
  --text-title-mobile: 32px;

  /* Line heights */
  --line-tight: 1.2;
  --line-normal: 1.5;
  --line-relaxed: 1.75;

  /* Font weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Letter spacing – Apple spec */
  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: -0.005em;
  --letter-spacing-relaxed: 0.01em;

  /* LAYOUT */
  --max-width: 1200px;
  --padding-mobile: 16px;
  --padding-tablet: 24px;
  --padding-desktop: 32px;

  --grid-gap: 24px;
  --grid-gap-sm: 16px;

  /* TRANSITIONS – APPLE EASING CURVE */
  --transition: 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
  --transition-fast: 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  --transition-slow: 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);

  /* Apple-style */
  --header-height: 64px;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f5f5f5;
  --color-gray-100: #ececec;
}

/* ==========================================
   ANIMATIONS 3D - APPLE STYLE
   ========================================== */

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(27, 91, 184, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(27, 91, 184, 0.5);
  }
}

/* 3D Background Animations */
@keyframes bgShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes bgRotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(5deg) rotateY(5deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
}

@keyframes colorShift {
  0% {
    background: linear-gradient(135deg, #e6f0ff 0%, #f0f9ff 100%);
  }
  25% {
    background: linear-gradient(135deg, #e8f4ff 0%, #f5fbff 100%);
  }
  50% {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f0ff 100%);
  }
  75% {
    background: linear-gradient(135deg, #f5fbff 0%, #e8f4ff 100%);
  }
  100% {
    background: linear-gradient(135deg, #e6f0ff 0%, #f0f9ff 100%);
  }
}

@keyframes lightShift {
  0%, 100% {
    background: linear-gradient(135deg, rgba(230, 240, 255, 0.9) 0%, rgba(240, 249, 255, 0.9) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(248, 252, 255, 0.95) 0%, rgba(230, 240, 255, 0.95) 100%);
  }
}

@keyframes accentShift {
  0%, 100% {
    background: linear-gradient(135deg, rgba(27, 91, 184, 0.05) 0%, rgba(40, 167, 69, 0.05) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.06) 0%, rgba(27, 91, 184, 0.06) 100%);
  }
}

/* ==========================================
   2. RESET + BASE STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: var(--letter-spacing-tight);
}

main {
  padding-top: var(--header-height);
}

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-tight);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

/* Typographie française - Césures et retours à la ligne */
p, li, dd, figcaption {
  text-wrap: pretty;
  hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: var(--spacing-2xl);
  font-weight: 700;
  letter-spacing: -0.6px;
}

h2 {
  font-size: clamp(26px, 5vw, 36px);
  margin-bottom: var(--spacing-2xl);
  font-weight: 600;
  letter-spacing: -0.4px;
}

h3 {
  font-size: clamp(20px, 4vw, 28px);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
  letter-spacing: -0.2px;
}

h4, h5, h6 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

p {
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.6;
}

/* ==========================================
   UTILITY CLASSES - ANIMATIONS
   ========================================== */

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-scale {
  animation: fadeInScale 0.5s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Stagger animations */
.animate-in > * {
  animation: fadeInUp 0.6s ease-out;
}

.animate-in > :nth-child(1) { animation-delay: 0s; }
.animate-in > :nth-child(2) { animation-delay: 0.1s; }
.animate-in > :nth-child(3) { animation-delay: 0.2s; }
.animate-in > :nth-child(4) { animation-delay: 0.3s; }
.animate-in > :nth-child(5) { animation-delay: 0.4s; }

/* Image containers with 3D perspective */
.image-container {
  perspective: 1200px;
  transform-style: preserve-3d;
  display: inline-block;
  width: 100%;
}

.image-container img {
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: imgFloat 4s ease-in-out infinite;
}

@keyframes imgFloat {
  0%, 100% {
    transform: translateY(0px) translateZ(0);
  }
  50% {
    transform: translateY(-8px) translateZ(10px);
  }
}

.image-container:hover img {
  transform: translateZ(30px) scale(1.03) rotateX(5deg);
  box-shadow: 0 20px 50px rgba(27, 91, 184, 0.25);
}

/* ==========================================
   3. LAYOUT COMPOSANTS
   ========================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-mobile);
}

/* Tablet & up */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--padding-tablet);
  }
}

/* Desktop & up */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--padding-desktop);
  }
}

/* ==========================================
   GALERIE UNSPLASH
   ========================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

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

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

.gallery-grid .image-container,
.gallery-grid .service-card {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gallery-grid .image-container:hover,
.gallery-grid .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card {
  display: block;
  text-decoration: none;
}

/* Variantes de couleurs pour les services */
.service-card--1 {
  background: linear-gradient(135deg, var(--mf-blue) 0%, var(--mf-blue-dark) 100%);
}

.service-card--2 {
  background: linear-gradient(135deg, var(--mf-green) 0%, #4ab84c 100%);
}

.service-card--3 {
  background: linear-gradient(135deg, var(--mf-secondary) 0%, var(--mf-primary) 100%);
}

.service-card--4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: var(--spacing-3xl) 0;
  margin-top: 0;
}

/* Padding adaptatif par taille d'écran */
@media (min-width: 768px) {
  .section {
    padding: calc(var(--spacing-3xl) * 1.2) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: calc(var(--spacing-3xl) * 1.5) 0;
  }
}

/* Large sections for hero/major sections */
.section--large {
  padding: calc(var(--spacing-3xl) * 1.5) 0;
}

@media (min-width: 768px) {
  .section--large {
    padding: var(--spacing-4xl) 0;
  }
}

/* Hero section */
.section--hero {
  padding: var(--spacing-3xl) 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #e6f0ff 0%, #f0f9ff 100%);
  animation: colorShift 8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

/* Calque Three.js pour le hero */
.hero3d {
  position: absolute;
  inset: 0;
  pointer-events: none;
  contain: layout paint;
}
.hero3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.section--hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 91, 184, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: bgRotate 15s ease-in-out infinite;
  transform-origin: center;
}

.section--hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: bgRotate 18s ease-in-out infinite reverse;
  transform-origin: center;
}

.section--hero > * {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 768px) {
  .section--hero {
    min-height: 600px;
    padding: calc(var(--spacing-3xl) * 1.5) 0;
  }
}

@media (min-width: 1024px) {
  .section--hero {
    min-height: 700px;
  }
}

/* Accessibilité: réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .section--hero {
    animation: none !important;
  }
  .hero3d {
    display: none !important;
  }
}

/* Alternate sections avec background subtil */
.section--alt {
  background: #f9f9f9;
  animation: lightShift 8s ease-in-out infinite;
}

.section--accent {
  background: linear-gradient(135deg, rgba(27, 91, 184, 0.05) 0%, rgba(40, 167, 69, 0.05) 100%);
  animation: accentShift 8s ease-in-out infinite;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

/* Tablet: 2 colonnes */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 colonnes */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4-column grid for large screens */
.grid--4col {
  grid-template-columns: 1fr;
}

@media (min-width: 1200px) {
  .grid--4col {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ==========================================
   4. NAVIGATION - APPLE STYLE MINIMALISTE
   ========================================== */

.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
}

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

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: black;
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}

.nav-logo {
  max-height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.8;
  text-decoration: none;
}

.nav-brand:hover .nav-logo {
  opacity: 0.85;
}

/* Menu principal - HIDDEN sur mobile */
.nav-menu {
  display: none;
}

.nav-menu-toggle {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  all: unset;
  cursor: pointer;
}

.nav-menu-toggle summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  cursor: pointer;
  list-style: none;
  font-size: 28px;
  color: black;
  transition: all var(--transition);
  margin: 0;
  padding: 0;
}

.nav-menu-toggle summary:hover {
  opacity: 0.6;
}

.nav-menu-toggle summary::-webkit-details-marker {
  display: none;
}

/* Menu burger ouvert */
.nav-menu-toggle[open] .nav-menu {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-md) 0;
  animation: slideDown var(--transition);
}

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

.nav-menu .list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.nav-menu li {
  border-bottom: 1px solid #f5f5f5;
}

.nav-menu li:last-child {
  border-bottom: none;
}

/* DESKTOP: Afficher le menu horizontal */
@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin-left: auto;
    gap: var(--spacing-lg);
  }

  .nav-menu .list-reset {
    flex-direction: row;
    gap: 0;
  }

  .nav-menu li {
    border-bottom: none !important;
  }

  .nav-menu-toggle summary {
    display: none !important;
  }

  .nav-menu-toggle {
    all: unset;
  }
}

/* Liens de navigation */
.nav__link {
  display: block;
  padding: 20px var(--spacing-lg);
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  transition: all var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--spacing-lg);
  right: var(--spacing-lg);
  height: 0;
  background: var(--primary);
  transition: height var(--transition);
}

.nav__link:hover {
  color: var(--primary);
  text-decoration: none;
  font-weight: 400;
}

.nav__link:hover::after {
  height: 2px;
}

@media (min-width: 768px) {
  .nav__link {
    padding: 0 var(--spacing-lg);
    min-height: auto;
  }

  .nav__link::after {
    left: 0;
    right: 0;
    bottom: -8px;
  }
}

.nav__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Menu button (burger icon) */
.menu-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: all var(--transition);
  font-size: 24px;
}

.menu-btn:hover {
  opacity: 0.6;
}

.menu-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Current rendered navbar/footer classes used by templates/includes/*.html.
   Legacy .nav-brand/.nav-menu selectors above are retained but unused. */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), backdrop-filter var(--transition-fast);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#header .container {
  width: 100%;
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.05s linear;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  min-height: 64px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  max-width: 210px;
  overflow: visible;
}

.navbar-logo {
  display: block;
  width: auto;
  height: 54px;
  max-height: 54px;
  max-width: 190px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(var(--mf-blue-dark-rgb), 0.06);
}

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

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-call:hover {
  background: var(--secondary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hide-mobile {
  display: inline;
}

.show-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .navbar-logo {
    height: 56px;
    max-height: 56px;
    max-width: 205px;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .btn-call {
    padding: 10px 14px;
  }
}

@media (max-width: 767px) {
  .nav {
    gap: 12px;
  }

  #header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar-logo {
    height: 42px;
    max-height: 42px;
    max-width: 155px;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn-call {
    position: relative;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .btn-call svg {
    margin: 0;
  }

  .btn-call .show-mobile {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .hide-mobile {
    display: none;
  }

  .show-mobile {
    display: inline;
  }
}

/* ==========================================
/* ==========================================
   5. BUTTONS - APPLE STYLE 3D
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.2px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(27, 91, 184, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 12px 30px rgba(27, 91, 184, 0.5);
  transform: translateY(-3px) translateZ(10px);
}

.btn--primary:active {
  transform: translateY(-1px) translateZ(5px);
  box-shadow: 0 4px 15px rgba(27, 91, 184, 0.3);
}

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.08);
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--ghost:hover {
  background: rgba(27, 91, 184, 0.1);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(27, 91, 184, 0.15);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn--lg {
  min-height: 48px;
  padding: 12px 32px;
  font-size: 16px;
}

/* ==========================================
   6. CARDS - APPLE STYLE
   ========================================== */

.card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: 10;
  pointer-events: none;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  border-color: rgba(27, 91, 184, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-12px) translateZ(20px);
}

.card--hover:hover {
  border-color: rgba(27, 91, 184, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-12px) translateZ(20px);
}

/* Card image */
.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  animation: imgGradientShift 6s ease-in-out infinite;
}

@keyframes imgGradientShift {
  0%, 100% {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  }
  50% {
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
  }
}

.card:hover .card__image {
  transform: scale(1.08);
}

@media (min-width: 768px) {
  .card__image {
    height: 240px;
  }
}

/* Card body */
.card__body {
  padding: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  color: black;
  letter-spacing: -0.3px;
  line-height: 1.4;
}

.card__meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-md) 0;
}

.card__content {
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.card__content p {
  margin: 0;
}

.card__footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Service card special styling */
.card--service {
  position: relative;
  overflow: hidden;
}

.card--service::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 10;
  pointer-events: none;
}

.card--service:hover::before {
  left: 100%;
}

/* ==========================================
   7. FORMS - APPLE STYLE
   ========================================== */

.form-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-row {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: black;
  font-size: 15px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition);
  background: white;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-secondary);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 91, 184, 0.1);
  background: white;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.textarea {
  resize: vertical;
  min-height: 120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231B5BB8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-help {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: 13px;
  color: var(--text-secondary);
}

.form-error {
  color: var(--error);
  font-size: 13px;
  margin-top: var(--spacing-xs);
}

/* ==========================================
   8. HERO
   ========================================== */

.br-desktop {
  display: none;
}

@media (min-width: 992px) {
  .br-desktop {
    display: inline;
  }
}

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

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

.section-title {
  display: inline-block;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

.section-cta {
  margin-top: 40px;
  text-align: center;
}

.section-title--accent {
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.section-title--accent::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-full);
  margin-top: var(--spacing-xs);
}

.gradient-text {
  color: var(--primary);
  background: linear-gradient(135deg, var(--mf-blue-dark) 0%, var(--mf-blue) 65%, var(--mf-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--color-white);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  color: var(--color-white);
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--mf-blue-dark-rgb), 0.2);
}

.btn--phone {
  background: var(--mf-green) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(var(--mf-green-rgb), 0.3);
}

.btn--phone:hover {
  background: var(--secondary-dark) !important;
  box-shadow: 0 6px 20px rgba(var(--mf-green-rgb), 0.4);
}

.btn--quote {
  background: var(--mf-blue-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(var(--mf-blue-dark-rgb), 0.3);
}

.btn--quote:hover {
  background: var(--mf-blue) !important;
  box-shadow: 0 6px 20px rgba(var(--mf-blue-dark-rgb), 0.36);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: left;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(var(--mf-blue-rgb), 0.1), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(var(--mf-green-rgb), 0.12), transparent 32%),
    linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-left {
  max-width: 680px;
}

.hero-right {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--mf-blue-dark-rgb), 0.08);
  border-radius: var(--radius-full);
  background: rgba(var(--mf-blue-dark-rgb), 0.08);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--mf-blue-dark);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 680px;
  hyphens: none;
  word-break: normal;
  text-wrap: pretty;
}

.hero-line {
  display: block;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--mf-blue-dark-rgb), 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(1, 17, 102, 0.08);
  font-size: 14px;
  color: var(--text);
}

.trust-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}

.visual-glow {
  position: absolute;
  inset: 18px -12px -18px 18px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--mf-blue-dark-rgb), 0.16), rgba(var(--mf-green-rgb), 0.1) 40%, transparent 72%);
  filter: blur(6px);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.04);
  }
}

.hero-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eaf1ff 100%);
  box-shadow: 0 24px 70px rgba(var(--mf-blue-dark-rgb), 0.18);
}

.hero-image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(221, 230, 246, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(1, 17, 102, 0.16);
  color: var(--text);
}

.floating-card-1 {
  left: -44px;
  top: 34%;
}

.floating-card-2 {
  right: -36px;
  bottom: 12%;
}

.floating-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mf-green);
  color: #fff;
}

.floating-card-title {
  font-weight: 700;
  color: var(--text);
}

.floating-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
  color: var(--mf-lime);
}

.stars svg {
  fill: currentColor;
  flex-shrink: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  display: block;
  min-height: 260px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(1, 17, 102, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(1, 17, 102, 0.16);
  border-color: rgba(8, 58, 161, 0.35);
}

.service-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 58, 161, 0.08), rgba(86, 201, 88, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover .service-gradient {
  opacity: 1;
}

.service-content {
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--bg-alt);
  color: var(--mf-blue-dark);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);
  background: rgba(var(--mf-blue-dark-rgb), 0.08);
}

.service-title {
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.2;
  color: var(--mf-blue-dark);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--mf-blue);
  font-weight: 700;
}

.service-link svg {
  transition: transform 0.25s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 96px 0 48px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-left,
  .hero-subtitle {
    max-width: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .trust-badges {
    justify-content: center;
  }

  .hero-right {
    width: 100%;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
  }

  .floating-card {
    position: static;
    margin: 14px auto 0;
    width: fit-content;
    max-width: 90%;
  }
}

@media (max-width: 767px) {
  .section-header {
    margin-bottom: 40px;
  }

  .section-subtitle {
    font-size: 17px;
  }

  .hero {
    padding: 88px 0 40px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn-primary {
    justify-content: center;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }
}

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

.home-process-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
  padding: 80px 0;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-process-step {
  text-align: center;
  padding: 24px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(var(--mf-blue-dark-rgb), 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(var(--mf-blue-dark-rgb), 0.14);
}

.home-process-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mf-blue-dark) 0%, var(--mf-blue) 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 18px rgba(var(--mf-blue-dark-rgb), 0.24);
}

.home-process-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--mf-blue-dark);
  margin-bottom: 8px;
}

.home-process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.testimonials-section {
  background: linear-gradient(180deg, #F3F7FF 0%, #FFFFFF 100%);
  color: var(--text);
}

.testimonials-header {
  text-align: center;
  justify-content: center;
  margin-bottom: 42px;
}

.testimonials-header__content .section-title {
  color: var(--mf-blue-dark);
  margin-bottom: 14px;
}

.testimonials-header__content .section-subtitle {
  color: var(--text-secondary);
}

.testimonials-rating-badge {
  display: none;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #FFFFFF;
  border: 1px solid #DDE6F6;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(1, 17, 102, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(1, 17, 102, 0.16);
}

.testimonial-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(var(--mf-blue-rgb), 0.08);
  color: var(--mf-blue-dark);
}

.testimonial-card:nth-child(2) .testimonial-card__icon {
  background: rgba(var(--mf-green-rgb), 0.12);
  color: var(--mf-green);
}

.testimonial-card:nth-child(3) .testimonial-card__icon {
  background: rgba(var(--mf-lime-rgb), 0.18);
  color: var(--mf-blue-dark);
}

.testimonial-card h3,
.author-name {
  color: var(--mf-blue-dark);
  margin-bottom: 0;
}

.testimonial-text {
  color: var(--text-secondary);
  margin: 0;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

.brand-pill:hover {
  border-color: var(--mf-blue);
  color: var(--mf-blue-dark);
  background: rgba(var(--mf-blue-dark-rgb), 0.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(var(--mf-blue-dark-rgb), 0.1);
}

.network-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(var(--mf-blue-rgb), 0.06) 0%, rgba(var(--mf-green-rgb), 0.05) 100%);
}

.network-section__intro {
  text-align: center;
  margin-bottom: 48px;
}

.network-section__intro .section-title {
  color: var(--mf-blue-dark);
  margin-bottom: 16px;
}

.network-section__intro p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.network-link {
  text-decoration: none;
}

.network-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(var(--mf-blue-dark-rgb), 0.08);
  box-shadow: 0 14px 36px rgba(var(--mf-blue-dark-rgb), 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.network-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--mf-blue-rgb), 0.2);
  box-shadow: 0 20px 44px rgba(var(--mf-blue-dark-rgb), 0.14);
}

.network-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.network-card__icon--repair {
  background: var(--mf-blue);
}

.network-card__icon--sell {
  background: var(--mf-green);
}

.network-card__icon--buy {
  background: linear-gradient(135deg, var(--mf-blue-dark) 0%, var(--mf-green) 100%);
}

.network-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--mf-blue-dark);
  margin-bottom: 10px;
}

.network-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.network-card__arrow {
  position: absolute;
  right: 28px;
  bottom: 28px;
  color: rgba(var(--mf-blue-dark-rgb), 0.38);
  transition: transform 0.25s ease, color 0.25s ease;
}

.network-card:hover .network-card__arrow {
  transform: translateX(4px);
  color: var(--mf-blue);
}

.cta-box {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .home-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .testimonials-grid,
  .network-grid {
    grid-template-columns: 1fr;
  }
}

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

  .home-process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }

  .home-process-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    gap: 16px;
  }

  .home-process-number {
    flex-shrink: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .home-process-step h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .home-process-step p {
    font-size: 13px;
  }
}

/* ==========================================
   9. FOOTER
   ========================================== */

.footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  padding: var(--spacing-2xl) 0;
  color: var(--text);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

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

@media (min-width: 900px) {
  .footer__content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__section {
  margin-bottom: var(--spacing-xl);
}

.footer__section h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer__section ul {
  list-style: none;
  padding: 0;
}

.footer__section li {
  margin-bottom: var(--spacing-sm);
}

.footer__section a {
  color: var(--primary);
  text-decoration: none;
}

.footer__section a:hover {
  text-decoration: underline;
}

.nap-block {
  margin-bottom: var(--spacing-lg);
}

.nap-block p {
  margin: 0 0 var(--spacing-xs) 0;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--spacing-2xl);
}

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(140px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand {
  grid-column: span 2;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-width: 240px;
  margin-bottom: 18px;
}

.footer-logo {
  display: block;
  width: auto;
  height: 72px;
  max-height: 72px;
  max-width: 240px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.footer-desc {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 34ch;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--mf-blue-dark);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.footer-hours {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid var(--border);
}

.footer-bottom-line {
  width: 100%;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

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

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--color-white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(var(--mf-blue-dark-rgb), 0.3);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-logo {
    height: 58px;
    max-height: 58px;
    max-width: 200px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================
   10. ACCESSIBILITY
   ========================================== */

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.skip-link:focus-visible {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================
   11. UTILITIES
   ========================================== */

.text-muted {
  color: var(--text-secondary);
}

.text-error {
  color: var(--error);
}

.text-success {
  color: var(--success);
}

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

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.p-md {
  padding: var(--spacing-md);
}

.p-lg {
  padding: var(--spacing-lg);
}

.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==========================================
   12. LIST & BREADCRUMBS
   ========================================== */

.breadcrumbs {
  display: flex;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-lg);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ==========================================
   13. ALERT MESSAGES
   ========================================== */

.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--info);
  background: var(--bg-alt);
  margin-bottom: var(--spacing-lg);
}

.alert--success {
  border-left-color: var(--success);
}

.alert--error {
  border-left-color: var(--error);
}

.alert--warning {
  border-left-color: var(--warning);
}

/* ==========================================
   14. RESPONSIVE TABLE
   ========================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
}

th {
  background: var(--bg-alt);
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

/* ==========================================
   END OF DESIGN SYSTEM CSS
   ========================================== */


/* ==========================================
   NATIONAL SITES CARDS SECTION
   ========================================== */

.national-sites {
  background: var(--bg-alt);
  padding: var(--spacing-2xl) 0;
}

.national-sites h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  font-size: var(--text-2xl);
  color: var(--primary);
}

.national-sites .card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.national-sites .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.national-sites .card__title {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.national-sites .card p {
  flex-grow: 1;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* ==========================================
   SOCIAL MEDIA & CTA BUTTONS (TinyMCE / Réseaux)
   ========================================== */

/* Footer Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background-color: var(--primary);
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.social-link--google {
  background-color: #EA4335;
}

.social-link--google:hover {
  background-color: #c41d1f;
}

.social-link--whatsapp {
  background-color: #25D366;
}

.social-link--whatsapp:hover {
  background-color: #1ea251;
}

.social-link--facebook {
  background-color: #1877F2;
}

.social-link--facebook:hover {
  background-color: #0a5fc5;
}

.social-link--instagram {
  background-color: #E4405F;
}

.social-link--instagram:hover {
  background-color: #bd2e5f;
}

/* Contact CTA Section */
.contact-cta {
  background-color: var(--bg-alt);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  margin: var(--spacing-2xl) 0;
  text-align: center;
}

.contact-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.btn--large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
}

.btn--maps {
  background-color: #EA4335;
  color: white;
}

.btn--maps:hover {
  background-color: #c41d1f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.btn--whatsapp {
  background-color: #25D366;
  color: white;
}

.btn--whatsapp:hover {
  background-color: #1ea251;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn--group {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.btn--secondary {
  flex: 0 0 auto;
  min-width: 160px;
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.btn--secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn--fb,
.btn--ig {
  display: block;
}

/* TinyMCE Content Styling */
.card__content h2,
.card__content h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.card__content h2 {
  font-size: 1.5rem;
  color: var(--primary);
}

.card__content h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.card__content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.card__content ul,
.card__content ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.card__content li {
  margin-bottom: var(--spacing-sm);
}

.card__content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.card__content a:hover {
  color: var(--primary-dark);
}

.card__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
}

.card__content code {
  background-color: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.card__content pre {
  background-color: var(--bg-muted);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
}

.card__content pre code {
  background-color: transparent;
  padding: 0;
}

.card__content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.card__content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
}

.card__content table th,
.card__content table td {
  border: 1px solid var(--border);
  padding: var(--spacing-md);
  text-align: left;
}

.card__content table th {
  background-color: var(--bg-muted);
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .social-links {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .contact-cta__buttons {
    gap: var(--spacing-md);
  }

  .btn--large {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    font-size: 1rem;
  }

  .btn--group {
    flex-direction: column;
  }

  .btn--secondary {
    width: 100%;
    flex: initial;
  }

  .card__content h2 {
    font-size: 1.3rem;
  }

  .card__content h3 {
    font-size: 1.1rem;
  }

  .card__content table {
    font-size: 0.9rem;
  }

  .card__content table th,
  .card__content table td {
    padding: var(--spacing-sm);
  }
}

/* ==========================================
   COOKIE BANNER SIMPLIFIE
   ========================================== */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  width: min(92vw, 400px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  animation: cookieSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideIn {
  from {
    transform: translateY(100%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__title i {
  color: var(--primary);
}

.cookie-banner__text p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--text-secondary);
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cookie-banner__text a:hover {
  text-decoration: underline;
}

/* Boutons principaux */
.cookie-banner__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-banner__buttons .btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cookie-banner__buttons .btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.cookie-banner__buttons .btn--ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-secondary);
}

.cookie-banner__buttons .btn--outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.cookie-banner__buttons .btn--outline:hover {
  background: rgba(var(--mf-blue-rgb), 0.08);
}

.cookie-banner__buttons .btn--primary {
  background: var(--primary);
  border: none;
  color: white;
  font-weight: 600;
}

.cookie-banner__buttons .btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--mf-blue-rgb), 0.25);
}

/* Options panel */
.cookie-banner__options {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.cookie-banner__options.is-visible {
  display: flex;
}

/* Catégories de cookies */
.cookie-category {
  display: block;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.cookie-category:hover {
  border-color: var(--primary-light);
}

.cookie-category--essential {
  background: linear-gradient(135deg, rgba(var(--mf-green-rgb), 0.08), rgba(var(--mf-green-rgb), 0.04));
  cursor: default;
}

.cookie-category--essential:hover {
  border-color: transparent;
}

.cookie-category__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cookie-category__header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.cookie-category__header i {
  font-size: 14px;
  color: var(--primary);
}

.cookie-category--essential .cookie-category__header i {
  color: var(--mf-green);
}

.cookie-category__header strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cookie-category__badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: var(--mf-green);
  color: white;
  border-radius: 20px;
  margin-left: auto;
}

.cookie-category p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  padding-left: 28px;
}

.cookie-category--essential p {
  padding-left: 24px;
}

/* Bouton full width */
.btn--full {
  width: 100%;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
  }
  
  .cookie-banner__buttons {
    flex-direction: column;
  }
  
  .cookie-banner__buttons .btn {
    width: 100%;
  }
}

/* National Sites Cards */
.national-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.national-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-2xl);
  background: white;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.national-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--mf-blue-rgb), 0.03) 0%, rgba(var(--mf-green-rgb), 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.national-card:hover {
  border-color: rgba(27, 91, 184, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
}

.national-card:hover::before {
  opacity: 1;
}

.national-card__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.national-card:hover .national-card__icon {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.national-card__title {
  font-size: 22px;
  font-weight: 600;
  margin: var(--spacing-md) 0;
  color: var(--text);
  transition: color 0.3s ease;
}

.national-card:hover .national-card__title {
  color: var(--primary);
}

.national-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: var(--spacing-sm) 0 0 0;
  flex-grow: 1;
}

.national-card__cta {
  margin-top: var(--spacing-lg);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.national-card:hover .national-card__cta {
  gap: 12px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .national-sites-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .national-card {
    padding: var(--spacing-xl);
  }
  
  .national-card__icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-md);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 91, 184, 0.1);
  background: rgba(27, 91, 184, 0.01);
}

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

.form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Contact Info Cards */
.contact-info-card {
  padding: var(--spacing-xl);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-info-card:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.contact-info-card h3 {
  font-size: 18px;
  margin-bottom: var(--spacing-md);
}

/* Large Button */
.btn--large {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: 16px;
  font-weight: 600;
  width: 100%;
}

@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .section--hero {
    padding: var(--spacing-2xl) 0;
  }
  
  h1 {
    font-size: clamp(24px, 6vw, 32px) !important;
  }
  
  .btn--large {
    padding: var(--spacing-md) var(--spacing-lg) !important;
    font-size: 14px !important;
  }
}

@media (max-width: 375px) {
  .national-card {
    padding: var(--spacing-lg);
  }
  
  .national-card__icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

.cookie-banner__link {
  display: block;
  margin-top: var(--spacing-lg);
  color: var(--secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition);
}

.cookie-banner__link:hover {
  color: var(--mf-green);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: var(--spacing-md);
  }
  
  .cookie-banner form {
    flex-direction: column;
  }
  
  .cookie-banner .btn {
    width: 100%;
  }
}

.network-card:hover .network-link {
  transform: translateX(4px);
}

/* ==========================================
   COOKIE BANNER MODERNISÉ (mfx-)
   Design discret, non intrusif, CNIL compliant
   ========================================== */

.mfx-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  width: min(420px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  animation: mfxCookieSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mfx-cookie-container {
  padding: 16px 20px;
}

.mfx-cookie-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.mfx-cookie-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mf-bg-soft, #F3F7FF);
  border-radius: 10px;
  color: var(--mf-primary, #011166);
}

.mfx-cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mf-text, #111827);
}

.mfx-cookie-text a {
  color: var(--mf-primary, #011166);
  font-weight: 500;
  text-decoration: none;
}

.mfx-cookie-text a:hover {
  text-decoration: underline;
}

/* Actions principales */
.mfx-cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mfx-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 90px;
}

.mfx-cookie-btn--primary {
  background: var(--mf-primary, #011166);
  color: white;
}

.mfx-cookie-btn--primary:hover {
  background: var(--mf-secondary, #083AA1);
  transform: translateY(-1px);
}

.mfx-cookie-btn--secondary {
  background: transparent;
  border: 1.5px solid var(--mf-border, #DDE6F6);
  color: var(--mf-text, #111827);
}

.mfx-cookie-btn--secondary:hover {
  background: var(--mf-bg-soft, #F3F7FF);
  border-color: var(--mf-primary, #011166);
}

.mfx-cookie-btn--text {
  background: transparent;
  color: var(--mf-muted, #6B7280);
  padding: 10px 12px;
  flex: 0 0 auto;
  min-width: auto;
}

.mfx-cookie-btn--text:hover {
  color: var(--mf-primary, #011166);
  background: var(--mf-bg-soft, #F3F7FF);
}

.mfx-cookie-btn--text svg {
  width: 16px;
  height: 16px;
}

.mfx-cookie-btn--full {
  width: 100%;
  margin-top: 12px;
}

/* Options panel */
.mfx-cookie-options {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mf-border, #DDE6F6);
}

.mfx-cookie-options.is-visible {
  display: flex;
}

/* Catégories */
.mfx-cookie-category {
  display: block;
  padding: 12px;
  background: var(--mf-bg-soft, #F3F7FF);
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.mfx-cookie-category:hover {
  border-color: var(--mf-primary, #011166);
}

.mfx-cookie-category--locked {
  background: linear-gradient(135deg, rgba(86, 201, 88, 0.1), rgba(86, 201, 88, 0.05));
  cursor: default;
}

.mfx-cookie-category--locked:hover {
  border-color: transparent;
}

.mfx-cookie-category-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mfx-cookie-category-info input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--mf-primary, #011166);
  cursor: pointer;
}

.mfx-cookie-category-info svg {
  color: var(--mf-primary, #011166);
  flex-shrink: 0;
}

.mfx-cookie-category--locked .mfx-cookie-category-info svg {
  color: var(--mf-action, #56C958);
}

.mfx-cookie-category-info span {
  font-size: 13px;
  font-weight: 600;
  color: var(--mf-text, #111827);
}

.mfx-cookie-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  background: var(--mf-action, #56C958);
  color: white;
  border-radius: 20px;
  margin-left: auto;
}

.mfx-cookie-category p {
  font-size: 12px;
  color: var(--mf-muted, #6B7280);
  margin: 0;
  line-height: 1.4;
  padding-left: 26px;
}

.mfx-cookie-category--locked p {
  padding-left: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .mfx-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  
  .mfx-cookie-container {
    padding: 14px 16px;
  }
  
  .mfx-cookie-actions {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .mfx-cookie-btn {
    padding: 10px 12px;
    font-size: 12px;
    min-width: auto;
  }
  
  .mfx-cookie-btn--text {
    order: -1;
    flex: 0 0 auto;
  }
}
