/* ============================================================
   ESIKA One Health — DESIGN SYSTEM
   Palette : Sky Blue (dominant) · White (fond) · Navy (logo) · Red (minimal)
   Identité : médicale, institutionnelle, lumineuse, sereine
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Navy — Bleu foncé du logo (titres, boutons, éléments importants) */
  --navy: #16169b;
  --navy-light: #2a2ab8;
  --navy-dark: #0e0e6e;
  --navy-900: #0a0a3f;
  --navy-50: #edf0fc;
  --navy-100: #d4dcf5;
  --navy-200: #a9bbeb;

  /* Sky Blue — Bleu ciel (couleur dominante) */
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --sky-lighter: #7dd3fc;
  --sky-pale: #bae6fd;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;

  /* Red — utilisé très ponctuellement */
  --coral: #e11d48;
  --coral-light: #f43f5e;
  --coral-50: #fff1f2;

  /* Fonds */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-mist: #f0f9ff;
  --bg-cloud: #e0f2fe;

  /* Texte */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Bordures */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-sky: #bae6fd;

  /* Ombres — très discrètes */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.1);
  --shadow-sky: 0 8px 28px rgba(14, 165, 233, 0.15);
  --shadow-navy: 0 8px 28px rgba(22, 22, 155, 0.18);

  /* Rayons — légèrement arrondis */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Transitions — douces et naturelles */
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1240px;

  /* Typographie */
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", sans-serif;

  /* Z-index */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--navy);
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ============================================================
   3. TYPOGRAPHIE
   ============================================================ */
.text-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.text-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.text-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.text-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.text-h4 {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--navy);
}
.text-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.text-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.text-small {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.text-navy {
  color: var(--navy);
}
.text-sky {
  color: var(--sky);
}
.text-white {
  color: #fff;
}
.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}

.font-heading {
  font-family: var(--font-heading);
}
.font-body {
  font-family: var(--font-body);
}

/* ============================================================
   4. LAYOUT — Container & Sections
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

.section {
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}
@media (min-width: 1024px) {
  .section {
    padding: 7rem 0;
  }
}

.section-sm {
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .section-sm {
    padding: 4rem 0;
  }
}

.bg-white {
  background: var(--bg);
}
.bg-soft {
  background: var(--bg-soft);
}
.bg-mist {
  background: var(--bg-mist);
}
.bg-cloud {
  background: var(--bg-cloud);
}
.bg-navy {
  background: var(--navy);
}
.bg-sky {
  background: var(--sky);
}

/* ============================================================
   5. EYEBROW — Label de section
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
}
.eyebrow-center {
  justify-content: center;
}
.eyebrow-light {
  color: rgba(255, 255, 255, 0.8);
}
.eyebrow-light::before {
  background: var(--sky-lighter);
}

/* ============================================================
   6. BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

/* Navy — Bleu foncé du logo */
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
}
.btn-navy:active {
  transform: translateY(0);
}

/* Sky — Bleu ciel */
.btn-sky {
  background: var(--sky);
  color: #fff;
}
.btn-sky:hover {
  background: var(--sky-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sky);
}

/* Outline */
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy-50);
  transform: translateY(-1px);
}

/* Outline light (on dark backgrounds) */
.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Ghost */
.btn-ghost {
  color: var(--navy);
  background: transparent;
  padding: 0.5rem 1rem;
}
.btn-ghost:hover {
  background: var(--bg-soft);
}

/* Sizes */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}
.btn-full {
  width: 100%;
}

/* ============================================================
   7. CARTES
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-sky);
}

.card-flat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.card-feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card-feature:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--sky-200);
}
.card-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card-feature:hover::before {
  transform: scaleX(1);
}

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* Icon badge */
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sky-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge-navy {
  background: var(--navy-50);
}
.icon-badge-sky {
  background: var(--sky-100);
}
.icon-badge-gradient {
  background: linear-gradient(135deg, var(--sky), var(--navy));
}
.icon-badge-gradient svg,
.icon-badge-gradient i {
  color: #fff;
}
.icon-badge-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
}
.icon-badge-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   8. BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.badge-sky {
  background: var(--sky-50);
  color: var(--sky-600);
}
.badge-navy {
  background: var(--navy-50);
  color: var(--navy);
}
.badge-coral {
  background: var(--coral-50);
  color: var(--coral);
}
.badge-neutral {
  background: var(--bg-soft);
  color: var(--text-secondary);
}
.badge-light {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.pill-sky {
  background: var(--sky-50);
  color: var(--sky-600);
}
.pill-sky:hover {
  background: var(--sky-100);
}
.pill-navy {
  background: var(--navy-50);
  color: var(--navy);
}
.pill-navy:hover {
  background: var(--navy-100);
}

/* ============================================================
   9. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.navbar-scrolled {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-logo-light {
  display: none;
}

.nav-link {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover {
  color: var(--navy);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--navy);
}
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .nav-link {
  color: var(--text);
  padding: 0.75rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu .nav-link:hover {
  color: var(--navy);
}
.mobile-menu .nav-link::after {
  display: none;
}

/* ============================================================
   10. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f9ff 0%, #ffffff 40%, #ffffff 100%);
}

/* Organic shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.hero-shape-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -80px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.12) 0%,
    transparent 70%
  );
  animation: floatShape 12s ease-in-out infinite;
}
.hero-shape-2 {
  width: 360px;
  height: 360px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(
    circle,
    rgba(22, 22, 155, 0.08) 0%,
    transparent 70%
  );
  animation: floatShape 14s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 45%;
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.1) 0%,
    transparent 70%
  );
  animation: floatShape 10s ease-in-out infinite;
}
@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 20px) scale(0.95);
  }
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  color: var(--sky-600);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 6px var(--sky);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 16px var(--sky);
    opacity: 1;
  }
}

/* Hero title */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hero-title-accent {
  background: linear-gradient(90deg, var(--sky), var(--navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* Hero visual — composition droite */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.hero-visual-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 165, 233, 0.12);
  animation: ringRotate 30s linear infinite;
}
.hero-visual-ring-2 {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1.5px solid rgba(22, 22, 155, 0.08);
  animation: ringRotate 40s linear infinite reverse;
}
@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}
.hero-visual-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.15) 0%,
    transparent 70%
  );
  filter: blur(30px);
  animation: glowBreathe 6s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}
.hero-visual-image {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-50), var(--navy-50));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  animation: visualFloat 8s ease-in-out infinite;
}
.hero-visual-image img {
  width: 70%;
  height: auto;
  object-fit: contain;
}
@keyframes visualFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Floating organic shapes around hero visual */
.hero-organic {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-100), var(--sky-50));
  box-shadow: var(--shadow-md);
}
.hero-organic-1 {
  width: 64px;
  height: 64px;
  top: 5%;
  right: 8%;
  animation: organicFloat 7s ease-in-out infinite;
}
.hero-organic-2 {
  width: 48px;
  height: 48px;
  bottom: 10%;
  left: 5%;
  background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
  animation: organicFloat 9s ease-in-out infinite reverse;
}
.hero-organic-3 {
  width: 36px;
  height: 36px;
  top: 50%;
  right: 0;
  background: linear-gradient(135deg, var(--sky-pale), var(--sky-100));
  animation: organicFloat 6s ease-in-out infinite;
}
@keyframes organicFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(8deg);
  }
}

/* Scroll cue */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.hero-scroll-cue:hover {
  opacity: 0.9;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--navy));
}

/* ============================================================
   11. STATS / COUNTERS
   ============================================================ */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-number-sky {
  color: var(--sky);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================================
   12. ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  background: var(--bg);
}
.accordion-item.active {
  border-color: var(--sky-200);
  box-shadow: var(--shadow-sm);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: background var(--transition);
  user-select: none;
}
.accordion-header:hover {
  background: var(--bg-soft);
}
.accordion-item.active .accordion-header {
  color: var(--sky);
}
.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--sky);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.accordion-content-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   13. FORMULAIRES
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.form-label .required {
  color: var(--coral);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   14. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   15. PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.page-hero-glow-2 {
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.footer-wordmark {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
}
.footer-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--sky-lighter));
  border-radius: 2px;
}
.footer-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-link:hover {
  color: #fff;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-col-title::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--sky);
  border-radius: 1px;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
}
.footer-social:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  color: #fff;
}
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

/* ============================================================
   17. ANIMATIONS SCROLL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
}
.scale-in {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}
.slide-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.slide-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-in,
  .scale-in,
  .slide-left,
  .slide-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3,
  .hero-visual-ring,
  .hero-visual-ring-2,
  .hero-visual-glow,
  .hero-visual-image,
  .hero-organic-1,
  .hero-organic-2,
  .hero-organic-3,
  .hero-badge-dot {
    animation: none;
  }
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* ============================================================
   18. UTILITIES
   ============================================================ */
.gradient-text {
  background: linear-gradient(90deg, var(--sky), var(--navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-light {
  background: linear-gradient(90deg, #fff, var(--sky-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Dot pattern */
.dot-pattern {
  background-image: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.08) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

/* Grid overlay */
.grid-overlay {
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--sky-100);
  color: var(--navy);
}

/* ============================================================
   19. CARROUSEL
   ============================================================ */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.carousel-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--sky);
}

/* ============================================================
   20. SOLUTION CARDS (Cartographie & Solutions numériques)
   ============================================================ */
.solution-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--bg);
  border: 1px solid var(--border);
}
.solution-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.solution-card-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sky-50), var(--navy-50));
}
.solution-card-visual-icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--sky), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.solution-card-body {
  padding: 2rem;
}
.solution-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--sky-50);
  color: var(--sky-600);
  margin-bottom: 1rem;
}
.solution-card-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.solution-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.solution-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.solution-card-list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
