/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Mode sombre (par défaut) */
  --primary-color: #6b21a8;
  --primary-dark: #4c1d95;
  --primary-light: #9333ea;
  --secondary-color: #d97706;
  --accent-color: #fbbf24;
  --text-dark: #000000;
  --text-light: #4b5563;
  --bg-light: #1a1a1a;
  --bg-white: #0a0a0a;
  --bg-section: #111111;
  --border-color: #333333;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --gradient-primary: linear-gradient(
    135deg,
    #6b21a8 0%,
    #9333ea 50%,
    #c084fc 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #000000 0%,
    #4c1d95 50%,
    #6b21a8 100%
  );
  --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-royal: linear-gradient(
    135deg,
    #6b21a8 0%,
    #d97706 50%,
    #fbbf24 100%
  );
  --navbar-height: 70px;
  --secondary-header-height: 44px;
  --nav-marquee-height: 56px; /* Hauteur fixe du nav-marquee (40px + 16px padding) */
  --services-bar-height: 0px; /* Barre services supprimée */
  --nav-marquee-bottom: calc(
    var(--navbar-height) + var(--nav-marquee-height)
  ); /* Position du bas du nav-marquee */

  /* Variables pour le texte et les fonds */
  --body-bg: #000000;
  --body-text: #ffffff;
  --section-bg: #111111;
  --card-bg: #111111;
  --card-border: rgba(107, 33, 168, 0.3);
  --title-color: #fbbf24;
  --subtitle-color: #d1d5db;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --card-title: #ffffff;
  --card-text: #d1d5db;
  --price-color: #fbbf24;
  --link-color: #9333ea;
  --link-hover: #c084fc;
}

[data-theme="light"] {
  /* Mode clair */
  --primary-color: #6b21a8;
  --primary-dark: #4c1d95;
  --primary-light: #9333ea;
  --secondary-color: #d97706;
  --accent-color: #fbbf24;
  --text-dark: #000000;
  --text-light: #4b5563;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-section: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(
    135deg,
    #6b21a8 0%,
    #9333ea 50%,
    #c084fc 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #f8fafc 0%,
    #e0e7ff 50%,
    #ddd6fe 100%
  );
  --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-royal: linear-gradient(
    135deg,
    #6b21a8 0%,
    #d97706 50%,
    #fbbf24 100%
  );

  /* Variables pour le texte et les fonds en mode clair */
  --body-bg: #ffffff;
  --body-text: #000000;
  --section-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: rgba(107, 33, 168, 0.2);
  --title-color: #6b21a8;
  --subtitle-color: #4b5563;
  --text-primary: #000000;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --card-title: #000000;
  --card-text: #4b5563;
  --price-color: #6b21a8;
  --link-color: #6b21a8;
  --link-hover: #9333ea;
}

/* Mode clair - Texte du hero en noir */
[data-theme="light"] .hero-content {
  color: #000000;
}

[data-theme="light"] .title-line .word {
  color: #000000;
}

[data-theme="light"] .word-1,
[data-theme="light"] .word-2,
[data-theme="light"] .word-3,
[data-theme="light"] .word-4,
[data-theme="light"] .word-5,
[data-theme="light"] .word-6,
[data-theme="light"] .word-7,
[data-theme="light"] .word-8,
[data-theme="light"] .word-9,
[data-theme="light"] .word-11,
[data-theme="light"] .word-12,
[data-theme="light"] .word-13 {
  color: #000000;
}

[data-theme="light"] .word-10 .letter {
  color: #000000;
}

[data-theme="light"] .title-line.highlight .word {
  color: #000000;
}

[data-theme="light"] .hero-subtitle .word {
  color: #000000;
}

/* Mode clair : textes en noir, jamais en blanc */
[data-theme="light"] .hero-subtitle {
  color: #000000;
}

[data-theme="light"] .hero-subtitle-link {
  color: var(--primary-color);
}

[data-theme="light"] .scroll-indicator {
  color: #000000;
}

[data-theme="light"] .hero-service-title {
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
  background: none !important;
}

[data-theme="light"] .hero-service-price {
  color: #6b21a8 !important;
  -webkit-text-fill-color: #6b21a8 !important;
  background: none !important;
}

[data-theme="light"] .hero-service-range {
  color: #374151 !important;
}

[data-theme="light"] .hero-service-range span {
  color: #6b7280 !important;
}

[data-theme="light"] .hero-services-frame .hero-service-title {
  color: #1f2937 !important;
}

[data-theme="light"] .hero-services-frame .hero-service-price {
  color: #6b21a8 !important;
}

[data-theme="light"] .hero-services-frame .hero-service-range {
  color: #374151 !important;
}

[data-theme="light"] .connection-node::before {
  color: #1f2937 !important;
}

[data-theme="light"] .section-title {
  color: #6b21a8 !important;
}

[data-theme="light"] .section-subtitle {
  color: #4b5563 !important;
}

[data-theme="light"] .section-tag {
  color: #6b21a8 !important;
}

[data-theme="light"] .screen-text {
  color: #059669 !important;
}

[data-theme="light"] .screen-content {
  color: #059669 !important;
}

[data-theme="light"] .screen-content .code-string {
  color: #059669 !important;
}

[data-theme="light"] .btn-secondary {
  color: #1f2937 !important;
  border-color: #1f2937 !important;
}

[data-theme="light"] .btn-secondary:hover {
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

[data-theme="light"] .btn-secondary .word {
  color: inherit !important;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  scroll-padding-top: calc(
    var(--navbar-height) + var(--secondary-header-height) + 12px
  );
  /* Typographie fluide : la taille de base diminue quand l'écran rétrécit (tout ce qui est en rem suit) */
  font-size: clamp(13px, 0.8vw + 11px, 16px);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--body-text);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--body-bg);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Desktop : container en pleine largeur (tout l'écran) */
@media (min-width: 1025px) {
  .container {
    max-width: 100%;
    padding: 0 2.5rem;
  }
}

@media (min-width: 1400px) {
  .container {
    padding: 0 3rem;
  }
}

@media (max-width: 1022px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* ============================================
     NAVIGATION
     ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition:
    top 0.35s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  overflow: visible;
}

/* Header masqué au scroll : bandeau en fixed reste au viewport */
body.header-hidden .navbar {
  top: calc(-1 * var(--navbar-height)) !important;
}

/* Bandeau défilant remonte à la place du header (top 0) */
body.header-hidden .nav-marquee {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: #ffffff !important;
}

.navbar .nav-link,
.navbar .nav-dropdown-link,
.navbar .hamburger span {
  color: #000000;
}

html[data-theme="dark"] .navbar .nav-dropdown-menu .nav-dropdown-link,
body[data-theme="dark"] .navbar .nav-dropdown-menu .nav-dropdown-link {
  color: #ffffff;
}

.navbar .nav-marquee-track {
  color: #ffffff;
}

html[data-theme="light"] .navbar .nav-marquee-track,
body[data-theme="light"] .navbar .nav-marquee-track {
  color: #000000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  min-height: 70px;
  gap: 1rem;
}

.nav-marquee {
  flex: 1;
  max-width: 520px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-section);
  padding: 0.5rem 1rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
}

.nav-marquee::before,
.nav-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 0;
}

.nav-marquee::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--bg-section) 0%,
    var(--bg-section) 20%,
    rgba(0, 0, 0, 0) 100%
  );
}

.nav-marquee::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--bg-section) 0%,
    var(--bg-section) 20%,
    rgba(0, 0, 0, 0) 100%
  );
}

.nav-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: nav-marquee 22s linear infinite;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
  line-height: 1.4;
  width: max-content;
  min-width: max-content;
}

.nav-marquee-track span {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-marquee:hover .nav-marquee-track {
  animation-play-state: paused;
}

.nav-marquee:focus-within {
  box-shadow: 0 0 0 2px rgba(107, 33, 168, 0.2);
}

@keyframes nav-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.theme-toggle-container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.theme-toggle {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo-icon {
  height: 220px;
  width: auto;
  max-width: 700px;
  object-fit: contain;
  display: block;
  margin: -60px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-connexion {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 0.35rem;
  margin-left: 0.25rem;
}
.nav-link-connexion::after {
  display: none;
}
.nav-link-connexion:hover {
  background: var(--primary-dark, #5a2d8a);
  color: #fff !important;
  opacity: 0.95;
}

.nav-link-active,
.nav-link.nav-link-active {
  color: var(--primary-light);
  font-weight: 600;
}

.nav-link-active::after,
.nav-link.nav-link-active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-dropdown i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .nav-link-dropdown i {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-section);
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  list-style: none;
  border: 1px solid var(--border-color);
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-dropdown-link:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 1.75rem;
}

/* Outils gratuits */
.free-tools .section-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.free-tools-grid .free-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.free-tools-grid .service-card-btn {
  margin-top: auto;
}

.free-tools .service-card-btn,
.tool-page-main .service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.free-tools .service-card-btn:hover,
.tool-page-main .service-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(102, 126, 234, 0.3);
  opacity: 0.98;
}

.free-tools .service-card-btn:disabled,
.tool-page-main .service-card-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.free-tools .service-card-btn:focus-visible,
.tool-page-main .service-card-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.free-tools-grid-interactive .free-tool-input,
.free-tools-grid-interactive .free-tool-select,
.free-tools-grid-interactive .free-tool-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-section);
  color: var(--text-primary);
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
}

.free-tools-grid-interactive .free-tool-textarea {
  resize: vertical;
  min-height: 120px;
}

.free-tools-grid-interactive .free-tool-range {
  width: 100%;
}

.free-tools-grid-interactive .free-tool-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.free-tools-grid-interactive .free-tool-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.free-tools-grid-interactive .free-tool-actions .service-card-btn {
  margin-top: 0;
  font-size: 0.82rem;
  padding: 0.65rem 0.6rem;
}

.free-tools-grid-interactive .free-tool-result {
  min-height: 48px;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.free-tools-grid-interactive .free-tool-result img {
  max-width: 180px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  background: #fff;
}

.free-tools-grid-interactive .free-tool-result a {
  color: var(--primary-color);
  font-weight: 600;
}

.tools-directory-hero {
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

.tool-directory-item,
.tool-directory-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tool-directory-item:hover,
.tool-directory-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

.tool-directory-icon,
.tool-directory-card > i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.18),
    rgba(124, 58, 237, 0.18)
  );
  color: var(--primary-color);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.tool-directory-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tool-directory-text strong,
.tool-directory-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.tool-directory-text span,
.tool-directory-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tools-directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tool-page-main {
  padding: 8rem 0 4rem;
}

.tool-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

.tool-page-sidebar {
  position: sticky;
  top: 110px;
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.tool-page-sidebar h3 {
  margin: 0 0 0.8rem;
}

.tool-page-sidebar-links {
  display: grid;
  gap: 0.7rem;
}

.tool-page-sidebar-links a {
  color: var(--text-primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  .free-tools-grid-interactive .free-tool-actions {
    grid-template-columns: 1fr;
  }

  .tools-directory-list,
  .tool-page-grid {
    grid-template-columns: 1fr;
  }

  .tool-page-sidebar {
    position: static;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000000 !important;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Bandeau secondaire sous la navigation */
.secondary-header {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  height: var(--secondary-header-height);
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  /* Masquer par défaut sur toutes les tailles sauf très grands écrans */
  display: none;
}

.secondary-header .container {
  height: 100%;
}

.secondary-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.secondary-header-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.secondary-header-links {
  list-style: none;
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.secondary-header-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(107, 33, 168, 0.12);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.secondary-header-links a:hover,
.secondary-header-links a:focus {
  color: #ffffff;
  background: var(--primary-color);
}

/* ============================================
     DÉDICACES (au-dessus du hero) — responsive
     ============================================ */
.dedicaces-hero {
  padding: 0 0 clamp(1rem, 3vw, 1.5rem);
  background: transparent;
  border: none;
  position: relative;
  z-index: 2;
}

.dedicaces-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.dedicaces-hero-title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--title-color, #fbbf24) !important;
  margin-bottom: 0.25rem;
  text-align: center;
  line-height: 1.3;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .dedicaces-hero-title {
  color: var(--title-color, #6b21a8) !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.dedicaces-hero-desc {
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: var(--text-secondary, #d1d5db) !important;
  text-align: center;
  margin-bottom: clamp(0.75rem, 2.5vw, 1.5rem);
  padding: 0 0.5rem;
  line-height: 1.5;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.35),
    0 0 15px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .dedicaces-hero-desc {
  color: var(--text-secondary, #4b5563) !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.dedicaces-search-wrap {
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  text-align: center;
  padding: 0 0.5rem;
}

.dedicaces-search-label {
  display: block;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.dedicaces-search-input {
  width: 100%;
  max-width: min(320px, 92vw);
  padding: clamp(0.5rem, 2vw, 0.6rem) 1rem clamp(0.5rem, 2vw, 0.6rem) 2.25rem;
  border-radius: clamp(6px, 1.5vw, 8px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.25));
  background: var(--card-bg, rgba(255, 255, 255, 0.06));
  color: var(--title-color);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  min-height: 44px;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.65rem center;
}

.dedicaces-search-input::placeholder {
  color: var(--text-muted);
}

.dedicaces-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(107, 33, 168, 0.2);
}

.dedicaces-slideshow {
  position: relative;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  padding: 0 0.25rem;
}

.dedicaces-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Diaporama : une slide visible à la fois */
.dedicaces-list.dedicaces-diapo {
  display: block;
  position: relative;
  min-height: clamp(100px, 25vw, 120px);
}

.dedicace-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  pointer-events: none;
}

.dedicace-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dedicaces-diapo .dedicace-slide {
  text-align: center;
}

.dedicaces-diapo .dedicace-card {
  position: relative;
  max-width: min(640px, calc(100% - 1rem));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 2.25rem);
  border-radius: clamp(12px, 3vw, 20px);
  overflow: hidden;
  /* Dégradé festif : violet → rose → touche dorée */
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.25) 0%,
    rgba(190, 24, 93, 0.2) 40%,
    rgba(251, 191, 36, 0.12) 100%
  );
  border: 1px solid transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 8px 32px rgba(107, 33, 168, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bordure en dégradé (effet visuel) */
.dedicaces-diapo .dedicace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    #be185d,
    var(--accent-color)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Lueur douce animée */
.dedicaces-diapo .dedicace-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse 60% 40% at 50% 0%,
    rgba(251, 191, 36, 0.15) 0%,
    transparent 55%
  );
  pointer-events: none;
  animation: dedicace-shine 8s ease-in-out infinite;
}

@keyframes dedicace-shine {
  0%,
  100% {
    opacity: 0.6;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(2%) scale(1.02);
  }
}

.dedicaces-diapo .dedicace-card .dedicace-content,
.dedicaces-diapo .dedicace-card .dedicace-meta {
  position: relative;
  z-index: 1;
}

/* Design du texte — message */
.dedicaces-diapo .dedicace-card .dedicace-content {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--title-color);
  margin-top: 0;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Légère teinte dégradé sur le texte (début → fin de paragraphe) */
.dedicaces-diapo .dedicace-card .dedicace-content {
  background: linear-gradient(
    180deg,
    var(--title-color) 0%,
    var(--card-text) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .dedicaces-diapo .dedicace-card .dedicace-content {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--title-color);
  }
}

.dedicaces-diapo .dedicace-card .dedicace-content br {
  margin-top: 0.4em;
}

/* Design de la signature (au-dessus du message) */
.dedicaces-diapo .dedicace-card .dedicace-meta {
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: clamp(0.75rem, 2.5vw, 1.25rem);
  flex-wrap: wrap;
  justify-content: center;
}

.dedicaces-diapo .dedicace-card .dedicace-meta::before {
  content: "♥";
  color: var(--primary-color);
  font-style: normal;
  font-size: 0.75em;
  opacity: 0.9;
}

.dedicaces-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.dedicaces-slideshow-prev,
.dedicaces-slideshow-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
  background: var(--card-bg, rgba(255, 255, 255, 0.05));
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}

.dedicaces-slideshow-prev:hover,
.dedicaces-slideshow-next:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.dedicaces-slideshow-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dedicaces-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.dedicaces-dot:hover {
  opacity: 0.8;
}

.dedicaces-dot.active {
  opacity: 1;
  background: var(--primary-color);
  transform: scale(1.2);
}

.dedicaces-loading,
.dedicaces-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dedicaces-empty a {
  color: var(--link-color);
}

.dedicace-card {
  background: transparent;
  border: none;
  padding: 1.25rem 0;
}

.dedicace-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--card-text);
  margin-bottom: 0.75rem;
}

.dedicace-content br {
  display: block;
  content: "";
  margin-top: 0.25em;
}

.dedicace-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.dedicaces-hero-link {
  text-align: center;
  margin: 0;
}

.dedicaces-hero-link a {
  color: var(--link-color);
  font-weight: 600;
}

.dedicaces-hero-link a:hover {
  color: var(--link-hover);
}

/* Deux boutons : Ajouter ma dédicace + Participer */
.dedicaces-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 0.75rem);
  justify-content: center;
  margin-top: clamp(0.75rem, 2vw, 1rem);
  padding: 0 0.5rem;
}

.btn-dedicace-primary,
.btn-dedicace-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.5rem, 2vw, 0.6rem) clamp(1rem, 3vw, 1.25rem);
  border-radius: clamp(6px, 1.5vw, 8px);
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  border: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn-dedicace-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-dedicace-primary:hover {
  background: var(--primary-dark, #4c1d95);
  color: #fff;
  transform: translateY(-1px);
}

.btn-dedicace-secondary {
  background: var(--primary-color);
  color: #fff;
}

.btn-dedicace-secondary:hover {
  background: var(--primary-dark, #4c1d95);
  color: #fff;
  transform: translateY(-1px);
}

/* Formulaire dédicace inline */
.dedicace-inline-form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
}

[data-theme="light"] .dedicace-inline-form {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.dedicace-inline-form-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--title-color);
  text-align: center;
}

.dedicace-inline-form-fields .form-group {
  margin-bottom: 1rem;
}

.dedicace-inline-form-fields label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.dedicace-inline-form-fields .required {
  color: var(--primary-color);
}

.dedicace-inline-form-fields select,
.dedicace-inline-form-fields input[type="text"],
.dedicace-inline-form-fields input[type="tel"],
.dedicace-inline-form-fields textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.25));
  background: var(--card-bg, rgba(255, 255, 255, 0.08));
  color: var(--title-color);
  font-size: 0.95rem;
}

.dedicace-inline-form-fields textarea {
  min-height: 100px;
  resize: vertical;
}

.dedicace-inline-form-fields .btn-dedicace-submit,
.dedicace-inline-form-fields .btn-dedicace-cancel {
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.dedicace-inline-form-fields .btn-dedicace-submit {
  background: var(--primary-color);
  color: #fff;
}

.dedicace-inline-form-fields .btn-dedicace-submit:hover:not(:disabled) {
  background: var(--primary-dark, #4c1d95);
}

.dedicace-inline-form-fields .btn-dedicace-cancel {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid currentColor;
}

.dedicace-inline-success {
  color: var(--primary-color);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.dedicaces-hero .dedicace-inline-form-fields {
  max-width: 480px;
  margin: 0 auto;
}

/* Modal Envoyer une dédicace */
.dedicace-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dedicace-modal.active {
  display: flex;
  opacity: 1;
}

.dedicace-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.dedicace-modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 1;
  border: 2px solid var(--primary-color);
  animation: dedicaceModalIn 0.3s ease-out;
}

@keyframes dedicaceModalIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dedicace-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}

.dedicace-modal-close:hover {
  background: var(--primary-color);
  color: #fff;
}

.dedicace-modal-title {
  font-size: 1.25rem;
  margin: 0 2.5rem 1.25rem 0;
  color: var(--title-color);
  padding-right: 2rem;
}

.dedicace-modal-content .dedicace-inline-form-fields {
  max-width: none;
}

/* Forcer la saisie possible dans le modal (éviter héritage qui bloque) */
.dedicace-modal-content input,
.dedicace-modal-content textarea,
.dedicace-modal-content select {
  pointer-events: auto !important;
  -webkit-text-fill-color: var(--title-color, #111) !important;
  color: var(--title-color, #111) !important;
  background: var(--card-bg, rgba(255, 255, 255, 0.08)) !important;
  background-clip: border-box !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.dedicace-modal-content .dedicace-inline-success {
  margin-top: 1rem;
}

.mf-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .dedicaces-hero {
    padding-bottom: 1.25rem;
  }

  .dedicaces-list:not(.dedicaces-diapo) {
    grid-template-columns: 1fr;
  }

  .dedicaces-slideshow-prev,
  .dedicaces-slideshow-next {
    width: 36px;
    height: 36px;
  }
}

/* Dédicaces — très petits écrans */
@media (max-width: 480px) {
  .dedicaces-hero-title {
    font-size: 1.15rem;
  }
  .dedicaces-hero-desc {
    font-size: 0.85rem;
  }
  .dedicaces-search-label {
    font-size: 0.8rem;
  }
  .dedicaces-diapo .dedicace-card {
    padding: 1rem 1.25rem;
    border-radius: 12px;
  }
  .dedicaces-diapo .dedicace-card .dedicace-content {
    font-size: 0.95rem;
  }
  .dedicaces-diapo .dedicace-card .dedicace-meta {
    font-size: 0.8rem;
  }
  .btn-dedicace-primary,
  .btn-dedicace-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .dedicaces-hero .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .dedicaces-hero-title {
    font-size: 1.05rem;
  }
  .dedicaces-diapo .dedicace-card {
    padding: 0.875rem 1rem;
  }
}

/* ============================================
     HERO SECTION
     ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  /* Sous la navbar et le bandeau défilant */
  padding-top: calc(var(--navbar-height) + var(--nav-marquee-height));
  padding-bottom: 80px;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0.9;
}

.animated-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  top: 60%;
  right: 10%;
  animation-delay: 5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-color);
  bottom: 10%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - var(--navbar-height) - var(--nav-marquee-height));
  padding: 0;
  margin-top: 0; /* Barre tout juste au-dessus : pas de remontée */
}

.hero-content {
  color: #ffffff;
  animation: fadeInUp 1s ease-out;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: left;
}

.title-line {
  display: block;
}

.title-line .word {
  display: inline-block;
  margin-right: 0.3em;
  opacity: 1;
}

/* Animations uniquement pour ConnewTech */
.word-1,
.word-2,
.word-3,
.word-4,
.word-5,
.word-6,
.word-7,
.word-8,
.word-9,
.word-11,
.word-12,
.word-13 {
  opacity: 1;
  animation: none;
  color: #ffffff;
}

.word-10 {
  opacity: 1;
  display: inline-block;
}

.word-10 .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(-150px) scale(0.5);
  color: #ffffff;
}

.word-10 .letter-1 {
  animation:
    slideDownFromTop 0.6s ease-out 1s forwards,
    scaleLetter 2.1s ease-in-out 1.6s infinite;
}
.word-10 .letter-2 {
  animation:
    slideDownFromTop 0.6s ease-out 1.1s forwards,
    scaleLetter 2.1s ease-in-out 1.7s infinite;
}
.word-10 .letter-3 {
  animation:
    slideDownFromTop 0.6s ease-out 1.2s forwards,
    scaleLetter 2.1s ease-in-out 1.8s infinite;
}
.word-10 .letter-4 {
  animation:
    slideDownFromTop 0.6s ease-out 1.3s forwards,
    scaleLetter 2.1s ease-in-out 1.9s infinite;
}
.word-10 .letter-5 {
  animation:
    slideDownFromTop 0.6s ease-out 1.4s forwards,
    scaleLetter 2.1s ease-in-out 2s infinite;
}
.word-10 .letter-6 {
  animation:
    slideDownFromTop 0.6s ease-out 1.5s forwards,
    scaleLetter 2.1s ease-in-out 2.1s infinite;
}
.word-10 .letter-7 {
  animation:
    slideDownFromTop 0.6s ease-out 1.6s forwards,
    scaleLetter 2.1s ease-in-out 2.2s infinite;
}
.word-10 .letter-8 {
  animation:
    slideDownFromTop 0.6s ease-out 1.7s forwards,
    scaleLetter 2.1s ease-in-out 2.3s infinite;
}
.word-10 .letter-9 {
  animation:
    slideDownFromTop 0.6s ease-out 1.8s forwards,
    scaleLetter 2.1s ease-in-out 2.4s infinite;
}
.word-10 .letter-10 {
  animation:
    slideDownFromTop 0.6s ease-out 1.9s forwards,
    scaleLetter 2.1s ease-in-out 2.5s infinite;
}
.word-10 .letter-11 {
  animation:
    slideDownFromTop 0.6s ease-out 2s forwards,
    scaleLetter 2.1s ease-in-out 2.6s infinite;
}

.title-line.highlight {
  position: relative;
}

.title-line.highlight .word {
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: left;
}

.hero-subtitle-link {
  color: var(--title-color);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hero-subtitle-link:hover {
  text-decoration: underline;
}

.hero-subtitle .word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 1;
  color: #ffffff;
}

/* Animations pour les mots du paragraphe - seulement entrée, pas d'animation continue */
.word-14 {
  animation: fadeIn 0.5s ease-out 1.4s forwards;
}
.word-15 {
  animation: slideInRight 0.5s ease-out 1.45s forwards;
}
.word-16 {
  animation: slideInUp 0.5s ease-out 1.5s forwards;
}
.word-17 {
  animation: fadeIn 0.5s ease-out 1.55s forwards;
}
.word-18 {
  animation: slideInLeft 0.5s ease-out 1.6s forwards;
}
.word-19 {
  animation: fadeIn 0.5s ease-out 1.65s forwards;
}
.word-20 {
  animation: slideInDown 0.5s ease-out 1.7s forwards;
}
.word-21 {
  animation: slideInRight 0.5s ease-out 1.75s forwards;
}
.word-22 {
  animation: fadeIn 0.5s ease-out 1.8s forwards;
}
.word-23 {
  animation: slideInLeft 0.5s ease-out 1.85s forwards;
}
.word-24 {
  animation: slideInUp 0.5s ease-out 1.9s forwards;
}
.word-25 {
  animation: fadeIn 0.5s ease-out 1.95s forwards;
}
.word-26 {
  animation: slideInRight 0.5s ease-out 2s forwards;
}
.word-27 {
  animation: slideInDown 0.5s ease-out 2.05s forwards;
}
.word-28 {
  animation: fadeIn 0.5s ease-out 2.1s forwards;
}
.word-29 {
  animation: slideInLeft 0.5s ease-out 2.15s forwards;
}
.word-30 {
  animation: fadeIn 0.5s ease-out 2.2s forwards;
}
.word-31 {
  animation: slideInUp 0.5s ease-out 2.25s forwards;
}
.word-32 {
  animation: fadeIn 0.5s ease-out 2.3s forwards;
}
.word-33 {
  animation: slideInRight 0.5s ease-out 2.35s forwards;
}
.word-34 {
  animation: fadeIn 0.5s ease-out 2.4s forwards;
}
.word-35 {
  animation: slideInDown 0.5s ease-out 2.45s forwards;
}
.word-36 {
  animation: fadeIn 0.3s ease-out 2.5s forwards;
}
.word-37 {
  animation: slideInLeft 0.5s ease-out 2.55s forwards;
}
.word-38 {
  animation: slideInUp 0.5s ease-out 2.6s forwards;
}
.word-39 {
  animation: fadeIn 0.5s ease-out 2.65s forwards;
}
.word-40 {
  animation: slideInRight 0.5s ease-out 2.7s forwards;
}
.word-41 {
  animation: fadeIn 0.5s ease-out 2.75s forwards;
}
.word-42 {
  animation: slideInDown 0.5s ease-out 2.8s forwards;
}
.word-43 {
  animation: fadeIn 0.5s ease-out 2.85s forwards;
}
.word-44 {
  animation: slideInLeft 0.5s ease-out 2.9s forwards;
}
.word-45 {
  animation: slideInUp 0.5s ease-out 2.95s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.hero-buttons .btn {
  position: relative;
  z-index: 3;
}

.hero-buttons .btn .word {
  display: inline-block;
  margin-right: 0.2em;
  opacity: 0;
}

.hero-buttons .btn-primary .word-46 {
  animation:
    fadeIn 0.5s ease-out 3.2s forwards,
    bounce 2.2s ease-in-out 3.7s infinite;
}
.hero-buttons .btn-primary .word-47 {
  animation:
    slideInRight 0.5s ease-out 3.3s forwards,
    scale 2.1s ease-in-out 3.75s infinite;
}
.hero-buttons .btn-primary .word-48 {
  animation:
    slideInUp 0.5s ease-out 3.4s forwards,
    rotate 3s ease-in-out 3.8s infinite;
}

.hero-buttons .btn-secondary .word-49 {
  animation:
    fadeIn 0.5s ease-out 3.5s forwards,
    bounce 2.3s ease-in-out 4s infinite;
}
.hero-buttons .btn-secondary .word-50 {
  animation:
    slideInLeft 0.5s ease-out 3.6s forwards,
    scale 2.2s ease-in-out 4.05s infinite;
}

/* ============================================
     KEYFRAMES ANIMATIONS POUR LES MOTS
     ============================================ */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

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

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

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownFromTop {
  0% {
    opacity: 0;
    transform: translateY(-150px) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateY(10px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scaleLetter {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

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

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@keyframes glow {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 3px rgba(251, 191, 36, 0.3));
  }
  50% {
    filter: brightness(1.4) drop-shadow(0 0 12px rgba(251, 191, 36, 0.8));
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

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

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--bg-section);
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: var(--bg-light);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

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

/* Découvrir : parfaitement au centre de l'écran (toutes tailles) */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: max-content;
  color: white;
  text-align: center;
  z-index: 10;
}

.scroll-indicator span {
  font-size: clamp(0.75rem, 1.5vw + 0.5rem, 0.875rem);
  opacity: 0.8;
  text-align: center;
}

/* ============================================
     HERO ANIMATION - CONNECTION DIAGRAM
     ============================================ */
/* ============================================
     HERO ANIMATION - DESIGN MODERNE AVEC DIAPORAMA
     ============================================ */
.hero-animation {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  /* overflow:visible → retire le rectangle de découpe qui masquait le contenu */
  overflow: visible;
  padding: 2rem;
  padding-bottom: 3rem;
  margin-top: 1.5rem;
}

/* Effet de particules en arrière-plan */
.hero-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(102, 126, 234, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(118, 75, 162, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(240, 147, 251, 0.1) 0%,
      transparent 50%
    );
  animation: backgroundPulse 8s ease-in-out infinite;
  pointer-events: none;
  /* z-index négatif → toujours derrière le contenu des cartes */
  z-index: -1;
  /* Empêche tout débordement visuel hors des limites du conteneur */
  border-radius: inherit;
  overflow: hidden;
}

.hero-animation-slider {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 560px;
  perspective: 1200px;
}

.hero-animation-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px) scale(0.95) rotateX(5deg);
  animation: hero-animation-fade-modern 9s infinite;
  will-change: opacity, transform;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-animation-slider.is-manual .hero-animation-slide {
  animation: none;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.hero-animation-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
  pointer-events: auto;
}

.hero-animation-slide[onclick] {
  cursor: pointer;
}

/* 3 slides : chacune visible ~3s, l'une après l'autre */
.hero-animation-slide.slide-1 {
  animation-delay: 0s;
}
.hero-animation-slide.slide-2 {
  animation-delay: 3s;
}
.hero-animation-slide.slide-3 {
  animation-delay: 6s;
}
.hero-animation-slide.slide-4 {
  animation-delay: 9s;
}
.hero-animation-slide.slide-5 {
  animation-delay: 12s;
}
.hero-animation-slide.slide-6 {
  animation-delay: 15s;
}
.hero-animation-slide.slide-7 {
  animation-delay: 18s;
}
.hero-animation-slide.slide-8 {
  animation-delay: 21s;
}

/* Carte produits hero */
.hero-products-card {
  position: relative;
  width: min(750px, 96%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 32px;
  padding: 2rem 2.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.hero-products-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-products-grid {
  overflow: hidden;
  width: 100%;
  max-height: 200px;
}

.hero-products-track {
  display: inline-flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0 1rem;
  animation: hero-products-marquee 35s linear infinite;
  -webkit-animation: hero-products-marquee 35s linear infinite;
  width: max-content;
  will-change: transform;
}

.hero-products-track:hover {
  animation-play-state: paused;
}

@keyframes hero-products-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@-webkit-keyframes hero-products-marquee {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

.hero-product-item {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.hero-product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-product-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.hero-product-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color, #667eea);
}

.hero-product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  width: 100%;
  min-height: 120px;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.hero-product-placeholder i {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.hero-products-grid:not(:has(.hero-products-track)) {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Diaporama : crossfade pour éviter un écran vide entre les slides (la suivante apparaît avant que la précédente parte) */
@keyframes hero-animation-fade-modern {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  36% {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
  }
}

@keyframes backgroundPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.connection-diagram {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 650px;
  max-height: 560px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Carte de service moderne avec glassmorphism */
.hero-service-card {
  position: relative;
  width: min(700px, 96%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: none;
  border-radius: 32px;
  padding: 3rem 3.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hero-service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(102, 126, 234, 0.1) 90deg,
    transparent 180deg,
    rgba(118, 75, 162, 0.1) 270deg,
    transparent 360deg
  );
  animation: rotateGradient 8s linear infinite;
  opacity: 0.5;
}

.hero-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.1) 50%,
    rgba(240, 147, 251, 0.15) 100%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.hero-animation-slide[onclick]:hover .hero-service-card {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(102, 126, 234, 0.3);
}

.hero-service-title {
  position: relative;
  z-index: 2;
  font-size: clamp(1.35rem, 2.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
  letter-spacing: -0.02em;
}

.hero-service-price {
  position: relative;
  z-index: 2;
  font-size: clamp(1.15rem, 1.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #fbbf24;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 15px rgba(251, 191, 36, 0.4);
}

.hero-service-range {
  position: relative;
  z-index: 2;
  font-size: clamp(0.875rem, 1.3vw, 1.4rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.75rem;
}

.hero-service-range span {
  color: rgba(255, 255, 255, 0.6);
}

@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive pour hero-animation */
/* Tablette (≤1024px) : hauteur flexible pour vraies tablettes (viewport variable) */
@media (max-width: 1024px) {
  .hero-animation {
    height: clamp(320px, 48vh, 520px);
    min-height: 320px;
    max-height: min(520px, 85vh);
    padding: 1.25rem;
    padding-bottom: 2rem;
    margin-top: 1rem; /* petit espace sous le message défilant */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-animation-slider {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
  }

  .hero-animation-slide {
    box-sizing: border-box;
  }

  .connection-diagram {
    max-width: min(100%, 380px);
    max-height: min(100%, 360px);
  }
}

@media (max-width: 1022px) {
  .hero-animation {
    height: clamp(320px, 48vh, 520px);
    min-height: 320px;
    max-height: min(520px, 85vh);
    padding: 1.5rem;
    padding-bottom: 2.5rem;
    margin-top: 1rem; /* petit espace sous le message défilant */
  }

  .hero-animation-slider {
    max-width: 100%;
    max-height: 100%;
  }

  .hero-service-card {
    padding: 2.5rem 2.5rem;
  }

  .hero-products-card {
    width: min(650px, 96%);
    padding: 1.75rem 2rem;
    border-radius: 28px;
  }

  .hero-products-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .hero-products-grid {
    max-height: 180px;
  }

  .hero-product-item {
    min-width: 110px;
    max-width: 180px;
    padding: 0.875rem;
  }

  .hero-product-item img {
    width: 52px;
    height: 52px;
  }

  .hero-product-name {
    font-size: 0.9rem;
  }

  .hero-product-price {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hero-animation {
    height: clamp(300px, 45vh, 460px);
    min-height: 300px;
    max-height: min(460px, 80vh);
    padding: 1rem;
    padding-bottom: 2rem;
    margin-top: 1rem; /* petit espace sous le message défilant / navbar */
  }

  .hero-animation-slider {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
  }

  .hero-service-card {
    width: min(520px, 95%);
    padding: 2rem 2rem;
    border-radius: 24px;
  }

  .hero-service-title {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    margin-bottom: 0.75rem;
  }

  .hero-service-price {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  }

  .hero-service-range {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .hero-products-card {
    width: min(520px, 95%);
    padding: 1.5rem 1.5rem;
    border-radius: 24px;
  }

  .hero-products-title {
    font-size: 1.2rem;
    margin-bottom: 0.875rem;
  }

  .hero-products-grid {
    max-height: 115px;
  }

  .hero-products-track {
    gap: 0.5rem;
    padding: 0 0.75rem;
    animation-duration: 30s;
    -webkit-animation-duration: 30s;
  }

  .hero-product-item {
    min-width: 64px;
    max-width: 95px;
    padding: 0.4rem;
    border-radius: 10px;
  }

  .hero-product-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .hero-product-name {
    font-size: 0.7rem;
  }

  .hero-product-price {
    font-size: 0.75rem;
  }
}

/* Petit écran / téléphone : hero-animation descendue */
@media (max-width: 480px) {
  .hero-animation {
    height: clamp(260px, 40vh, 400px);
    min-height: 260px;
    max-height: min(400px, 70vh);
    padding-bottom: 2rem;
    margin-top: 2.25rem;
  }

  .hero-service-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  .hero-service-title {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  .hero-service-price {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .hero-service-range {
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  }

  .hero-products-card {
    width: min(420px, 94%);
    padding: 1.25rem 1rem;
    border-radius: 20px;
  }

  .hero-products-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .hero-products-grid {
    max-height: 100px;
  }

  .hero-products-track {
    gap: 0.4rem;
    padding: 0 0.5rem;
    animation-duration: 25s;
    -webkit-animation-duration: 25s;
  }

  .hero-product-item {
    min-width: 54px;
    max-width: 85px;
    padding: 0.35rem;
    border-radius: 8px;
  }

  .hero-product-item img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-bottom: 0.2rem;
  }

  .hero-product-name {
    font-size: 0.65rem;
  }

  .hero-product-price {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .hero-products-card {
    width: 96%;
    padding: 1rem 0.875rem;
    border-radius: 16px;
  }

  .hero-products-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .hero-products-grid {
    max-height: 85px;
  }

  .hero-products-track {
    gap: 0.35rem;
    padding: 0 0.5rem;
    animation-duration: 22s;
    -webkit-animation-duration: 22s;
  }

  .hero-product-item {
    min-width: 48px;
    max-width: 75px;
    padding: 0.3rem;
    border-radius: 6px;
  }

  .hero-product-item img {
    width: 24px;
    height: 24px;
  }

  .hero-product-name {
    font-size: 0.6rem;
  }

  .hero-product-price {
    font-size: 0.65rem;
  }
}

/* Media queries déjà ajoutées ci-dessus */

/* Slide 2 : cadre des services (un par un) — largeur explicite pour éviter cadre vide */
.hero-animation-slide.slide-services {
  padding: 0 1rem;
}

.hero-services-frame {
  position: relative;
  width: 100%;
  min-width: 280px;
  max-width: 520px;
  height: 175px;
  overflow: hidden;
  margin: 0 auto;
}

.hero-services-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(6px);
  color: #ffffff;
  text-align: center;
  animation: hero-service-fade 30s infinite;
  pointer-events: none;
}

.hero-services-slide.slide-1 {
  animation-delay: 0s;
}
.hero-services-slide.slide-2 {
  animation-delay: 5s;
}
.hero-services-slide.slide-3 {
  animation-delay: 10s;
}
.hero-services-slide.slide-4 {
  animation-delay: 15s;
}
.hero-services-slide.slide-5 {
  animation-delay: 20s;
}
.hero-services-slide.slide-6 {
  animation-delay: 25s;
}

.hero-services-frame .hero-service-title {
  font-size: clamp(1.2rem, 2.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-services-frame .hero-service-price {
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  font-weight: 600;
  color: var(--accent-color);
}

.hero-services-frame .hero-service-range {
  font-size: clamp(0.8rem, 1.3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
}

.hero-services-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.hero-services-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: hero-dot 30s infinite;
}

.hero-services-dots span:nth-child(1) {
  animation-delay: 0s;
}
.hero-services-dots span:nth-child(2) {
  animation-delay: 5s;
}
.hero-services-dots span:nth-child(3) {
  animation-delay: 10s;
}
.hero-services-dots span:nth-child(4) {
  animation-delay: 15s;
}
.hero-services-dots span:nth-child(5) {
  animation-delay: 20s;
}
.hero-services-dots span:nth-child(6) {
  animation-delay: 25s;
}

@keyframes hero-service-fade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  18% {
    opacity: 1;
    transform: translateY(0);
  }
  22% {
    opacity: 0;
    transform: translateY(-6px);
  }
  96% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-dot {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }
  6% {
    opacity: 1;
    transform: scale(1.2);
  }
  20% {
    opacity: 1;
    transform: scale(1.2);
  }
  26% {
    opacity: 0.35;
    transform: scale(1);
  }
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
}

/* Grille des 4 services affichés ensemble dans le hero */
.hero-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem;
  align-content: center;
  justify-items: center;
}

@media (min-width: 600px) {
  .hero-services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 640px;
  }
}

.hero-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  min-width: 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hero-service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-service-item-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 12px;
  font-size: 1.2rem;
}

.hero-service-item-title {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.hero-service-item-price {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 600;
  color: #fbbf24;
  line-height: 1.2;
}

[data-theme="light"] .hero-service-item-title {
  color: #1f2937 !important;
}

[data-theme="light"] .hero-service-item-price {
  color: #6b21a8 !important;
}

[data-theme="light"] .hero-service-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.75)
  );
  border-color: rgba(0, 0, 0, 0.08);
}

.connection-node {
  position: absolute;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.connection-node::before {
  content: attr(data-label);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 15;
  letter-spacing: 0.5px;
}

.node-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.connection-node:hover .node-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.node-pulse {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: pulse-ring 2s infinite;
}

.node-pulse::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse-ring 2s infinite 0.5s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Positionnement des nœuds */
.node-enterprise {
  top: 45%;
  left: 0%;
  transform: translate(-50%, -50%);
  animation: float-node-horizontal 4s ease-in-out infinite;
  z-index: 10;
}

/* ============================================
     COMPUTER CENTER
     ============================================ */
.computer-center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  animation: computer-float 3s ease-in-out infinite;
}

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

.computer-screen {
  width: 220px;
  height: 150px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: 8px 8px 2px 2px;
  border: none;
  padding: 15px;
  box-shadow:
    0 0 40px rgba(30, 58, 138, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.computer-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 58, 138, 0.2) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.screen-content {
  font-family: "Inter", sans-serif;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: clamp(0.65rem, 1.5vw, 0.95rem);
  color: #10b981;
}

.screen-content .code-line,
.screen-content .code-string {
  color: #10b981;
  visibility: visible;
  opacity: 1;
}

.screen-text {
  font-size: clamp(0.75rem, 2vw + 8px, 1.5rem);
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  letter-spacing: 2px;
  animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
  0% {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    opacity: 0.9;
  }
  100% {
    text-shadow:
      0 0 30px rgba(16, 185, 129, 0.8),
      0 0 40px rgba(16, 185, 129, 0.4);
    opacity: 1;
  }
}

.code-line {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: inherit;
  flex-wrap: wrap;
}

.code-keyword {
  color: #c792ea;
  font-weight: 600;
}

.code-function {
  color: #82aaff;
}

.code-string {
  color: #c3e88d;
}

.code-cursor {
  width: 7px;
  height: 14px;
  background: #10b981;
  margin-top: 2px;
  animation: cursor-blink 1s infinite;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.computer-base {
  width: 240px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 0 0 6px 6px;
  border: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.computer-keyboard {
  width: 220px;
  height: 35px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 8px;
  margin-top: 0.5rem;
  box-shadow:
    0 0 25px rgba(59, 130, 246, 0.6),
    inset 0 0 15px rgba(0, 0, 0, 0.6);
  position: relative;
}

.computer-keyboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.3) 20%,
    rgba(59, 130, 246, 0.5) 50%,
    rgba(59, 130, 246, 0.3) 80%,
    transparent 100%
  );
  border-radius: 8px;
  animation: keyboard-glow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes keyboard-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.keyboard-keys {
  display: flex;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.key-row {
  display: flex;
  gap: 4px;
}

.key {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow:
    0 0 6px rgba(59, 130, 246, 0.5),
    inset 0 0 4px rgba(59, 130, 246, 0.2);
  animation: key-idle 3s ease-in-out infinite;
}

.key:nth-child(1) {
  animation-delay: 0s;
}

.key:nth-child(2) {
  animation-delay: 0.2s;
}

.key:nth-child(3) {
  animation-delay: 0.4s;
}

.key:nth-child(4) {
  animation-delay: 0.6s;
}

.key:nth-child(5) {
  animation-delay: 0.8s;
}

.key-active {
  background: rgba(59, 130, 246, 0.7);
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.9),
    inset 0 0 6px rgba(59, 130, 246, 0.5);
  animation: key-press 1.5s ease-in-out infinite;
}

@keyframes key-idle {
  0%,
  100% {
    box-shadow:
      0 0 6px rgba(59, 130, 246, 0.5),
      inset 0 0 4px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow:
      0 0 10px rgba(59, 130, 246, 0.7),
      inset 0 0 5px rgba(59, 130, 246, 0.3);
  }
}

@keyframes key-press {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 18px rgba(59, 130, 246, 0.9),
      inset 0 0 6px rgba(59, 130, 246, 0.5);
  }
  50% {
    transform: translateY(2px);
    box-shadow:
      0 0 25px rgba(59, 130, 246, 1),
      inset 0 0 10px rgba(59, 130, 246, 0.7);
  }
}

.node-tech {
  top: 45%;
  right: 0%;
  transform: translate(50%, -50%);
  animation: tech-glow 3s ease-in-out infinite;
}

@keyframes float-node-horizontal {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-60px, -50%);
  }
}

.node-enterprise::before {
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  left: auto;
  font-size: 0.875rem;
}

.node-tech::before {
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  right: auto;
  font-size: 0.875rem;
}

.tech-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
  animation: tech-rotate 4s linear infinite;
}

@keyframes tech-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tech-pulse {
  border-color: rgba(251, 191, 36, 0.6);
  animation: tech-pulse-ring 2s infinite;
}

.tech-pulse::before {
  border-color: rgba(251, 191, 36, 0.4);
  animation: tech-pulse-ring 2s infinite 0.5s;
}

@keyframes tech-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.tech-rings {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 50%;
  top: 0;
  left: 0;
}

.ring-1 {
  animation: ring-expand 3s ease-in-out infinite;
}

.ring-2 {
  animation: ring-expand 3s ease-in-out infinite 1s;
}

.ring-3 {
  animation: ring-expand 3s ease-in-out infinite 2s;
}

@keyframes ring-expand {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes tech-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
  }
}

/* Lignes de connexion SVG */
.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

.connection-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 4px rgba(30, 58, 138, 0.6));
  animation: draw-line 3s ease-in-out infinite;
}

/* Animation des lignes */
@keyframes draw-line {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0.3;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: -1000;
    opacity: 0.3;
  }
}

.connection-line.line-1 {
  animation-delay: 0s;
}

.connection-line.line-2 {
  animation-delay: 0.5s;
}

.connection-line.line-2 {
  animation-delay: 1.5s;
  stroke-width: 4;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.connection-line.line-4 {
  animation-delay: 1.5s;
  stroke-width: 4;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

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

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

/* ============================================
     SECTION STYLES
     ============================================ */
section {
  padding: 2rem 0;
  opacity: 1;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Animations de slide supprimées - les sections s'affichent directement */
section.visible {
  opacity: 1;
  transform: none;
}

.section-header {
  text-align: center !important;
  margin-bottom: 2rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 1rem;
  text-align: center !important;
  display: block;
  width: 100%;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--subtitle-color);
  max-width: 600px;
  margin: 0 auto;
  text-align: center !important;
  display: block;
  transition: color 0.3s ease;
}

/* ============================================
     ABOUT SECTION
     ============================================ */
.about {
  background: var(--section-bg);
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  transition: background-color 0.3s ease;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.about-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.about-projects-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.about-projects-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
  transition: color 0.3s ease;
}

.about-projects-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

.about-projects-list li strong {
  color: var(--text-primary);
}

.about-projects-list a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.about-projects-list a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.about-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-color) !important;
  text-decoration: none;
  margin-top: 1rem;
  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.about-page-link:hover {
  color: var(--link-hover) !important;
  gap: 0.75rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.about-visual {
  position: relative;
  height: 400px;
  min-height: 250px;
}

/* ============================================
     SERVICES (modifiable par l'admin)
     ============================================ */
.services {
  background: var(--section-bg);
  padding: 4rem 0;
  transition: background-color 0.3s ease;
}

.services .section-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

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

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.service-card {
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-border);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 14px;
  font-size: 1.5rem;
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--card-title);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--card-text);
  line-height: 1.65;
  margin: 0 0 1rem;
  transition: color 0.3s ease;
}

.service-card-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 1rem;
}

.service-card-btn.btn-commander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color, #6366f1);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-card-btn.btn-commander:hover {
  background: var(--primary-hover, #4f46e5);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.services-fallback {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 992px) {
  .services-fallback {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Grille dynamique (chargée depuis l'API) */
.services-dynamic {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 992px) {
  .services-dynamic {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ============================================
     SUIVI EN LIGNE (clients voient le travail)
     ============================================ */
.suivi-en-ligne {
  background: var(--body-bg);
  padding: 4rem 0;
  transition: background-color 0.3s ease;
}

.suivi-en-ligne .section-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.suivi-subtitle strong {
  color: var(--title-color);
}

.suivi-en-ligne-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .suivi-en-ligne-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.suivi-card {
  background: var(--section-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.suivi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-border);
}

.suivi-card-featured {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(107, 33, 168, 0.2);
}

.suivi-card-featured:hover {
  box-shadow: 0 8px 24px rgba(107, 33, 168, 0.25);
}

.suivi-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 14px;
  font-size: 1.5rem;
}

.suivi-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--card-title);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.suivi-card-text {
  font-size: 0.95rem;
  color: var(--card-text);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  transition: color 0.3s ease;
}

.suivi-card-btn {
  margin-top: auto;
}

.suivi-cta {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  background: var(--section-bg);
  border-radius: 16px;
  border: 1px dashed var(--border-color);
}

.suivi-cta-text {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.suivi-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.suivi-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Grands écrans */
@media (min-width: 1200px) {
  .about-visual {
    height: 500px;
  }

  .globe-image {
    max-width: 600px;
    max-height: 600px;
  }
}

.world-map {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.globe-background {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  opacity: 0.25;
  overflow: hidden;
}

.globe-image {
  width: 95%;
  height: 95%;
  max-width: 500px;
  max-height: 500px;
  min-width: 250px;
  min-height: 250px;
  object-fit: contain;
  border-radius: 50%;
  animation: rotateGlobe 30s linear infinite;
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.4)) brightness(0.9);
  mask: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Tablettes */
@media (max-width: 968px) {
  .about-visual {
    height: 350px;
  }

  .globe-image {
    width: 90%;
    height: 90%;
    max-width: 450px;
    max-height: 450px;
    min-width: 300px;
    min-height: 300px;
  }
}

.globe-fallback {
  font-size: 20rem;
  color: var(--primary-color);
  opacity: 0.3;
  animation: rotateGlobe 30s linear infinite;
}

@keyframes rotateGlobe {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.map-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.4;
  z-index: 1;
}

.connections-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.connection-line {
  animation: drawConnection 3s ease-in-out infinite;
}

@keyframes drawConnection {
  0%,
  100% {
    stroke-dashoffset: 100;
    opacity: 0.2;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.5;
  }
}

.map-point {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.map-point:hover {
  transform: scale(1.15);
  z-index: 15;
}

.map-point:hover .point-tooltip {
  opacity: 1;
  transform: translateY(-5px);
  visibility: visible;
}

.point-marker {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--bg-section);
  box-shadow:
    0 0 0 4px rgba(102, 126, 234, 0.3),
    var(--shadow-md);
  position: relative;
  z-index: 2;
}

.point-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: pulseRing 2s ease-out infinite;
  opacity: 0.6;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.point-1 {
  top: 55%;
  left: 52%;
  transform: translate(-50%, -50%);
}

.point-1 .point-pulse {
  animation-delay: 0s;
}

.point-2 {
  /* Paris, France - Europe */
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.point-2 .point-pulse {
  animation-delay: 0.5s;
}

.point-3 {
  /* New York, USA - Amérique du Nord */
  top: 35%;
  left: 25%;
  transform: translate(-50%, -50%);
}

.point-3 .point-pulse {
  animation-delay: 1s;
}

.point-4 {
  /* Dubai, UAE - Moyen-Orient */
  top: 40%;
  left: 58%;
  transform: translate(-50%, -50%);
}

.point-4 .point-pulse {
  animation-delay: 1.5s;
}

.point-label {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  z-index: 3;
  transition: all 0.3s ease;
}

.map-point:hover .point-label {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-lg);
}

.point-tooltip {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 4;
  pointer-events: none;
}

.point-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--card-bg);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ============================================
     SERVICES SECTION
     ============================================ */
.services {
  background: var(--section-bg);
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  transition: background-color 0.3s ease;
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.service-clickable {
  cursor: pointer;
}

.service-clickable:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  text-decoration: none;
  color: inherit;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.service-price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  border-radius: 10px;
  border-left: 3px solid var(--primary-color);
}

.service-price-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--price-color);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.service-price-range {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.service-price-from {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.service-description {
  color: var(--card-text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.service-features i {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* Miniatures de produits dans la carte */
.products-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
  justify-items: center;
  align-items: center;
}

.product-mini {
  width: 100%;
  max-width: 100px;
  height: 140px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.product-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.product-mini i {
  position: absolute;
  z-index: 1;
}

.product-mini:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.service-action {
  margin-top: 1rem;
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.service-action i {
  transition: transform 0.3s ease;
}

.service-clickable:hover .service-action i {
  transform: translateX(5px);
}

/* Modal Bibliothèque de Produits */
.products-library-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.products-library-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  color: var(--text-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  border-radius: 20px;
  max-width: 100%;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px 20px 0 0;
  gap: 2rem;
}

.modal-header > div {
  flex: 1;
}

.modal-header h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  color: white;
  transition: color 0.3s ease;
}

.modal-header-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 100%;
  transition: color 0.3s ease;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.products-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.library-product-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid var(--card-border);
  cursor: pointer;
  color: var(--text-primary);
}

.library-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.library-product-image {
  width: 100%;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: 15px;
  overflow: hidden;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.library-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.library-product-card:hover .library-product-image img {
  transform: scale(1.1);
}

.library-product-icon-fallback {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.library-product-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-title);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.library-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--price-color);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.library-product-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.library-product-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Modal Détails Produit */
.product-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-details-modal.active {
  display: flex;
}

.product-details-content {
  position: relative;
  background: var(--card-bg);
  color: var(--text-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  border-radius: 20px;
  max-width: 100%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
}

.product-details-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.product-details-close:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(90deg);
}

.product-details-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem;
}

.product-details-media {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 3rem;
  align-self: start;
}

.product-images-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-main-image {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  transition: opacity 0.3s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-nav:hover {
  background: var(--bg-section);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.product-images-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
}

.product-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--bg-light);
  opacity: 0.7;
}

.product-thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.product-thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-video-section {
  width: 100%;
}

.product-video-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-video-section h3::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.product-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background: var(--bg-light);
}

.product-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.product-details-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-details-header {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.product-details-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.product-details-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.product-details-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--price-color);
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.product-details-section {
  padding: 1.5rem 0;
}

.product-details-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.product-details-section h3::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.product-details-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.product-description-short {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.product-detailed-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: block;
  visibility: visible;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.product-detailed-description * {
  color: inherit;
}

.product-detailed-description strong {
  color: var(--text-primary);
  font-weight: 700;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.product-detailed-description strong:first-child {
  margin-top: 0;
}

.product-detailed-description br {
  display: block;
  content: "";
  margin: 0.5rem 0;
}

.product-detailed-description ul,
.product-detailed-description ol {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.product-detailed-description li {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.product-specifications {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.product-specifications li {
  padding: 1rem;
  background: var(--section-bg);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.product-specifications li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.product-specifications li:hover {
  background: rgba(107, 33, 168, 0.1);
  transform: translateX(5px);
}

.product-details-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
  flex-wrap: wrap;
}

.product-details-actions .btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-details-actions .btn i {
  font-size: 1.25rem;
}

/* Responsive Modal Détails */
@media (max-width: 768px) {
  .product-details-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .product-details-media {
    position: static;
  }

  .product-main-image {
    height: 300px;
  }

  .product-images-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.75rem;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .gallery-prev {
    left: 0.5rem;
  }

  .gallery-next {
    right: 0.5rem;
  }

  .product-details-title {
    font-size: 2rem;
  }

  .product-details-price {
    font-size: 1.75rem;
  }

  .product-details-actions {
    flex-direction: column;
  }

  .product-details-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .product-details-close {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .product-details-content {
    padding: 0;
  }

  .product-details-wrapper {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .product-main-image {
    height: 250px;
  }

  .product-images-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .product-thumbnail {
    border-width: 2px;
  }

  .product-details-title {
    font-size: 1.75rem;
  }

  .product-video-section h3 {
    font-size: 1.25rem;
  }
}

/* Modal Détails Service - plein écran pour visibilité (croix de fermeture incluse) */
.service-details-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.service-details-modal.active {
  display: flex;
}

.service-details-content {
  position: relative;
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: 0;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: none;
  z-index: 1;
  animation: modalSlideIn 0.3s ease-out;
  display: block;
  visibility: visible;
  opacity: 1;
}

.service-details-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--text-dark);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2600;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .service-details-close {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.service-details-close:hover {
  background: var(--primary-color);
  color: white;
  transform: rotate(90deg);
}

.service-details-wrapper {
  padding: 3rem 2.5rem 2.5rem;
  min-height: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
  color: var(--text-primary);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Réduire le padding sur desktop pour plus d'espace */
@media (min-width: 1200px) {
  .service-details-wrapper {
    padding: 2rem 3rem;
  }
}

.service-details-header-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.service-details-header-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  flex-shrink: 0;
}

.service-details-header-text {
  flex: 1;
}

.service-details-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-details-intro {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-details-header-text .service-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.service-details-header-text .service-price-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.service-details-header-text .service-price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--price-color);
  transition: color 0.3s ease;
}

.service-details-header-text .service-price-range {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}

.service-details-content-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Si une sidebar existe, utiliser deux colonnes */
.service-details-content-section.with-sidebar {
  grid-template-columns: 1fr 350px;
}

.service-details-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  visibility: visible;
  opacity: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Réduire l'espacement sur desktop pour plus de contenu visible */
@media (min-width: 1200px) {
  .service-details-main {
    gap: 1rem;
  }
}

.service-details-section {
  padding: 0.75rem 0;
  display: block;
  visibility: visible;
  opacity: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Réduire l'espacement sur desktop pour plus de contenu visible */
@media (min-width: 1200px) {
  .service-details-section {
    padding: 0.5rem 0;
  }
}

.service-details-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

.service-details-section h3::before {
  content: "";
  width: 5px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.service-details-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  margin: 0.5rem 0;
}

.service-detailed-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: block;
  visibility: visible;
  opacity: 1;
  margin: 0;
  padding: 0.5rem 0;
}

.service-detailed-description * {
  color: inherit;
}

.service-detailed-description strong {
  color: var(--text-primary);
  font-weight: 700;
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.service-detailed-description strong:first-child {
  margin-top: 0;
}

.service-detailed-description br {
  display: block;
  content: "";
  margin: 0.25rem 0;
}

.service-detailed-description ul,
.service-detailed-description ol {
  margin: 0.5rem 0;
  padding-left: 2rem;
  color: var(--text-secondary);
}

.service-detailed-description li {
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.service-detailed-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.service-detailed-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--section-bg);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.service-detailed-features li:hover {
  background: rgba(107, 33, 168, 0.1);
  transform: translateX(5px);
}

.service-detailed-features i {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.service-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-example-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid var(--card-border);
  color: var(--text-primary);
}

.service-example-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.service-example-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--section-bg);
}

.service-example-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-example-card:hover .service-example-image img {
  transform: scale(1.1);
}

.service-example-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-title);
  transition: color 0.3s ease;
  margin: 1rem 1rem 0.5rem;
}

.service-example-card p {
  font-size: 0.9375rem;
  color: var(--card-text);
  line-height: 1.6;
  margin: 0 1rem 1rem;
  transition: color 0.3s ease;
}

.section-description {
  font-size: 0.9375rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
}

.site-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  grid-auto-flow: row;
  align-items: stretch;
}

/* Sur les écrans moyens, utiliser 3 colonnes */
@media (max-width: 1200px) {
  .site-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-type-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

/* Réduire le padding sur desktop pour des cartes plus compactes */
@media (min-width: 1200px) {
  .site-type-card {
    padding: 1rem 1.25rem;
  }
}

.site-type-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  background: rgba(107, 33, 168, 0.05);
}

.site-type-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  transition: all 0.3s ease;
  overflow: hidden;
}

.site-type-icon:has(img) {
  background: transparent;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.site-type-icon:has(img)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 1;
}

.site-type-icon img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}

.site-type-card:hover .site-type-icon {
  transform: scale(1.1) rotate(5deg);
}

.site-type-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-title);
  margin: 0 0 0.75rem;
  transition: color 0.3s ease;
}

.site-type-description {
  font-size: 0.875rem;
  color: var(--card-text);
  line-height: 1.6;
  margin: 0 0 1rem;
  transition: color 0.3s ease;
}

.site-type-details {
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.site-type-detailed-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.site-type-features {
  margin: 1rem 0;
}

.site-type-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-type-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.site-type-features-list li i {
  color: var(--primary-color);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.site-type-price {
  margin: 1.5rem 0 1rem;
  padding: 1rem;
  background: rgba(107, 33, 168, 0.1);
  border-radius: 10px;
  text-align: center;
}

.site-type-price-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-type-price-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.site-type-price-range {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.site-type-order-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.site-type-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(107, 33, 168, 0.3);
}

.service-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-client-card {
  background: var(--card-bg);
  color: var(--text-primary);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid var(--card-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.service-client-logo {
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.service-client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.service-client-card:hover .service-client-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.service-client-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.service-client-card:hover .service-client-icon {
  opacity: 1;
  transform: scale(1.1);
}

.service-client-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.service-client-type {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  transition: color 0.3s ease;
}

.service-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 3rem;
  align-self: start;
}

.service-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.service-details-cta {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
}

.service-details-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-details-cta p {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-details-cta .btn {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.service-details-cta .btn:last-child {
  margin-bottom: 0;
}

/* Responsive Modal Service */
@media (max-width: 968px) {
  .service-clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .service-client-card {
    padding: 1.25rem;
  }

  .service-client-icon {
    font-size: 2rem;
  }

  .service-client-name {
    font-size: 1rem;
  }

  .service-details-content-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-details-sidebar {
    position: static;
  }

  .service-details-header-section {
    flex-direction: column;
    text-align: center;
  }

  .service-details-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .service-details-wrapper {
    padding: 2rem 1.5rem;
  }

  .service-details-header-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .service-details-title {
    font-size: 1.75rem;
  }

  .service-details-intro {
    font-size: 1.125rem;
  }

  .service-examples-grid {
    grid-template-columns: 1fr;
  }

  .site-types-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    width: 100%;
  }

  .service-clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }

  .service-client-card {
    padding: 1rem;
  }

  .service-client-icon {
    font-size: 1.75rem;
  }

  .service-client-name {
    font-size: 0.9375rem;
  }

  .service-client-type {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .service-details-content {
    padding: 0;
  }

  .service-details-wrapper {
    padding: 3.5rem 1rem 1.5rem;
  }

  .service-details-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }

  .service-details-header-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .service-details-title {
    font-size: 1.5rem;
  }
}

/* ============================================
     E-COMMERCE SECTION
     ============================================ */
.ecommerce {
  background: var(--section-bg);
  position: relative;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  transition: background-color 0.3s ease;
}

.ecommerce-content {
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.product-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.3) 0%,
    rgba(59, 130, 246, 0.3) 100%
  );
}

.product-image i {
  position: relative;
  z-index: 1;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.product-description {
  color: var(--card-text);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-add-cart {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.cart-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  z-index: 100;
  transition: all 0.3s ease;
}

.cart-toggle:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid white;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--bg-section);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gradient-primary);
  color: white;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.cart-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-empty {
  text-align: center;
  color: #d1d5db;
  padding: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: var(--bg-section);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
}

.quantity-value {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

.cart-total {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-dark);
}

.cart-total span {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* ============================================
     SERVICES DEMAND SECTION
     ============================================ */
.services-demand {
  background: var(--bg-white);
}

.services-demand .products-grid {
  margin-bottom: 0;
}

/* ============================================
     CLIENTS SECTION
     ============================================ */
.clients {
  background: var(--section-bg);
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  transition: background-color 0.3s ease;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.client-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  text-align: center;
}

.client-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.client-card-others {
  opacity: 0.7;
  font-style: italic;
}

.client-card-others:hover {
  opacity: 1;
}

.client-logo {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.client-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
  display: block;
  background: transparent;
}

.client-card:hover .client-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.client-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.client-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-title);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.client-type {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.client-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.client-service-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.client-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-card:hover .client-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Section des logos clients : défilement auto + navigation manuelle */
.clients-logos-section {
  margin-bottom: 0;
  padding: 0.35rem 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
}

.clients-logos-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  cursor: grab;
  touch-action: pan-x;
  outline: none;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.clients-logos-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.clients-logos-viewport::-webkit-scrollbar {
  height: 5px;
}

.clients-logos-viewport::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

[data-theme="dark"] .clients-logos-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}

.clients-logos-nav {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

.clients-logos-nav:hover {
  background: var(--primary-color, #2563eb);
  color: #fff;
  transform: scale(1.05);
}

.clients-logos-nav:active {
  transform: scale(0.97);
}

[data-theme="dark"] .clients-logos-nav {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
}

[data-theme="dark"] .clients-logos-nav:hover {
  background: var(--primary-color, #2563eb);
  color: #fff;
}

/* Piste : rangée originale + clone pour boucle infinie */
.clients-logos-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  min-width: max-content;
  flex-shrink: 0;
}

.clients-logos-track > .clients-logos-row {
  flex: 0 0 auto;
  min-width: max-content;
}

/* Une rangée = tous les logos répétés, sans retour à la ligne */
.clients-logos-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  padding: 0.5rem 0;
  width: max-content;
}

/* Grille des cartes clients : masquée, on n'affiche que les logos */
.clients-grid-hidden {
  display: none !important;
}

.section-header-secondary {
  margin-top: 2rem;
  text-align: center;
}

.section-header-secondary .section-title {
  margin-bottom: 1rem;
}

.section-header-secondary .section-subtitle {
  text-align: center;
}

/* Uniquement le logo (dans la bande défilante = largeur fixe pour pas de vide) */
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 160px;
  min-width: 160px;
  height: 100px;
  padding: 0 1.5rem;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Hauteur de la bande logos */
.clients-logos-section .clients-logos-row {
  min-height: 90px;
}

/* Thème sombre : pas de fond derrière les logos */
[data-theme="dark"] .client-logo-item {
  background: transparent;
  border-radius: 0;
}

.client-logo-item:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.client-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.client-logo-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  /* Fond blanc intégré aux JPEG/PNG : se fond avec la section */
  mix-blend-mode: multiply;
  filter: none;
  opacity: 1;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

[data-theme="dark"] .client-logo-image,
[data-theme="light"] .client-logo-image {
  mix-blend-mode: multiply;
  filter: none;
}

.client-logo-item:hover .client-logo-image {
  opacity: 0.92;
  transform: scale(1.05);
}

/* Fallback si l'image du logo ne charge pas */
.client-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: var(--primary-color);
  font-size: 0.875rem;
  text-align: center;
}

.client-logo-fallback i {
  font-size: 2rem;
  opacity: 0.9;
}

.client-logo-name {
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .client-card {
    padding: 1.5rem;
    min-height: 120px;
  }

  .client-logo {
    width: 80px;
    height: 50px;
  }

  .clients-logos-section {
    margin-top: 2rem;
    padding: 0.5rem 0;
    gap: 0.2rem;
  }

  .clients-logos-nav {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .clients-logos-row {
    padding: 0.5rem 0;
  }

  .clients-logos-section .clients-logos-row {
    min-height: 70px;
  }

  .client-logo-item {
    width: 110px;
    min-width: 110px;
    height: 70px;
    padding: 0 0.5rem;
  }

  .section-header-secondary {
    margin-top: 2rem;
  }

  .section-header-secondary .section-title {
    font-size: 1.5rem;
  }

  .section-header-secondary .section-subtitle {
    font-size: 0.9375rem;
  }

  .news-intro {
    font-size: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
}

/* ============================================
     NEWS SECTION
     ============================================ */
.news {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  background: var(--section-bg);
  transition: background-color 0.3s ease;
}

.news-intro {
  text-align: center;
  font-size: 1.125rem;
  color: var(--subtitle-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-placeholder {
  font-size: 4rem;
  color: white;
  opacity: 0.8;
}

.news-content {
  padding: 2rem;
}

.news-date {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-excerpt {
  color: var(--card-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.news-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.news-link:hover {
  gap: 1rem;
}

/* ============================================
     CONTACT SECTION
     ============================================ */
.contact {
  background: var(--section-bg);
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  transition: background-color 0.3s ease;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 2rem);
}

.contact-item {
  display: flex;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  align-items: flex-start;
}

.contact-icon {
  width: clamp(44px, 8vw, 60px);
  height: clamp(44px, 8vw, 60px);
  background: var(--gradient-primary);
  border-radius: clamp(10px, 2vw, 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: clamp(0.9375rem, 1.5vw + 0.5rem, 1.125rem);
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.contact-details a,
.contact-details p {
  color: var(--text-secondary);
  font-size: clamp(0.875rem, 1.2vw + 0.5rem, 1rem);
  line-height: 1.5;
  word-break: break-word;
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--primary-color);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: clamp(12px, 2.5vw, 20px);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  border: 2px solid var(--card-border);
  border-radius: clamp(8px, 1.5vw, 10px);
  font-family: inherit;
  font-size: clamp(0.9375rem, 1.2vw + 0.5rem, 1rem);
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text-primary);
  box-sizing: border-box;
  -webkit-text-fill-color: var(--text-primary, #111);
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-section);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: clamp(100px, 20vw, 120px);
}

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

/* Contact : responsive toutes tailles d'écran */
@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-content {
    gap: 2rem;
  }
  .contact-form {
    padding: 1.75rem;
  }
  .form-group input,
  .form-group textarea {
    font-size: 1rem;
    min-height: 44px;
  }
  .form-group textarea {
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .contact-content {
    gap: 1.5rem;
  }
  .contact-info {
    gap: 1.25rem;
  }
  .contact-item {
    gap: 1rem;
  }
  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  .contact-details h3 {
    font-size: 0.9375rem;
  }
  .contact-details a,
  .contact-details p {
    font-size: 0.875rem;
  }
  .contact-form {
    padding: 1.25rem;
  }
  .form-group {
    margin-bottom: 1.25rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 0.9375rem;
  }
  .form-group textarea {
    min-height: 90px;
  }
}

@media (max-width: 360px) {
  .contact-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
  .contact-details h3 {
    font-size: 0.875rem;
  }
  .contact-details a,
  .contact-details p {
    font-size: 0.8125rem;
  }
  .contact-form {
    padding: 1rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  .form-group textarea {
    min-height: 80px;
  }
}

/* Assurer que le bouton de contact est cliquable */
#contactSubmitBtn,
.contact-form button[type="button"],
.contact-form button[type="submit"] {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

#contactSubmitBtn:disabled,
.contact-form button[type="button"]:disabled,
.contact-form button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.admin-link {
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.admin-link:hover {
  color: #1e3a8a;
  background: rgba(30, 58, 138, 0.1);
}

/* ============================================
     MODAL DE NOTIFICATION DE SUCCÈS
     ============================================ */
.success-notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-notification-modal.active {
  display: flex;
  opacity: 1;
}

.success-notification-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.success-notification-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  text-align: center;
  animation: successNotificationSlideIn 0.4s
    cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid var(--primary-color);
}

@keyframes successNotificationSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-notification-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  position: relative;
}

.checkmark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--primary-color);
  stroke-miterlimit: 10;
  animation:
    checkmarkFill 0.4s ease-in-out 0.4s forwards,
    checkmarkScale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--primary-color);
  fill: none;
  animation: checkmarkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmarkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmarkStroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes checkmarkFill {
  100% {
    box-shadow: inset 0px 0px 0px 30px var(--primary-color);
  }
}

@keyframes checkmarkScale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

.success-notification-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  transition: color 0.3s ease;
}

.success-notification-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 2rem 0;
  transition: color 0.3s ease;
}

.success-notification-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.success-notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* Animation de pulsation pour le fond du checkmark */
.success-checkmark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Responsive pour le modal de notification */
@media (max-width: 768px) {
  .success-notification-content {
    padding: 2.5rem 2rem 2rem;
    max-width: 90%;
  }

  .success-notification-title {
    font-size: 1.5rem;
  }

  .success-notification-message {
    font-size: 0.95rem;
  }

  .success-checkmark {
    width: 70px;
    height: 70px;
  }
}

/* ============================================
     FOOTER
     ============================================ */
.footer {
  background: #000000;
  color: #ffffff;
  padding: 4rem 0 2rem;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

[data-theme="light"] .footer {
  background: #1a1a1a;
  color: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links li {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* ============================================
     PAGES LÉGALES (Politique de confidentialité, Mentions légales)
     ============================================ */
.legal-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.legal-header .logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.legal-header .logo-link:hover {
  color: var(--primary-color);
}

.legal-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(107, 33, 168, 0.15);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}

.legal-header .back-link:hover {
  background: var(--primary-color);
  color: white;
}

.legal-page {
  padding: 0.5rem 0 1rem;
  min-height: 60vh;
}

.legal-page-with-header {
  padding-top: calc(var(--navbar-height) + 0.25rem);
}

@media (max-width: 768px) {
  .legal-page-with-header {
    padding-top: calc(var(--navbar-height) + 0.25rem);
  }
  .legal-page h1 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .legal-page .legal-updated {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .legal-page-with-header {
    padding-top: calc(var(--navbar-height) + 0.25rem);
  }
  .legal-page h1 {
    font-size: 1.2rem;
  }
  .legal-page .legal-updated {
    font-size: 0.8rem;
  }
}

.legal-page h1 {
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  margin-top: 0;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  scroll-margin-top: calc(
    var(--navbar-height) + var(--secondary-header-height) + 1rem
  );
  word-wrap: break-word;
}

.legal-page .legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  scroll-margin-top: calc(
    var(--navbar-height) + var(--secondary-header-height) + 1rem
  );
}

.legal-page section {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.15rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 0.2rem;
}

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

.legal-page a:hover {
  text-decoration: underline;
}

.about-page {
  padding-top: 0;
}

/* ============================================
     PAGE PROFIL PROFESSIONNEL (À propos)
     ============================================ */
.profile-page {
  padding-bottom: 4rem;
}

.profile-page a {
  text-decoration: none;
}

.profile-page a:hover {
  text-decoration: none;
}

.profile-hero {
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.15) 0%,
    rgba(147, 51, 234, 0.08) 50%,
    rgba(192, 132, 252, 0.05) 100%
  );
  border-bottom: 1px solid var(--border-color);
  padding: calc(var(--navbar-height) + var(--secondary-header-height) + 1.5rem)
    0 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.profile-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.profile-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.profile-headline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 1rem;
}

.profile-intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.profile-section {
  max-width: 840px;
  margin: 0 auto 2.25rem;
}

.profile-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.profile-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.profile-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.profile-text-large {
  font-size: 1.15rem;
}

.profile-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

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

@media (min-width: 960px) {
  .profile-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.profile-project-card {
  background: var(--section-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-project-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(107, 33, 168, 0.12);
}

.profile-card-link,
.profile-discover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.profile-card-link:hover,
.profile-discover-link:hover {
  text-decoration: none;
}

.profile-discover-link:hover {
  border-color: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.profile-discover-link .profile-project-icon {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.profile-project-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.profile-project-icon--logo {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 5px;
  overflow: hidden;
}

.profile-project-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

[data-theme="dark"] .profile-project-icon--logo {
  background: rgba(255, 255, 255, 0.96);
}

.profile-project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-project-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-project-title a:hover {
  color: var(--primary-color);
}

.profile-project-url {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.profile-project-url a {
  color: var(--primary-color);
  text-decoration: none;
}

.profile-project-url a:hover {
  text-decoration: underline;
}

.profile-project-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Page Nous découvrir */
.discover-page .discover-section {
  scroll-margin-top: calc(var(--navbar-height) + var(--secondary-header-height) + 1rem);
}

.discover-page .discover-projects-grid {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .discover-page .discover-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .discover-page .discover-projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.discover-project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #25d366;
}

.discover-project-cta--site {
  color: var(--primary-color);
}

.discover-project-card--dual {
  display: flex;
  flex-direction: column;
}

.discover-project-card-main {
  flex: 1;
}

.discover-project-card--dual .discover-project-cta--site {
  margin-top: 1rem;
}

.discover-project-card--dual .discover-project-cta--whatsapp {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-color);
  text-decoration: none;
}

.profile-card-link:hover .discover-project-cta:not(.discover-project-cta--site),
.profile-discover-link:hover .discover-project-cta,
.discover-project-cta--whatsapp:hover {
  color: #128c7e;
  text-decoration: underline;
}

.discover-invest-panel {
  padding: 2rem 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: linear-gradient(
    135deg,
    rgba(107, 33, 168, 0.14) 0%,
    rgba(217, 119, 6, 0.08) 55%,
    rgba(147, 51, 234, 0.06) 100%
  );
}

.discover-invest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-color);
  margin-bottom: 0.85rem;
}

.discover-invest-list {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.discover-invest-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

.discover-invest-list i {
  color: #10b981;
  margin-top: 0.2rem;
}

.discover-invest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .discover-invest-panel {
    padding: 1.35rem 1.1rem;
  }

  .discover-invest-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.profile-more {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.profile-section-highlight {
  background: var(--section-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.profile-cta-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title-color);
  margin-top: 1rem;
  margin-bottom: 0;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.profile-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
     RESPONSIVE DESIGN
     ============================================ */
@media (max-width: 768px) {
  /* Menu toggle (hamburger) et menu mobile devant la barre services */
  .navbar {
    z-index: 10000 !important;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 10002 !important;
  }

  .theme-toggle-container {
    order: 2;
    margin-left: auto;
    margin-right: 1rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

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

  .logo {
    order: 1;
    flex: 1;
    min-width: 0;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--bg-section);
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    gap: 1.5rem;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 10001 !important;
  }

  /* Menu mobile avec couleurs adaptées au thème */
  .nav-menu .nav-link,
  .nav-menu .nav-dropdown-link {
    color: var(--text-primary) !important;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    margin-top: 0;
    padding: 0;
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item-dropdown.active .nav-dropdown-menu {
    max-height: min(75vh, 720px);
    overflow-y: auto;
  }

  .nav-dropdown-link {
    padding: 1rem 2rem;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-dropdown-link:hover {
    padding-left: 2rem;
    background: rgba(37, 99, 235, 0.1);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 0.75rem !important;
    row-gap: 0.75rem !important;
    align-items: stretch !important;
    padding: 1.5rem 0 3rem 0 !important; /* espace sous message défilant */
  }

  .hero-animation {
    margin: 0 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    padding: 2rem 2rem 0 2rem !important;
    padding-bottom: 0 !important;
    align-self: flex-start !important;
  }

  .hero-content {
    margin: 0 !important;
    margin-top: -1.25rem !important;
    padding-top: 0 !important;
    transform: none !important;
    align-self: flex-start !important;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

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

  .hero-buttons {
    flex-direction: column;
    justify-content: center;
  }

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

  .hero-animation {
    height: clamp(280px, 42vh, 420px);
    min-height: 280px;
    max-height: min(420px, 75vh);
    order: -1;
    margin: 0 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    padding: 2rem 2rem 0 2rem !important;
    padding-bottom: 0 !important;
  }

  .hero-content {
    margin: 0 !important;
    margin-top: -1.25rem !important;
    padding-top: 0 !important;
    transform: none !important;
  }

  .connection-diagram {
    max-width: 320px;
    max-height: min(320px, 85%);
  }

  .connection-node {
    width: 60px;
    height: 60px;
  }

  .node-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .node-pulse {
    width: 50px;
    height: 50px;
  }

  .connection-node::before {
    font-size: max(0.7rem, 11px);
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
  }

  .node-enterprise::before {
    bottom: -32px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    font-size: max(0.7rem, 11px);
  }

  .node-tech::before {
    bottom: -32px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    font-size: max(0.7rem, 11px);
  }

  .hero-animation {
    height: clamp(280px, 42vh, 420px);
    max-height: min(420px, 75vh);
  }

  .hero-animation-slider {
    max-height: 100%;
  }

  .connection-diagram {
    max-width: 100%;
    max-height: min(400px, 90%);
  }

  .node-enterprise {
    top: 42%;
    left: 10%;
    transform: translate(0, -50%);
  }

  .computer-center {
    top: 42%;
    transform: translate(-50%, -50%) scale(0.65);
  }

  .computer-screen {
    width: 140px;
    height: 95px;
    padding: 10px;
  }

  .screen-content {
    padding: 10px;
  }

  .screen-text {
    letter-spacing: 1px;
  }

  .computer-base {
    width: 155px;
    height: 14px;
  }

  .computer-keyboard {
    width: 140px;
    height: 24px;
    padding: 5px;
  }

  .key {
    width: 16px;
    height: 16px;
  }

  .node-tech {
    top: 42%;
    right: 10%;
    transform: translate(0, -50%);
    bottom: auto;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

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

  section {
    padding: 1.5rem 0;
  }

  /* Les sections utilisent déjà les styles généraux .section-header avec text-align: center */
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .nav-menu {
    padding: 1.5rem;
    gap: 1rem;
  }

  .service-card,
  .contact-form {
    padding: 1.5rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .scroll-indicator {
    bottom: 1rem;
    font-size: 0.75rem;
  }

  .scroll-indicator i {
    font-size: 0.875rem;
  }

  /* Centrer les sections services et clients en mobile petit */
  .services .section-header,
  .clients .section-header {
    text-align: center;
  }

  .services .section-title,
  .clients .section-title {
    text-align: center;
  }

  .services .section-subtitle,
  .clients .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
     ANIMATIONS & UTILITIES
     ============================================ */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Animation pour le panier */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive Bibliothèque de Produits */
@media (max-width: 768px) {
  .products-preview {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    justify-items: center;
    align-items: center;
  }

  .product-mini {
    width: 100%;
    max-width: 80px;
    height: 110px;
    font-size: 1.25rem;
  }

  .products-library-modal {
    padding: 1rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-header-description {
    font-size: 0.9375rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .products-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .library-product-card {
    padding: 1rem;
  }

  .library-product-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .library-product-name {
    font-size: 1rem;
  }

  .library-product-price {
    font-size: 1.125rem;
  }

  .modal-header-description {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .modal-header {
    padding: 1rem;
    gap: 1rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .modal-header-description {
    font-size: 0.8125rem;
  }

  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .products-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .library-product-card {
    padding: 0.75rem;
  }

  .library-product-icon {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }

  .library-product-name {
    font-size: 0.875rem;
  }

  .library-product-price {
    font-size: 1rem;
  }
}

/* ============================================
     RESPONSIVE COMPLÉMENTAIRE - TOUTES LES SECTIONS
     ============================================ */

/* Tablette et écrans moyens (max-width: 1024px) */
@media (max-width: 1022px) {
  .logo-icon {
    height: 180px;
    max-width: 500px;
    margin: -50px 0;
  }

  .nav-wrapper {
    padding: 0.3rem 0;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .about-content {
    gap: 3rem;
  }

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

  .service-card {
    padding: 2.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

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

  /* Footer pour tablettes */
  .footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-section {
    padding: 0;
  }

  .footer-logo {
    font-size: 1.375rem;
  }

  .footer-description {
    font-size: 0.9375rem;
  }

  .footer-title {
    font-size: 1.0625rem;
  }

  .footer-links {
    font-size: 0.9375rem;
  }
}

/* Tablette (max-width: 768px) */
@media (max-width: 768px) {
  /* Logo responsive */
  .logo-icon {
    height: 140px;
    max-width: 400px;
    margin: -35px 0;
  }

  .nav-wrapper {
    padding: 0.25rem 0;
    min-height: 60px;
    overflow: visible;
  }

  /* Sections générales */
  section {
    padding: 1.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-text .lead {
    font-size: 1.125rem;
  }

  .about-visual {
    height: 300px;
  }

  .globe-image {
    width: 90%;
    height: 90%;
    max-width: 400px;
    max-height: 400px;
    min-width: 250px;
    min-height: 250px;
  }

  .point-marker {
    width: 20px;
    height: 20px;
  }

  .point-label {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    top: 30px;
  }

  .point-tooltip {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    top: 60px;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }

  .service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .service-price-card {
    padding: 0.625rem;
    margin-bottom: 1.25rem;
  }

  .service-price-label {
    font-size: 0.7rem;
  }

  .service-price-amount {
    font-size: 1.375rem;
  }

  .service-price-range {
    font-size: 0.8125rem;
  }

  .service-description {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
  }

  .service-features li {
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
  }

  .products-preview {
    gap: 0.625rem;
    margin: 1.25rem 0;
  }

  .product-mini {
    max-width: 90px;
    height: 120px;
  }

  .service-action {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
  }

  /* Products Section */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }

  .product-card {
    border-radius: 15px;
  }

  /* Clients Section */
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
  }

  .client-card {
    padding: 1.5rem;
    min-height: 140px;
  }

  .client-logo {
    width: 90px;
    height: 60px;
  }

  .client-icon {
    font-size: 2.5rem;
  }

  .clients-logos-row {
    padding: 1.25rem 0;
  }

  .client-logo-item {
    width: 150px;
    min-width: 150px;
    height: 100px;
    padding: 0 1.25rem;
  }

  /* Contact Section */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-info {
    padding: 2rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-section {
    padding: 0;
  }

  .footer-logo {
    font-size: 1.25rem;
  }

  .footer-logo .logo-icon {
    height: 60px;
    max-width: 200px;
    margin: 0;
  }

  .footer-description {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .footer-title {
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
  }

  .footer-links {
    font-size: 0.9375rem;
  }

  .footer-links li {
    margin-bottom: 0.625rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.8125rem;
  }

  /* News Section */
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  /* Hero Animation */
  .hero-animation {
    max-width: 100%;
  }

  .computer-center {
    transform: translate(-50%, -50%) scale(0.85);
  }

  .computer-screen {
    width: 200px;
    height: 140px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Logo mobile */
  .logo-icon {
    height: 140px;
    max-width: 400px;
    margin: -45px 0;
  }

  .nav-wrapper {
    padding: 0.2rem 0;
    min-height: 55px;
    overflow: visible;
  }

  .container {
    padding: 0 1.5rem;
  }

  /* Sections générales */
  section {
    padding: 1.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.4rem 1.25rem;
  }

  /* About Section */
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  .about-visual {
    height: 250px;
  }

  .globe-image {
    width: 85%;
    height: 85%;
    max-width: 300px;
    max-height: 300px;
    min-width: 200px;
    min-height: 200px;
  }

  .globe-fallback {
    font-size: 12rem;
  }

  .point-marker {
    width: 18px;
    height: 18px;
    border-width: 3px;
  }

  .point-pulse {
    width: 18px;
    height: 18px;
  }

  .point-label {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    top: 25px;
  }

  .point-tooltip {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
    top: 55px;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card:hover {
    transform: translateY(-5px);
  }

  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .service-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .service-price-card {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  .service-price-label {
    font-size: 0.65rem;
  }

  .service-price-amount {
    font-size: 1.125rem;
  }

  .service-price-range {
    font-size: 0.75rem;
  }

  .service-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .service-features {
    margin-bottom: 1rem;
  }

  .service-features li {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .service-features i {
    font-size: 0.75rem;
  }

  .products-preview {
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .product-mini {
    max-width: 70px;
    height: 100px;
    font-size: 1.125rem;
  }

  .service-action {
    margin-top: 1rem;
    font-size: 0.875rem;
  }

  /* Products Section */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-image {
    height: 200px;
  }

  .product-title {
    font-size: 1.125rem;
  }

  .product-price {
    font-size: 1.25rem;
  }

  /* Clients Section */
  .clients {
    padding: 3rem 0;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .client-card {
    padding: 1.25rem;
    min-height: 120px;
  }

  .client-logo {
    width: 60px;
    height: 40px;
    margin-bottom: 0.75rem;
  }

  .client-icon {
    font-size: 2rem;
  }

  .client-name {
    font-size: 1rem;
  }

  .client-type {
    font-size: 0.8125rem;
  }

  /* Contact Section */
  .contact-form {
    padding: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .footer-section {
    text-align: center;
    padding: 0;
  }

  .footer-section:first-child {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
  }

  .footer-logo .logo-icon {
    height: 50px;
    max-width: 180px;
    margin: 0;
  }

  .footer-description {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    text-align: center;
    max-width: 100%;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.875rem;
    text-align: center;
  }

  .footer-links {
    margin-bottom: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links li {
    margin-bottom: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1.25rem;
    line-height: 1.6;
  }

  .footer-bottom p {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
  }

  /* News Section */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-card {
    border-radius: 12px;
  }

  .news-image {
    height: 180px;
  }

  .news-title {
    font-size: 1.125rem;
  }

  .news-intro {
    font-size: 0.9375rem;
    padding: 0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .news-excerpt {
    font-size: 0.9375rem;
  }

  /* Clients Section Mobile - bande défilante plus compacte */
  .clients-logos-section {
    padding: 0.4rem 0;
    margin-top: 1.5rem;
  }

  .clients-logos-row {
    padding: 0.4rem 0;
  }

  .clients-logos-section .clients-logos-row {
    min-height: 58px;
  }

  .client-logo-item {
    width: 85px;
    min-width: 85px;
    height: 55px;
    padding: 0 0.4rem;
  }

  /* Hero Section - Mobile : espacement entre hero-content et hero-animation */
  .hero-wrapper {
    padding: 1rem 0 2.5rem;
    gap: 5.35rem !important;
    row-gap: 5.35rem !important;
  }

  .hero-content {
    margin-top: -1.25rem !important;
    transform: none !important;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .hero-animation {
    max-width: 100%;
    margin-top: 2.1rem !important;
  }

  .computer-center {
    transform: translate(-50%, -50%) scale(0.7);
  }

  .computer-screen {
    width: 160px;
    height: 110px;
    padding: 8px;
  }

  .screen-text {
    letter-spacing: 1px;
  }

  .computer-base {
    width: 180px;
    height: 16px;
  }

  .computer-keyboard {
    width: 160px;
    height: 28px;
    padding: 4px;
  }

  .key {
    width: 14px;
    height: 14px;
  }

  /* Modals */
  .modal-content {
    margin: 1rem;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  /* Service Details Modal */
  .service-details-wrapper {
    padding: 1.25rem;
  }

  .service-details-header-icon {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }

  .service-details-title {
    font-size: 1.375rem;
  }

  .service-examples-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-clients-grid {
    grid-template-columns: 1fr;
  }

  /* Product Details Modal */
  .product-details-wrapper {
    padding: 1.25rem;
  }

  .product-main-image {
    height: 250px;
  }

  .product-details-title {
    font-size: 1.5rem;
  }

  .product-details-price {
    font-size: 1.5rem;
  }
}

/* Très petits écrans (max-width: 360px) */
@media (max-width: 360px) {
  .logo-icon {
    height: 60px;
    max-width: 200px;
    margin: -15px 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .service-card,
  .product-card,
  .client-card,
  .stat-item {
    padding: 1.25rem;
  }

  .client-logo {
    width: 50px;
    height: 35px;
  }

  .client-logo-item {
    width: 110px;
    min-width: 110px;
    height: 70px;
    padding: 0 0.5rem;
  }

  /* Footer pour très petits écrans */
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    gap: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .footer-logo {
    font-size: 1rem;
  }

  .footer-logo .logo-icon {
    height: 40px;
    max-width: 150px;
  }

  .footer-description {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }

  .footer-title {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
  }

  .footer-links {
    font-size: 0.8125rem;
  }

  .footer-links li {
    margin-bottom: 0.4375rem;
  }

  .social-link {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .footer-bottom {
    font-size: 0.6875rem;
    padding-top: 1rem;
  }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-wrapper {
    padding: 1rem 0;
    gap: 0.75rem !important;
    row-gap: 0.75rem !important;
  }

  .hero-title {
    font-size: 2rem;
  }

  section {
    padding: 2.5rem 0;
  }
}

/* Écrans très larges (min-width: 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 100%;
    width: 100%;
  }

  .logo-icon {
    height: 250px;
    max-width: 100%;
    margin: -70px 0;
  }

  /* Footer pour très grands écrans */
  .footer {
    padding: 5rem 0 2.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 3.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-section {
    padding: 0 1rem;
  }

  .footer-logo {
    font-size: 1.625rem;
  }

  .footer-description {
    font-size: 1rem;
    line-height: 1.8;
  }

  .footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .footer-links {
    font-size: 1rem;
  }

  .footer-links li {
    margin-bottom: 0.875rem;
  }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }

  .footer-bottom {
    padding-top: 2.5rem;
    font-size: 0.9375rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Écrans moyens-large (min-width: 1200px et max-width: 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5rem;
    margin-bottom: 3rem;
  }

  .footer-section {
    padding: 0 0.75rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-description {
    font-size: 0.9375rem;
  }

  .footer-title {
    font-size: 1.125rem;
  }

  .footer-links {
    font-size: 0.9375rem;
  }
}

/* ============================================
     AMÉLIORATIONS RESPONSIVES COMPLÉMENTAIRES
     ============================================ */

/* Desktop large (min-width: 1400px) */
@media (min-width: 1400px) {
  .hero-wrapper {
    gap: 5rem;
  }

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

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
  }

  .service-card,
  .product-card {
    padding: 2.5rem;
  }

  .client-card {
    padding: 2.5rem;
    min-height: 180px;
  }
}

/* Desktop (min-width: 1025px) */
@media (min-width: 1025px) and (max-width: 1399px) {
  .hero-wrapper {
    gap: 3.5rem;
  }

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

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }

  .client-card {
    padding: 1.75rem;
    min-height: 150px;
  }
}

/* Tablette large (max-width: 1024px) - Améliorations */
@media (max-width: 1022px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 0.75rem !important;
    row-gap: 0.75rem !important;
    align-items: stretch !important;
    margin-top: 0;
    padding-top: 1.5rem !important; /* espace sous message défilant */
  }

  .hero-animation {
    margin: 0 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    padding: 2rem 2rem 0 2rem !important;
    padding-bottom: 0 !important;
    align-self: flex-start !important;
  }

  .hero-content {
    margin: 0 !important;
    margin-top: -1.25rem !important;
    padding-top: 0 !important;
    transform: none !important;
    align-self: flex-start !important;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .client-card {
    padding: 1.75rem;
    min-height: 150px;
  }
}

/* Tablette (max-width: 768px) - Améliorations */
@media (max-width: 768px) {
  .hero-wrapper {
    gap: 0.75rem;
    row-gap: 0.75rem;
    margin-top: 0;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
  }

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

  .nav-marquee {
    display: none;
  }

  .hero {
    padding-top: calc(
      var(--navbar-height) + 4.5rem
    ) !important; /* Sous la navbar + marge (marquee masqué) */
  }

  .hero .container {
    padding-top: 1.5rem !important;
  }

  .hero-wrapper {
    min-height: calc(100vh - var(--navbar-height)) !important;
  }

  /* (même affichage direct qu’en desktop) */
  .service-details-modal,
  .product-details-modal {
    padding: 0;
  }

  .service-details-content,
  .product-details-content {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .client-card {
    padding: 1.5rem;
    min-height: 140px;
  }

  .clients-logos-section .clients-logos-row {
    min-height: 58px;
  }

  .clients-logos-row .client-logo-item {
    width: 80px;
    min-width: 80px;
    height: 52px;
    padding: 0 0.4rem;
  }

  * {
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Mobile (max-width: 480px) - Améliorations - petit écran : hero-animation descendue */
@media (max-width: 480px) {
  .hero-wrapper {
    gap: 2.5rem;
    row-gap: 2.5rem;
    margin-top: 0;
  }

  .hero-animation {
    margin-top: 2.35rem !important;
  }

  .hero-wrapper {
    padding-top: 1.5rem !important; /* espace sous message défilant sur petit écran */
  }

  .hero .container {
    padding-top: 1.5rem !important;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .service-card,
  .product-card,
  .client-card {
    padding: 1.5rem;
  }

  .client-card {
    padding: 1.25rem;
    min-height: 120px;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    width: 100%;
    max-width: 100%;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Évite le zoom automatique sur iOS */
    padding: 0.875rem;
  }

  .clients-logos-section {
    padding: 0.35rem 0;
    margin-top: 1.25rem;
  }

  .clients-logos-section .clients-logos-row {
    min-height: 52px;
  }

  .clients-logos-row .client-logo-item {
    width: 72px;
    min-width: 72px;
    height: 48px;
    padding: 0 0.35rem;
  }
}

/* Très petits écrans (max-width: 360px) - Améliorations - téléphone : hero-animation descendue */
@media (max-width: 360px) {
  .hero-wrapper {
    padding: 1.5rem 0 1.5rem 0 !important;
    gap: 1.6rem !important;
    row-gap: 1.6rem !important;
  }

  .hero-animation {
    margin-top: 2.5rem !important;
  }

  .hero-content {
    margin-top: -1.25rem !important;
    transform: none !important;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .service-card,
  .product-card,
  .client-card {
    padding: 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-wrapper {
    padding: 1rem 0;
    min-height: auto;
  }

  .hero-animation {
    height: clamp(260px, 38vh, 380px);
    max-height: min(380px, 65vh);
  }

  section {
    padding: 2rem 0;
  }
}

/* Images responsives */
img {
  max-width: 100%;
  height: auto;
}
/* ============================================
     RESPONSIVE HEADER - TOUS LES ÉCRANS
     ============================================ */

/* Règle globale pour toutes les tailles inférieures à 1400px */
@media (max-width: 1399px) {
  /* Transition pour remontée / redescente du bandeau et de la barre services au scroll */
  .nav-marquee,
  .services-bar {
    transition: top 0.35s ease !important;
  }
  /* Secondary header masqué sur toutes les tailles < 1400px */
  .secondary-header {
    display: none !important;
  }

  /* Nav-marquee positionné entre navbar et services-bar */
  .nav-wrapper .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important; /* Entre navbar (1000) et services-bar (1002) */
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  /* Forcer l'affichage du nav-marquee */
  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    line-height: 1.25 !important;
    padding: 0 0.25rem !important;
  }

  /* Services bar adapté pour toutes les tailles < 1400px */
  .services-bar {
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height)
    ) !important; /* Position exacte : navbar + nav-marquee (70px + 56px = 126px) */
    margin-top: -8px !important; /* Chevauchement de 8px pour éliminer l'espace */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1100 !important; /* Premier plan : barre et sous-menus visibles */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: none !important; /* Pas de border-top pour éviter l'espace avec nav-marquee */
    border-bottom: 1px solid var(--border-color) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    isolation: isolate !important;
    transform: none !important; /* Pas de transform, le chevauchement est géré par le top */
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  .services-bar .container {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: visible !important; /* Sous-menus visibles en dessous */
    -webkit-overflow-scrolling: touch !important;
  }

  .services-bar-list,
  .services-bar-menu {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    min-width: max-content !important;
    gap: 1rem !important;
  }

  .services-bar-item {
    flex-shrink: 0 !important;
  }

  .services-bar-link {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    white-space: nowrap !important;
  }
}

/* Desktop large (min-width: 1400px) */
@media (min-width: 1400px) {
  .nav-wrapper {
    gap: 2rem;
  }

  .nav-marquee {
    max-width: 600px;
  }

  .nav-menu {
    gap: 2.5rem;
  }

  .logo-icon {
    height: 250px;
    max-width: 100%;
    margin: -70px 0;
  }

  .secondary-header-links {
    gap: 1rem;
  }

  /* Sur très grands écrans, le secondary-header est visible */
  .secondary-header {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Services bar adapté pour 1400px */
  .services-bar {
    top: calc(var(--navbar-height) + var(--secondary-header-height)) !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1001 !important; /* Au-dessus du navbar (z-index: 1000) */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    isolation: isolate !important;
    overflow: visible !important;
    transform: translateZ(0) !important;
  }

  .services-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
  }

  .services-bar-list,
  .services-bar-menu {
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .services-bar-item {
    flex-shrink: 0;
  }

  .services-bar-link {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    white-space: nowrap;
  }

  .services-bar-link i {
    font-size: 0.75rem;
  }
}

/* Desktop (min-width: 1023px) */
@media (min-width: 1023px) and (max-width: 1399px) {
  .nav-wrapper {
    gap: 1.5rem;
  }

  /* Nav-marquee masqué dans le navbar sur cette taille */
  .nav-wrapper .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: none !important;
  }

  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    font-size: 0.85rem !important;
  }

  .nav-menu {
    gap: 2rem;
  }

  .logo-icon {
    height: 220px;
    max-width: 700px;
    margin: -60px 0;
  }

  /* Secondary header masqué sur cette plage */
  .secondary-header {
    display: none !important;
  }

  /* Nav-marquee positionné entre navbar et services-bar */
  .nav-wrapper .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: none !important;
  }

  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    font-size: 0.85rem !important;
  }

  /* Ajuster la position du services-bar pour qu'il soit sous nav-marquee */
  .services-bar {
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height)
    ) !important; /* Position exacte : navbar + nav-marquee (70px + 56px = 126px) */
    margin-top: -8px !important; /* Chevauchement de 8px pour éliminer l'espace */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1100 !important; /* Premier plan : barre et sous-menus visibles */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: none !important; /* Pas de border-top pour éviter l'espace avec nav-marquee */
    border-bottom: 1px solid var(--border-color) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    isolation: isolate !important;
    transform: none !important; /* Pas de transform, le chevauchement est géré par le top */
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  .services-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
    overflow-x: auto !important;
    overflow-y: visible !important; /* Sous-menus visibles en dessous */
    -webkit-overflow-scrolling: touch !important;
  }

  .services-bar-list,
  .services-bar-menu {
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    min-width: max-content !important;
  }

  .services-bar-item {
    flex-shrink: 0 !important;
  }

  .services-bar-link {
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    white-space: nowrap !important;
  }

  .services-bar-link i {
    font-size: 0.7rem;
  }
}

/* Tablette large (max-width: 1024px) — vraies tablettes (iPad 768–1024px) = 1 colonne comme en mobile */
@media (max-width: 1024px) {
  /* Une seule colonne pour que le hero s'affiche correctement sur tablette (évite 2 colonnes étroites) */
  .hero-wrapper {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    row-gap: 0.75rem !important;
    align-items: flex-start !important;
    position: relative !important;
    padding: 1rem 0 3rem;
  }

  .hero-animation {
    order: 1 !important;
    margin: 0 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    padding: 2rem 2rem 0 2rem !important;
    padding-bottom: 0 !important;
    align-self: flex-start !important;
    position: relative !important;
  }

  .hero-content {
    order: 2 !important;
    margin: 0 !important;
    margin-top: -1.25rem !important;
    padding-top: 0 !important;
    transform: none !important;
    align-self: flex-start !important;
    position: relative !important;
  }

  .nav-wrapper {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-marquee {
    max-width: 400px;
    font-size: 0.85rem;
  }

  .nav-marquee-track {
    font-size: 0.85rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .logo-icon {
    height: 180px;
    max-width: 500px;
    margin: -50px 0;
  }

  .secondary-header-content {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .secondary-header-links {
    gap: 0.5rem;
  }

  .secondary-header-links a {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  /* Nav-marquee positionné entre navbar et services-bar */
  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    font-size: 0.85rem !important;
  }

  /* Ajuster la position du services-bar pour qu'il soit sous nav-marquee */
  .services-bar {
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height)
    ) !important; /* Position exacte : navbar + nav-marquee (70px + 56px = 126px) */
    margin-top: -8px !important; /* Chevauchement de 8px pour éliminer l'espace */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1100 !important; /* Premier plan : barre et sous-menus visibles */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: none !important; /* Pas de border-top pour éviter l'espace avec nav-marquee */
    border-bottom: 1px solid var(--border-color) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    isolation: isolate !important;
    transform: none !important; /* Pas de transform, le chevauchement est géré par le top */
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  .services-bar .container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  .services-bar-list,
  .services-bar-menu {
    gap: 1rem;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .services-bar-item {
    flex-shrink: 0;
  }

  .services-bar-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    white-space: nowrap;
  }
}

/* Desktop moyen / tablette large (769px–1399px) : sous-menu au survol visible */
@media (min-width: 769px) and (max-width: 1399px) {
  .services-bar .container {
    overflow-x: auto !important;
    overflow-y: visible !important; /* Sous-menu déroulant visible au survol (ex. 1000px) */
  }
  .services-bar-item {
    position: relative;
  }
}

/* Tablette (max-width: 768px) - Header amélioré */
@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    padding: 0.25rem 0;
    min-height: 60px;
  }

  .logo-icon {
    height: 140px;
    max-width: 400px;
    margin: -35px 0;
  }

  /* Secondary header responsive - Masquer sur tablette */
  .secondary-header {
    display: none !important;
  }

  /* Nav-marquee positionné entre navbar et services-bar */
  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    font-size: 0.85rem !important;
  }

  /* Services bar responsive - affichage direct comme sur desktop */
  .services-bar {
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height)
    ) !important; /* Position exacte : navbar + nav-marquee */
    margin-top: -8px !important; /* Chevauchement de 8px pour éliminer l'espace */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1100 !important; /* Premier plan : barre et sous-menus visibles */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: none !important; /* Pas de border-top pour éviter l'espace avec nav-marquee */
    border-bottom: 1px solid var(--border-color) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    isolation: isolate !important;
    transform: none !important; /* Pas de transform, le chevauchement est géré par le top */
    box-sizing: border-box !important;
    padding: 0 !important;
  }
  /* Tablette : items sur bande défilante, sous-menus (menu) en liste */
  .services-bar .container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .services-bar-list,
  .services-bar-menu {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-width: max-content !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .services-bar-item {
    width: auto !important;
    flex-shrink: 0 !important;
    position: relative;
    border-bottom: none !important;
  }

  .services-bar-link {
    width: auto !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* Sous-menu en dessous de l’item (liste) */
  .services-bar-submenu {
    position: fixed !important;
    left: 1rem !important;
    right: 1rem !important;
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height) - 8px +
        var(--services-bar-height)
    ) !important;
    bottom: auto !important;
    width: calc(100vw - 2rem) !important;
    min-width: 200px !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--primary-color) !important;
    background: var(--bg-section) !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease !important;
    z-index: 1101;
    display: block !important;
    list-style: none !important;
  }

  .services-bar-item:hover .services-bar-submenu,
  .services-bar-item:focus-within .services-bar-submenu,
  .services-bar-item.active .services-bar-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
  }

  .services-bar-submenu li {
    display: block !important;
    width: 100% !important;
  }

  .services-bar-submenu li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* Mobile (max-width: 480px) - Header */
@media (max-width: 480px) {
  .nav-wrapper {
    padding: 0.2rem 0;
    min-height: 55px;
  }

  .logo-icon {
    height: 120px;
    max-width: 350px;
    margin: -30px 0;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .nav-menu {
    top: 55px;
    padding: 1.5rem;
    gap: 1.25rem;
    max-height: calc(100vh - 55px);
  }

  .nav-link {
    font-size: 1rem;
  }

  /* Secondary header mobile - Masquer */
  .secondary-header {
    display: none !important;
  }

  /* Nav-marquee positionné entre navbar et services-bar */
  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    font-size: 0.85rem !important;
  }

  /* Mobile : items sur bande défilante, sous-menus (menu) en liste */
  .services-bar {
    top: calc(var(--navbar-height) + var(--nav-marquee-height)) !important;
    margin-top: -8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    isolation: isolate !important;
    transform: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  .services-bar .container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.75rem !important;
    align-items: center !important;
  }

  .services-bar-list,
  .services-bar-menu {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-width: max-content !important;
    gap: 0.75rem !important;
    padding: 0 0.75rem !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .services-bar-item {
    width: auto !important;
    flex-shrink: 0 !important;
    position: relative;
    border-bottom: none !important;
  }

  .services-bar-link {
    width: auto !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.6rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .services-bar-submenu {
    position: fixed !important;
    left: 1rem !important;
    right: 1rem !important;
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height) - 8px +
        var(--services-bar-height)
    ) !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 !important;
    padding: 0 0.5rem 0.5rem 0.75rem !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 3px solid var(--primary-color) !important;
    background: var(--bg-section) !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease !important;
    z-index: 1101;
  }

  .services-bar-item:hover .services-bar-submenu,
  .services-bar-item:focus-within .services-bar-submenu,
  .services-bar-item.active .services-bar-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
  }

  .services-bar-submenu li {
    display: block !important;
    width: 100% !important;
  }

  .services-bar-submenu li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.8rem !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* Très petits écrans (max-width: 360px) - Header */
@media (max-width: 360px) {
  :root {
    --navbar-height: 50px;
  }

  .nav-wrapper {
    padding: 0.15rem 0;
    min-height: 50px;
  }

  .logo-icon {
    height: 100px;
    max-width: 300px;
    margin: -25px 0;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .nav-menu {
    top: 50px;
    padding: 1.25rem;
    gap: 1rem;
    max-height: calc(100vh - 50px);
  }

  .nav-link {
    font-size: 0.9375rem;
  }

  /* Secondary header - Masquer */
  .secondary-header {
    display: none !important;
  }

  /* Nav-marquee positionné entre navbar et services-bar */
  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    font-size: 0.8rem !important;
  }

  /* Très petit écran : items sur bande défilante, sous-menus (menu) en liste */
  .services-bar {
    top: calc(var(--navbar-height) + var(--nav-marquee-height)) !important;
    margin-top: -8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    isolation: isolate !important;
    transform: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  .services-bar .container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.5rem !important;
    align-items: center !important;
  }

  .services-bar-list,
  .services-bar-menu {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-width: max-content !important;
    gap: 0.6rem !important;
    padding: 0 0.5rem !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .services-bar-item {
    width: auto !important;
    flex-shrink: 0 !important;
    position: relative;
    border-bottom: none !important;
  }

  .services-bar-link {
    width: auto !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 0.5rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .services-bar-submenu {
    position: fixed !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height) - 8px +
        var(--services-bar-height)
    ) !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 160px !important;
    max-width: calc(100vw - 1.5rem) !important;
    margin: 0 !important;
    padding: 0 0.4rem 0.5rem 0.5rem !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 3px solid var(--primary-color) !important;
    background: var(--bg-section) !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease !important;
    z-index: 1101;
  }

  .services-bar-item:hover .services-bar-submenu,
  .services-bar-item:focus-within .services-bar-submenu,
  .services-bar-item.active .services-bar-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
  }

  .services-bar-submenu li {
    display: block !important;
    width: 100% !important;
  }

  .services-bar-submenu li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.75rem !important;
    padding: 0.45rem 0.5rem !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* Orientation paysage sur mobile - Header */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-menu {
    max-height: calc(100vh - 70px);
  }

  .secondary-header {
    padding: 0.3rem 0;
  }

  /* Nav-marquee positionné entre navbar et services-bar */
  .nav-marquee {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important; /* Hauteur fixe exacte : 56px */
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: hidden !important;
    z-index: 1001 !important;
    background: var(--bg-section) !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important; /* Pas de border-bottom pour éviter l'espace avec services-bar */
    border-radius: 0 !important;
    padding: 0 1rem !important; /* Pas de padding vertical pour hauteur exacte */
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Line-height minimal pour éviter l'espace vertical */
    box-shadow: var(--shadow-sm) !important;
  }

  .nav-marquee::before,
  .nav-marquee::after {
    display: none !important;
  }

  .nav-marquee-track {
    width: max-content !important;
    min-width: max-content !important;
    font-size: 0.85rem !important;
  }

  .services-bar {
    top: calc(
      var(--navbar-height) + var(--nav-marquee-height)
    ) !important; /* Position exacte : navbar + nav-marquee (70px + 56px = 126px) */
    margin-top: -8px !important; /* Chevauchement de 8px pour éliminer l'espace */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: var(--services-bar-height) !important;
    min-height: 48px !important;
    z-index: 1100 !important; /* Premier plan : barre et sous-menus visibles */
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: var(--bg-section) !important;
    border-top: none !important; /* Pas de border-top pour éviter l'espace avec nav-marquee */
    border-bottom: 1px solid var(--border-color) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    isolation: isolate !important;
    transform: none !important; /* Pas de transform, le chevauchement est géré par le top */
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  .services-bar .container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  .services-bar-list,
  .services-bar-menu {
    flex-wrap: nowrap !important;
    min-width: max-content !important;
  }

  .services-bar-item {
    flex-shrink: 0 !important;
  }

  .services-bar-link {
    white-space: nowrap !important;
  }
}

/* ============================================
     HEADER CACHÉ AU SCROLL : bandeau + services-bar en haut à la place du header
     (Règles en fin de fichier pour priorité maximale)
     ============================================ */
html body.header-hidden .navbar {
  top: calc(-1 * var(--navbar-height)) !important;
}

html body.header-hidden .nav-marquee {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--nav-marquee-height) !important;
  min-height: var(--nav-marquee-height) !important;
  z-index: 1001 !important;
  transition: top 0.35s ease !important;
}

html body.header-hidden .services-bar {
  position: fixed !important;
  top: var(--nav-marquee-height) !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 0 !important;
  z-index: 1100 !important;
  transition: top 0.35s ease !important;
}

/* Sous-menu fixe : quand le header est masqué, rester juste au-dessus de la barre */
body.header-hidden .services-bar-submenu {
  top: calc(var(--nav-marquee-height) + var(--services-bar-height)) !important;
}

/* Mobile/tablette : barre services toujours derrière le menu hamburger (navbar) */
@media (max-width: 768px) {
  .services-bar {
    z-index: 999 !important;
  }
}

/* 1024px à 1399px uniquement : même affichage que 1400px+ (pas en dessous de 1024px pour garder le bon affichage mobile) */
@media (min-width: 1024px) and (max-width: 1399px) {
  .services-bar {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .services-bar .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 3rem !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .services-bar-list,
  .services-bar-menu {
    gap: 2rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    min-width: auto !important;
    width: auto !important;
  }

  .services-bar-item {
    flex-shrink: 0 !important;
  }

  .services-bar-link {
    font-size: 0.95rem !important;
    padding: 0.6rem 1rem !important;
    white-space: nowrap !important;
  }

  .services-bar-link i {
    font-size: 0.75rem !important;
  }
}

/* Boîte à outils — menu masqué par défaut (html.toolbox-menu-on pour afficher) */
html:not(.toolbox-menu-on) .nav-item-dropdown:has(a[href*="toolbox.php"]),
html:not(.toolbox-menu-on) .nav-menu > li:has(> a.nav-link[href="toolbox.php"]),
html:not(.toolbox-menu-on) #outils-premium,
html:not(.toolbox-menu-on) .footer-links li:has(a[href*="toolbox.php"]) {
  display: none !important;
}
