/* =========================================================================
   Magnum Soft — site vitrine (v2)
   Présence graphique alignée sur gmagnum.com (charte G-Magnum v1.0) :
   navy #0A2A6B · bleu #0066FF · cyan #00B4FF · anthracite #1B1F2B · Inter.
   Échelle reprise de Tailwind (utilisée par G-Magnum) : rayons 8/12/16 px,
   textes 12/14/16 px, sections de 80 px, conteneur de 1280 px.
   Mobile d'abord ; les media queries (min-width) ajoutent les colonnes.
   ========================================================================= */

:root {
  --navy: #0A2A6B;
  --navy-800: #0D3380;
  --navy-700: #1A4294;
  --navy-950: #061A45;
  --blue: #0066FF;
  --blue-700: #0052CC;
  --blue-500: #1A75FF;
  --blue-400: #3D8BFF;
  --blue-100: #D6E6FF;
  --blue-50: #EBF3FF;
  --cyan: #00B4FF;
  --anthracite: #1B1F2B;
  --bg: #f8fafc;
  --white: #ffffff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --emerald-700: #047857;
  --emerald-500: #10b981;
  --emerald-50: #ecfdf5;
  --emerald-200: #a7f3d0;
  --amber-800: #92400e;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;

  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-glow: 0 30px 60px -20px rgba(0, 102, 255, .35);
  --gutter: 16px;
  --header-h: 64px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--slate-900);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { margin: 0; color: var(--slate-900); line-height: 1.2; }
p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--cyan); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-xl); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; color: #fff; }

.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.container-md { max-width: 1024px; }
.container-sm { max-width: 768px; }
.section { padding-block: 64px; position: relative; }
.section-white { background: var(--white); border-block: 1px solid var(--slate-100); }
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }

/* Titres de section (SectionTitle de G-Magnum) */
.section-title { max-width: 672px; margin-bottom: 48px; }
.section-title.center { margin-inline: auto; }
.kicker { display: block; margin-bottom: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); }
.section-title h2, .h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.section-title p { margin-top: 16px; font-size: 1rem; line-height: 1.625; color: var(--slate-500); }
.head-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.head-row .section-title { margin-bottom: 0; }

/* ---------- Sections sombres (navy + halos) ---------- */
.dark { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy) 55%, var(--navy-800) 100%); }
.dark::before, .dark::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(10px); }
.dark::before { width: 620px; height: 620px; right: -200px; top: -260px; background: radial-gradient(circle, rgba(0, 180, 255, .24), transparent 65%); }
.dark::after { width: 680px; height: 680px; left: -260px; bottom: -340px; background: radial-gradient(circle, rgba(0, 102, 255, .38), transparent 65%); }
.dark > * { position: relative; z-index: 1; }
.dark h2, .dark h3 { color: #fff; }
.dark .kicker { color: #7DD3FF; }
.dark .section-title p, .dark p { color: rgba(255, 255, 255, .8); }
.grid-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* ---------- Boutons (mêmes proportions que G-Magnum) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 14px 28px; border-radius: var(--r-xl); border: 1px solid transparent;
  font-size: .875rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.btn:hover .icon-arrow { transform: translateX(2px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; min-height: 56px; }
.btn-lg .icon { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 8px 16px; border-radius: var(--r-lg); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: #fff; color: var(--slate-700); border-color: var(--slate-200); }
.btn-outline:hover { background: var(--bg); color: var(--slate-900); }
.btn-link { background: transparent; color: var(--slate-600); padding-inline: 20px; }
.btn-link:hover { color: var(--slate-900); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-50); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.btn-wa { background: #0F7A40; color: #fff; }
.btn-wa:hover { background: #0B6634; color: #fff; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
.btn-row .btn { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.link:hover { color: var(--blue-700); }
.link .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.link:hover .icon-arrow { transform: translateX(2px); }
.dark .link { color: #7DD3FF; }
.dark .link:hover { color: #fff; }

/* ---------- Pastilles ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.3; border: 1px solid; }
.pill .icon { width: 14px; height: 14px; }
.pill-emerald { border-color: var(--emerald-200); background: var(--emerald-50); color: var(--emerald-700); }
.pill-blue { border-color: var(--blue-100); background: var(--blue-50); color: var(--navy-700); }
.pill-amber { border-color: var(--amber-200); background: var(--amber-50); color: var(--amber-800); }
.pill-violet { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.pill-glass { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ---------- En-tête (MarketingHeader de G-Magnum) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--slate-100); transition: box-shadow .2s ease; }
.site-header.is-elevated { box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.025em; color: var(--navy); white-space: nowrap; }
.brand-name b { font-weight: 700; color: var(--blue); }
.brand-tagline { margin-top: 4px; font-size: .5625rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.site-footer .brand-tagline { color: var(--slate-500); }

.nav-main { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .header-link { display: none; font-size: .875rem; font-weight: 500; color: var(--slate-500); text-decoration: none; white-space: nowrap; }
.header-actions .header-link:hover { color: var(--slate-900); }
.header-actions .btn { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--slate-200); border-radius: var(--r-lg); background: #fff; color: var(--navy); cursor: pointer; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-lg); padding: 8px var(--gutter) 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav.is-open { display: block; }
.mobile-nav a:not(.btn) { display: block; padding: 12px 8px; font-weight: 500; color: var(--slate-600); text-decoration: none; border-radius: var(--r-lg); }
.mobile-nav a:not(.btn):hover { background: var(--bg); color: var(--slate-900); }
.mobile-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.mobile-nav .btn { width: 100%; margin-top: 10px; }
.no-js .menu-btn { display: none; }
.no-js .mobile-nav { display: block; position: static; box-shadow: none; border: 0; padding: 0 var(--gutter) 12px; }
.no-js .site-header { height: auto; position: static; }
.no-js .header-inner { height: var(--header-h); }

/* ---------- Héros (même composition que gmagnum.com) ---------- */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--slate-100); padding: 48px 0 64px; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -280px; top: -320px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(0, 102, 255, .09), transparent 65%); }
.hero-grid { position: relative; display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero .pill { margin-bottom: 24px; }
.hero h1, .h1 { font-size: clamp(2rem, 1.2rem + 3.3vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--slate-900); margin-bottom: 24px; }
.hero h1 .accent, .h1 .accent { color: var(--blue); display: block; }
.hero .lead { max-width: 576px; margin-bottom: 32px; font-size: 1rem; line-height: 1.625; color: var(--slate-500); }
.reassure { margin-top: 20px; font-size: .75rem; color: var(--slate-500); }
.hero-contacts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; }
.hero-contacts a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--slate-700); text-decoration: none; overflow-wrap: anywhere; }
.hero-contacts a:hover { color: var(--blue); }
.hero-contacts .icon { width: 16px; height: 16px; color: var(--blue); }
.hero-visual { position: relative; }

/* Fenêtre d'application (BrowserFrame de G-Magnum) */
.browser { border-radius: var(--r-2xl); border: 1px solid var(--slate-200); background: #fff; box-shadow: var(--shadow-xl); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--slate-100); background: var(--bg); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar i:nth-child(1) { background: #fca5a5; }
.browser-bar i:nth-child(2) { background: #fcd34d; }
.browser-bar i:nth-child(3) { background: #6ee7b7; }
.browser-bar span { margin-left: 12px; font-size: .6875rem; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; }
.dark .browser { border-color: rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }

/* Carte flottante navy (reprise du héros de gmagnum.com, sans affirmation DGI) */
.float-card { display: none; position: absolute; left: -24px; bottom: -24px; width: 300px; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-xl); background: var(--navy); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-xl); }
.float-card .icon { width: 28px; height: 28px; color: var(--cyan); }
.float-card strong { display: block; font-size: .75rem; font-weight: 600; color: #7DD3FF; }
.float-card span { display: block; font-size: .6875rem; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bande de réassurance */
.trust { background: var(--bg); border-bottom: 1px solid var(--slate-100); padding-block: 20px; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 500; color: var(--slate-600); }
.trust .icon { width: 14px; height: 14px; color: var(--blue); }

/* ---------- Chiffres ---------- */
.facts { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { border-radius: var(--r-xl); border: 1px solid var(--slate-200); background: #fff; padding: 24px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.fact-value { font-size: 1.5rem; font-weight: 700; color: var(--slate-900); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.fact-label { font-size: .75rem; font-weight: 500; color: var(--slate-500); }

/* ---------- Cartes ---------- */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-2xl); border: 1px solid var(--slate-200); background: #fff; padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-muted { background: var(--bg); }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card > p { font-size: .875rem; line-height: 1.625; color: var(--slate-500); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--blue-100); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { color: inherit; }
.card .grow { flex: 1; }
.icon-box { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-xl); background: var(--blue-50); color: var(--blue); margin-bottom: 16px; flex-shrink: 0; transition: background-color .2s ease, color .2s ease; }
.card-hover:hover .icon-box { background: var(--blue); color: #fff; }
.icon-box.sm { width: 36px; height: 36px; border-radius: var(--r-lg); }
.dark .icon-box { background: rgba(255, 255, 255, .08); color: var(--cyan); }

.checks { display: grid; gap: 6px; margin-top: 16px; }
.checks li { display: flex; align-items: flex-start; gap: 8px; font-size: .75rem; line-height: 1.5; color: var(--slate-600); }
.checks .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--emerald-500); }
.checks.lg { gap: 10px; }
.checks.lg li { font-size: .875rem; color: var(--slate-700); }
.checks.lg .icon { width: 16px; height: 16px; color: var(--blue); }
.dark .checks li { color: rgba(255, 255, 255, .82); }
.dark .checks .icon { color: var(--emerald-500); }
.card .link { margin-top: auto; padding-top: 16px; }

/* Cartes sombres (sections navy) */
.dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.dark .card > p { color: rgba(255, 255, 255, .62); }
.dark .card-hover:hover { border-color: rgba(0, 180, 255, .45); box-shadow: 0 24px 50px -24px rgba(0, 180, 255, .45); background: rgba(255, 255, 255, .06); }
.dark .card-hover:hover .icon-box { background: var(--cyan); color: var(--navy-950); }

/* ---------- Projets ---------- */
.project { overflow: hidden; padding: 0; }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate-100); border-bottom: 1px solid var(--slate-200); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.project:hover .project-media img { transform: scale(1.03); }
.project-media.contain { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-50), #fff 60%, #e6f7ff); }
.project-media.contain img { width: auto; height: 62%; object-fit: contain; }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.project-type { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.project h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.project p { font-size: .875rem; line-height: 1.625; color: var(--slate-500); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .6875rem; font-weight: 500; color: var(--slate-600); background: var(--bg); border: 1px solid var(--slate-200); border-radius: 999px; padding: 3px 10px; }
.project-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.project-actions .link { margin: 0; padding: 0; }
.dark .project { background: #fff; border-color: transparent; }
.dark .project h3 { color: var(--slate-900); }
.dark .project p { color: var(--slate-500); }
.dark .project .link { color: var(--blue); }
.dark .project:hover { box-shadow: 0 30px 60px -24px rgba(0, 180, 255, .55); }

/* ---------- Visite guidée (onglets de captures) ---------- */
.tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--slate-200); background: #fff; font-size: .875rem; font-weight: 500; color: var(--slate-600); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tab .icon { width: 16px; height: 16px; }
.tab:hover { border-color: var(--slate-300); color: var(--slate-900); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabpanel { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.tabpanel + .tabpanel { margin-top: 48px; }
.js .tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.tabpanel p { font-size: 1rem; line-height: 1.625; color: var(--slate-500); margin-bottom: 24px; }
.caption { margin-top: 12px; font-size: .75rem; color: var(--slate-500); }
.dark .caption { color: rgba(255, 255, 255, .65); }

/* ---------- Qui sommes-nous ---------- */
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.about-card { border-radius: var(--r-3xl); padding: 32px; background: linear-gradient(150deg, var(--navy-950), var(--navy) 60%, var(--navy-800)); color: #fff; box-shadow: var(--shadow-glow); position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 180, 255, .35), transparent 65%); pointer-events: none; }
.about-card > * { position: relative; z-index: 1; }
.about-card dl { margin: 0; display: grid; gap: 18px; }
.about-card dt { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7DD3FF; }
.about-card dd { margin: 4px 0 0; font-size: .9375rem; color: rgba(255, 255, 255, .88); }
.mv { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
.mv .card h3 { display: flex; align-items: center; gap: 10px; }
.mv .card h3 .icon { color: var(--blue); }
.prose p { font-size: 1rem; line-height: 1.7; color: var(--slate-600); }
.prose p + p { margin-top: 14px; }

/* ---------- Technologies ---------- */
.tech { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-xl); border: 1px solid var(--slate-200); background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.tech li:hover { border-color: var(--blue-100); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tech-mono { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-lg); background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: -.02em; flex-shrink: 0; }
.tech strong { display: block; font-size: .875rem; font-weight: 600; color: var(--slate-900); }
.tech span:not(.tech-mono) { display: block; font-size: .6875rem; color: var(--slate-500); }

/* ---------- Étapes (section DÉMARRER de G-Magnum) ---------- */
.step-num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .875rem; font-weight: 700; margin-bottom: 16px; }

/* ---------- Appel final (section navy de G-Magnum) ---------- */
.final-cta { padding-block: 80px; text-align: center; }
.final-cta .icon-xl { margin: 0 auto 20px; color: var(--cyan); }
.final-cta h2 { font-size: clamp(1.875rem, 1.2rem + 3vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.final-cta p { max-width: 448px; margin: 0 auto 40px; font-size: 1rem; }
.final-cta .btn-row { max-width: 360px; margin-inline: auto; }
.final-cta .fine { margin-top: 20px; font-size: .75rem; color: rgba(255, 255, 255, .6); }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero { padding-block: 56px 64px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0; }
.page-hero h1 .accent { color: var(--blue-400); }
.page-hero .lead { max-width: 640px; font-size: 1.0625rem; line-height: 1.625; color: rgba(255, 255, 255, .78); }
.breadcrumb { font-size: .8125rem; color: rgba(255, 255, 255, .7); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .4); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Fiche projet */
.project-hero { padding-block: 48px 64px; }
.project-hero .hero-grid { align-items: center; }
.project-hero .btn-row { margin-top: 28px; }
.project-logo { width: 56px; height: 56px; border-radius: var(--r-xl); background: #fff; padding: 8px; box-shadow: var(--shadow-lg); margin-bottom: 20px; object-fit: contain; }
.meta { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--slate-200); background: var(--slate-200); }
.meta div { background: #fff; padding: 18px 20px; }
.meta dt { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.meta dd { margin: 6px 0 0; font-size: .9375rem; font-weight: 600; color: var(--slate-900); }
.meta-wrap { margin-top: -32px; position: relative; z-index: 2; }
.ps { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.ps .card { padding: 28px; }
.ps .card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.ps .card p { font-size: .9375rem; line-height: 1.7; color: var(--slate-600); }
.ps .card.solution { border-color: var(--blue-100); background: linear-gradient(180deg, var(--blue-50), #fff 70%); }
.gallery { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.gallery figcaption { margin-top: 10px; font-size: .8125rem; color: var(--slate-500); }
.gallery figcaption strong { color: var(--slate-900); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-xl); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--navy-700); font-size: .875rem; line-height: 1.6; }
.notice .icon { margin-top: 1px; color: var(--blue); }
.notice p { color: var(--navy-700); }
.other-projects .project-media { aspect-ratio: 16 / 9; }

/* ---------- Services (page détail) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--slate-200); background: #fff; font-size: .8125rem; font-weight: 500; color: var(--slate-600); text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.service { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding: 28px 24px; border-radius: var(--r-2xl); border: 1px solid var(--slate-200); background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.service:hover { box-shadow: var(--shadow-xl); border-color: var(--blue-100); }
.service + .service { margin-top: 20px; }
.service h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; }
.service p { font-size: .9375rem; line-height: 1.7; color: var(--slate-600); }
.service .btn { margin-top: 20px; }
.service h3 { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 12px; }
.service-projects { margin-top: 18px; font-size: .8125rem; color: var(--slate-500); }

/* ---------- FAQ ---------- */
.faq { border-radius: var(--r-2xl); border: 1px solid var(--slate-200); background: #fff; }
.faq details + details { border-top: 1px solid var(--slate-200); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; font-size: .9375rem; font-weight: 600; color: var(--slate-900); border-radius: var(--r-2xl); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 16px; height: 16px; color: var(--slate-500); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px; font-size: .875rem; line-height: 1.7; color: var(--slate-600); }
.faq .answer p + p { margin-top: 10px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.contact-card { display: block; border-radius: var(--r-2xl); border: 1px solid var(--slate-200); background: #fff; padding: 24px; text-decoration: none; color: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
a.contact-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow-lg); color: inherit; }
.contact-card .icon { width: 24px; height: 24px; color: var(--blue); margin-bottom: 12px; }
.contact-card strong { display: block; font-size: .875rem; font-weight: 600; color: var(--slate-900); }
.contact-card span { display: block; font-size: .875rem; color: var(--slate-500); overflow-wrap: anywhere; }
.form-card { border-radius: var(--r-3xl); border: 1px solid var(--slate-200); background: #fff; padding: 24px; box-shadow: var(--shadow-xl); }
.form-card h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 6px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--slate-500); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-xl); border: 1px solid var(--slate-300); background: #fff; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 102, 255, .18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #dc2626; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-actions .btn { width: 100%; }
.form-status { margin-top: 12px; min-height: 1.4em; font-size: .875rem; font-weight: 500; color: var(--emerald-700); }
.form-note { margin-top: 8px; font-size: .75rem; color: var(--slate-500); }

/* ---------- Pied de page (MarketingFooter de G-Magnum, enrichi) ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--slate-200); padding-block: 56px 32px; font-size: .875rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.footer-about p { margin-top: 16px; max-width: 320px; color: var(--slate-500); line-height: 1.6; }
.site-footer h2 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-900); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--slate-500); text-decoration: none; }
.site-footer a:hover { color: var(--slate-900); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-500); }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--slate-200); display: flex; flex-direction: column; gap: 8px; font-size: .75rem; color: var(--slate-500); }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #0F7A40; color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 122, 64, .7); transition: transform .2s ease, background-color .2s ease; }
.wa-float:hover { background: #0B6634; color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }

.center-page { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.center-page .btn-row { max-width: 360px; margin: 32px auto 0; }

/* ---------- Apparition au défilement (désactivée si mouvement réduit) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* La classe reveal-on n'est posée par site.js qu'une fois le mécanisme d'apparition prêt :
     sans JavaScript (ou en cas d'erreur), tout reste visible. */
  .reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }
  .reveal-on .reveal.is-visible { opacity: 1; transform: none; }
}

/* =========================================================================
   Points de rupture
   ========================================================================= */
@media (max-width: 419px) {
  .brand-tagline { display: none; }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .header-actions .btn { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
  .final-cta .btn-row, .center-page .btn-row { max-width: none; justify-content: center; }
  .float-card { display: flex; }
  .tech { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
  .form-actions { flex-direction: row; }
  .form-actions .btn { width: auto; }
  .form-card { padding: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .mv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .section { padding-block: 80px; }
  .hero { padding: 64px 0 80px; }
  .section-title h2, .h2 { font-size: 2.25rem; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact-value { font-size: 1.875rem; }
  .head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .head-row .link { flex-shrink: 0; margin-bottom: 4px; }
  .service { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding: 36px; gap: 40px; }
  .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .final-cta { padding-block: 96px; }
  .page-hero { padding-block: 72px 88px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 64px; }
  .menu-btn, .mobile-nav { display: none !important; }
  .nav-main { display: flex; gap: 32px; font-size: .875rem; font-weight: 500; }
  .nav-main a { color: var(--slate-500); text-decoration: none; transition: color .15s ease; }
  .nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--slate-900); }
  .nav-main a[aria-current="page"] { font-weight: 600; }
  .header-actions { gap: 16px; }
  .header-actions .header-link { display: inline; }
  .no-js .site-header { position: sticky; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabpanel { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; }
  .tech { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
  .contact-layout .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .tech { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tech li { flex-direction: column; text-align: center; padding: 18px 10px; }
}
@media (max-width: 1023px) {
  .contact-layout > * + * { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .card-hover:hover, .tech li:hover, .wa-float:hover, .project:hover .project-media img { transform: none; }
}
@media print {
  .site-header, .wa-float, .menu-btn, .mobile-nav, .skip-link { display: none !important; }
  .dark { background: #fff; color: #000; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
}

/* Liens vers les projets dans les cartes de secteurs */
.small-projects { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.small-projects .link { margin: 0; padding: 0; }

/* Fiche projet : accroche sous le nom */
.project-tagline { font-size: clamp(1.375rem, 1rem + 1.6vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--blue-400) !important; margin-bottom: 20px; }
.tech-mono { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); box-shadow: 0 6px 14px -6px rgba(0, 102, 255, .6); }
