/* ==========================================================================
   Data7 Afrique · système de design
   Bleu nuit profond, cyan et menthe du logo (loup en circuits). Plateforme tech, sobre, internationale.
   Titres : Space Grotesk · Texte : Inter · Données : JetBrains Mono
   ========================================================================== */

:root {
	--bg: #050b18;
	--bg-2: #071027;
	--surface: #0b1730;
	--surface-2: #102041;
	--glass: rgba(148, 180, 255, .045);
	--line: rgba(148, 180, 255, .13);
	--line-2: rgba(148, 180, 255, .24);
	--ink: #eef4ff;
	--ink-2: #c3d0e6;
	--muted: #8d9dbb;
	--blue: #3b82f6;
	--cyan: #22d3ee;
	--mint: #34e2b4;
	--grad: linear-gradient(115deg, #3b82f6 0%, #22d3ee 52%, #34e2b4 100%);
	--grad-soft: linear-gradient(115deg, rgba(59, 130, 246, .16), rgba(34, 211, 238, .12) 55%, rgba(52, 226, 180, .1));
	--ok: #34e2b4;
	--warn: #fbbf24;
	--bad: #f87171;

	--display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
	--sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

	--wrap: 1280px;
	--gut: clamp(18px, 4vw, 44px);
	--r: 12px;
	--r-lg: 20px;
	--shadow: 0 30px 80px -40px rgba(0, 0, 0, .85);
	--glow: 0 0 0 1px rgba(34, 211, 238, .35), 0 24px 60px -30px rgba(34, 211, 238, .45);
	--adminbar: 0px;
	--head: 80px;
	--ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + var(--adminbar) + 12px); background: var(--bg); }
html.no-scroll { overflow: hidden; }
body.d7 { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.d7 img, .d7 svg, .d7 video, .d7 iframe { max-width: 100%; }
.d7 img { height: auto; }
.d7 a { color: inherit; text-decoration: none; }
.d7 button { font: inherit; color: inherit; cursor: pointer; }
.d7 h1, .d7 h2, .d7 h3, .d7 h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.d7 h1 em, .d7 h2 em, .d7 h3 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d7 p { margin: 0; }
.d7 ul, .d7 ol { margin: 0; padding: 0; list-style: none; }
.d7 :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.d7 [hidden] { display: none !important; }
.d7 ::selection { background: var(--cyan); color: #04121a; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--cyan); color: #04121a !important; padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: calc(var(--adminbar) + 10px); }
main { display: block; outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap.narrow { max-width: 860px; }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.i.xs { width: 16px; height: 16px; }
.i.lg { width: 28px; height: 28px; }
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt { display: none !important; }
body.d7 { top: 0 !important; }

/* Grille de données en fond (sections sombres) */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(148, 180, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 180, 255, .055) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 40%, transparent 100%); mask-image: radial-gradient(80% 70% at 50% 30%, #000 40%, transparent 100%); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Typographie utilitaire ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px !important; color: var(--cyan); font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 12px rgba(34, 211, 238, .7); }
.lede { max-width: 62ch; color: var(--ink-2); font: 400 clamp(17px, 1.45vw, 19px)/1.7 var(--sans); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; font: 600 15px/1 var(--sans); white-space: nowrap; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary { background: var(--grad); background-size: 140% 140%; color: #031018 !important; box-shadow: 0 12px 34px -14px rgba(34, 211, 238, .75); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 44px -14px rgba(34, 211, 238, .95); transform: translateY(-2px); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); transition: left .9s var(--ease); pointer-events: none; }
.btn-primary:hover::after { left: 130%; }
.btn-line { border-color: var(--line-2); color: var(--ink) !important; background: var(--glass); backdrop-filter: blur(8px); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan) !important; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); color: var(--ink); transition: border-color .3s, color .3s; }
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan) !important; font: 600 14px/1 var(--sans); }
.more .i { transition: transform .3s var(--ease); }
.more:hover .i { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.chip.on { border-color: rgba(52, 226, 180, .5); color: var(--mint); }
.chip.off { color: var(--muted); }

/* ---------- En-tête ---------- */
.preview-exit { position: fixed; right: 16px; bottom: 96px; z-index: 9999; padding: 10px 16px; border-radius: 99px; background: var(--cyan); color: #031018 !important; font: 700 13px var(--sans); }
.masthead { position: fixed; top: var(--adminbar); left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s; }
.masthead.is-stuck, body:not(.tpl-home) .masthead { background: rgba(5, 11, 24, .74); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.mh { display: flex; align-items: center; gap: 22px; height: var(--head); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: auto; height: 42px; filter: drop-shadow(0 0 14px rgba(34, 211, 238, .35)); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { color: var(--ink); font: 700 22px/1 var(--display); letter-spacing: -.03em; }
.brand-txt b i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-txt span { margin-top: 3px; color: var(--muted); font: 500 10.5px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; }
.nav { flex: 1; min-width: 0; }
.nav > ul { display: flex; justify-content: center; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav .sub-btn { display: inline-flex; align-items: center; gap: 5px; height: 42px; padding: 0 13px; border: 0; border-radius: 10px; background: none; color: var(--ink-2) !important; font: 500 14.5px/1 var(--sans); white-space: nowrap; transition: color .25s, background .25s; }
.nav a:hover, .nav .sub-btn:hover, .nav a[aria-current], .nav .sub-btn[aria-current] { color: var(--ink) !important; background: var(--glass); }
.nav a[aria-current]::after, .nav .sub-btn[aria-current]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); }
.sub { position: absolute; left: -12px; top: calc(100% + 8px); z-index: 120; display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 4px; width: 560px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: rgba(8, 16, 36, .97); backdrop-filter: blur(16px); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: flex-start; gap: 12px; height: auto; padding: 12px; white-space: normal; }
.sub a .i { color: var(--cyan); margin-top: 2px; }
.sub a b { display: block; color: var(--ink); font: 600 14px/1.3 var(--sans); }
.sub a small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.mh-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.burger { display: none; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; border: 0; background: none; color: var(--ink-2) !important; font: 500 13px var(--mono); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; min-width: 190px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.lang-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); text-align: left; font-size: 14px; }
.lang-menu button:hover { background: var(--surface-2); color: var(--cyan); }
.lang-note { padding: 8px 12px 4px; color: var(--muted); font-size: 12px; }

/* Menu mobile */
.drawer { position: fixed; inset: 0; z-index: 100001; background: rgba(2, 6, 14, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.drawer.open { opacity: 1; }
.drawer-in { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); display: flex; flex-direction: column; padding: 22px; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .4s var(--ease); }
.drawer.open .drawer-in { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-head img { height: 44px; width: auto; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 19px/1.2 var(--display); }
.drawer nav a.sm { padding: 10px 0 10px 14px; color: var(--ink-2); font: 500 15px/1.3 var(--sans); }
.drawer nav a:hover { color: var(--cyan); }
.drawer .btn { margin-top: 14px; }

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; overflow: hidden; padding: calc(var(--head) + var(--adminbar) + 40px) 0 60px; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .9; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 55% at 78% 30%, rgba(34, 211, 238, .18), transparent 70%), radial-gradient(45% 50% at 10% 85%, rgba(59, 130, 246, .22), transparent 70%), radial-gradient(35% 40% at 92% 92%, rgba(52, 226, 180, .12), transparent 70%), var(--bg); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); letter-spacing: -.045em; line-height: .98; }
.hero h1 .rot { display: inline-block; min-width: 6ch; }
.hero h1 .rot b { font-weight: inherit; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 24px !important; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; color: var(--muted); font: 500 13px var(--mono); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: var(--mint); }
.hero .reveal { opacity: 1; transform: none; animation: rise 1s var(--ease) both; }
.hero .reveal.d1 { animation-delay: .1s; } .hero .reveal.d2 { animation-delay: .2s; } .hero .reveal.d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Console de données (illustration du héros) */
.console { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(16, 32, 65, .9), rgba(7, 16, 39, .92)); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset; backdrop-filter: blur(10px); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 12px var(--mono); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a5c; }
.console-bar i:nth-child(1) { background: #f87171; } .console-bar i:nth-child(2) { background: #fbbf24; } .console-bar i:nth-child(3) { background: #34d399; }
.console-bar span { margin-left: 8px; }
.console-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.kpi { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 11, 24, .55); }
.kpi small { display: block; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kpi b { display: block; margin-top: 6px; color: var(--ink); font: 600 26px/1 var(--display); }
.kpi em { font-style: normal; color: var(--mint); font: 500 12px var(--mono); }
.chart { grid-column: 1 / -1; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 11, 24, .55); }
.chart small { color: var(--muted); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 12px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--cyan), rgba(59, 130, 246, .5)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.bars i:nth-child(3n) { background: linear-gradient(180deg, var(--mint), rgba(52, 226, 180, .35)); }
@keyframes grow { from { transform: scaleY(.05); } }
.term { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #030812; color: #9fb4d6; font: 400 12.5px/1.7 var(--mono); }
.term b { color: var(--mint); font-weight: 500; }
.term s { color: var(--cyan); text-decoration: none; }
.term .cur { display: inline-block; width: 8px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-note { padding: 0 16px 14px; color: var(--muted); font: 400 11px var(--mono); }

.motion-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); color: var(--muted); font: 500 12px var(--mono); }
.motion-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.motion-btn .mb-play, .is-paused .motion-btn .mb-pause { display: none; }
.motion-btn .mb-pause, .is-paused .motion-btn .mb-play { display: inline-flex; align-items: center; gap: 8px; }

/* Bandeau défilant (métiers) */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 26px; padding: 18px 14px; color: var(--ink-2); font: 500 clamp(16px, 1.6vw, 20px)/1 var(--display); white-space: nowrap; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(68px, 9vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.section.tight { padding: clamp(44px, 6vw, 80px) 0; }
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.shead h2 { max-width: 22ch; font-size: clamp(32px, 4.4vw, 58px); }
.shead p.lede { margin-top: 16px !important; }
.page-hero { position: relative; padding: calc(var(--head) + var(--adminbar) + clamp(48px, 7vw, 100px)) 0 clamp(40px, 5vw, 72px); overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 80% at 85% 0%, rgba(34, 211, 238, .16), transparent 65%), radial-gradient(40% 60% at 0% 100%, rgba(59, 130, 246, .14), transparent 65%); }
.page-hero h1 { max-width: 20ch; font-size: clamp(40px, 5.8vw, 80px); letter-spacing: -.04em; }
.page-hero .lede { margin-top: 20px !important; }
.page-hero .hero-cta { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; color: var(--muted); font: 500 12px var(--mono); }
.crumbs > * + *::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--cyan); }

/* Services (bento) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, rgba(16, 32, 65, .55), rgba(7, 16, 39, .4)); overflow: hidden; isolation: isolate; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 85%) var(--my, 0%), rgba(34, 211, 238, .16), transparent 60%); opacity: 0; transition: opacity .5s; }
.svc:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-4px); box-shadow: var(--glow); }
.svc:hover::before { opacity: 1; }
.svc.big { grid-column: span 3; min-height: 330px; }
.bento > .svc:nth-child(6) { grid-column: 1 / -1; min-height: 0; }
.bento > .svc:nth-child(6) p { max-width: 80ch; }
.svc .s-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); }
.svc .s-num { position: absolute; top: 24px; right: 26px; color: var(--muted); font: 500 12px var(--mono); }
.svc h3 { font-size: clamp(22px, 2vw, 28px); }
.svc p { color: var(--muted); font-size: 15px; }
.svc ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px !important; }
.svc li { padding: 4px 10px; border-radius: 99px; background: rgba(148, 180, 255, .07); color: var(--ink-2); font-size: 12.5px; }
.svc .more { margin-top: auto; }
.svc a.stretch::after { content: ""; position: absolute; inset: 0; }

/* Étapes (méthode) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); }
.step::before { counter-increment: s; content: "0" counter(s); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--grad); color: #031018; font: 700 14px var(--mono); }
.step b { display: block; margin-bottom: 8px; color: var(--ink); font: 600 19px/1.25 var(--display); }
.step p { color: var(--muted); font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -18px; width: 18px; height: 1px; background: var(--line-2); }

/* Mise en avant (feature) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.rev > :first-child { order: 2; }
.feature h2 { font-size: clamp(32px, 4vw, 54px); }
.feature .lede { margin-top: 18px !important; }
.ticks { display: grid; gap: 12px; margin: 26px 0 30px !important; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .i { color: var(--mint); margin-top: 3px; }
.panel { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, rgba(16, 32, 65, .5), rgba(7, 16, 39, .35)); }
.panel h2, .panel h3 { font-size: 24px; margin-bottom: 16px !important; }
.media-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 11, 24, .7)); }

/* Relation client (bande) */
.band { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(60% 120% at 100% 0%, rgba(34, 211, 238, .2), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(59, 130, 246, .22), transparent 60%), var(--surface); }
.band h2 { font-size: clamp(30px, 3.8vw, 50px); max-width: 20ch; }

/* Cartes génériques (articles, offres) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, rgba(16, 32, 65, .5), rgba(7, 16, 39, .35)); overflow: hidden; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-4px); box-shadow: var(--glow); }
.card .media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .media img { transform: scale(1.05); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, rgba(34, 211, 238, .16), transparent 70%), var(--surface-2); }
.ph img { width: 64px !important; height: auto !important; opacity: .75; object-fit: contain !important; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.card h3 { font-size: 21px; line-height: 1.2; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font: 500 12px var(--mono); }
.card p { color: var(--muted); font-size: 15px; }

/* Offres d'emploi */
.jobs { display: grid; gap: 12px; }
.job { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); transition: border-color .3s, transform .4s var(--ease); }
.job:hover { border-color: rgba(34, 211, 238, .45); transform: translateX(4px); }
.job h3 { font-size: 21px; }
.job h3 a::after { content: ""; position: absolute; inset: 0; }
.job .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.job.closed { opacity: .6; }
.empty { padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; color: var(--muted); }

/* Valeurs / chiffres */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); }
.value b { display: block; margin-bottom: 8px; color: var(--ink); font: 600 19px var(--display); }
.value p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; color: var(--ink); font: 600 clamp(17px, 1.6vw, 20px)/1.3 var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--cyan); font: 400 20px/1 var(--mono); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 70ch; color: var(--muted); }

/* Appel à l'action */
.cta-band { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; text-align: center; isolation: isolate; border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 100% at 50% 100%, rgba(34, 211, 238, .2), transparent 70%), var(--bg-2); }
.cta-band h2 { max-width: 20ch; margin: 0 auto; font-size: clamp(34px, 5vw, 68px); letter-spacing: -.04em; }
.cta-band .lede { margin: 18px auto 0 !important; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Devis (configurateur) ---------- */
.qz { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.qz-main { min-width: 0; }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.progress li { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font: 500 12px var(--mono); }
.progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.progress li.done::before, .progress li.cur::before { background: var(--grad); }
.progress li.cur { color: var(--ink); }
.qstep h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px !important; }
.qstep > p.muted { margin-bottom: 22px !important; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pick label { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s; }
.pick label:hover { border-color: var(--line-2); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .i { color: var(--cyan); margin-top: 2px; }
.pick b { display: block; color: var(--ink); font: 600 15.5px/1.3 var(--sans); }
.pick small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pick label:has(input:checked) { border-color: var(--cyan); background: var(--grad-soft); box-shadow: var(--glow); }
.pick label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.needs { margin-top: 20px; display: grid; gap: 16px; }
.needs fieldset { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.needs legend { padding: 0 6px; color: var(--ink); font: 600 14px var(--sans); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); font: 500 14px var(--sans); cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: var(--grad); border-color: transparent; color: #031018; }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.qside { position: sticky; top: calc(var(--head) + var(--adminbar) + 20px); }
.qside dl { display: grid; gap: 10px; margin: 0 0 16px; }
.qside dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qside dt { color: var(--muted); font-size: 13px; }
.qside dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-size: 14px; }
.meter { margin: 6px 0 14px; }
.meter small { display: flex; justify-content: space-between; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.meter i { display: block; height: 8px; margin-top: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.meter i::before { content: ""; display: block; width: var(--v, 0%); height: 100%; border-radius: 8px; background: var(--grad); transition: width .6s var(--ease); }
.qside .note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.done-box { text-align: center; padding: clamp(32px, 5vw, 56px); }
.done-box .ok-mark { display: inline-grid; place-items: center; width: 80px; height: 80px; margin-bottom: 20px; border-radius: 50%; background: var(--grad); color: #031018; animation: pop .7s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done-box h2 { font-size: clamp(28px, 3.6vw, 42px); }
.ref { display: inline-block; margin: 14px 0 8px; padding: 8px 16px; border: 1px dashed var(--cyan); border-radius: 99px; color: var(--cyan); font: 600 14px var(--mono); letter-spacing: .06em; }

/* ---------- Formulaires ---------- */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f.full { grid-column: 1 / -1; }
.f > span { color: var(--ink-2); font: 500 13px var(--sans); }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(3, 8, 18, .6); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .25s, box-shadow .25s; color-scheme: dark; }
.f textarea { resize: vertical; min-height: 130px; }
.f input[type="file"] { padding: 11px; cursor: pointer; }
.f input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.is-invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(248, 113, 113, .14) !important; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-bottom: 20px !important; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.notice.ok { background: rgba(52, 226, 180, .1); color: #bff5e4; border: 1px solid rgba(52, 226, 180, .35); }
.notice.err, .alert { background: rgba(248, 113, 113, .1); color: #fecaca; border: 1px solid rgba(248, 113, 113, .4); padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.alert.ok { background: rgba(52, 226, 180, .1); color: #bff5e4; border-color: rgba(52, 226, 180, .35); }
.lead-form { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, rgba(16, 32, 65, .5), rgba(7, 16, 39, .35)); }

/* ---------- Espace client ---------- */
.portal { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.who { position: sticky; top: calc(var(--head) + var(--adminbar) + 20px); }
.who .avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 18px; background: var(--grad); color: #031018; font: 700 26px var(--display); }
.who b { display: block; color: var(--ink); font-size: 18px; }
.who span { color: var(--muted); font-size: 14px; word-break: break-all; }
.who .btn { margin-top: 10px; }
.stack { display: grid; gap: 16px; }
.item { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); }
.item-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.item h3 { font-size: 21px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); font: 500 11.5px var(--mono); letter-spacing: .04em; }
.pill.st-qualifie, .pill.st-etude { color: var(--cyan); border-color: rgba(34, 211, 238, .5); }
.pill.st-proposition, .pill.st-entretien { color: var(--warn); border-color: rgba(251, 191, 36, .5); }
.pill.st-gagne, .pill.st-retenue { color: var(--mint); border-color: rgba(52, 226, 180, .5); }
.pill.st-perdu, .pill.st-non_retenue { color: var(--muted); }
.res-group h3 { margin: 6px 0 12px !important; color: var(--cyan); font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.files { display: grid; gap: 8px; }
.files a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 8, 18, .4); color: var(--ink); transition: border-color .3s; }
.files a:hover { border-color: var(--cyan); }
.files a .i { color: var(--cyan); }
.files a small { display: block; color: var(--muted); font-size: 13px; }
.login-box { max-width: 520px; margin: 0 auto; }

/* ---------- Galerie ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); break-inside: avoid; }
.gallery img { width: 100%; display: block; transition: transform .9s var(--ease), filter .5s; filter: saturate(.9); }
.gallery a:hover img { transform: scale(1.04); filter: saturate(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center; padding: 24px; background: rgba(2, 6, 14, .94); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 18px; right: 18px; }
.lightbox .nav-l, .lightbox .nav-r { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .nav-l { left: 14px; } .lightbox .nav-r { right: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-lines { display: grid; gap: 16px; margin: 26px 0 !important; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; }
.contact-lines .i { color: var(--cyan); margin-top: 3px; }
.contact-lines b { display: block; color: var(--ink); }
.contact-lines a:hover { color: var(--cyan); }
.map { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.9); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Texte long ---------- */
.prose { color: var(--ink-2); font: 400 17.5px/1.8 var(--sans); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em !important; }
.prose h2, .prose h3 { margin-top: 1.8em !important; font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 600; }
.pager .current { background: var(--grad); color: #031018; border-color: transparent; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.aside-card { position: sticky; top: calc(var(--head) + var(--adminbar) + 20px); }

/* ---------- Pied de page ---------- */
.site-foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: #030812; }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0 44px; }
.foot-cols h3 { margin-bottom: 16px !important; color: var(--cyan); font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.foot-cols li + li { margin-top: 10px; }
.foot-cols a { color: var(--ink-2); transition: color .3s; }
.foot-cols a:hover { color: var(--cyan); }
.foot-brand img { height: 64px; width: auto; }
.foot-brand p { margin-top: 16px !important; max-width: 38ch; color: var(--muted); font-size: 15px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink-2); transition: all .3s; }
.socials a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-bottom a:hover { color: var(--cyan); }
.foot-word { position: absolute; left: 50%; bottom: -.22em; transform: translateX(-50%); color: rgba(148, 180, 255, .035); font: 700 20vw/1 var(--display); letter-spacing: -.05em; white-space: nowrap; pointer-events: none; user-select: none; }

/* WhatsApp, barre mobile, consentement */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #06150c !important; box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .i { width: 28px; height: 28px; }
.mbar { display: none; }
.consent-bar { position: fixed; left: 16px; right: 92px; bottom: 16px; z-index: 9998; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 920px; margin: 0 auto; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: rgba(8, 16, 36, .96); backdrop-filter: blur(10px); color: var(--ink-2); font-size: 14px; box-shadow: var(--shadow); }
.consent-bar a { color: var(--cyan); text-decoration: underline; }
.consent-bar .btns { display: flex; gap: 8px; }

/* ---------- Responsive (mobile d'abord pour l'usage, réglages par largeur) ---------- */
@media (max-width: 1200px) {
	.nav { display: none; }
	.burger { display: inline-grid; }
	.mh-actions .hide-md { display: none; }
}
@media (max-width: 1080px) {
	.hero-grid, .feature, .contact-grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
	.feature.rev > :first-child { order: 0; }
	.svc, .svc.big { grid-column: span 3; }
	.bento > .svc:nth-child(5) { grid-column: 1 / -1; }
	.steps, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.step::after { display: none; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qz, .portal { grid-template-columns: minmax(0, 1fr); }
	.qside, .who, .aside-card { position: static; }
	.foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	:root { --head: 68px; }
	.brand img { height: 36px; }
	.mh-actions .btn-primary { display: none; }
	.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(5, 11, 24, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
	.mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; border-radius: 12px; color: var(--ink-2) !important; font: 600 11px/1 var(--sans); }
	.mbar a:first-child { color: #031018 !important; background: var(--grad); }
	.mbar .mbar-wa .i { color: #25d366; }
	body.d7 { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	.wa-float { display: none; }
	.consent-bar { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }
	.console { display: none; }
	.hero { min-height: auto; padding-bottom: 40px; }
	.sub { display: none; }
}
@media (max-width: 640px) {
	.bento, .cards, .steps, .values, .fgrid, .foot-cols, .progress { grid-template-columns: minmax(0, 1fr); }
	.svc, .svc.big { grid-column: auto; min-height: 0; }
	.progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.progress li span { display: none; }
	.job { grid-template-columns: minmax(0, 1fr); }
	.hero h1 { font-size: 42px; }
	.qnav .btn { flex: 1; }
}

/* ---------- Animations : pause et préférences ---------- */
.is-paused .marquee-track, .is-paused .bars i, .is-paused .term .cur { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal, .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
	.marquee-track, .bars i, .term .cur, .done-box .ok-mark { animation: none !important; }
	.btn-primary::after { display: none; }
}
@media (prefers-contrast: more) {
	:root { --line: rgba(148, 180, 255, .32); --line-2: rgba(148, 180, 255, .5); --muted: #b9c6dc; }
	.grid-bg::before, .hero-canvas { display: none; }
}
@media print {
	.masthead, .site-foot, .mbar, .wa-float, .consent-bar, .hero-canvas { display: none !important; }
	body.d7 { background: #fff; color: #000; }
}

/* Contenus anciens (WPBakery) : colonnes aplaties et images fluides, sans la feuille de style du constructeur */
.vc-flat .vc_row, .vc-flat .vc_column_container, .vc-flat .vc_column-inner, .vc-flat .wpb_wrapper, .vc-flat .wpb_text_column, .vc-flat .wpb_content_element { display: block; width: auto !important; margin: 0; padding: 0; float: none; }
.vc-flat .vc_row + .vc_row, .vc-flat .wpb_content_element + .wpb_content_element { margin-top: 1.1em; }
.vc-flat .vc_separator, .vc-flat .vc_empty_space { display: none; }
.vc-flat img { border-radius: 12px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.has-sub > .sub-btn .i { transition: transform .25s; }
.has-sub:hover > .sub-btn .i, .has-sub.open > .sub-btn .i { transform: rotate(180deg); }

/* ==========================================================================
   1.1 — Dynamisme : tableau de bord vivant, titres mot à mot, cartes 3D et liseré lumineux,
   grille éclairée au curseur, progression de lecture, boutons aimantés, aurore du héros.
   Tout s'arrête avec « Pause animation » ou la préférence « réduire les animations ».
   ========================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Barre de progression de lecture */
.scroll-bar { position: fixed; top: var(--adminbar); left: 0; right: 0; z-index: 101; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
	.scroll-bar { animation: grow-x linear both; animation-timeline: scroll(root); }
	@keyframes grow-x { to { transform: scaleX(1); } }
}

/* Aurore derrière le héros */
.hero::before { background-size: 140% 140%, 140% 140%, 160% 160%, auto; animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora {
	0% { background-position: 0% 0%, 0% 100%, 100% 100%, 0 0; }
	50% { background-position: 30% 20%, 20% 70%, 70% 80%, 0 0; }
	100% { background-position: 60% 0%, 10% 50%, 40% 100%, 0 0; }
}

/* Titres révélés mot à mot */
.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 .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }
.split em .w > span, .split .w > span.em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cartes : inclinaison 3D et liseré lumineux tournant */
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); will-change: transform; }
.tilt.tilting { transition: transform .12s linear, border-color .4s, box-shadow .5s var(--ease); }
.svc::after, .card::after, .job::after, .console::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang), transparent 0 62%, rgba(34, 211, 238, .9) 72%, rgba(52, 226, 180, .9) 80%, transparent 90%); -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); opacity: 0; transition: opacity .4s; pointer-events: none; animation: spin-ang 4s linear infinite; }
.svc:hover::after, .card:hover::after, .job:hover::after, .console::after { opacity: 1; }
.console::after { opacity: .7; animation-duration: 7s; }
@keyframes spin-ang { to { --ang: 360deg; } }
.job { overflow: hidden; }

/* Grille de fond éclairée sous le curseur */
.grid-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(34, 211, 238, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .28) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 70%); mask-image: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 70%); }

/* Tableau de bord du héros : valeurs vivantes */
.kpi b { font-variant-numeric: tabular-nums; }
.kpi b.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { color: var(--mint); transform: translateY(-2px); } }
.bars i { transition: height 1.1s var(--ease); }
.term { min-height: 92px; }
.term .line { display: block; white-space: nowrap; overflow: hidden; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: live 1.6s ease-in-out infinite; }
.console-bar .live-dot + b { margin-left: 6px; color: var(--mint); font: 500 11px var(--mono); }
@keyframes live { 50% { opacity: .3; } }

/* Boutons aimantés */
.magnet { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; }

/* Pause et préférences */
.is-paused .hero::before, .is-paused .svc::after, .is-paused .card::after, .is-paused .job::after, .is-paused .console::after, .is-paused .live-dot { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
	.hero::before, .svc::after, .card::after, .job::after, .console::after, .live-dot, .scroll-bar { animation: none !important; }
	.split .w > span { transform: none; transition: none; }
	.grid-bg::after { display: none; }
}
@media (hover: none) { .grid-bg::after { display: none; } }

/* ==========================================================================
   1.2 — Réalisations, témoignages, références, équipe, lettre, filtres, assistant
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-2); font: 500 14px var(--sans); transition: all .25s; }
.filters a:hover { border-color: var(--cyan); color: var(--cyan); }
.filters a[aria-current] { background: var(--grad); border-color: transparent; color: #031018; }
.blog-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.search-f { display: flex; gap: 8px; }
.search-f input { min-height: 44px; width: 240px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(3, 8, 18, .6); color: var(--ink); font: 400 15px var(--sans); color-scheme: dark; }
.search-f input:focus { outline: none; border-color: var(--cyan); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.result { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); }
.result b { display: block; font: 700 clamp(34px, 4vw, 48px)/1 var(--display); letter-spacing: -.03em; }
.result span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.card-kpi { color: var(--ink-2) !important; }
.card-kpi b { font: 700 22px var(--display); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.quote { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, rgba(16, 32, 65, .5), rgba(7, 16, 39, .35)); }
.quote blockquote { margin: 0 0 18px; color: var(--ink); font: 500 19px/1.55 var(--display); }
.quote figcaption { color: var(--muted); font-size: 14px; }
.quote figcaption b { display: block; color: var(--cyan); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; color: var(--muted); font: 600 clamp(16px, 1.8vw, 22px)/1 var(--display); letter-spacing: .02em; }
.logos span { opacity: .8; transition: opacity .3s, color .3s; }
.logos span:hover { opacity: 1; color: var(--ink); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.member { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--glass); }
.member .ph-wrap { aspect-ratio: 1; margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.member .ph-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.member .ini { font: 700 56px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member h3 { font-size: 19px; }
.member .role { margin: 4px 0 8px !important; color: var(--cyan); font: 500 13px var(--mono); }
.member .muted { font-size: 14px; margin-bottom: 10px !important; }

/* Lettre d'information (pied de page) */
.foot-nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.foot-nl h2 { font-size: clamp(26px, 3vw, 36px); }
.foot-nl p.muted { margin-top: 8px !important; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(3, 8, 18, .6); color: var(--ink); font: 400 15px var(--sans); color-scheme: dark; }
.nl-row input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.nl-row .btn { min-height: 48px; }
.nl-note { margin-top: 8px !important; color: var(--muted); font-size: 12.5px; }
.nl-msg { margin-top: 10px !important; color: #fecaca; font-size: 14px; }
.nl-msg.ok { color: #bff5e4; }

/* Assistant */
.bot { position: fixed; right: 20px; bottom: 88px; z-index: 9991; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bot-fab { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border: 1px solid rgba(34, 211, 238, .5); border-radius: 99px; background: rgba(8, 16, 36, .92); color: var(--ink); font: 600 14px var(--sans); box-shadow: 0 14px 34px -12px rgba(34, 211, 238, .6); backdrop-filter: blur(10px); transition: transform .3s var(--ease); }
.bot-fab .i { color: var(--cyan); }
.bot-fab:hover { transform: translateY(-2px); }
.bot.open .bot-fab span { display: none; }
.bot-panel { width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100svh - var(--head) - var(--adminbar) - 130px)); display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 20px; background: rgba(7, 14, 32, .98); box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, .15); overflow: hidden; animation: pop .35s var(--ease); }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.bot-head img { height: 34px; width: auto; }
.bot-head b { display: block; color: var(--ink); font: 600 15px var(--display); }
.bot-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; }
.bot-head small .live-dot { margin: 0; }
.bot-head .icon-btn { margin-left: auto; width: 36px; height: 36px; }
.bot-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bot-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.bot-msg.from-bot { align-self: flex-start; background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 4px; }
.bot-msg.from-me { align-self: flex-end; background: var(--grad); color: #031018; font-weight: 500; border-bottom-right-radius: 4px; }
.bot-msg a { color: var(--cyan); font-weight: 600; }
.bot-msg ul { margin: 6px 0 0 !important; display: grid; gap: 6px; }
.bot-msg small { color: var(--muted); }
.bot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.bot-quick button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--ink-2); font: 500 13px var(--sans); }
.bot-quick button:hover { border-color: var(--cyan); color: var(--cyan); }
.bot-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.bot-input input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(3, 8, 18, .6); color: var(--ink); font: 400 15px var(--sans); }
.bot-input input:focus { outline: none; border-color: var(--cyan); }
.bot-input .icon-btn { width: 42px; height: 42px; }
@media (max-width: 860px) {
	.bot { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
	.bot-fab span { display: none; }
	.bot-fab { width: 48px; padding: 0; justify-content: center; }
	.foot-nl { grid-template-columns: minmax(0, 1fr); }
	.search-f, .search-f input { width: 100%; }
}

/* ==========================================================================
   1.3 — Médiathèque et kit presse
   ========================================================================== */
.filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 99px; background: none; color: var(--ink-2); font: 500 14px var(--sans); transition: all .25s; }
.filters button small { color: var(--muted); font: 500 11px var(--mono); }
.filters button:hover { border-color: var(--cyan); color: var(--cyan); }
.filters button[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #031018; }
.filters button[aria-selected="true"] small { color: #031018; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.mitem { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, rgba(16, 32, 65, .5), rgba(7, 16, 39, .35)); overflow: hidden; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.mitem:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-4px); box-shadow: var(--glow); }
.mitem[hidden] { display: none !important; }
.mcover { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.mcover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mitem:hover .mcover img { transform: scale(1.05); }
.mcover a { display: block; height: 100%; }
.mbadge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(5, 11, 24, .8); backdrop-filter: blur(6px); color: var(--ink); font: 500 12px var(--mono); }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--grad); color: #031018; box-shadow: 0 0 0 10px rgba(34, 211, 238, .18); transition: transform .3s var(--ease); }
.mplay:hover .play { transform: scale(1.1); }
.docicon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--cyan); background: radial-gradient(60% 60% at 50% 40%, rgba(34, 211, 238, .14), transparent 70%); }
.docicon b { color: var(--ink); font: 600 13px var(--mono); }
.mitem .body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.mitem .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font: 500 12px var(--mono); }
.mitem h3 { font-size: 20px; }
.mitem p { color: var(--muted); font-size: 15px; }
.mitem .more { margin-top: auto; }
.vmodal { position: fixed; inset: 0; z-index: 100003; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 14, .94); }
.vbox { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.vbox iframe, .vbox video { width: 100%; height: 100%; border: 0; }
.vmodal .icon-btn { position: absolute; top: 18px; right: 18px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.swatches span { display: flex; align-items: center; gap: 10px; }
.swatches i { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); flex: none; }
.swatches b { color: var(--ink); font-size: 14px; display: block; }
.swatches code { color: var(--muted); font: 500 12px var(--mono); }
.logos-kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.logo-dl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .3s; }
.logo-dl:hover { border-color: var(--cyan); }
.logo-dl img { height: 150px; width: 100%; object-fit: contain; padding: 18px; }
.logo-dl.dark img { background: #050b18; }
.logo-dl.light img { background: #f4f7fb; }
.logo-dl span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; color: var(--ink-2); font-size: 13.5px; background: var(--glass); }
.logo-dl span .i { color: var(--cyan); }
@media (max-width: 640px) { .logos-kit, .swatches { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1440px) and (min-width: 1201px) { .nav a, .nav .sub-btn { padding: 0 10px; font-size: 14px; } }

/* Outils internes (espace équipe) */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.tool { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 8, 18, .4); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .3s, transform .3s var(--ease); }
.tool:hover, .tool[aria-expanded="true"] { border-color: var(--cyan); transform: translateY(-2px); }
.tool .i { color: var(--cyan); flex: none; margin-top: 2px; }
.tool b { display: block; font: 600 16px var(--display); }
.tool small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tool-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Logos des références */
.logos { align-items: center; }
.logos .logo-tile { display: grid; place-items: center; width: 170px; height: 86px; padding: 12px 16px; border-radius: 14px; background: #f4f7fb; opacity: .85; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .3s var(--ease); }
.logos .logo-tile:hover { opacity: 1; filter: none; transform: translateY(-2px); }
.logos .logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 640px) { .logos { gap: 12px; } .logos .logo-tile { width: calc(50% - 6px); height: 74px; } }
.team { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.member .ph-wrap img { object-position: center 20%; }
