/* ==========================================================================
   ABWEB — Agence web · Marseille & Côte-d'Or
   Design system : fond blanc, bleu profond, animations fluides
   ========================================================================== */

:root {
  --ink: #0b1b33;
  --ink-soft: #41506b;
  --ink-mute: #6b7a94;
  --blue: #0b5cff;
  --blue-dark: #0646c8;
  --cyan: #00b2ff;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-blue-tint: #eef4ff;
  --border: #e4eaf3;
  --shadow-sm: 0 2px 8px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 27, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, 0.12);
  --grad: linear-gradient(120deg, #0b5cff 0%, #00b2ff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Empêche tout balayage horizontal de la page (iOS inclus) */
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--blue-dark); }

ul { padding-left: 1.2em; }

strong { color: var(--ink); }

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow { width: min(840px, 100% - 2.5rem); margin-inline: auto; }

/* Accent dégradé sur mots clés des titres */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 92, 255, 0.32);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(11, 92, 255, 0.42);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--border);
  background-clip: padding-box;
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 26px rgba(4, 24, 68, 0.25);
}
.btn--white:hover { transform: translateY(-3px); color: var(--blue-dark); }

.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(11, 27, 51, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo:hover { color: var(--ink); }
.logo .dot { color: var(--blue); }
.logo__mark { height: 36px; width: auto; flex-shrink: 0; }

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--blue); background: var(--bg-blue-tint); }
.nav__link .chev { transition: transform 0.3s ease; flex-shrink: 0; }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 330px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
  list-style: none;
  margin: 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.has-dropdown:hover .nav__link .chev,
.has-dropdown.is-open .nav__link .chev { transform: rotate(180deg); }

.dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.22s ease;
}
.dropdown__item:hover { background: var(--bg-blue-tint); }

.dropdown__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bg-blue-tint);
  color: var(--blue);
}
.dropdown__item:hover .dropdown__icon { background: var(--grad); color: #fff; }
.dropdown__icon svg { transition: transform 0.25s ease; }
.dropdown__item:hover .dropdown__icon svg { transform: scale(1.08); }

.dropdown__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink);
  display: block;
}
.dropdown__desc { font-size: 0.85rem; color: var(--ink-mute); display: block; line-height: 1.45; }

.header-cta { display: flex; align-items: center; gap: 0.8rem; }
.header-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--blue); }
.header-cta .btn { padding: 0.7rem 1.35rem; font-size: 0.93rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero--center { text-align: center; }
.hero--center .hero-actions, .hero--center .hero-badges { justify-content: center; }
.hero--center .hero-lead { margin-inline: auto; }

/* Orbes décoratifs animés */
.orbs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: orb-float 14s ease-in-out infinite alternate;
}
.orb--1 { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(0, 178, 255, 0.35), transparent 65%); }
.orb--2 { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(11, 92, 255, 0.28), transparent 65%); animation-delay: -6s; }
.orb--3 { width: 320px; height: 320px; top: 30%; left: 38%; background: radial-gradient(circle, rgba(11, 92, 255, 0.14), transparent 65%); animation-delay: -3s; }

@keyframes orb-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

/* Grille discrète en fond de hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(11, 27, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 51, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}

.hero-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue);
  background: var(--bg-blue-tint);
  border: 1px solid rgba(11, 92, 255, 0.18);
  padding: 0.42rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.eyebrow .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 92, 255, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(11, 92, 255, 0); }
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
}
.hero-badges .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-blue-tint);
  color: var(--blue);
}

/* Étoiles d'avis */
.stars { color: #ffb300; letter-spacing: 2px; font-size: 0.95rem; }

/* ==========================================================================
   Marquee clients
   ========================================================================== */

.marquee-section { padding: 1.6rem 0; border-block: 1px solid var(--border); background: #fff; }
.marquee-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }

.marquee__track {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #b6c2d6;
  white-space: nowrap;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}
.marquee__item:hover { color: var(--blue); }
.marquee__item img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.marquee__item:hover img { filter: grayscale(0) opacity(1); transform: scale(1.06); }

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

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-soft); }
.section--tint { background: var(--bg-blue-tint); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { font-size: 1.1rem; color: var(--ink-soft); }

/* ==========================================================================
   Cartes services
   ========================================================================== */

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 92, 255, 0.3);
}

.card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-blue-tint);
  color: var(--blue);
  margin-bottom: 1.3rem;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.card:hover .card__icon { background: var(--grad); color: #fff; transform: scale(1.06) rotate(-3deg); }

.card h3 { margin-bottom: 0.5rem; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--blue); }
.card p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 0; }

.card__link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card__link .arrow { transition: transform 0.3s ease; }
.card:hover .card__link .arrow { transform: translateX(5px); }

/* Lien englobant la carte */
.card__stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ==========================================================================
   Avantages (liste à coches)
   ========================================================================== */

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.8rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-blue-tint);
  color: var(--blue);
}

/* ==========================================================================
   Split (texte + visuel)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse > .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

/* Carte mockup décorative (visuel sans image) */
.mockup {
  position: relative;
  background: linear-gradient(150deg, #f0f5ff 0%, #ffffff 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
  overflow: hidden;
}
.mockup__bar { display: flex; gap: 6px; margin-bottom: 1rem; }
.mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup__bar span:first-child { background: #ff6b6b; }
.mockup__bar span:nth-child(2) { background: #ffd166; }
.mockup__bar span:nth-child(3) { background: #06d6a0; }
.mockup__line { height: 12px; border-radius: 6px; background: var(--bg-soft); margin-bottom: 10px; }
.mockup__line--blue { background: var(--grad); width: 45%; height: 16px; }
.mockup__line--60 { width: 60%; }
.mockup__line--80 { width: 80%; }
.mockup__blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mockup__block { height: 70px; border-radius: 10px; background: var(--bg-blue-tint); }

.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  animation: chip-float 5s ease-in-out infinite alternate;
  z-index: 2;
}
.float-chip--tl { top: -18px; left: -18px; }
.float-chip--br { bottom: -18px; right: -18px; animation-delay: -2.5s; }
.float-chip .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
}
@keyframes chip-float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* ==========================================================================
   Statistiques
   ========================================================================== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat__label { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-top: 0.4rem; }
.stat__desc { font-size: 0.88rem; color: var(--ink-mute); margin-top: 0.2rem; }

/* ==========================================================================
   Processus / étapes
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem 1.6rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px rgba(11, 92, 255, 0.3);
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Portfolio
   ========================================================================== */

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

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-card__media img { transform: scale(1.06); }

/* Cover en dégradé pour projets sans visuel */
.work-card__cover {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  padding: 1rem;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-card__cover { transform: scale(1.05); }
.cover--blue { background: linear-gradient(135deg, #0b5cff, #00b2ff); }
.cover--navy { background: linear-gradient(135deg, #0b1b33, #0b5cff); }
.cover--violet { background: linear-gradient(135deg, #4338ca, #0b5cff); }
.cover--teal { background: linear-gradient(135deg, #0e7490, #00b2ff); }

.work-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.work-card__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  background: var(--bg-blue-tint);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.work-card__body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.work-card__body p { font-size: 0.92rem; margin: 0; }
.work-card__ext { margin: 0 0 0.55rem !important; font-size: 0.85rem !important; }
.work-card__ext a {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 700;
}

/* ==========================================================================
   Témoignages
   ========================================================================== */

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial blockquote { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }
.testimonial footer { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.testimonial .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  flex-shrink: 0;
}
.testimonial .who strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.testimonial .who span { font-size: 0.84rem; color: var(--ink-mute); }

/* ==========================================================================
   Tarifs
   ========================================================================== */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(11, 92, 255, 0.3); }

.price-card--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
}
.price-card__flag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(11, 92, 255, 0.35);
}

.price-card h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.price-card .price-sub { font-size: 0.92rem; color: var(--ink-mute); margin-bottom: 1.2rem; }
.price-card .price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.price-card .price small { font-size: 0.95rem; font-weight: 600; color: var(--ink-mute); letter-spacing: 0; }
.price-card .price-note { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 1.5rem; }
.price-card .check-list { margin-bottom: 1.8rem; }
.price-card .check-list li { font-size: 0.93rem; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; gap: 0.9rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item.is-open { border-color: rgba(11, 92, 255, 0.35); box-shadow: var(--shadow-sm); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 1.15rem 1.4rem;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-blue-tint);
  color: var(--blue);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--grad); color: #fff; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a__inner { padding: 0 1.4rem 1.3rem; font-size: 0.96rem; color: var(--ink-soft); }
.faq-a__inner p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Bande CTA
   ========================================================================== */

.cta-band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.cta-band__inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #0b5cff 0%, #0646c8 55%, #00b2ff 130%);
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #dbe7ff;
}
.cta-band__inner::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  top: -300px; right: -150px;
  animation: orb-float 12s ease-in-out infinite alternate;
}
.cta-band__inner h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band__inner p { max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.07rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; position: relative; }
.cta-band__inner .btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.cta-band__inner .btn--outline-white:hover { border-color: #fff; transform: translateY(-3px); color: #fff; }

/* ==========================================================================
   Page header (pages internes)
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--bg-blue-tint) 0%, #fff 100%);
}
.page-hero h1 { max-width: 800px; }
.page-hero .hero-lead { margin-bottom: 1.6rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  font-size: 0.86rem;
  color: var(--ink-mute);
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.45rem; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--ink-mute); }
.breadcrumbs a { color: var(--ink-mute); font-weight: 500; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Prose (texte long SEO)
   ========================================================================== */

.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.18rem; margin-top: 1.8em; }
.prose ul li { margin-bottom: 0.5em; }
.prose > :first-child { margin-top: 0; }

/* ==========================================================================
   Formulaire contact
   ========================================================================== */

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: grid; gap: 0.4rem; }
.form-group label { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form-group label .req { color: var(--blue); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.contact-line { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.8rem 0; }
.contact-line + .contact-line { border-top: 1px solid var(--border); }
.contact-line .ico {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-blue-tint);
  color: var(--blue);
}
.contact-line strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact-line a, .contact-line span { font-size: 0.95rem; }

/* ==========================================================================
   Blog
   ========================================================================== */

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  position: relative;
}
.post-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.post-card__cover {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: #fff;
}
.post-card__cover svg { opacity: 0.95; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 0.55rem; display: flex; gap: 0.6rem; align-items: center; }
.post-card__body h2, .post-card__body h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.post-card__body p { font-size: 0.93rem; margin-bottom: 0; }

.article-body { font-size: 1.05rem; }
.article-body h2 { margin-top: 2em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 0; }

/* ==========================================================================
   Footer (clair — pas de fond noir)
   ========================================================================== */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.8rem;
}
.footer-brand p { color: var(--ink-soft); max-width: 320px; margin-top: 0.9rem; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink-soft); font-weight: 500; }
.footer-col a:hover { color: var(--blue); }

.footer-contact li { display: flex; gap: 0.55rem; align-items: center; color: var(--ink-soft); }
.footer-contact svg { color: var(--blue); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--ink-mute);
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem; margin: 0; padding: 0; }
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--blue); }

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-left.in, .reveal-right.in { transform: translateX(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  /* Le header utilise backdrop-filter, qui fait de lui le bloc conteneur
     des descendants en position:fixed — le panneau doit donc être positionné
     en absolu par rapport au header lui-même (fixé en haut du viewport).
     Masquage par clip-path (et non translateX) : un panneau déplacé hors
     écran élargit la zone de balayage horizontal sur iOS. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 1.4rem 2.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
    border-top: 1px solid var(--border);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav__link { justify-content: space-between; padding: 0.95rem 0.6rem; font-size: 1.08rem; border-bottom: 1px solid var(--border); border-radius: 0; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 0 0.4rem;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown.is-open .dropdown { animation: drop-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
  /* Neutralise le transform desktop (translate -50%) qui décalait le
     sous-menu vers la gauche une fois la transition terminée */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.is-open .dropdown { transform: none; left: auto; }
  @keyframes drop-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .header-cta { display: none; }
  .nav .nav-mobile-cta { display: grid; gap: 0.8rem; margin-top: 1.4rem; }
  .nav .nav-mobile-cta .btn { justify-content: center; }
  .burger { display: flex; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1081px) {
  .nav-mobile-cta { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split__media { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { gap: 0.7rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Les boutons secondaires se partagent une même ligne sur mobile */
  .hero-actions .btn--ghost { width: auto; flex: 1 1 0; padding-inline: 1.05rem; font-size: 0.92rem; text-align: center; }
  .float-chip--tl { left: 0; }
  .float-chip--br { right: 0; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .steps { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ==========================================================================
   Texte SEO déroulant (lire la suite)
   ========================================================================== */

.seo-more { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--bg-soft); border-top: 1px solid var(--border); }
.seo-more h2 { font-size: 1.35rem; }
.seo-more__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.seo-more__content > :first-child { margin-top: 1rem; }
.seo-more__content h3 { font-size: 1.08rem; margin-top: 1.6em; }
.seo-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--blue);
  padding: 0.4rem 0;
  margin-top: 0.6rem;
}
.seo-more__btn:hover { color: var(--blue-dark); }
.seo-more__btn .arrow { transition: transform 0.3s ease; }
.seo-more.is-open .seo-more__btn .arrow { transform: rotate(90deg); }

/* ==========================================================================
   Simulateur de devis
   ========================================================================== */

.sim-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.sim-step { margin-bottom: 2.2rem; }
.sim-step__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.sim-step__num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 0.85rem;
}
.sim-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.sim-options--2 { grid-template-columns: repeat(2, 1fr); }
.sim-option { position: relative; }
.sim-option input { position: absolute; opacity: 0; pointer-events: none; }
.sim-option label {
  display: block;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}
.sim-option label:hover { border-color: rgba(11, 92, 255, 0.4); transform: translateY(-2px); }
.sim-option input:checked + label {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.12);
}
.sim-option input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.sim-option__name { font-family: var(--font-head); font-weight: 700; font-size: 0.97rem; color: var(--ink); display: block; }
.sim-option__desc { font-size: 0.82rem; color: var(--ink-mute); display: block; margin-top: 0.15rem; line-height: 1.45; }
.sim-option__price { font-size: 0.82rem; font-weight: 700; color: var(--blue); display: block; margin-top: 0.3rem; }

.sim-result {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.8rem 1.6rem;
}
.sim-result h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.sim-result__lines { display: grid; gap: 0.45rem; font-size: 0.92rem; margin-bottom: 1.1rem; }
.sim-result__lines .line { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); }
.sim-result__lines .line span:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sim-result__total {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.sim-result__total .label { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.sim-result__total .amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.sim-result__note { font-size: 0.8rem; color: var(--ink-mute); margin-bottom: 1.2rem; }
.sim-result .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .sim-grid { grid-template-columns: 1fr; }
  .sim-options { grid-template-columns: 1fr; }
  .sim-result { position: static; }
}

/* Réduction des animations si demandé par l'utilisateur */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
