/* ============================================================
   Domotech Solutions — Design System CSS
   Entreprise : Domotech Solutions (conseil & installation domotique)
   Thème : Dark, technique, chaleureux, indépendant
   Accent : Téal (#14b8a6 / #0d9488)
   Secondaire : Cyan (#06b6d4)
   Typo : Inter (Google Fonts)
   ============================================================ */

/* ----------------------------------------------------------
   1. RESET & VARIABLES CSS
   ---------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0a0f;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: #14b8a6;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0d9488;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
  margin-bottom: 1rem;
}

/* Variables */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --bg-elevated: #1c1c28;
  --bg-input: #1a1a26;

  /* Accent — Téal */
  --accent-50:  #f0fdfa;
  --accent-100: #ccfbf1;
  --accent-200: #99f6e4;
  --accent-300: #5eead4;
  --accent-400: #2dd4bf;
  --accent-500: #14b8a6;
  --accent-600: #0d9488;
  --accent-700: #0f766e;
  --accent-800: #115e59;
  --accent-900: #134e4a;

  --accent:          var(--accent-500);
  --accent-hover:    var(--accent-600);
  --accent-light:    var(--accent-400);
  --accent-glow:     rgba(20, 184, 166, 0.25);
  --accent-glow-soft: rgba(20, 184, 166, 0.12);

  /* Secondaire — Cyan */
  --emerald-50:  #ecfeff;
  --emerald-100: #cffafe;
  --emerald-200: #a5f3fc;
  --emerald-300: #67e8f9;
  --emerald-400: #22d3ee;
  --emerald-500: #06b6d4;
  --emerald-600: #0891b2;
  --emerald-700: #0e7490;
  --emerald-800: #155e75;
  --emerald-900: #164e63;

  --secondary:       var(--emerald-500);
  --secondary-hover: var(--emerald-600);

  /* Textes */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-inverse:   #0a0a0f;

  /* Bordures */
  --border-color:     rgba(255, 255, 255, 0.08);
  --border-accent:    rgba(20, 184, 166, 0.3);
  --border-emerald:   rgba(16, 185, 129, 0.3);
  --border-hover:     rgba(255, 255, 255, 0.15);

  /* Ombres */
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 20px rgba(20, 184, 166, 0.15);

  /* Glassmorphisme */
  --glass-bg:        rgba(19, 19, 26, 0.88);
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-blur:      20px;

  /* Espacements */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Rayons */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:    150ms ease;
  --transition-base:    300ms ease;
  --transition-slow:    500ms ease;
  --transition-bounce:  300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typo sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  --content-padding: var(--space-xl);
  --navbar-height: 72px;

  /* Z-index */
  --z-dropdown: 100;
  --z-navbar:   200;
  --z-modal:    300;
  --z-tooltip:  400;
}

/* ----------------------------------------------------------
   2. NAVBAR — Collante avec glassmorphisme
   ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: var(--navbar-height);
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar--scrolled {
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--text-inverse);
  flex-shrink: 0;
}

/* Logo stacked : "Domotech" + "Solutions" */
.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar__logo-line1 {
  font-size: var(--text-base);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.navbar__logo-line2 {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-base);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar__link:hover,
.navbar__link--active {
  color: #ffffff;
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__cta {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  text-decoration: none;
}

.navbar__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
  color: var(--text-inverse);
}

/* Hamburger (mobile) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: calc(var(--z-navbar) + 1);
}

/* Close button in mobile overlay */
.navbar__close {
  display: none;
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm);
  z-index: calc(var(--z-navbar) + 2);
  transition: color var(--transition-fast);
}
.navbar__close:hover {
  color: #ffffff;
}

.navbar__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.navbar__toggle--open .navbar__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle--open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle--open .navbar__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----------------------------------------------------------
   3. HERO SECTION — Gradient + animations
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + var(--space-3xl)) var(--content-padding) var(--space-3xl);
  overflow: hidden;
  text-align: center;
}

/* Fond gradient animé */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(20, 184, 166, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(20, 184, 166, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Vague décorative en bas du hero */
.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  line-height: 0;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 1rem;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--accent-light);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease forwards;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

/* Particules / orbes décoratifs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(20, 184, 166, 0.06);
  top: -100px;
  right: -100px;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.04);
  bottom: -80px;
  left: -80px;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
  justify-content: center;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__separator {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.breadcrumb__current {
  color: var(--accent);
  font-weight: 500;
}

/* Page Hero — version réduite pour pages internes */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + var(--space-3xl)) var(--content-padding) var(--space-2xl);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(20, 184, 166, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.page-hero__orb--1 {
  width: 300px;
  height: 300px;
  background: rgba(20, 184, 166, 0.06);
  top: -80px;
  right: -80px;
  animation: orbFloat 20s ease-in-out infinite;
}

.page-hero__orb--2 {
  width: 200px;
  height: 200px;
  background: rgba(16, 185, 129, 0.04);
  bottom: -60px;
  left: -60px;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Steps / Approche */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition-base);
  text-align: center;
}

.step:hover {
  border-color: rgba(20, 184, 166, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(20, 184, 166, 0.08);
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-inverse);
  margin: 0 auto var(--space-md);
}

.step__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin: 0 auto var(--space-md);
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
}

.step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Arrow connector between steps */
.step__connector {
  display: none;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ----------------------------------------------------------
   4. CARDS — Bordure subtile + hover glow
   ---------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.04) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.card:hover {
  border-color: rgba(20, 184, 166, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(20, 184, 166, 0.08);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: #ffffff;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Card services — variante avec icône en haut à gauche */
.card--service {
  padding: var(--space-2xl);
}

/* Card équipe / fondateur */
.card--profile {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl);
}

.card--profile .card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-accent);
}

.card--profile .card__avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card-hover));
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--accent);
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   5. GRID LAYOUT — Responsive
   ---------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--auto-narrow {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ----------------------------------------------------------
   6. TIMELINE — Parcours fondateur
   ---------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

/* Ligne verticale */
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--secondary), transparent);
  border-radius: var(--radius-full);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Point sur la timeline */
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--border-accent);
  z-index: 1;
}

.timeline__item--secondary::before {
  background: var(--secondary);
  box-shadow: 0 0 0 2px var(--border-emerald);
}

.timeline__date {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.timeline__item--secondary .timeline__date {
  color: var(--secondary);
}

.timeline__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   7. BOUTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

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

/* Primaire — orange */
.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}

.btn--outline:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Secondaire — vert */
.btn--secondary {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.btn--secondary:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Tailles */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

.btn--full {
  width: 100%;
}

.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----------------------------------------------------------
   8. FORMULAIRES — Stylisés (dark)
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  outline: none;
}

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

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--border-hover);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-soft);
  background: var(--bg-elevated);
}

.form-input--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2394a3b8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  font-size: var(--text-xs);
  color: #ef4444;
  margin-top: var(--space-xs);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Bouton submit dans les formulaires */
.form-submit {
  margin-top: var(--space-lg);
}

/* Bannière de feedback formulaire */
.form-feedback {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.6;
}
.form-feedback--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.form-feedback--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Checkbox personnalisée RGPD */
.form-group--checkbox {
  margin-bottom: var(--space-lg);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-checkbox__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-top: 2px;
  background: var(--bg-input);
}

.form-checkbox__box svg {
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
}

.form-checkbox input:checked + .form-checkbox__box {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox input:checked + .form-checkbox__box svg {
  opacity: 1;
}

.form-checkbox input:focus-visible + .form-checkbox__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-checkbox__text {
  color: var(--text-secondary);
  user-select: none;
}

.form-checkbox__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox__text a:hover {
  color: var(--accent-hover);
}

.form-checkbox:hover .form-checkbox__box {
  border-color: var(--accent);
}

/* ----------------------------------------------------------
   9. FOOTER — Sombre avec colonnes
   ---------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4xl) var(--content-padding) var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer__brand {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-inverse);
}

.footer__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: var(--space-lg);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  text-decoration: none;
}

.footer__social-link:hover {
  background: var(--accent);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__bottom {
  max-width: var(--container-max);
  margin: var(--space-3xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__legal-link:hover {
  color: var(--accent);
}

/* ----------------------------------------------------------
   10. ANIMATIONS — Fade-in scroll + hover
   ---------------------------------------------------------- */

/* Classe .reveal pour Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--left {
  transform: translateX(-30px);
}

.reveal--left.reveal--visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--right.reveal--visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.92);
}

.reveal--scale.reveal--visible {
  transform: scale(1);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 24px var(--accent-glow);
  }
}

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

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

/* Hover animations */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: 0 0 24px var(--accent-glow);
}

.hover-underline {
  display: inline-block;
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.hover-underline:hover::after {
  width: 100%;
}

/* ----------------------------------------------------------
   11. BADGES / TAGS — Technologies
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-base);
}

.badge--accent {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
}

.badge--accent:hover {
  background: rgba(20, 184, 166, 0.18);
}

.badge--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-300);
  border: 1px solid var(--border-emerald);
}

.badge--emerald:hover {
  background: rgba(16, 185, 129, 0.18);
}

.badge--gray {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge--gray:hover {
  background: rgba(255, 255, 255, 0.08);
}

.badge--white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Tags container */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ----------------------------------------------------------
   12. PRICING CARDS — Offres (3 colonnes)
   ---------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.pricing__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing__card:hover {
  border-color: rgba(20, 184, 166, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(20, 184, 166, 0.08);
}

/* Carte mise en avant */
.pricing__card--featured {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.04) 0%, var(--bg-card) 40%);
  transform: scale(1.03);
  z-index: 1;
}

.pricing__card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.pricing__name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.pricing__price {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.pricing__price-currency {
  font-size: var(--text-xl);
  font-weight: 600;
  vertical-align: super;
}

.pricing__price-period {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.pricing__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex: 1;
}

.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing__feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: var(--text-xs);
  margin-top: 2px;
}

.pricing__feature--disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.pricing__feature--disabled .pricing__feature-icon {
  color: var(--text-muted);
}

.pricing__action {
  margin-top: auto;
}

/* ----------------------------------------------------------
   13. SECTION CONTACT — Grille 2 colonnes
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(20, 184, 166, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: var(--text-lg);
}

.contact-info__content {
  flex: 1;
}

.contact-info__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.contact-info__value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info__value a {
  color: var(--text-secondary);
}

.contact-info__value a:hover {
  color: var(--accent);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.contact-form-wrapper .form-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-xl);
}

/* ----------------------------------------------------------
   14. MEDIA QUERIES
   ---------------------------------------------------------- */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --content-padding: var(--space-lg);
  }

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

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

  .pricing__card--featured {
    transform: none;
  }

  .pricing__card--featured:hover {
    transform: translateY(-4px);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }
}

/* --- Small tablet / large phone (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --content-padding: var(--space-md);
    --navbar-height: 64px;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    z-index: var(--z-navbar);
  }

  .navbar__links--open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
  }

  .navbar__links .navbar__cta {
    display: inline-flex;
    font-size: var(--text-base);
    padding: var(--space-sm) var(--space-xl);
    margin-top: var(--space-sm);
  }

  .navbar__link {
    font-size: var(--text-xl);
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__close {
    display: block;
  }

  .hero {
    min-height: 90vh;
    padding-top: calc(var(--navbar-height) + var(--space-2xl));
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__wave {
    height: 60px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid--auto {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .card--profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline {
    padding-left: var(--space-xl);
  }

  .timeline__item::before {
    left: calc(-1 * var(--space-xl) + 4px);
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

/* --- Large phone (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .pricing__card {
    padding: var(--space-xl);
  }

  .contact-form-wrapper {
    padding: var(--space-lg);
  }

  .hero__badge {
    font-size: var(--text-xs);
  }
}

/* --- Desktop large (min-width: 1400px) --- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1280px;
  }

  .hero__title {
    font-size: var(--text-6xl);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ----------------------------------------------------------
   15. UTILITAIRES
   ---------------------------------------------------------- */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Section */
.section {
  padding: var(--space-4xl) 0;
}

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

.section--accent-soft {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(20, 184, 166, 0.02) 50%,
    transparent 100%
  );
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--col {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacings */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Text helpers */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }

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

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

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

.hidden {
  display: none !important;
}

/* Sépareur */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin: var(--space-2xl) 0;
}

/* Background gradient section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-color) 20%,
    var(--border-color) 80%,
    transparent 100%
  );
  margin: 0;
  border: none;
}

/* ----------------------------------------------------------
   16. VAGUE DÉCORATIVE — Hero et séparateurs
   ---------------------------------------------------------- */
.wave-divider {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

.wave-divider--top {
  transform: rotate(180deg);
}

/* Vague stylisée pour séparer les sections */
.wave-divider--accent svg path {
  fill: var(--accent);
  opacity: 0.04;
}

.wave-divider--emerald svg path {
  fill: var(--secondary);
  opacity: 0.04;
}

/* Animation subtile de la vague au survol du hero */
.hero:hover .hero__wave svg path {
  animation: waveShift 4s ease-in-out infinite;
}

@keyframes waveShift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2%);
  }
}

/* ----------------------------------------------------------
   FIN DU DESIGN SYSTEM — Domotech Solutions
   Tous droits réservés.
   ---------------------------------------------------------- */
