/* ==========================================================================
   Ordimedia — feuille de style unique
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #6582ba;
  --brand-600: #4f6ca8;
  --brand-700: #3d5690;
  --brand-800: #2f4373;
  --brand-50: #f0f3fa;
  --brand-100: #e0e7f5;
  --ink: #16181d;
  --ink-2: #2a2e37;
  --text: #1d2129;
  --muted: #5a6271;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ok: #17905a;
  --ok-bg: #e5f6ee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, 0.06);
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 12px 32px -14px rgba(22, 24, 29, 0.22);
  --shadow-lg: 0 2px 4px rgba(22, 24, 29, 0.04), 0 30px 60px -24px rgba(47, 67, 115, 0.35);
  --header-h: 72px;
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --logo-ink: var(--ink);
  --logo-bg: #fff;
}

*,
*::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: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-700); text-underline-offset: 3px; }
a[href^='tel:'] { white-space: nowrap; }
a:hover { color: var(--brand-800); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid rgba(101, 130, 186, 0.6); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 50px; padding: 0 1.4em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 0 1.05em; font-size: 0.95rem; border-radius: 10px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(22, 24, 29, 0.55); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-800); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-50); color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--logo-ink); }
.logo .emblem { height: 42px; width: auto; margin-right: -1px; }
.logo-word { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; padding-bottom: 3px; }
.logo:hover { color: var(--logo-ink); }
.logo-invert { --logo-ink: #fff; --logo-bg: var(--ink); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 10px;
  font: inherit; font-size: 0.98rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current='page'], .nav-link.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav-link .chev { width: 1em; height: 1em; transition: transform 0.2s; }

.has-dd { position: relative; }
.dd {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  width: min(560px, 90vw); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.dd::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.dd a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.3;
}
.dd a .icon { width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); }
.dd a:hover, .dd a[aria-current='page'] { background: var(--bg-soft); color: var(--brand-800); }

@media (hover: hover) and (min-width: 961px) {
  .has-dd:hover .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-dd:hover .chev { transform: rotate(180deg); }
}
@media (min-width: 961px) {
  .has-dd:focus-within .dd,
  .dd-toggle[aria-expanded='true'] + .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dd-toggle[aria-expanded='true'] .chev { transform: rotate(180deg); }
}

.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded='true'] .i-open { display: none; }
.nav-toggle[aria-expanded='true'] .i-close { display: block; }

@media (max-width: 960px) {
  /* backdrop-filter ferait de l'en-tête le conteneur du menu fixe (hauteur nulle) */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 32px; overflow-y: auto;
    background: #fff; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.1rem; }
  .dd {
    position: static; transform: none; width: auto; grid-template-columns: 1fr;
    box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible;
  }
  .dd-toggle[aria-expanded='true'] + .dd { display: grid; }
  .dd-toggle[aria-expanded='true'] .chev { transform: rotate(180deg); }
  .nav-cta { min-height: 54px; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(101, 130, 186, 0.22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(101, 130, 186, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff);
}
.hero::before,
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 86, 144, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 86, 144, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13.5em; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 36em; line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.88rem; font-weight: 700; color: var(--brand-700);
}
.eyebrow .icon { width: 1.05em; height: 1.05em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 0.93rem; }
.hero-note .icon { width: 1.05em; height: 1.05em; color: var(--brand); }

/* Tableau de bord décoratif */
/* Photo du héros encadrée par les deux équerres bleues du logo, tableau de bord par-dessus. */
.hero-visual { position: relative; isolation: isolate; padding: 24px 24px 24px 0; }
.hero-visual::before,
.hero-visual::after,
.page-hero-media::before,
.page-hero-media::after,
.split-media::before,
.split-media::after { content: ''; position: absolute; z-index: -1; width: 42%; height: 42%; border: 0 solid var(--brand); transform: rotate(-5deg); pointer-events: none; }
.hero-visual::before { top: 0; right: 0; border-top-width: 14px; border-right-width: 14px; }
.hero-visual::after { bottom: 0; left: -24px; border-bottom-width: 14px; border-left-width: 14px; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 880 / 1040; max-height: 500px; width: 100%; background: var(--brand-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-float { position: absolute; left: -64px; bottom: 44px; width: 300px; }
.board-float .board-list li { padding: 9px 8px; gap: 12px; }
.board-float .b-ico { width: 36px; height: 36px; border-radius: 10px; }
.board-float .b-ico .icon { width: 1.1em; height: 1.1em; }
.board-float .b-txt b { font-size: 0.92rem; }
.board-float .b-txt small { font-size: 0.8rem; }
.board-float .board-head { padding: 11px 14px; font-size: 0.8rem; }
.board {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.board-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dce6; }
.dots i:first-child { background: var(--brand); }
.board-list { padding: 8px; }
.board-list li { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; }
.board-list li + li { border-top: 1px dashed var(--line); }
.b-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); flex: none; }
.b-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.b-txt b { color: var(--ink); font-size: 0.98rem; }
.b-txt small { color: var(--muted); font-size: 0.86rem; }
.pill { font-size: 0.78rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.live { background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(101, 130, 186, 0.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(101, 130, 186, 0); } }
.board-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--ink); color: #dfe4ee; font-size: 0.9rem; font-weight: 600; }
.board-foot .icon { color: var(--brand); }

/* ---------- Chiffres clés ---------- */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-list li { padding: 26px 24px; display: flex; flex-direction: column; gap: 2px; }
.facts-list li + li { border-left: 1px solid var(--line); }
.facts-list b { font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.facts-list span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-tint { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #c9d0dc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p:last-child { color: #aab3c3; }
.kicker { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px; }
.section-dark .kicker { color: #9fb3dc; }
.small-title { font-size: 1.25rem; margin-bottom: 18px; }

/* Cartes services */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-card { overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.svc-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.svc-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--brand-100); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.svc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22, 24, 29, 0.25)); }
.svc-media .svc-ico { position: absolute; z-index: 1; left: 20px; bottom: -22px; background: #fff; box-shadow: var(--shadow); }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 36px 22px 22px; }
.svc-card h3 { margin: 0 0 8px; }
.svc-card p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; margin-bottom: 18px; }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-card-cta .svc-body { padding-top: 26px; }
.svc-card-cta .svc-ico { margin-bottom: 18px; }
.svc-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; color: var(--brand-700); }
.svc-card .more .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.svc-card:hover .more .icon { transform: translateX(3px); }
.svc-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); }
.svc-ico .icon { width: 26px; height: 26px; }
.svc-card-cta { background: var(--ink); border-color: var(--ink); }
.svc-card-cta h3 { color: #fff; }
.svc-card-cta p { color: #b9c1cf; }
.svc-card-cta .svc-ico { background: rgba(255, 255, 255, 0.08); color: #fff; }
.svc-card-cta .more { color: #fff; }
.svc-card-cta:hover { border-color: var(--ink); }

/* Contrat de maintenance : photo + texte */
.section-tight-top { padding-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; isolation: isolate; padding: 20px 0 20px 20px; }
.split-media::before { top: 0; left: 0; border-top-width: 14px; border-left-width: 14px; }
.split-media::after { bottom: 0; right: -20px; border-bottom-width: 14px; border-right-width: 14px; }
.split-media img { width: 100%; aspect-ratio: 960 / 760; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); background: var(--brand-100); }
.split-text h2 { max-width: 15em; }
.split-text .lead { margin-bottom: 22px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--ink-2); }
.checks .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); stroke-width: 2.6; flex: none; }

/* Secteurs */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--ink); color: #fff; }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sector::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 24, 29, 0) 30%, rgba(22, 24, 29, 0.55) 55%, rgba(22, 24, 29, 0.92)); }
.sector-txt { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; }
.sector h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.sector p { margin: 0; color: #d9dfea; font-size: 0.93rem; line-height: 1.5; }
.sector:hover img { transform: scale(1.04); }

/* Lien discret vers les particuliers */
.section-perso { padding: 0 0 clamp(40px, 5vw, 64px); }
.perso-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0; color: var(--muted); font-size: 0.97rem; text-align: center; }
.perso-line > .icon { color: var(--brand-600); }
.perso-line a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.perso-line a .icon { width: 1em; height: 1em; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); counter-increment: step; }
.steps li::after { content: '0' counter(step); position: absolute; top: 22px; right: 26px; font-weight: 800; font-size: 0.95rem; color: #6f7b91; }
.steps p { margin: 0; line-height: 1.6; }
.step-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--brand); color: #fff; margin-bottom: 18px; }
.step-ico .icon { width: 24px; height: 24px; }

/* Marques */
.brands { display: flex; flex-wrap: wrap; gap: 12px; }
.brands li { padding: 14px 22px; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; font-size: 1.05rem; color: var(--ink-2); letter-spacing: -0.01em; background: #fff; }

/* Bloc aide */
.help { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.help-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--ink); color: #fff; }
.help-ico .icon { width: 34px; height: 34px; }
.help h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: 6px; }
.help p { color: var(--muted); margin: 0; max-width: 40em; }
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Bandeau d'appel */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 24px; color: #e8edf7;
  background: linear-gradient(120deg, var(--brand-800), var(--brand-600) 60%, var(--brand));
}
.cta-band::before,
.cta-band::after { content: ''; position: absolute; width: 64px; height: 64px; border: 0 solid rgba(255, 255, 255, 0.22); transform: rotate(-5deg); pointer-events: none; }
.cta-band::before { top: 14px; right: 16px; border-top-width: 9px; border-right-width: 9px; }
.cta-band::after { bottom: 14px; left: 16px; border-bottom-width: 9px; border-left-width: 9px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 34em; color: #dfe6f5; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pages intérieures ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(101, 130, 186, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff);
}
.page-hero > .wrap { position: relative; }
.page-hero-compact { padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.page-hero h1 { max-width: 18em; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.page-hero-media { position: relative; isolation: isolate; padding: 20px; }
.page-hero-media img { width: 100%; aspect-ratio: 720 / 860; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); background: var(--brand-100); }
.page-hero-media::before { top: 0; right: 0; border-top-width: 14px; border-right-width: 14px; }
.page-hero-media::after { bottom: 0; left: 0; border-bottom-width: 14px; border-left-width: 14px; }
.center .lead { margin-inline: auto; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.big-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; }
.big-ico.ok { background: var(--ok-bg); color: var(--ok); }
.big-ico .icon { width: 36px; height: 36px; }

/* Points détaillés */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.points li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.points h3 { margin-bottom: 4px; }
.points p { margin: 0; color: var(--muted); }
.pt-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); flex: none; margin-top: 1px; }
.pt-ico .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.brand-line { margin: 32px 0 0; color: var(--muted); }
.brand-line strong { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand-600); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Autres services */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-grid a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-2); font-weight: 700; text-decoration: none; transition: border-color 0.2s, background-color 0.2s;
}
.mini-grid a > .icon:first-child { color: var(--brand-600); }
.mini-grid a span { flex: 1; }
.mini-grid .arr { width: 1em; height: 1em; color: var(--muted); transition: transform 0.2s; }
.mini-grid a:hover { border-color: var(--brand-100); background: var(--bg-soft); }
.mini-grid a:hover .arr { transform: translateX(3px); color: var(--brand-700); }

/* ---------- Assistance ---------- */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.howto li { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.howto h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.howto p { margin: 0; color: var(--muted); }
.howto .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; flex: none; }
.warn { display: flex; gap: 16px; padding: 20px 22px; border-radius: 14px; background: #fff7e6; border: 1px solid #f1cd85; color: #6b4300; }
.warn .icon { width: 26px; height: 26px; color: #c27c00; margin-top: 1px; }
.warn p { margin: 0; }
.warn strong { color: #4f3100; }
.dl-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dl-group h2 { font-size: 1.45rem; margin-bottom: 4px; }
.dl-group > p { margin-bottom: 18px; }
.dl-list { display: grid; gap: 10px; }
.dl {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  color: inherit; text-decoration: none; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.dl:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-1px); }
.dl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--bg-soft); color: var(--ink-2); flex: none; }
.dl-txt { display: flex; flex-direction: column; flex: 1; line-height: 1.35; min-width: 0; }
.dl-txt b { color: var(--ink); }
.dl-txt small { color: var(--muted); font-size: 0.9rem; }
.dl-go { color: var(--brand-600); }
.dl-primary { border-color: var(--brand); background: var(--brand-50); }
.dl-primary .dl-ico { background: var(--ink); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.form-card { padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
.req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6271' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(101, 130, 186, 0.18); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { margin: 0; font-size: 0.88rem; color: var(--muted); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #b0372a; }
.form.is-sending button[type='submit'] { opacity: 0.6; pointer-events: none; }
.contact-side { display: grid; gap: 12px; }
.contact-tile {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: inherit; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s;
}
a.contact-tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.contact-tile > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); }
.contact-tile span { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.contact-tile small { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.contact-tile b { color: var(--ink); font-weight: 700; }
.tile-strong { background: var(--ink); border-color: var(--ink); }
.tile-strong > .icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tile-strong small { color: #aab3c3; }
.tile-strong b { color: #fff; font-size: 1.35rem; letter-spacing: -0.01em; }
a.tile-strong:hover { border-color: var(--brand-700); background: var(--brand-800); }

/* ---------- Mentions légales ---------- */
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.kv { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 18px; }
.kv li + li { border-top: 1px solid var(--line); }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; color: var(--ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #aab3c3; padding-top: clamp(48px, 6vw, 72px); font-size: 0.97rem; }
.site-footer a { color: #dfe4ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { margin-top: 18px; max-width: 30em; line-height: 1.6; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo:hover { text-decoration: none; }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-weight: 600; }
.social .icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.footer-title { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 16px; }
.footer-links { display: grid; gap: 8px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.footer-contact .icon { color: var(--brand); margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid, .sectors { grid-template-columns: repeat(2, 1fr); }
  .sector { aspect-ratio: 4 / 3; }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .board-float { left: -24px; }
  .facts-list li:nth-child(3) { border-left: 0; }
  .facts-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; padding: 20px 20px 0 0; }
  .hero-visual::after { left: -20px; bottom: auto; top: 50%; }
  .hero-photo { aspect-ratio: 4 / 3; max-height: none; }
  .board-float { position: relative; left: auto; bottom: auto; width: min(340px, 88%); margin: -96px 0 0 20px; }
  .page-hero-media { max-width: 640px; padding: 16px; }
  .page-hero-media img { aspect-ratio: 16 / 10; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 640px; }
  .steps, .howto { grid-template-columns: 1fr; }
  .help { grid-template-columns: 1fr; gap: 18px; }
  .dl-wrap, .contact-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .logo .emblem { height: 36px; }
  .logo-word { font-size: 1.6rem; }
  .svc-grid, .points, .mini-grid, .row-2 { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: 1fr; }
  .facts-list li { padding: 18px 4px; }
  .facts-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-actions .btn, .help-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 12px 12px 0 0; }
  .hero-visual::before, .hero-visual::after,
  .page-hero-media::before, .page-hero-media::after,
  .split-media::before, .split-media::after { border-width: 0; width: 34%; height: 34%; }
  .hero-visual::before, .page-hero-media::before { border-top-width: 9px; border-right-width: 9px; }
  .hero-visual::after { left: -12px; border-bottom-width: 9px; border-left-width: 9px; }
  .page-hero-media::after { border-bottom-width: 9px; border-left-width: 9px; }
  .split-media { padding: 12px 0 12px 12px; }
  .split-media::before { border-top-width: 9px; border-left-width: 9px; }
  .split-media::after { right: -12px; border-bottom-width: 9px; border-right-width: 9px; }
  .page-hero-media { padding: 12px; }
  .hero-photo, .page-hero-media img, .split-media img { border-radius: 18px; }
  .board-float { margin: -56px 0 0 12px; width: calc(100% - 24px); }
  .board-float .board-list li:nth-child(n + 3) { display: none; }
  .sectors { grid-template-columns: 1fr; }
  .sector { aspect-ratio: 16 / 11; }
  .board-list li { padding: 11px 6px; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .kv li { grid-template-columns: 1fr; gap: 2px; }
  .cta-band { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
