/* AXIOM — Cross-cutting site fixes. Hand-authored (not generated by Tailwind),
   so it survives CSS rebuilds. Loaded on every public page after output.css. */

/* WCAG 2.2 — Target Size (minimum 24×24). Nav, announcement and footer links. */
.announce-phone,
.announce-call {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.nav-links > a:not(.btn),
.nav-links .nav-item > a {
  padding-top: 12px;
  padding-bottom: 12px;
}

.foot-grid a {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Mobile menu: comfortable 44px rows. */
@media (max-width: 1024px) {
  .nav-links > a:not(.btn),
  .nav-links .nav-item > a {
    min-height: 44px;
  }
}

/* WebP background: output.css (generated) still points at hero-laptop.jpg. */
.pc-stage {
  background: linear-gradient(0deg, rgba(32, 29, 29, .18), rgba(32, 29, 29, 0) 45%),
              url('../images/hero-laptop.webp?v=20261019') center/cover no-repeat;
}

/* Legal pages */
.legal{max-width:720px;margin-top:20px;color:var(--color-secondary);font-size:15px;line-height:1.75}
.legal > p:first-child{margin-top:0}
.legal h2{margin:36px 0 12px;font-size:17px;line-height:1.3;color:var(--color-base-content)}
.legal h3{margin:26px 0 8px;font-size:15px;color:var(--color-base-content)}
.legal p{margin:0 0 14px}
.legal ul{margin:0 0 16px;padding-left:1.35rem;list-style:disc}
.legal li{margin:7px 0}
.legal li::marker{color:var(--color-base-content)}
.legal a{color:var(--color-base-content);text-decoration:underline}
.legal code{font-family:var(--font-sans);font-size:.92em;background:var(--color-base-200);padding:0 4px;border-radius:3px}
.legal .ph{background:color-mix(in srgb,var(--color-warning) 22%,transparent);border:1px dashed color-mix(in srgb,var(--color-warning) 60%,transparent);border-radius:3px;padding:0 4px;font-size:.92em;color:var(--color-base-content)}
.legal .updated{margin-top:26px;font-size:12.5px;color:var(--color-secondary)}
.foot-legal{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px}
.foot-legal a{font-size:12px;color:var(--color-secondary);white-space:nowrap}
.foot-legal a:hover{color:var(--color-base-content)}

/* Heading levels aligned for accessibility: style the h3s that used to be h4/h5. */
.tl-card h3{font-size:16px;margin-bottom:8px;color:var(--color-base-content)}
.proof-card h3{font-size:17px;margin:14px 0 8px;color:var(--color-base-content)}
.proof-card.big h3{color:inherit}
.foot-grid h3{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--color-secondary);margin-bottom:14px;font-weight:600}

/* --- De-AI pass (2026-10-09) ---------------------------------------------
   Remove the visual clichés that make the site read as AI-generated.
   Hand-authored so it survives a Tailwind rebuild; site.css loads after
   output.css, so these override the generated rules. */

/* Humanist sans for text and headings; mono was applied to everything. */
:root {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* No fade-up on every section. Content is visible immediately. */
.rv { opacity: 1; transform: none; transition: none; }

/* Hero chips: static. No infinite floating loop. */
.pill { animation: none; }

/* Client strip: a calm static row, not an infinite scrolling marquee. */
.marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; }
.marquee-track {
  animation: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  width: auto;
  max-width: 100%;
}

/* --- Editorial home layout (de-AI wireframe) -----------------------------
   Replaces the template patterns: side-by-side chip hero, centred section
   heads, equal card grids, alternating numbered timeline, stat cards.
   Scoped to .ed-* classes + a left-aligned .sec-head (home only). */

.sec-head { text-align: left; margin-inline: 0; max-width: 62ch; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.015em; }

/* Hero: text-led, one wide image band below. No floating chips. */
.ed-hero { padding-top: calc(var(--sol-nav-offset, 120px)); }
.ed-eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
  color: var(--color-secondary); margin-bottom: 20px;
}
.ed-h1 {
  font-size: clamp(34px, 6.2vw, 64px); line-height: 1.04;
  letter-spacing: -.025em; max-width: 22ch; font-weight: 600;
}
.ed-lead {
  margin-top: 24px; font-size: clamp(17px, 2vw, 21px);
  color: var(--color-secondary); max-width: 62ch;
}
.ed-ctas { margin-top: 32px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ed-textlink { text-decoration: underline; text-underline-offset: 4px; }
.ed-hero-media { margin-top: 64px; }
.ed-hero-media img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* Services: an editorial numbered list, not equal cards. */
.ed-services { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--sol-border, #e6e3e3); }
.ed-services li { border-bottom: 1px solid var(--sol-border, #e6e3e3); }
.ed-services a { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 30px 0; }
.ed-services a:hover .ed-title { text-decoration: underline; text-underline-offset: 4px; }
.ed-num { font-size: 13px; color: var(--color-secondary); padding-top: 6px; }
.ed-title { display: block; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; }
.ed-desc { display: block; color: var(--color-secondary); margin-top: 8px; max-width: 72ch; }
.ed-tags { display: block; margin-top: 14px; font-size: 13px; color: var(--color-secondary); }

/* Method: heading left, steps right. Simple ordered list, no timeline. */
.ed-twocol { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; align-items: start; }
.ed-steps { list-style: none; margin: 0; padding: 0; }
.ed-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--sol-border, #e6e3e3); }
.ed-steps li:last-child { border-bottom: 1px solid var(--sol-border, #e6e3e3); }
.ed-step-num { font-size: 13px; color: var(--color-secondary); padding-top: 4px; }
.ed-steps b { font-size: 18px; }
.ed-steps p { margin-top: 6px; color: var(--color-secondary); max-width: 68ch; }

/* Impact: a ledger line, not a stat card + two cards. */
.ed-ledger { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; margin-top: 44px; }
.ed-ledger-main b { display: block; font-size: clamp(40px, 7vw, 72px); line-height: .95; letter-spacing: -.02em; }
.ed-ledger-main span { display: block; margin-top: 14px; color: var(--color-secondary); max-width: 32ch; }
.ed-ledger-items { display: grid; gap: 26px; }
.ed-ledger-items > div { border-top: 1px solid var(--sol-border, #e6e3e3); padding-top: 18px; }
.ed-ledger-items b { font-size: 16px; }
.ed-ledger-items p { margin-top: 8px; color: var(--color-secondary); max-width: 60ch; }

@media (max-width: 820px) {
  .ed-services a { grid-template-columns: 36px 1fr; gap: 16px; }
  .ed-twocol, .ed-ledger { grid-template-columns: 1fr; gap: 28px; }
  .ed-hero-media { margin-top: 40px; }
}

/* --- Editorial inner pages (de-AI wireframe) -----------------------------
   Left-align the shared section head; replace equal card grids with lists;
   de-chip the "related links" pill clouds. */

.sol-head { text-align: left; max-width: 64ch; margin-inline: 0; }

.ed-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.ed-cols > div { border-top: 1px solid var(--sol-border, #e6e3e3); padding: 22px 0; }
.ed-cols h3 { font-size: 18px; margin-bottom: 6px; }
.ed-cols p { color: var(--color-secondary); }

/* Plain links instead of bordered chips. */
.sol-links a { border: 0; background: none; padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; }
.sol-links { gap: 8px 22px; }

@media (max-width: 820px) {
  .ed-cols { grid-template-columns: 1fr; }
}

/* --- Facebook-Business-inspired refresh ----------------------------------
   Blue primary (pill buttons), a pastel hero panel with a rounded photo
   collage, and larger radii. Inspired by Meta for Business, not copied. */
:root {
  --brand: #0756d6;
  --brand-strong: #0647b3;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
}

.btn { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: var(--radius-pill); }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { background: var(--color-base-100); color: var(--color-base-content); border: 1px solid color-mix(in srgb, var(--color-base-content) 22%, transparent); }
.btn.ghost:hover { background: var(--color-base-200); }

.ed-h1 { letter-spacing: -.03em; font-size: clamp(32px, 4.6vw, 52px); }
.ed-textlink { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.ed-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.ed-link-circle {
  width: 30px; height: 30px; border: 1.5px solid var(--brand); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand); flex: none;
}
.ed-link-circle svg { width: 15px; height: 15px; }

.ed-hero-grid { display: grid; grid-template-columns: 1.05fr minmax(0, .95fr); gap: 60px; align-items: center; }
.ed-hero-visual { background: linear-gradient(135deg, #fde7f3, #e8efff 55%, #e3f6ff); border-radius: var(--radius-lg); padding: 26px; }
.ed-collage { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 148px; gap: 14px; }
.ed-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; box-shadow: var(--shadow-card); }
.ed-collage .tall { grid-row: span 2; }

.sol-media img, .sol-hero .sol-media img { border-radius: 12px; }
.sol-card { border-radius: 12px; }

@media (max-width: 900px) {
  .ed-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .ed-hero-visual { order: -1; }
  .ed-collage { grid-auto-rows: 120px; }
}

/* --- Coverage pass: landing pages + service hero panels ------------------- */

/* Landing pages use .lp-btn — align them with the brand pill. */
body.lp .lp-btn {
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
}
body.lp .lp-btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
body.lp .lp-btn--ghost { background: var(--color-base-100); color: var(--color-base-content); }

/* Pastel media panel for service heroes (Meta-inspired). */
.ed-panel {
  background: linear-gradient(135deg, #fde7f3, #e8efff 55%, #e3f6ff);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.ed-panel img { border-radius: 12px; display: block; width: 100%; height: auto; }

/* Round hub/pillar card photos. */
.sol-related img, .sol-hub img { border-radius: 12px; }

/* Keyboard focus ring in the light theme (dark theme sets its own). */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Theme-aware pastel panel (avoid a light block in dark mode). */
[data-theme="axiom-dark"] .ed-hero-visual,
[data-theme="axiom-dark"] .ed-panel {
  background: linear-gradient(135deg,
    color-mix(in srgb, #fde7f3 16%, var(--color-base-200)),
    color-mix(in srgb, #e8efff 16%, var(--color-base-200)) 55%,
    color-mix(in srgb, #e3f6ff 16%, var(--color-base-200)));
}

/* --- Réalisations (portfolio) -------------------------------------------- */
.ed-case {
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 44px;
  padding: 44px 0; border-top: 1px solid var(--sol-border, #e6e3e3);
}
.ed-case-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--color-secondary); margin-bottom: 8px; }
.ed-case h3 { font-size: 24px; margin-bottom: 10px; }
.ed-case p { color: var(--color-secondary); }
.ed-case-tags { margin-top: 14px; font-size: 13px; }
.ed-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed-case-grid img { width: 100%; height: auto; border-radius: 12px; display: block; border: 1px solid var(--sol-border, #e6e3e3); }
@media (max-width: 820px) { .ed-case { grid-template-columns: 1fr; gap: 20px; } }

/* --- Mobile sticky contact bar (service pages) --------------------------- */
.sticky-contact { display: none; }
@media (max-width: 820px) {
  .sticky-contact {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--color-base-100);
    border-top: 1px solid var(--sol-border, #e6e3e3);
  }
  .sticky-contact .btn { flex: 1; justify-content: center; }
  body:has(.sticky-contact) .wa-fab { display: none; }
  body:has(.sticky-contact) { padding-bottom: 78px; }
}

/* WhatsApp corner button — Fixilia style (brand green + glow). */
.wa-fab {
  background: #25d366;
  color: #fff;
  width: 54px;
  height: 54px;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .4);
}
.wa-fab:hover { background: #1ebe5b; }
.wa-fab svg { width: 26px; height: 26px; }

/* Inline WhatsApp glyph sizing (contexts that don't size svg themselves). */
.wa-ico { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -.15em; }

/* Remove the stray hairline under the hero (it belonged to the references strip). */
.refs { border-top: 0; }

/* --- Client logos band (just before the form): continuous scroll --------- */
.refs { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.refs .marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 8% 92%, #0000);
  mask-image: linear-gradient(90deg, #0000, #000 8% 92%, #0000);
}
.refs .marquee-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  gap: 76px;
  animation: marquee 38s linear infinite;
}
.refs .marquee:hover .marquee-track { animation-play-state: paused; }
.refs .marquee-track .ref { display: inline-flex; align-items: center; }
.refs .marquee-track .ref-logo svg,
.refs .marquee-track .ref-logo img { height: 34px; width: auto; display: block; }
.refs .marquee-track .ref-name { font-size: 15px; font-weight: 600; letter-spacing: .14em; }
@media (prefers-reduced-motion: reduce) { .refs .marquee-track { animation: none; } }

/* Bigger client logos (readability) */
.refs .marquee-track .ref-logo svg,
.refs .marquee-track .ref-logo img { height: 46px; }
.refs .marquee-track .ref-name { font-size: 17px; }

/* Hero occupies the first screen so the next section starts only after scroll */
.ed-hero,
.page-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Client logos: larger still */
.refs .marquee-track .ref-logo svg,
.refs .marquee-track .ref-logo img { height: 56px; }
.refs .marquee-track .ref-name { font-size: 19px; }

/* Client logos: double size */
.refs .marquee-track .ref-logo svg,
.refs .marquee-track .ref-logo img { height: 112px; }
.refs .marquee-track .ref-name { font-size: 34px; }
.refs .marquee-track { gap: 120px; }

/* Client logos: don't let flex/preflight shrink the inline SVGs */
.refs .marquee-track .ref { flex: 0 0 auto; }
.refs .marquee-track .ref-logo { display: inline-flex; align-items: center; }
.refs .marquee-track .ref-logo svg,
.refs .marquee-track .ref-logo img { height: 112px; width: auto; max-width: none; flex: 0 0 auto; }

/* Client logos: final size */
.refs .marquee-track .ref-logo svg,
.refs .marquee-track .ref-logo img { height: 48px; }
.refs .marquee-track { gap: 72px; }

/* --- Mobile polish (phones + tablets, ≤1024px) ---------------------------
   Hand-authored so it survives a Tailwind rebuild. Loaded after output.css
   and solutions.css, so it wins on equal specificity. */

@media (max-width: 1024px) {
  /* Drawer: consistent at the same breakpoint as the mega-menu rules, scrolls
     inside the panel and never grows taller than the viewport. */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start;
    gap: 8px; padding: 18px 22px 22px;
    background: var(--color-base-100);
    border-bottom: 1px solid rgba(8, 0, 0, .12);
    max-height: calc(100svh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.show { display: flex; }
  .nav-links > a,
  .nav-links .nav-item { width: 100%; }
  .nav-links .btn { margin-left: 0; }
  /* The Services mega-panel is a desktop hover menu; on mobile the whole grid
     was always expanded and swamped the drawer. Keep "Services" as a plain
     link to the services hub instead. */
  .nav-mega { display: none; }

  /* Header controls: 44×44 minimum tap target (WCAG 2.5.5). */
  .burger,
  .nav-right .burger,
  .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
  }
  .burger { display: inline-flex; }
}

/* iOS Safari zooms the page when a focused field is smaller than 16px. */
@media (max-width: 700px) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; }
}

/* Footer legal links: comfortable tap target (WCAG 2.5.8, ≥24px). */
.foot-legal a { min-height: 24px; display: inline-flex; align-items: center; }

/* Footer legal links: wide enough for short labels like "CGU" (WCAG 2.5.8). */
.foot-legal a { min-width: 32px; min-height: 32px; justify-content: center; }

/* Small uppercase labels: 12px minimum for legibility. */
.foot-grid h3,
.info-label { font-size: 12px; }

/* Project titles on /realisations are now h2 (no skipped heading level). */
.ed-case h2 { font-size: 24px; margin-bottom: 10px; }

/* Floating badges on photos (landing « 100 % responsive », formation « 18 000 DA »):
   the design system's promo green with navy text, same in both themes (≈13:1). */
:root { --badge-green: #3af8a2; --badge-green-ink: #06122a; }
.lp-badge-float { background: var(--badge-green); color: var(--badge-green-ink); box-shadow: 0 12px 30px rgba(6, 18, 42, .28); }

/* Client logos: follow the theme text colour (an old rule painted them pale grey,
   and white on landing pages, which vanished on the light background). */
.refs .marquee-track .ref,
.refs .marquee-track .ref-logo,
.refs .marquee-track .ref-name { color: color-mix(in srgb, var(--color-base-content) 82%, transparent); }

/* Client logos band: swipeable on touch, auto-scrolled by app.js (CSS animation as no-JS fallback). */
.refs .marquee { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.refs .marquee::-webkit-scrollbar { display: none; }
.refs .marquee.is-js .marquee-track { animation: none; }
