/* ==========================================================================
   SITOPTIM® by Webetech SAS — Direction Artistique & Design System 2026
   Création de sites internet WordPress, Divi, SEO & Croissance Digitale PME
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Palette Minérale & Émeraude Artisanale */
  --bg-main: #090D14;
  --bg-surface: #0F1622;
  --bg-surface-elevated: #162030;
  --bg-surface-glass: rgba(15, 22, 34, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-emerald: rgba(16, 185, 129, 0.35);

  /* Accents de marque Sitoptim & Webetech */
  --emerald-accent: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.22);
  --emerald-dark: #059669;

  --gold-webetech: #F5B718;
  --gold-glow: rgba(245, 183, 24, 0.25);

  --cyan-accent: #00F2FE;

  /* Typographie */
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-white: #FFFFFF;

  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.15);

  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

/* Arrière-plan subtil avec trame */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(245, 183, 24, 0.04) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-wrapper:hover .brand-logo-img {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 8px rgba(245, 183, 24, 0.25));
}

.brand-badge {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-webetech);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--emerald-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--emerald-accent);
  color: #051610;
  border-color: var(--emerald-accent);
}

.btn-primary:hover {
  background: #34D399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

.btn-gold {
  background: rgba(245, 183, 24, 0.12);
  color: var(--gold-webetech);
  border-color: rgba(245, 183, 24, 0.35);
}

.btn-gold:hover {
  background: var(--gold-webetech);
  color: #07090C;
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ==========================================================================
   BANDEAU SYNERGIE WEBETECH
   ========================================================================== */
.synergy-strip {
  background: linear-gradient(90deg, rgba(245, 183, 24, 0.07) 0%, rgba(16, 185, 129, 0.07) 100%);
  border-bottom: 1px solid rgba(245, 183, 24, 0.18);
  padding: 0.65rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.synergy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.synergy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-webetech);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.synergy-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-webetech);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-webetech);
}

.synergy-link {
  color: var(--gold-webetech);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.synergy-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 3.5rem;
  position: relative;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-emerald);
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--emerald-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-white);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #00F2FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

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

/* Carte Métriques Hero */
.hero-metrics-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-metrics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-accent), var(--gold-webetech));
}

.metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.metrics-header-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.metrics-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-accent);
  font-size: 0.74rem;
  font-family: var(--font-mono);
}

.metrics-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.metric-item {
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   SECTIONS GÉNÉRALES
   ========================================================================== */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--emerald-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* ==========================================================================
   SIMULATEUR DE DEVIS WEB INTERACTIF
   ========================================================================== */
.sim-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: start;
}

.sim-builder-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.sim-step {
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sim-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-step-number {
  width: 26px;
  height: 26px;
  background: var(--emerald-accent);
  color: #051610;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.sim-card-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.sim-option-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.sim-option-card:hover {
  border-color: var(--border-medium);
  background: rgba(22, 32, 48, 0.8);
  transform: translateY(-2px);
}

.sim-option-card.selected {
  border-color: var(--emerald-accent);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.sim-option-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  transition: var(--transition);
}

.sim-option-card.selected .sim-option-badge {
  background: var(--emerald-accent);
  border-color: var(--emerald-accent);
  color: #051610;
}

.sim-option-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 0.35rem;
  padding-right: 20px;
}

.sim-option-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.sim-option-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--emerald-accent);
}

/* Synthèse du Devis / Panier */
.sim-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}

.sim-summary-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.sim-summary-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
}

.sim-summary-items {
  list-style: none;
  margin-bottom: 1.5rem;
}

.sim-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
}

.sim-item-name {
  color: var(--text-secondary);
}

.sim-item-cost {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-white);
}

.sim-total-block {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sim-total-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sim-total-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  margin: 0.3rem 0;
}

.sim-total-delai {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   GRILLE DES RÉALISATIONS
   ========================================================================== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-white);
}

.filter-btn.active {
  background: var(--emerald-accent);
  color: #051610;
  border-color: var(--emerald-accent);
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-emerald);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  transform: translateY(-4px);
}

.project-thumb-frame {
  height: 220px;
  background: #080C12;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb-img {
  transform: scale(1.05);
}

.project-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald-accent);
  font-weight: 600;
  text-transform: uppercase;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.project-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-open-modal {
  background: none;
  border: none;
  color: var(--emerald-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-open-modal:hover {
  color: #34D399;
  transform: translateX(3px);
}

/* ==========================================================================
   OFFRES & PACKS TARIFS
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.pricing-card.featured {
  border-color: var(--emerald-accent);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.12);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-surface) 100%);
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-accent);
  color: #051610;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pricing-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.pricing-check {
  color: var(--emerald-accent);
  font-weight: bold;
}

/* ==========================================================================
   TUTOS & GUIDES DIVI / WORDPRESS
   ========================================================================== */
.tutos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.tuto-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tuto-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
}

.tuto-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tuto-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.tuto-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.tuto-link {
  color: var(--emerald-accent);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   AVIS CLIENTS & MODULE GOOGLE BUSINESS
   ========================================================================== */
.reviews-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--emerald-accent);
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.reviews-score-block {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.reviews-big-score {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #FBBF24;
  line-height: 1;
}

.reviews-stars {
  color: #FBBF24;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.reviews-meta-sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reviews-actions-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

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

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar-char {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
}

.review-author-proj {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-quote {
  font-size: 0.93rem;
  color: var(--text-primary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-footer-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.review-badge-verified {
  color: var(--emerald-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reviews-cta-box {
  margin-top: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--emerald-accent);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   FORMULAIRE DE CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-info-col {
  padding-right: 1.5rem;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--emerald-accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-info-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}

.contact-info-val a {
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-val a:hover {
  color: var(--emerald-accent);
}

.contact-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-white);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--emerald-accent);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

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

/* ==========================================================================
   MODALE DÉTAIL PROJET & LECTEUR TUTO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-white);
}

.modal-body {
  padding: 2rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.modal-gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.modal-gallery-img:hover {
  transform: scale(1.02);
  border-color: var(--emerald-accent);
}

.modal-testimonial-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--emerald-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
}

/* Styles détaillés du lecteur de tutoriels */
.tuto-rich-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.tuto-rich-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 1.8rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tuto-rich-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.2rem 0 0.5rem;
}

.tuto-rich-body p {
  margin-bottom: 1rem;
}

.tuto-rich-body ul, .tuto-rich-body ol {
  margin-bottom: 1.2rem;
  padding-left: 1.4rem;
}

.tuto-rich-body li {
  margin-bottom: 0.5rem;
}

.tuto-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.8rem;
  border-left: 4px solid var(--emerald-accent);
}

.tuto-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9rem;
}

.tuto-step-badge {
  background: var(--emerald-accent);
  color: #051610;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.tuto-step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

.tuto-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--emerald-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tuto-callout-warn {
  background: rgba(245, 183, 24, 0.08);
  border-left: 3px solid var(--gold-webetech);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tuto-callout-info {
  background: rgba(14, 165, 233, 0.08);
  border-left: 3px solid var(--cyan-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tuto-kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #06090E;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 360px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid, .sim-container, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}

/* ==========================================================================
   PAGES GUIDES & ARTICLES DÉDIÉS
   ========================================================================== */
.guide-hero {
  padding: 5rem 0 3rem;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.breadcrumb-nav a {
  color: var(--emerald-accent);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.guide-hero-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 1rem;
  max-width: 950px;
}

.guide-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.guide-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  padding: 4rem 0 6rem;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 90px;
}

.guide-toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.guide-toc-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--emerald-accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.guide-toc-list li {
  margin-bottom: 0.7rem;
}

.guide-toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  display: block;
  transition: var(--transition);
  border-left: 2px solid transparent;
  padding-left: 8px;
}

.guide-toc-list a:hover {
  color: var(--emerald-accent);
  border-left-color: var(--emerald-accent);
}

.guide-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
}

.guide-article-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.compare-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.compare-card.highlight {
  border-color: var(--emerald-accent);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.compare-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.compare-feature-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guide-cta-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3.5rem;
}

.guide-cta-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.8rem;
}

.guide-cta-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .guide-sidebar {
    position: static;
  }
  .guide-article {
    padding: 1.8rem;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .guide-hero-title {
    font-size: 1.9rem;
  }
}

/* ==========================================================================
   AMÉLIORATION 1 : SCROLLSPY & NAVIGATION ACTIVE EN TEMPS RÉEL
   ========================================================================== */
.nav-links a.active {
  color: var(--emerald-accent) !important;
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-accent), var(--cyan-accent));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--emerald-accent);
}

.guide-toc-list a.active {
  color: var(--emerald-accent) !important;
  font-weight: 600;
  border-left-color: var(--emerald-accent) !important;
  padding-left: 0.8rem;
  background: rgba(16, 185, 129, 0.08);
}

/* ==========================================================================
   AMÉLIORATION 2 : BOUTON RETOUR EN HAUT AVEC JAUGE CIRCULAIRE SVG
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.9);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  border-color: var(--emerald-accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 36px var(--emerald-glow);
}

.back-to-top-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.back-to-top-circle-progress {
  fill: none;
  stroke: var(--emerald-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.15s ease-out;
}

.back-to-top-icon {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

/* ==========================================================================
   AMÉLIORATION 3 : ACTIONS DU SIMULATEUR (EXPORT PDF & COPIE 1-CLIC)
   ========================================================================== */
.sim-quote-actions {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.btn-sim-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-sim-action:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald-accent);
  color: var(--emerald-accent);
}

/* Toast de notification */
.sitoptim-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0F172A;
  border: 1px solid var(--emerald-accent);
  color: #F8FAFC;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px var(--emerald-glow);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sitoptim-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   AMÉLIORATION 5 : LIVE SEARCH DANS LES RÉALISATIONS
   ========================================================================== */
.projects-search-box {
  max-width: 460px;
  margin: 0 auto 2rem;
  position: relative;
}

.projects-search-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 30px;
  padding: 12px 42px 12px 44px;
  color: var(--text-white);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.projects-search-input:focus {
  outline: none;
  border-color: var(--emerald-accent);
  box-shadow: 0 0 20px var(--emerald-glow);
}

.projects-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.projects-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  display: none;
}

.projects-search-clear.visible {
  display: block;
}

/* ==========================================================================
   AMÉLIORATION 6 : SLIDER AVANT / APRÈS INTERACTIF
   ========================================================================== */
.before-after-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 22, 34, 0.6) 50%, transparent 100%);
}

.before-after-wrapper {
  max-width: 980px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.before-after-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.before-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--emerald-accent);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.before-layer .before-after-img {
  width: 980px;
  max-width: none;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-accent);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  box-shadow: 0 0 25px var(--emerald-accent);
  cursor: ew-resize;
  z-index: 5;
  pointer-events: none;
}

.before-tag, .after-tag {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 4;
  letter-spacing: 0.04em;
}

.before-tag {
  left: 20px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  backdrop-filter: blur(8px);
}

.after-tag {
  right: 20px;
  background: rgba(16, 185, 129, 0.9);
  color: #000;
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .before-after-container {
    height: 320px;
  }
}

/* ==========================================================================
   AMÉLIORATION 8 : LIGHTBOX PLEIN ÉCRAN POUR LES GALERIES
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content-box {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
  animation: lightboxZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 22, 34, 0.8);
  border: 1px solid var(--border-medium);
  color: var(--text-white);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--emerald-accent);
  color: #000;
  border-color: var(--emerald-accent);
}

.lightbox-prev-btn { left: 20px; }
.lightbox-next-btn { right: 20px; }

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: #EF4444;
  color: #fff;
  border-color: #EF4444;
}

.lightbox-info {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  display: flex;
  gap: 15px;
}

/* ==========================================================================
   AMÉLIORATION 9 : BARRE DE CONFORT DE LECTURE DANS LES GUIDES
   ========================================================================== */
.reading-toolbar {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.reading-tools-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reading-tool-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.reading-tool-btn:hover {
  border-color: var(--emerald-accent);
  color: var(--emerald-accent);
}

.reading-progress-line {
  position: fixed;
  top: 74px;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-accent), var(--cyan-accent));
  z-index: 101;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   AMÉLIORATION 10 : WIDGET DE RÉASSURANCE "JULIEN MONTES EN DIRECT"
   ========================================================================== */
.julien-direct-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.julien-pill-trigger {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 30px;
  padding: 7px 16px 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.julien-pill-trigger:hover {
  border-color: var(--emerald-accent);
  box-shadow: 0 10px 30px var(--emerald-glow);
  transform: translateY(-2px);
}

.julien-avatar-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
}

.julien-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--emerald-accent);
}

.julien-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-accent);
  border: 2px solid var(--bg-surface-elevated);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.julien-pill-text {
  display: flex;
  flex-direction: column;
}

.julien-pill-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.julien-pill-sub {
  font-size: 0.7rem;
  color: var(--emerald-accent);
  font-family: var(--font-mono);
}

.julien-contact-card {
  position: absolute;
  bottom: 56px;
  left: 0;
  width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--emerald-glow);
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: cardFadeUp 0.25s ease-out;
}

.julien-contact-card.open {
  display: flex;
}

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

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

.julien-card-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.julien-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.julien-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-julien-action {
  padding: 8px 12px;
  font-size: 0.82rem;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   STYLE D'IMPRESSION (EXPORT PDF DU DEVIS SIMULATEUR)
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .top-announcement, .site-nav, .site-footer, .back-to-top-btn, 
  .julien-direct-widget, .sim-quote-actions, .sim-nav-controls,
  .projects-search-box, .before-after-section {
    display: none !important;
  }
  #simulateur {
    padding: 0 !important;
  }
  .sim-layout {
    display: block !important;
  }
  .sim-sidebar {
    position: static !important;
    max-width: 100% !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .sim-summary-title, .sim-total-number, .sim-item-cost {
    color: #000 !important;
  }
}


