@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --ink:   #0F172A;
  --deep:  #162035;
  --card:  #1e2d47;
  --border: rgba(45,212,191,0.14);
  --teal:  #2DD4BF;
  --teal2: #5eead4;
  --snow:  #F8FAFC;
  --muted: #94a3b8;
  --light: #cbd5e1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--snow);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% -5%, rgba(45,212,191,0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 95%,  rgba(45,212,191,0.06) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 36px;
  position: relative; z-index: 1;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,23,42,0.94);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
nav .inner {
  display: flex; align-items: center;
  max-width: 1140px; margin: 0 auto;
  padding: 0 36px; height: 70px;
}
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 44px; }
.logo img { height: 34px; width: auto; }

nav ul { list-style: none; display: flex; align-items: center; gap: 8px; flex: 1; }
nav ul li a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
nav ul li a:hover, nav ul li a.active { color: var(--snow); background: rgba(255,255,255,0.05); }
nav ul li a.active::after {
  content: ''; position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-cta {
  margin-left: auto;
  background: var(--teal); color: var(--ink) !important;
  padding: 10px 22px; border-radius: 7px;
  font-weight: 700 !important; font-size: 0.875rem;
  white-space: nowrap; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(45,212,191,0.25);
}
.nav-cta:hover { background: var(--teal2) !important; transform: translateY(-1px); box-shadow: 0 4px 24px rgba(45,212,191,0.45) !important; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none; margin-left: 16px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--snow); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PAGE WRAPPER ─── */
.page-content { padding-top: 70px; min-height: 100vh; }

/* ─── SECTIONS ─── */
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-alt { background: var(--deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── GRILLES RÉUTILISABLES (remplacent les inline styles) ─── */
.grid-2col   { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-2col-sm{ display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-2col-vs{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-contact{ display: grid; grid-template-columns: 1fr 360px; gap: 52px; align-items: start; }
.grid-step   { display: grid; grid-template-columns: 140px 1fr; gap: 48px; align-items: start; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ─── TYPOGRAPHY ─── */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
em { font-style: italic; color: var(--teal); }

.label {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.divider { width: 40px; height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: 28px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--ink);
  padding: 14px 28px; border-radius: 7px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(45,212,191,0.28);
  white-space: nowrap;
}
.btn:hover { background: var(--teal2); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(45,212,191,0.42); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--light); border: 1px solid rgba(248,250,252,0.15);
  padding: 14px 28px; border-radius: 7px;
  font-weight: 500; font-size: 0.92rem; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(45,212,191,0.5); color: var(--teal); }

/* ─── HERO BUTTONS ROW ─── */
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 32px; }

/* ─── CTA NUDGE ─── */
.cta-nudge {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; color: var(--muted); margin-top: 14px;
}
.cta-nudge::before { content: '🔒'; font-size: 0.75rem; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,212,191,0.09); border: 1px solid rgba(45,212,191,0.28);
  border-radius: 4px; padding: 6px 14px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 28px;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--deep);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 0; position: relative; z-index: 1;
}
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { text-align: center; padding: 8px 20px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 6px; }
.stat-item span { font-size: 0.78rem; color: var(--muted); }

/* ─── HERO VISUAL (KPI card) ─── */
.hero-visual { position: relative; }
.hero-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.kpi-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kpi-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 22px;
  background: rgba(248,250,252,0.03); border: 1px solid var(--border);
  border-radius: 10px; transition: border-color 0.2s;
}
.kpi-row:hover { border-color: rgba(45,212,191,0.35); }
.kpi-row.kpi-accent { background: rgba(45,212,191,0.06); border-color: rgba(45,212,191,0.25); }
.kpi-num { font-family: 'Playfair Display',serif; font-size: 2.2rem; font-weight: 900; color: var(--teal); line-height: 1; flex-shrink: 0; min-width: 80px; }
.kpi-desc { font-size: 0.9rem; color: var(--light); line-height: 1.4; }
.kpi-desc small { display: block; color: var(--muted); font-size: 0.78rem; }

/* ─── CARD ─── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: rgba(45,212,191,0.35); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }

/* ─── TAGS ─── */
.tag { background: rgba(45,212,191,0.09); border: 1px solid rgba(45,212,191,0.22); color: var(--teal); padding: 3px 11px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }

/* ─── PROCESS GRID ─── */
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 30px;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.step-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal2)); opacity: 0; transition: opacity 0.3s; }
.step-card:hover { transform: translateY(-5px); border-color: rgba(45,212,191,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.step-card:hover::before { opacity: 1; }
.step-num { font-family: 'Playfair Display',serif; font-size: 3.5rem; font-weight: 900; color: rgba(45,212,191,0.12); line-height: 1; margin-bottom: 20px; display: block; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--snow); }
.step-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.75; }
.step-tool { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 5px 12px; background: rgba(45,212,191,0.07); border: 1px solid rgba(45,212,191,0.18); border-radius: 4px; font-size: 0.72rem; font-weight: 600; color: var(--teal); }

/* ─── CHECK LIST ─── */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: rgba(45,212,191,0.12); border: 1px solid rgba(45,212,191,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--teal); font-weight: 700; }
.check-item p { font-size: 0.9rem; color: var(--light); line-height: 1.6; }
.check-item strong { color: var(--snow); }

/* ─── CTA BOX ─── */
.cta-box {
  background: var(--card); border: 1px solid rgba(45,212,191,0.25);
  border-radius: 20px; padding: 64px 56px; text-align: center;
  max-width: 680px; margin: 0 auto; position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal2), var(--teal)); background-size: 200%; animation: shimmer 3s linear infinite; }
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }

/* ─── INLINE CTA BANNER ─── */
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ─── GRID BG ─── */
.grid-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(45,212,191,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(45,212,191,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%); pointer-events: none; }

/* ─── FORM ─── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--light); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(248,250,252,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 16px; color: var(--snow);
  font-family: 'Outfit', sans-serif; font-size: 16px; outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: rgba(45,212,191,0.5); background: rgba(45,212,191,0.04); }
.form-group select option { background: var(--deep); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }

/* ─── FADE IN ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 32px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer p { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
footer a:hover { color: var(--teal); }

/* ══════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 860px)
══════════════════════════════════════ */
@media (max-width: 860px) {

  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .page-content { padding-top: 70px; }

  /* Nav */
  nav ul { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(15,23,42,0.99); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; gap: 4px; z-index: 99; }
  nav ul.open { display: flex; }
  nav ul li a { padding: 14px 8px; font-size: 1rem; display: block; border-bottom: 1px solid var(--border); }
  nav ul li:last-child a { border-bottom: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .mobile-cta-li a {
    display: block; margin-top: 12px;
    background: var(--teal); color: var(--ink) !important;
    padding: 13px 20px; border-radius: 7px;
    font-weight: 700; text-align: center; border-bottom: none !important;
  }

  /* Grilles → 1 colonne */
  .grid-2col, .grid-2col-sm, .grid-2col-vs { grid-template-columns: 1fr; gap: 40px; }
  .grid-contact { grid-template-columns: 1fr; gap: 32px; }
  .grid-step { grid-template-columns: 60px 1fr; gap: 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  /* Hero visuel caché sur tablette */
  .hero-visual { display: none; }

  /* Boutons héro */
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn, .hero-btns .btn-outline { width: 100%; justify-content: center; }

  /* CTA banner */
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* CTA box */
  .cta-box { padding: 44px 28px; }

  /* Footer */
  .footer-links { gap: 14px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 480px)
══════════════════════════════════════ */
@media (max-width: 480px) {

  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  nav .inner { padding: 0 16px; height: 60px; }
  nav ul { top: 60px; }
  .logo img { height: 28px; }
  .page-content { padding-top: 60px; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.15; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Stats 2×2 serré */
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item strong { font-size: 1.9rem; }
  .stat-item span { font-size: 0.7rem; }

  /* Expertise grid → 1 col */
  .expertise-grid { grid-template-columns: 1fr !important; }
  .audience-row { grid-template-columns: 1fr !important; }
  .guarantee-grid { grid-template-columns: 1fr !important; }

  /* Méthode step */
  .grid-step { grid-template-columns: 1fr; gap: 8px; }
  .step-big-num { font-size: 2.5rem; }

  /* CTA box */
  .cta-box { padding: 32px 18px; border-radius: 14px; }
  .cta-box .btn { width: 100%; justify-content: center; }

  /* Contact form */
  .contact-wrap { padding: 28px 18px !important; border-radius: 14px !important; }
  .submit-btn { font-size: 0.9rem; }

  /* CTA nudge centré */
  .cta-nudge { justify-content: center; text-align: center; flex-wrap: wrap; font-size: 0.72rem; }

  /* Footer empilé */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; gap: 10px; }

  /* Bouton hero section */
  .btn, .btn-outline { width: 100%; justify-content: center; padding: 14px 18px; }
}
