/* ==========================================================================
   AntiRat78 — feuille de style principale
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #1f2b33;
  --ink-soft: #3e4f60;
  --muted: #56646f;
  --teal: #1fb1c1;
  --teal-bright: #27dcf0;
  --teal-ink: #0c6e78;
  --teal-dark: #0a5c64;
  --paper: #f6f8f9;
  --paper-2: #eef2f4;
  --white: #ffffff;
  --line: #dde5e9;
  --amber: #f3b23c;
  --danger: #c0392b;
  --slate: #2c3d4a;
  --slate-2: #22303a;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(16, 38, 48, .06);
  --shadow: 0 14px 40px rgba(16, 38, 48, .10);
  --shadow-lg: 0 26px 70px rgba(10, 32, 42, .18);
  --wrap: 1200px;
  --prose: 780px;
  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --header-h: 84px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
p { margin: 0 0 1.15em; }
strong { font-weight: 700; color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.24;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); }
h3 { font-size: clamp(1.22rem, 1.1rem + .5vw, 1.45rem); }
h4 { font-family: var(--font); font-size: 1.1rem; font-weight: 800; }

::selection { background: var(--teal); color: #fff; }

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: min(100% - 32px, var(--wrap)); } }

.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;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  line-height: 1.2;
}
.btn svg { flex: none; width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--teal-ink); color: #fff; box-shadow: 0 10px 24px rgba(12, 110, 120, .28); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 14px 30px rgba(12, 110, 120, .35); }
.btn--ghost { background: transparent; color: var(--teal-ink); border-color: var(--teal-ink); }
.btn--ghost:hover { background: var(--teal-ink); color: #fff; }
.btn--light { background: #fff; color: var(--teal-ink); }
.btn--light:hover { background: #eafcfd; color: var(--teal-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--teal-ink); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--teal-ink); color: #fff; font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .01em; }
.topbar a { color: #fff; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar a:hover { color: #d9fbff; }
.topbar svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .topbar p { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- En-tête ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 900;
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 30px rgba(16, 38, 48, .10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 218px; height: auto; }
@media (max-width: 1100px) { .brand img { width: 188px; } }
@media (max-width: 480px) { .brand img { width: 156px; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: .94rem; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink-soft); text-decoration: none; padding: 12px 14px; border-radius: 10px;
  transition: color .15s, background-color .15s;
}
.nav a.nav-link:hover, .nav a.nav-link:focus-visible { color: var(--teal-ink); background: var(--paper); }
.nav a.nav-link[aria-current="page"] { color: var(--teal-ink); }
.nav .has-sub > a::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 2px; border-radius: 1px;
}
.nav ul.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 310px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; margin: 0;
  display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  width: max-content; max-width: 340px;
}
.nav li:hover > .submenu, .nav li:focus-within > .submenu, .nav li.is-open > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block; padding: 10px 12px; border-radius: 9px; font-size: .95rem;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.submenu a:hover { background: var(--paper); color: var(--teal-ink); }
.nav-cta { margin-left: 8px; }
.nav-tel { display: none !important; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 800; cursor: pointer;
}
.nav-toggle span { font-size: .95rem; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 950;
    background: #fff; padding: 22px 20px 40px;
    flex-direction: column; align-items: stretch; gap: 0;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    display: flex; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a.nav-link { display: flex; justify-content: space-between; padding: 16px 4px; font-size: 1rem; border-radius: 0; }
  .nav .has-sub > a::after { transform: rotate(45deg); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 12px 10px;
    min-width: 0; display: none;
  }
  .nav li.is-open > .submenu { display: grid; }
  .nav-cta { margin: 22px 0 0; width: 100%; }
  .nav-tel { display: inline-flex !important; margin-top: 12px; justify-content: center; }
  .nav-close { position: absolute; top: 16px; right: 16px; }
}
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(16, 30, 38, .5); z-index: 940;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }
@media (min-width: 1081px) { .nav-backdrop { display: none; } }

/* ---------- Hero accueil ---------- */
.hero-home { position: relative; overflow: hidden; background: var(--slate-2); color: #fff; }
.hero-home__media { position: absolute; inset: 0; }
.hero-home__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-home__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24, 38, 48, .94) 0%, rgba(28, 45, 56, .86) 46%, rgba(28, 45, 56, .42) 100%);
}
.hero-home .wrap { position: relative; z-index: 1; }
.hero-content { padding: 86px 0 250px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #9ef1fa;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--teal-bright); display: block; }
.hero-home h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,.28); }
.hero-sub { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: #dbe7ec; max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px;
  font-size: .92rem; font-weight: 700; color: #e8f1f4;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--teal-bright); }
@media (max-width: 720px) {
  .hero-content { padding: 58px 0 150px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 10px 18px; }
}

/* ---------- Carte intro (chevauchement) ---------- */
.intro-card {
  position: relative; z-index: 2; margin-top: -170px;
  background: var(--slate); color: #eef4f6;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 44px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 44px; align-items: center;
}
.intro-card h2 { color: #fff; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.intro-card p { color: #d7e2e7; }
.intro-card p:last-child { margin-bottom: 0; }
.intro-card img { border-radius: 16px; width: 100%; max-width: 330px; margin-inline: auto; }
.intro-card .btn { margin-top: 8px; }
@media (max-width: 900px) {
  .intro-card { grid-template-columns: 1fr; gap: 26px; padding: 32px; margin-top: -120px; }
  .intro-card img { max-width: 240px; order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: 82px 0; }
.section--tight { padding: 58px 0; }
.section--paper { background: #fff; }
.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { color: var(--teal-ink); }
.section-head .eyebrow::before { background: var(--teal); }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head--left { margin-inline: 0; text-align: left; }
@media (max-width: 640px) { .section { padding: 58px 0; } }

/* ---------- Cartes prestations ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8d9df; color: inherit; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--ink); }
.card__body p { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
.card__link { margin-top: auto; font-weight: 800; font-size: .9rem; color: var(--teal-ink); display: inline-flex; align-items: center; gap: 6px; }
.card__link svg { width: 15px; height: 15px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(3px); }

/* ---------- Avantages ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: #e7f8fa; color: var(--teal-ink); margin-bottom: 18px;
}
.feature__icon svg { width: 27px; height: 27px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.step__num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-ink); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Citation ---------- */
.quote {
  background: linear-gradient(120deg, #e9fafb, #f6fbfc);
  border-left: 5px solid var(--teal);
  border-radius: 0 16px 16px 0;
  padding: 26px 30px; margin: 0; font-size: 1.06rem; color: var(--ink-soft);
}
.quote p { margin: 0; }
.quote footer { margin-top: 10px; font-size: .9rem; font-weight: 800; color: var(--teal-ink); }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--slate-2); color: #fff; padding: 76px 0; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11, 108, 118, .95), rgba(30, 44, 54, .92));
}
.cta-band .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: #d9f6f9; max-width: 620px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .cta-band__actions { width: 100%; } .cta-band__actions .btn { flex: 1 1 auto; } }

/* ---------- Hero pages internes ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--slate-2); color: #fff; padding: 54px 0 96px; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24, 38, 48, .95) 0%, rgba(28, 45, 56, .88) 55%, rgba(28, 45, 56, .55) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 1000px; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #b9cdd5; }
.breadcrumb a { color: #dbeef2; text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #7f9aa5; }
.page-hero h1 { color: #fff; margin-bottom: 14px; max-width: 880px; }
.page-hero .lede { color: #d8e8ed; font-size: 1.08rem; max-width: 720px; margin: 0 0 20px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .84rem; color: #bcd2da; margin: 0; }
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-meta svg { width: 15px; height: 15px; color: var(--teal-bright); }

/* ---------- Article ---------- */
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; align-items: start; padding: 0 0 84px; }
.article-main { min-width: 0; margin-top: -64px; position: relative; z-index: 2; }
.article-main--nohero { margin-top: 48px; }
.hero-fig { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.hero-fig img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; }
.hero-fig figcaption { font-size: .82rem; color: var(--muted); padding: 10px 16px; background: #fff; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 46px 44px; box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .article-card { padding: 26px 20px 30px; border-radius: 16px; } }

.prose { font-size: 1.045rem; color: #283740; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2 {
  font-size: clamp(1.45rem, 1.25rem + .9vw, 1.84rem);
  margin: 2.1em 0 .7em; padding-top: .1em; scroll-margin-top: 110px;
  color: var(--ink-soft);
}
.prose h2::before {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 4px;
  background: var(--teal); margin-bottom: 16px;
}
.prose h3 { margin: 1.7em 0 .55em; scroll-margin-top: 110px; }
.prose h2 + h3 { margin-top: .6em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--teal);
}
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: .15em;
  width: 21px; height: 21px; border-radius: 50%; background: #e2f5f7; color: var(--teal-ink);
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.prose li > ul, .prose li > ol { margin-top: .5em; }
.prose img { border-radius: 14px; margin: 1.6em auto; box-shadow: 0 8px 26px rgba(16,38,48,.10); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { text-align: center; font-size: .84rem; color: var(--muted); margin-top: -1em; }
.prose blockquote {
  margin: 1.8em 0; padding: 24px 28px; background: #f2fafb; border-left: 5px solid var(--teal);
  border-radius: 0 14px 14px 0; font-size: 1.04rem; color: var(--ink-soft);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .callout {
  margin: 2em 0; padding: 28px 30px; border-radius: 16px;
  background: linear-gradient(135deg, #e9fafb, #f7fdfd); border: 1px solid #cdeef1;
}
.prose .callout > *:first-child { margin-top: 0; }
.prose .callout > *:last-child { margin-bottom: 0; }
.prose .callout h2, .prose .callout h3 { margin-top: 0; }
.prose .callout h2::before { display: none; }
.prose .content-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 1.8em 0; align-items: start; }
.prose .content-col > *:first-child { margin-top: 0; }
.prose .content-col > *:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .prose .content-cols { grid-template-columns: 1fr; gap: 10px; } }
.prose .table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 0; }
.prose th, .prose td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f2f7f8; font-weight: 800; color: var(--ink-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose .btn { margin: 6px 10px 10px 0; text-decoration: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose a:not(.btn) { text-decoration: underline; }
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }

/* ---------- Sidebar ---------- */
.article-side { position: sticky; top: calc(var(--header-h) + 20px); margin-top: 54px; display: grid; gap: 20px; }
@media (max-width: 1000px) {
  .article-shell { grid-template-columns: 1fr; gap: 0; }
  .article-side { position: static; margin-top: 34px; grid-template-columns: 1fr 1fr; }
  .article-main { margin-top: -52px; }
}
@media (max-width: 700px) {
  .article-side { grid-template-columns: 1fr; }
  .article-main { margin-top: -44px; }
  .hero-fig img { aspect-ratio: 16 / 10; }
}
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.side-card h2, .side-card h3 { font-size: 1rem; margin: 0 0 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.side-card h2 svg, .side-card h3 svg { width: 17px; height: 17px; color: var(--teal-ink); }
.toc { list-style: none; margin: 0; padding: 0; font-size: .9rem; max-height: 46vh; overflow: auto; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--teal-ink); border-left-color: var(--teal); background: #f4fbfc; }
.toc li.toc-3 a { padding-left: 26px; font-size: .85rem; }
.side-cta { background: linear-gradient(160deg, var(--slate), #1b2b35); color: #fff; border: 0; }
.side-cta h2, .side-cta h3 { color: #fff; }
.side-cta p { color: #cfe0e6; font-size: .9rem; margin: 0 0 16px; }
.side-cta .btn { width: 100%; margin-bottom: 10px; }
.side-cta .side-tel { display: block; text-align: center; color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; padding: 6px 0; }
.side-cta .side-tel:hover { color: #9ef1fa; }
.side-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; color: var(--ink-soft); }
.side-trust li { display: flex; gap: 9px; align-items: flex-start; }
.side-trust svg { width: 16px; height: 16px; color: var(--teal-ink); flex: none; margin-top: 4px; }

.toc-inline { display: none; }
@media (max-width: 1000px) {
  .toc-card { display: none; }
  .toc-inline {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 0 20px; margin: 0 0 20px; box-shadow: var(--shadow-sm);
  }
  .toc-inline summary {
    cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 800;
    color: var(--ink); position: relative; font-size: .95rem;
    display: flex; align-items: center; gap: 9px;
  }
  .toc-inline summary::-webkit-details-marker { display: none; }
  .toc-inline summary svg { width: 17px; height: 17px; color: var(--teal-ink); }
  .toc-inline summary::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
    border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink);
    transform: translateY(-70%) rotate(45deg);
  }
  .toc-inline[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
  .toc-inline .toc { padding-bottom: 16px; max-height: none; }
}

/* ---------- FAQ ---------- */
.faq-block { margin: 54px 0 0; }
.faq-block__head { margin-bottom: 22px; }
.faq-block__head h2 { margin-bottom: 6px; }
.faq-block__head p { color: var(--muted); margin: 0; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 22px; box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.faq details[open] { border-color: #bfe4e8; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 800; font-size: 1rem; color: var(--ink); line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--teal-ink); border-bottom: 2.5px solid var(--teal-ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__answer { padding: 0 0 20px; color: var(--muted); font-size: .97rem; }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Articles liés ---------- */
.related { margin-top: 54px; }
.related h2 { font-size: 1.45rem; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit; align-items: stretch;
  transition: box-shadow .2s, transform .2s;
}
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.related-card img { width: 96px; height: 96px; object-fit: cover; flex: none; }
.related-card__body { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.related-card__body small { display: block; font-weight: 700; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.related-card__body strong { font-size: .9rem; line-height: 1.35; color: var(--ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-2); color: #c6d4da; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 62px 0 46px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2, .site-footer h3 { color: #fff; font-family: var(--font); font-size: .86rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer p { margin: 0 0 14px; }
.site-footer a { color: #d8e5ea; text-decoration: none; }
.site-footer a:hover { color: #8eeaf3; text-decoration: underline; }
.footer-brand img { width: 190px; margin-bottom: 18px; opacity: .97; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--teal-bright); flex: none; margin-top: 4px; }
.footer-contact a { font-weight: 800; color: #fff; font-size: 1.05rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { font-size: .9rem; }
.footer-bottom { background: var(--teal-ink); color: #eafcfe; font-size: .82rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom .cookie-btn {
  background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-bottom .cookie-btn:hover { color: #d6fbff; }
.footer-links .cookie-btn {
  background: none; border: 0; padding: 0; font: inherit; font-size: .9rem;
  color: #d8e5ea; cursor: pointer; text-align: left; text-decoration: none;
}
.footer-links .cookie-btn:hover { color: #8eeaf3; text-decoration: underline; }

/* ---------- Barre d'appel mobile ---------- */
.mobile-call { display: none; }
@media (max-width: 720px) {
  .mobile-call {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
    background: #fff; border-top: 1px solid var(--line); padding: 9px 12px;
    gap: 9px; box-shadow: 0 -6px 20px rgba(16,38,48,.08);
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }
  .mobile-call .btn { flex: 1; padding: 12px 14px; font-size: .92rem; }
  body { padding-bottom: 68px; }
  .cookie-banner { bottom: 78px; }
}

/* ---------- 404 ---------- */
.error-page { padding: 100px 0 120px; text-align: center; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 12vw, 9rem); line-height: 1; color: var(--teal-ink); margin: 0; opacity: .9; }
.error-page h1 { margin-bottom: 14px; }
.error-page p { max-width: 540px; margin: 0 auto 28px; color: var(--muted); }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.error-links a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 10px 18px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.error-links a:hover { border-color: var(--teal); color: var(--teal-ink); }

/* ---------- Bloc texte + image ---------- */
.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.split h2 { margin-bottom: 14px; }
.split p { color: var(--muted); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split img { order: -1; aspect-ratio: 16 / 9; object-fit: cover; }
}

/* ---------- Bandeau de confiance (pages) ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 0; }
@media (max-width: 700px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { width: 22px; height: 22px; color: var(--teal-ink); flex: none; margin-top: 2px; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { font-size: .84rem; color: var(--muted); }

/* ---------- Formulaires / contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: 1.25rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: #e7f8fa; color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list span { font-weight: 700; color: var(--ink); font-size: 1.02rem; text-decoration: none; }
.contact-list a:hover { color: var(--teal-ink); text-decoration: underline; }
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-wrap h2 { font-size: 1.35rem; margin-bottom: 6px; }
.form-wrap > p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.hs-form-frame { min-height: 420px; }
.form-placeholder {
  border: 2px dashed #c9dfe4; border-radius: 14px; padding: 34px 24px; text-align: center;
  background: #f7fcfd; color: var(--muted);
}
.form-placeholder strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.form-placeholder .btn { margin-top: 16px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.form-note a { color: var(--teal-ink); }
.form-fallback { margin-top: 16px; padding: 20px; border-radius: 12px; background: #fff7ec; border: 1px solid #f3d6a8; font-size: .9rem; color: #6b4c17; }
.form-fallback p { margin: 0 0 12px; }
.form-fallback a { color: #6b4c17; font-weight: 700; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--teal-ink); line-height: 1.1; }
.stat span { font-size: .84rem; color: var(--muted); font-weight: 600; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 1200; left: 22px; bottom: 22px; width: min(420px, calc(100vw - 44px));
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px; transform: translateY(24px); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.cookie-banner.is-visible { transform: none; opacity: 1; visibility: visible; }
.cookie-banner__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cookie-banner__head svg { width: 22px; height: 22px; color: var(--teal-ink); }
.cookie-banner h2 { font-family: var(--font); font-size: 1rem; font-weight: 800; margin: 0; color: var(--ink); }
.cookie-banner p { font-size: .84rem; color: var(--muted); margin: 0 0 16px; line-height: 1.55; }
.cookie-banner p a { color: var(--teal-ink); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { padding: 11px 12px; font-size: .85rem; }
.cookie-actions .btn--full { grid-column: 1 / -1; }
.cookie-actions .cookie-customize { background: none; border: 0; font: inherit; font-size: .8rem; color: var(--muted); text-decoration: underline; cursor: pointer; grid-column: 1 / -1; padding: 4px; }
@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 18px; border-radius: 16px; }
}

/* ---------- Modale préférences ---------- */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px;
  background: rgba(12, 26, 34, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.cookie-modal.is-visible { opacity: 1; visibility: visible; }
.cookie-modal__box {
  background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  padding: 26px; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .2s;
}
.cookie-modal.is-visible .cookie-modal__box { transform: none; }
.cookie-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie-modal__head h2 { font-size: 1.2rem; margin: 0; }
.cookie-close { background: var(--paper); border: 0; border-radius: 10px; width: 38px; height: 38px; cursor: pointer; color: var(--ink); display: grid; place-items: center; flex: none; }
.cookie-close:hover { background: var(--line); }
.cookie-close svg { width: 18px; height: 18px; }
.cookie-modal p.intro { font-size: .86rem; color: var(--muted); margin: 0 0 18px; }
.cookie-cat { border-top: 1px solid var(--line); padding: 16px 0; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.cookie-cat strong { display: block; font-size: .95rem; }
.cookie-cat span { font-size: .82rem; color: var(--muted); display: block; margin-top: 2px; }
.switch { position: relative; flex: none; width: 48px; height: 27px; margin-top: 3px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: #cfd9dd; border-radius: 999px; transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--teal-ink); }
.switch input:checked + i::after { transform: translateX(21px); }
.switch input:focus-visible + i { outline: 3px solid var(--teal); outline-offset: 2px; }
.switch input:disabled + i { opacity: .55; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-modal__actions .btn { flex: 1 1 auto; }

/* ---------- Animations douces ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card, .feature, .step { transition: opacity .5s ease, transform .3s ease, box-shadow .2s ease, border-color .2s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Impression ---------- */
@media print {
  .topbar, .site-header, .site-footer, .article-side, .cookie-banner, .cookie-modal, .mobile-call, .cta-band, .related, .faq-block { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .article-shell { display: block; }
  .article-main { margin: 0; }
  .article-card { border: 0; box-shadow: none; padding: 0; }
  .page-hero { background: #fff; color: #000; padding: 20px 0; }
  .page-hero__media { display: none; }
  .page-hero h1, .breadcrumb a, .page-meta { color: #000; }
}

@font-face{font-family:'Mulish';font-style:normal;font-weight:200 900;font-display:swap;src:url('/assets/fonts/mulish-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Mulish';font-style:normal;font-weight:200 900;font-display:swap;src:url('/assets/fonts/mulish-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/roboto-slab-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Roboto Slab';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/roboto-slab-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
