/* KOSMOS Sécurité — charte : Fredoka (titres en capitales grasses, textes en regular), bleu #0D4263, bleu clair #03C4E4, orange #F39200.
   Layout : hero plein cadre photo à droite + bandeau d'atouts, sections en colonne 1160px, pages intérieures avec bandeau navy. */
:root {
  --brand: #0D4263;
  --brand-deep: #082D45;
  --sky: #03C4E4;
  --orange: #F39200;
  --grey: #575756;
  --bg: #FFFFFF;
  --surface: #F1F5F8;
  --line: #DCE5EC;
  --ink: #1B3446;
  --heading: #0D4263;
  --muted: #55606A;
  --card: #FFFFFF;
  --on-brand-muted: #BCD4E3;
  --font: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1D2A; --surface: #0E2738; --line: #1C3F55; --ink: #DCE8F0; --heading: #F2F7FA;
    --muted: #9FB5C4; --card: #102C3F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1D2A; --surface: #0E2738; --line: #1C3F55; --ink: #DCE8F0; --heading: #F2F7FA;
  --muted: #9FB5C4; --card: #102C3F; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); color: var(--heading); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); letter-spacing: -.005em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.tabular { font-variant-numeric: tabular-nums; white-space: nowrap; }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-alt { background: var(--surface); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4.5vw, 52px); max-width: 740px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.service-note { margin-top: 24px; color: var(--muted); }

/* Logos selon le thème */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: #0D4263; }
.btn-primary:hover { background: #FFA524; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #FFFFFF; background: transparent; }
.btn-ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--heading); background: var(--card); }
.btn-outline:hover { border-color: var(--sky); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 1rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a, .dd > button { text-decoration: none; color: var(--heading); }
.nav-links > a:hover, .dd > button:hover { color: var(--orange); }
.nav a[aria-current="page"] { color: var(--orange); }
.btn-tel { background: var(--brand); color: #FFFFFF; padding: 11px 18px; font-size: .98rem; }
.btn-tel:hover { background: #12557F; }
:root[data-theme="dark"] .btn-tel { background: var(--sky); color: #082D45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-tel { background: var(--sky); color: #082D45; } }
.dd { position: relative; }
.dd > button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd > button svg { width: 14px; height: 14px; transition: transform .15s ease; }
.dd-panel {
  position: absolute; top: calc(100% + 16px); left: -18px; min-width: 300px; display: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 44px rgba(8, 45, 69, .18);
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { display: grid; }
.dd:hover > button svg, .dd:focus-within > button svg { transform: rotate(180deg); }
.dd-panel a { padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--heading); }
.dd-panel a:hover { background: var(--surface); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 46px; height: 46px; place-items: center; color: var(--heading); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding-block: 8px 18px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-menu nav { display: grid; }
.mobile-menu a { text-decoration: none; color: var(--heading); padding: 12px 2px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu .group { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); padding: 16px 2px 4px; }
.mobile-menu .sub { padding-left: 14px; font-weight: 400; }
@media (max-width: 1080px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; background: var(--brand); color: #FFFFFF; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 54%; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0D4263 0%, rgba(13, 66, 99, .6) 28%, rgba(13, 66, 99, 0) 62%); }
.hero-inner { min-height: clamp(560px, 72vh, 700px); display: flex; align-items: center; padding-block: 72px; }
.hero-copy { max-width: 600px; display: grid; gap: 22px; }
.hero h1 { color: #FFFFFF; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { color: var(--on-brand-muted); font-size: 1.2rem; }
.hero .orbit { position: absolute; z-index: -2; left: -22%; top: 50%; width: min(1100px, 130vw); transform: translateY(-50%); pointer-events: none; }
.hero .orbit ellipse { fill: none; }
.astreinte-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; color: var(--on-brand-muted); }
.astreinte-line a { color: #FFFFFF; font-weight: 600; font-size: 1.35rem; text-decoration: none; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #3BE07A; flex: none; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59,224,122,.55); } 70% { box-shadow: 0 0 0 12px rgba(59,224,122,0); } 100% { box-shadow: 0 0 0 0 rgba(59,224,122,0); } }
@media (max-width: 900px) {
  .hero-photo { position: relative; inset: auto; width: 100%; height: clamp(320px, 62vw, 460px); z-index: 0; }
  .hero-photo::after { background: linear-gradient(0deg, #0D4263 0%, rgba(13, 66, 99, 0) 45%); }
  .hero-inner { min-height: 0; padding-block: 8px 48px; }
}

/* Bandeau d'atouts */
.trust { background: var(--brand-deep); color: #FFFFFF; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 26px 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 30px; height: 30px; color: var(--sky); }
.trust-item strong { display: block; font-weight: 600; font-size: 1.05rem; }
.trust-item a { color: #FFFFFF; text-decoration: none; }
.trust-item span { display: block; color: var(--on-brand-muted); font-size: .95rem; line-height: 1.4; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust-item { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } .trust-item { padding-block: 16px; border-top: 1px solid rgba(255,255,255,.08); } .trust-item:first-child { border-top: 0; } }

/* Cartes prestations */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: minmax(0, 1fr); } }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: grid; align-content: start; gap: 12px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.service:hover { border-color: var(--sky); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(8, 45, 69, .1); }
.service .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #FFFFFF; }
.service .ico svg { width: 28px; height: 28px; }
.service p { color: var(--muted); }
.more { font-weight: 600; font-size: .98rem; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; text-decoration: none; }
.more::after { content: "→"; transition: transform .15s ease; }
a:hover .more::after, a.more:hover::after { transform: translateX(4px); }

/* Bloc à propos (accueil) */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about figure { margin: 0; }
.about img { border-radius: 22px; width: 100%; max-width: 480px; }
.about .prose { display: grid; gap: 16px; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } .about img { max-width: none; } }

/* Engagements */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }
.values-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .values-4 { grid-template-columns: minmax(0, 1fr); } }
.value { display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--orange); }
.value p { color: var(--muted); }

/* Secteurs */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sectors { grid-template-columns: minmax(0, 1fr); } }
.sector { display: grid; gap: 6px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s ease; }
.sector:hover { border-color: var(--sky); }
.sector strong { font-weight: 600; font-size: 1.15rem; color: var(--heading); }
.sector span { color: var(--muted); }

/* Bloc navy (sous-traitance) */
.band { background: var(--brand); color: #FFFFFF; position: relative; overflow: hidden; isolation: isolate; }
.band h2 { color: #FFFFFF; }
.band .lead { color: var(--on-brand-muted); }
.band .orbit { position: absolute; z-index: -1; right: -30%; top: 50%; width: min(1000px, 140vw); transform: translateY(-50%); pointer-events: none; }
.band .orbit ellipse { fill: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks svg { width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }
.ticks strong { font-weight: 600; color: var(--heading); }
.band .ticks strong { color: #FFFFFF; }
.band .ticks div { color: var(--on-brand-muted); }

/* Déroulé */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--line); margin-left: 16px; } }
.steps li { counter-increment: step; padding: 30px 22px 0 0; position: relative; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step); position: absolute; top: -18px; left: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #FFFFFF; font-weight: 600; font-size: .95rem;
  box-shadow: 0 0 0 5px var(--bg);
}
.section-alt .steps li::before { box-shadow: 0 0 0 5px var(--surface); }
.steps li p { color: var(--muted); }
@media (max-width: 860px) { .steps li { padding: 0 0 30px 32px; } .steps li::before { top: 0; left: -18px; } }

/* Zone */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .zone { grid-template-columns: minmax(0, 1fr); } }
.zone-map { width: 100%; max-width: 460px; justify-self: center; }
.zone-map text { font-family: var(--font); }

/* Recrutement (accueil) */
.recruit { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.recruit img { border-radius: 22px; width: 100%; max-width: 420px; }
@media (max-width: 860px) { .recruit { grid-template-columns: minmax(0, 1fr); } .recruit img { max-width: none; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact-direct { display: grid; gap: 20px; margin-top: 28px; }
.contact-direct .k { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-direct .v { font-weight: 600; font-size: 1.35rem; color: var(--heading); text-decoration: none; overflow-wrap: anywhere; }
.contact-direct a.v:hover { color: var(--orange); }
form.quote { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; box-shadow: 0 20px 44px rgba(8, 45, 69, .06); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-size: .95rem; font-weight: 500; color: var(--heading); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input[type="file"] { padding: 10px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 28%, transparent); }
.consent { font-size: .92rem; color: var(--muted); }
.consent a { color: var(--heading); }
.form-status { font-size: .98rem; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--heading); }
.hp { position: absolute; left: -9999px; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--brand); color: #FFFFFF; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .orbit { position: absolute; z-index: -1; right: -28%; top: 50%; width: min(1000px, 140vw); transform: translateY(-50%); pointer-events: none; }
.page-hero .orbit ellipse { fill: none; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 7vw, 88px); }
.page-hero-grid.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.page-hero-copy { display: grid; gap: 18px; }
.page-hero h1 { color: #FFFFFF; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-hero .lead { color: var(--on-brand-muted); }
.page-hero .actions { margin-top: 8px; }
.page-hero figure { margin: 0; justify-self: end; width: 100%; max-width: 380px; }
.page-hero figure img { border-radius: 22px; width: 100%; }
.page-hero .emblem { justify-self: center; width: min(250px, 70%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(3, 196, 228, .5); background: rgba(255, 255, 255, .05); color: var(--sky); }
.page-hero .emblem svg { width: 42%; height: 42%; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .page-hero .emblem { display: none; } .page-hero figure { justify-self: stretch; max-width: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--on-brand-muted); list-style: none; padding: 0; margin: 0; }
.crumbs a { color: #FFFFFF; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--sky); }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose h2 { margin-bottom: 4px; }
.prose p { font-size: 1.1rem; }
.brief { background: var(--surface); border-radius: 20px; padding: 28px; display: grid; gap: 16px; position: sticky; top: calc(100px + env(safe-area-inset-top, 0px)); }
.brief h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.brief dl { margin: 0; display: grid; gap: 14px; }
.brief dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brief dd { margin: 2px 0 0; color: var(--heading); font-weight: 500; }
.brief .btn { justify-self: start; }
@media (max-width: 900px) { .brief { position: static; } }

.missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .missions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .missions { grid-template-columns: minmax(0, 1fr); } }
.mission { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.mission h3 { font-size: 1.12rem; display: flex; gap: 10px; align-items: baseline; }
.mission h3::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); transform: translateY(-1px); }
.mission p { color: var(--muted); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-weight: 500; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--heading); }

.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 500; font-size: 1.08rem; color: var(--heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--orange); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 72ch; }

.gallery { columns: 3 240px; column-gap: 16px; margin-top: 36px; }
.gallery img { width: 100%; border-radius: 18px; margin-bottom: 16px; break-inside: avoid; }

.cta-band { background: var(--brand); color: #FFFFFF; border-radius: 26px; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #FFFFFF; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: var(--on-brand-muted); margin-top: 8px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .related { grid-template-columns: minmax(0, 1fr); } }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 500; color: var(--heading); background: var(--card); }
.related a::after { content: "→"; color: var(--orange); }
.related a:hover { border-color: var(--sky); }

.reg { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
.reg div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 16px; padding: 14px 20px; }
.reg div:nth-child(odd) { background: var(--surface); }
.reg dt { font-weight: 600; color: var(--heading); }
.reg dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 620px) { .reg div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.side-photo { margin: 0; }
.side-photo img { border-radius: 22px; width: 100%; }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .jobs { grid-template-columns: minmax(0, 1fr); } }

/* Pages légales */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.5rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { margin-top: 26px; font-size: 1.1rem; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal dl { margin: 16px 0 0; display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.legal dl div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 16px; padding: 11px 18px; }
.legal dl div:nth-child(odd) { background: var(--surface); }
.legal dt { font-weight: 500; color: var(--heading); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.toc a { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--heading); font-weight: 500; }
.toc a:hover { border-color: var(--orange); }
.updated { color: var(--muted); }

/* Pied de page */
.site-footer { background: var(--brand-deep); color: #C3D6E2; padding-block: 60px 28px; font-size: .98rem; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid img { height: 58px; width: auto; }
.footer-grid h3 { color: #FFFFFF; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid p + p { margin-top: 6px; }
.cnaps { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #9FB9CA; display: grid; gap: 6px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }

/* Barre d'appel mobile */
.callbar { display: none; }
@media (max-width: 620px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--brand-deep); border-top: 1px solid rgba(255,255,255,.12);
  }
  .callbar .btn { flex: 1; padding: 13px 10px; }
  body { padding-bottom: 78px; }
}
@media (max-width: 420px) { .brand img { height: 46px; } .btn-tel { padding: 10px 13px; font-size: .92rem; } .btn-tel svg { display: none; } }
.prose p.eyebrow { font-size: .8rem; }

/* Pages prestations : offre, missions, méthode */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 4.5vw, 48px); }
@media (max-width: 900px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offers { grid-template-columns: minmax(0, 1fr); } }
.offer { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
:root[data-theme="dark"] .offer { border-top-color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .offer { border-top-color: var(--sky); } }
.offer h3 { font-size: 1.15rem; }
.offer p { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: 980px; }
@media (max-width: 700px) { .checklist { grid-template-columns: minmax(0, 1fr); } }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.checklist svg { width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }
.method-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .method-grid { grid-template-columns: minmax(0, 1fr); } }
.method { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: m; }
.method li { counter-increment: m; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
.method li:first-child { border-top: 0; padding-top: 0; }
.method li::before { content: counter(m, decimal-leading-zero); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #0D4263; font-weight: 600; font-size: 1.05rem; }
.method h3 { font-size: 1.15rem; align-self: end; }
.method p { color: var(--muted); grid-column: 2; }
.intro-text { font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.6; color: var(--ink); max-width: 70ch; padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }

/* Masque la barre d'appel mobile pendant la saisie d'un formulaire */
@media (max-width: 620px) { body.in-form .callbar { display: none; } body.in-form { padding-bottom: 0; } }

/* Partenaires : logos sur fond blanc, non cliquables */
.partner-grid { list-style: none; padding: 0; margin: clamp(24px, 3vw, 36px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.partner-grid li { background: #FFFFFF; border-radius: 16px; padding: 22px 20px; display: flex; align-items: center; justify-content: center; min-height: 110px; }
.partner-grid img { display: block; max-width: 100%; height: 56px; width: auto; object-fit: contain; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .partner-grid { grid-template-columns: minmax(0, 1fr); } }
