/*
Theme Name: NEMMA One-Pager
Theme URI: https://nemma.org
Author: NEMMA SASU
Author URI: https://nemma.org
Description: One-pager professionnel NEMMA — Infogérance et installation IT pour TPE, PME et professions libérales en Île-de-France.
Version: 1.0
License: Proprietary
Text Domain: nemma
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-primary:     #1F3864;
  --color-secondary:   #2E75B6;
  --color-accent:      #F4B400;
  --color-light:       #D9E2F3;
  --color-bg:          #F8F9FB;
  --color-bg-dark:     #111827;
  --color-text:        #1a1a2e;
  --color-text-muted:  #6b7280;
  --color-white:       #ffffff;
  --color-border:      #e5e7eb;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1.25rem;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(31,56,100,0.10);
  --shadow-lg:   0 8px 32px rgba(31,56,100,0.14);

  --transition:  0.22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section { padding: 5rem 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover {
  background: #e0a500;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(31,56,100,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-lg); }

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo span { color: var(--color-accent); }

.nav-logo-img {
  height: 36px;
  width: auto;
  /* Logo is dark — invert to white for dark navbar */
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-white); }

.nav-cta {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}
.nav-cta:hover { background: #e0a500; color: var(--color-primary) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1F3864 0%, #2E75B6 60%, #1a4f8a 100%);
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero-title .highlight { color: var(--color-accent); }

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
}

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

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* ============================================================
   PILIERS (4 USPs)
   ============================================================ */
#piliers {
  background: var(--color-white);
}

.piliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pilier-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pilier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--color-secondary);
  border-radius: 4px 0 0 4px;
}
.pilier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-light);
}

.pilier-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.pilier-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pilier-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: var(--color-bg);
}

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

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--color-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ============================================================
   FORFAITS
   ============================================================ */
#forfaits {
  background: var(--color-white);
}

.forfaits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.forfait-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}
.forfait-card:hover {
  box-shadow: var(--shadow-md);
}

.forfait-card.featured {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.forfait-badge {
  display: none;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.forfait-card.featured .forfait-badge { display: block; }

.forfait-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.forfait-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.forfait-price-unit {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.forfait-divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.25rem 0;
}

.forfait-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-text);
  padding: 0.35rem 0;
  line-height: 1.45;
}
.forfait-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.forfait-cta {
  display: block;
  text-align: center;
  margin-top: 1.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.forfait-cta:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.forfait-card.featured .forfait-cta {
  background: var(--color-secondary);
  color: var(--color-white);
}
.forfait-card.featured .forfait-cta:hover {
  background: #255f9e;
}

/* ============================================================
   TARIFS TABLE
   ============================================================ */
#tarifs {
  background: var(--color-bg);
}

.tarifs-section { margin-bottom: 3rem; }

.tarifs-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tarifs-table th {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.tarifs-table th:last-child { text-align: right; }

.tarifs-table td {
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.tarifs-table tr:last-child td { border-bottom: none; }
.tarifs-table tr:hover td { background: #f0f5ff; }

.tarifs-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-secondary);
  white-space: nowrap;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e0a500 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(31,56,100,0.75);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.6;
}

.btn-cta-dark {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-cta-dark:hover {
  background: #162a50;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,56,100,0.25);
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
#contact {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 2.5rem;
}

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

.contact-brand {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.contact-brand span { color: var(--color-accent); }

.contact-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.contact-item-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}

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

.contact-form button {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.contact-form button:hover {
  background: #e0a500;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
}
#scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transition: width 0.1s linear;
}

/* ============================================================
   HERO — TWO COLUMN LAYOUT
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

.hero-widget {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: widget-in 0.8s ease 0.3s both;
}

@keyframes widget-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.widget-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
}

.widget-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  flex: 1;
}

.widget-live {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #4ade80;
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
}

.widget-body { padding: 0.5rem 0; }

.widget-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}
.widget-row:last-child { border-bottom: none; }
.widget-row:hover { background: rgba(255,255,255,0.05); }

.widget-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green  { background: #4ade80; }
.dot-yellow { background: #fbbf24; }
.dot-blue   { background: #60a5fa; }

.widget-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
}

.widget-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
}

.widget-footer {
  padding: 0.75rem 1.25rem;
  background: rgba(244,180,0,0.1);
  border-top: 1px solid rgba(244,180,0,0.2);
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   SECTION DIAGONALES
   ============================================================ */
.section-diagonal-bottom {
  padding-bottom: calc(5rem + 60px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
  margin-bottom: -60px;
}

.section-diagonal-both {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4f8a 100%);
  padding-top: calc(5rem + 60px);
  padding-bottom: calc(5rem + 60px);
  clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
  margin-top: -60px;
  margin-bottom: -60px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testi-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: background var(--transition);
}
.testi-card:hover { background: rgba(255,255,255,0.11); }

.testi-stars {
  color: var(--color-accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.testi-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testi-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
}

.testi-role {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}

/* ============================================================
   FORFAIT — BORDURE DÉGRADÉE
   ============================================================ */
.forfait-card.gradient-border {
  border: none;
  background: linear-gradient(var(--color-white), var(--color-white)) padding-box,
              linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
  border: 2px solid transparent;
}

/* ============================================================
   WHATSAPP FLOTTANT
   ============================================================ */
#wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 990;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow var(--transition);
}
#wa-float.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
#wa-float:hover {
  background: #1db954;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  transform: scale(1.08);
}
#wa-float svg { display: block; }

/* ============================================================
   FOOTER LOGO
   ============================================================ */
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ============================================================
   TARIFS GATE
   ============================================================ */
.tarifs-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tarifs-gate-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tarifs-gate-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.tarifs-gate-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tarifs-gate-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tarifs-gate-list li {
  font-size: 0.92rem;
  color: var(--color-text);
  padding-left: 0.25rem;
}

.tarifs-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.tarifs-form-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.tarifs-lock-icon { font-size: 1.1rem; }

.tarifs-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.tarifs-form input,
.tarifs-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
}

.tarifs-form input:focus,
.tarifs-form select:focus {
  border-color: var(--color-secondary);
  background: var(--color-white);
}

.tarifs-form select { cursor: pointer; color: var(--color-text-muted); }
.tarifs-form select:valid { color: var(--color-text); }

.tarifs-form-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.25rem;
}
.tarifs-form-btn:hover {
  background: #162a50;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tarifs-form-rgpd {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.tarifs-success {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-primary);
}
.tarifs-success strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.tarifs-success p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--color-primary);
    padding: 1.5rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 998;
  }
  .nav-links.open a { font-size: 1rem; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }

  .forfait-card.featured { transform: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .tarifs-gate { grid-template-columns: 1fr; gap: 2rem; }
  .tarifs-form-row { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-widget { display: none; }
  .section-diagonal-bottom { clip-path: none; margin-bottom: 0; padding-bottom: 3.5rem; }
  .section-diagonal-both   { clip-path: none; margin-top: 0; margin-bottom: 0; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  #wa-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }

  .footer-bottom { justify-content: center; text-align: center; }

  .tarifs-table td:last-child { white-space: normal; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   PARTIE 1 — ANIMATIONS & DYNAMISME VISUEL
   ============================================================ */

/* 1. COMPTEURS ANIMÉS */
.stat-value { display: inline-block; transition: opacity 0.3s ease; }
.stat-value.counting { opacity: 0.85; }

/* 2. TYPING EFFECT */
.hero-title .typed-target {
  display: inline;
  border-right: 3px solid var(--color-accent);
  animation: blink-cursor 0.75s step-end infinite;
  white-space: normal;
  word-break: break-word;
}
.hero-title .typed-target.done {
  border-right-color: transparent;
  animation: none;
}
@keyframes blink-cursor {
  0%, 100% { border-right-color: var(--color-accent); }
  50%       { border-right-color: transparent; }
}

/* 3. CARDS SERVICES — EFFET HOVER 3D */
.services-grid { perspective: 1200px; }
.service-card {
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg) translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.service-card:not(:hover) { transform: rotateX(0deg) rotateY(0deg) translateZ(0) !important; }
.service-3d-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.service-card:hover .service-3d-shine { opacity: 1; }

/* 4. CARROUSEL TÉMOIGNAGES */
@media (min-width: 769px) {
  .temoignages-grid { display: block; position: relative; min-height: 220px; }
  .testi-card {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
  }
  .testi-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
  }
  .testi-card.leaving {
    opacity: 0;
    transform: translateX(-40px);
  }
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* 5. TIMELINE / SECTION PROCESS */
#process { background: var(--color-white); position: relative; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  padding-top: 2rem;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 3.25rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 3px;
  background: var(--color-border);
  z-index: 0;
}
.process-line-fill {
  position: absolute;
  top: 3.25rem;
  left: calc(16.66% + 1rem);
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  z-index: 1;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.process-line-fill.animated { width: calc(66.66% - 2rem); }

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.process-step.visible { opacity: 1; transform: translateY(0); }
.process-step:nth-of-type(1) { transition-delay: 0s; }
.process-step:nth-of-type(2) { transition-delay: 0.2s; }
.process-step:nth-of-type(3) { transition-delay: 0.4s; }

.process-step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}
.process-step.visible .process-step-number {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 0 6px rgba(46,117,182,0.12);
}
.process-step:nth-of-type(3).visible .process-step-number {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(244,180,0,0.15);
}
.process-step-icon { font-size: 1.6rem; display: block; line-height: 1; }
.process-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.process-step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 200px;
}

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 0; }
  .process-grid::before { display: none; }
  .process-line-fill { display: none; }
  .process-step { flex-direction: row; text-align: left; gap: 1.25rem; align-items: flex-start; }
  .process-step-number { flex-shrink: 0; margin-bottom: 0; }
  .process-step-desc { max-width: none; }
}

/* 6. CANVAS PARTICULES */
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
#hero .hero-grid { position: relative; z-index: 1; }

/* ============================================================
   PARTIE 2 — SECTION INTELLIGENCE ARTIFICIELLE
   ============================================================ */

#ia {
  background: linear-gradient(145deg, #0d1b2a 0%, #1a2c45 45%, #0f2035 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
#ia::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,180,0,0.09) 0%, transparent 70%);
  pointer-events: none;
}
#ia::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,117,182,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244,180,0,0.12);
  border: 1px solid rgba(244,180,0,0.35);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.ia-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2s infinite;
}
#ia .section-title { color: var(--color-white); }
#ia .section-subtitle { color: rgba(255,255,255,0.6); max-width: 640px; }

.ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.ia-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ia-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(244,180,0,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ia-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(244,180,0,0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(244,180,0,0.2);
}
.ia-card:hover::before { opacity: 1; }

.ia-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(244,180,0,0.12);
  border: 1px solid rgba(244,180,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ia-card:hover .ia-icon {
  background: rgba(244,180,0,0.2);
  box-shadow: 0 0 16px rgba(244,180,0,0.25);
}
.ia-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}
.ia-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.ia-price {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244,180,0,0.15);
  border: 1px solid rgba(244,180,0,0.3);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}
.ia-features {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.ia-features li {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.ia-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.ia-cta-row {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.ia-cta-row p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* BADGE IA READY */
.ia-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(244,180,0,0.1);
  border: 1.5px solid rgba(244,180,0,0.5);
  color: #b8860b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  position: relative;
}
.ia-ready-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-ia 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-ia {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244,180,0,0.6); }
  50%       { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(244,180,0,0); }
}
.forfait-card.featured .ia-ready-badge {
  background: rgba(244,180,0,0.18);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  #ia { padding: 3.5rem 0; }
  .ia-grid { grid-template-columns: 1fr; }
  #ia::before, #ia::after { display: none; }
}
