/* ==========================================================================
   QORSEC — pages générales du site v3
   /outils/ (hub) · /offres.html · /a-propos.html · /contact.html
   /confidentialite.html · /mentions-legales.html
   --------------------------------------------------------------------------
   Chargé APRÈS site.css, uniquement par ces pages :
     <link rel="stylesheet" href="/assets/css/pages.css?v=1">
   Toutes les classes sont préfixées .pg- pour ne jamais entrer en collision
   avec le système de design. Les couleurs viennent des jetons de site.css.
   SOMMAIRE
     01. En-tête de page (héros compact)
     02. Hub des outils : filtres, recherche, cartes, flux de données
     03. Blocs communs : points, étapes, encadrés
     04. Offres : cartes, tableau comparatif
     05. À propos : expertises, état des produits
     06. Contact : coordonnées, motifs
     07. Pages juridiques : sommaire, texte
     08. Mouvement réduit, impression
   ========================================================================== */

/* ==========================================================================
   01. EN-TÊTE DE PAGE
   ========================================================================== */
.pg-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); max-width: 18ch; margin: 18px 0 18px; }
.pg-hero--legal h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); max-width: 22ch; }
.pg-hero .breadcrumb { margin-bottom: 4px; }
.pg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pg-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; font-size: .86rem; color: #93a4c8; }
.pg-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.pg-hero__meta svg { width: 16px; height: 16px; color: var(--cyan-300); flex: none; }
@media (max-width: 960px) { .pg-hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* Chiffres-clés dans un héros sombre */
.pg-hero .stats { margin-top: 30px; max-width: 640px; background: rgba(173, 196, 255, .14); border-color: rgba(173, 196, 255, .14); }
.pg-hero .stat { background: rgba(10, 22, 51, .82); padding: 16px 18px; }
.pg-hero .stat__value { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.pg-hero .stat__label { color: #aab7d4; font-size: .84rem; margin-top: 8px; }
@media (max-width: 420px) { .pg-hero .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pg-hero .stat { padding: 14px 12px; } .pg-hero .stat__label { font-size: .76rem; } }

/* ==========================================================================
   02. HUB DES OUTILS
   ========================================================================== */
/* Panneau « où vont vos données » du héros */
.pg-flow {
  position: relative; border-radius: var(--r-xl); padding: 20px;
  background: linear-gradient(180deg, rgba(20, 38, 86, .74), rgba(10, 22, 51, .84));
  border: 1px solid rgba(173, 196, 255, .18);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pg-flow__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(173, 196, 255, .14); }
.pg-flow__title { margin: 0; font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.pg-flow__sub { margin: 2px 0 0; font-size: .8rem; color: #93a4c8; }
.pg-flow__list { list-style: none; margin: 0; padding: 0; }
.pg-flow__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed rgba(173, 196, 255, .12); font-size: .9rem; color: #dbe3f4; }
.pg-flow__list li:last-child { border-bottom: 0; }
.pg-flow__list a { color: inherit; text-decoration: none; font-weight: 600; }
.pg-flow__list a:hover { color: #fff; text-decoration: underline; }
.pg-flow__tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.pg-flow__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pg-flow__tag--local { color: var(--green-300); background: rgba(34, 197, 94, .12); border: 1px solid rgba(134, 239, 172, .28); }
.pg-flow__tag--net { color: var(--cyan-300); background: rgba(14, 165, 233, .12); border: 1px solid rgba(125, 211, 252, .28); }
.pg-flow__foot { margin: 12px 0 0; font-size: .78rem; color: #8494b6; line-height: 1.5; }
@media (max-width: 420px) { .pg-flow { padding: 16px; } .pg-flow__list li { font-size: .85rem; } }
/* Étiquette longue (« Domaine → DNS public… ») : elle passe à la ligne au lieu de déborder du panneau à 375 px. */
.pg-flow__list li > a { flex: none; }
.pg-flow__tag--net { flex: 0 1 auto; min-width: 0; white-space: normal; line-height: 1.35; text-align: left; }

/* Barre de filtres (masquée sans JavaScript : toutes les cartes restent visibles) */
.pg-filters { display: none; }
.js .pg-filters { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); align-items: center; margin-bottom: 14px; }
.pg-filters__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px;
  border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--white);
  color: var(--ink-700); font-weight: 700; font-size: .9rem; line-height: 1.2;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.pg-filter:hover { border-color: var(--blue-600); color: var(--blue-700); }
.pg-filter[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 8px 20px -10px rgba(16, 33, 75, .7); }
.pg-filter__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 800; background: var(--paper-50); color: var(--ink-500); }
.pg-filter[aria-pressed="true"] .pg-filter__n { background: rgba(255, 255, 255, .16); color: #fff; }
.pg-search { position: relative; }
.pg-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.pg-search input {
  width: 100%; min-height: 44px; padding: 10px 14px 10px 42px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--white); color: var(--ink-900); font-size: .98rem;
}
.pg-search input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 78, 216, .15); }
.pg-search input::placeholder { color: #8391ab; }
.pg-count { margin: 0 0 22px; font-size: .88rem; color: var(--fg-subtle); min-height: 1.4em; }
@media (max-width: 760px) { .js .pg-filters { grid-template-columns: minmax(0, 1fr); } }
@media (pointer: coarse), (max-width: 760px) { .pg-filter { min-height: 44px; } .pg-toc a { min-height: 44px; align-items: center; } .pg-flow__list li > a { padding-block: 11px; margin-block: -11px; } }
@media (max-width: 520px) {
  .pg-filters__cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .pg-filters__cats::-webkit-scrollbar { display: none; }
  .pg-filter { flex: none; }
}

/* Grille et cartes d'outils */
.pg-tools { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .pg-tools { grid-template-columns: minmax(0, 1fr); } }
.pg-tool { gap: 14px; }
.pg-tool__top { display: flex; align-items: center; gap: 14px; }
.pg-tool__top .icon-tile { width: 52px; height: 52px; }
.pg-tool__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pg-tool__kicker .card__kicker { font-size: .72rem; }
.pg-tool h3 { font-size: 1.22rem; }
.pg-tool__out { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pg-tool__out li { font-size: .86rem; color: var(--fg-muted); line-height: 1.45; padding-left: 22px; position: relative; flex: 1 1 100%; }
.pg-tool__out li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(140deg, var(--blue-600), var(--cyan-500)); opacity: .8; }
.pg-tool__data {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 2px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: .84rem; line-height: 1.45; color: var(--ink-700); background: var(--paper-50); border: 1px solid var(--border);
}
.pg-tool__data svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pg-tool__data--local svg { color: var(--green-700); }
.pg-tool__data--net svg { color: var(--cyan-700); }
.pg-tool__data strong { color: var(--ink-900); }
.pg-tool .card__foot { padding-top: 4px; }
.pg-tool__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .92rem; color: var(--blue-600); }
.pg-tool__go svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.pg-tool:hover .pg-tool__go svg { transform: translateX(4px); }
.pg-tool[hidden] { display: none !important; }
.pg-tool.is-match { animation: pg-pop .45s var(--ease-out); }
@keyframes pg-pop { from { opacity: 0; transform: translateY(6px) scale(.99); } }

.pg-empty { padding: 32px 20px; text-align: center; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); background: var(--white); color: var(--fg-muted); }
.pg-empty strong { display: block; color: var(--fg); font-size: 1.05rem; margin-bottom: 4px; }

/* ==========================================================================
   03. BLOCS COMMUNS
   ========================================================================== */
/* Points numérotés ou à icône */
.pg-points { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .pg-points--4, .pg-points--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pg-points, .pg-points--3, .pg-points--4 { grid-template-columns: minmax(0, 1fr); } }
.pg-point { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.section:not(.section--dark) .pg-point { box-shadow: var(--sh-1); }
.pg-point h3 { margin: 4px 0 0; font-size: 1.12rem; }
.pg-point p { margin: 0; color: var(--fg-muted); font-size: .96rem; }
.pg-point__code { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: rgba(2, 8, 24, .55); border: 1px solid var(--border); font-family: var(--mono); font-size: .78rem; color: var(--cyan-300); line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.section:not(.section--dark) .pg-point__code { background: var(--navy-900); color: var(--cyan-300); }

/* Étapes horizontales */
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: pg-step; }
.pg-steps li { position: relative; padding: 22px 22px 22px 70px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); counter-increment: pg-step; }
.pg-steps li::before {
  content: counter(pg-step); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--blue-600), var(--cyan-500));
}
.pg-steps strong { display: block; color: var(--fg); margin-bottom: 4px; }
.pg-steps span { color: var(--fg-muted); font-size: .94rem; }
@media (max-width: 900px) { .pg-steps { grid-template-columns: minmax(0, 1fr); } }

/* Encadré de vérification (« vérifiez-le vous-même ») */
.pg-verify { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(14, 165, 233, .07); border: 1px solid rgba(125, 211, 252, .22); }
.pg-verify svg { width: 26px; height: 26px; color: var(--cyan-300); }
.pg-verify strong { display: block; color: var(--fg); margin-bottom: 4px; }
.pg-verify p { margin: 0; color: var(--fg-muted); font-size: .95rem; }
.pg-verify kbd { font-family: var(--mono); font-size: .82em; padding: .1em .45em; border-radius: 5px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .06); color: var(--fg); }

/* Feuille de route (outils envisagés) */
.pg-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-next li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--border-strong); color: var(--fg); font-weight: 600; font-size: .95rem; }

/* ==========================================================================
   04. OFFRES
   ========================================================================== */
.pg-plans { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 960px) { .pg-plans { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; } }
.pg-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.pg-plan--featured { border-color: rgba(29, 78, 216, .4); box-shadow: 0 0 0 1px rgba(29, 78, 216, .14), var(--sh-3); }
.pg-plan--featured::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--cyan-500), var(--blue-600)); }
.pg-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pg-plan__name { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--data); }
.pg-plan h3 { margin: 0; font-size: 1.35rem; }
.pg-plan__for { margin: 0; font-size: .9rem; color: var(--fg-subtle); }
.pg-plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--border); }
.pg-plan__price b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink-900); line-height: 1.1; }
.pg-plan__price small { font-size: .86rem; color: var(--fg-subtle); }
.pg-plan__limits { margin: 0; font-size: .86rem; color: var(--fg-subtle); padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper-50); border: 1px dashed var(--border-strong); }
.pg-plan .btn { margin-top: auto; }

/* Tableau comparatif */
.pg-compare-wrap { position: relative; }
.pg-compare { min-width: 720px; }
.pg-compare thead th { position: sticky; top: 0; z-index: 2; font-size: .78rem; vertical-align: bottom; padding-top: 16px; padding-bottom: 14px; }
.pg-compare thead th .status { margin-top: 8px; letter-spacing: .02em; text-transform: none; }
.pg-compare thead th span.pg-col { display: block; font-size: 1rem; letter-spacing: -.01em; text-transform: none; color: var(--ink-900); }
.pg-compare th[scope="row"] { font-size: .93rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-900); background: var(--white); white-space: normal; width: 34%; }
.pg-compare td { width: 22%; color: var(--ink-700); }
.pg-compare tbody tr.pg-group th { background: var(--paper-50); color: var(--data); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding-top: 18px; }
.pg-compare tbody tr.pg-group:hover th { background: var(--paper-50); }
.pg-compare .pg-featured { background: rgba(29, 78, 216, .035); }
.pg-compare th.pg-featured { background: #eef3ff; }
.pg-yes, .pg-no { display: inline-flex; align-items: center; gap: 8px; }
.pg-yes svg, .pg-no svg { width: 18px; height: 18px; flex: none; }
.pg-yes svg { color: var(--green-700); }
.pg-no svg { color: var(--ink-400); }
.pg-no { color: var(--fg-subtle); }
.pg-yes small, .pg-no small, .pg-compare td small { display: block; font-size: .8rem; color: var(--fg-subtle); }
.pg-compare td .pg-yes small { display: inline; }
@media (max-width: 760px) {
  .pg-compare th[scope="row"] { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--border); }
  .pg-compare thead th:first-child { position: sticky; left: 0; z-index: 3; }
  /* Mobile : colonne des libellés étroite pour voir au moins une formule et demie sans faire défiler. */
  .pg-compare { min-width: 590px; }
  .pg-compare th[scope="row"] { width: 140px; min-width: 140px; max-width: 140px; font-size: .84rem; padding-left: 12px; padding-right: 10px; }
  .pg-compare thead th:first-child { width: 140px; min-width: 140px; }
  .pg-compare td { font-size: .88rem; }
  .pg-compare tbody tr.pg-group th { font-size: .7rem; letter-spacing: .06em; padding-left: 12px; }
}
.pg-scroll-hint { display: none; margin: 10px 0 0; font-size: .82rem; color: var(--fg-subtle); }
@media (max-width: 760px) { .pg-scroll-hint { display: block; } }

/* FAQ en deux colonnes */
.pg-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .pg-faq { grid-template-columns: minmax(0, 1fr); } .pg-faq__aside { position: static; } }
.accordion__body p + p { margin-top: .7em; }

/* ==========================================================================
   05. À PROPOS
   ========================================================================== */
/* « Nos expertises » : voir la fin du fichier (.pg-xp). */

/* État des produits */
.pg-state { display: grid; gap: 10px; }
.pg-state__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.pg-state__row h3 { margin: 0; font-size: 1.05rem; }
.pg-state__row h3 small { font-weight: 600; color: var(--fg-subtle); font-size: .82rem; margin-left: 6px; }
.pg-state__row p { grid-column: 1 / -1; margin: 0; font-size: .93rem; color: var(--fg-muted); }
.pg-state__row .status { justify-self: end; }
@media (max-width: 520px) { .pg-state__row { grid-template-columns: minmax(0, 1fr); } .pg-state__row .status { justify-self: start; } }
.pg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .82rem; color: var(--fg-subtle); }
.pg-legend > span { display: inline-flex; align-items: center; gap: 8px; }

.pg-quote { margin: 0; padding: 26px 28px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.45; color: var(--fg); }
.pg-quote footer { margin-top: 12px; font-size: .86rem; font-weight: 600; color: var(--fg-subtle); letter-spacing: 0; }

/* ==========================================================================
   06. CONTACT
   ========================================================================== */
.pg-contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .pg-contact { grid-template-columns: minmax(0, 1fr); } .pg-contact__side { order: 2; } }
.pg-contact__side { display: grid; gap: 16px; }
.pg-coord { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-coord li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.pg-coord .icon-tile { width: 42px; height: 42px; border-radius: 10px; }
.pg-coord .icon-tile svg { width: 20px; height: 20px; }
.pg-coord b { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-subtle); }
.pg-coord a, .pg-coord span.pg-coord__v { font-weight: 700; color: var(--ink-900); overflow-wrap: anywhere; }
.pg-coord a { text-decoration: none; }
.pg-coord a:hover { color: var(--blue-600); text-decoration: underline; }

.pg-motifs { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.pg-motifs legend { padding: 0; margin-bottom: 10px; font-size: .88rem; font-weight: 700; color: var(--fg); }
.pg-motifs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 680px) { .pg-motifs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-motif { position: relative; display: block; cursor: pointer; }
.pg-motif input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pg-motif > span {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--white); font-weight: 700; font-size: .9rem; color: var(--ink-900); line-height: 1.3;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.pg-motif svg { width: 20px; height: 20px; color: var(--blue-600); }
.pg-motif:hover > span { border-color: var(--blue-600); }
.pg-motif input:checked + span { border-color: var(--blue-600); background: #eef3ff; box-shadow: 0 0 0 3px rgba(29, 78, 216, .16); }
.pg-motif input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.pg-motif__hint { margin: 10px 0 0; font-size: .82rem; color: var(--fg-subtle); min-height: 1.3em; }

.pg-formcard { padding: clamp(18px, 2.5vw, 28px); border-radius: var(--r-xl); background: var(--paper-50); border: 1px solid var(--border); }
.pg-formcard .contact-form { box-shadow: var(--sh-1); }
.pg-formnote { margin: 14px 4px 0; font-size: .8rem; line-height: 1.55; color: var(--fg-subtle); }

/* ==========================================================================
   07. PAGES JURIDIQUES
   ========================================================================== */
.pg-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .pg-legal { grid-template-columns: minmax(0, 1fr); } }
.pg-toc { position: sticky; top: calc(var(--header-h) + 28px); padding: 18px; border-radius: var(--r-lg); background: var(--paper-50); border: 1px solid var(--border); }
.pg-toc p { margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-subtle); }
.pg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: pg-toc; }
.pg-toc li { counter-increment: pg-toc; }
.pg-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-700); text-decoration: none; line-height: 1.35; }
.pg-toc a::before { content: counter(pg-toc, decimal-leading-zero); font-family: var(--mono); font-size: .76rem; color: var(--ink-400); padding-top: .12em; }
.pg-toc a:hover, .pg-toc a.is-current { background: var(--white); color: var(--blue-600); box-shadow: var(--sh-1); }
@media (max-width: 960px) { .pg-toc { position: static; } .pg-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pg-toc ol { grid-template-columns: minmax(0, 1fr); } }

.pg-doc { max-width: 76ch; }
.pg-doc > section { padding-top: 8px; scroll-margin-top: calc(var(--header-h) + 20px); }
.pg-doc > section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.pg-doc h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin: 0 0 14px; }
.pg-doc h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.pg-doc p, .pg-doc li { color: var(--ink-700); }
.pg-doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.pg-doc li { margin: .35em 0; }
.pg-doc li::marker { color: var(--cyan-700); }
.pg-doc .table-wrap { margin: 14px 0 18px; }
.pg-doc .table td { color: var(--ink-700); }
.pg-doc .table code { white-space: nowrap; }
.pg-doc .alert { margin: 16px 0; }

.pg-summary { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 8px; }
@media (max-width: 640px) { .pg-summary { grid-template-columns: minmax(0, 1fr); } }
.pg-summary > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border-radius: var(--r-md); background: var(--paper-50); border: 1px solid var(--border); }
.pg-summary svg { width: 22px; height: 22px; color: var(--cyan-700); margin-top: 2px; }
.pg-summary strong { display: block; color: var(--ink-900); font-size: .98rem; margin-bottom: 2px; }
.pg-summary p { margin: 0; overflow-wrap: anywhere; font-size: .9rem; color: var(--fg-muted); }

.pg-facts { margin: 0 0 1em; display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.pg-facts dt, .pg-facts dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.pg-facts dt { font-weight: 700; color: var(--ink-900); background: var(--paper-50); }
.pg-facts dd { color: var(--ink-700); overflow-wrap: anywhere; }
.pg-facts dt:nth-last-of-type(1), .pg-facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .pg-facts { grid-template-columns: minmax(0, 1fr); } .pg-facts dt { border-bottom: 0; padding-bottom: 2px; } .pg-facts dd { padding-top: 2px; } }
.pg-updated { margin-top: 28px; font-size: .86rem; color: var(--fg-subtle); }

/* ==========================================================================
   08. MOUVEMENT RÉDUIT, IMPRESSION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .pg-tool.is-match { animation: none; }
  .pg-tool:hover .pg-tool__go svg { transform: none; }
}
@media print {
  .pg-toc, .pg-filters, .pg-motifs, .pg-formcard { display: none !important; }
  .pg-legal { display: block; }
  .pg-doc { max-width: none; }
}

/* Panneau du héros : libellé sur deux lignes (offres, à propos) */
.pg-flow__list a small { display: block; margin-top: 2px; font-size: .76rem; font-weight: 500; color: #93a4c8; }
.pg-flow__list li > .status { flex: none; }
.pg-flow__foot a { color: var(--cyan-300); font-weight: 700; text-decoration: none; }
.pg-flow__foot a:hover { text-decoration: underline; }

/* Tableau empilé en cartes sur mobile (confidentialité : données qui quittent le poste) */
@media (max-width: 640px) {
  .pg-doc .table-wrap:has(.pg-table-stack) { overflow: visible; border: 0; background: none; }
  .pg-table-stack, .pg-table-stack tbody, .pg-table-stack tr, .pg-table-stack td { display: block; width: 100%; }
  .pg-table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pg-table-stack tr { margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
  .pg-table-stack td { border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .pg-table-stack tr td:last-child { border-bottom: 0; }
  .pg-table-stack td:first-child { font-weight: 800; color: var(--ink-900); background: var(--surface-2); }
  .pg-table-stack td[data-label-fr]::before { content: attr(data-label-fr); display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle); }
  html[lang="en"] .pg-table-stack td[data-label-en]::before { content: attr(data-label-en); }
  .pg-doc .pg-table-stack code { white-space: normal; overflow-wrap: anywhere; }
}

/* À propos : « Nos expertises » (5 domaines, sans chiffre ni nom). Grille 6 colonnes : 2 grandes cartes puis 3. */
.pg-xp { display: grid; gap: var(--s-4); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pg-xp__card { grid-column: span 2; }
.pg-xp__card:nth-child(-n+2) { grid-column: span 3; }
.pg-xp__card > .pg-xp__bar { position: absolute; z-index: 2; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-600), var(--cyan-500)); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + .25s); }
.pg-xp__card.in > .pg-xp__bar, html:not(.js) .pg-xp__bar { transform: scaleX(1); }
.pg-xp__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-xp__num { font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--fg-subtle); }
.pg-xp__card h3 { font-size: 1.14rem; line-height: 1.3; }
.pg-xp__card p { font-size: .96rem; }
.pg-xp__chips { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-xp__chips .chip { white-space: normal; }
.pg-xp__note { margin: var(--s-5) auto 0; max-width: 760px; text-align: center; font-size: var(--fs-small); color: var(--fg-subtle); }
@media (max-width: 1024px) {
  .pg-xp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-xp__card, .pg-xp__card:nth-child(-n+2) { grid-column: auto; }
  .pg-xp__card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pg-xp { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pg-xp__card > .pg-xp__bar { transition: none; transform: scaleX(1); } }
