/* ============================================
   DKTECHNIQUE — Design System CSS v2.0
   Partenaire technique industriel
   ============================================ */

/* --- Variables --- */
:root {
  --rouge: #C41E2A;
  --rouge-sombre: #9B1620;
  --rouge-transparent: rgba(196, 30, 42, 0.1);
  --anthracite: #1A1D23;
  --anthracite-90: rgba(26, 29, 35, 0.9);
  --anthracite-70: rgba(26, 29, 35, 0.7);
  --gris-clair: #F5F5F5;
  --gris-moyen: #E0E0E0;
  --gris-sombre: #666666;
  --or: #D4A853;
  --or-clair: #E8C87A;
  --or-transparent: rgba(212, 168, 83, 0.15);
  --texte: #333333;
  --blanc: #FFFFFF;
  --text-light: #6B7280;

  --h1: clamp(2.5rem, 5vw, 4rem);
  --h2: clamp(1.8rem, 3.5vw, 2.8rem);
  --h3: clamp(1.2rem, 2vw, 1.5rem);
  --body: 1rem;
  --small: 0.875rem;

  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--body);
  color: var(--texte);
  line-height: 1.7;
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rouge), var(--or));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--anthracite);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

h1 em, h2 em {
  color: var(--or);
  font-style: italic;
}

/* Gradient text for special headings */
.text-gradient {
  background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 50%, var(--or) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-bar {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  margin: 1rem 0 2rem;
  border-radius: 2px;
}

.gold-bar-center {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  margin: 1rem auto 2rem;
  border-radius: 2px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Links animés --- */
a:not(.btn):not(.nav-logo):not(.footer-link) {
  position: relative;
}

a:not(.btn):not(.nav-logo):not(.footer-link)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rouge);
  transition: width var(--transition);
}

a:not(.btn):not(.nav-logo):not(.footer-link):hover::after {
  width: 100%;
}

/* ============================================
   HEADER / NAV — Glassmorphism
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 29, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
  background: rgba(26, 29, 35, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blanc);
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--rouge), var(--rouge-sombre));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blanc);
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(196, 30, 42, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--small);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blanc);
}

.nav-links a::after { display: none; }

.nav-cta a.btn {
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.6rem 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blanc);
  transition: var(--transition);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 6rem 0;
}

.section-grey {
  background: var(--gris-clair);
}

.section-dark {
  background: var(--anthracite);
  color: var(--blanc);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--blanc);
}

.section-rouge {
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-sombre) 100%);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.section-rouge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.section-rouge h2, .section-rouge h3 {
  color: var(--blanc);
}

/* ============================================
   HERO — Premium
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--anthracite) 0%, #2a2d33 50%, #1e2127 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(196, 30, 42, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(196, 30, 42, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Animated floating particles */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(212, 168, 83, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  color: var(--blanc);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 168, 83, 0.1);
  color: var(--or);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: var(--small);
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 168, 83, 0.2);
  backdrop-filter: blur(10px);
}

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

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: 0.08;
  pointer-events: none;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

/* ============================================
   BUTTONS — Enhanced
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--body);
  letter-spacing: 0.02em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.btn-rouge {
  background: linear-gradient(135deg, var(--rouge), var(--rouge-sombre));
  color: var(--blanc);
  box-shadow: 0 4px 15px rgba(196, 30, 42, 0.3);
}

.btn-rouge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 42, 0.4);
}

.btn-blanc {
  background: var(--blanc);
  color: var(--anthracite);
  border: 2px solid var(--blanc);
}

.btn-blanc:hover {
  background: transparent;
  color: var(--blanc);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--rouge);
  border: 2px solid var(--rouge);
}

.btn-outline:hover {
  background: var(--rouge);
  color: var(--blanc);
  transform: translateY(-2px);
}

.btn-outline-blanc {
  background: transparent;
  color: var(--blanc);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-blanc:hover {
  background: var(--blanc);
  color: var(--anthracite);
  border-color: var(--blanc);
  transform: translateY(-2px);
}

/* Pulse animation for primary CTA */
.btn-pulse {
  animation: pulse-shadow 2.5s ease-in-out infinite;
}

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 4px 15px rgba(196, 30, 42, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(196, 30, 42, 0.5); }
}

/* ============================================
   CARDS — Glassmorphism & Enhanced
   ============================================ */
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-accent {
  border-left: 4px solid var(--or);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.card-dark {
  background: var(--anthracite);
  color: var(--blanc);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-dark h3, .card-dark h4 { color: var(--blanc); }

.card-dark:hover {
  box-shadow: 0 12px 40px rgba(196, 30, 42, 0.15);
  border-color: rgba(212, 168, 83, 0.2);
}

/* Glass card variant */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-glass-dark {
  background: rgba(26, 29, 35, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--blanc);
}

/* Numbered card for steps */
.card-numbered {
  padding-top: 3rem;
  position: relative;
}

.card-numbered::before {
  content: attr(data-step);
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--rouge), var(--rouge-sombre));
  color: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(196, 30, 42, 0.3);
}

/* --- Icon Circle --- */
.icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--rouge-transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.icon-circle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--rouge);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-circle-or {
  background: var(--or-transparent);
}

.icon-circle-or svg {
  stroke: var(--or);
}

.card:hover .icon-circle {
  transform: scale(1.1);
  background: var(--rouge);
}

.card:hover .icon-circle svg {
  stroke: var(--blanc);
}

.card:hover .icon-circle-or {
  background: var(--or);
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* ============================================
   STATS / CHIFFRES CLES — Enhanced
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  transition: transform var(--transition);
}

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

.stat-item h3 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--rouge);
  line-height: 1;
}

.stat-item p {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--small);
  color: var(--gris-sombre);
  margin-top: 0.5rem;
}

.section-dark .stat-item h3 {
  color: var(--or);
}

.section-dark .stat-item p {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   TESTIMONIALS — Enhanced
   ============================================ */
.testimonial-card {
  position: relative;
  padding: 2rem;
  padding-left: 2.5rem;
  border-left: 3px solid var(--or);
  background: var(--blanc);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 3.5rem;
  color: var(--or-transparent);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--texte);
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--anthracite);
}

.testimonial-role {
  font-size: var(--small);
  color: var(--gris-sombre);
}

/* ============================================
   TIMELINE / ETAPES
   ============================================ */
.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--anthracite);
  color: var(--or);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid var(--or);
  transition: all var(--transition);
}

.timeline-step:hover .step-number {
  background: var(--or);
  color: var(--anthracite);
  transform: scale(1.1);
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.75rem;
  top: 5rem;
  bottom: -1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--or), transparent);
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--gris-sombre);
}

/* ============================================
   LOGOS CLIENTS
   ============================================ */
.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gris-sombre);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: all var(--transition);
  padding: 1rem 1.5rem;
  border: 1px solid var(--gris-moyen);
  border-radius: var(--radius);
}

.logo-item:hover {
  opacity: 1;
  border-color: var(--or);
  transform: translateY(-2px);
}

/* ============================================
   CTA SECTION — Enhanced
   ============================================ */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FLOATING CONTACT BUTTON
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.floating-cta-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
}

.floating-cta-btn:hover {
  transform: scale(1.1);
}

.floating-cta-phone {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-cta-phone:hover {
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.floating-cta-main {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--rouge), var(--rouge-sombre));
  animation: pulse-shadow 2.5s ease-in-out infinite;
}

.floating-cta-main:hover {
  box-shadow: 0 6px 30px rgba(196, 30, 42, 0.5);
}

.floating-cta-main svg {
  width: 24px;
  height: 24px;
}

.floating-cta-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--anthracite);
  color: var(--blanc);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-cta-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--anthracite);
}

.floating-cta-btn:hover .floating-cta-tooltip {
  opacity: 1;
}

/* ============================================
   BADGE / TAG
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-or {
  background: var(--or-transparent);
  color: var(--anthracite);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.tag-rouge {
  background: var(--rouge-transparent);
  color: var(--rouge);
  border: 1px solid rgba(196, 30, 42, 0.2);
}

/* ============================================
   EXPERTISE METER (for À propos)
   ============================================ */
.expertise-bar {
  margin-bottom: 1.25rem;
}

.expertise-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: var(--small);
}

.expertise-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.expertise-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--or), var(--or-clair));
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise-bar-fill.animated {
  width: var(--target-width);
}

/* ============================================
   CERTIFICATION BADGE
   ============================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.cert-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.cert-item:hover {
  border-color: var(--or);
  background: rgba(212, 168, 83, 0.05);
  transform: translateY(-4px);
}

.cert-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--or-transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--or);
  fill: none;
  stroke-width: 2;
}

.cert-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cert-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MARQUEE (défilement continu secteurs)
   ============================================ */
.marquee-wrapper {
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--gris-clair), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--gris-clair), transparent);
}

.section-dark .marquee-wrapper::before {
  background: linear-gradient(90deg, var(--anthracite), transparent);
}

.section-dark .marquee-wrapper::after {
  background: linear-gradient(-90deg, var(--anthracite), transparent);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

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

.marquee-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gris-sombre);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--gris-moyen);
  border-radius: 100px;
  transition: all var(--transition);
}

.section-dark .marquee-item {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.marquee-item:hover {
  border-color: var(--or);
  color: var(--or);
}

/* ============================================
   URGENCY BANNER
   ============================================ */
.urgency-banner {
  background: linear-gradient(90deg, var(--anthracite), #2a2d33);
  padding: 1rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.urgency-banner p {
  color: var(--or);
  font-weight: 600;
  font-size: var(--small);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   METRIC HIGHLIGHT (big number + label)
   ============================================ */
.metric {
  text-align: center;
  padding: 2rem;
}

.metric-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--or), var(--or-clair));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  font-weight: 500;
}

.metric-sublabel {
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
}

/* ============================================
   FOOTER — Enhanced
   ============================================ */
.footer {
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}

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

.footer h4 {
  color: var(--blanc);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer p {
  font-size: var(--small);
  line-height: 1.8;
}

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

.footer-links a {
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer-links a::after { display: none; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .gold-bar {
  margin: 0 auto 1rem;
}

.footer-bottom p {
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   PHOTOS DU SITE
   ============================================ */

/* --- Photo réelle (remplace les placeholders) --- */
.site-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}

.site-photo--tall {
  min-height: 350px;
  max-height: 500px;
}

.site-photo--wide {
  min-height: 180px;
  max-height: 400px;
}

.site-photo--small {
  min-height: 160px;
  max-height: 240px;
}

/* --- Hero image (fond droit) --- */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--anthracite) 0%, transparent 30%);
}

@media (max-width: 768px) {
  .hero-photo {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .hero-photo::after {
    background: linear-gradient(to top, var(--anthracite) 0%, transparent 40%);
  }
}

/* --- Placeholders restants (pages sans photo réelle) --- */
.photo-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    #f0f0f0,
    #f0f0f0 10px,
    #e8e8e8 10px,
    #e8e8e8 20px
  );
  border: 3px dashed var(--or);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

.photo-placeholder::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4A853' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.photo-placeholder .ph-label {
  font-weight: 700;
  color: var(--anthracite);
  font-size: var(--small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.photo-placeholder .ph-desc {
  color: var(--gris-sombre);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 300px;
}

.photo-placeholder--wide {
  min-height: 180px;
}

.photo-placeholder--tall {
  min-height: 350px;
}

/* ============================================
   ANIMATIONS — Enhanced
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* ============================================
   FORM STYLES (global)
   ============================================ */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 0.5rem;
  color: var(--anthracite); font-size: var(--small);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--gris-moyen);
  border-radius: 8px; font-family: inherit; font-size: var(--body);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--blanc);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--rouge);
  box-shadow: 0 0 0 3px var(--rouge-transparent);
}
.form-group textarea { min-height: 150px; resize: vertical; }

.contact-info-card {
  background: var(--blanc); color: var(--texte);
  border-radius: var(--radius); padding: 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border: 1px solid #E0E0E0;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item:last-child { margin-bottom: 0; }

/* ============================================
   SEPARATOR
   ============================================ */
.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gris-moyen), transparent);
  margin: 0;
}

.separator-or {
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 29, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Force toutes les grilles en 1 colonne avec gap reduit */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Ecraser les styles inline gap sur les div parents */
  .grid-2[style*="gap"], .grid-3[style*="gap"], .grid-4[style*="gap"],
  .container > div[style*="gap:4rem"],
  .container > div[style*="gap: 4rem"],
  .container > div[style*="gap:3rem"],
  .container > div[style*="gap: 3rem"] {
    gap: 1.5rem !important;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Hero mobile */
  .hero {
    min-height: auto !important;
    padding-top: 80px;
    padding-bottom: 2rem;
    flex-direction: column;
  }
  .hero-content { max-width: 100% !important; width: 100%; padding: 0 0.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 1.6rem; line-height: 1.3; }
  .hero p { font-size: 0.95rem; }
  .hero-badge { font-size: 0.75rem; }

  /* Hero photo mobile — sous le texte, pleine largeur */
  .hero-photo {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    top: auto !important;
    right: auto !important;
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    order: 2;
  }
  .hero-photo::after {
    background: linear-gradient(to top, var(--anthracite) 0%, transparent 40%) !important;
  }

  /* Cards dark — lisibilite */
  .card-dark { padding: 1.5rem !important; }
  .card-dark p, .card-dark span { color: rgba(255,255,255,0.75) !important; }
  .card-dark h3 { color: var(--or) !important; }

  /* Section dark */
  .section-dark h3 { color: var(--blanc); }
  .section-dark p { color: rgba(255,255,255,0.7); }

  /* Step cards dans section dark */
  .step-card { padding: 1.25rem; }

  /* Images responsive */
  .site-photo { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: var(--radius); }
  .site-photo--small { flex: 1 1 100% !important; max-height: 200px; }
  .site-photo--wide { max-height: 250px; }
  .site-photo--tall { max-height: 300px; }

  /* Flex layouts qui doivent stacker en colonne */
  div[style*="display:flex"][style*="gap:2rem"] {
    flex-direction: column !important;
  }

  /* Temoignages */
  .testimonial-card { padding: 1.5rem; }
  .testimonial-card blockquote { font-size: 0.95rem; }

  /* Boutons */
  .btn { font-size: 0.9rem; padding: 0.75rem 1.5rem; }

  /* Cards */
  .card { padding: 1.5rem; }

  /* Timeline */
  .timeline { padding-left: 0; }
  .timeline-step { padding-left: 1rem; }

  /* Logos secteurs */
  .logo-item { font-size: 0.85rem; padding: 1rem; }

  .floating-cta { bottom: 1.25rem; right: 1.25rem; }
  .floating-cta-tooltip { display: none; }

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

  /* Formulaire */
  .contact-info-card { padding: 1.5rem; }

  /* Section titre */
  .section-title { margin-bottom: 2rem; }
  .section-title p { font-size: 0.9rem; }

  /* Comparaison grille (services.html) */
  div[style*="border-left:4px"] { padding: 1.5rem !important; }
}

/* ============================================
   MOBILE — Optimisations formats specifiques
   ============================================ */

/* Tablettes paysage et mobiles larges (600-768px) */
@media (max-width: 768px) and (min-width: 601px) {
  .hero h1 { font-size: 2rem; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobiles standards - iPhone 12/13/14 Pro Max, Samsung Galaxy (428-600px) */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Mobiles moyens - iPhone 12/13/14, Pixel (390-428px) */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  /* Hero */
  .hero { padding-top: 72px; padding-bottom: 1.5rem; }
  .hero h1 { font-size: 1.5rem; line-height: 1.25; }
  .hero p { font-size: 0.9rem; line-height: 1.6; }
  .hero-badge { padding: 0.3rem 0.75rem; font-size: 0.7rem; }
  .hero-photo { height: 180px !important; }
  .hero-content { padding: 0; }

  /* Stats et grilles */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-item p { font-size: 0.85rem; }
  .grid-4 { gap: 1rem !important; }

  /* Certifications et logos */
  .cert-grid { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .logo-item { font-size: 0.75rem; padding: 0.75rem 0.5rem; }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-title { margin-bottom: 1.5rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }

  /* Cards et contenu */
  .card { padding: 1.25rem; }
  .testimonial-card { padding: 1.25rem; }
  .testimonial-card blockquote { font-size: 0.9rem; }

  /* Timeline */
  .timeline-step { padding-left: 0.75rem; }
  .step-number { width: 2rem; height: 2rem; font-size: 0.9rem; }
  .step-content h3 { font-size: 1rem; }

  /* Header mobile */
  .nav { height: 64px; padding: 0 1rem; }
  .nav-logo { font-size: 1rem; }
  .logo-icon { width: 32px; height: 32px; font-size: 0.75rem; }
  .nav-links { top: 64px; padding: 1.5rem; }
  .nav-links a { font-size: 0.95rem; }

  /* Photos */
  .site-photo { max-height: 220px; }
  .site-photo--small { max-height: 180px; }
  .site-photo--wide { max-height: 200px; }
  .site-photo--tall { max-height: 240px; }

  /* CTA sections */
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section p { font-size: 0.9rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-bottom { font-size: 0.75rem; }

  /* Formulaire */
  .form-group input, .form-group textarea, .form-group select {
    font-size: 16px; /* Evite le zoom iOS auto */
    padding: 0.75rem;
  }
}

/* Petits mobiles - iPhone SE 2020/2022, Mini (360-390px) */
@media (max-width: 390px) {
  .hero h1 { font-size: 1.35rem; }
  .hero p { font-size: 0.85rem; }
  .hero-photo { height: 160px !important; }
  .stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .logos-grid { gap: 0.5rem; }
  .logo-item { font-size: 0.7rem; padding: 0.6rem 0.4rem; }
  h2 { font-size: 1.3rem; }
  .btn { font-size: 0.85rem; padding: 0.65rem 1.25rem; }
  .card { padding: 1rem; }
  .testimonial-card { padding: 1rem; }
}

/* Tres petits mobiles - iPhone 5/SE 1ere gen (320-360px) */
@media (max-width: 360px) {
  .container { padding: 0 0.75rem; }
  .hero h1 { font-size: 1.2rem; }
  .hero p { font-size: 0.8rem; }
  .nav-logo { font-size: 0.9rem; }
  h2 { font-size: 1.2rem; }
  .btn { font-size: 0.8rem; padding: 0.6rem 1rem; }
}

/* Orientation paysage mobile — reduire hauteur hero */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto !important; padding-top: 60px; padding-bottom: 1.5rem; }
  .hero-photo { height: 140px !important; }
  .hero h1 { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .hero p { font-size: 0.85rem; margin-bottom: 1rem; }
  .nav { height: 56px; }
  .nav-links { top: 56px; }
  .header { height: 56px; }
}

/* Safe areas pour iPhone avec encoche/dynamic island */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .nav {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
    .container {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
    .footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
    .floating-cta {
      bottom: max(1.25rem, env(safe-area-inset-bottom));
      right: max(1.25rem, env(safe-area-inset-right));
    }
  }
}

/* Touch targets — minimum 44x44px pour iOS, 48x48px pour Android */
@media (max-width: 768px) {
  .btn, .nav-links a, .footer-link, .nav-toggle, button[type="submit"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle { min-width: 44px; }
  .footer-links li a { padding: 0.5rem 0; display: block; }

  /* Smooth scrolling natif iOS */
  html, body { -webkit-overflow-scrolling: touch; }

  /* Eviter le zoom auto iOS sur input focus */
  input, textarea, select { font-size: 16px !important; }

  /* Supprime le highlight bleu tap iOS */
  * { -webkit-tap-highlight-color: transparent; }

  /* Ameliore le tap sur mobile */
  a, button { touch-action: manipulation; }
}

/* High DPI (Retina) — images plus nettes */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-photo, .hero-photo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ============================================
   CLASSES UTILITAIRES SUPPLEMENTAIRES
   ============================================ */
.icon-circle-rouge {
  background: rgba(196, 30, 42, 0.1);
}
.icon-circle-rouge svg {
  stroke: var(--rouge);
}
.btn-outline-rouge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--rouge);
  color: var(--rouge);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--small);
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline-rouge:hover {
  background: var(--rouge);
  color: var(--blanc);
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
