/* ==========================================================================
   sdMPLS® — feuille de style commune (identité visuelle v1, septembre 2026)
   Palette : marine #0B2545 / marine profond #071A33, fond sable chaud #F7F3EE,
   surfaces #FFFFFF et #FBF9F6, texte #22303C, texte atténué #5F6B76,
   bordures #E6E0D8. Accent sdMPLS turquoise #0F9B8E (texte #0B7A70),
   SD-WAN ambre #E8A33D (texte #9A6400), MPLS gris ardoise #7A7F87.
   Le code couleur MPLS gris / SD-WAN ambre / sdMPLS turquoise est constant
   dans tous les comparatifs et schémas.
   Typographie : Manrope (titres) et Figtree (texte) via Google Fonts, avec
   pile de secours system-ui. Aucune autre dépendance externe.
   ========================================================================== */

:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --bg-alt: #fbf9f6;
  --text: #22303c;
  --text-muted: #5f6b76;
  --navy: #0b2545;
  --navy-2: #071a33;
  --navy-soft: #163a6b;
  --accent: #0f9b8e;
  --accent-text: #0b7a70;
  --accent-soft: #dff2ef;
  --accent-light: #7fd9cf;
  --mpls: #7a7f87;
  --mpls-soft: #eeeeef;
  --sdwan: #e8a33d;
  --sdwan-text: #9a6400;
  --sdwan-soft: #fbeedb;
  --border: #e6e0d8;
  --warn-bg: #fdf6e3;
  --warn-border: #e8a33d;
  --warn-text: #7a4f00;
  --error: #b42318;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.05), 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-hover: 0 2px 4px rgba(11, 37, 69, 0.06), 0 14px 34px rgba(11, 37, 69, 0.12);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1160px;
  --measure: 70ch;
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-top: 0; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
p, li, dd, .measure { max-width: var(--measure); }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
strong { color: var(--navy); font-weight: 600; }
blockquote { margin: 1.5em 0; padding: 0.9em 1.3em; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
blockquote p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
code, kbd { font-family: var(--mono); font-size: 0.92em; background: var(--bg-alt); border: 1px solid var(--border); padding: 0.1em 0.4em; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 12px 12px; z-index: 100; }
.skip-link:focus { top: 0; }

/* Marques et code couleur -------------------------------------------------- */
.brand { color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.brand sup, sup.r { font-size: 0.55em; vertical-align: super; line-height: 0; }
.c-mpls { color: var(--mpls); }
.c-sdwan { color: var(--sdwan-text); }
.c-sdmpls { color: var(--accent-text); }
.dot { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; vertical-align: -0.05em; margin-right: 0.35em; }
.dot-mpls { background: var(--mpls); }
.dot-sdwan { background: var(--sdwan); }
.dot-sdmpls { background: var(--accent); }

/* Conteneurs --------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(2.75rem, 5vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: var(--accent-light); }
.section-navy a:hover { color: #fff; }
.section-navy strong { color: #fff; }
.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head .kicker { color: var(--accent-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin-bottom: 0.5rem; }
.section-navy .kicker { color: var(--accent-light); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-muted); }
.section-navy .lead { color: #d7e0ea; }
.center { text-align: center; }
.center p, .center h2 { margin-inline: auto; }

/* Grilles et cartes -------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid > * { min-width: 0; }
.article-body .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.article-body .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { box-shadow: var(--shadow-hover); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 0.9rem; font-weight: 600; color: var(--accent-text); }
.card-mpls { border-top: 5px solid var(--mpls); }
.card-sdwan { border-top: 5px solid var(--sdwan); }
.card-sdmpls { border-top: 5px solid var(--accent); }
.card-link-block { text-decoration: none; color: inherit; }
.card-link-block:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-link-block:hover h3 { color: var(--accent-text); }
.pillar { padding: 1.9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.pillar .num { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 0.9rem; }

/* Boutons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.3;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 18px rgba(15, 155, 142, 0.28); }
.btn-primary:hover { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.section-navy .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.7); }
.section-navy .btn-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* En-tête et navigation ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.nav-toggle {
  display: none;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
  color: var(--navy); font: inherit; font-weight: 600; padding: 0.5rem 1rem; cursor: pointer;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 0.5rem; border-radius: 2px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 999px;
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: background var(--ease), color var(--ease);
}
.site-nav a:hover { background: var(--surface); color: var(--accent-text); }
.site-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.site-nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 0.5rem; padding-inline: 1.1rem; }
.site-nav a.nav-cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-hover); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.75rem 1.25rem 1rem; gap: 0.2rem; }
  .site-nav a { padding: 0.75rem 0.9rem; font-size: 1.05rem; border-radius: 12px; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: 0.4rem; text-align: center; border-radius: 999px; }
}

/* Bandeau (hero) ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
/* Forme décorative discrète : arcs et lignes de réseau (SVG en data URI, aucune requête). */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 700' preserveAspectRatio='xMaxYMid slice'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.5'%3E%3Ccircle cx='1180' cy='340' r='180'/%3E%3Ccircle cx='1180' cy='340' r='300'/%3E%3Ccircle cx='1180' cy='340' r='430'/%3E%3Ccircle cx='1180' cy='340' r='570'/%3E%3Cpath d='M1180 340 L860 120 M1180 340 L1400 60 M1180 340 L1440 520 M1180 340 L900 600 M860 120 L1400 60 M900 600 L1440 520'/%3E%3C/g%3E%3Cg fill='%230f9b8e' fill-opacity='.55'%3E%3Ccircle cx='1180' cy='340' r='7'/%3E%3Ccircle cx='860' cy='120' r='5'/%3E%3Ccircle cx='1400' cy='60' r='5'/%3E%3Ccircle cx='1440' cy='520' r='5'/%3E%3Ccircle cx='900' cy='600' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: cover;
}
.hero > .wrap { position: relative; }
.hero .kicker { color: var(--accent-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; margin-bottom: 1rem; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lead { color: #d7e0ea; max-width: var(--measure); font-size: 1.2rem; }
.hero .brand { color: var(--accent-light); }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-inner.has-figure { grid-template-columns: 1.15fr 0.85fr; } }
.hero-figure { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.page-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(2.5rem, 4.5vw, 4rem) 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(15,155,142,0.18), transparent 70%); }
.page-hero > .wrap { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #d7e0ea; }
.page-hero .kicker { color: var(--accent-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin-bottom: 0.6rem; }
.page-hero .brand { color: var(--accent-light); }
.page-hero a { color: var(--accent-light); }
.page-hero code, .hero code { background: rgba(255,255,255,0.15); border-color: transparent; color: #fff; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; color: #c3cdd8; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: #8fa1b5; }
.breadcrumb a { color: #d7e0ea; }

/* Chiffres ----------------------------------------------------------------- */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stat { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--mpls); box-shadow: var(--shadow); }
.stat .value { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); line-height: 1.1; margin-bottom: 0.4rem; }
.stat .label { display: block; color: var(--text-muted); }
.source { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }

/* Tableaux ---------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 1.5rem 0; box-shadow: var(--shadow); }
.table-scroll:focus-visible { outline: 3px solid var(--accent); }
table.compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 0.97rem; }
table.compare th, table.compare td { padding: 0.95rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
table.compare thead th { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; }
table.compare thead th.h-crit { background: var(--bg-alt); color: var(--navy); border-top-left-radius: var(--radius); }
table.compare thead th.h-mpls { background: var(--mpls); color: #fff; }
table.compare thead th.h-sdwan { background: var(--sdwan); color: #3a2a06; }
table.compare thead th.h-sdmpls { background: var(--accent); color: #fff; border-top-right-radius: var(--radius); }
table.compare tbody th { font-weight: 600; color: var(--navy); background: var(--bg-alt); width: 21%; position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--border); }
table.compare tbody tr:nth-child(even) td { background: var(--bg-alt); }
table.compare tbody tr:nth-child(even) th { background: #f5f1ea; }
table.compare td.c-mpls { color: var(--text); border-left: 4px solid var(--mpls); }
table.compare td.c-sdwan { color: var(--text); border-left: 4px solid var(--sdwan); }
table.compare td.c-sdmpls { color: var(--text); border-left: 4px solid var(--accent); background: #edf7f5; font-weight: 500; }
table.compare tbody tr:nth-child(even) td.c-sdmpls { background: #e6f3f0; }
table.compare td, table.compare th { max-width: none; }
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0 1rem; }
table.simple { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.simple th, table.simple td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.simple thead th { background: var(--bg-alt); color: var(--navy); font-family: var(--font-head); font-weight: 800; }
table.simple tbody tr:nth-child(even) td, table.simple tbody tr:nth-child(even) th { background: var(--bg-alt); }
table.simple tr:last-child td, table.simple tr:last-child th { border-bottom: 0; }
table.simple td, table.simple th { max-width: none; }

/* Accordéons -------------------------------------------------------------- */
details.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.8rem; box-shadow: var(--shadow); transition: box-shadow var(--ease); }
details.faq:hover { box-shadow: var(--shadow-hover); }
details.faq summary { cursor: pointer; padding: 1.05rem 1.4rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-radius: var(--radius); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; flex-shrink: 0; width: 0.7rem; height: 0.7rem; margin-right: 0.2rem;
  border-right: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text);
  transform: rotate(45deg); transition: transform 0.25s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq[open] summary { border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
details.faq .faq-body { padding: 1.1rem 1.4rem 1.35rem; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* Page longue avec sommaire latéral ---------------------------------------- */
.layout-toc { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.layout-toc > * { min-width: 0; }
@media (min-width: 1000px) { .layout-toc { grid-template-columns: 250px minmax(0, 1fr); } }
.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: 92px; max-height: calc(100vh - 104px); overflow: auto; } }
.toc details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.toc summary { padding: 0.9rem 1.1rem; font-family: var(--font-head); font-weight: 800; color: var(--navy); cursor: pointer; }
@media (min-width: 1000px) { .toc summary { pointer-events: none; list-style: none; } .toc summary::-webkit-details-marker { display: none; } }
.toc ol { list-style: none; margin: 0; padding: 0 0.6rem 0.7rem; counter-reset: toc; }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.5rem 0.7rem; color: var(--text-muted); text-decoration: none; border-left: 3px solid transparent; font-size: 0.95rem; border-radius: 0 10px 10px 0; transition: background var(--ease), color var(--ease); }
.toc a::before { counter-increment: toc; content: counter(toc) ". "; color: var(--accent-text); font-weight: 600; }
.toc a:hover { color: var(--navy); background: var(--bg-alt); }
.toc a.is-active { color: var(--navy); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.article-body section { padding-top: 0.5rem; margin-bottom: 3rem; scroll-margin-top: 94px; }
.article-body h2 { padding-top: 0.5rem; }
[id] { scroll-margin-top: 94px; }

/* Encadrés ---------------------------------------------------------------- */
.callout { border: 1px solid var(--border); border-left: 5px solid var(--accent); background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.callout h3, .callout h4 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-color: var(--navy); }
.callout-navy h3, .callout-navy h4, .callout-navy strong { color: #fff; }
.callout-navy a { color: var(--accent-light); }
.copy-box { position: relative; background: var(--surface); border: 1px dashed var(--mpls); border-radius: var(--radius); padding: 1.3rem 1.5rem 3.4rem; margin: 1.5rem 0; }
.copy-box p { margin: 0; }
.copy-box .copy-btn { position: absolute; right: 0.9rem; bottom: 0.85rem; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 0.45rem 0.95rem; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background var(--ease); }
.copy-box .copy-btn:hover { background: var(--accent); color: #fff; }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.two-col .col { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.two-col .col-client { border-top: 5px solid var(--accent); }
.two-col .col-ope { border-top: 5px solid var(--navy); }
.a-completer {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.97rem;
}
.a-completer::before { content: "À compléter par Flex.eu : "; font-weight: 700; }
.a-completer p { margin: 0; max-width: none; display: inline; }
.soon { border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); padding: 1.6rem; text-align: center; color: var(--text-muted); }
.soon strong { display: block; color: var(--navy); margin-bottom: 0.3rem; }

/* Figures et schémas ------------------------------------------------------- */
figure { margin: 1.5rem 0; }
figure.schema { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
figure.schema img { display: block; width: 100%; height: auto; }
figcaption { font-size: 0.92rem; color: var(--text-muted); margin-top: 0.8rem; max-width: var(--measure); }
.badge-preview { display: inline-block; background: var(--surface); padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.badge-preview img { display: block; height: 64px; width: auto; }

/* Termes du glossaire (infobulle) ----------------------------------------- */
a.terme { color: inherit; text-decoration: underline dotted var(--accent-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; position: relative; }
a.terme:hover, a.terme:focus { color: var(--accent-text); }
a.terme[data-tip]:hover::after, a.terme[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute; left: 0; top: calc(100% + 6px);
  z-index: 20; width: max-content; max-width: min(320px, 80vw);
  background: var(--navy); color: #fff; font-size: 0.85rem; line-height: 1.4; font-weight: 400;
  padding: 0.65rem 0.9rem; border-radius: 10px; box-shadow: var(--shadow-hover); text-align: left; white-space: normal;
}
dl.glossaire dt { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; padding-top: 1.25rem; border-top: 1px solid var(--border); margin-top: 1rem; }
dl.glossaire dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
dl.glossaire dt .abbr { font-family: var(--font); color: var(--text-muted); font-weight: 400; font-size: 0.95rem; }
dl.glossaire dd { margin: 0.4rem 0 0; }
dl.glossaire dd .more { display: block; margin-top: 0.4rem; font-size: 0.95rem; }
.alpha-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 2rem; }
.alpha-nav a { display: inline-block; padding: 0.35rem 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: background var(--ease), border-color var(--ease); }
.alpha-nav a:hover { background: var(--accent-soft); border-color: var(--accent); }

/* Formulaires -------------------------------------------------------------- */
form.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
form.form fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
form.form legend { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-bottom: 0.9rem; padding: 0; letter-spacing: -0.01em; }
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
.field .hint { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.95rem; border: 1.5px solid #cfc7bc; border-radius: 12px; font: inherit; color: var(--text); background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,155,142,0.15); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field .error { display: none; color: var(--error); font-size: 0.9rem; margin-top: 0.35rem; }
.field.has-error .error { display: block; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.check input { margin-top: 0.35rem; width: 1.15rem; height: 1.15rem; flex-shrink: 0; accent-color: var(--accent); }
.check label { font-weight: 400; max-width: var(--measure); }
.radio-list { display: grid; gap: 0.5rem; }
.radio-list label { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; }
.radio-list input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.form-note { font-size: 0.9rem; color: var(--text-muted); }
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.form-status.is-ok { display: block; background: var(--accent-soft); border-color: var(--accent); color: var(--navy); }
.form-status.is-error { display: block; background: #fdebe9; border-color: var(--error); color: #7a271a; }
.form-status p:last-child { margin-bottom: 0; }
.required-mark { color: var(--error); }

/* Carte des partenaires (Leaflet + OpenStreetMap, partenaires.html) -------- */
.carte-osm { position: relative; z-index: 0; height: 560px; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: #e9e4dc; overflow: hidden; isolation: isolate; }
.carte-osm.leaflet-container { font-family: var(--font); font-size: 0.8rem; }
.carte-osm:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.carte-osm .leaflet-control-attribution { background: rgba(255, 255, 255, 0.85); color: var(--text-muted); font-size: 0.72rem; padding: 0.15rem 0.5rem; }
.carte-osm .leaflet-control-attribution a { color: var(--accent-text); }
.carte-osm .leaflet-bar a { color: var(--navy); }
.carte-noscript { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(1rem, 4vw, 2.5rem); background: var(--surface); }
.carte-noscript p { max-width: var(--measure); }
.carte-noscript p:last-child { margin-bottom: 0; }
.carte-note { color: var(--text-muted); font-size: 0.88rem; margin: 0.8rem 0 1.75rem; }
.carte-outils { align-items: start; }
.carte-filtre[hidden] { display: none; }
.carte-filtre label { font-weight: 600; color: var(--navy); display: block; margin-bottom: 0.35rem; }
.carte-filtre-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.carte-filtre select { padding: 0.65rem 0.9rem; border: 1.5px solid #cfc7bc; border-radius: 12px; font: inherit; min-width: 240px; max-width: 100%; background: #fff; color: var(--text); }
.carte-filtre select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.annuaire-count { color: var(--text-muted); font-size: 0.95rem; margin: 0.9rem 0 0; min-height: 1.4em; }
.carte-cta h3 { font-size: 1.15rem; }
.carte-cta .btn { margin-top: 0.4rem; }
/* Marqueurs isolés : infobulle */
.leaflet-tooltip.tip-partenaire { background: var(--navy); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 0.4rem 0.7rem; font-family: var(--font); font-size: 0.82rem; font-weight: 500; box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25); }
.leaflet-tooltip-top.tip-partenaire::before { border-top-color: var(--navy); }
.leaflet-tooltip-bottom.tip-partenaire::before { border-bottom-color: var(--navy); }
.leaflet-tooltip-left.tip-partenaire::before { border-left-color: var(--navy); }
.leaflet-tooltip-right.tip-partenaire::before { border-right-color: var(--navy); }
/* Groupes (clusters) : surcharge de MarkerCluster.Default.css aux couleurs du site */
.carte-osm .marker-cluster { background-clip: padding-box; border-radius: 50%; background-color: rgba(15, 155, 142, 0.28); }
.carte-osm .marker-cluster div { width: 30px; height: 30px; margin: 5px; text-align: center; border-radius: 50%; background-color: var(--accent); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(11, 37, 69, 0.3); font-family: var(--font-head); font-weight: 800; font-size: 13px; line-height: 26px; }
.carte-osm .marker-cluster span { line-height: 26px; }
.carte-osm .marker-cluster-medium { background-color: rgba(11, 122, 112, 0.3); }
.carte-osm .marker-cluster-medium div { background-color: var(--accent-text); }
.carte-osm .marker-cluster-large { background-color: rgba(11, 37, 69, 0.3); }
.carte-osm .marker-cluster-large div { background-color: var(--navy); font-size: 14px; }
@media (max-width: 700px) {
  .carte-osm { height: 420px; }
}

/* Blog ---------------------------------------------------------------------- */
.post-list { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.post-meta { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.5rem; }
.article { max-width: var(--measure); margin-inline: auto; }
.article h2 { margin-top: 2.4rem; font-size: 1.55rem; }
.article h3 { margin-top: 1.7rem; }
.article .chapo { font-size: 1.2rem; color: var(--text-muted); }
.article-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article-footer { margin-top: 2.5rem; padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.82rem; font-weight: 600; margin-right: 0.3rem; }

/* Pied de page ------------------------------------------------------------ */
.site-footer { background: var(--navy-2); color: #c9d3de; padding: 3.5rem 0 2rem; margin-top: 3rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 2rem; }
.site-footer h2 { font-family: var(--font); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-light); margin-bottom: 0.9rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .logo img { height: 30px; }
.site-footer .footer-flex { margin-top: 0.8rem; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; font-size: 0.85rem; color: #9fb0c2; }
.footer-bottom p { margin: 0; max-width: none; }

/* Utilitaires -------------------------------------------------------------- */
.mt-1 { margin-top: 0.8rem; }
.kicker-std { color: var(--accent-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin-bottom: 0.5rem; }
table[data-minw="640"] { min-width: 640px; } table[data-minw="720"] { min-width: 720px; }
form[data-narrow] { max-width: 860px; margin: 0 auto; }
.btn-row[data-center] { justify-content: center; }
.grid[data-align="center"] { align-items: center; }
.badge-lg { height: 96px; width: auto; }
.card-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-color: var(--navy); }
.card-navy h3, .card-navy strong { color: #fff; }
.card-navy a { color: var(--accent-light); }
.img-logo { margin: 1rem auto; }
.img-badge-sm { margin: 1rem auto; height: 56px; width: auto; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.small { font-size: 0.9rem; color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; margin-bottom: 1.2rem; max-width: var(--measure); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }

/* Page 404 / merci ---------------------------------------------------------- */
.page-simple { min-height: 50vh; }
.code-404 { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--accent); letter-spacing: -0.04em; margin: 0 0 0.5rem; }

/* Mouvement réduit ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .card-link-block:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .toc, .carte-osm, .carte-filtre { display: none !important; }
  body { font-size: 11pt; background: #fff; }
  a { color: inherit; text-decoration: none; }
}

/* --------------------------------------------------------------------------
   PRODUCTION : masquer les blocs « À compléter par Flex.eu » non renseignés.
   Décommenter la règle ci-dessous avant la mise en ligne (voir README_DEPLOIEMENT.md).
   -------------------------------------------------------------------------- */
/* .a-completer { display: none !important; } */
