/* =========================================================
   WellisCom — Modern theme
   ========================================================= */

:root {
  --bg: #f7f7fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-strong: #f1f1f7;
  --border: #e6e6ef;
  --border-strong: #d7d7e6;
  --text: #16161f;
  --text-dim: #5c5c6e;
  --text-dimmer: #93939f;

  --violet: #d97706;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-text: #b45309;
  --cyan: #14b8a6;
  --cyan-text: #0f766e;
  --pink: #fb7185;

  --gradient-1: linear-gradient(135deg, #d97706 0%, #fb7185 100%);
  --gradient-2: linear-gradient(135deg, #14b8a6 0%, #f59e0b 100%);
  --gradient-radial: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.14), transparent 55%),
                     radial-gradient(circle at 85% 0%, rgba(20, 184, 166, 0.09), transparent 55%);

  --dark: #13131e;
  --dark-soft: #1c1c2b;

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;                 /* évite tout débordement latéral */
  -webkit-text-size-adjust: 100%;     /* pas de zoom auto du texte iOS */
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-radial), var(--bg);
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 10000;
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: top .25s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.carousel-arrow:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
.getstarted:focus-visible, .btn-glow:focus-visible, .back-to-top:focus-visible {
  outline-offset: 3px;
}

.grad-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

::selection { background: var(--violet); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

/* =========================================================
   Preloader
   ========================================================= */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
#preloader.loaded { opacity: 0; visibility: hidden; }
/* Filet de sécurité : même si le JS ne s'exécute pas, le voile disparaît
   au bout de 3 s au lieu de laisser une page blanche définitive. */
#preloader { animation: preloaderFailsafe 0.3s linear 3s forwards; }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Header / Nav
   ========================================================= */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
#header.scrolled {
  padding: 14px 0;
  background: rgba(247, 247, 251, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--border), 0 12px 30px rgba(20, 20, 40, 0.06);
}
#header .container { display: flex; align-items: center; justify-content: space-between; }

.logo a {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 2px;
}
.logo span { color: var(--cyan-text); }

#navbar ul { display: flex; align-items: center; gap: 4px; }
#navbar a.nav-link {
  display: block;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .25s ease, background .25s ease;
  white-space: nowrap;
}
#navbar a.nav-link:hover, #navbar a.nav-link.active { color: var(--text); background: #fff; box-shadow: 0 1px 2px rgba(20,20,40,0.06); }

.getstarted {
  padding: 10px 22px !important;
  background: var(--gradient-1);
  color: var(--text) !important;
  font-weight: 600 !important;
  border-radius: 100px !important;
  position: relative; overflow: hidden;
}

.mobile-nav-toggle {
  display: none; align-items: center; justify-content: center;
  font-size: 26px; color: var(--text); cursor: pointer;
  background: none; border: none; padding: 4px; line-height: 1;
}

/* Menu en panneau latéral à toutes les tailles : les intitulés de services
   complets ne tiennent pas sur une barre horizontale. */
#navbar { position: static; width: auto; height: auto; }
#navbar > ul {
  position: fixed; top: 0; right: 0; width: min(380px, 88vw); height: 100dvh; z-index: 1001;
  background: #fff; border-left: 1px solid var(--border);
  padding: 96px 22px 32px; transition: transform .4s var(--ease);
  transform: translateX(105%);
  flex-direction: column; align-items: stretch; border-radius: 0; gap: 4px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: -24px 0 60px rgba(20, 20, 40, 0.14);
}
#navbar.nav-open > ul { transform: translateX(0); }
#navbar a.nav-link {
  display: flex; align-items: center; min-height: 48px;
  padding: 14px 16px; border-radius: 12px; white-space: normal; line-height: 1.35;
}
#navbar a.nav-link:not(.getstarted)::after { display: none; }
#navbar a.nav-link.getstarted { justify-content: center; margin-top: 10px; }
.mobile-nav-toggle { display: flex; position: relative; z-index: 1002; }
.nav-scrim { position: fixed; inset: 0; background: rgba(15,15,25,0.35); z-index: 999; opacity: 0; visibility: hidden; transition: opacity .35s; }
.nav-scrim.show { opacity: 1; visibility: visible; }

/* =========================================================
   Hero
   ========================================================= */
#hero {
  position: relative;
  min-height: 96vh;
  display: flex; align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
#hero::before, #hero::after {
  content: ''; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(120px);
}
#hero::before {
  top: -140px; right: -120px; width: 520px; height: 520px; background: var(--gradient-1); opacity: .26;
  animation: floatBlobA 14s ease-in-out infinite alternate;
}
#hero::after {
  bottom: -160px; left: -140px; width: 420px; height: 420px; background: var(--gradient-2); opacity: .2;
  animation: floatBlobB 17s ease-in-out infinite alternate;
}
@keyframes floatBlobA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes floatBlobB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -25px) scale(1.1); }
}
#hero .container { position: relative; z-index: 2; }

#hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: 22px;
}
#hero .hero-lead {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-glow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  background: var(--gradient-1);
  color: var(--text); font-weight: 600; font-size: 15px;
  border-radius: 100px; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.28);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(217, 119, 6, 0.38); color: var(--text); }
.btn-glow::after, .getstarted::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-20deg); transition: left .65s ease;
}
.btn-glow:hover::after, .getstarted:hover::after { left: 130%; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 100px; border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 500; font-size: 15px;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--text-dimmer); color: var(--text); transform: translateY(-2px); }

/* ---- Hero showcase: two cards auto-crossfading ---- */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.showcase { position: relative; width: min(380px, 88vw); height: 300px; }
.showcase-card {
  position: absolute; top: 0; left: 0; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  box-shadow: 0 24px 50px rgba(20, 20, 40, 0.10), 0 4px 14px rgba(20, 20, 40, 0.05);
  padding: 26px 26px 34px;
  animation: showcaseCycle 9s ease-in-out infinite;
}
.showcase-card.card-b { animation-delay: -4.5s; }
@keyframes showcaseCycle {
  0%, 42% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 92% { opacity: 0; transform: translateY(10px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.dash-header { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; }
.dash-title { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.dash-body { display: flex; align-items: center; gap: 20px; }
.dash-ring { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.dash-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.ring-fill {
  fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 90;
  animation: ringBreathe 3.4s ease-in-out infinite alternate;
}
@keyframes ringBreathe { from { stroke-dashoffset: 110; } to { stroke-dashoffset: 60; } }
.ring-label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-label strong { font-family: 'Sora', sans-serif; font-size: 1.5rem; }
.ring-label span { font-size: 11.5px; color: var(--text-dim); }
.dash-bars { flex: 1; height: 110px; display: flex; align-items: flex-end; gap: 8px; }
.dash-bars span {
  flex: 1; border-radius: 7px 7px 2px 2px; background: var(--gradient-1);
  transform-origin: bottom; animation: barPulse 2.1s ease-in-out infinite alternate;
}
.dash-bars span:nth-child(1) { animation-delay: 0s; }
.dash-bars span:nth-child(2) { animation-delay: .15s; }
.dash-bars span:nth-child(3) { animation-delay: .3s; }
.dash-bars span:nth-child(4) { animation-delay: .45s; }
.dash-bars span:nth-child(5) { animation-delay: .6s; }
@keyframes barPulse { from { transform: scaleY(.68); } to { transform: scaleY(1.14); } }
.dash-toast {
  position: absolute; left: 22px; right: 22px; bottom: -18px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: 0 16px 32px rgba(20, 20, 40, 0.14);
  animation: toastFloat 3.6s ease-in-out infinite;
}
.dash-toast i { color: var(--cyan-text); font-size: 16px; }
@keyframes toastFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.build-skeleton { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sk-line, .sk-block {
  border-radius: 7px;
  background: linear-gradient(90deg, var(--surface-strong) 25%, var(--border) 40%, var(--surface-strong) 60%);
  background-size: 300% 100%;
  animation: shimmer 1.9s ease-in-out infinite;
}
.sk-line { height: 11px; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-90 { width: 90%; }
.sk-line.w-40 { width: 40%; }
.sk-line.w-70 { width: 70%; }
.sk-block { height: 72px; width: 100%; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
.build-progress { height: 8px; border-radius: 6px; background: var(--surface-strong); overflow: hidden; }
.build-progress-fill {
  height: 100%; border-radius: 6px; background: var(--gradient-1);
  animation: progressGrow 2.6s ease-in-out infinite alternate;
}
@keyframes progressGrow { from { width: 32%; } to { width: 78%; } }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dimmer); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- Decorative floating particles (hero) ---- */
.particle {
  position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
  animation: particleFloat ease-in-out infinite;
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-22px) translateX(8px); }
}

/* ---- Shared pulse animation for accent SVG shapes ---- */
.pulse-slow { animation: pulseSoft 3.6s ease-in-out infinite; transform-origin: center; }
.pulse-slow.delay-1 { animation-delay: .6s; }
.pulse-slow.delay-2 { animation-delay: 1.2s; }
@keyframes pulseSoft {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.06); }
}
.spin-slow { animation: spinSlow 22s linear infinite; transform-origin: center; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.draw-line { stroke-dasharray: 620; stroke-dashoffset: 620; animation: drawLine 2.4s ease forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* =========================================================
   Section basics
   ========================================================= */
section { position: relative; padding: 130px 0; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan-text); margin-bottom: 14px;
}
.section-title h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.section-title p { color: var(--text-dim); font-size: 16px; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20,20,40,0.04);
}


/* =========================================================
   About
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 24px 26px;
  box-shadow: 0 2px 4px rgba(20,20,40,0.03);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.stat-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--tile-accent); opacity: .9;
}
.stat-tile::after {
  content: ''; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: var(--tile-accent); opacity: .07;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.stat-tile:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 22px 44px rgba(20,20,40,0.11);
}
.stat-tile:hover::after { transform: scale(1.35); opacity: .12; }
.stat-icon {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tile-accent); color: #fff; font-size: 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px var(--tile-shadow);
  transition: transform .4s var(--ease);
}
.stat-tile:hover .stat-icon { transform: scale(1.08) rotate(-5deg); }
.stat-tile strong {
  position: relative; z-index: 1;
  display: block; font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--tile-text); margin-bottom: 8px;
}
.stat-tile .stat-label {
  position: relative; z-index: 1;
  display: block; font-weight: 600; font-size: 14.5px; color: var(--text); margin-bottom: 3px;
}
.stat-tile .stat-desc {
  position: relative; z-index: 1;
  display: block; color: var(--text-dim); font-size: 13px; line-height: 1.45;
}
.stat-tile.stat-a { --tile-accent: linear-gradient(135deg, #fbbf24, #d97706); --tile-text: #b45309; --tile-shadow: rgba(217,119,6,0.28); }
.stat-tile.stat-b { --tile-accent: linear-gradient(135deg, #2dd4bf, #0d9488); --tile-text: #0f766e; --tile-shadow: rgba(13,148,136,0.28); }
.stat-tile.stat-c { --tile-accent: linear-gradient(135deg, #fda4af, #e11d48); --tile-text: #be123c; --tile-shadow: rgba(225,29,72,0.24); }
.stat-tile.stat-d { --tile-accent: linear-gradient(135deg, #64748b, #1e293b); --tile-text: #1e293b; --tile-shadow: rgba(30,41,59,0.24); }

.about-cta { margin-top: 30px; }

.about-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 20px; }
.about-copy p { color: var(--text-dim); margin-bottom: 16px; }
.about-copy p:last-of-type { margin-bottom: 0; }
.about-copy .accent-line { width: 46px; height: 3px; border-radius: 3px; background: var(--gradient-1); margin-bottom: 22px; }

/* =========================================================
   Services carousel
   ========================================================= */
.carousel-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 12px; margin: 0 -4px; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-slide { flex: 0 0 auto; width: min(320px, 82vw); scroll-snap-align: start; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.carousel-arrow:hover { background: var(--surface-strong); border-color: var(--border-strong); transform: translateY(-2px); }
.carousel-arrow:disabled { opacity: .35; cursor: default; pointer-events: none; transform: none; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots .dot { width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%; background: var(--border-strong); transition: background .3s ease, width .3s ease; cursor: pointer; }
.carousel-dots .dot.active { background: var(--violet); width: 20px; border-radius: 4px; }

.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 100%;
  border: 1px solid var(--border); background: var(--bg-soft);
  box-shadow: 0 1px 2px rgba(20,20,40,0.04);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,20,40,0.10); }
.service-card .card-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%);
}
.service-card.grad-a .card-img { background-color: #f59e0b; background-image: linear-gradient(135deg, #fbbf24, #d97706), radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3), transparent 55%); }
.service-card.grad-b .card-img { background-color: #14b8a6; background-image: linear-gradient(135deg, #2dd4bf, #0d9488), radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%); }
.service-card.grad-c .card-img { background-color: #fb7185; background-image: linear-gradient(135deg, #fda4af, #e11d48), radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%); }
.service-card.grad-d .card-img { background-color: #334155; background-image: linear-gradient(135deg, #475569, #1e293b), radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 55%); }
.service-card .card-img .card-glyph {
  position: relative; z-index: 2; font-size: 42px; color: #fff;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.18));
  transition: transform .5s var(--ease);
}
.service-card.grad-a .card-img .card-glyph { color: var(--text); filter: drop-shadow(0 4px 10px rgba(180,83,9,0.25)); }
.service-card:hover .card-img .card-glyph { transform: scale(1.12) rotate(-4deg); }
.service-card .card-img .ring {
  position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); z-index: 1;
}
.service-card .card-num {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 5px 12px; border-radius: 100px; background: #fff; box-shadow: 0 4px 12px rgba(20,20,40,0.12);
}
.service-card .card-body { padding: 26px 26px 30px; }
.service-card .card-title { font-size: 1.15rem; margin-bottom: 10px; }
.service-card .card-text { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* =========================================================
   Features (alternating rows)
   ========================================================= */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 110px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { position: relative; padding: 40px; }
.feature-media::before {
  content: ''; position: absolute; inset: 30px; border-radius: var(--radius);
  background: var(--gradient-radial); filter: blur(30px); opacity: 1; z-index: 0;
}
.feature-media img, .feature-media svg {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-soft);
  box-shadow: 0 1px 2px rgba(20,20,40,0.04);
}
.feature-copy .feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-strong); border: 1px solid var(--border); margin-bottom: 22px; font-size: 22px; color: var(--cyan);
}
.feature-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }
.feature-copy p { color: var(--text-dim); margin-bottom: 14px; }
.feature-copy ul { margin: 20px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.feature-copy ul li { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 15px; }
.feature-copy ul li i { color: var(--cyan); font-size: 18px; flex-shrink: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: 14.5px; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-card {
  max-width: 780px; margin: 0 auto; padding: 60px; text-align: center; border-radius: 28px;
  position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient-radial); opacity: 1; z-index: 0;
}
.pricing-card { border: 1px solid var(--border); animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 46px rgba(245, 158, 11, 0.22); }
}
.pricing-card > * { position: relative; z-index: 1; }
.pricing-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.pricing-card p { color: var(--text-dim); margin-bottom: 8px; }
.pricing-perks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px;
  margin: 26px 0 4px;
}
.pricing-perks li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--text);
}
.pricing-perks i { color: var(--cyan-text); font-size: 16px; }
.pricing-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
.contact-grid-solo { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }

.contact-form { padding: 40px; }
.form-group { margin-bottom: 18px; }
.form-control, textarea.form-control {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  background: var(--surface-strong); border: 1px solid var(--border);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 14.5px;
  transition: border-color .25s ease, background .25s ease;
}
.form-control:focus, textarea.form-control:focus {
  outline: none; border-color: var(--violet); background: #fff;
}
.form-control::placeholder { color: var(--text-dimmer); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 18px; }
.contact-form button[type="submit"] {
  width: 100%; padding: 15px; border: none; border-radius: 12px;
  background: var(--gradient-1); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-form button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217,119,6,0.3); }
.contact-form .loading, .contact-form .error-message, .contact-form .sent-message { display: none; font-size: 14px; margin-bottom: 12px; padding: 12px 16px; border-radius: 10px; }
.contact-form .loading { background: var(--surface-strong); color: var(--text-dim); }
/* validate.js bascule ces blocs en ajoutant .d-block (classe fournie
   auparavant par Bootstrap, désormais retiré : on la redéfinit ici) */
.d-block { display: block !important; }

/* Champ piège anti-spam : hors écran, jamais visible ni focusable au clavier */
.hp-field {
  position: absolute !important;
  left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}
.contact-form .error-message { background: rgba(225, 29, 72, 0.08); color: #be123c; }
.contact-form .sent-message { background: rgba(13, 148, 136, 0.10); color: #0f766e; }



/* =========================================================
   Footer (dark contrast band)
   ========================================================= */
#footer { background: var(--dark); color: #e6e6f0; padding-top: 80px; position: relative; overflow: hidden; }
#footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-1); }
#footer h3, #footer .footer-brand, #footer .card-title { color: #fff; }
.footer-top { text-align: center; padding-bottom: 50px; }
.footer-top .footer-brand { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.8rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.footer-top p { color: #a3a3b8; max-width: 480px; margin: 0 auto; }
.footer-newsletter { margin-top: 28px; }
.footer-newsletter form { display: flex; max-width: 420px; margin: 0 auto; gap: 10px; }
.footer-newsletter input[type="email"] {
  flex: 1; padding: 13px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 14px;
}
.footer-newsletter input[type="email"]::placeholder { color: #8686a0; }
.footer-newsletter input[type="submit"] {
  padding: 13px 26px; border-radius: 100px; border: none; background: var(--gradient-1);
  color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
}
.social-links { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.social-links a {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #c2c2d6;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.social-links a:hover { background: var(--gradient-1); color: var(--text); transform: translateY(-3px) scale(1.08); border-color: transparent; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; }
.footer-bottom .copyright { color: #7d7d94; font-size: 13.5px; }
.footer-bottom .copyright span { color: #c2c2d6; }

.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: 0 10px 24px rgba(20,20,40,0.10);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .3s ease, visibility .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gradient-1); color: var(--text); border-color: transparent; }

/* =========================================================
   Reveal animation base state (GSAP toggles .is-visible)
   ========================================================= */
/* Le contenu n'est masqué que si JavaScript est actif (classe .js posée
   par un script en <head>). Sans JS, tout reste lisible. */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }

/* =========================================================
   Animations supplémentaires
   ========================================================= */

/* ancres : décalage sous le header fixe */
#about, #services, #features, #pricing, #contact,
#creation-contenu, #developpement-web, #reseaux-referencement { scroll-margin-top: 100px; }

/* barre de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gradient-1); z-index: 1001;
  transition: width .1s linear;
}

/* dégradé animé sur le texte accentué */
.grad-text {
  background: linear-gradient(120deg, #d97706, #fb7185, #f59e0b, #d97706);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 9s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* soulignement animé des liens de navigation */
#navbar a.nav-link { position: relative; }
#navbar a.nav-link:not(.getstarted)::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
  background: var(--gradient-1); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
#navbar a.nav-link:not(.getstarted):hover::after { transform: scaleX(1); }

/* trait animé sous les titres de section
   (display:block indispensable : en inline-block le titre se colle
    à la pastille de section au lieu de passer à la ligne) */
.section-title h2 { position: relative; display: block; }
.section-title h2::after {
  content: ''; position: absolute; left: 50%; bottom: -12px; height: 3px; width: 0;
  background: var(--gradient-1); border-radius: 3px;
  transform: translateX(-50%); transition: width .8s var(--ease) .2s;
}
.section-title h2.is-underlined::after { width: 68px; }

/* pastille de section : petit point qui pulse */
.section-tag { position: relative; padding-left: 18px; }
.section-tag::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulseSoft 2.2s ease-in-out infinite;
}

/* icône des blocs services : flottement + rotation au survol */
.feature-copy .feature-icon { transition: transform .45s var(--ease), background .3s ease, color .3s ease; }
.feature-row:hover .feature-icon {
  transform: translateY(-5px) rotate(-6deg);
  background: var(--gradient-1); color: var(--text); border-color: transparent;
}

/* illustrations : léger zoom + ombre au survol */
.feature-media svg {
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.feature-row:hover .feature-media svg {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 52px rgba(20,20,40,0.12);
}

/* liste à puces des services : décalage au survol */
.feature-copy ul li { transition: transform .3s var(--ease), color .3s ease; }
.feature-copy ul li:hover { transform: translateX(6px); color: var(--text); }
.feature-copy ul li i { transition: transform .3s var(--ease); }
.feature-copy ul li:hover i { transform: scale(1.25); }

/* lien flèche : soulignement qui se déploie */
.link-arrow { position: relative; padding-bottom: 3px; }
.link-arrow::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gradient-1); border-radius: 2px; transition: width .35s var(--ease);
}
.link-arrow:hover::after { width: 100%; }

/* champs de formulaire : léger soulèvement au focus */
.form-control:focus, textarea.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217,119,6,0.10);
}
.form-control, textarea.form-control { transition: border-color .25s ease, background .25s ease, transform .25s var(--ease), box-shadow .25s ease; }

/* carte de service : le numéro glisse au survol */
.service-card .card-num { transition: transform .4s var(--ease); }
.service-card:hover .card-num { transform: translateY(-3px) scale(1.06); }

/* footer : liseré qui ondule */
#footer::before { background: linear-gradient(90deg, #d97706, #fb7185, #14b8a6, #d97706); background-size: 300% 100%; animation: gradShift 8s ease infinite; }

/* =========================================================
   Responsive
   ========================================================= */
/* ---- Tablette ---- */
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-row { grid-template-columns: 1fr; gap: 34px; margin-bottom: 78px; }
  .feature-row.reverse .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 84px 0; }
  .hero-visual { margin-top: 52px; }
  #hero { min-height: auto; padding-top: 116px; padding-bottom: 72px; }
  .feature-media { padding: 20px; }
  .section-title { margin-bottom: 48px; }
  /* pas de parallaxe / survol sur écran tactile */
  .feature-row:hover .feature-media svg { transform: none; box-shadow: none; }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  section { padding: 64px 0; }
  .contact-form .row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-form, .portfolio-description, .pricing-card { padding: 24px 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-glow, .hero-ctas .btn-ghost { justify-content: center; }
  .footer-newsletter form { flex-direction: column; }

  #hero { padding-top: 104px; padding-bottom: 56px; }
  #hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  #hero .hero-lead { font-size: 15.5px; }

  .showcase { width: 100%; height: 288px; }
  .showcase-card { padding: 20px 20px 30px; }
  .dash-ring { width: 104px; height: 104px; }
  .dash-bars { height: 92px; }
  .sk-block { height: 58px; }

  .stat-tile { padding: 20px 16px 18px; border-radius: 16px; }
  .stat-tile .stat-icon { width: 38px; height: 38px; font-size: 17px; margin-bottom: 12px; border-radius: 11px; }
  .stat-tile strong { font-size: 1.45rem; }
  .stat-tile .stat-label { font-size: 13px; }
  .stat-tile .stat-desc { font-size: 12px; }

  .carousel-slide { width: 84vw; }
  .feature-media { padding: 8px; }
  .feature-copy h3 { font-size: 1.35rem; }
  .pricing-perks { gap: 10px 18px; }
  .pricing-perks li { font-size: 13.5px; }
  .footer-top .footer-brand { font-size: 1.5rem; }
  .back-to-top { bottom: 18px; right: 18px; }
}

/* ---- Cibles tactiles confortables (≥ 44 px) ---- */
@media (hover: none), (pointer: coarse) {
  .mobile-nav-toggle { width: 46px; height: 46px; font-size: 28px; }
  .link-arrow { min-height: 44px; align-items: center; }
  .carousel-dots .dot { position: relative; }
  .carousel-dots .dot::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
  .carousel-dots { gap: 14px; }
  .carousel-arrow { width: 48px; height: 48px; }
  .social-links a { width: 48px; height: 48px; }
  .footer-newsletter input[type="email"],
  .footer-newsletter input[type="submit"] { min-height: 48px; }
  .form-control, textarea.form-control { font-size: 16px; }  /* évite le zoom iOS au focus */
  .contact-form button[type="submit"] { min-height: 50px; }
  /* effets de survol neutralisés sur tactile */
  .stat-tile:hover, .service-card:hover { transform: none; }
}

/* ---- Moins de décor sur petits écrans (performance) ---- */
@media (max-width: 767px) {
  .particle:nth-of-type(n+4) { display: none; }
  #hero::before { width: 320px; height: 320px; filter: blur(90px); }
  #hero::after { width: 260px; height: 260px; filter: blur(90px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-ring, .scroll-cue .line, #hero::before, #hero::after,
  .particle, .pulse-slow, .spin-slow, .draw-line, .pricing-card,
  .ring-fill, .dash-bars span, .dash-toast, .showcase-card, .sk-line, .sk-block, .build-progress-fill,
  .grad-text, .section-tag::before, #footer::before {
    animation: none;
  }
  .grad-text { background-position: 0 50%; }
  .draw-line { stroke-dashoffset: 0; }
  .ring-fill { stroke-dashoffset: 75; }
  .dash-bars span { transform: scaleY(1); }
  .showcase-card { opacity: 1; transform: none; }
  .showcase-card.card-b { display: none; }
  .build-progress-fill { width: 60%; }
}
