/* ============================================================
   AKILA — base.css : structure + composants (variables thémées)
   ============================================================ */

/* ---------- Foundation tokens (partagés) ---------- */
:root {
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 720px;

  --section-pad: clamp(44px, 6vw, 84px);

  --ease-enter: cubic-bezier(.16, 1, .3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-medium: 360ms;
  --dur-long: 600ms;

  /* fallbacks (surchargés par les thèmes) */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 30px 60px rgba(15, 23, 42, .16);

  /* Footer (surchargé par les thèmes) */
  --footer-bg: #0f1f3d;
  --footer-text: rgba(255, 255, 255, .70);
  --footer-heading: #ffffff;
  --footer-muted: rgba(255, 255, 255, .50);
  --footer-border: rgba(255, 255, 255, .12);
  --footer-logo: #ffffff;
  --footer-accent: var(--accent);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 600; letter-spacing: -.01em; color: var(--heading, var(--text)); }

::selection { background: var(--accent); color: var(--accent-contrast, #fff); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono, var(--font-body));
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: var(--space-md);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

.section__head { max-width: 720px; margin-bottom: var(--space-3xl); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section__lead { margin-top: var(--space-md); font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font-weight: 600; font-size: .98rem;
  border-radius: var(--radius-sm); transition: transform var(--dur-short) var(--ease-enter), background var(--dur-short), color var(--dur-short), box-shadow var(--dur-short);
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--accent-contrast, #fff); box-shadow: var(--shadow-sm); }
.btn--accent:hover { box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--border-strong, var(--border)); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { color: var(--text); padding-inline: 6px; }
.btn--ghost:hover { color: var(--accent); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn .arrow { transition: transform var(--dur-short) var(--ease-enter); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg, var(--bg));
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-short), background var(--dur-short);
}
.site-header[data-scrolled] { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: var(--space-xl); min-height: 76px; }
.header__brand { display: flex; flex-direction: column; line-height: 1; }
.header__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; color: var(--heading, var(--text)); }
.header__baseline { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.header__nav { margin-left: auto; }
.header__menu { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.header__menu a { font-size: .95rem; font-weight: 500; color: var(--text-muted); padding: 6px 0; position: relative; transition: color var(--dur-short); }
.header__menu a:hover, .header__menu a[aria-current="page"] { color: var(--text); }
.header__menu a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--accent); }
.header__cta { padding: 10px 20px; }
.header__burger { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.header__burger span { width: 24px; height: 2px; background: var(--text); transition: transform var(--dur-short), opacity var(--dur-short); }
.header__mobile { border-top: 1px solid var(--border); background: var(--bg); max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.header__mobile ul { display: flex; flex-direction: column; gap: 4px; padding: var(--space-lg) clamp(20px, 5vw, 40px) var(--space-2xl); }
.header__mobile a { display: block; padding: 12px 0; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.header__mobile .btn { margin-top: var(--space-md); }

@media (max-width: 980px) {
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }
  .header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Nav dropdowns ---------- */
.nav-item.has-menu { position: relative; }
.header__menu .caret {
  display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; opacity: .55;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  transition: transform var(--dur-short);
}
.nav-panel {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 60;
  display: flex; gap: var(--space-2xl);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--space-lg) var(--space-xl);
  min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-short), transform var(--dur-short), visibility var(--dur-short);
}
.nav-panel--mega { min-width: 480px; }
.nav-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-menu:hover > .nav-panel, .has-menu:focus-within > .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.has-menu:hover > a .caret, .has-menu:focus-within > a .caret { transform: rotate(180deg); opacity: .9; }
.nav-group { min-width: 190px; }
.nav-group__title { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 10px; }
.nav-group ul { display: grid; gap: 1px; }
.header__menu .nav-group a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; color: var(--text); }
.header__menu .nav-group a:hover { background: var(--surface, rgba(127,127,127,.10)); color: var(--accent); }
.nav-group__all { display: inline-flex; gap: 5px; margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--accent); }
.header__mobile .is-sub a { padding-left: 18px; font-size: .98rem; font-weight: 400; color: var(--text-muted); border-bottom-color: transparent; }

/* ---------- Listes de services (profils / missions) ---------- */
.svc-list { display: grid; gap: 0; }
.svc-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.svc-item:last-child { border-bottom: 0; }
.svc-item__text { flex: 1 1 58%; min-width: 220px; }
.svc-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .78rem; font-weight: 600; color: var(--accent); padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  transition: background var(--dur-short);
}
.svc-tag:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.note-box { padding: var(--space-lg); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface, rgba(127,127,127,.08)); color: var(--text-muted); font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg, var(--bg)); }
.hero__inner { display: grid; gap: var(--space-3xl); align-items: center; padding-block: clamp(56px, 9vw, 120px); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--border-strong, var(--border));
  font-size: .85rem; font-weight: 600; color: var(--hero-text, var(--text)); margin-bottom: var(--space-lg);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.03em; color: var(--hero-heading, var(--heading, var(--text))); }
.hero__title .accent { color: var(--accent); }
.hero__lead { margin-top: var(--space-lg); font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--hero-muted, var(--text-muted)); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-2xl); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }

@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.stat__value { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; color: var(--heading, var(--text)); line-height: 1; }
.stat__value .suffix { color: var(--accent); }
.stat__label { margin-top: var(--space-sm); color: var(--text-muted); font-size: .95rem; }

/* ---------- Cards / métiers grid ---------- */
.grid { display: grid; gap: var(--space-lg); }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-xl);
  transition: transform var(--dur-short) var(--ease-enter), border-color var(--dur-short), box-shadow var(--dur-short);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.card__num { font-family: var(--font-mono, var(--font-display)); font-size: .8rem; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.card__icon { width: 48px; height: 48px; margin-bottom: var(--space-md); color: var(--accent); }
.card__icon svg { width: 100%; height: 100%; }
.card__title { font-size: 1.3rem; margin-top: var(--space-sm); }
.card__text { margin-top: var(--space-sm); color: var(--text-muted); font-size: .98rem; }
.card__link { margin-top: auto; padding-top: var(--space-lg); font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Cibles ---------- */
.cibles { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 680px) { .cibles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cibles { grid-template-columns: repeat(3, 1fr); } }
.cible { background: var(--surface); padding: var(--space-xl); transition: background var(--dur-short); }
.cible:hover { background: var(--surface-2, var(--surface)); }
.cible__name { font-size: 1.15rem; font-weight: 600; font-family: var(--font-display); }
.cible__name::before { content: attr(data-arrow); color: var(--accent); margin-right: 8px; }
.cible__desc { margin-top: var(--space-sm); color: var(--text-muted); font-size: .95rem; }

/* ---------- Process ---------- */
.process { display: grid; gap: var(--space-lg); counter-reset: step; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--space-lg); border-top: 2px solid var(--border); }
.step__num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.step__title { font-size: 1.15rem; margin-top: var(--space-md); }
.step__desc { margin-top: var(--space-sm); color: var(--text-muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cta-bg, var(--primary, #0f1f3d)); color: var(--cta-text, #fff); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band__inner { display: grid; gap: var(--space-xl); align-items: center; position: relative; z-index: 1; }
@media (min-width: 820px) { .cta-band__inner { grid-template-columns: 1.4fr auto; } }
.cta-band__title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: inherit; }
.cta-band__text { margin-top: var(--space-md); opacity: .85; max-width: 540px; }

/* ---------- Bandeau preuves / logos ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.trust__item { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text-muted); opacity: .8; }

/* ---------- Logos clients ---------- */
.logos__caption { text-align: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-xl); }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); align-items: center; }
@media (min-width: 560px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(5, 1fr); } }
.logos__item { display: flex; align-items: center; justify-content: center; padding: var(--space-md); background: var(--logo-chip, #fff); border: 1px solid var(--border); border-radius: var(--radius-sm); height: 84px; }
.logos__item img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter var(--dur-short), opacity var(--dur-short); }
.logos__item:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Études de cas ---------- */
.case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--dur-short) var(--ease-enter), box-shadow var(--dur-short); display: flex; flex-direction: column; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case__body { padding: var(--space-lg); }
.case__body .card__title { margin-top: 6px; }

/* ---------- Témoignages ---------- */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-2xl); }
.quote__text { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4; }
.quote__text::before { content: "“"; color: var(--accent); font-size: 2em; line-height: 0; vertical-align: -.3em; margin-right: .1em; }
.quote__author { margin-top: var(--space-lg); font-weight: 600; }
.quote__role { color: var(--text-muted); font-size: .92rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-lg); }
.form__row { display: grid; gap: var(--space-lg); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius-sm); transition: border-color var(--dur-short), box-shadow var(--dur-short);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- Page hero (intérieures) ---------- */
.page-hero { background: var(--hero-bg, var(--surface)); border-bottom: 1px solid var(--border); }
.page-hero__inner { padding: clamp(40px, 5vw, 64px) 0 clamp(20px, 2.5vw, 34px); max-width: 820px; }
/* Réduit le grand vide entre le bandeau de titre et le contenu qui suit */
.page-hero + .section { padding-top: clamp(28px, 3.5vw, 44px); }
.page-hero__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.page-hero__lead { margin-top: var(--space-lg); font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text-muted); }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Listes & panneaux (pages intérieures) ---------- */
.check-list { display: grid; gap: var(--space-md); }
.check-list li { position: relative; padding-left: 34px; color: var(--text-muted); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  background-color: var(--accent);
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-2xl); position: sticky; top: 100px; }
.link-list { display: grid; gap: 10px; }
.link-list a { color: var(--text-muted); transition: color var(--dur-short); }
.link-list a:hover { color: var(--accent); }

.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-2xl); }
.prose h3 { font-size: 1.2rem; margin-top: var(--space-xl); }
.prose p, .prose li { color: var(--text-muted); margin-top: var(--space-md); }
.prose ul { padding-left: 1.2em; list-style: disc; }

.contact-cards { display: grid; gap: var(--space-lg); }
@media (min-width: 720px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-xl); }
.contact-card h3 { font-size: 1.15rem; }
.contact-card a { color: var(--accent); font-weight: 600; }
.contact-card .tel { display: block; margin-top: 6px; color: var(--text); font-weight: 600; }
.contact-aside { display: grid; gap: var(--space-lg); align-content: start; }
.contact-card--accent { border-left: 3px solid var(--accent); }
.contact-card__eyebrow { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--heading); }
.contact-card__line { display: block; margin-top: 6px; color: var(--accent); font-weight: 600; }
/* Page Contact : formulaire visible directement (en-tête compact + 2 colonnes) */
.section--contact-top { padding-top: var(--space-2xl); }
.contact-layout { display: grid; gap: var(--space-2xl); align-items: start; margin-top: var(--space-xl); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.05fr; gap: var(--space-3xl); } }
.contact-intro__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 10px; }
.contact-intro .lead { margin-top: var(--space-md); }
.contact-intro .contact-card--accent { margin-top: var(--space-xl); }
.contact-intro__email { margin-top: var(--space-lg); }
.contact-intro__email a { color: var(--accent); font-weight: 600; }

/* ---------- Articles / Ressources ---------- */
.article-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--dur-short), box-shadow var(--dur-short), border-color var(--dur-short); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.article-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-enter, ease); }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: var(--space-lg); }
.article-card__cat { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--accent); }
.article-card__title { font-size: 1.15rem; line-height: 1.25; }
.article-card__excerpt { color: var(--text-muted); font-size: .95rem; }
.article-card__more { margin-top: auto; padding-top: var(--space-sm); font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }

/* Page article — éditorial (hero couverture + corps + colonne) */
.post-hero { position: relative; background-size: cover; background-position: center; color: #fff; padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 64px); }
.post-hero .breadcrumb--light a { color: rgba(255,255,255,.85); }
.post-hero .breadcrumb--light span { color: rgba(255,255,255,.65); }
.post-hero .breadcrumb--light a:hover { color: #fff; }
.post-hero__cat { display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 40px; }
.post-hero__title { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.01em; max-width: 900px; margin-top: var(--space-md); }
.post-hero__meta { color: rgba(255,255,255,.82); margin-top: var(--space-lg); font-size: .98rem; }
.post-hero__dot { margin: 0 10px; opacity: .55; }

.post-layout { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.post-body { max-width: 760px; }
.post-body > :first-child { margin-top: 0; }
.post-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--text); font-weight: 500; }
.post-body.prose h2 { position: relative; padding-left: 18px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: var(--space-2xl); color: var(--heading); }
.post-body.prose h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 2px; background: var(--accent); }
.post-body.prose h3 { color: var(--heading); }
.post-body.prose strong { color: var(--heading); }

.post-aside { position: sticky; top: 96px; }
@media (max-width: 979px) { .post-aside { position: static; } }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-xl); }
.post-card__title { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--heading); }
.post-card__dl dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-top: var(--space-md); }
.post-card__dl dd { margin: 3px 0 0; font-weight: 600; color: var(--heading); }
.post-card__dl dd a { color: var(--accent); }
.post-card__cta { display: flex; width: 100%; justify-content: center; margin-top: var(--space-lg); }
.post-card__note { margin-top: var(--space-md); font-size: .85rem; color: var(--text-muted); text-align: center; }

.card[href*="/nos-metiers/"] .card__num { display: none; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: var(--space-3xl); flex-wrap: wrap; }
.pagination__btn { padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; color: var(--text); transition: border-color var(--dur-short), color var(--dur-short); }
.pagination__btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination__btn.is-disabled { opacity: .4; pointer-events: none; }
.pagination__pages { display: flex; gap: 6px; }
.pagination__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); font-weight: 600; color: var(--text-muted); }
.pagination__num:hover { color: var(--accent); }
.pagination__num.is-current { background: var(--accent); color: #fff; }

.field__hint { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; }
.bg-surface { background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  opacity: .9;
}
.footer__main {
  display: grid; gap: var(--space-2xl);
  padding-block: clamp(48px, 7vw, 88px);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__main { grid-template-columns: 1.6fr 1.1fr .9fr 1.1fr; gap: var(--space-3xl); } }

.footer__brand { max-width: 360px; }
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; color: var(--footer-logo); }
.footer__tagline { margin-top: var(--space-sm); font-weight: 600; color: var(--footer-heading); }
.footer__pitch { margin-top: var(--space-sm); color: var(--footer-text); font-size: .95rem; line-height: 1.7; }
.footer__cta { margin-top: var(--space-lg); }

.footer__title {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--footer-muted); margin-bottom: var(--space-lg);
}
.footer__links { display: grid; gap: 12px; }
.footer__links--2col { grid-template-columns: 1fr; }
@media (min-width: 420px) { .footer__links--2col { grid-template-columns: 1fr 1fr; gap: 12px var(--space-lg); } }
.footer__links a, .footer__email, .footer__agence-tel {
  color: var(--footer-text); font-size: .95rem; transition: color var(--dur-short);
}
.footer__links a { position: relative; }
.footer__links a:hover { color: var(--footer-accent); }

.footer__col--contact { display: flex; flex-direction: column; }
.footer__email { font-weight: 600; color: var(--footer-heading); margin-bottom: var(--space-lg); }
.footer__email:hover { color: var(--footer-accent); }
.footer__agences { display: grid; gap: 14px; }
.footer__agences li { display: flex; flex-direction: column; gap: 2px; }
.footer__agence-region { font-size: .85rem; color: var(--footer-muted); }
.footer__agence-tel { font-weight: 600; font-size: .95rem; }
.footer__agence-tel:hover { color: var(--footer-accent); }

.footer__bar { border-top: 1px solid var(--footer-border); }
.footer__bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md);
  padding-block: var(--space-lg); font-size: .88rem;
}
.footer__copy { color: var(--footer-muted); }
.footer__legal { display: flex; gap: var(--space-lg); margin-left: auto; }
.footer__legal a { color: var(--footer-muted); transition: color var(--dur-short); }
.footer__legal a:hover { color: var(--footer-accent); }
.footer__top { color: var(--footer-muted); display: inline-flex; gap: 6px; transition: color var(--dur-short); }
.footer__top:hover { color: var(--footer-accent); }
@media (max-width: 620px) { .footer__legal { margin-left: 0; } .footer__top { width: 100%; } }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Masqué uniquement si le JS est actif (classe .js sur <html>) — sinon tout reste visible. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-long) var(--ease-enter), transform var(--dur-long) var(--ease-enter); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---- Barre fixe mobile : Appeler / Demander un devis ---- */
.mobile-cta { display: none; }
@media (max-width: 980px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15,17,20,.08);
  }
  .mobile-cta__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; white-space: nowrap; }
  .mobile-cta__btn--call { border: 1.5px solid var(--border-strong, var(--border)); color: var(--heading, var(--text)); }
  .mobile-cta__btn--quote { background: var(--accent); color: #fff; }
  body.has-mobile-cta { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  body:has(.header__mobile:not([hidden])) .mobile-cta { display: none; }
}
@media print { .mobile-cta { display: none !important; } }
