/* ==========================================================================
   ConnectMe — Design system « Premium Minimal »
   Couleurs de la marque : bleu ConnectMe + rouge ConnectMe
   ========================================================================== */

:root {
  --font-display: "Ubuntu Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --blue: #2F86F0;
  --blue-deep: #0A6ED4;
  --red: #E0263A;
  --red-deep: #B5050C;

  --bg: #07090F;
  --bg-2: #0C1019;
  --bg-3: #111622;
  --surface: rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #ECEFF5;
  --muted: #8C94A8;
  --invert: #07090F;
  --chip: rgba(255, 255, 255, .94);
  --glow-blue: rgba(47, 134, 240, .22);
  --glow-red: rgba(224, 38, 58, .16);

  --grad: linear-gradient(100deg, var(--blue) 0%, #7A5BE0 52%, var(--red) 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 84px;
  color-scheme: dark;
}

[data-theme="light"] {
  --blue: #0A6ED4;
  --red: #C10A1A;
  --bg: #F7F6F2;
  --bg-2: #EFEEE9;
  --bg-3: #E7E5DF;
  --surface: rgba(11, 16, 32, .025);
  --surface-2: rgba(11, 16, 32, .05);
  --line: rgba(11, 16, 32, .1);
  --line-strong: rgba(11, 16, 32, .2);
  --text: #0B1020;
  --muted: #5B6377;
  --invert: #F7F6F2;
  --chip: #ffffff;
  --glow-blue: rgba(10, 110, 212, .14);
  --glow-red: rgba(193, 10, 26, .09);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body.cm {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}

body.cm.menu-open { overflow: hidden; }

.cm a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
.cm a:hover { color: var(--blue); }
.cm img { max-width: 100%; display: block; }
.cm ::selection { background: var(--blue); color: #fff; }

.cm h1, .cm h2, .cm h3, .cm h4, .cm h5 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1;
  margin: 0;
}

.cm em, .cm .em {
  font-style: normal;
  font-weight: inherit;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.cm p { color: var(--muted); margin: 0; }

.cm .container { max-width: 1240px; padding-left: 24px; padding-right: 24px; }

.display-xl { font-size: clamp(3.4rem, 8.4vw, 8rem); }
.display-lg { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.display-md { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.lead-cm { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 52ch; }

.section-cm { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section-cm.tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--glow-red);
  animation: pulse 2.4s infinite;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); flex-wrap: wrap; }
.section-head .lead-cm { max-width: 38ch; }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn-cm {
  --b-bg: var(--text);
  --b-fg: var(--invert);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 16px 28px;
  border-radius: 100px;
  background: var(--b-bg);
  color: var(--b-fg) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s var(--ease);
}
.btn-cm::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0;
  z-index: -1;
  transition: opacity .5s var(--ease);
}
.btn-cm:hover { color: #fff !important; box-shadow: 0 18px 40px -12px var(--glow-blue); }
.btn-cm:hover::before { opacity: 1; }
.btn-cm .arr {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--b-fg);
  color: var(--b-bg);
  font-size: 1rem;
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.btn-cm:hover .arr { transform: rotate(-45deg); background: #fff; color: #0B1020; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--text) !important;
  font-weight: 600; font-size: .92rem;
  background: transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.btn-ghost:hover { border-color: var(--text); background: var(--surface-2); }
.btn-ghost i { transition: transform .4s var(--ease); }
.btn-ghost:hover i { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .88rem;
  color: var(--text) !important;
  position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(.25); transform-origin: left;
  transition: transform .5s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }

/* ---------- Écran de chargement : vidéo d'intro ConnectMe ---------- */
#cm-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #ffffff;
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease), visibility 0s linear 1.1s;
}
#cm-loader.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
#cm-loader video { width: min(760px, 92vw); height: auto; display: block; }
#cm-loader .bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #0A6ED4, #B5050C); transform-origin: left; transform: scaleX(0); }
#cm-loader.play .bar { animation: introBar 5.2s linear forwards; }
#cm-loader .skip {
  position: absolute; bottom: 28px; right: 28px;
  background: none; border: 1px solid rgba(4, 84, 164, .25); color: #0454a4;
  border-radius: 100px; padding: 9px 18px; font: 600 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  transition: background .3s, color .3s;
}
#cm-loader .skip:hover { background: #0454a4; color: #fff; }
html.cm-seen #cm-loader { display: none; }
@keyframes introBar { to { transform: scaleX(1); } }

/* ---------- Cursor & progress ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s;
}
.cursor-dot { width: 6px; height: 6px; background: var(--red); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid var(--line-strong);
  transition: width .4s var(--ease), height .4s var(--ease), background .4s, border-color .4s, opacity .3s;
}
.cursor-ring.hover { width: 72px; height: 72px; background: var(--glow-blue); border-color: transparent; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
  z-index: 1001;
}

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text) !important; font-size: 1.3rem;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .5s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { position: absolute; inset: -1px; width: 54px; height: 54px; transform: rotate(-90deg); }
.to-top svg circle { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; }

/* ---------- Barre d'adresse ---------- */
:root { --topbar-h: 40px; }
.cm-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: var(--topbar-h);
  display: flex; align-items: center;
  font-size: .78rem; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--ease);
}
.cm-topbar .tb-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cm-topbar .tb-info { display: flex; align-items: center; gap: 26px; min-width: 0; }
.cm-topbar .tb-info > * { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted) !important; }
.cm-topbar .tb-info a:hover { color: var(--text) !important; }
.cm-topbar .tb-info i { color: var(--blue); }
.cm-topbar .tb-social { display: flex; gap: 4px; }
.cm-topbar .tb-social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted) !important; transition: background .3s, color .3s, transform .4s var(--ease); }
.cm-topbar .tb-social a:hover { background: var(--surface-2); color: var(--text) !important; transform: translateY(-2px); }
body.topbar-hidden .cm-topbar { transform: translateY(-100%); }
body .cm-header { top: var(--topbar-h); transition: background .5s var(--ease), border-color .5s, height .5s var(--ease), transform .5s var(--ease), top .5s var(--ease) !important; }
body.topbar-hidden .cm-header { top: 0; }
.hero-cm, .page-hero { margin-top: 0; }
@media (max-width: 575px) { .cm-topbar .tb-info a { font-size: .74rem; } }

/* ---------- Header ---------- */
.cm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s, height .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.cm-header.scrolled {
  --header-h: 70px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.cm-header.hide { transform: translateY(-100%); }
.cm-header .bar { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: scale(1.06) rotate(-3deg); }
.brand .brand-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; letter-spacing: 0; line-height: 1; }
.brand .brand-name b { font-weight: 400; color: var(--red); }
.logo-light, [data-theme="light"] .logo-dark { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }

.nav-cm ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-cm a {
  position: relative; display: block;
  padding: 10px 14px;
  font-size: .86rem; font-weight: 500; letter-spacing: .01em;
  color: var(--muted) !important;
}
.nav-cm a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-cm a:hover, .nav-cm a.active { color: var(--text) !important; }
.nav-cm a:hover::after, .nav-cm a.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 1.05rem; cursor: pointer;
  transition: border-color .4s, background .4s, transform .5s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.theme-toggle .bi-sun { display: none; }
[data-theme="light"] .theme-toggle .bi-sun { display: block; }
[data-theme="light"] .theme-toggle .bi-moon-stars { display: none; }
.theme-toggle:hover { transform: rotate(25deg); }
.header-cta { padding: 11px 12px 11px 20px; font-size: .82rem; }
.header-cta .arr { width: 26px; height: 26px; font-size: .85rem; }

.burger { display: none; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px auto; transition: transform .5s var(--ease), opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 32px 48px;
  clip-path: circle(0 at calc(100% - 46px) 82px);
  transition: clip-path .9s var(--ease);
  pointer-events: none;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 82px); pointer-events: auto; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.1;
  color: var(--text) !important;
  transform: translateY(100%); transition: transform .8s var(--ease);
}
.mobile-menu a small { font-family: var(--font-body); font-size: .72rem; color: var(--muted); letter-spacing: .2em; }
.menu-open .mobile-menu a { transform: none; }
.mobile-menu .m-foot { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Network canvas / glows ---------- */
.cm-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow.blue { width: 46vw; height: 46vw; background: var(--glow-blue); top: -12vw; left: -10vw; }
.glow.red { width: 38vw; height: 38vw; background: var(--glow-red); bottom: -14vw; right: -8vw; animation-delay: -6s; }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  opacity: .55;
}

/* ---------- Hero ---------- */
.hero-cm {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + var(--topbar-h) + 30px) 0 0;
  overflow: hidden;
}
.hero-cm .container { position: relative; z-index: 2; }
.hero-cm h1 { max-width: 12ch; font-size: clamp(3.2rem, 7.4vw, 7.4rem); }
@media (min-width: 992px) { .hero-copy { max-width: 54%; } }
.hero-cm h1 .line { display: block; }
.hero-sub { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero-sub p { font-size: 1.08rem; }
.rotator { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.rotator span {
  grid-area: 1 / 1; white-space: nowrap;
  color: var(--text); font-weight: 600;
  transform: translateY(110%); opacity: 0;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.rotator span.on { transform: none; opacity: 1; }
.rotator span.off { transform: translateY(-110%); opacity: 0; }
.hero-ctas { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }

.hero-pillars {
  position: relative; z-index: 2;
  margin-top: clamp(60px, 9vh, 110px);
  border-top: 1px solid var(--line);
}
.hero-pillars .row-p { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-pillars a {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 24px 30px 0;
  border-right: 1px solid var(--line);
  color: var(--text) !important;
  position: relative;
}
.hero-pillars a:last-child { border-right: 0; }
.hero-pillars a + a { padding-left: 24px; }
.hero-pillars .num { font-size: .7rem; letter-spacing: .2em; color: var(--muted); }
.hero-pillars i { font-size: 1.25rem; color: var(--blue); transition: transform .5s var(--ease), color .4s; }
.hero-pillars span.t { font-weight: 600; font-size: .92rem; }
.hero-pillars a::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.hero-pillars a:hover::before { transform: scaleX(1); }
.hero-pillars a:hover i { transform: translateY(-3px) scale(1.1); color: var(--red); }

.scroll-cue {
  position: absolute; right: 24px; bottom: 140px; z-index: 2;
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s var(--ease) infinite; }

.hero-emblem {
  position: absolute; right: max(24px, calc((100vw - 1240px) / 2 + 24px)); top: 50%; z-index: 1;
  width: min(34vw, 500px); transform: translateY(-66%);
  pointer-events: none; animation: floaty 9s ease-in-out infinite;
}
.hero-emblem svg { width: 100%; height: auto; overflow: visible; }
.hero-emblem path {
  fill: none; stroke: url(#cmGrad); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600; opacity: .9;
}
.loaded .hero-emblem path { animation: draw 2.4s var(--ease) .3s forwards; }
.loaded .hero-emblem path.m { animation-delay: .7s; }
.hero-emblem .ghost { stroke: var(--line); stroke-width: 1; stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
@media (max-width: 991px) { .hero-emblem { display: none; } }

/* ---------- Hero : composition d'images ---------- */
.hero-visual {
  position: absolute; z-index: 1; top: 50%; right: max(24px, calc((100vw - 1240px) / 2 + 24px));
  width: min(36vw, 520px); aspect-ratio: 1 / 1.05; transform: translateY(-56%);
}
.hero-visual .hv { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); border: 1px solid var(--line); background: var(--bg-3); transition: transform .9s var(--ease); }
.hero-visual .hv img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hv.a { width: 62%; height: 70%; right: 0; top: 0; }
.hero-visual .hv.b { width: 46%; height: 46%; left: 0; top: 30%; }
.hero-visual .hv.c { width: 40%; height: 36%; right: 8%; bottom: 0; }
.hero-visual .hv { opacity: 0; transform: translateY(40px) scale(.96); }
.loaded .hero-visual .hv { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.loaded .hero-visual .hv.b { transition-delay: .15s; }
.loaded .hero-visual .hv.c { transition-delay: .3s; }
.hero-visual .chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 100px; font-size: .82rem; font-weight: 600;
  background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: floaty 6s ease-in-out infinite;
}
.hero-visual .chip .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1rem; }
.hero-visual .chip small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.hero-visual .chip.one { left: -6%; top: 6%; }
.hero-visual .chip.two { right: -4%; bottom: 30%; animation-delay: -3s; }
@media (max-width: 991px) { .hero-visual { display: none; } }

/* ---------- Bande « engagements » sous le hero ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .t { display: flex; align-items: center; gap: 16px; padding: 28px 24px; border-right: 1px solid var(--line); }
.trust .t:last-child { border-right: 0; }
.trust .t i { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; background: var(--surface-2); color: var(--blue); transition: background .5s, color .5s, transform .6s var(--ease); }
.trust .t:hover i { background: var(--grad); color: #fff; transform: rotate(-8deg); }
.trust .t b { display: block; font-size: .95rem; }
.trust .t span { font-size: .8rem; color: var(--muted); }
@media (max-width: 991px) { .trust { grid-template-columns: 1fr 1fr; } .trust .t:nth-child(2) { border-right: 0; } .trust .t:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 575px) { .trust { grid-template-columns: 1fr; } .trust .t { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Bande de photos en mouvement ---------- */
.photo-strip { overflow: hidden; padding: 10px 0; }
.photo-strip .track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.photo-strip:hover .track { animation-play-state: paused; }
.photo-strip a { position: relative; display: block; width: 300px; height: 380px; border-radius: 24px; overflow: hidden; flex: 0 0 auto; background: var(--bg-3); }
.photo-strip a:nth-child(even) { height: 300px; margin-top: 40px; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-strip a:hover img { transform: scale(1.08); }
.photo-strip a span {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px; font-size: .76rem; font-weight: 600; color: #fff;
  background: rgba(7, 9, 15, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 575px) { .photo-strip a { width: 220px; height: 280px; } .photo-strip a:nth-child(even) { height: 220px; } }

/* ---------- Objets personnalisés ---------- */
.prod-chip { position: relative; width: 210px; height: 210px; flex: 0 0 auto; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 18px 18px 34px; transition: transform .6s var(--ease); }
.prod-chip:hover { transform: translateY(-8px) rotate(-2deg); }
.prod-chip img { max-height: 140px; width: auto; object-fit: contain; }
.prod-chip span { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: .8rem; font-weight: 700; color: #0B1020; }
.logos.prods .track { animation-duration: 55s; }

/* ---------- Grilles d'icônes (fonctionnalités, prestations…) ---------- */
.ico-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 26px 0; }
.ico-grid > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.3; transition: transform .5s var(--ease), border-color .4s, background .4s; }
.ico-grid > div:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.ico-grid i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: var(--surface-2); color: var(--blue); transition: background .4s, color .4s; }
.ico-grid > div:hover i { background: var(--grad); color: #fff; }
.ico-grid small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.steps-cm { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 26px 0; counter-reset: st; }
.steps-cm div { position: relative; padding: 26px 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: center; font-size: .86rem; font-weight: 600; color: var(--text); }
.steps-cm div::before { counter-increment: st; content: "0" counter(st); position: absolute; top: 10px; left: 14px; font-size: .68rem; letter-spacing: .15em; color: var(--muted); }
.steps-cm i { display: block; font-size: 1.5rem; color: var(--blue); margin-bottom: 8px; }
@media (max-width: 767px) { .steps-cm { grid-template-columns: repeat(2, 1fr); } }
.chips-cm { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chips-cm span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--text); }
.chips-cm span i { color: var(--red); }
.prose .split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 24px 0; }
.prose .split-media img { border-radius: var(--radius); width: 100%; }
@media (max-width: 767px) { .prose .split-media { grid-template-columns: 1fr; } }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 50px 0 10px; opacity: 1; }
.prose h4.sub { font-family: var(--font-display); font-size: 1.6rem; margin: 30px 0 6px; }

/* ---------- Mission / vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { position: relative; overflow: hidden; padding: clamp(30px, 4vw, 50px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mv-card.accent { background: var(--grad); border-color: transparent; }
.mv-card.accent h3, .mv-card.accent p, .mv-card.accent i { color: #fff !important; }
.mv-card i { font-size: 2.2rem; color: var(--blue); display: block; margin-bottom: 30px; }
.mv-card h3 { font-size: 2.4rem; margin-bottom: 10px; }
.mv-card p { font-size: 1.05rem; }
.mv-card::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .07); }
@media (max-width: 767px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- Mentions légales ---------- */
.legal-row { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .78rem; color: var(--muted); padding: 18px 0 0; }
.legal-row b { color: var(--text); font-weight: 600; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + var(--topbar-h) + clamp(60px, 9vw, 120px)) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .ph-img { position: absolute; inset: 0; z-index: 0; }
.page-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 18s ease-in-out infinite alternate; }
.page-hero .ph-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, color-mix(in srgb, var(--bg) 45%, transparent)); }
@keyframes kenburns { to { transform: scale(1.18) translate(-2%, -1%); } }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); max-width: 16ch; }
.page-hero .lead-cm { margin-top: 26px; }
.crumbs { display: flex; gap: 10px; align-items: center; list-style: none; padding: 0; margin: 0 0 30px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted) !important; }
.crumbs a:hover { color: var(--text) !important; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs .current { color: var(--text); }

/* ---------- Split & reveal ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].in { opacity: 1; transform: none; }

.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius); }
.img-reveal::after {
  content: ""; position: absolute; inset: 0; background: var(--bg-3);
  transform-origin: top; transition: transform 1.3s var(--ease);
}
.img-reveal.in::after { transform: scaleY(0); }
.img-reveal img, .img-reveal video { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.img-reveal.in img, .img-reveal.in video { transform: scale(1); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  min-height: 420px; padding: 34px 30px 30px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--text) !important; overflow: hidden; isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--glow-blue), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.svc:hover::before { opacity: 1; }
.svc .bg { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .7s var(--ease); }
.svc .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.svc .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 9, 15, .92) 20%, rgba(7, 9, 15, .45)); }
.svc:hover .bg { opacity: 1; }
.svc:hover .bg img { transform: scale(1); }
.svc:hover, .svc:hover h3, .svc:hover .go { color: #fff !important; }
.svc:hover p { color: rgba(255, 255, 255, .78); }
.svc:hover .n { color: rgba(255, 255, 255, .7); }
.svc .top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc .n { font-size: .72rem; letter-spacing: .22em; color: var(--muted); }
.svc .ico {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  border: 1px solid var(--line-strong);
  transition: transform .7s var(--ease), background .5s, border-color .5s, color .5s;
}
.svc:hover .ico { background: var(--grad); border-color: transparent; color: #fff; transform: rotate(-12deg) scale(1.08); }
.svc h3 { font-size: 1.9rem; margin-top: auto; padding-top: 60px; }
.svc p { margin-top: 14px; font-size: .93rem; }
.svc .go {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.svc .go i { transition: transform .5s var(--ease); }
.svc:hover .go i { transform: translateX(6px); }

/* ---------- About / manifesto ---------- */
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .badge-float {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 100px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600;
}
.media-frame .badge-float img { width: 34px; height: auto; }
.play-btn {
  position: absolute; right: 20px; top: 20px; z-index: 2;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #0B1020 !important; font-size: 1.6rem;
}
.play-btn::before, .play-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #fff;
  animation: ring 2.6s var(--ease) infinite;
}
.play-btn::after { animation-delay: 1.3s; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.value { padding: 24px 18px 24px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.value:nth-child(odd) { border-right: 1px solid var(--line); }
.value:nth-child(even) { padding-left: 22px; }
.value i { font-size: 1.3rem; color: var(--blue); margin-top: 2px; }
.value h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.value p { font-size: .86rem; line-height: 1.5; }

/* ---------- Big marquee text ---------- */
.marquee-text { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee-text .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-text span {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); line-height: 1; white-space: nowrap;
  padding-right: .5em; color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  display: inline-flex; align-items: center; gap: .5em;
  transition: color .5s;
}
.marquee-text span i { font-size: .3em; color: var(--red); -webkit-text-stroke: 0; }
.marquee-text span em { -webkit-text-stroke: 0; }
.marquee-text:hover .track { animation-play-state: paused; }

/* ---------- Expertise list with hover image ---------- */
.expertise { border-top: 1px solid var(--line); position: relative; }
.exp-row {
  display: grid; grid-template-columns: 90px 1.3fr 1fr 60px; align-items: center; gap: 24px;
  padding: 38px 0; border-bottom: 1px solid var(--line);
  color: var(--text) !important; position: relative;
}
.exp-row .n { font-size: .72rem; letter-spacing: .22em; color: var(--muted); }
.exp-row h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); transition: transform .7s var(--ease), color .4s; }
.exp-row .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-row .tags span { font-size: .74rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.exp-row .arrow {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 1.1rem;
  transition: background .5s, color .5s, transform .6s var(--ease), border-color .5s;
}
.exp-row:hover h3 { transform: translateX(18px); }
.exp-row:hover .arrow { background: var(--text); color: var(--invert); transform: rotate(-45deg); border-color: var(--text); }
.exp-row .mobile-img { display: none; }
@media (max-width: 991px) { .exp-row .mobile-img { display: block; grid-column: 1 / -1; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; } .exp-row .mobile-img img { width: 100%; height: 100%; object-fit: cover; } }
.exp-float {
  position: fixed; top: 0; left: 0; width: 320px; height: 220px; z-index: 50;
  border-radius: 18px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.exp-float.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.exp-float img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.exp-float img.on { opacity: 1; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 24px 10px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--font-display); font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 1; color: var(--text); display: flex; align-items: flex-start; }
.stat .v sup { font-size: .4em; margin-left: 4px; top: .2em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin-top: 14px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Skills bars ---------- */
.bar-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.bar-item .lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.bar-item .lbl i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.bar-fill { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); }

/* ---------- Doctrine ---------- */
.doctrine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc {
  padding: 34px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .7s var(--ease), border-color .5s, background .5s;
}
.doc:hover { transform: translateY(-8px); border-color: var(--line-strong); background: var(--surface-2); }
.doc .ico { font-size: 1.6rem; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); color: var(--blue); margin-bottom: 40px; transition: background .5s, color .5s; }
.doc:hover .ico { background: var(--grad); color: #fff; }
.doc h3 { font-size: 1.8rem; margin-bottom: 10px; }
.doc p { font-size: .9rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member-cm { position: relative; }
.member-cm .ph {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-3);
}
.member-cm .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.member-cm:hover .ph img { filter: grayscale(0); transform: scale(1.1); }
.member-cm .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 9, 15, .75), transparent 45%); opacity: .8; transition: opacity .6s; }
.member-cm .idx {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: .7rem; letter-spacing: .2em; padding: 6px 10px; border-radius: 100px;
  background: rgba(7, 9, 15, .45); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.member-cm .soc {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px;
}
.member-cm .soc a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, background .3s;
}
.member-cm .soc a:nth-child(2) { transition-delay: .05s; }
.member-cm .soc a:nth-child(3) { transition-delay: .1s; }
.member-cm:hover .soc a { transform: none; opacity: 1; }
.member-cm .soc a:hover { background: var(--blue); }
.member-cm h4 { font-size: 1.55rem; margin-top: 18px; }
.member-cm .role { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; display: block; }

/* ---------- Clients marquee ---------- */
.logos { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.logos + .logos { margin-top: 18px; }
.logos .track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; }
.logos.reverse .track { animation-direction: reverse; }
.logos:hover .track { animation-play-state: paused; }
.logo-chip {
  width: 190px; height: 100px; flex: 0 0 auto; border-radius: 18px;
  background: var(--chip); display: grid; place-items: center; padding: 18px 26px;
  border: 1px solid var(--line);
}
.logo-chip img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .5s, opacity .5s, transform .5s var(--ease); }
.logo-chip:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* ---------- Testimonials ---------- */
.testi .swiper-slide { height: auto; }
.quote-card { padding: clamp(30px, 5vw, 60px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); height: 100%; }
.quote-card .q { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; color: var(--text); }
.quote-card .q::before { content: "“"; display: block; font-size: 4rem; line-height: .6; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.quote-card .who { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.quote-card .who img { width: 46px; height: 46px; border-radius: 50%; background: var(--chip); padding: 6px; object-fit: contain; }
.quote-card .who b { display: block; font-size: .95rem; }
.quote-card .who small { color: var(--muted); font-size: .8rem; }
.quote-card .stars { color: #F3B23A; font-size: .8rem; margin-left: auto; display: flex; gap: 3px; }
.swiper-pagination-bullet { background: var(--text) !important; opacity: .25 !important; width: 24px !important; height: 2px !important; border-radius: 2px !important; transition: opacity .3s, width .5s var(--ease) !important; }
.swiper-pagination-bullet-active { opacity: 1 !important; width: 44px !important; }
.testi .swiper { padding-bottom: 56px; }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.offer {
  position: relative; padding: 40px 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column;
  transition: transform .7s var(--ease), border-color .5s;
}
.offer:hover { transform: translateY(-8px); border-color: var(--line-strong); }
.offer.featured { background: var(--bg-3); }
.offer.featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.offer .tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.offer.featured .tag { color: var(--text); }
.offer h3 { font-size: 2.3rem; margin: 14px 0 26px; }
.offer ul { list-style: none; padding: 0; margin: 0 0 34px; flex: 1; }
.offer li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--text); }
.offer li i { color: var(--blue); }
.offer li.na { color: var(--muted); opacity: .6; }
.offer li.na i { color: var(--muted); }

/* ---------- Forms ---------- */
.form-cm .f { position: relative; margin-bottom: 18px; }
.form-cm input:not([type="submit"]):not([type="checkbox"]),
.form-cm textarea,
.form-cm select,
.form-cm .form-control {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  padding: 16px 0 !important;
  color: var(--text) !important;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: none !important;
  outline: none;
  transition: border-color .4s;
}
.form-cm select option { background: var(--bg-2); color: var(--text); }
.form-cm textarea { min-height: 130px; resize: vertical; }
.form-cm ::placeholder { color: var(--muted); opacity: 1; }
.form-cm .f::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.form-cm .f:focus-within::after { transform: scaleX(1); }
.form-cm .loading, .form-cm .error-message, .form-cm .sent-message { display: none; font-size: .88rem; margin: 10px 0; }
.form-cm .loading.d-block, .form-cm .error-message.d-block, .form-cm .sent-message.d-block { display: block; }
.form-cm .sent-message { color: #27B676; }
.form-cm .error-message { color: var(--red); }
.form-panel { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }

.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-row { display: flex; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--text) !important; }
.info-row .ic { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; transition: background .5s, color .5s, border-color .5s; }
a.info-row:hover .ic { background: var(--grad); border-color: transparent; color: #fff; }
.info-row small { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.info-row span { font-size: 1.05rem; font-weight: 600; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 460px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-theme="dark"] .map-frame iframe, :root:not([data-theme="light"]) .map-frame iframe { filter: grayscale(1) invert(.9) contrast(.9) hue-rotate(180deg); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line); background: var(--bg-2); padding: clamp(40px, 7vw, 90px); }
.cta-band > *:not(.glow) { position: relative; z-index: 2; }

/* ---------- Gallery ---------- */
.filters { display: inline-flex; gap: 4px; padding: 6px; border-radius: 100px; border: 1px solid var(--line); list-style: none; margin: 0 0 50px; flex-wrap: wrap; position: relative; }
.filters li { padding: 10px 20px; border-radius: 100px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .4s, background .4s; }
.filters li:hover { color: var(--text); }
.filters li.filter-active { background: var(--text); color: var(--invert); }
.gal-item { margin-bottom: 24px; }
.gal-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.gal-card img { width: 100%; transition: transform 1.2s var(--ease); }
.gal-card:hover img { transform: scale(1.08); }
.gal-card .ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; background: linear-gradient(to top, rgba(7, 9, 15, .88), transparent 60%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.gal-card:hover .ov { opacity: 1; }
.gal-card .ov h4 { color: #fff; font-size: 1.6rem; transform: translateY(14px); transition: transform .7s var(--ease); }
.gal-card .ov p { color: rgba(255, 255, 255, .7); font-size: .86rem; margin-top: 6px; transform: translateY(14px); transition: transform .7s var(--ease) .05s; }
.gal-card:hover .ov h4, .gal-card:hover .ov p { transform: none; }
.gal-card .acts { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; opacity: 0; transform: translateY(-10px); transition: all .6s var(--ease); }
.gal-card:hover .acts { opacity: 1; transform: none; }
.gal-card .acts a { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0B1020 !important; display: grid; place-items: center; }
.gal-card .acts a:hover { background: var(--blue); color: #fff !important; }

.empty-state { text-align: center; padding: 80px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: 14px; color: var(--blue); }

.detail-slider { border-radius: var(--radius); overflow: hidden; }
.detail-slider img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.meta-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.meta-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.meta-list li strong { font-weight: 500; color: var(--muted); }
.meta-list li span, .meta-list li a { color: var(--text); text-align: right; word-break: break-all; }

/* ---------- Services details ---------- */
.side-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.side-nav .nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 0 !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--muted) !important;
  font-weight: 600; font-size: .95rem; text-align: left;
  position: relative; transition: color .4s, padding .5s var(--ease);
}
.side-nav .nav-link i { opacity: 0; transform: translateX(-10px); transition: all .5s var(--ease); }
.side-nav .nav-link:hover, .side-nav .nav-link.active { color: var(--text) !important; padding-left: 14px !important; }
.side-nav .nav-link.active::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--red); transform: translateY(-50%); }
.side-nav .nav-link:hover i, .side-nav .nav-link.active i { opacity: 1; transform: none; }
.side-card { margin-top: 26px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.side-card h4 { font-size: 1.5rem; margin-bottom: 14px; }
.side-card a.dl { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.side-card a.dl i { font-size: 1.6rem; color: var(--red); }
.side-card p { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

.prose h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 40px 0 18px; }
.prose p { font-size: 1rem; line-height: 1.85; max-width: 70ch; }
.prose ul { list-style: none; padding: 0; margin: 24px 0; }
.prose li { display: flex; gap: 12px; padding: 10px 0; color: var(--text); font-size: .95rem; }
.prose li i { color: var(--blue); }
.prose .cover { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.thumbs a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--bg-3); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.thumbs img[src$=".png"] { object-fit: contain; padding: 14px; background: #fff; }
.foot-bottom .legal-inline { opacity: .8; }
.thumbs a:hover img { transform: scale(1.1); }

/* ---------- Blog ---------- */
.post-card { display: block; color: var(--text) !important; }
.post-card .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .ph img { transform: scale(1.07); }
.post-card .cat { display: inline-block; margin-top: 20px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.post-card h3 { font-size: 1.75rem; margin-top: 10px; transition: color .3s; }
.post-card:hover h3 { color: var(--blue); }
.post-card .by { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.post-card .by img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pager { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 60px 0 0; }
.pager a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: .88rem; }
.pager a.active, .pager a:hover { background: var(--text); color: var(--invert) !important; border-color: var(--text); }

.article .post-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 34px 0 18px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: .84rem; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article .meta i { margin-right: 6px; color: var(--blue); }
.article .content p { font-size: 1.05rem; line-height: 1.9; color: var(--text); opacity: .86; }
.article .tags-row { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: .78rem; color: var(--muted) !important; }
.chip:hover { border-color: var(--text); color: var(--text) !important; }
.widget { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; }
.widget h3 { font-size: 1.5rem; margin-bottom: 18px; }
.widget .author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.widget .author { text-align: center; }
.widget .author .soc { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.widget .author .soc a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.widget .search { display: flex; border-bottom: 1px solid var(--line-strong); }
.widget .search input { flex: 1; background: transparent; border: 0; color: var(--text); padding: 10px 0; outline: none; }
.widget .search button { background: none; border: 0; color: var(--text); }
.widget ul.cats { list-style: none; padding: 0; margin: 0; }
.widget ul.cats li a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.widget ul.cats li a span { color: var(--muted); }
.recent { display: grid; gap: 14px; }
.recent .post-link-wrap { display: flex; gap: 14px; align-items: center; }
.recent img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.recent .nav-link { padding: 0 !important; color: var(--text) !important; font-weight: 600; font-size: .9rem; background: none !important; border: 0 !important; }
.recent .nav-link.active { color: var(--blue) !important; }
.recent time { font-size: .76rem; color: var(--muted); }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

/* ---------- Footer ---------- */
.cm-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(70px, 9vw, 120px); background: var(--bg); }
.news-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.news-form { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; }
.news-form input[type="email"] { flex: 1; background: transparent; border: 0; color: var(--text); font-size: 1.05rem; padding: 14px 0; outline: none; }
.news-form input[type="submit"] { background: var(--text); color: var(--invert); border: 0; border-radius: 100px; padding: 12px 22px; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .4s, color .4s; }
.news-form input[type="submit"]:hover { background: var(--blue); color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 0; }
.foot-grid h5 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 12px; }
.foot-grid li a { font-size: .95rem; position: relative; }
.foot-grid li a:hover { color: var(--text) !important; padding-left: 8px; }
.foot-grid li a { transition: padding .4s var(--ease), color .3s; }
.foot-grid p { font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1rem; transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease); }
.socials a:hover { background: var(--text); color: var(--invert) !important; border-color: var(--text); transform: translateY(-4px); }
.wordmark {
  font-family: var(--font-display); font-weight: 400; line-height: .8;
  font-size: clamp(5rem, 20vw, 19rem); letter-spacing: -.03em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 1.6s var(--ease);
  user-select: none; margin-bottom: -.12em;
}
.wordmark:hover, .wordmark.in { background-size: 100% 100%; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); position: relative; z-index: 2; background: var(--bg); }
.foot-bottom a { color: var(--text) !important; }

/* ---------- SweetAlert harmonisation ---------- */
.swal2-popup { background: var(--bg-2) !important; color: var(--text) !important; border-radius: var(--radius) !important; border: 1px solid var(--line) !important; font-family: var(--font-body) !important; }
.swal2-title { font-family: var(--font-display) !important; color: var(--text) !important; text-transform: capitalize; }
.swal2-html-container { color: var(--muted) !important; }
.swal2-confirm { background: var(--text) !important; color: var(--invert) !important; border-radius: 100px !important; padding: 12px 28px !important; }

/* ---------- Keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--glow-red); } 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(6vw, 4vw) scale(1.15); } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .nav-cm, .header-cta { display: none !important; }
  .burger { display: grid; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .doctrine { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .hero-pillars .row-p { grid-template-columns: repeat(2, 1fr); }
  .hero-pillars a:nth-child(2) { border-right: 0; }
  .hero-pillars a:nth-child(3) { padding-left: 0; }
  .hero-pillars a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }
  .exp-row { grid-template-columns: 50px 1fr 54px; cursor: pointer; }
  .exp-row .tags { grid-column: 2 / 3; }
  .exp-float { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .offers { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  :root { --header-h: 72px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc { min-height: 320px; }
  .doctrine { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value:nth-child(odd) { border-right: 0; }
  .value:nth-child(even) { padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 16px; }
  .member-cm h4 { font-size: 1.25rem; }
  .member-cm .soc a { opacity: 1; transform: none; width: 32px; height: 32px; }
  .logo-chip { width: 150px; height: 84px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .header-actions .theme-toggle { width: 40px; height: 40px; }
  .brand img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
}


/* ---------- Formulaire de devis ---------- */
.devis-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.devis-form { position: relative; }
.devis-status { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-size: .9rem; font-weight: 600; }
.devis-status.ok { display: flex; gap: 10px; align-items: center; background: rgba(39, 182, 118, .12); color: #27B676; border: 1px solid rgba(39, 182, 118, .35); }
.devis-status.err { display: flex; gap: 10px; align-items: center; background: rgba(224, 38, 58, .1); color: var(--red); border: 1px solid rgba(224, 38, 58, .3); }
.devis-form.sending button[type=submit] { opacity: .6; pointer-events: none; }
.devis-form.sending button[type=submit] .arr i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
