/* ==========================================================================
   M&C.VISION — Feuille de styles principale
   Palette : #090510 · #8500FF · #FF1681 · #FF783D · #FFFFFF
   Titres : Montserrat · Textes : Poppins
   ========================================================================== */

:root {
  --black: #090510;
  --violet: #8500FF;
  --pink: #FF1681;
  --orange: #FF783D;
  --white: #FFFFFF;

  --bg: var(--black);
  --surface: #120A1F;
  --surface-2: #1A1029;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #F1EDF7;
  --text-muted: #BDB3CC;
  --error: #FF8FB8;
  --success: #7BE0B0;

  --gradient: linear-gradient(100deg, var(--violet) 0%, var(--pink) 55%, var(--orange) 100%);
  /* Variante assombrie pour les boutons : texte blanc lisible (contraste AA) */
  --gradient-btn: linear-gradient(100deg, #7A00EA 0%, #C8006A 100%);

  --font-title: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --focus: 0 0 0 3px var(--black), 0 0 0 6px var(--orange);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--white);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* --------------------------------------------------------------------------
   Motif double barre
   -------------------------------------------------------------------------- */
.double-bar {
  display: inline-flex;
  gap: .28em;
  transform: skewX(-28deg);
}
.double-bar span {
  display: block;
  width: .32em;
  height: 1em;
  background: var(--gradient);
  border-radius: 2px;
}
.double-bar span:last-child { background: linear-gradient(180deg, var(--pink), var(--orange)); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: var(--btn-pad-y) 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-primary {
  background: var(--gradient-btn);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(200, 0, 106, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 22, 129, .8); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn-whatsapp { background: #1F8F4E; color: var(--white); }
.btn-whatsapp:hover { background: #18773F; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: .92rem; }

/* --------------------------------------------------------------------------
   En-tête & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(9, 5, 16, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.brand svg { height: 40px; width: auto; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--white); background: rgba(255,255,255,.06); }
.main-nav .nav-cta { display: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch a, .lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  color: var(--text-muted);
}
.lang-switch [aria-current="true"] { background: var(--white); color: var(--black); }
.lang-switch a:hover { color: var(--white); }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.04);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.menu-toggle .bars { position: relative; width: 22px; height: 14px; }
.menu-toggle .bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .brand svg { height: 34px; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: rgba(9, 5, 16, .98);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; color: var(--text); }
  .main-nav .nav-cta { display: block; margin-top: 12px; }
  .main-nav .nav-cta a { color: var(--white); background: var(--gradient-btn); text-align: center; border-radius: 999px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 380px) {
  .brand svg { height: 28px; }
  .lang-switch a, .lang-switch span { min-width: 36px; padding: 0 8px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(133, 0, 255, .06), rgba(255, 22, 129, .03) 60%, transparent); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow .double-bar { font-size: 14px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 11vw, 140px) clamp(72px, 10vw, 120px);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.hero-bg .glow-1 { width: 560px; height: 560px; background: var(--violet); top: -220px; left: -160px; }
.hero-bg .glow-2 { width: 460px; height: 460px; background: var(--pink); bottom: -240px; right: -120px; opacity: .4; }
.hero-bg .glow-3 { width: 300px; height: 300px; background: var(--orange); bottom: -120px; right: 22%; opacity: .25; }
.hero-bg .wave {
  position: absolute;
  inset: auto -10% -10% -10%;
  width: 120%;
  height: 70%;
  opacity: .7;
}
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: .85rem;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 .line { display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-slogan-en { margin-top: 28px; font-size: .9rem; color: var(--text-muted); font-style: italic; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}
.hero-visual .ring {
  position: absolute; inset: 0;
  border-radius: 36px;
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hero-visual .card {
  position: absolute; inset: 14px;
  border-radius: 28px;
  background: radial-gradient(120% 90% at 80% 10%, rgba(133,0,255,.45), transparent 55%),
              radial-gradient(90% 70% at 10% 100%, rgba(255,22,129,.35), transparent 60%),
              var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-visual .big-bars { font-size: clamp(110px, 18vw, 180px); animation: float 7s ease-in-out infinite; }
.hero-visual .chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(9,5,16,.82);
  border: 1px solid var(--border-strong);
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.hero-visual .chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hero-visual .chip-1 { top: 12%; left: -6%; }
.hero-visual .chip-1 i { background: var(--violet); }
.hero-visual .chip-2 { top: 46%; right: -8%; }
.hero-visual .chip-2 i { background: var(--pink); }
.hero-visual .chip-3 { bottom: -3%; left: 8%; }
.hero-visual .chip-3 i { background: var(--orange); }

@keyframes float {
  0%, 100% { transform: skewX(-28deg) translateY(0); }
  50% { transform: skewX(-28deg) translateY(-14px); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; }
  .hero-visual .chip-1 { left: 0; }
  .hero-visual .chip-2 { right: 0; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 280px; }
  .hero-visual .chip { font-size: .74rem; padding: 8px 10px; }
}

/* Bandeau d'expertises */
.marquee {
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding-block: 18px;
  background: rgba(255,255,255,.015);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 48px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 14px; height: 18px;
  background: var(--gradient);
  transform: skewX(-28deg);
  border-radius: 2px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient);
  opacity: .0;
  transition: opacity .25s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(133,0,255,.25), rgba(255,22,129,.18));
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 20px;
  color: var(--white);
}
.service-icon svg { width: 26px; height: 26px; }
.service-num {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .85rem;
  color: rgba(255,255,255,.35);
}
.service-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.service-card > p { color: var(--text-muted); font-size: .96rem; }
.service-list {
  list-style: none;
  margin: 4px 0 24px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text);
}
.service-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 8px 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .92rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
}
.service-link:hover { color: #FFC2DC; }

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Packs
   -------------------------------------------------------------------------- */
.pricing-note {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255,120,61,.6);
  background: rgba(255,120,61,.08);
  color: var(--text);
  font-size: .95rem;
}
.pricing-note svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.pack {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 28px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pack.is-featured {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gradient) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 60px -30px rgba(133,0,255,.6);
}
.pack-badge {
  position: absolute; top: -14px; left: 28px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pack h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.pack-target { color: var(--text-muted); font-size: .94rem; min-height: 3em; }
.pack-price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 12px 0 4px;
  font-family: var(--font-title);
}
.pack-price strong { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1; }
.pack-price span { color: var(--text-muted); font-size: .95rem; }
.pack-price-note { font-size: .8rem; color: var(--text-muted); margin-bottom: 20px; }
.pack-features {
  list-style: none; margin: 0 0 28px; padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid; gap: 12px;
}
.pack-features li { display: flex; gap: 12px; font-size: .95rem; }
.pack-features li::before {
  content: "";
  flex-shrink: 0;
  width: 9px; height: 14px;
  margin-top: 6px;
  background: var(--gradient);
  transform: skewX(-28deg);
  border-radius: 2px;
}
.pack .btn { margin-top: auto; }

.packs-footnote { text-align: center; color: var(--text-muted); font-size: .92rem; margin-top: 28px; }

@media (max-width: 960px) {
  .packs-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 32px; }
  .pack-target { min-height: 0; }
}

/* --------------------------------------------------------------------------
   Portfolio (concepts de démonstration)
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.work { grid-column: span 2; margin: 0; }
.work.wide { grid-column: span 3; }
.work-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.work.wide .work-visual { aspect-ratio: 16 / 10; }
.demo-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9,5,16,.86);
  border: 1px solid rgba(255,255,255,.35);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
}
.work figcaption { padding: 16px 4px 0; }
.work h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.work figcaption p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* Visuels conceptuels en CSS pur */
.concept { position: absolute; inset: 0; }
.concept-poster {
  background: radial-gradient(70% 60% at 70% 30%, rgba(255,22,129,.65), transparent 60%),
              radial-gradient(60% 60% at 20% 90%, rgba(133,0,255,.8), transparent 60%), #120A1F;
}
.concept-poster .poster {
  position: absolute; left: 50%; top: 54%;
  width: 46%; aspect-ratio: 3/4;
  transform: translate(-50%, -50%) rotate(-5deg);
  border-radius: 8px;
  background: linear-gradient(160deg, #1d1030, #090510);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  padding: 10%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6%;
}
.concept-poster .poster b { display: block; height: 10%; width: 80%; background: var(--gradient); border-radius: 3px; }
.concept-poster .poster i { display: block; height: 5%; width: 55%; background: rgba(255,255,255,.4); border-radius: 3px; }
.concept-poster .poster::before {
  content: ""; position: absolute; top: 12%; right: 12%;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); filter: blur(2px);
}

.concept-carousel { background: linear-gradient(135deg, #1A0B2E, #090510); display: flex; align-items: center; justify-content: center; gap: 4%; }
.concept-carousel .slide {
  width: 26%; aspect-ratio: 4/5;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  position: relative; overflow: hidden;
}
.concept-carousel .slide:nth-child(1) { background: linear-gradient(160deg, var(--violet), #2b0a4f); transform: translateY(6%); }
.concept-carousel .slide:nth-child(2) { background: linear-gradient(160deg, var(--pink), #5a0730); transform: translateY(-6%); }
.concept-carousel .slide:nth-child(3) { background: linear-gradient(160deg, var(--orange), #5a2208); transform: translateY(6%); }
.concept-carousel .slide::after {
  content: ""; position: absolute; left: 12%; right: 30%; bottom: 14%;
  height: 8%; background: rgba(255,255,255,.85); border-radius: 3px;
}

.concept-video { background: radial-gradient(80% 80% at 50% 40%, #2a0b4a, #090510); display: grid; place-items: center; }
.concept-video .phone {
  width: 34%; aspect-ratio: 9/16;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.3);
  background: linear-gradient(200deg, rgba(255,120,61,.7), rgba(255,22,129,.6) 40%, rgba(133,0,255,.8));
  position: relative;
  display: grid; place-items: center;
}
.concept-video .play {
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(9,5,16,.7);
  display: grid; place-items: center;
}
.concept-video .play::after {
  content: ""; margin-left: 12%;
  border-left: 14px solid var(--white);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.concept-web { background: linear-gradient(140deg, #160B26, #090510); padding: 9% 8% 0; }
.concept-web .browser {
  height: 100%;
  border-radius: 12px 12px 0 0;
  background: #F5F3F8;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(133,0,255,.35);
}
.concept-web .browser .bar { height: 9%; background: #E3DEEA; display: flex; align-items: center; gap: 6px; padding-left: 4%; }
.concept-web .browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #C0B6CC; }
.concept-web .browser .hero-mock { height: 46%; margin: 4%; border-radius: 8px; background: var(--gradient); }
.concept-web .browser .cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 4%; margin: 0 4%; }
.concept-web .browser .cols i { aspect-ratio: 1; border-radius: 6px; background: #DCD4E6; }

.concept-brand { background: #0E0718; display: grid; place-items: center; }
.concept-brand .mark {
  width: 46%; aspect-ratio: 1;
  border-radius: 24%;
  background: linear-gradient(var(--black), var(--black)) padding-box, var(--gradient) border-box;
  border: 4px solid transparent;
  display: grid; place-items: center;
  font-size: clamp(40px, 7vw, 64px);
}
.concept-brand .swatches { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.concept-brand .swatches i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); }

.concept-ads { background: linear-gradient(160deg, #13092A, #090510); display: flex; align-items: center; justify-content: center; gap: 5%; padding: 8%; }
.concept-ads .ad { position: relative; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); overflow: hidden; }
.concept-ads .ad::after { content: ""; position: absolute; left: 10%; bottom: 10%; width: 50%; height: 9%; border-radius: 99px; background: var(--white); }
.concept-ads .ad-story { width: 22%; aspect-ratio: 9/16; background: linear-gradient(180deg, var(--violet), var(--pink)); }
.concept-ads .ad-square { width: 30%; aspect-ratio: 1; background: linear-gradient(135deg, var(--pink), var(--orange)); }
.concept-ads .ad-land { width: 34%; aspect-ratio: 1.91/1; background: linear-gradient(120deg, #2b0a4f, var(--violet)); }

.portfolio-note {
  margin-top: 32px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .94rem;
}
.portfolio-note strong { color: var(--white); }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .work, .work.wide { grid-column: span 1; }
  .work.wide .work-visual { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Portfolio — réalisations clients
   -------------------------------------------------------------------------- */
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pf-filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pf-filter:hover { border-color: var(--white); }
.pf-filter:focus-visible { outline: none; box-shadow: var(--focus); }
.pf-filter[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.pf-count { font-size: .75rem; opacity: .6; }

.pf-grid { columns: 3 260px; column-gap: 20px; }
.pf-item { break-inside: avoid; margin: 0 0 22px; }
.pf-item[hidden] { display: none !important; }
.js .pf-item.is-extra:not(.is-shown) { display: none; }

.pf-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.pf-media img, .pf-media video { display: block; width: 100%; height: auto; }
.pf-video video { aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.pf-zoom { cursor: zoom-in; }
.pf-zoom img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pf-zoom:hover img { transform: scale(1.04); }
.pf-zoom:focus-visible { outline: none; box-shadow: var(--focus); }
.pf-media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .3s ease;
  pointer-events: none;
}
.pf-item:hover .pf-media::after { box-shadow: inset 0 0 0 2px var(--pink); }
.pf-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(9,5,16,.82);
  border: 1px solid rgba(255,255,255,.3);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  pointer-events: none;
}
.pf-badge::before { content: ""; border-left: 7px solid var(--pink); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.pf-item figcaption { padding: 12px 4px 0; }
.pf-client {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FFB0D3;
}
.pf-item h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; }
.pf-item figcaption p { margin: 0; color: var(--text-muted); font-size: .86rem; }
.pf-more-wrap { text-align: center; margin-top: 12px; }

@media (max-width: 600px) {
  .pf-grid { columns: 2; column-gap: 12px; }
  .pf-item { margin-bottom: 16px; }
  .pf-item h3 { font-size: .9rem; }
  .pf-item figcaption p { font-size: .78rem; }
  .pf-badge { top: 8px; left: 8px; font-size: .62rem; padding: 4px 8px; }
  .pf-filter { min-height: 42px; padding: 8px 14px; font-size: .84rem; }
}

/* Visionneuse */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 56px 16px 24px;
  border: 0;
  background: rgba(9, 5, 16, .94);
  color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(9, 5, 16, .7); backdrop-filter: blur(6px); }
.lb-figure { margin: 0; max-width: min(900px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-figure figcaption { margin-top: 12px; text-align: center; font-size: .92rem; color: var(--text); }
.lb-btn {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.lb-close { position: absolute; top: 12px; right: 12px; font-size: 1.1rem; }
@media (max-width: 600px) {
  .lightbox[open] { gap: 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 16px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-figure img { max-height: calc(100dvh - 190px); }
}

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-intro h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.about-intro p { color: var(--text-muted); font-size: 1.05rem; }
.about-quote {
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--pink);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
}
.pillars { display: grid; gap: 16px; }
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pillar-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.pillar h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.pillar p { color: var(--text-muted); margin: 0; font-size: .95rem; }

.process {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.process li {
  counter-increment: step;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.process li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .85rem;
  color: var(--orange);
  margin-bottom: 8px;
}
.process h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.process p { margin: 0; color: var(--text-muted); font-size: .9rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Devis & contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-aside h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.contact-aside > p { color: var(--text-muted); }
.contact-steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-steps li { display: flex; gap: 12px; color: var(--text); font-size: .96rem; }
.contact-steps li span {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(133,0,255,.25);
  font-family: var(--font-title); font-weight: 800; font-size: .8rem;
}
.contact-info { margin-top: 24px; display: grid; gap: 10px; font-size: .94rem; }
.contact-info div { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-info dt { color: var(--text-muted); min-width: 92px; }
.contact-info dd { margin: 0; color: var(--white); }
.contact-info .is-empty { color: var(--text-muted); font-style: italic; }

.config-status {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: .92rem;
  border: 1px solid rgba(255,120,61,.55);
  background: rgba(255,120,61,.10);
  color: var(--text);
}
.config-status.is-ok { border-color: rgba(123,224,176,.5); background: rgba(123,224,176,.08); }
.config-status svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--orange); }
.config-status.is-ok svg { color: var(--success); }
.config-status strong { color: var(--white); }

.form-card {
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .92rem;
  color: var(--white);
}
.field .req { color: var(--error); margin-left: 2px; }
.field .hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #0D0716;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem; /* ≥16px : évite le zoom auto sur iOS */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23FFFFFF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field select option, .field select optgroup { background: #120A1F; color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: #8E849E; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,120,61,.35);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error {
  display: none;
  margin-top: 6px;
  font-size: .86rem;
  color: var(--error);
  font-weight: 500;
}
.field.has-error .field-error { display: flex; gap: 6px; }
.field.is-highlight select { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,22,129,.3); }

.pack-selected-msg { margin-top: 8px; font-size: .86rem; color: #FFB0D3; min-height: 1.3em; }

.form-summary-error {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,143,184,.12);
  border: 1px solid var(--error);
  color: var(--white);
  margin-bottom: 18px;
  font-size: .92rem;
}
.form-summary-error.is-visible { display: block; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-privacy { font-size: .82rem; color: var(--text-muted); margin: 14px 0 0; }

.recap {
  display: none;
  margin-top: 28px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent;
}
.recap.is-visible { display: block; }
.recap h3 { font-size: 1.25rem; font-weight: 800; }
.recap-status { font-size: .94rem; color: var(--text); margin-bottom: 16px; }
.recap-status.is-warning { color: #FFC9A8; }
.recap-status.is-success { color: var(--success); }
.recap-status.is-error { color: var(--error); }
.recap textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #0A0512;
  color: var(--text);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .9rem;
  line-height: 1.55;
  resize: vertical;
  margin-bottom: 16px;
}
.recap-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.recap-help { margin: 12px 0 0; font-size: .84rem; color: var(--text-muted); }
.copy-feedback { font-size: .9rem; color: var(--success); min-height: 1.4em; margin-top: 10px; }

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn, .recap-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  background: #06030B;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand svg { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; max-width: 340px; }
.footer-col h2 {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--text); font-size: .94rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text-muted);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Apparition au défilement (activée uniquement si JS)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Touches créatives
   -------------------------------------------------------------------------- */
::selection { background: var(--pink); color: var(--white); }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 150;
  background: var(--gradient);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 22, 129, .7);
}

/* Grain photographique très léger */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Projecteur qui suit le pointeur dans l'accueil */
.hero-bg .spot {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 35%), rgba(255, 22, 129, .16), transparent 60%);
  transition: background .2s linear;
}

/* Reflet animé sur « vision. » */
.hero h1 .text-gradient {
  background-image: linear-gradient(100deg, var(--violet), var(--pink), var(--orange), var(--pink), var(--violet));
  background-size: 250% auto;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 250% center; } }

/* Carte 3D de l'accueil */
.hero-visual {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  transform-style: preserve-3d;
}
.hero-visual .chip { transform: translateZ(40px); }
.hero-visual .card { flex-direction: column; }
.hero-visual .card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.10) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }

/* Mots qui défilent sous la double barre */
.word-cycle {
  position: absolute;
  bottom: 13%;
  left: 0; right: 0;
  height: 1.3em;
  overflow: hidden;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(.9rem, 1.8vw, 1.1rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--white);
}
.word-cycle ul { list-style: none; margin: 0; padding: 0; animation: words 12s cubic-bezier(.7, 0, .3, 1) infinite; }
.word-cycle li { height: 1.3em; line-height: 1.3em; }
@keyframes words {
  0%, 14%   { transform: translateY(0); }
  16.6%, 31% { transform: translateY(-1.3em); }
  33.3%, 47% { transform: translateY(-2.6em); }
  50%, 64%  { transform: translateY(-3.9em); }
  66.6%, 81% { transform: translateY(-5.2em); }
  83.3%, 97% { transform: translateY(-6.5em); }
  100%      { transform: translateY(-7.8em); }
}

/* Bandeau : alternance plein / contour */
.marquee-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
}

/* Lueur qui suit le pointeur sur les cartes */
.service-card, .pack { isolation: isolate; }
.service-card::after, .pack::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 0%), rgba(133, 0, 255, .22), rgba(255, 22, 129, .08) 40%, transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover::after, .pack:hover::after { opacity: 1; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-icon { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }

/* Bordure dégradée tournante sur le pack recommandé */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.pack.is-featured {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    conic-gradient(from var(--angle), var(--violet), var(--pink), var(--orange), var(--pink), var(--violet)) border-box;
  animation: spin-border 6s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }

/* Boutons « magnétiques » */
.btn-primary, .hero-actions .btn { translate: var(--tx, 0) var(--ty, 0); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, translate .25s cubic-bezier(.2, .7, .2, 1); }

/* Double barre des sur-titres : apparition */
.js .reveal .eyebrow .double-bar span { transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.js .reveal .eyebrow .double-bar span:last-child { transition-delay: .12s; }
.js .reveal.is-visible .eyebrow .double-bar span { transform: scaleY(1); }

/* Grand mot en filigrane derrière certaines sections */
.has-watermark { overflow: hidden; }
.has-watermark > .container { position: relative; z-index: 1; }
.watermark {
  position: absolute;
  top: 50%;
  right: -4vw;
  z-index: 0;
  transform: translate(var(--shift, 0px), -50%);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(120px, 24vw, 340px);
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .1);
  pointer-events: none;
  user-select: none;
}
.watermark.left { right: auto; left: -4vw; }

/* Portfolio : légère mise en mouvement au survol */
.work-visual .concept { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work:hover .work-visual .concept { transform: scale(1.05); }
.work-visual::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0);
  transition: box-shadow .3s ease;
  pointer-events: none;
}
.work:hover .work-visual::after { box-shadow: inset 0 0 0 2px var(--pink); }

/* --------------------------------------------------------------------------
   Bannière : photo de l'équipe
   -------------------------------------------------------------------------- */
.hero-inner:has(.has-photo) { grid-template-columns: 1fr 1fr; }
.hero-visual.has-photo {
  margin: 0;
  aspect-ratio: 4 / 3.5;
  max-width: 580px;
}
.hero-visual.has-photo .card { inset: 10px; border-radius: 30px; background: var(--surface); }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.photo-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(9, 5, 16, .9) 0%, rgba(9, 5, 16, .35) 26%, transparent 48%),
    linear-gradient(120deg, rgba(133, 0, 255, .18), transparent 40%, rgba(255, 120, 61, .12));
  pointer-events: none;
}
.mini-bars { position: absolute; top: 18px; right: 22px; font-size: 30px; z-index: 1; }
[dir="rtl"] .mini-bars { right: auto; left: 22px; }
.hero-visual.has-photo .word-cycle { bottom: 7%; z-index: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hero-visual.has-photo .chip-1 { top: 8%; }
.hero-visual.has-photo .chip-2 { top: 54%; }
@media (max-width: 900px) {
  .hero-inner:has(.has-photo) { grid-template-columns: 1fr; }
  .hero-visual.has-photo { max-width: 560px; }
}
@media (max-width: 520px) {
  .hero-visual.has-photo { max-width: 100%; aspect-ratio: 4 / 3.6; }
  .hero-visual.has-photo .card { border-radius: 22px; }
  .mini-bars { font-size: 22px; top: 12px; right: 16px; }
  [dir="rtl"] .mini-bars { left: 16px; }
}

/* --------------------------------------------------------------------------
   Bouton WhatsApp flottant
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 120;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; min-width: 58px;
  padding: 0 15px;
  border-radius: 999px;
  background: #1F8F4E;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6), 0 0 0 0 rgba(37, 211, 102, .5);
  transition: transform .25s ease, opacity .25s ease, visibility .25s, background-color .2s ease;
  animation: wa-pulse 2.8s ease-out 1.5s 3;
}
.wa-float:hover { background: #18773F; transform: translateY(-2px); }
.wa-float:focus-visible { outline: none; box-shadow: var(--focus); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.wa-float-label { padding-right: 4px; }
body.menu-open .wa-float { display: none; }
@keyframes wa-pulse {
  0% { box-shadow: 0 12px 30px -8px rgba(0,0,0,.6), 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 12px 30px -8px rgba(0,0,0,.6), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 12px 30px -8px rgba(0,0,0,.6), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 600px) {
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 56px; height: 56px; justify-content: center; }
  .wa-float-label { display: none; }
}
[dir="rtl"] .wa-float { right: auto; left: 20px; }
[dir="rtl"] .wa-float-label { padding-right: 0; padding-left: 4px; }
@media (max-width: 600px) { [dir="rtl"] .wa-float { left: 16px; } }

/* --------------------------------------------------------------------------
   Version arabe (droite à gauche)
   -------------------------------------------------------------------------- */
:root:lang(ar) {
  --font-title: "Montserrat", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Poppins", "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
}
:lang(ar) body { line-height: 1.85; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.4; }
:lang(ar) .hero h1 { line-height: 1.3; }
/* Pas d'espacement ni de majuscules forcées : cela casse les liaisons arabes */
:lang(ar) .eyebrow, :lang(ar) .pf-client, :lang(ar) .pack-badge, :lang(ar) .pf-badge,
:lang(ar) .word-cycle, :lang(ar) .footer-col h2, :lang(ar) .demo-badge { letter-spacing: 0; text-transform: none; }
:lang(ar) .eyebrow { font-size: .95rem; }
:lang(ar) .word-cycle { height: 1.6em; }
:lang(ar) .word-cycle li { height: 1.6em; line-height: 1.6em; }
:lang(ar) .word-cycle ul { animation-name: words-ar; }
@keyframes words-ar {
  0%, 14%   { transform: translateY(0); }
  16.6%, 31% { transform: translateY(-1.6em); }
  33.3%, 47% { transform: translateY(-3.2em); }
  50%, 64%  { transform: translateY(-4.8em); }
  66.6%, 81% { transform: translateY(-6.4em); }
  83.3%, 97% { transform: translateY(-8em); }
  100%      { transform: translateY(-9.6em); }
}

/* Le logo et les éléments latins restent de gauche à droite */
[dir="rtl"] svg { direction: ltr; }
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .hero-slogan-en { text-align: right; }
:lang(ar) .recap textarea { font-family: var(--font-body); font-size: .95rem; }

/* Positions miroir */
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .service-num { right: auto; left: 26px; }
[dir="rtl"] .pack-badge { left: auto; right: 28px; }
[dir="rtl"] .pf-badge { left: auto; right: 12px; }
[dir="rtl"] .about-quote { padding-left: 0; border-left: 0; padding-right: 20px; border-right: 3px solid var(--pink); }
[dir="rtl"] .field .req { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .field select { background-position: left 16px center; padding-right: 16px; padding-left: 44px; }
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
[dir="rtl"] .lb-close { right: auto; left: 12px; }
[dir="rtl"] .hero-visual .chip-1 { left: auto; right: -6%; }
[dir="rtl"] .hero-visual .chip-2 { right: auto; left: -8%; }
[dir="rtl"] .hero-visual .chip-3 { left: auto; right: 8%; }
@media (max-width: 900px) {
  [dir="rtl"] .hero-visual .chip-1 { right: 0; }
  [dir="rtl"] .hero-visual .chip-2 { left: 0; }
}
@media (max-width: 600px) {
  [dir="rtl"] .pf-badge { right: 8px; }
  [dir="rtl"] .lb-prev { left: auto; right: calc(50% - 60px); }
  [dir="rtl"] .lb-next { right: auto; left: calc(50% - 60px); }
}

/* Sélecteur à trois langues sur petit écran */
@media (max-width: 480px) {
  .lang-switch a, .lang-switch span { min-width: 34px; padding: 0 7px; font-size: .78rem; }
  .header-inner { gap: 10px; }
}

/* ==========================================================================
   BANNIÈRE 2.0 — fond animé, entrée du titre, cadre photo, boutons
   ========================================================================== */

/* ---------- Boutons : couleurs de marque, lisibles (contraste AA) ---------- */
:root {
  /* Violet → magenta → rose foncé : texte blanc lisible sur toute la largeur */
  --gradient-btn: linear-gradient(110deg, #7A00EA 0%, #A800D0 35%, #D1006C 70%, #7A00EA 100%);
}
.btn { position: relative; isolation: isolate; overflow: hidden; letter-spacing: .01em; }
.btn-primary {
  background: var(--gradient-btn);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #fff;
  text-shadow: 0 1px 2px rgba(60, 0, 40, .35);
  box-shadow: 0 10px 28px -10px rgba(209, 0, 108, .75), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  animation: btn-flow 7s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease, translate .25s cubic-bezier(.2, .7, .2, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(209, 0, 108, .9), 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 0 26px -4px rgba(255, 120, 61, .55);
}
@keyframes btn-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
/* Reflet qui balaie le bouton au survol */
.btn-primary::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.btn-primary:hover::before, .btn-primary:focus-visible::before { transform: translateX(120%); }
.btn-arrow { display: inline-block; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .btn-arrow { transform: translateX(5px); }
[dir="rtl"] .btn:hover .btn-arrow { transform: translateX(-5px); }

/* Bouton secondaire : verre fumé + bordure dégradée de la marque */
.btn-ghost {
  background:
    linear-gradient(rgba(18, 10, 31, .72), rgba(18, 10, 31, .72)) padding-box,
    linear-gradient(110deg, var(--violet), var(--pink), var(--orange)) border-box;
  border: 2px solid transparent;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background:
    linear-gradient(rgba(40, 14, 60, .85), rgba(40, 14, 60, .85)) padding-box,
    linear-gradient(110deg, var(--violet), var(--pink), var(--orange)) border-box;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(133, 0, 255, .8);
}
.main-nav .nav-cta a { background: var(--gradient-btn); background-size: 220% 100%; }
.btn:focus-visible { box-shadow: var(--focus) !important; }

/* ---------- Fond : aurore en mouvement + faisceaux ---------- */
.hero { min-height: min(100svh, 900px); display: flex; flex-direction: column; justify-content: center; }
.hero-bg .glow { will-change: transform; }
.hero-bg .glow-1 { animation: aurora-1 16s ease-in-out infinite alternate; }
.hero-bg .glow-2 { animation: aurora-2 19s ease-in-out infinite alternate; }
.hero-bg .glow-3 { animation: aurora-3 22s ease-in-out infinite alternate; }
.hero-bg .glow-4 { width: 380px; height: 380px; background: var(--pink); top: 20%; left: 38%; opacity: .16; animation: aurora-2 24s ease-in-out infinite alternate-reverse; }
@keyframes aurora-1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes aurora-2 { to { transform: translate(-160px, -70px) scale(1.2); } }
@keyframes aurora-3 { to { transform: translate(120px, -110px) scale(.85); } }
.beams { position: absolute; inset: 0; overflow: hidden; }
.beams i {
  position: absolute; top: -20%; height: 140%; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 22, 129, .55), rgba(255, 120, 61, .35), transparent);
  transform: rotate(28deg);
  opacity: 0;
  animation: beam 9s linear infinite;
}
.beams i:nth-child(1) { left: 18%; animation-delay: 0s; }
.beams i:nth-child(2) { left: 52%; animation-delay: 3s; width: 1px; }
.beams i:nth-child(3) { left: 80%; animation-delay: 6s; }
@keyframes beam {
  0% { opacity: 0; translate: -120px -40%; }
  15% { opacity: .9; }
  45% { opacity: 0; translate: 220px 40%; }
  100% { opacity: 0; translate: 220px 40%; }
}

/* ---------- Entrée en scène du texte ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { from { opacity: 0; scale: .92; rotate: -2deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
.hero-tag, .hero h1 .line, .hero-lead, .hero-actions, .hero-slogan-en { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-tag { animation-delay: .05s; }
.hero h1 .line:nth-child(1) { animation-delay: .18s; }
.hero h1 .line:nth-child(2) { animation-delay: .32s; }
.hero-lead { animation-delay: .5s; }
.hero-actions { animation-delay: .66s; }
.hero-slogan-en { animation-delay: .8s; }
/* « vision. » : lueur + soulignement dégradé dessiné */
.hero h1 .text-gradient { position: relative; display: inline-block; filter: drop-shadow(0 6px 26px rgba(255, 22, 129, .35)); }
.hero h1 .text-gradient::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .02em;
  height: .09em; border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--orange));
  transform: scaleX(0); transform-origin: left;
  animation: draw 1s cubic-bezier(.2, .7, .2, 1) 1.1s forwards;
}
[dir="rtl"] .hero h1 .text-gradient::after { transform-origin: right; }
@keyframes draw { to { transform: scaleX(1); } }
.hero-tag { box-shadow: 0 0 0 1px rgba(255, 22, 129, .15), 0 8px 24px -12px rgba(255, 22, 129, .6); }
.hero-tag .dot { animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 18px var(--pink); transform: scale(1.3); } }

/* ---------- Photo : cadre dégradé tournant, halo, grandes barres ---------- */
.hero-visual.has-photo { animation: pop 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }
.hero-visual.has-photo .ring {
  padding: 3px;
  border-radius: 36px;
  background: conic-gradient(from var(--angle), var(--violet), var(--pink), var(--orange), var(--pink), var(--violet));
  animation: spin-border 5s linear infinite;
}
.photo-glow {
  position: absolute; inset: 6%;
  border-radius: 40px;
  background: conic-gradient(from var(--angle), var(--violet), var(--pink), var(--orange), var(--violet));
  filter: blur(38px);
  opacity: .55;
  z-index: -1;
  animation: spin-border 5s linear infinite;
}
.hero-slash {
  position: absolute; z-index: -2;
  top: -9%; right: -7%; bottom: -9%;
  display: flex; gap: 22px;
  transform: skewX(-28deg);
  pointer-events: none;
}
.hero-slash i {
  display: block; width: 46px; height: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(133, 0, 255, .75), rgba(255, 22, 129, .25));
  animation: slash-in 1s cubic-bezier(.2, .7, .2, 1) both, slash-float 6s ease-in-out 1.2s infinite;
}
.hero-slash i + i { background: linear-gradient(180deg, rgba(255, 22, 129, .7), rgba(255, 120, 61, .2)); animation-delay: .15s, 1.5s; }
@keyframes slash-in { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes slash-float { 50% { transform: translateY(14px); } }
[dir="rtl"] .hero-slash { right: auto; left: -7%; }
.hero-visual.has-photo .hero-photo { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hero-visual.has-photo:hover .hero-photo { transform: scale(1.04); }

/* Étiquettes flottantes */
.hero-visual.has-photo .chip {
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(9, 5, 16, .72);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .8);
  animation: chip-in .7s cubic-bezier(.2, .7, .2, 1) both, bob 5s ease-in-out infinite;
}
.hero-visual.has-photo .chip-1 { animation-delay: .9s, 1.6s; }
.hero-visual.has-photo .chip-2 { animation-delay: 1.05s, 2.4s; }
.hero-visual.has-photo .chip-3 { animation-delay: 1.2s, 3.2s; }
@keyframes chip-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes bob { 50% { translate: 0 -9px; } }

/* ---------- Indicateur de défilement ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px;
  margin-left: -13px;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  animation: rise .8s ease 1.4s both;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(var(--pink), var(--orange));
  animation: wheel 1.8s ease-in-out infinite;
}
.scroll-cue:hover { border-color: #fff; }
.scroll-cue:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .scroll-cue { display: none; }
  .hero-slash { top: -5%; right: -3%; bottom: -5%; }
  .hero-slash i { width: 32px; }
}
@media (max-width: 520px) {
  .hero-slash { gap: 14px; }
  .hero-slash i { width: 22px; }
  .photo-glow { filter: blur(26px); }
}

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee-track { animation: none; }
  .wa-float { animation: none; }
  .beams { display: none; }
  .hero h1 .text-gradient::after { transform: scaleX(1); }
  .hero-visual.has-photo:hover .hero-photo { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .eyebrow .double-bar span { transform: none; }
  .hero-visual, .btn-primary, .hero-actions .btn { transform: none; translate: none; }
  .word-cycle ul { animation: none; }
  .work:hover .work-visual .concept, .pf-zoom:hover img { transform: none; }
}

/* Contraste renforcé */
@media (prefers-contrast: more) {
  :root { --text-muted: #DCD5E6; --border: rgba(255,255,255,.3); }
}
