/* ==========================================================================
   LKdigital Mali — Design System CSS (Charte Graphique Bleu Marine / Navy Blue)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & COLOR PALETTES (Charte Bleu Marine)
   -------------------------------------------------------------------------- */
:root {
  /* Thème Sombre Bleu Marine (Default) */
  --bg-main: #0B132B;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-surface: #0F172A;
  --bg-alt: #111C38;
  --bg-header: rgba(11, 19, 43, 0.9);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Bleu Marine Profond & Bleu Royal Sombre Intensifié */
  --navy-dark: #070D1E;
  --navy-primary: #0A225C;
  --navy-light: #0052CC;
  --navy-hover: #003D99;
  --blue-accent: #0066FF;
  --blue-sky: #0088FF;
  --navy-glow: rgba(0, 82, 204, 0.4);

  --border-color: rgba(255, 255, 255, 0.12);
  --border-active: rgba(0, 102, 255, 0.65);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 82, 204, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-subheading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides (Thème Bleu Marine Clair - Lisibilité Haute Définition) */
[data-theme="light"] {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-alt: #F1F5F9;
  --bg-header: rgba(255, 255, 255, 0.96);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;

  --navy-dark: #0A1128;
  --navy-primary: #0F2B66;
  --navy-light: #0066FF;
  --navy-hover: #0052CC;
  --blue-accent: #0066FF;
  --blue-sky: #0052CC; /* Bleu foncé très lisible sur fond blanc */
  --navy-glow: rgba(0, 102, 255, 0.15);

  --border-color: #CBD5E1;
  --border-active: #0066FF;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px; /* Augmentation globale de la taille de police */
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   OPTIMISATION DU MODE CLAIR (LIGHT MODE - LISIBILITE OPTIMALE)
   ========================================================================== */
html:not(.dark) body {
  background-color: #F8FAFC;
  color: #0F172A;
}

html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}

html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

/* Keyframes d'animation bounce élégante et fluide */
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

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

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

.animate-bounce-subtle {
  animation: bounce-subtle 2.6s ease-in-out infinite;
}

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

.animate-bounce-icon {
  animation: bounce-icon 2.2s ease-in-out infinite;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

ul {
  list-style: none;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy-light);
  color: #FFF;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & BUTTONS (Bleu Marine - Typographie Compacte & Élégante)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.02rem, 1.4vw, 1.25rem); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
h5, h6 { font-size: 0.85rem; font-weight: 600; }

p {
  font-size: 0.88rem;
  line-height: 1.58;
}

.hero-text p {
  font-size: 0.94rem;
  line-height: 1.6;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-subheading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-sky);
  background: rgba(37, 99, 235, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-subheading);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: #0040B8;
  color: #FFFFFF;
  border: 1px solid rgba(0, 102, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 64, 184, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #002B80;
  box-shadow: 0 6px 20px rgba(0, 64, 184, 0.65);
}

.btn-navy {
  background: #0A225C;
  color: #FFFFFF;
  font-weight: 700;
}
.btn-navy:hover {
  background: #002B80;
  transform: translateY(-2px);
}

.btn-gold {
  background: #0040B8;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 64, 184, 0.45);
}
.btn-gold:hover {
  background: #002B80;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--blue-accent);
  color: var(--blue-sky);
  background: rgba(37, 99, 235, 0.1);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFF;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFF;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFF;
}
.btn-whatsapp:hover {
  background: #1EBE57;
}

.btn-block { width: 100%; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 0.92rem; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   4. HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.logo-text span {
  color: var(--blue-sky);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--blue-accent);
  border-radius: 2px;
}



.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle:hover {
  border-color: var(--blue-accent);
  color: var(--blue-sky);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero-bg-glow {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-sky);
  margin-bottom: 1.5rem;
}
.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--blue-sky);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 1.25rem 0 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Code visual snippet box */
.visual-card-glass {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  backdrop-filter: blur(20px);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }
.code-title { margin-left: 0.5rem; font-size: 0.8rem; font-family: monospace; color: var(--text-muted); }

.code-body pre {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #E2E8F0;
  overflow-x: auto;
}
.kwd { color: #F472B6; }
.cls { color: #60A5FA; }
.fn  { color: #93C5FD; }
.var { color: #A7F3D0; }
.str { color: #34D399; }

.visual-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy-primary);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.badge-icon { font-size: 1.5rem; }
.badge-text { display: flex; flex-direction: column; font-size: 0.8rem; }
.badge-text strong { color: #FFFFFF; }
.badge-text span { color: var(--blue-sky); }

/* Stats Bar */
.stats-bar {
  margin-top: 4rem;
  background: var(--bg-surface);
  border-y: 1px solid var(--border-color);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-sky);
}
.stat-plus {
  font-size: 2.2rem;
  color: var(--blue-sky);
  font-weight: 700;
}
.stat-num-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   6. SECTIONS COMMON & CARDS
   -------------------------------------------------------------------------- */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 680px;
  margin-bottom: 3.5rem;
}
.section-head.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-sky);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  margin-bottom: 0.8rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-sky);
}
.service-link:hover {
  gap: 0.7rem;
  color: #93C5FD;
}

/* Process Timeline Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  position: relative;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}
.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.35);
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* Tech Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.tech-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.tech-badge:hover {
  border-color: var(--blue-accent);
  color: var(--blue-sky);
  transform: translateY(-2px);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars { color: var(--blue-sky); font-size: 1.1rem; }
.testimonial-card p { font-style: italic; color: var(--text-secondary); font-size: 0.95rem; }
.author-info strong { display: block; color: var(--text-primary); }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* CTA Box */
.section-cta {
  background: #0F172A;
  border-y: 1px solid var(--border-color);
  text-align: center;
}
.cta-box-inner {
  max-width: 750px;
}
.cta-box-inner h2 { margin-bottom: 1rem; }
.cta-box-inner p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   7. PAGE HERO & INNER PAGES
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 4rem 0 3rem;
  background: #0F172A;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.page-hero-sub {
  max-width: 650px;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Services Detail Cards */
.services-detail-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.service-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-sky);
  background: rgba(37, 99, 235, 0.15);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.service-detail-info h2 { margin-bottom: 1rem; }
.service-detail-info p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.features-block { margin: 1.5rem 0; }
.features-block h4 { margin-bottom: 0.75rem; color: var(--text-primary); }
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-sky);
  font-weight: 700;
}
.tech-stack-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* Portfolio Filters & Cards */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--navy-light);
  color: #FFF;
  border-color: var(--blue-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-accent);
}
.portfolio-img-box {
  height: 180px;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.portfolio-placeholder-graphic {
  text-align: center;
}
.card-icon { font-size: 2.5rem; display: block; margin-bottom: 0.4rem; }
.card-tech { font-size: 0.8rem; font-weight: 700; color: var(--blue-sky); text-transform: uppercase; }
.portfolio-body { padding: 1.8rem; }
.portfolio-cat { font-size: 0.8rem; color: var(--blue-sky); font-weight: 700; text-transform: uppercase; }
.portfolio-body h3 { margin: 0.4rem 0 0.8rem; font-size: 1.25rem; }
.portfolio-body p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.2rem; }
.portfolio-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   8. SIMULATEUR DE DEVIS INTERACTIF (Bleu Marine)
   -------------------------------------------------------------------------- */
.devis-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
}

.devis-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group-devis {
  margin-bottom: 2.5rem;
}
.devis-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.radio-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.radio-card input { display: none; }
.radio-card .card-inner {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.radio-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.radio-card strong { color: var(--text-primary); font-size: 0.95rem; margin-bottom: 0.3rem; }
.radio-card span { font-size: 0.8rem; color: var(--text-secondary); }

.radio-card input:checked + .card-inner {
  border-color: var(--blue-accent);
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

.select-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.select-btn-item input { display: none; }
.select-btn-item span {
  display: block;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.select-btn-item input:checked + span {
  background: var(--navy-light);
  color: #FFF;
  border-color: var(--blue-accent);
}

.checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.checkbox-card input { display: none; }
.checkbox-card .chk-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.checkbox-card strong { display: block; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.checkbox-card span { display: block; font-size: 0.78rem; color: var(--text-secondary); }
.checkbox-card input:checked + .chk-content {
  border-color: var(--blue-accent);
  background: rgba(37, 99, 235, 0.12);
}

/* Devis Summary Sidebar */
.devis-summary-box {
  position: sticky;
  top: 90px;
}
.summary-card-sticky {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0 1.5rem;
}
.summary-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.summary-detail-row span { color: var(--text-secondary); }
.summary-price-box {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin: 1.5rem 0;
}
.price-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 700; }
.price-amount {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--blue-sky);
  margin: 0.4rem 0;
}
.price-note { font-size: 0.72rem; color: var(--text-muted); display: block; }

.form-group-sm { margin-bottom: 1rem; }
.form-group-sm label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.form-group-sm input, .form-group-sm textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.form-group-sm input:focus, .form-group-sm textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
}

/* --------------------------------------------------------------------------
   9. CONTACT & FORMS
   -------------------------------------------------------------------------- */
.contact-grid-pro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-methods-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-sky);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-text { display: flex; flex-direction: column; font-size: 0.9rem; }
.method-text span { color: var(--text-muted); font-size: 0.8rem; }
.method-text strong { color: var(--text-primary); font-size: 1rem; }

.whatsapp-direct-box {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.wa-icon { font-size: 1.5rem; }
.wa-text strong { display: block; color: var(--text-primary); }
.wa-text span { font-size: 0.85rem; color: var(--text-secondary); }

.contact-form-main .form-group {
  margin-bottom: 1.5rem;
}
.contact-form-main label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.contact-form-main input,
.contact-form-main textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.contact-form-main input:focus,
.contact-form-main textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.25);
}
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   10. FLASH ALERTS & FOOTER
   -------------------------------------------------------------------------- */
.flash-container {
  margin-top: 1.5rem;
}
.flash-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  position: relative;
  font-size: 0.95rem;
}
.flash-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
}
.flash-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
}
.flash-icon { flex-shrink: 0; display: flex; }
.flash-content { flex: 1; }
.flash-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

/* Site Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}
.footer-cta-box {
  background: #16203B;
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}
.footer-cta-text h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.footer-cta-text p { color: var(--text-secondary); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin: 1rem 0; }
.footer-location { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }

.newsletter-form { margin-top: 1.5rem; }
.newsletter-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.input-group { display: flex; gap: 0.5rem; }
.input-group input {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}
.input-group button {
  background: var(--navy-light);
  border: none;
  color: #FFF;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.input-group button:hover {
  background: var(--blue-accent);
}

.footer-col h4 { margin-bottom: 1.2rem; font-size: 1.05rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--blue-sky); }

.footer-contact-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text-secondary); }

.social-row { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-row a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.social-row a:hover { border-color: var(--blue-accent); color: var(--blue-sky); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom-links a { color: var(--text-muted); margin: 0 0.4rem; }

/* --------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid, .devis-grid, .contact-grid-pro, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cta-box { flex-direction: column; text-align: center; }
  .devis-summary-box { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; }

  .header-cta { display: none; }
  .radio-cards-grid, .checkboxes-grid, .form-row-2 { grid-template-columns: 1fr; }
  .select-buttons-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. SURCHARGES DÉDIÉES AU MODE CLAIR (LISIBILITÉ ET CONTRASTE PARFAITS)
   ========================================================================== */
[data-theme="light"] .section-tag,
[data-theme="light"] .hero-badge {
  color: #0040A8 !important;
  background: rgba(0, 82, 204, 0.1) !important;
  border-color: rgba(0, 82, 204, 0.3) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .stat-num,
[data-theme="light"] .stat-plus,
[data-theme="light"] .price-amount,
[data-theme="light"] .service-link,
[data-theme="light"] .portfolio-cat,
[data-theme="light"] .card-tech,
[data-theme="light"] .service-badge,
[data-theme="light"] .stars {
  color: #0040A8 !important;
}

[data-theme="light"] .service-card,
[data-theme="light"] .step-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .devis-form-box,
[data-theme="light"] .summary-card-sticky,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-form-card,
[data-theme="light"] .service-detail-card,
[data-theme="light"] .about-sidebar-box .office-card {
  background: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06) !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .step-card p,
[data-theme="light"] .testimonial-card p,
[data-theme="light"] .portfolio-body p,
[data-theme="light"] .hero-lede,
[data-theme="light"] .page-hero-sub,
[data-theme="light"] .contact-form-card p,
[data-theme="light"] .devis-form-box p,
[data-theme="light"] .check-list li,
[data-theme="light"] .contact-info-card p,
[data-theme="light"] .stat-label {
  color: #1E293B !important;
  font-weight: 500 !important;
}

[data-theme="light"] .service-icon,
[data-theme="light"] .icon-box {
  background: rgba(0, 102, 255, 0.1) !important;
  border-color: rgba(0, 102, 255, 0.25) !important;
  color: #0040A8 !important;
}

[data-theme="light"] .visual-card-glass {
  background: #0F172A !important;
  color: #F8FAFC !important;
}

[data-theme="light"] .radio-card .card-inner,
[data-theme="light"] .checkbox-card .chk-content,
[data-theme="light"] .select-btn-item span {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .radio-card strong,
[data-theme="light"] .checkbox-card strong {
  color: #0F172A !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #64748B !important;
}

[data-theme="light"] .page-hero,
[data-theme="light"] .section-cta {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}
[data-theme="light"] .cta-box-inner p {
  color: #1E293B !important;
}

[data-theme="light"] .portfolio-img-box {
  background: #0F172A !important;
}

[data-theme="light"] .footer-cta-box {
  background: #E0E7FF !important;
  border-color: rgba(0, 102, 255, 0.25) !important;
}

/* --------------------------------------------------------------------------
   EFFETS D'ANIMATION AU SCROLL (SCROLL REVEAL & HEADER SCROLLED)
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0052CC, #00C8FF);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

.site-header.is-scrolled {
  background: rgba(7, 13, 30, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 102, 255, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Base Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

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

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

.reveal.reveal-fade {
  transform: translateY(0);
}

.reveal.is-revealed, .reveal.active {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Stagger Delays pour grilles */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Bouton Retour en Haut (Scroll To Top) */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #0052CC;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
}

.scroll-to-top:hover {
  background: #0066FF;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.6);
}

/* --------------------------------------------------------------------------
   MOTEUR PARALLAXE & MOUVEMENTS DYNAMIQUES EN CONTINU AU SCROLL
   -------------------------------------------------------------------------- */
.has-parallax,
.hero-visual,
.visual-card-glass,
.service-card,
.portfolio-card,
.stat-card,
.process-card,
.about-card {
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.25;
  will-change: transform;
}

[data-theme="light"] .footer-cta-text h3 {
  color: #0F172A !important;
}
[data-theme="light"] .footer-cta-text p {
  color: #1E293B !important;
}
