/* ============================================
   AGENCE REFERENCEMENT TUNISIE - Premium CSS
   Green palette - Expert UX/UI
   ============================================ */

:root {
  --primary:      #0A3D2E;
  --primary-2:    #147A52;
  --primary-3:    #1DB954;
  --accent:       #F5A623;
  --accent-dark:  #D4901A;
  --accent-glow:  rgba(245, 166, 35, 0.15);
  --light-bg:     #F0FAF5;
  --light-bg-2:   #E0F5EB;
  --white:        #FFFFFF;
  --ink:          #0A1F16;
  --muted:        #5A7568;
  --border:       #D0E8DC;
  --glass:        rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    24px;
  --shadow-sm:    0 2px 8px rgba(10, 61, 46, 0.06);
  --shadow-md:    0 8px 30px rgba(10, 61, 46, 0.08);
  --shadow-lg:    0 20px 60px rgba(10, 61, 46, 0.12);
  --shadow-glow:  0 0 40px rgba(29, 185, 84, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #020E08; /* évite le fond blanc sous le footer lors du scroll */
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-3) 0%, var(--primary-2) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  z-index: 1000;
  border-bottom: 1px solid rgba(208, 232, 220, 0.5);
  transition: all 0.4s ease;
}

nav.scrolled {
  box-shadow: 0 4px 20px rgba(10, 61, 46, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1;
}

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

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-3);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--primary-3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
  margin-top: 72px;
  min-height: 88vh;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(29, 185, 84, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, #021A10 0%, #0A3D2E 25%, #147A52 55%, #0D5C3D 80%, #041A12 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--accent), #FFD07B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 520px;
}

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

.hero-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  z-index: 10;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.3), transparent 50%, rgba(245, 166, 35, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hero-card-note {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.9rem !important;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.12);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary-3), var(--accent));
  height: 100%;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 3px;
}

/* ---- Marquee ---- */
.marquee-section {
  background: var(--primary);
  padding: 1.2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(29, 185, 84, 0.2);
  border-bottom: 1px solid rgba(29, 185, 84, 0.2);
}

.marquee {
  display: flex;
  animation: scroll 25s linear infinite;
  gap: 2.5rem;
  white-space: nowrap;
}

.marquee-item {
  flex-shrink: 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.5);
}

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

/* ---- Problem Section ---- */
.problem-section {
  background:
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(29, 185, 84, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, #021A10 0%, #0A3D2E 40%, #0D5C3D 70%, #041A12 100%);
  color: var(--white);
  padding: 7rem 2rem;
}

.problem-container {
  max-width: 1200px;
  margin: 0 auto;
}

.problem-header {
  text-align: center;
  margin-bottom: 4rem;
}

.problem-header h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.problem-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

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

.problem-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-3), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.problem-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.problem-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.problem-card h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.problem-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Services Section ---- */
.services-section {
  padding: 7rem 2rem;
  background:
    radial-gradient(ellipse 40% 30% at 10% 50%, rgba(29, 185, 84, 0.04) 0%, transparent 50%),
    var(--white);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Numéro décoratif en filigrane */
.service-num {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--primary-3);
  opacity: 0.07;
  line-height: 1;
  font-family: var(--font-main);
  pointer-events: none;
  transition: opacity 0.4s ease;
  user-select: none;
}

.service-card:hover .service-num {
  opacity: 0.13;
}

/* Barre accent gauche visible dès le départ */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-3), var(--primary-2));
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: bottom;
  border-radius: 0 0 0 var(--radius-lg);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10, 61, 46, 0.12);
  border-color: rgba(29, 185, 84, 0.2);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-3) 0%, var(--primary-2) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(29, 185, 84, 0.3);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  flex: 1;
}

.service-link {
  color: var(--primary-3);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.service-link::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary-3);
  gap: 0.65rem;
}

.service-link:hover::after {
  transform: translateX(4px);
}

/* ---- Features List ---- */
.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary-3);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- IA/GEO Section ---- */
.ia-geo-section {
  padding: 7rem 2rem;
  background: var(--light-bg);
  position: relative;
}

.ia-geo-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.ia-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: center;
}

.ia-card:hover {
  border-color: var(--primary-3);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.ia-icon {
  width: 56px;
  height: 56px;
  background: var(--light-bg-2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-3);
}

.ia-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.ia-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- About Section ---- */
.about-section {
  padding: 7rem 2rem;
  background: var(--white);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* About visual card — remplace le placeholder .about-image */
.about-visual {
  position: relative;
}

.about-visual-card {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-2) 60%, #1a6b45 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about-visual-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: rgba(29,185,84,0.12);
  border-radius: 50%;
}

.about-stat-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 60px;
  padding: 8px 18px;
  margin-bottom: 2rem;
}

.about-badge-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.about-badge-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.about-stat-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.about-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.about-stat-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  line-height: 1.3;
}

.about-regions {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.about-region-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.about-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-region-tags span {
  background: rgba(29,185,84,0.2);
  border: 1px solid rgba(29,185,84,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 60px;
  padding: 4px 12px;
}

/* ---- Stats Section ---- */
.stats-section {
  background:
    radial-gradient(ellipse 50% 50% at 30% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, #021A10 0%, #0A3D2E 35%, #147A52 65%, #041A12 100%);
  color: var(--white);
  padding: 7rem 2rem;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
}

.stats-header {
  text-align: center;
  margin-bottom: 4rem;
}

.stats-header h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.stats-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

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

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.stat-card .stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ---- Process Section ---- */
.process-section {
  padding: 7rem 2rem;
  background:
    radial-gradient(ellipse 30% 30% at 80% 80%, rgba(29, 185, 84, 0.04) 0%, transparent 50%),
    var(--white);
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-3) 0%, var(--accent) 100%);
  opacity: 0.3;
  z-index: 0;
}

.process-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.process-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.process-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-3) 0%, var(--primary-2) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
  position: relative;
  z-index: 2;
}

.process-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.process-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- FAQ Section ---- */
.faq-section {
  padding: 7rem 2rem;
  background: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-3);
}

.faq-question {
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-question.active {
  background: var(--primary);
  color: var(--white);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary);
  transition: all 0.3s ease;
}

.faq-question.active .faq-toggle {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.8rem 1.4rem;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
  line-height: 1.8;
}

/* ---- Contact Section ---- */
.contact-section {
  padding: 7rem 2rem;
  background: var(--light-bg);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header contact */
.contact-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contact-header h2 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.contact-trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-2);
  background: rgba(29,185,84,0.08);
  border: 1px solid rgba(29,185,84,0.2);
  border-radius: 60px;
  padding: 6px 14px;
}

.contact-badge svg {
  stroke: var(--primary-3);
  flex-shrink: 0;
}

/* Layout 2 colonnes */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

/* Formulaire */
.contact-form-new {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.form-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.form-trust-note svg {
  stroke: var(--primary-3);
  flex-shrink: 0;
}

/* Panel info contact */
.contact-info-panel {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.contact-info-inner {
  padding: 2.25rem;
  position: relative;
}

.contact-info-panel h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.contact-info-lead {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-wa { background: #25D366; color: #fff; }
.contact-method-email { background: rgba(255,255,255,0.15); color: #fff; }
.contact-method-email svg { stroke: #fff; }
.contact-method-loc { background: rgba(255,255,255,0.15); color: #fff; }
.contact-method-loc svg { stroke: #fff; }

.contact-method-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-method-text strong {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-method-text a,
.contact-method-text span {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-method-text a:hover {
  color: var(--primary-3);
}

.contact-response-badge {
  margin-top: 1.75rem;
  background: rgba(29,185,84,0.2);
  border: 1px solid rgba(29,185,84,0.35);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-3);
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.1);
}

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

.form-group button,
.contact-form .btn {
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.info-block {
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.info-block:hover {
  border-color: var(--primary-3);
  box-shadow: var(--shadow-sm);
}

.info-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.info-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-3), var(--primary-2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.info-text {
  margin-left: 2.8rem;
}

.info-text a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.info-text a:hover {
  color: var(--primary-3);
}

/* ---- CTA Section ---- */
.cta-section {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(29, 185, 84, 0.1) 0%, transparent 50%),
    linear-gradient(160deg, #021A10 0%, #0A3D2E 35%, #147A52 65%, #041A12 100%);
  color: var(--white);
  padding: 7rem 2rem;
  text-align: center;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ---- Footer ---- */
footer {
  background: #020E08;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.footer-logo span {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  padding-top: 2rem;
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Staggered animations */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.2s; }
.problem-grid .problem-card:nth-child(2) { transition-delay: 0.1s; }
.problem-grid .problem-card:nth-child(3) { transition-delay: 0.2s; }
.process-grid .process-card:nth-child(2) { transition-delay: 0.1s; }
.process-grid .process-card:nth-child(3) { transition-delay: 0.2s; }
.process-grid .process-card:nth-child(4) { transition-delay: 0.3s; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--primary-3);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ---- Page Hero ---- */
.page-hero {
  margin-top: 0;
  background:
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(29, 185, 84, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #021A10 0%, #0A3D2E 30%, #147A52 60%, #041A12 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* ---- Page Content ---- */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-section {
  margin-bottom: 2rem;
}

.page-section h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-3);
}

.page-section h3 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-section ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.page-section ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.page-section ul li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-3), var(--primary-2));
  border-radius: 50%;
  flex-shrink: 0;
}

.highlight-box {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-3);
  padding: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.highlight-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.highlight-box p {
  color: var(--muted);
  margin: 0;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content p {
    max-width: 100%;
  }

  .problem-grid,
  .services-grid,
  .ia-geo-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process-grid::before {
    display: none;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    height: 280px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    position: static;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .about-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  nav.menu-open .nav-links,
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    margin-top: 64px;
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-container {
    padding: 2rem 1.5rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 12px 24px;
  }

  .problem-grid,
  .services-grid,
  .ia-geo-grid,
  .stats-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .nav-container {
    padding: 0.8rem 1.2rem;
  }

  .services-section,
  .problem-section,
  .stats-section,
  .process-section,
  .faq-section,
  .contact-section,
  .cta-section,
  .ia-geo-section,
  .about-section {
    padding: 4rem 1.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .breadcrumb {
    margin: 70px auto 0;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
  }

  .page-hero {
    margin-top: 0;
    padding: 3rem 1.5rem;
  }

  .page-content {
    padding: 2rem 1.5rem;
  }

  .stat-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .marquee-item {
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   SERVICE PAGE LAYOUT — sidebar + related services
   ============================================================ */

/* Layout 2 colonnes : contenu principal + sidebar */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.service-main {
  min-width: 0;
}

/* Sidebar sticky */
.service-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Bloc liste services dans la sidebar */
.sidebar-services {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar-services h3 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-3);
}

.sidebar-services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-services ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.sidebar-services ul li a::before {
  content: '→';
  color: var(--primary-3);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sidebar-services ul li a:hover {
  background: var(--white);
  color: var(--primary);
}

.sidebar-services ul li.active-service a {
  color: var(--primary);
  font-weight: 600;
  background: var(--white);
}

/* Bloc CTA dans la sidebar */
.sidebar-cta {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(29, 185, 84, 0.15);
  border-radius: 50%;
}

.sidebar-cta h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  position: relative;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  position: relative;
}

.btn-sidebar-wp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--white) !important;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  position: relative;
}

.btn-sidebar-wp:hover {
  background: #128C7E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-sidebar-devis {
  display: block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.83rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-sidebar-devis:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Section "Services connexes" en bas */
.related-services {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.related-services h2 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

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

.related-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.related-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-3), var(--primary-2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary-3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-card:hover::after {
  transform: scaleX(1);
}

.related-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.related-card h3 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.related-card p {
  color: var(--muted);
  font-size: 0.83rem;
  margin: 0;
  line-height: 1.4;
}

/* FAQ dans la page service : section dédiée */
.service-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.service-faq h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

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

@media (max-width: 640px) {
  .service-sidebar {
    grid-template-columns: 1fr;
  }

  .related-cards {
    grid-template-columns: 1fr;
  }
}
