/* ==========================================================================
   ALTENSIA — BETA 5
   Base : la BETA 2 (mise en page, couleurs bleu nuit / orange, récit au défilement, sceau 3D).
   Ajouts : typographie façon Stripe (Inter Tight, poids 300, interlettrage resserré, chiffres
   tabulaires), effets de survol très animés et effets de défilement (js/beta5.js).
   Chargé après styles.css sur toutes les pages. Les couleurs restent celles de la BETA 2.
   ========================================================================== */

:root {
  --police: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rayon: 4px;
  --b5-ease: cubic-bezier(.2, .7, .1, 1);
  --b5-ressort: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Typographie ---------- */
body {
  font-weight: 300; letter-spacing: -0.01em; line-height: 1.55;
  font-feature-settings: "ss01" on, "tnum" on; -webkit-font-smoothing: antialiased;
}
h1, h2, .alt-title { font-weight: 300 !important; letter-spacing: -0.025em; line-height: 1.06; }
h1 { letter-spacing: -0.03em; line-height: 1.03; font-size: clamp(2.3rem, 4.4vw + .4rem, 4rem); }
h2 { font-size: clamp(1.9rem, 2.8vw + .5rem, 3.1rem); }
h3, h4 { font-weight: 400 !important; letter-spacing: -0.01em; }
strong, b { font-weight: 500; }
.hero h1 { font-size: clamp(2.1rem, 3.2vw + .7rem, 3.7rem); line-height: 1.04; letter-spacing: -0.03em; }
.hero-page h1 { letter-spacing: -0.03em; }
/* accroche sous le titre de l'accueil (entre le h1 et l'intro) */
.hero .hero-sous-titre { margin: 16px 0 14px; color: var(--blanc); font-size: clamp(1.25rem, 1.1vw + .95rem, 1.75rem); line-height: 1.25; font-weight: 300; letter-spacing: -0.02em; }
.entete-section p, .hero .intro, .hero-page .intro, .alt-intro { font-size: clamp(1.05rem, .6vw + .9rem, 1.3rem); line-height: 1.45; letter-spacing: -0.012em; }
.metier-texte p { font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); line-height: 1.55; }
.metier-texte p:first-child { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); font-weight: 300; line-height: 1.35; letter-spacing: -0.02em; }
.metier-conclusion { font-weight: 400 !important; }

/* libellés : petites capitales espacées, poids 400 */
.surtitre, .probleme .num, .domaine .etiquette, .projet .secteur, .article .meta, .alt-kicker, .hero .signature,
.sous-menu .accroche, .pied h4, .logo3d-legende {
  font-weight: 400 !important; font-size: 12px; letter-spacing: .1em;
}
.alt-cat-num, .alt-cat-name { font-weight: 300 !important; letter-spacing: -0.02em; }
.alt-label { font-weight: 400; letter-spacing: -0.005em; }
.domaine h3 { text-transform: none; letter-spacing: -0.015em; font-size: 1.45rem; }
#domaines .domaine h3 { margin-bottom: 12px; }   /* cartes sans sous-titre : un peu d'air avant la liste */.pays-item .code { font-weight: 300; font-size: 1.4rem; letter-spacing: -0.02em; }
.pied .marque strong { font-weight: 500; letter-spacing: -0.01em; }

/* navigation et boutons : poids 400, 14 px */
.nav-principale > ul > li > a { font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-size: 14px; }
.btn { font-weight: 400; font-size: 14px; letter-spacing: -0.01em; border-radius: var(--rayon); }
.lien-fleche, .reponse, .hs-lien { font-weight: 400 !important; }
.filtre, .badge-bientot { font-weight: 400; }

/* ---------- Barre de progression de lecture ---------- */
.b5-progression { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; pointer-events: none; background: var(--orange); transform-origin: left; transform: scaleX(0); }

/* ---------- En-tête : verre givré, se resserre au défilement ---------- */
.entete { background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); transition: background .3s; }
/* menu mobile ouvert : sans flou, le panneau (position: fixed) occupe toute la hauteur sous l'en-tête */
.menu-ouvert .entete { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--blanc); }
.entete .conteneur { transition: min-height .4s var(--b5-ease); }
.entete .logo img { transition: height .4s var(--b5-ease), transform .5s var(--b5-ease); }
@media (hover: hover) { .entete .logo:hover img { transform: scale(1.04); } }
.b5-compact .entete .conteneur { min-height: 64px; }
/* logo ALTENSIA de l'en-tête agrandi, en restant dans le bandeau blanc (84 px ; 72 px sous 1280 px) */
.entete .logo img { height: 74px; }
@media (max-width: 1279px) { .entete .logo img { height: 60px; } }
.b5-compact .entete .logo img { height: 54px; }
/* trait orange qui glisse sous la rubrique survolée */
.nav-principale > ul { position: relative; }
.b5-soulign { position: absolute; bottom: 2px; left: 0; height: 2px; width: 0; background: var(--orange); border-radius: 2px; opacity: 0; pointer-events: none;
  transition: transform .45s var(--b5-ease), width .45s var(--b5-ease), opacity .25s; }
.sous-menu { transform: translateY(10px) rotateX(-10deg); transform-origin: top center; transition: opacity .25s, transform .4s var(--b5-ease), visibility .25s; }
.sous-menu li a { transition: background .2s, color .2s, padding .35s var(--b5-ease); }
.sous-menu li a:hover { padding-left: 28px; }

/* ---------- Curseur (pointeur fin) ---------- */
.b5-curseur { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .b5-curseur { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 10000; }
  .b5-point, .b5-anneau { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .b5-point { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); transition: opacity .2s; }
  .b5-anneau { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid transparent; display: grid; place-items: center;
    transition: width .35s var(--b5-ease), height .35s var(--b5-ease), margin .35s var(--b5-ease), background .35s, border-color .35s; }
  /* mini tampon ALTENSIA qui suit la souris en tournant lentement */
  .b5-anneau::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: url("../assets/sceau-curseur.png") center / contain no-repeat;
    opacity: .6; animation: b5-tampon 16s linear infinite; transition: opacity .25s, transform .35s var(--b5-ease); }
  .b5-curseur.lien .b5-anneau::before { opacity: .85; }
  @keyframes b5-tampon { to { rotate: 360deg; } }
  .b5-anneau em { position: relative; font-style: normal; font-size: 11px; color: #fff; opacity: 0; transition: opacity .2s; }
  .b5-curseur.lien .b5-anneau { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .b5-curseur.lien .b5-anneau::before { animation-duration: 5s; }
  .b5-curseur.carte .b5-anneau::before { opacity: 0; }
  .b5-curseur.lien .b5-point { opacity: 0; }
  .b5-curseur.carte .b5-anneau { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--orange); border-color: var(--orange); }
  .b5-curseur.carte .b5-anneau em { opacity: 1; }
  .b5-curseur.carte .b5-point { opacity: 0; }
  .b5-curseur.appui .b5-anneau { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .b5-curseur.cache { opacity: 0; }
}

/* ---------- Boutons : aimant, remplissage depuis le curseur, reflet ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform .35s var(--b5-ease), background .25s, color .25s, border-color .25s;
}
.btn::before {   /* remplissage circulaire depuis le point d'entrée du curseur */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: circle(0% at var(--bx, 50%) var(--by, 50%)); transition: clip-path .55s var(--b5-ease);
}
.btn::after {    /* reflet qui traverse le bouton */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .75s var(--b5-ease);
}
@media (hover: hover) { .btn:hover::before { clip-path: circle(150% at var(--bx, 50%) var(--by, 50%)); } }
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); } }
.btn-orange::before { background: var(--orange-fonce); }
@media (hover: hover) { .btn-orange:hover { background: var(--orange); } }
.btn-contour::before { background: var(--bleu); }
@media (hover: hover) { .btn-contour:hover { background: transparent; } }
.btn-clair::before { background: var(--blanc); }
@media (hover: hover) { .btn-clair:hover { background: transparent; } }
.btn-situation::before { background: var(--orange); }

/* ---------- Liens : soulignement qui se trace, flèche qui avance ---------- */
.lien-fleche, .reponse, .hs-lien {
  background-image: linear-gradient(currentColor, currentColor); background-position: left bottom; background-size: 0 1px; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--b5-ease), color .2s;
}
@media (hover: hover) { .lien-fleche:hover, .reponse:hover, .hs-lien:hover, .carte:hover .reponse { background-size: 100% 1px; text-decoration: none; } }
.lien-fleche::after { display: inline-block; transition: transform .35s var(--b5-ease); }
@media (hover: hover) { .lien-fleche:hover::after { transform: translateX(5px); margin-left: 0; } }
.domaine li a, .pied li a, .alt-item, .acces-prestations a { transition: color .25s, transform .35s var(--b5-ease), padding .35s var(--b5-ease), background .25s; }
.domaine li a { display: inline-block; }
@media (hover: hover) { .domaine li a:hover { transform: translateX(6px); } }
.pied li a { display: inline-block; }
@media (hover: hover) { .pied li a:hover { transform: translateX(4px); } }

/* ---------- Cartes : projecteur qui suit le curseur, inclinaison 3D ---------- */
.carte, .domaine, .pays-item, .fondu-item, .alt-item, .hs-item, .logo-client { --mx: 50%; --my: 50%; }
.carte, .pays-item { position: relative; isolation: isolate; }
.carte::after, .pays-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(242,106,27,.10), transparent 70%);
}
/* constats épinglés : le grand numéro (déjà en ::before) passe en poids léger et s'éclaire au survol */
#constats.fondu-epingle .probleme::before { font-weight: 200; letter-spacing: -0.06em; transition: color .5s, transform .7s var(--b5-ease); }
@media (hover: hover) { #constats.fondu-epingle .probleme:hover::before { color: rgba(242,106,27,.22); transform: translateY(-6px); } }
.carte:not(.probleme)::before {   /* contour orange lumineux sous le curseur */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s;
  background: radial-gradient(220px circle at var(--mx) var(--my), var(--orange), rgba(242,106,27,.25) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) { .carte:hover::after, .carte:not(.probleme):hover::before, .pays-item:hover::after { opacity: 1; } }
@media (hover: hover) { .b5-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .12s linear, box-shadow .3s; } }
.carte.projet .placeholder, .carte.article .placeholder, .photo { overflow: hidden; }
.carte .placeholder::before { transition: transform .8s var(--b5-ease); }
@media (hover: hover) { .carte:hover .placeholder::before { transform: translate(-50%, -70%) scale(1.25) rotate(-6deg); } }
.photo img { transition: transform 1.2s var(--b5-ease); }
@media (hover: hover) { .photo:hover img { transform: scale(1.05); } }
.pays-item { transition: transform .45s var(--b5-ease), border-color .3s; }
@media (hover: hover) { .pays-item:hover { transform: translateX(8px); } }
.pays-item .code { transition: background .3s, color .3s; }
@media (hover: hover) { .pays-item:hover .code { background: var(--orange); color: #fff; } }
.logo-client { transition: border-color .3s, color .3s, transform .45s var(--b5-ressort), background .3s; }
@media (hover: hover) { .logo-client:hover { border-color: var(--orange); border-style: solid; color: var(--orange); transform: translateY(-4px); } }
.argument { transition: padding .4s var(--b5-ease); }
@media (hover: hover) { .argument:hover { padding-left: 8px; } }
.argument .picto-rond { transition: background .3s, transform .5s var(--b5-ressort); }
@media (hover: hover) { .argument:hover .picto-rond { background: rgba(242,106,27,.14); transform: rotate(-8deg) scale(1.08); } }

/* ---------- Pictogrammes qui se redessinent au survol ---------- */
@keyframes b5-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.b5-redessin [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (hover: hover) { .frise li:hover .b5-redessin [pathLength], .ldv-etapes > li:hover .b5-redessin [pathLength], .alt-item:hover .b5-redessin [pathLength], .argument:hover .b5-redessin [pathLength], .hs-item:hover .b5-redessin [pathLength] { animation: b5-trace 1.1s var(--b5-ease); } }
.frise .picto { transition: transform .5s var(--b5-ressort), border-color .3s, background-color .4s; }
@media (hover: hover) { .frise li:hover .picto { transform: translateY(-6px) scale(1.06); border-color: var(--orange); } }

/* ---------- Défilement : photos dévoilées, texte qui s'allume ---------- */
.b5-devoile { clip-path: inset(10% 10% 10% 10%); transition: clip-path 1.4s var(--b5-ease); }
.b5-devoile img { transform: scale(1.18); transition: transform 1.6s var(--b5-ease); }
.b5-devoile.b5-vu { clip-path: inset(0 0 0 0); }
.b5-devoile.b5-vu img { transform: none; }
@media (hover: hover) { .b5-devoile.b5-vu:hover img { transform: scale(1.05); } }
[data-b5-scrub] .b5-mot { opacity: .18; transition: opacity .35s linear; }
[data-b5-scrub] .b5-mot.on { opacity: 1; }
.metier-conclusion .b5-mot { opacity: 1; }

/* hero : le texte s'éloigne quand on descend */
.hero .hero-texte { will-change: transform, opacity; }

/* CTA final : lumière qui suit le curseur */
.cta { --mx: 50%; --my: 50%; }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(242,106,27,.16), transparent 60%); }

/* ---------- Carrousel de photos (js/carrousel.js) ---------- */
.carrousel { position: relative; margin: 12px 0 28px; }
.carrousel-piste {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--rayon);
}
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-piste:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.carrousel-diapo { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carrousel-diapo .carrousel-cadre { aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; background: var(--gris-fond); }
.carrousel-diapo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transition: transform 1.2s var(--b5-ease); }
@media (hover: hover) { .carrousel-diapo:hover img { transform: scale(1.03); } }
.carrousel-diapo figcaption { margin-top: 10px; font-size: .9rem; color: var(--texte-doux); }
.carrousel-diapo figcaption strong { color: var(--bleu); font-weight: 500; }
.carrousel-commandes { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.carrousel-fleche {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--blanc);
  color: var(--bleu); display: grid; place-items: center; cursor: pointer;
  transition: border-color .3s, color .3s, background .3s, transform .45s var(--b5-ressort);
}
.carrousel-fleche svg { width: 18px; height: 18px; }
@media (hover: hover) { .carrousel-fleche:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); transform: scale(1.08); } }
.carrousel-fleche:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.carrousel-fleche:disabled { opacity: .35; cursor: default; }
.carrousel-points { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; min-width: 0; }
.carrousel-point { width: 18px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: var(--bordure); cursor: pointer; transition: background .3s, width .45s var(--b5-ease); }
.carrousel-point[aria-current="true"] { background: var(--orange); width: 32px; }
.carrousel-compteur { font-size: 12px; letter-spacing: .1em; color: var(--texte-doux); font-variant-numeric: tabular-nums; }

/* ---------- Sécurisation interactive : maquette 3D intégrée ---------- */
.maquette-interactive { height: min(78vh, 760px); min-height: 480px; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--gris-fond); }
.maquette-interactive iframe { display: block; width: 100%; height: 100%; border: 0; }
.maquette-aide { margin-top: 12px; font-size: .9rem; color: var(--texte-doux); }
.maquette-aide a { color: var(--orange-fonce); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .carrousel-piste { scroll-behavior: auto; }
  .carrousel-diapo img, .carrousel-fleche, .carrousel-point { transition: none; }
  .btn, .btn::before, .btn::after, .b5-devoile, .b5-devoile img { transition: none !important; }
  .b5-devoile { clip-path: none; } .b5-devoile img { transform: none; }
  [data-b5-scrub] .b5-mot { opacity: 1; }
}

/* ---------- Accueil : schéma « cycle de vie » à la place de la photo du hero ---------- */
.hero-schema { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; padding: 32px 24px 32px 0; display: flex; align-items: center; justify-content: flex-end; }
.hs-cadre { position: relative; width: 100%; height: 100%; max-height: 720px; container-type: size; }
.hero-schema svg { display: block; width: 100%; height: 100%; }
/* sceau 3D au centre du cycle : le schéma (viewBox 800 × 640, calé à droite) mesure --vb de large,
   le centre du cycle est à 440/800 de sa largeur et à mi-hauteur */
.hs-sceau {
  --vb: min(100cqw, 125cqh); --d: calc(var(--vb) * .33);
  position: absolute; z-index: 2; width: var(--d); height: var(--d);
  left: calc(100cqw - var(--vb) * .45 - var(--d) / 2); top: calc(50cqh - var(--d) / 2);
}
/* le conteneur du texte et le dégradé du hero couvrent le schéma : ils laissent passer les clics
   (sauf sur le texte lui-même) pour que le sceau et le lien du cycle restent cliquables */
.hero-cycle::after, .hero-cycle > .conteneur { pointer-events: none; }
.hero-cycle .hero-texte { pointer-events: auto; }
.hs-sceau { display: block; border-radius: 50%; }
.hs-sceau canvas { cursor: pointer; }
.hs-sceau:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
/* lien « Sécurisation interactive » centré sous le cycle (même repère que le sceau) */
.hs-interactif {
  --vb: min(100cqw, 125cqh);
  position: absolute; z-index: 2; left: calc(100cqw - var(--vb) * .45); top: calc(50cqh + var(--vb) * .315); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 18px; border-radius: var(--rayon); border: 1px solid rgba(255,255,255,.45); background: rgba(14,42,71,.6);
  color: var(--blanc); font-size: .92rem; font-weight: 400; text-decoration: none; backdrop-filter: blur(4px);
  transition: border-color .3s, background .3s, transform .45s var(--b5-ressort);
}
@media (hover: hover) { .hs-interactif:hover { border-color: var(--orange); background: rgba(242,106,27,.14); transform: translateX(-50%) translateY(-2px); } }
.hs-interactif:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.hs-interactif .hs-fleche { color: var(--orange); transition: transform .3s var(--b5-ease); }
@media (hover: hover) { .hs-interactif:hover .hs-fleche { transform: translateX(4px); } }
/* les deux boutons sous le cycle (Domaines d'activité + Sécurisation interactive), centrés sur le sceau */
.hs-actions {
  --vb: min(100cqw, 125cqh);
  position: absolute; z-index: 2; left: calc(100cqw - var(--vb) * .45); top: calc(50cqh + var(--vb) * .315); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.hs-actions .hs-interactif { position: static; transform: none; }
@media (hover: hover) { .hs-actions .hs-interactif:hover { transform: translateY(-2px); } }
/* boutons en nuage (même forme que « Testez vos connaissances »), taille réduite de 20 % (264 × 69 px), effets des boutons du site :
   aimant, remplissage orange depuis le curseur, reflet ; en plus un arc électrique qui court sur le contour */
.hs-actions .hs-nuage {
  display: inline-flex; align-items: center; justify-content: center; width: 264px; height: 69px; padding: 13px 29px 5px; margin: 0;
  border: 0; border-radius: 0; background: rgba(14,42,71,.72); color: var(--blanc); font-family: inherit; font-size: .88rem; font-weight: 400;
  line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; backdrop-filter: blur(4px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' preserveAspectRatio='none'%3E%3Cpath d='M44%2084C20%2084%206%2070%2011%2055C3%2041%2017%2025%2037%2030C43%2011%2068%205%2085%2018C97%201%20128%201%20140%2018C154%206%20182%2012%20186%2033C207%2031%20219%2048%20212%2062C216%2078%20200%2086%20186%2084Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' preserveAspectRatio='none'%3E%3Cpath d='M44%2084C20%2084%206%2070%2011%2055C3%2041%2017%2025%2037%2030C43%2011%2068%205%2085%2018C97%201%20128%201%20140%2018C154%206%20182%2012%20186%2033C207%2031%20219%2048%20212%2062C216%2078%20200%2086%20186%2084Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hs-actions .hs-nuage::before { background: var(--orange); }
.hs-actions .hs-nuage:focus-visible { color: var(--blanc); }
@media (hover: hover) { .hs-actions .hs-nuage:hover { color: var(--blanc); } }
.hs-actions .hs-nuage[aria-expanded="true"] { background: var(--orange); }
.hs-nuage-forme { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hs-nuage-forme path { fill: none; vector-effect: non-scaling-stroke; }
.hs-nuage-contour { stroke: rgba(255,255,255,.6); stroke-width: 3; transition: stroke .25s; }
.hs-nuage-eclair { stroke: #FFE7D1; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 12 88; opacity: 0; transition: opacity .25s; }
.hs-nuage:focus-visible .hs-nuage-contour { stroke: var(--orange); }
@media (hover: hover) { .hs-nuage:hover .hs-nuage-contour { stroke: var(--orange); } }
.hs-nuage:focus-visible .hs-nuage-eclair { opacity: 1; animation: hs-eclair 1.1s linear infinite; }
@media (hover: hover) { .hs-nuage:hover .hs-nuage-eclair { opacity: 1; animation: hs-eclair 1.1s linear infinite; } }
@keyframes hs-eclair { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.hs-nuage-texte { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.hs-nuage .hs-interactif-picto { width: 15px; height: 15px; }
@media (hover: hover) { .hs-nuage:hover .hs-fleche { color: var(--blanc); transform: translateX(4px); } }
.hs-nuage .hs-fleche { transition: transform .3s var(--b5-ease), color .25s; }
@media (prefers-reduced-motion: reduce) { @media (hover: hover) { .hs-nuage:hover .hs-nuage-eclair { animation: none; } } }
/* petit cube 3D en traits */
.hs-interactif-picto { width: 16px; height: 16px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26A1B' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Cpath d='M3 7l9 5 9-5M12 12v10'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .hs-sceau { display: none; } }
/* variante placée sous les badges du hero, affichée seulement quand le schéma est masqué */
.hs-interactif.hs-interactif-mobile { display: none; position: static; transform: none; margin-top: 24px; margin-right: 10px; }
@media (max-width: 760px) {
  .hs-actions { display: none; }
  .hs-interactif { display: none; }
  .hs-interactif.hs-interactif-mobile { display: inline-flex; }
  @media (hover: hover) { .hs-interactif.hs-interactif-mobile:hover { transform: translateY(-2px); } }
}
.hero-schema { transition: opacity .4s ease; }
.hero-schema .sc, .hero-schema .hs-sceau { transition: opacity .4s ease; }
.hero-cycle:has(.hero-panneau:not([hidden])) .hero-schema .sc, .hero-cycle:has(.hero-panneau:not([hidden])) .hero-schema .hs-sceau { opacity: .12; }
.hero.hero-cycle::after { background: linear-gradient(90deg, rgba(14,42,71,1) 0%, rgba(14,42,71,.9) 42%, rgba(14,42,71,0) 56%); }
.sc text { font-family: "Inter Tight", sans-serif; fill: #DCE4EE; font-size: 13px; }
.sc .nom { font-size: 15px; }
.sc .num { font-family: Montserrat, sans-serif; font-weight: 700; fill: var(--orange); font-size: 12px; letter-spacing: .08em; }
.sc .t-maj { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .14em; fill: var(--gris-trait); }
/* libellés des 4 domaines cliquables : mènent à la page de la catégorie */
.sc .sc-lien { cursor: pointer; pointer-events: auto; }
.sc .sc-lien text { transition: fill .2s; }
.sc .sc-lien:focus-visible .nom { fill: var(--orange); text-decoration: underline; }
@media (hover: hover) { .sc .sc-lien:hover .nom { fill: var(--orange); text-decoration: underline; } }
.sc .sc-lien:focus-visible .t-maj { fill: #fff; }
@media (hover: hover) { .sc .sc-lien:hover .t-maj { fill: #fff; } }
.sc .sc-lien:focus { outline: none; }
.sc .sc-lien:focus-visible .nom { text-decoration-thickness: 2px; }
.sc .trait, .sc .arc { fill: none; stroke: var(--gris-trait); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sc .arc { stroke-width: 3; }
.sc .fin { fill: none; stroke: var(--gris-trait); stroke-width: .8; opacity: .55; }
.sc .tiret { stroke-dasharray: 4 4; }
.sc .blanc { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc .or { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; }
.sc .orf { fill: var(--orange); }
.sc .bulle { fill: var(--bleu); stroke: var(--orange); stroke-width: 1.6; }
/* écosystème : cadran gradué, secteurs de métier, rayons vers le sceau, pictos */
.sc .sc-grad { fill: none; stroke: var(--gris-trait); stroke-width: 6; stroke-dasharray: .35 4.65; opacity: .45; }
.sc .sc-grad-maj { fill: none; stroke: var(--orange); stroke-width: 12; stroke-dasharray: .8 89.2; stroke-dashoffset: .4; }
.sc .sc-chevrons path { fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc .sc-oeil { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .12em; fill: var(--orange); }
.sc .sc-metier .nom { font-size: 14.5px; fill: #fff; }
.sc .sc-serv { font-size: 11.5px; fill: var(--gris-trait); letter-spacing: .02em; }
.sc .sc-bande { fill: none; stroke: var(--gris-trait); stroke-width: 20; opacity: .1; }
.sc .sc-rayon { stroke: var(--gris-trait); stroke-width: 1.2; stroke-dasharray: 2 3; opacity: .8; }
.sc .sc-metier .bulle { stroke-width: 1.8; }
.sc .picto path, .sc .picto circle { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc .sc-metier, .sc .sc-metier * { transition: opacity .3s ease, fill .25s ease, stroke .25s ease; }
.sc .sc-metier:focus-visible .sc-bande { stroke: var(--orange); opacity: .28; }
@media (hover: hover) { .sc .sc-metier:hover .sc-bande { stroke: var(--orange); opacity: .28; } }
.sc .sc-metier:focus-visible .arc { stroke: var(--orange); }
@media (hover: hover) { .sc .sc-metier:hover .arc { stroke: var(--orange); } }
.sc .sc-metier:focus-visible .sc-rayon { stroke: var(--orange); stroke-dasharray: none; opacity: 1; }
@media (hover: hover) { .sc .sc-metier:hover .sc-rayon { stroke: var(--orange); stroke-dasharray: none; opacity: 1; } }
.sc .sc-metier:focus-visible .bulle { fill: var(--orange); }
@media (hover: hover) { .sc .sc-metier:hover .bulle { fill: var(--orange); } }
.sc .sc-metier:focus-visible .sc-serv { fill: #fff; }
@media (hover: hover) { .sc .sc-metier:hover .sc-serv { fill: #fff; } }
.sc .sc-metier:focus-visible .sc-oeil { fill: #fff; }
@media (hover: hover) { .sc .sc-metier:hover .sc-oeil { fill: #fff; } }
@media (hover: hover) { .sc:has(.sc-metier:hover) .sc-metier:not(:hover) { opacity: .45; } }
.sc .sc-devise { fill: #fff; font-size: 11px; letter-spacing: .24em; }
.sc .sc-rotation { transform-box: fill-box; transform-origin: center; animation: sc-tourne 90s linear infinite; }
@keyframes sc-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc .sc-rotation { animation: none; } .sc .sc-impulsion { display: none; } }
@media (max-width: 760px) {
  .hero-schema { width: 100%; padding: 0; opacity: .3; }
  .hero.hero-cycle::after { background: rgba(14,42,71,.55); }
}
@media (prefers-reduced-motion: reduce) { .sc .point-cycle { display: none; } }
/* liens des 4 domaines sous le cycle : seulement sur petit écran (voir plus bas) */
.hs-domaines { display: none; }
/* fenêtre réduite (moins de 1024 px) : le cycle et son sceau ne sont plus derrière le texte mais en dessous,
   en entier et à taille lisible (le cadre garde les proportions du schéma, 800 × 640) */
@media (max-width: 1023px) {
  .hero.hero-cycle::after { display: none; }
  .hero-cycle .hero-schema { position: relative; inset: auto; order: 1; width: 100%; max-width: 720px; margin: -32px auto 32px; padding: 0 16px; opacity: 1; display: block; }
  .hero-cycle .hs-cadre { height: auto; max-height: none; aspect-ratio: 800 / 640; }
  .hero-cycle .hs-sceau { display: block; }
  .hero-cycle .hero-schema { padding-bottom: 84px; }
  .hero-cycle .hs-actions { display: flex; top: calc(100% + 6px); left: 55%; }
  .hero-cycle .hs-interactif.hs-interactif-mobile { display: none; }
}
/* téléphone : nuages trop larges, libellés du schéma illisibles → liens des domaines en 2 × 2 sous le cycle */
@media (max-width: 600px) {
  .hero-cycle .hero-schema { margin: 8px auto 32px; padding-bottom: 0; }
  .sc .sc-lien text, .sc .sc-devise { display: none; }
  .hero-cycle .hs-actions { display: none; }
  .hero-cycle .hs-interactif.hs-interactif-mobile { display: inline-flex; }
  .hs-domaines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .hs-domaines a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--rayon);
    color: var(--blanc); font-size: .85rem; line-height: 1.25; text-decoration: none; background: rgba(14,42,71,.6); }
  .hs-domaines a span { font-family: Montserrat, sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .08em; color: var(--orange); }
  .hs-domaines a:focus-visible { border-color: var(--orange); }
@media (hover: hover) { .hs-domaines a:hover { border-color: var(--orange); } }
}

/* ---------- Écrans à menu repliable (≤ 1279 px) : la page ne glisse plus sur le côté ----------
   Le menu fermé attend hors champ, à droite (translateX(100%)) : sans cela il élargit la page.
   « clip » coupe le débordement sans créer de zone de défilement (les éléments collants continuent de fonctionner). */
@media (max-width: 1279px) {
  html, body { overflow-x: clip; }
}

/* ---------- En-tête bleu de toutes les pages : sceau 3D en filigrane, centré dans le bloc bleu, sous le texte (PC et mobile) ---------- */
.hero-page > .conteneur { position: relative; }
.hero-page:has(.hero-page-sceau) > .conteneur { position: static; }
.hero-page:has(.hero-page-sceau) > .conteneur > :not(.hero-page-sceau) { position: relative; z-index: 1; }
/* centré sans transform : l'animation d'apparition (classe « recit ») en pose une ; le filigrane n'en a pas */
.hero-page .hero-page-sceau, .hero-page .hero-page-sceau.recit {
  position: absolute; z-index: 0; inset: 0; margin: auto;
  width: min(88vw, 420px); height: min(88vw, 420px);
  transform: none !important; opacity: .22 !important; transition: none !important; pointer-events: none;
}
@media (max-width: 760px) { .hero-page .hero-page-sceau, .hero-page .hero-page-sceau.recit { width: min(88vw, 360px); height: min(88vw, 360px); } }
.hero-page-sceau canvas { cursor: default; }
/* pages Appui technique / notes : sans le tableau « Repères », le texte occupe toute la largeur */
.an-hero:has(.hero-page-sceau) .an-hero-grille { grid-template-columns: minmax(0, 1fr); }
/* En-têtes bleus : le texte prend toute la largeur du contenu, aligné sur le reste de la page.
   Les grilles à deux colonnes dont la colonne de droite est vide (plus de sceau ni de photo) passent à une colonne ;
   les limites de largeur du titre et du chapeau sont levées. Le sceau en filigrane se place à droite, plus discret. */
.hero-page h1, .hero-page .intro, .hero-page .qsn-hero .qsn-texte, .hero-page .qsn-hero .qsn-chiffres { max-width: none; }
.qsn-hero:not(:has(> :nth-child(2))), .ac-hero:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
.hero-page .hero-page-sceau, .hero-page .hero-page-sceau.recit { inset: 0 3% 0 auto; opacity: .13 !important; }
@media (max-width: 860px) { .hero-page .hero-page-sceau, .hero-page .hero-page-sceau.recit { inset: 0; opacity: .08 !important; } }
/* articles (Nos articles) : le texte occupe la colonne de gauche ; le sceau, plus discret, passe dans la colonne vide de droite
   pour ne plus se superposer au titre et au chapeau */
.ac-article .hero-page .hero-page-sceau, .ac-article .hero-page .hero-page-sceau.recit { inset: 0 4% 0 auto; opacity: .16 !important; }
.ac-article .hero-page .intro { color: #E2E9F1; text-shadow: 0 1px 12px rgba(14, 42, 71, .9); }
@media (max-width: 860px) { .ac-article .hero-page .hero-page-sceau, .ac-article .hero-page .hero-page-sceau.recit { inset: 0; opacity: .08 !important; } }

/* « Notre positionnement » en écosystème dans la bande bleue (actualite-formation-encadrement.html) */
.ac-bande .conteneur.ac-bande-eco { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.ac-bande-eco .acteurs-cercle { margin: 0 auto; }
.ac-bande-eco .acteurs-cercle .ac-acteur h3 { color: var(--bleu); }
.ac-bande-eco .acteurs-cercle .ac-acteur p { color: var(--texte-doux); font-size: .8rem; }
@media (hover: hover) { .ac-bande-eco .acteurs-cercle .ac-acteur:hover h3 { color: var(--blanc); } }
@media (hover: hover) { .ac-bande-eco .acteurs-cercle .ac-acteur:hover p { color: #DCE4EE; } }
.ac-bande-eco .acteurs-cercle .ac-centre p { color: #C9D4E0; }
/* bande sur le gris clair des sections grises (au lieu du bleu marine) : titre bleu, texte gris */
.ac-bande:has(.ac-bande-eco) { background: var(--gris-fond); color: var(--texte-doux); }
.ac-bande:has(.ac-bande-eco) h2 { color: var(--bleu); }
@media (max-width: 1180px) { .ac-bande .conteneur.ac-bande-eco { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Page APMR (audit-risques.html) ---------- */
.apmr-titre-long { display: block; margin-top: 6px; font-size: .55em; font-weight: 300; letter-spacing: -0.015em; color: #DCE4EE; }
.hero-page .intro + .intro { margin-top: 8px; }
.apmr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; max-width: min(820px, calc(100% - 330px)); }
@media (max-width: 1080px) { .apmr-actions { max-width: none; } }
@media (max-width: 760px) { .apmr-actions .btn { white-space: normal; text-align: left; } }
.apmr-accroche { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.apmr-bloc { scroll-margin-top: 110px; margin-top: 32px; }
.apmr-bloc h3 { font-size: 1.2rem; color: var(--bleu); padding-left: 14px; border-left: 4px solid var(--orange); margin-bottom: 12px; }
.apmr-bloc ul { margin: 0 0 8px; padding-left: 1.2em; }
.apmr-bloc li { margin-bottom: 6px; }
.apmr-bloc + .encadre-probleme { margin-top: 36px; }
/* Section « Le problème » : version visuelle */
.apmr-bloc { position: relative; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--bordure); }
.apmr-num { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--orange); margin-bottom: 4px; }
.apmr-etiquette { margin: 22px 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu-2); }
.apmr-bloc ul.apmr-pastilles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.apmr-pastilles li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--gris-fond); border: 1px solid var(--bordure); color: var(--bleu); font-size: .88rem; font-weight: 500; }
.apmr-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apmr-carte { padding: 2px 18px 14px; background: var(--gris-fond); border-radius: var(--rayon); border-top: 3px solid var(--bleu-2); }
.apmr-carte-alerte { background: #FDF3EC; border-top-color: var(--orange); }
ul.apmr-liste, .apmr-bloc ul.apmr-liste { list-style: none; padding: 0; margin: 0; }
ul.apmr-liste > li::marker { content: none; }
.apmr-liste li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .95rem; line-height: 1.5; }
.apmr-liste li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu-2); }
.apmr-liste-alerte li::before { content: "!"; top: .15em; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .68rem; font-weight: 700; line-height: 15px; text-align: center; }
.apmr-conclusion { margin: 16px 0 0; padding-left: 14px; border-left: 3px solid var(--orange); font-weight: 600; color: var(--bleu); }
.apmr-benefices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.apmr-benefice { padding: 16px 18px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); }
.apmr-benefice svg { width: 28px; height: 28px; stroke: var(--orange); margin-bottom: 8px; }
.apmr-benefice h4 { margin: 0 0 4px; font-size: .98rem; line-height: 1.35; color: var(--bleu); }
.apmr-benefice p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--texte-doux); }
.apmr-demarche { margin-top: 44px; }
.apmr-demarche ul.apmr-enjeux { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apmr-enjeux li { margin: 0; padding: 10px 8px; text-align: center; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); font-size: .88rem; font-weight: 600; color: var(--bleu); }
/* Étude de projet : arbre de décision */
.ep-arbre { --trait: var(--orange); display: flex; align-items: center; margin: 8px 0 36px; }
.ep-noeud { position: relative; flex: none; width: 140px; padding: 10px 12px; border: 1.5px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); font-size: .86rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; color: var(--bleu); text-align: center; }
.ep-depart { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.ep-calcul { background: var(--orange); border-color: var(--orange); color: #fff; }
.ep-oui { border-color: var(--bleu-2); }
.ep-non { border-color: var(--orange); }
.ep-issue { width: 165px; background: var(--gris-fond); border-color: var(--gris-fond); font-weight: 500; }
.ep-fleche { flex: none; position: relative; width: 26px; height: 2px; background: var(--trait); margin-right: 7px; }
.ep-fleche::after { content: ""; position: absolute; right: -7px; top: -5px; border: 6px solid transparent; border-right: 0; border-left: 7px solid var(--trait); }
.ep-sous { position: relative; display: flex; flex-direction: column; gap: 18px; margin-left: 16px; }
.ep-sous::before { content: ""; position: absolute; left: -16px; top: 50%; width: 16px; height: 2px; background: var(--trait); }
.ep-item { position: relative; display: flex; align-items: center; padding-left: 22px; }
.ep-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; background: var(--trait); }
.ep-item::after { content: ""; position: absolute; left: 0; width: 2px; background: var(--trait); }
.ep-item:first-child::after { top: 50%; bottom: -10px; }
.ep-item:last-child::after { top: -10px; bottom: 50%; }
.ep-item:only-child::after { display: none; }
.ep-item > .ep-noeud::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left: 7px solid var(--trait); }
@media (max-width: 900px) {
  .ep-arbre { flex-direction: column; align-items: stretch; }
  .ep-noeud, .ep-issue { width: auto; text-align: left; }
  .ep-fleche { width: 2px; height: 18px; margin: 0 0 7px 22px; }
  .ep-fleche::after { right: auto; left: -5px; top: auto; bottom: -7px; border: 6px solid transparent; border-bottom: 0; border-top: 7px solid var(--trait); }
  .ep-sous { margin: 0 0 0 22px; padding-top: 12px; gap: 12px; }
  .ep-sous::before { display: none; }
  .ep-item { flex-direction: column; align-items: stretch; padding-left: 22px; }
  .ep-item::before { top: 21px; }
  .ep-item::after, .ep-item:first-child::after, .ep-item:only-child::after { display: block; top: -12px; bottom: 0; height: auto; }
  .ep-item:last-child::after { display: block; top: -12px; bottom: auto; height: 35px; }
  .ep-item > .ep-noeud::before { top: 21px; margin-top: -6px; }
  .ep-item > .ep-sous { margin-left: 22px; }
}

/* Notre approche : frise des 5 étapes */
.apmr-frise { list-style: none; padding: 0; margin: 8px 0 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.apmr-frise::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 16px); }
.apmr-frise li { position: relative; text-align: center; margin: 0; }
.apmr-rond { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--orange); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 600; position: relative; }
.apmr-frise .apmr-cle .apmr-rond { background: var(--orange); color: #fff; }
.apmr-frise h3 { font-size: .98rem; line-height: 1.3; color: var(--bleu); margin: 0 0 6px; }
.apmr-frise p { font-size: .86rem; line-height: 1.45; color: var(--texte-doux); margin: 0; }
/* Survol : l'étape sous la souris prend la mise en avant (rond plein), les autres s'estompent */
.apmr-frise li { cursor: default; }
.apmr-rond { transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.apmr-frise h3, .apmr-frise p { transition: color .25s ease, opacity .25s ease; }
@media (hover: hover) {
  .apmr-frise:hover li h3, .apmr-frise:hover li p { opacity: .45; }
  .apmr-frise:hover li:hover h3, .apmr-frise:hover li:hover p { opacity: 1; }
  .apmr-frise:hover .apmr-cle .apmr-rond { background: var(--blanc); color: var(--orange); }
  .apmr-frise li:hover .apmr-rond,
  .apmr-frise:hover .apmr-cle:hover .apmr-rond { background: var(--orange); color: #fff; transform: scale(1.12); box-shadow: 0 6px 18px rgba(240, 106, 26, .35); }
  .apmr-frise li:hover h3 { color: var(--orange); }
}

/* Même animation de survol pour les autres « Notre approche » :
   listes .etapes (pages de services) et frises .ac-methode (pages actualités) */
/* Listes .etapes présentées en frise horizontale, comme « Notre approche » de la page Audit.
   Jusqu'à 5 étapes : une ligne ; 6 étapes : deux lignes de 3 ; 7 et plus : lignes de 4.
   Sous 1200 px (tablette, téléphone) : frise verticale. */
.etapes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; margin: 8px 0 0; }
.etapes li { position: relative; display: block; text-align: center; padding: 0; border-top: 0; }
.etapes h3, .etapes p, .apmr-frise h3, .apmr-frise p { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 1201px) {
  .etapes:has(> li:nth-child(6)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .etapes:has(> li:nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .etapes:has(> li:nth-child(6)):not(:has(> li:nth-child(7))) li:nth-child(3n)::after,
  .etapes:has(> li:nth-child(7)) li:nth-child(4n)::after { display: none; }
}
.etapes li::before { content: counter(e, decimal-leading-zero); position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--orange); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 600; line-height: 1; transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.etapes li::after { content: ""; position: absolute; top: 27px; left: calc(50% + 28px); width: calc(100% - 40px); height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 16px); }
.etapes li:last-child::after { display: none; }
.etapes h3 { font-size: .98rem; line-height: 1.3; color: var(--bleu); margin: 0 0 6px; }
.etapes p { font-size: .86rem; line-height: 1.45; color: var(--texte-doux); margin: 0; }
.etapes li:has(> div > h3:only-child) h3 { line-height: 1.3; }
@media (max-width: 1200px) {
  .etapes { grid-auto-flow: row; grid-template-columns: 1fr; gap: 0; }
  .etapes li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; text-align: left; padding-bottom: 22px; }
  .etapes li::before { margin: 0; }
  .etapes li > div { padding-top: 6px; }
  .etapes li::after { display: block; top: 56px; bottom: 0; left: 27px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--orange) 0 10px, transparent 10px 16px); }
  .etapes li:last-child::after { display: none; }
}
.etapes h3, .etapes p, .ac-etape h3, .ac-etape p { transition: color .25s ease, opacity .25s ease; }
.ac-etape .anneau { transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease; }
/* Frises .ac-methode (actualités) sous 980 px : une colonne, anneaux reliés par le câble à la verticale */
@media (max-width: 980px) {
  .ac-methode, .ac-methode.cinq { grid-template-columns: 1fr; gap: 0; }
  .ac-etape { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 16px; padding-right: 0; }
  .ac-etape .noeud { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; margin: 0; }
  .ac-etape .cable::before, .ac-etape .cable::after { display: none; }
  .ac-etape .cable { display: block; flex: 1; width: 5px; max-width: none; height: auto; min-height: 16px; margin: 0; background: repeating-linear-gradient(180deg, #4E5966 0 5px, #DCE2E8 5px 7px); }
  .ac-etape:last-child .cable { background: transparent; }
  .ac-etape h3, .ac-etape p { grid-column: 2; }
  .ac-etape h3 { margin-top: 1px; }
  .ac-etape p { margin-bottom: 26px; }
  .ac-etape:last-child p { margin-bottom: 0; }
}
@media (hover: hover) {
  .etapes:hover li h3, .etapes:hover li p,
  .ac-methode:hover .ac-etape h3, .ac-methode:hover .ac-etape p { opacity: .45; }
  .etapes li:hover h3, .etapes li:hover p,
  .ac-methode .ac-etape:hover h3, .ac-methode .ac-etape:hover p { opacity: 1; }
  .etapes li:hover::before { background: var(--orange); color: #fff; transform: scale(1.12); box-shadow: 0 6px 18px rgba(240, 106, 26, .35); }
  .etapes li:hover h3, .ac-etape:hover h3 { color: var(--orange); }
  .ac-etape:hover .anneau { background: var(--orange); transform: scale(1.35); box-shadow: 0 4px 14px rgba(240, 106, 26, .4); }
}
@media (max-width: 1200px) {
  .apmr-frise { grid-template-columns: 1fr; gap: 0; }
  .apmr-frise::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--orange) 0 10px, transparent 10px 16px); }
  .apmr-frise li { text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding-bottom: 22px; }
  .apmr-rond { margin: 0; grid-row: span 2; }
  .apmr-frise h3 { align-self: end; margin-top: 6px; }
}
@media (max-width: 760px) {
  .apmr-deux, .apmr-benefices { grid-template-columns: 1fr; }
  .apmr-demarche ul.apmr-enjeux { grid-template-columns: 1fr 1fr; }
}
.etapes li:has(> div > h3:only-child) h3 { margin: 0; line-height: 1.6; }

/* page courante dans l'encart des prestations (sous-catégories) */
.acces-prestations a[aria-current="page"] { background: rgba(242,106,27,.16); border-color: var(--orange); color: var(--blanc); }
.acces-prestations a[aria-current="page"] .fleche { visibility: hidden; }
/* mobile : l'encart des sous-catégories devient un bandeau qui défile horizontalement, page courante en tête */
@media (max-width: 600px) {
  .acces-prestations:has(a[aria-current="page"]) {
    display: flex; gap: 8px; margin: 24px -16px 0; padding: 0 16px 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .acces-prestations:has(a[aria-current="page"])::-webkit-scrollbar { display: none; }
  .acces-prestations:has(a[aria-current="page"]) a {
    flex: 0 0 auto; max-width: 72vw; padding: 9px 14px; gap: 10px; font-size: .84rem; line-height: 1.25; scroll-snap-align: start;
  }
  .acces-prestations:has(a[aria-current="page"]) a[aria-current="page"] { order: -1; }
  .acces-prestations:has(a[aria-current="page"]) a[aria-current="page"] .fleche { display: none; }
  .acces-prestations:has(a[aria-current="page"]) .libelle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ==========================================================================
   En-tête : bouton « Testez vos connaissances » en forme de nuage (QCM, nouvel onglet)
   ========================================================================== */
.btn-nuage {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  min-width: 150px; min-height: 58px; padding: 10px 22px 8px; margin-left: 10px;
  color: var(--bleu); font-size: .8rem; font-weight: 500; line-height: 1.15; text-align: center; text-decoration: none;
  transition: color .25s, transform .35s var(--b5-ease, ease);
}
.btn-nuage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.btn-nuage .nuage-forme { fill: #EEF2F6; stroke: var(--bleu); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: fill .2s, stroke .2s; }
.btn-nuage span { position: relative; max-width: 9.5em; }
.btn-nuage:focus-visible { color: var(--blanc); animation: nuage-secousse .5s cubic-bezier(.36,.07,.19,.97) both; }
@media (hover: hover) { .btn-nuage:hover { color: var(--blanc); animation: nuage-secousse .5s cubic-bezier(.36,.07,.19,.97) both; } }
.btn-nuage:focus-visible .nuage-forme { fill: var(--bleu); stroke: var(--orange); }
@media (hover: hover) { .btn-nuage:hover .nuage-forme { fill: var(--bleu); stroke: var(--orange); } }
/* effet électrique au survol : lueur qui grésille, deux arcs qui courent sur le contour, éclairs autour, secousse */
.btn-nuage .nuage-eclair { fill: none; stroke: #FFE3C8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 90; opacity: 0; vector-effect: non-scaling-stroke; }
.btn-nuage .nuage-eclair-2 { stroke: var(--orange); stroke-dasharray: 6 94; }
.btn-nuage .nuage-foudre { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; vector-effect: non-scaling-stroke; }
.btn-nuage:focus-visible svg { animation: nuage-lueur 1.3s steps(1, end) infinite; }
@media (hover: hover) { .btn-nuage:hover svg { animation: nuage-lueur 1.3s steps(1, end) infinite; } }
.btn-nuage:focus-visible .nuage-eclair { opacity: 1; animation: nuage-course .8s linear infinite; }
@media (hover: hover) { .btn-nuage:hover .nuage-eclair { opacity: 1; animation: nuage-course .8s linear infinite; } }
.btn-nuage:focus-visible .nuage-eclair-2 { animation: nuage-course 1.25s linear infinite reverse; }
@media (hover: hover) { .btn-nuage:hover .nuage-eclair-2 { animation: nuage-course 1.25s linear infinite reverse; } }
.btn-nuage:focus-visible .nuage-foudre { animation: nuage-flash 1.1s linear infinite; }
@media (hover: hover) { .btn-nuage:hover .nuage-foudre { animation: nuage-flash 1.1s linear infinite; } }
@media (hover: hover) { .btn-nuage:hover .f2 { animation-delay: .28s; } } @media (hover: hover) { .btn-nuage:hover .f3 { animation-delay: .55s; } } @media (hover: hover) { .btn-nuage:hover .f4 { animation-delay: .82s; } }
.btn-nuage:focus-visible span { text-shadow: 0 0 8px rgba(255,170,110,.85); }
@media (hover: hover) { .btn-nuage:hover span { text-shadow: 0 0 8px rgba(255,170,110,.85); } }
@keyframes nuage-course { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes nuage-flash { 0%, 100% { opacity: 0; } 4% { opacity: 1; } 9% { opacity: .15; } 13% { opacity: 1; } 22% { opacity: 0; } }
@keyframes nuage-lueur {
  0% { filter: drop-shadow(0 0 6px rgba(242,106,27,.75)); } 18% { filter: drop-shadow(0 0 14px rgba(242,106,27,1)); }
  24% { filter: drop-shadow(0 0 3px rgba(242,106,27,.5)); } 30% { filter: drop-shadow(0 0 12px rgba(255,200,150,.95)); }
  55% { filter: drop-shadow(0 0 7px rgba(242,106,27,.8)); } 78% { filter: drop-shadow(0 0 16px rgba(242,106,27,1)); }
}
@keyframes nuage-secousse {
  0% { transform: none; } 15% { transform: translate(-2px, 1px) rotate(-1.5deg); } 30% { transform: translate(3px, -1px) rotate(1.5deg); }
  45% { transform: translate(-2px, 0) rotate(-1deg); } 60% { transform: translate(2px, -1px) rotate(.8deg); } 100% { transform: translateY(-3px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  @media (hover: hover) { .btn-nuage:hover, .btn-nuage:hover svg, .btn-nuage:hover .nuage-eclair, .btn-nuage:hover .nuage-foudre { animation: none; } }
  @media (hover: hover) { .btn-nuage:hover { transform: translateY(-2px); } }
}
/* menu mobile (burger, sous 1280 px) : nuage centré sous « Demande d'accompagnement » */
@media (max-width: 1279px) { .btn-nuage { margin: 18px auto 0; width: 220px; min-height: 70px; font-size: .9rem; } }

/* ==========================================================================
   Page QCM « Testez vos connaissances » (qcm-securite-hauteur.html, js/qcm.js)
   ========================================================================== */
.qcm-zone { max-width: 860px; }
/* rien à afficher sous le bandeau tant que le test n'a pas commencé */
.section:has(> .qcm-zone):not(:has(.qcm-zone > :not([hidden]))) { display: none; }
/* accueil du test, dans le bandeau bleu */
.qcm-accueil { margin-top: 22px; }
.qcm-accueil .intro { margin-bottom: 0; max-width: none; }
.qcm-accueil .actions { margin-top: 26px; }
.qcm-accueil .qcm-meta li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: var(--blanc); }
.qcm-carte { background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange); border-radius: var(--rayon); padding: 32px; box-shadow: var(--ombre); margin-bottom: 24px; }
.qcm-carte h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.qcm-carte .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.qcm-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; }
.qcm-meta li { padding: 6px 14px; border-radius: 999px; background: var(--gris-fond); color: var(--bleu); font-size: .85rem; }
.qcm-meta li::before { content: "▲"; color: var(--orange); font-size: .6rem; margin-right: 8px; vertical-align: 2px; }

.qcm-avancement { position: sticky; top: var(--qcm-haut, 86px); z-index: 5; padding: 14px 0 12px; background: var(--gris-fond); }
.qcm-avancement-texte { font-size: .82rem; color: var(--texte-doux); margin-bottom: 6px; }
.qcm-avancement-piste { height: 6px; background: var(--bordure); border-radius: 99px; overflow: hidden; }
.qcm-avancement-piste > div { height: 100%; width: 0; background: var(--orange); transition: width .3s; }
.qcm-aide { font-style: italic; color: var(--texte-doux); margin: 4px 0 18px; }

.qcm-question { border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); margin: 0 0 16px; padding: 22px 24px; }
.qcm-question legend { display: contents; }
.qcm-num { display: block; font-size: 1.5rem; font-weight: 300; color: var(--orange); line-height: 1; margin-bottom: 8px; letter-spacing: -.01em; }
.qcm-intitule { display: block; color: var(--bleu); font-size: 1.02rem; font-weight: 500; line-height: 1.45; margin-bottom: 14px; }
.qcm-options { display: grid; gap: 8px; }
.qcm-option { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--bordure); border-radius: var(--rayon); cursor: pointer; transition: border-color .15s, background .15s; }
@media (hover: hover) { .qcm-option:hover { border-color: var(--bleu); } }
.qcm-option input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--orange); }
.qcm-lettre { flex: 0 0 auto; min-width: 1.2em; font-weight: 500; color: var(--bleu); }
.qcm-option:has(input:checked) { border-color: var(--orange); background: #FEF3EC; }
.corrige .qcm-option { cursor: default; }
.qcm-option.bonne { border-color: #2E7D4F; background: #E9F5EE; }
.qcm-option.erreur { border-color: #B3261E; background: #FBECEA; }
.qcm-question.qcm-juste { border-left: 4px solid #2E7D4F; }
.qcm-question.qcm-faux { border-left: 4px solid #B3261E; }
.qcm-explication { margin-top: 14px; padding: 12px 16px; border-radius: var(--rayon); background: var(--gris-fond); font-size: .93rem; }
.qcm-juste .qcm-explication strong { color: #2E7D4F; }
.qcm-faux .qcm-explication strong { color: #B3261E; }
#qcm-valider-zone { margin-top: 8px; }

.qcm-score { font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 300; color: var(--bleu); line-height: 1.1; margin: 6px 0; }
.qcm-score small { font-size: .4em; color: var(--texte-doux); }
.qcm-verdict { font-size: 1.1rem; font-weight: 500; margin: 0 0 8px; }
.qcm-verdict.atteint { color: #2E7D4F; }
.qcm-verdict.manque { color: var(--orange-fonce); }

.qcm-formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.qcm-formulaire .plein { grid-column: 1 / -1; }
.qcm-consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--texte-doux); }
.qcm-consentement input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--orange); }
.qcm-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qcm-note { font-size: .82rem; color: var(--texte-doux); margin: 10px 0 0; }
@media (max-width: 600px) {
  .qcm-carte, .qcm-question { padding: 20px 16px; }
  .qcm-formulaire { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Bandeau du haut : menu déroulant « Appui technique » (Normes, Réglementation…)
   ========================================================================== */
.bandeau-haut { position: relative; z-index: 60; }
/* bandeau sur une seule ligne : coordonnées à gauche, liens puis langues à droite, alignés au centre */
.bandeau-haut .conteneur { flex-wrap: nowrap; }
.bandeau-haut .coord { flex-wrap: nowrap; gap: 20px; white-space: nowrap; align-items: center; }
/* e-mail et LinkedIn en pictogrammes */
.bandeau-haut .coord .coord-picto { display: inline-flex; align-items: center; color: var(--blanc); transition: color .2s; }
.bandeau-haut .coord .coord-picto svg { width: 18px; height: 18px; display: block; }
.bandeau-haut .coord .coord-picto:focus-visible { color: var(--orange); }
@media (hover: hover) { .bandeau-haut .coord .coord-picto:hover { color: var(--orange); } }
.bandeau-haut .langues { flex-wrap: nowrap; gap: 0; white-space: nowrap; }
.bandeau-haut .langues > .lien-bandeau, .bandeau-haut .langues .bandeau-menu { margin-right: 20px; }
.bandeau-haut .langues .bandeau-menu .lien-bandeau { margin-right: 0; }
@media (max-width: 1240px) { .bandeau-haut .masque-etroit { display: none; } }
@media (max-width: 980px) {
  .bandeau-haut .conteneur { flex-wrap: wrap; row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .bandeau-haut .langues { flex-wrap: wrap; row-gap: 4px; }
  .bandeau-haut .langues > .masque-mobile { display: none; }
}
.bandeau-menu { position: relative; display: inline-flex; }
.bandeau-sous {
  position: absolute; top: calc(100% + 8px); left: -12px; z-index: 61; min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
  background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange); border-radius: var(--rayon); box-shadow: var(--ombre-forte);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.bandeau-sous::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* pont de survol */
.bandeau-menu:hover .bandeau-sous, .bandeau-menu:focus-within .bandeau-sous { opacity: 1; visibility: visible; transform: none; }
.bandeau-haut .bandeau-sous a { display: block; padding: 8px 18px; color: var(--texte); font-size: .85rem; white-space: nowrap; transition: background .2s, color .2s, padding .35s var(--b5-ease, ease); }
.bandeau-haut .bandeau-sous a:hover { background: var(--gris-fond); color: var(--bleu); padding-left: 24px; }
.bandeau-haut .bandeau-sous a[aria-current] { color: var(--orange-fonce); }
@media (max-width: 760px) { .bandeau-haut .langues .bandeau-menu { margin-right: 10px; } .bandeau-sous { left: auto; right: -40px; } }

/* ==========================================================================
   Articles « Nos articles » intégrés (actualite-pir-pirl.html, etc.) : corps de texte
   ========================================================================== */
.art-corps { max-width: 860px; margin: 0 auto; font-size: 1.02rem; line-height: 1.7; color: var(--texte); }
.art-corps [id] { scroll-margin-top: 130px; }
.art-corps h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--bleu); line-height: 1.25; margin: 52px 0 14px; padding-left: 16px; border-left: 4px solid var(--orange); }
.art-corps h3 { font-size: 1.12rem; color: var(--bleu); font-weight: 500; margin: 30px 0 8px; }
.art-corps p { margin: 0 0 16px; }
.art-corps ul, .art-corps ol { margin: 0 0 18px; padding-left: 22px; }
.art-corps li { margin-bottom: 6px; }
.art-corps strong { color: var(--bleu); font-weight: 500; }
.art-corps a { color: var(--orange-fonce); }
.art-corps .alt-toc { background: var(--gris-fond); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px 24px; margin: 0 0 8px; }
.art-corps .alt-toc p { font-weight: 500; color: var(--bleu); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.art-corps .alt-toc ol { margin: 0; columns: 2; column-gap: 32px; }
.art-corps .alt-toc a { color: var(--bleu); text-decoration: none; }
@media (hover: hover) { .art-corps .alt-toc a:hover { color: var(--orange-fonce); text-decoration: underline; } }
.art-corps .alt-callout { background: #FEF3EC; border-left: 4px solid var(--orange); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 16px 20px; margin: 22px 0; }
.art-corps .alt-callout p:last-child, .art-corps .alt-note p:last-child { margin-bottom: 0; }
.art-corps .alt-label { display: block; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: #C4500C; margin-bottom: 4px; }
.art-corps .alt-note { background: var(--gris-fond); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px 20px; margin: 22px 0; font-size: .95rem; }
.art-corps .alt-figure { margin: 26px 0; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 18px; background: var(--blanc); }
.art-corps .alt-figure svg { width: 100%; height: auto; display: block; max-height: 460px; }
.art-corps .art-photo { margin: 0 0 30px; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; background: var(--blanc); }
.art-corps .art-photo img { width: 100%; height: auto; display: block; }
.art-corps .art-photo figcaption { font-size: .85rem; color: var(--texte-doux); padding: 10px 16px; border-top: 1px solid var(--bordure); }
.liste-actus .article .photo, .carte.article > .photo { border-radius: 0; aspect-ratio: 16 / 9; }
.ac-hero .ac-hero-photo { aspect-ratio: 3 / 2; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.ac-hero .ac-hero-photo img { display: block; }
.liste-actus .article .photo img { display: block; }
.art-corps .alt-figure figcaption { font-size: .85rem; color: var(--texte-doux); margin-top: 10px; text-align: center; }
.art-corps .alt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.art-corps .alt-card { border: 1px solid var(--bordure); border-top: 3px solid var(--bleu); border-radius: var(--rayon); padding: 16px 18px; background: var(--blanc); }
.art-corps .alt-card.alt-warn { border-top-color: var(--orange); }
.art-corps .alt-card h4, .art-corps .alt-card h3 { margin: 0 0 6px; font-size: .98rem; font-weight: 500; color: var(--bleu); }
.art-corps .alt-card p { margin: 0; font-size: .92rem; line-height: 1.6; }
.art-corps .alt-table-wrap { overflow-x: auto; margin: 18px 0 10px; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.art-corps table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 600px; }
.art-corps th, .art-corps td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bordure); }
.art-corps thead th { background: var(--bleu); color: var(--blanc); font-weight: 500; }
.art-corps tbody tr:nth-child(even) { background: var(--gris-fond); }
.art-corps tbody tr:last-child td { border-bottom: none; }
.art-corps .alt-small { font-size: .85rem; color: var(--texte-doux); }
.art-corps .alt-steps { counter-reset: s; list-style: none; padding: 0; }
.art-corps .alt-steps li { counter-increment: s; position: relative; padding: 0 0 14px 52px; margin: 0; }
.art-corps .alt-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bleu); color: var(--blanc); font-size: .8rem; display: grid; place-items: center; }
.art-corps .alt-check { padding-left: 24px; }
.art-corps .alt-check li { list-style: none; position: relative; padding-left: 4px; }
.art-corps .alt-check li::before { content: ""; position: absolute; left: -22px; top: .55em; width: 10px; height: 10px; border: 2px solid var(--orange); border-radius: 2px; }
.art-corps .alt-foot { border-top: 1px solid var(--bordure); margin-top: 40px; padding-top: 18px; font-size: .82rem; color: var(--texte-doux); }
@media (max-width: 600px) {
  .art-corps { font-size: 1rem; }
  .art-corps .alt-toc ol { columns: 1; }
  .art-corps .alt-steps li { padding-left: 46px; }
}

/* ==========================================================================
   Qui sommes-nous : présentation et positionnement dans le bandeau bleu, photo à droite
   ========================================================================== */
.qsn-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.qsn-hero .qsn-texte { color: #C9D4E0; font-size: 1.02rem; line-height: 1.65; max-width: 760px; margin: 0 0 14px; }
.qsn-hero .intro { margin-bottom: 18px; }
.qsn-hero .qsn-surtitre { display: inline-flex; margin-top: 22px; }
.qsn-hero .qsn-liste { margin: 6px 0 0; color: var(--blanc); }
.qsn-hero .qsn-liste li { color: var(--blanc); }
.qsn-sceau { width: min(100%, 510px); aspect-ratio: 1; justify-self: end; align-self: center; }   /* sceau calé à droite de sa colonne */
@media (max-width: 960px) { .qsn-hero { grid-template-columns: 1fr; gap: 32px; } .qsn-sceau { width: min(80vw, 320px); justify-self: center; } }
/* colonne du sceau : nuage « Nos zones d'intervention » au-dessus, centré sur le sceau */
.qsn-colonne-sceau { display: flex; flex-direction: column; align-items: center; gap: 18px; justify-self: end; align-self: center; width: min(100%, 510px); }
.qsn-colonne-sceau .qsn-sceau { width: 100%; }
.qsn-actions.hs-actions { position: static; transform: none; display: flex; justify-content: center; margin-top: 28px; }   /* centré en bas du bandeau bleu */
@media (max-width: 960px) { .qsn-colonne-sceau { justify-self: center; width: min(80vw, 320px); } }

/* Qui sommes-nous : repères chiffrés du bandeau */
.qsn-chiffres { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.qsn-chiffres li { border: 1px solid rgba(255, 255, 255, .16); border-left: 3px solid var(--orange); border-radius: var(--rayon); padding: 14px 16px; background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; gap: 4px; }
.qsn-chiffres strong { font-family: var(--police); font-size: 2.1rem; line-height: 1; color: var(--orange); font-weight: 700; }
.qsn-chiffres span { color: #C9D4E0; font-size: .9rem; line-height: 1.4; }
@media (max-width: 640px) { .qsn-chiffres { grid-template-columns: 1fr; } .qsn-chiffres li { flex-direction: row; align-items: center; gap: 14px; } .qsn-chiffres strong { min-width: 1.4em; } }

/* Qui sommes-nous : écosystème (schéma en étoile + panneau de l'acteur choisi) */
.eco-section { padding-top: 48px; }
.eco-section .eco-consigne { margin-bottom: 28px; }
.eco-section .eco-consigne p { margin: 0; }
.eco-section { background-image: radial-gradient(circle at 1px 1px, rgba(14, 42, 71, .07) 1px, transparent 0); background-size: 22px 22px; }
.eco { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eco-carte { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin: 0 auto; }
.eco-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-orbite { fill: none; stroke: var(--gris-trait); stroke-width: .25; stroke-dasharray: 1 1.4; opacity: .7; }
.eco-orbite-int { stroke: var(--orange); opacity: .35; }
.eco-lien { stroke: var(--gris-trait); stroke-width: .45; stroke-dasharray: 1.6 1.6; transition: stroke .25s, stroke-width .25s, opacity .25s; opacity: .55; }
.eco-lien.est-actif { stroke: var(--orange); stroke-width: .7; opacity: 1; animation: eco-flux 1.6s linear infinite; }
@keyframes eco-flux { to { stroke-dashoffset: -6.4; } }
.eco-centre, .eco-noeud { position: absolute; font: inherit; cursor: pointer; transform: translate(-50%, -50%); -webkit-tap-highlight-color: transparent; }
.eco-centre { left: 50%; top: 50%; width: 31%; aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--bleu); color: var(--blanc); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; box-shadow: 0 0 0 8px rgba(242, 106, 27, .14), var(--ombre-forte); transition: box-shadow .25s, transform .25s; }
.eco-centre-nom { font-family: var(--police); font-weight: 700; font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: .08em; }
.eco-centre-sous { font-size: .74rem; line-height: 1.3; color: #C9D4E0; max-width: 12ch; text-align: center; }
.eco-centre.est-actif { box-shadow: 0 0 0 8px rgba(242, 106, 27, .3), 0 0 0 16px rgba(242, 106, 27, .1), var(--ombre-forte); }
@media (hover: hover) { .eco-centre:hover { transform: translate(-50%, -50%) scale(1.03); } }
.eco-noeud { left: var(--x); top: var(--y); width: 28%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; background: var(--blanc); color: var(--bleu); border: 1px solid var(--bordure); border-radius: 10px; box-shadow: var(--ombre); font-size: .82rem; font-weight: 600; line-height: 1.25; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s, color .2s; }
.eco-noeud svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--orange); transition: color .2s; }
@media (hover: hover) { .eco-noeud:hover { border-color: var(--orange); transform: translate(-50%, -50%) translateY(-3px); box-shadow: var(--ombre-forte); } }
.eco-noeud.est-actif { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(242, 106, 27, .35), var(--ombre-forte); }
.eco-centre:focus-visible, .eco-noeud:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.eco-panneau { background: var(--blanc); border: 1px solid var(--bordure); border-top: 4px solid var(--orange); border-radius: var(--rayon); padding: 28px 30px; box-shadow: var(--ombre); animation: eco-entree .35s ease-out; }
.eco-panneau h3 { margin: 6px 0 10px; color: var(--bleu); }
.eco-panneau p { color: var(--texte-doux); margin: 0 0 14px; }
.eco-panneau .liste-triangle { margin: 0; }
.eco-panneau a { color: var(--orange-fonce); }
.eco-etiquette { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-fonce); }
.eco-sous-titre { display: block; font-size: .8rem; font-weight: 700; color: var(--bleu); margin: 4px 0 8px; }
.eco-astuce { font-size: .85rem; font-style: italic; margin: 16px 0 0 !important; }
@keyframes eco-entree { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 960px) { .eco { grid-template-columns: 1fr; gap: 32px; } }
/* petit écran : l'étoile devient une grille, ALTENSIA en tête */
@media (max-width: 760px) {
  .eco-carte { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .eco-liens { display: none; }
  .eco-centre, .eco-noeud { position: static; transform: none; width: auto; }
  .eco-centre { grid-column: 1 / -1; aspect-ratio: auto; border-radius: 10px; padding: 16px; box-shadow: var(--ombre); }
  .eco-centre.est-actif { box-shadow: 0 0 0 4px rgba(242, 106, 27, .35), var(--ombre); }
  .eco-centre-sous { max-width: none; }
  @media (hover: hover) { .eco-centre:hover, .eco-noeud:hover { transform: none; } }
  .eco-panneau { padding: 22px 20px; scroll-margin-top: 90px; }
  .eco-panneaux { scroll-margin-top: 90px; }
}

/* Qui sommes-nous : positionnement (quatre entrées qui convergent) */
.conv { display: grid; grid-template-columns: minmax(0, 1.1fr) 90px minmax(170px, .6fr) minmax(0, 1fr); align-items: stretch; gap: 0; }
.conv-entrees { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 12px; }
.conv-entrees li { display: flex; align-items: center; gap: 14px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 14px 16px; box-shadow: var(--ombre); }
.conv-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bleu); color: var(--blanc); display: grid; place-items: center; font-weight: 700; font-family: var(--police); }
.conv-txt { display: flex; flex-direction: column; gap: 2px; }
.conv-txt strong { color: var(--bleu); font-size: .95rem; }
.conv-txt span { color: var(--texte-doux); font-size: .85rem; }
.conv-faisceau { width: 100%; height: 100%; overflow: visible; }
.conv-faisceau path { fill: none; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 5; opacity: .75; animation: eco-flux-px 1.4s linear infinite; }
@keyframes eco-flux-px { to { stroke-dashoffset: -22; } }
.conv-coeur { align-self: center; position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--bleu); color: #C9D4E0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; gap: 6px; font-size: .78rem; line-height: 1.35; box-shadow: 0 0 0 8px rgba(242, 106, 27, .16), var(--ombre-forte); margin-right: 34px; }
.conv-coeur::after { content: ""; position: absolute; right: -34px; top: 50%; width: 26px; height: 2px; background: var(--orange); }
.conv-coeur::before { content: ""; position: absolute; right: -36px; top: 50%; border: 7px solid transparent; border-left: 10px solid var(--orange); transform: translate(100%, -50%); }
.conv-logo { font-family: var(--police); font-weight: 700; color: var(--blanc); font-size: 1.05rem; letter-spacing: .08em; }
.conv-sortie { align-self: center; background: var(--bleu); color: var(--blanc); border-radius: var(--rayon); padding: 26px 26px; box-shadow: var(--ombre-forte); border-left: 4px solid var(--orange); margin-left: 12px; }
.conv-sortie h3 { color: var(--blanc); margin: 6px 0 12px; }
.conv-sortie .eco-etiquette { color: var(--orange); }
.conv-sortie .liste-triangle li { color: #DCE4EE; }
@media (max-width: 1000px) {
  .conv { grid-template-columns: 1fr; gap: 0; justify-items: stretch; }
  .conv-faisceau { display: none; }
  .conv-entrees { grid-template-columns: 1fr 1fr; }
  .conv-coeur { width: 170px; justify-self: center; margin: 44px 0 44px; }
  .conv-coeur::after { right: auto; left: 50%; top: auto; bottom: -34px; width: 2px; height: 26px; }
  .conv-coeur::before { right: auto; left: 50%; top: auto; bottom: -36px; border: 7px solid transparent; border-top: 10px solid var(--orange); transform: translate(-50%, 100%); }
  .conv-coeur > :first-child::before { content: ""; position: absolute; left: 50%; top: -34px; width: 2px; height: 26px; background: var(--orange); }
  .conv-sortie { margin-left: 0; }
}
@media (max-width: 640px) { .conv-entrees { grid-template-columns: 1fr; } }

/* Qui sommes-nous : parcours en quatre métiers */
.parcours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: none; }
.parcours::before { content: ""; position: absolute; left: 12%; right: 12%; top: 31px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 14px); }
.parcours li { position: relative; }
.parcours a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; height: 100%; padding: 0 12px 22px; color: inherit; text-decoration: none; border-radius: var(--rayon); transition: background .2s; }
@media (hover: hover) { .parcours a:hover { background: var(--gris-fond); } }
.parcours-num { width: 64px; height: 64px; border-radius: 50%; background: var(--bleu); color: var(--blanc); display: grid; place-items: center; font-family: var(--police); font-weight: 700; font-size: 1.1rem; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--blanc); transition: background .2s; }
@media (hover: hover) { .parcours a:hover .parcours-num { background: var(--orange); } }
.parcours svg { width: 34px; height: 34px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.parcours strong { color: var(--bleu); font-size: 1.02rem; }
.parcours a > span:last-child { color: var(--texte-doux); font-size: .9rem; line-height: 1.5; }
.parcours-boucle { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px auto 0; padding: 12px 20px; width: fit-content; max-width: 100%; border: 1px dashed var(--orange); border-radius: 999px; color: var(--bleu); font-weight: 600; font-size: .92rem; }
.parcours-boucle svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .parcours { grid-template-columns: 1fr; gap: 0; }
  .parcours::before { left: 43px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--orange) 0 8px, transparent 8px 14px); }
  .parcours a { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 4px; text-align: left; align-items: start; padding: 12px; }
  .parcours-num { grid-row: 1 / 3; }
  .parcours svg { display: none; }
  .parcours strong { align-self: end; }
  .parcours-boucle { border-radius: 14px; text-align: left; }
}

/* Qui sommes-nous : engagements avec pictogramme */
.pilier-icone { width: 44px; height: 44px; fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; padding: 9px; border-radius: 50%; background: rgba(242, 106, 27, .1); box-sizing: content-box; }

@media (prefers-reduced-motion: reduce) {
  .eco-lien.est-actif, .conv-faisceau path, .eco-panneau { animation: none; }
}

/* Hero : les 3 boutons « votre situation » ont la même taille (2 en haut, « Compréhension globale » dessous ; largeur = le plus long) */
.hero .actions:has(.btn-situation) { display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 100%; }
.hero .actions .btn-situation { justify-content: center; text-align: center; white-space: normal; line-height: 1.25; min-height: 56px; }
@media (max-width: 760px) { .hero .actions:has(.btn-situation) { grid-template-columns: minmax(0, 1fr); } }

/* Appui technique : les 3 thèmes en bandeaux-boutons, comme les boutons « votre situation » de l'accueil
   (blancs, remplissage orange qui suit le curseur, orange plein pour la page affichée) */
.an-bandeaux { background: var(--an-doux); border-bottom: 1px solid var(--an-trait); }
.an-bandeaux .conteneur { display: grid; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.an-bandeaux-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .an-bandeaux-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-bandeaux .btn.btn-situation, .an-notes-boutons .btn.btn-situation { background: var(--blanc); color: var(--bleu); border: 1px solid var(--an-trait); justify-content: center; text-align: center; white-space: normal; line-height: 1.25; min-height: 56px; }
@media (hover: hover) { .an-bandeaux .btn.btn-situation:hover, .an-notes-boutons .btn.btn-situation:hover { color: var(--blanc); border-color: var(--orange); } }
.an-bandeaux .btn.btn-situation[aria-current], .an-notes-boutons .btn.btn-situation[aria-current] { background: var(--orange); color: var(--blanc); border-color: var(--orange); }
.an-notes-boutons .btn.btn-situation { min-height: 48px; font-size: .9rem; }
@media (max-width: 760px) { .an-bandeaux-grille { grid-template-columns: minmax(0, 1fr); } }

/* Chaîne antichute : schéma illustré A / B / C + légende (note-chaine-antichute.html) */
.ch-schema { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.ch-figure { margin: 0; background: var(--blanc); border: 1px solid var(--an-trait); border-radius: var(--rayon); padding: 12px; }
.ch-figure svg { display: block; width: 100%; height: auto; }
.ch-figure .ch-a, .ch-figure .ch-b, .ch-figure .ch-c { transition: opacity .25s; }
.ch-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ch-legende li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px;
  border: 1px solid var(--an-trait); border-radius: var(--rayon); background: var(--blanc); transition: border-color .25s, transform .3s; }
@media (hover: hover) { .ch-legende li:hover { transform: translateX(4px); } }
.ch-legende h3 { font-size: 1rem; color: var(--bleu); margin: 0 0 4px; }
.ch-legende h3 small { font-family: var(--an-mono); font-size: .72rem; letter-spacing: .08em; color: var(--an-muet); margin-left: 6px; font-weight: 400; }
.ch-legende p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--an-muet); }
.ch-pastille { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem Montserrat, sans-serif; color: #fff; }
.ch-l-a .ch-pastille { background: #F26A1B; } @media (hover: hover) { .ch-l-a:hover { border-color: #F26A1B; } }
.ch-l-b .ch-pastille { background: #0E2A47; } @media (hover: hover) { .ch-l-b:hover { border-color: #0E2A47; } }
.ch-l-c .ch-pastille { background: #4A88C7; } @media (hover: hover) { .ch-l-c:hover { border-color: #4A88C7; } }
@media (hover: hover) { .ch-schema:has(.ch-l-a:hover) :is(.ch-b, .ch-c), .ch-schema:has(.ch-l-b:hover) :is(.ch-a, .ch-c), .ch-schema:has(.ch-l-c:hover) :is(.ch-a, .ch-b) { opacity: .2; } }
@media (max-width: 860px) { .ch-schema { grid-template-columns: 1fr; } }
/* variante avec l'illustration (image large, libellés intégrés) : image en pleine largeur, légende en 3 colonnes dessous */
.ch-schema:has(.ch-figure-photo) { grid-template-columns: 1fr; gap: 18px; }
.ch-figure-photo { padding: 0; overflow: hidden; }
.ch-figure-photo img { display: block; width: 100%; height: auto; }
.ch-schema:has(.ch-figure-photo) .ch-legende { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .ch-schema:has(.ch-figure-photo) .ch-legende { grid-template-columns: 1fr; } }
/* variante croquis ALTENSIA (SVG, fond quadrillé façon plan) : même mise en page que la variante illustration */
.ch-schema:has(.ch-figure-croquis) { grid-template-columns: 1fr; gap: 18px; }
.ch-schema:has(.ch-figure-croquis) .ch-legende { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-figure-croquis { padding: 18px; background-color: #F7F9FB;
  background-image: linear-gradient(rgba(110, 139, 168, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .12) 1px, transparent 1px);
  background-size: 22px 22px; }
@media (max-width: 860px) { .ch-schema:has(.ch-figure-croquis) .ch-legende { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ch-figure-croquis { padding: 8px; } .ch-figure-croquis .ch-lib { display: none; } }
/* planche technique (outils/schema_chaine_antichute.py) : sur téléphone, les libellés masqués libèrent la droite, on recadre */
@media (max-width: 760px) { .ch-figure-planche { overflow: hidden; } .ch-figure-planche svg { width: 128%; max-width: none; } }

/* Familles de solutions : cartes avec vue isométrique façon plan CAO (note-chaine-antichute.html) */
.fs-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.fs-carte { grid-column: span 2; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--an-trait);
  border-radius: var(--rayon); overflow: hidden; transition: transform .35s var(--b5-ease, ease), box-shadow .35s, border-color .25s; }
.fs-carte:nth-child(4), .fs-carte:nth-child(5) { grid-column: span 3; }
@media (hover: hover) { .fs-carte:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 39, 61, .10); border-color: var(--orange); } }
.fs-visuel { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 10px 14px; border-bottom: 1px solid var(--an-trait);
  background-color: #F7F9FB;
  background-image: linear-gradient(rgba(110, 139, 168, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .13) 1px, transparent 1px),
    linear-gradient(rgba(110, 139, 168, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .06) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; }
.fs-carte:nth-child(4) .fs-visuel, .fs-carte:nth-child(5) .fs-visuel { aspect-ratio: 21 / 9; }
.fs-visuel svg, .fs-visuel img { position: absolute; inset: 14px 16px; width: calc(100% - 32px); height: calc(100% - 28px); display: block; }
.fs-visuel img { object-fit: contain; }
.fs-cote-txt, .fs-etiq { paint-order: stroke; stroke: #F7F9FB; stroke-width: 3.5px; stroke-linejoin: round; }
.fs-num { position: absolute; left: 12px; top: 10px; font-family: var(--an-mono); font-size: .72rem; letter-spacing: .1em; color: var(--an-muet); }
.fs-cote-txt, .fs-etiq { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .03em; }
.fs-cote-txt { fill: #6E8BA8; } .fs-etiq { fill: #14273D; }
.fs-texte { padding: 16px 18px 18px; display: grid; gap: 8px; }
.fs-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fs-tete h3 { font-size: 1.02rem; color: var(--bleu); margin: 0; }
.fs-tete .ref { white-space: nowrap; font-size: .74rem; padding: 3px 8px; border: 1px solid rgba(196, 80, 12, .35); border-radius: 4px; }
.fs-texte p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--an-muet); }
@media (max-width: 960px) { .fs-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fs-carte, .fs-carte:nth-child(4), .fs-carte:nth-child(5) { grid-column: span 1; }
  .fs-carte:nth-child(5) { grid-column: 1 / -1; } .fs-carte:nth-child(4) .fs-visuel { aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .fs-grille { grid-template-columns: 1fr; } .fs-carte .fs-visuel, .fs-carte:nth-child(n) .fs-visuel { aspect-ratio: 16 / 10; } }

/* Note « Le bord de chute » : visuels des supports de formation + coupes techniques */
.bc-principe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; }
.bc-cles { display: grid; gap: 14px; }
.bc-cle { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px;
  background: var(--blanc); border: 1px solid var(--an-trait); border-left: 4px solid var(--an-ko); border-radius: var(--rayon); }
.bc-cle-num { font: 600 1.6rem/1 Montserrat, sans-serif; color: var(--bleu); }
.bc-cle p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--an-fg); }
.bc-rouge { color: var(--an-ko); }
.bc-legende { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; line-height: 1.5; color: var(--an-muet); }
.bc-legende li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.bc-legende b { color: var(--an-fg); font-weight: 600; }
.bc-pastille { width: 22px; height: 22px; border-radius: 4px; margin-top: 1px; border: 1px solid #14273D; }
.bc-sure { background: #3F454C; }
.bc-risque { background: repeating-linear-gradient(45deg, #F2B71F 0 5px, #1F2A37 5px 9px); }
.bc-visuel { margin: 0; position: relative; overflow: hidden; border-radius: var(--rayon); border: 1px solid var(--an-trait); background: #F4F4F4; }
.bc-visuel img { display: block; }
/* recadrage sur la vue 3D (sans le titre ni le texte de la diapositive) */
.bc-recadre-zones { aspect-ratio: 897 / 305; }
.bc-recadre-zones img { position: absolute; width: 154.40%; max-width: none; height: auto; left: -51.62%; top: -140.98%; }
.bc-recadre-interieur { aspect-ratio: 1277 / 530; }
.bc-recadre-interieur img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.bc-croquis { margin: 0; padding: 18px; border: 1px solid var(--an-trait); border-radius: var(--rayon); background-color: #F7F9FB;
  background-image: linear-gradient(rgba(110, 139, 168, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .12) 1px, transparent 1px);
  background-size: 22px 22px; }
.bc-croquis svg { display: block; width: 100%; height: auto; max-height: 520px; }
.cq-cote, .cq-etiq, .cq-sure, .cq-risque { font-family: "IBM Plex Mono", monospace; paint-order: stroke; stroke: #F7F9FB; stroke-width: 3.5px; stroke-linejoin: round; }
.cq-cote { font-size: 12px; font-weight: 600; fill: #14273D; }
.pd-3d { margin-top: 24px; }
.pd-3d svg { max-height: 560px; }
.pd-num { font: 700 13px Montserrat, sans-serif; fill: #fff; }
.pd-cote, .pd-etiq { font-family: "IBM Plex Mono", monospace; paint-order: stroke; stroke: #F7F9FB; stroke-width: 3.5px; stroke-linejoin: round; }
.pd-cote { font-size: 12px; font-weight: 600; fill: #14273D; }
.pd-etiq { font-size: 11px; fill: #14273D; }
.pd-etapes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-etapes li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .86rem; line-height: 1.5; color: var(--an-muet);
  background: var(--blanc); border: 1px solid var(--an-trait); border-radius: var(--rayon); padding: 12px 14px; }
.pd-etapes b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E8641A; color: #fff; font: 700 .8rem Montserrat, sans-serif; }
.pd-etapes b.pd-r { background: var(--an-ko); }
@media (max-width: 760px) { .pd-etapes { grid-template-columns: 1fr; } }
.cz-libelle { font: 600 19px Montserrat, sans-serif; fill: #14273D; }
.cq-etiq { font-size: 11px; fill: #14273D; }
.cq-sure { font-size: 11px; font-weight: 600; fill: #2E7D4F; letter-spacing: .06em; }
.cq-risque { font-size: 11px; font-weight: 600; fill: #B3261E; letter-spacing: .06em; }
.bc-interieur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 22px; }
.bc-interieur p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--an-fg); }
.bc-puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bc-puces li { padding: 7px 12px 7px 30px; border: 1px solid var(--an-trait); border-radius: 999px; background: var(--blanc); font-size: .86rem; color: var(--an-fg);
  background-image: repeating-linear-gradient(45deg, #F2B71F 0 3px, #1F2A37 3px 6px); background-size: 12px 12px; background-repeat: no-repeat; background-position: 11px 50%; }
.bc-coupe { margin: 0; background: #F7F9FB; border: 1px solid var(--an-trait); border-radius: var(--rayon); padding: 18px;
  background-image: linear-gradient(rgba(110, 139, 168, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .10) 1px, transparent 1px);
  background-size: 20px 20px; }
.bc-coupe svg { display: block; width: 100%; height: auto; max-height: 420px; }
.bc-coupe figcaption { margin-top: 10px; font-size: .82rem; color: var(--an-muet); }
.bc-t-cote, .bc-t-petit, .bc-t-zone, .bc-t-vide, .bc-t-or { font-family: "IBM Plex Mono", monospace; }
.bc-t-cote { font-size: 13px; font-weight: 600; fill: #14273D; }
.bc-t-petit { font-size: 10.5px; fill: #4A5B6E; }
.bc-t-zone { font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.bc-t-sure { fill: #2E7D4F; } .bc-t-risque { fill: #B3261E; }
.bc-t-vide { font-size: 12px; letter-spacing: .2em; fill: #B3261E; }
.bc-t-or { font-size: 11.5px; fill: #C4500C; }
.bc-retenue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
@media (max-width: 900px) { .bc-principe, .bc-interieur, .bc-retenue { grid-template-columns: 1fr; } }

/* Photo d'illustration en tête d'une page de domaine (ex. Conseiller & Accompagner) */
.photo-illustration { margin: 0 0 32px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rayon); border: 1px solid var(--an-trait, #D9E0E7); }
.photo-illustration img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
@media (max-width: 600px) { .photo-illustration { aspect-ratio: 4 / 3; } }
.photo-legendee { position: relative; }
.photo-legendee img { object-position: 50% 45%; }
.photo-legendee figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 18px 12px; font-size: .84rem; line-height: 1.45;
  color: #fff; background: linear-gradient(transparent, rgba(14, 42, 71, .88)); }
.photo-legendee figcaption small { display: block; margin-top: 4px; font-size: .72rem; opacity: .75; }

/* Note « Facteur de chute » : formule + 3 situations aux couleurs ALTENSIA (bleu → orange → rouge) */
.fc-formule { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin: 0 auto 26px; max-width: 760px;
  padding: 18px 26px; background: var(--bleu); color: var(--blanc); border-radius: var(--rayon); border-bottom: 4px solid var(--orange); }
.fc-formule-nom { font: 600 1.15rem Montserrat, sans-serif; }
.fc-egal { font: 600 1.4rem Montserrat, sans-serif; color: var(--orange); }
.fc-fraction { display: inline-grid; text-align: center; font: 500 1rem Montserrat, sans-serif; }
.fc-fraction span:first-child { padding: 0 10px 6px; border-bottom: 2px solid var(--blanc); }
.fc-fraction span:last-child { padding: 6px 10px 0; }
.fc-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fc-carte { --fc: var(--bleu); --fc-doux: rgba(14, 42, 71, .07); display: flex; flex-direction: column; background: var(--blanc);
  border: 1px solid var(--an-trait); border-top: 4px solid var(--fc); border-radius: var(--rayon); overflow: hidden;
  transition: transform .35s var(--b5-ease, ease), box-shadow .35s; }
@media (hover: hover) { .fc-carte:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14, 42, 71, .10); } }
.fc-1 { --fc: var(--orange); --fc-doux: rgba(242, 106, 27, .08); }
.fc-2 { --fc: var(--an-ko); --fc-doux: rgba(179, 38, 30, .07); }
.fc-visuel { display: grid; place-items: center; height: 300px; padding: 14px 0 6px; background-color: var(--fc-doux);
  background-image: linear-gradient(rgba(110, 139, 168, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .10) 1px, transparent 1px);
  background-size: 20px 20px; }
.fc-visuel img { height: 280px; width: auto; max-width: 100%; object-fit: contain; }
.fc-texte { padding: 16px 20px 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.fc-num { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.fc-num span { font-family: var(--an-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--an-muet); }
.fc-num b { font: 600 2.4rem/1 Montserrat, sans-serif; color: var(--fc); }
.fc-situation { margin: 0; font-size: .82rem; color: var(--an-muet); }
.fc-texte h3 { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--bleu); }
.fc-vigilance { margin: 0; padding: 12px 16px; text-align: center; font: 600 .95rem Montserrat, sans-serif; color: var(--blanc); background: var(--fc); letter-spacing: .02em; }
.fc-2 .fc-vigilance::before, .fc-2 .fc-vigilance::after { content: "!!"; margin: 0 8px; }
@media (max-width: 860px) { .fc-grille { grid-template-columns: 1fr; } .fc-visuel { height: 260px; } .fc-visuel img { height: 240px; } }

/* Logigramme « Opérationnel ou hors service » (note Contrôle) : flèches tracées par js/logigramme.js */
.logigramme-defil { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.logigramme { position: relative; min-width: 760px; max-width: 1100px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px minmax(0, 1.05fr); column-gap: 18px; row-gap: 54px; }
.logigramme .lg-fleches { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.lg-case { position: relative; z-index: 1; background: var(--blanc); border: 1px solid #2B3A4C; border-radius: 12px; padding: 14px 18px;
  text-align: center; font-size: .9rem; line-height: 1.45; color: var(--an-fg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
.lg-case strong { font-weight: 600; }
.lg-case em { display: block; font-style: italic; color: var(--an-muet); font-size: .84rem; margin: 2px 0; }
.lg-a { grid-column: 1 / 3; grid-row: 1; align-self: center; }
.lg-r1 { grid-column: 4; grid-row: 1; }
.lg-b { grid-column: 1 / 3; grid-row: 2; min-height: 150px; }
.lg-c { grid-column: 1 / 3; grid-row: 3; }
.lg-d1 { grid-column: 1; grid-row: 4; }
.lg-d2 { grid-column: 2; grid-row: 4; }
.lg-e { grid-column: 1 / 3; grid-row: 5; }
.lg-f { grid-column: 1 / 3; grid-row: 6; }
.lg-hs { grid-column: 4; grid-row: 2 / 6; gap: 14px; }
.lg-ok { border: 2px solid var(--an-ok); }
.lg-ko { border: 2px solid var(--an-ko); }
.lg-verdict { font-weight: 700; font-size: 1.15rem; text-decoration: underline; text-underline-offset: 4px; }
.lg-ok .lg-verdict { color: var(--an-ok); }
.lg-ko .lg-verdict { color: var(--an-ko); }
.lg-fleches path { fill: none; stroke-width: 2; }
.lg-fleches .ok { stroke: var(--an-ok); } .lg-fleches .ko { stroke: var(--an-ko); } .lg-fleches .neutre { stroke: #A3AEBB; }
.lg-fleches text { font: 700 .82rem var(--an-mono, monospace); letter-spacing: .06em; stroke: none; }
.lg-fleches text.ok { fill: var(--an-ok); } .lg-fleches text.ko { fill: var(--an-ko); }
.lg-fleches .pointe-ok { fill: var(--an-ok); stroke: none; } .lg-fleches .pointe-ko { fill: var(--an-ko); stroke: none; } .lg-fleches .pointe-neutre { fill: #A3AEBB; stroke: none; }

/* Notes d'un thème en boutons (js/appui-onglets.js), contenu de la note affiché dessous */
.an-note .an-notes-boutons { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.an-note section.block#notes { padding-bottom: 0; }
.an-note #notes .theme { padding-bottom: 0; }
.an-note #notes .theme + .theme { margin-top: 36px; }   /* Conformité : Normes puis Réglementation */
.an-note-affichee { transition: opacity .25s; }
.an-note-affichee.chargement { opacity: .35; }
.an-note section.block.an-note-tete { padding: 44px 0 0; }
.an-note-tete .wrap { display: grid; gap: 10px; }
.an-note-tete h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.an-note-tete h2 em { font-style: normal; color: var(--orange); }
.an-note-chapeau { max-width: 820px; color: var(--an-muet); font-size: 1.02rem; line-height: 1.6; margin: 0; }
.an-note-complete { justify-self: start; font-size: .86rem; color: var(--orange-fonce); }

/* Constats de l'accueil : plusieurs liens de réponse à la suite (un seul trait pointillé au-dessus) */
#constats .probleme .reponse + .reponse { margin-top: 8px; padding-top: 0; border-top: 0; }

/* Encadrés « Le problème » (toutes les pages de prestation) : fond blanc, fin contour gris, bordure orange conservée */
div.encadre-probleme { background: var(--blanc); border: 1px solid var(--bordure); border-left: 4px solid var(--orange); }

/* Vidéo de présentation juste sous le bandeau bleu (Digital SafetyPassport) */
.section-video { padding: 48px 0 0; }
.section-video + .section { padding-top: 56px; }
.video-presentation { display: block; width: 100%; max-width: 1040px; height: auto; aspect-ratio: 16 / 9; margin: 0 auto;
  background: var(--bleu); border-radius: var(--rayon); box-shadow: var(--ombre-forte); }
@media (max-width: 600px) { .section-video { padding-top: 28px; } .section-video + .section { padding-top: 40px; } }

/* Pages de prestation : animations au survol à fort contraste (bascule blanc → bleu marine, accents orange).
   Blocs communs : constat (.ac-col), bénéfices (.ac-situation), livrables (.livrable), FAQ, encarts latéraux, encadré final. */
/* contraste : le texte des listes de la colonne « avec ALTENSIA » héritait d'un gris foncé sur fond bleu marine */
.ac-col.nous li { color: #DCE4EE; }
.ac-col.eux li { color: var(--texte-doux); }
.ac-col, .ac-situation, .livrable, div.encadre-probleme, section.encadre-probleme {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease; }
.ac-col li, .ac-situation h3, .ac-situation p, .livrable h3, .livrable h4, .livrable p, .encadre-probleme h3, .encadre-probleme p { transition: color .3s ease, transform .3s ease; }
.ac-situation svg, .livrable svg { transition: color .3s ease, stroke .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.faq-question { transition: color .25s ease, padding-left .25s ease, background-color .25s ease; }
.faq-item { transition: box-shadow .25s ease; }
.encart li a { transition: background-color .25s ease, color .25s ease, border-color .25s ease, padding-left .25s ease; }
.encart-cta { transition: transform .3s ease, box-shadow .3s ease; }

@media (hover: hover) {
  /* Le constat : « sans » s'assombrit et s'efface, « avec ALTENSIA » s'allume en orange */
  .ac-col.eux:hover { background: #E7ECF2; border-color: #4A5563; color: #111418; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14, 42, 71, .14); }
  .ac-col.eux:hover h3 { color: #111418; }
  .ac-col.nous:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--orange), 0 18px 38px rgba(14, 42, 71, .35); }
  .ac-col li:hover { transform: translateX(6px); }
  .ac-col.nous li:hover { color: #fff; }
  .ac-col.eux li:hover { color: #111418; }

  /* Bénéfices : la carte bascule en bleu marine, texte blanc, pictogramme orange qui rebondit */
  .ac-situation:hover { background: var(--bleu); border-color: var(--bleu); border-top-color: var(--orange); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(14, 42, 71, .3); }
  .ac-situation:hover h3 { color: #fff; }
  .ac-situation:hover p { color: #DCE4EE; }
  .ac-situation:hover svg { color: var(--orange); transform: scale(1.18) rotate(-6deg); }

  /* Livrables : même bascule, pictogramme passant en orange */
  .livrable:hover { background: var(--bleu); border-color: var(--bleu); transform: translateY(-5px); box-shadow: 0 16px 34px rgba(14, 42, 71, .28); }
  .livrable:hover h3, .livrable:hover h4 { color: #fff; }
  .livrable:hover p { color: #DCE4EE; }
  .livrable:hover svg { stroke: var(--orange); transform: scale(1.15); }

  /* FAQ : question en orange, décalée, filet orange à gauche */
  .faq-item:hover { box-shadow: inset 4px 0 0 var(--orange); }
  .faq-question:hover { color: var(--orange-fonce); padding-left: 16px; background: #F7F9FB; }

  /* Encarts latéraux : lien plein bleu marine au survol */
  .encart li a:hover { background: var(--bleu); color: #fff; border-color: var(--orange); padding-left: 20px; }
  .encart li a[aria-current="page"]:hover { color: #fff; }
  .encart-cta:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--orange), 0 18px 36px rgba(14, 42, 71, .3); }

  /* Encadré final : bascule en bleu marine */
  .encadre-probleme:hover { background: var(--bleu); border-color: var(--bleu); border-left-color: var(--orange) !important; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 42, 71, .28); }
  .encadre-probleme:hover h3 { color: #fff; }
  .encadre-probleme:hover p { color: #DCE4EE; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-col, .ac-col li, .ac-situation, .ac-situation svg, .livrable, .livrable svg, .encart-cta, .encadre-probleme { transform: none !important; transition-duration: .01s !important; }
}

/* Prestations en carrousel (js/beta5.js) : carrousel 3D sur ordinateur, cartes empilées sur téléphone (≤ 760 px).
   Positions, profondeur et opacité sont posées en ligne par le script ; ici la scène, les transitions et la navigation.
   Sans script (.onglets-actifs absent) : la barre est masquée et la grille reste telle quelle. */
.onglets-barre { display: none; }
.onglets-actifs .onglets-panneaux { display: block; position: relative; perspective: 1400px; transform-style: preserve-3d; overflow-x: clip; overflow-y: visible; margin: 8px 0 0; padding-top: 6px; }
.onglets-actifs .onglets-panneaux > .carte {
  position: absolute; top: 6px; left: 50%; width: min(500px, 54%); margin: 0; padding: 32px 36px; box-sizing: border-box;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease, box-shadow .4s ease, filter .5s ease !important;
  backface-visibility: hidden; will-change: transform;
}
/* cartes voisines : en retrait, cliquables pour venir au centre */
.onglets-actifs .onglets-panneaux > .carte:not(.carrousel-actif) { cursor: pointer; filter: saturate(.55) brightness(.97); }
.onglets-actifs .onglets-panneaux > .carte:not(.carrousel-actif) .lien-fleche { visibility: hidden; }
.onglets-actifs .onglets-panneaux > .carte.carrousel-actif { box-shadow: 0 22px 50px rgba(14, 42, 71, .18), 0 2px 6px rgba(14, 42, 71, .08); }
.onglets-actifs .onglets-panneaux .titre-prestation { font-size: 1.45rem; }
.onglets-actifs .onglets-panneaux p { font-size: 1rem; margin-bottom: 18px; }
/* navigation sous les cartes : ← boutons de prestation → */
.carrousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.onglets-actifs .onglets-barre { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
.onglet { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .88rem; line-height: 1.2; color: var(--texte-doux); cursor: pointer; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, transform .25s; }
@media (hover: hover) { .onglet:hover { border-color: var(--orange); color: var(--bleu); } }
.onglet[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: var(--blanc); }
.onglet:focus-visible, .carrousel-fleche:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.carrousel-fleche { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--bleu); color: var(--blanc); cursor: pointer; transition: background .25s, transform .25s; }
.carrousel-fleche svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .carrousel-fleche:hover { background: var(--orange); transform: scale(1.08); } }
.carrousel-fleche:active { transform: scale(.94); }
/* téléphone : pile de cartes, boutons de prestation en ruban défilant */
@media (max-width: 760px) {
  .onglets-actifs .onglets-panneaux { perspective: none; overflow: visible; }
  .onglets-actifs .onglets-panneaux > .carte { width: calc(100% - 20px); padding: 24px 20px; transform-origin: 50% 0; }
  .onglets-actifs .onglets-panneaux > .carte:not(.carrousel-actif) { filter: none; }
  .onglets-actifs .onglets-panneaux .titre-prestation { font-size: 1.25rem; }
  .carrousel-nav { gap: 8px; margin-top: 22px; }
  .onglets-actifs .onglets-barre { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; position: relative; padding: 2px; }
  .onglets-actifs .onglets-barre::-webkit-scrollbar { display: none; }
  .onglet { font-size: .82rem; padding: 7px 12px; }
  .carrousel-fleche { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .onglets-actifs .onglets-panneaux > .carte { transition: opacity .2s ease !important; } }

/* ===== Schéma en cercle : ALTENSIA au centre des acteurs (coordonner.html) ===== */
.acteurs-cercle { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; margin: 28px auto 8px; }
.acteurs-cercle .ac-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.acteurs-cercle .anneau-ext { fill: none; stroke: var(--gris-trait); stroke-width: 1.2; stroke-dasharray: 2 5; opacity: .7; vector-effect: non-scaling-stroke; }
.acteurs-cercle .rayon { stroke: var(--bordure); stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.acteurs-cercle .flux { stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.2 5.5; vector-effect: non-scaling-stroke; animation: ac-flux 2.4s linear infinite; }
.acteurs-cercle .flux.r2, .acteurs-cercle .flux.r4 { animation-direction: reverse; }
@keyframes ac-flux { to { stroke-dashoffset: -13.4; } }
.acteurs-cercle .ac-centre {
  position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--bleu); color: var(--blanc); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6%; box-shadow: 0 0 0 10px rgba(242, 106, 27, .12), 0 0 0 1px var(--orange), 0 18px 40px rgba(14, 42, 71, .28); z-index: 2;
}
.acteurs-cercle .ac-centre h3 { color: var(--blanc); font-size: 1.25rem; letter-spacing: .06em; margin: 0 0 8px; }
.acteurs-cercle .ac-centre p { color: #C9D4E0; font-size: .86rem; line-height: 1.45; margin: 0; }
.acteurs-cercle .ac-acteurs { list-style: none; margin: 0; padding: 0; }
.acteurs-cercle .ac-acteur {
  position: absolute; width: 30%; transform: translate(-50%, -50%); z-index: 3;
  background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange); border-radius: var(--rayon);
  padding: 12px 14px; text-align: center; box-shadow: var(--ombre); transition: background .3s, border-color .3s, transform .3s, box-shadow .3s;
}
.acteurs-cercle .ac-acteur h3 { font-size: .95rem; margin: 0 0 4px; transition: color .3s; }
.acteurs-cercle .ac-acteur p { font-size: .84rem; color: var(--texte-doux); line-height: 1.45; margin: 0; transition: color .3s; }
.acteurs-cercle .a1 { left: 50%;   top: 12%; }
.acteurs-cercle .a2 { left: 86.1%; top: 38.3%; }
.acteurs-cercle .a3 { left: 72.3%; top: 80.7%; }
.acteurs-cercle .a4 { left: 27.7%; top: 80.7%; }
.acteurs-cercle .a5 { left: 13.9%; top: 38.3%; }
@media (hover: hover) {
  .acteurs-cercle .ac-acteur:hover { background: var(--bleu); border-color: var(--bleu); border-top-color: var(--orange); transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 16px 32px rgba(14, 42, 71, .28); }
  .acteurs-cercle .ac-acteur:hover h3 { color: var(--blanc); }
  .acteurs-cercle .ac-acteur:hover p { color: #DCE4EE; }
  .acteurs-cercle:has(.a1:hover) .rayon.r1, .acteurs-cercle:has(.a2:hover) .rayon.r2, .acteurs-cercle:has(.a3:hover) .rayon.r3,
  .acteurs-cercle:has(.a4:hover) .rayon.r4, .acteurs-cercle:has(.a5:hover) .rayon.r5 { stroke: var(--orange); }
}
@media (max-width: 960px) and (min-width: 641px) {
  .acteurs-cercle .ac-acteur { width: 32%; padding: 10px; }
  .acteurs-cercle .ac-acteur h3 { font-size: .88rem; }
  .acteurs-cercle .ac-acteur p { font-size: .78rem; }
  .acteurs-cercle .ac-centre p { font-size: .78rem; }
}
/* téléphone : ALTENSIA en tête, les acteurs reliés en dessous par un fil */
@media (max-width: 640px) {
  .acteurs-cercle { aspect-ratio: auto; max-width: none; }
  .acteurs-cercle .ac-liens { display: none; }
  .acteurs-cercle .ac-centre { position: relative; left: auto; top: auto; transform: none; width: 184px; padding: 18px; margin: 12px auto 0; }
  .acteurs-cercle .ac-centre p { font-size: .8rem; }
  .acteurs-cercle .ac-acteurs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 28px; }
  .acteurs-cercle .ac-acteurs::before { content: ""; position: absolute; left: 50%; top: 0; height: 28px; border-left: 2px dashed var(--orange); }
  .acteurs-cercle .ac-acteur { position: static; width: auto; transform: none; }
  .acteurs-cercle .a5 { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .acteurs-cercle .flux { animation: none; } .acteurs-cercle .ac-acteur { transition: none; } }
/* variante « écosystème » (controler.html) : les anneaux tournent, des points orange gravitent autour de l'installation */
.acteurs-cercle.ecosysteme .anneau-ext { animation: eco-tour 90s linear infinite; transform-origin: 50px 50px; }
.acteurs-cercle.ecosysteme .anneau-int { fill: none; stroke: var(--orange); stroke-width: 1; stroke-dasharray: 1 6; opacity: .45; vector-effect: non-scaling-stroke; transform-origin: 50px 50px; animation: eco-tour 60s linear infinite reverse; }
.acteurs-cercle.ecosysteme .orbite { transform-origin: 50px 50px; animation: eco-tour 18s linear infinite; }
.acteurs-cercle.ecosysteme .orbite.lente { animation-duration: 28s; animation-direction: reverse; }
.acteurs-cercle.ecosysteme .orbite circle { fill: var(--orange); }
.acteurs-cercle.ecosysteme .ac-centre { animation: eco-pouls 4s ease-in-out infinite; }
.acteurs-cercle.ecosysteme .ac-centre h3 { font-size: 1.05rem; letter-spacing: .02em; }
.acteurs-cercle.ecosysteme .ac-acteur { animation: eco-flotte 6s ease-in-out infinite; }
.acteurs-cercle.ecosysteme .a2 { animation-delay: -1.2s; } .acteurs-cercle.ecosysteme .a3 { animation-delay: -2.4s; }
.acteurs-cercle.ecosysteme .a4 { animation-delay: -3.6s; } .acteurs-cercle.ecosysteme .a5 { animation-delay: -4.8s; }
@media (hover: hover) { .acteurs-cercle.ecosysteme .ac-acteur:hover { animation-play-state: paused; } }
@keyframes eco-tour { to { transform: rotate(360deg); } }
/* variante à six volets (avant-projet-installateurs.html) : hexagone, cartes un peu plus étroites */
/* ===== Bulles (actualite-formation-encadrement.html) : idées clés en cercles flottants, pour alléger la lecture ===== */
ul.bulles { list-style: none; margin: 36px auto 8px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 22px; max-width: 980px; }
.bulle {
  width: 190px; aspect-ratio: 1; margin: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; padding: 22px; box-sizing: border-box; background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre);
  animation: eco-flotte 6s ease-in-out infinite; transition: background .3s, color .3s, border-color .3s, box-shadow .3s, scale .3s;
}
.bulle:nth-child(2n) { animation-delay: -2s; } .bulle:nth-child(3n) { animation-delay: -4s; }
.bulle strong { color: var(--bleu); font-size: 1rem; font-weight: 500; line-height: 1.25; transition: color .3s; }
.bulle span { color: var(--texte-doux); font-size: .84rem; line-height: 1.4; transition: color .3s; }
.bulle.alerte { border: 2px solid var(--orange); background: #FFF6F0; }
.bulle.coeur { width: 230px; background: var(--bleu); border: 0; box-shadow: 0 0 0 10px rgba(242, 106, 27, .12), 0 0 0 1px var(--orange), 0 18px 40px rgba(14, 42, 71, .28); animation: eco-pouls 4s ease-in-out infinite; }
.bulle.coeur strong { color: var(--blanc); font-size: 1.35rem; }
.bulle.coeur span { color: #C9D4E0; }
.bulles-textes .bulle { width: 230px; padding: 26px; }
.bulles-textes .bulle span:not(.ref) { font-size: .8rem; }
.bulle .ref { font-family: var(--an-mono, monospace); font-size: .72rem !important; color: var(--orange-fonce) !important; letter-spacing: .02em; }
.bulles-textes .bulle.pays { border-top: 3px solid var(--orange); }
@media (hover: hover) {
  .bulle:not(.coeur):hover { background: var(--bleu); border-color: var(--bleu); scale: 1.06; box-shadow: 0 16px 34px rgba(14, 42, 71, .28); animation-play-state: paused; }
  .bulle:not(.coeur):hover strong { color: var(--blanc); }
  .bulle:not(.coeur):hover span { color: #DCE4EE; }
  .bulle:not(.coeur):hover .ref { color: #FFB27F !important; }
}
.bulles-suite { max-width: 760px; margin: 28px auto 0; text-align: center; }
.bulles-suite p { color: var(--texte-doux); }
.bulles-suite strong { color: var(--bleu); font-weight: 500; }
@media (max-width: 640px) {
  ul.bulles { gap: 12px; }
  .bulle, .bulles-textes .bulle { width: calc(50% - 6px); padding: 14px; }
  .bulle.coeur { width: 100%; max-width: 230px; order: -1; }
  .bulle strong { font-size: .9rem; } .bulle span { font-size: .76rem; }
  .bulles-textes .bulle { aspect-ratio: auto; border-radius: 18px; min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .bulle, .bulle.coeur { animation: none; } }
/* écosystème illustré de croquis (actualite-audit-protections-collectives.html) : vignette ronde dans chaque carte */
.acteurs-cercle.photos .ac-acteur { padding: 10px 12px 12px; }
.acteurs-cercle.photos .eco-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; display: block; margin: -36px auto 6px; border: 3px solid var(--blanc); box-shadow: 0 0 0 2px var(--orange), 0 6px 14px rgba(14, 42, 71, .2); background: var(--blanc); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) { .acteurs-cercle.photos .ac-acteur:hover .eco-photo { transform: scale(1.5); } }
.acteurs-cercle.photos .ac-acteur p { font-size: .78rem; }
@media (max-width: 640px) { .acteurs-cercle.photos .ac-acteurs { row-gap: 40px; padding-top: 50px; } }
/* questions en bulles arrondies (même page) */
ul.bulles-questions { max-width: 1120px; }
@media (max-width: 1180px) { ul.bulles-questions { max-width: 560px; } }   /* 4 de front, sinon 2 × 2 (jamais 3 + 1) */
ul.bulles-questions.bulles-cinq { max-width: 830px; }   /* 5 bulles : 3 puis 2 (actualite-garde-corps-nf-e85-015.html) */
@media (max-width: 1180px) { ul.bulles-questions.bulles-cinq { max-width: 560px; } }
.bulles-questions .bulle .ref { margin: 2px 0; }
/* accueil, bandeau « actualité » : « Lire l'article » en bouton orange, le quiz en petit lien discret dessous */
.bandeau-actu-lien.bandeau-actu-quiz { font-size: .8rem; color: var(--texte-doux); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 106, 27, .5); }
@media (hover: hover) { .bandeau-actu-lien.bandeau-actu-quiz:hover { color: var(--orange-fonce); } }
/* ===== Articles longs (gabarit alt-*) allégés : sommaire en pastilles, définitions en cartes, erreurs en bulles ===== */
.art-corps .alt-toc ol { columns: auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; counter-reset: toc; }
.art-corps .alt-toc li { counter-increment: toc; margin: 0; }
.art-corps .alt-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--bordure); font-size: .88rem; transition: border-color .2s, background .2s, color .2s; }
.art-corps .alt-toc a::before { content: counter(toc); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: var(--blanc); font-size: .72rem; }
@media (hover: hover) { .art-corps .alt-toc a:hover { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); text-decoration: none; } }
.art-corps ul.alt-bulles-liste { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.art-corps ul.alt-bulles-liste li { margin: 0; padding: 14px 16px 14px 18px; background: var(--blanc); border: 1px solid var(--bordure); border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; box-shadow: var(--ombre); font-size: .92rem; line-height: 1.55; color: var(--texte-doux); transition: transform .25s, box-shadow .25s; }
.art-corps ul.alt-bulles-liste li > strong:first-child { color: var(--bleu); font-weight: 500; font-size: 1rem; }
@media (hover: hover) { .art-corps ul.alt-bulles-liste li:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(14, 42, 71, .14); } }
.art-corps ul.alt-check.bulles-erreurs { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 18px; }
.art-corps ul.alt-check.bulles-erreurs li { width: 180px; aspect-ratio: 1; margin: 0; padding: 22px 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .84rem; line-height: 1.4; color: var(--bleu); background: #FFF6F0; border: 2px solid var(--orange); box-shadow: var(--ombre); animation: eco-flotte 6s ease-in-out infinite; position: relative; }
.art-corps ul.alt-check.bulles-erreurs li:nth-child(2n) { animation-delay: -2s; } .art-corps ul.alt-check.bulles-erreurs li:nth-child(3n) { animation-delay: -4s; }
.art-corps ul.alt-check.bulles-erreurs li::before { content: "!"; left: 50%; top: -12px; translate: -50% 0; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--orange); color: var(--blanc); font-weight: 500; font-size: .85rem; display: grid; place-items: center; }
@media (hover: hover) { .art-corps ul.alt-check.bulles-erreurs li:hover { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); animation-play-state: paused; } }
@media (max-width: 640px) { .art-corps ul.alt-check.bulles-erreurs li { width: calc(50% - 9px); padding: 16px 12px; font-size: .78rem; } }
@media (prefers-reduced-motion: reduce) { .art-corps ul.alt-check.bulles-erreurs li { animation: none; } }
.art-corps .acteurs-cercle .ac-acteur h3 { font-size: .95rem; margin: 0 0 4px; }
.art-corps .acteurs-cercle .ac-acteur p { font-size: .8rem; margin: 0; }
.art-corps .acteurs-cercle .ac-centre h3 { color: var(--blanc); }

/* ===== Schémas techniques en perspective isométrique (articles PIR/PIRL, crinoline, échelle, saut de loup) =====
   Générés par script (vue isométrique) : acier bleu marine, sécurité en orange, cotes grises, étiquettes à pastille. */
.s3d-figure { background: linear-gradient(180deg, #FFFFFF, #F4F7FA); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 12px 10px 4px; }
svg.s3d { width: 100%; height: auto; display: block; font-family: var(--police); }
.s3d .s3d-sol { fill: #E9EEF4; stroke: #D3DCE6; stroke-width: 1; }
.s3d .s3d-ombre { fill: rgba(14, 42, 71, .10); }
.s3d .s3d-mur { fill: #F1F4F8; stroke: #9AA8B8; stroke-width: 1; }
.s3d .s3d-joint { fill: none; stroke: #D3DCE6; stroke-width: 1; }
.s3d .s3d-face1 { fill: #C9D4E0; stroke: #0E2A47; stroke-width: 1; stroke-linejoin: round; }
.s3d .s3d-face2 { fill: #DCE4EE; stroke: #0E2A47; stroke-width: 1; stroke-linejoin: round; }
.s3d .s3d-face3 { fill: #F7F9FB; stroke: #0E2A47; stroke-width: 1.1; stroke-linejoin: round; }
.s3d .s3d-acier { fill: none; stroke: #0E2A47; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.s3d .s3d-barreau { fill: none; stroke: #0E2A47; stroke-width: 1.8; stroke-linecap: round; }
.s3d .s3d-secu { fill: none; stroke: #F26A1B; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s3d .s3d-secu.s3d-fin { stroke-width: 1.6; }
.s3d .s3d-secu-face { fill: #F26A1B; fill-opacity: .9; stroke: #C4500C; stroke-width: .8; }
.s3d .s3d-roue { fill: #0E2A47; } .s3d .s3d-moyeu { fill: #9AA8B8; }
.s3d .s3d-sabot { fill: #0E2A47; }
.s3d .s3d-angle { fill: none; stroke: #F26A1B; stroke-width: 1.6; stroke-dasharray: 3 3; }
.s3d .s3d-cote { stroke: #4A5563; stroke-width: 1.1; }
.s3d .s3d-fleche { fill: #4A5563; }
.s3d .s3d-rappel { stroke: #9AA8B8; stroke-width: .8; stroke-dasharray: 2 3; }
.s3d .s3d-renvoi { fill: none; stroke: #4A5563; stroke-width: .9; }
.s3d .s3d-pastille { fill: #F26A1B; stroke: #FFFFFF; stroke-width: 1.5; }
.s3d .s3d-label { fill: #0E2A47; font-size: 13px; font-weight: 500; }
.s3d .s3d-cote-txt { fill: #0E2A47; font-size: 12.5px; font-weight: 500; }
.s3d .s3d-doux { fill: #4A5563; font-weight: 400; font-size: 11.5px; }
.s3d .s3d-orange { fill: #C4500C; }
.s3d .s3d-transp { fill-opacity: .45; stroke-opacity: .6; }

/* articles avec photo en tête : le sceau en filigrane ne passe pas derrière la photo */
.ac-article .hero-page:has(.ac-hero-photo) .hero-page-sceau { display: none; }
.bulles-questions .bulle { width: 250px; aspect-ratio: auto; min-height: 250px; border-radius: 125px 125px 28px 28px; padding: 34px 24px 24px; justify-content: flex-start; position: relative; }
.bulles-questions .bulle .q { position: absolute; top: -18px; left: 50%; translate: -50% 0; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--blanc) !important; font-size: 1.2rem !important; font-weight: 500; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(242, 106, 27, .35); }
.bulles-questions .bulle strong { font-size: 1.05rem; margin-top: 6px; }
.bulles-questions .bulle .ex { font-size: .76rem !important; color: var(--orange-fonce) !important; margin-top: 4px; }
.bulles-questions .bulle .ex b { font-weight: 500; }
.bulles-questions .bulle.cle { border: 2px solid var(--orange); }
@media (hover: hover) { .bulles-questions .bulle:hover .ex { color: #FFB27F !important; } }
@media (max-width: 640px) { .bulles-questions .bulle { width: 100%; min-height: 0; border-radius: 22px; padding-top: 30px; } ul.bulles-questions { row-gap: 30px; } }
/* pictogramme ou code de module dans les cartes d'écosystème, détail repliable sous l'écosystème */
.acteurs-cercle .ac-acteur .eco-picto { width: 26px; height: 26px; color: var(--orange); display: block; margin: 0 auto 4px; }
@media (hover: hover) { .acteurs-cercle .ac-acteur:hover .eco-picto { color: #FFB27F; } }
.acteurs-cercle .ac-acteur .eco-code { display: inline-block; font-family: var(--an-mono, monospace); font-size: .72rem; color: var(--blanc); background: var(--orange); border-radius: 3px; padding: 1px 6px; margin-bottom: 6px; }
details.eco-detail { margin-top: 28px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); }
details.eco-detail > summary { cursor: pointer; padding: 14px 18px; color: var(--bleu); font-weight: 500; list-style: none; display: flex; align-items: center; gap: 10px; }
details.eco-detail > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: var(--blanc); font-size: .95rem; line-height: 1; transition: transform .3s; }
details.eco-detail[open] > summary::before { transform: rotate(45deg); }
details.eco-detail > summary::-webkit-details-marker { display: none; }
details.eco-detail > .ac-echelle { padding: 0 18px 18px; }

/* variante illustrée (concevoir.html) : bâtiment dessiné au centre, pictogramme et lien dans chaque carte */
.acteurs-cercle.illustre .ac-centre .apmr-eco-batiment { width: 66%; margin-bottom: 6px; }
.acteurs-cercle.illustre .ac-centre h3 { font-size: 1.05rem; margin-bottom: 4px; }
.acteurs-cercle.illustre .ac-acteur { padding: 0; }
.acteurs-cercle.illustre .ac-acteur a { display: block; padding: 12px 14px; color: inherit; text-decoration: none; }
.acteurs-cercle.illustre .ac-acteur svg { width: 26px; height: 26px; stroke: var(--orange); margin: 0 auto 4px; display: block; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), stroke .3s; }
.acteurs-cercle.illustre .ac-acteur a::after { content: " →"; display: block; font-size: .8rem; color: var(--orange); opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .3s; }
@media (hover: hover) {
  .acteurs-cercle.illustre .ac-acteur:hover svg { transform: scale(1.18) rotate(-6deg); }
  .acteurs-cercle.illustre .ac-acteur:hover a::after { opacity: 1; transform: none; }
}
.acteurs-cercle.illustre .ac-acteur a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (min-width: 641px) { .acteurs-cercle.six .ac-acteur { width: 27%; } .acteurs-cercle.quatre .ac-acteur { width: 32%; } }
@media (hover: hover) { .acteurs-cercle.quatre:has(.a1:hover) .rayon.r1, .acteurs-cercle.quatre:has(.a2:hover) .rayon.r2, .acteurs-cercle.quatre:has(.a3:hover) .rayon.r3, .acteurs-cercle.quatre:has(.a4:hover) .rayon.r4 { stroke: var(--orange); } }
.acteurs-cercle.six .a1 { left: 50%;   top: 12%; }
.acteurs-cercle.six .a2 { left: 84%;   top: 31%; }
.acteurs-cercle.six .a3 { left: 84%;   top: 69%; }
.acteurs-cercle.six .a4 { left: 50%;   top: 88%; }
.acteurs-cercle.six .a5 { left: 16%;   top: 69%; }
.acteurs-cercle.six .a6 { left: 16%;   top: 31%; animation-delay: -6s; }
@media (hover: hover) { .acteurs-cercle.six:has(.a6:hover) .rayon.r6 { stroke: var(--orange); } }
@media (max-width: 640px) { .acteurs-cercle.six .a5 { grid-column: auto; } }

/* ===== Écosystème APMR (audit-risques.html) : bâtiment au centre, zones en orbite, apports aux angles =====
   Repère : viewBox 100 × 70, la scène garde ce rapport ; positions en % de la largeur (x) et de la hauteur (y / 70). */
.apmr-eco { position: relative; width: 100%; aspect-ratio: 100 / 70; margin: 8px 0 6px; }
.apmr-eco-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.apmr-eco .eco-anneau { fill: none; stroke: var(--gris-trait); stroke-width: 1.2; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; opacity: .7; animation: eco-defile 30s linear infinite; }
.apmr-eco .eco-anneau-int { stroke: var(--orange); opacity: .4; animation-direction: reverse; animation-duration: 22s; }
.apmr-eco .eco-lien { stroke: var(--bordure); stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.apmr-eco .eco-flux { stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.2 5.5; vector-effect: non-scaling-stroke; animation: ac-flux 2.4s linear infinite; }
.apmr-eco .eco-flux.f2 { animation-delay: -.6s; } .apmr-eco .eco-flux.f3 { animation-delay: -1.2s; } .apmr-eco .eco-flux.f4 { animation-delay: -1.8s; }
@keyframes eco-defile { to { stroke-dashoffset: -140; } }
/* le bâtiment */
.apmr-eco-centre {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2;
  border-radius: 50%; background: var(--bleu); color: var(--blanc); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4%;
  box-shadow: 0 0 0 10px rgba(242, 106, 27, .12), 0 0 0 1px var(--orange), 0 18px 40px rgba(14, 42, 71, .28); animation: eco-pouls 4s ease-in-out infinite;
}
.apmr-eco-batiment { width: 72%; height: auto; margin-bottom: 4px; overflow: visible; }
.apmr-eco-batiment path { fill: none; stroke: #DCE4EE; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.apmr-eco-batiment .toit { stroke: var(--orange); }
.apmr-eco-batiment .pv { fill: rgba(242, 106, 27, .35); stroke: var(--orange); stroke-width: 1; }
.apmr-eco-batiment .lanterneau { stroke: #FFB27F; }
.apmr-eco-batiment .passerelle { stroke-width: 1.1; }
.apmr-eco-centre h3 { color: var(--blanc); font-size: 1.05rem; margin: 0 0 2px; }
.apmr-eco-centre p { color: #C9D4E0; font-size: .8rem; line-height: 1.35; margin: 0; }
/* zones concernées : pastilles sur l'orbite */
.apmr-eco ul.apmr-eco-zones { list-style: none; margin: 0; padding: 0; }
.apmr-eco-zones li {
  position: absolute; transform: translate(-50%, -50%); z-index: 3; margin: 0; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--orange); color: var(--bleu); font-size: .84rem; font-weight: 500;
  box-shadow: 0 4px 14px rgba(14, 42, 71, .1); animation: eco-flotte 6s ease-in-out infinite; transition: background .25s, color .25s;
}
.apmr-eco-zones li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.apmr-eco-zones .z5 { left: 50%;   top: 18.6%; }
.apmr-eco-zones .z1 { left: 76.5%; top: 42%; animation-delay: -1.2s; }
.apmr-eco-zones .z4 { left: 66%;   top: 80%; animation-delay: -2.4s; }
.apmr-eco-zones .z3 { left: 34%;   top: 80%; animation-delay: -3.6s; }
.apmr-eco-zones .z2 { left: 21.5%; top: 42%; animation-delay: -4.8s; }
/* variante à quatre situations (bloc Industrie) : haut, droite, bas, gauche ; libellés longs sur deux lignes */
.apmr-eco.quatre .apmr-eco-zones li { white-space: normal; text-align: center; max-width: 22%; line-height: 1.3; }
.apmr-eco.quatre .apmr-eco-zones li::before { display: none; }
.apmr-eco.quatre .apmr-eco-zones .q1 { left: 50%; top: 15%; max-width: 46%; white-space: nowrap; }
.apmr-eco.quatre .apmr-eco-zones .q2 { left: 82%; top: 50%; animation-delay: -1.5s; }
.apmr-eco.quatre .apmr-eco-zones .q3 { left: 50%; top: 86%; max-width: 46%; white-space: nowrap; animation-delay: -3s; }
.apmr-eco.quatre .apmr-eco-zones .q4 { left: 18%; top: 50%; animation-delay: -4.5s; }
/* apports de l'APMR : cartes aux quatre angles */
.apmr-eco-apport {
  position: absolute; width: 24%; z-index: 3; padding: 14px 16px; background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange);
  border-radius: var(--rayon); box-shadow: var(--ombre); transition: transform .3s, box-shadow .3s, background .3s, border-color .3s;
}
.apmr-eco-apport.c1 { left: 0; top: 0; } .apmr-eco-apport.c2 { right: 0; top: 0; }
.apmr-eco-apport.c3 { left: 0; bottom: 0; } .apmr-eco-apport.c4 { right: 0; bottom: 0; }
.apmr-eco-apport svg { width: 26px; height: 26px; stroke: var(--orange); margin-bottom: 6px; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.apmr-eco-apport h4 { margin: 0 0 4px; font-size: .9rem; line-height: 1.3; color: var(--bleu); transition: color .3s; }
.apmr-eco-apport p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--texte-doux); transition: color .3s; }
@media (hover: hover) {
  .apmr-eco-apport:hover { background: var(--bleu); border-color: var(--bleu); border-top-color: var(--orange); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(14, 42, 71, .28); }
  .apmr-eco-apport:hover h4 { color: var(--blanc); }
  .apmr-eco-apport:hover p { color: #DCE4EE; }
  .apmr-eco-apport:hover svg { transform: scale(1.15) rotate(-6deg); }
  .apmr-eco:has(.apmr-eco-apport:hover) .eco-lien { stroke: #F6C6A8; }
  .apmr-eco-zones li:hover { background: var(--orange); color: var(--blanc); animation-play-state: paused; }
  .apmr-eco-zones li:hover::before { background: var(--blanc); }
}
.apmr-eco-legende { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--texte-doux); margin: 14px 0 0; }
.apmr-eco-legende span { display: inline-block; width: 12px; height: 12px; }
.apmr-eco-legende .pastille-zone { border-radius: 50%; border: 1px solid var(--orange); background: var(--blanc); }
.apmr-eco-legende .pastille-apport { border-top: 3px solid var(--orange); background: var(--blanc); box-shadow: 0 0 0 1px var(--bordure) inset; margin-left: 10px; }
/* colonne étroite et téléphone : bâtiment, zones en ruban, apports en grille */
@media (max-width: 1100px) {
  .apmr-eco { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .apmr-eco-liens { display: none; }
  .apmr-eco-centre { position: relative; left: auto; top: auto; transform: none; width: 220px; grid-column: 1 / -1; justify-self: center; margin: 12px 0 4px; }
  .apmr-eco ul.apmr-eco-zones { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
  .apmr-eco-zones li, .apmr-eco.quatre .apmr-eco-zones li[class] { position: static; transform: none; white-space: normal; max-width: none; }
  .apmr-eco-apport { position: static; width: auto; }
}
@media (max-width: 560px) { .apmr-eco { grid-template-columns: 1fr; } .apmr-eco-zones li { animation: none; } }
@media (prefers-reduced-motion: reduce) { .apmr-eco .eco-anneau, .apmr-eco .eco-flux, .apmr-eco-centre, .apmr-eco-zones li { animation: none; } }
@keyframes eco-pouls { 50% { box-shadow: 0 0 0 18px rgba(242, 106, 27, .08), 0 0 0 1px var(--orange), 0 18px 40px rgba(14, 42, 71, .28); } }
@keyframes eco-flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 640px) { .acteurs-cercle.ecosysteme .ac-acteur { animation: none; } }
@media (prefers-reduced-motion: reduce) { .acteurs-cercle.ecosysteme .anneau-ext, .acteurs-cercle.ecosysteme .anneau-int, .acteurs-cercle.ecosysteme .orbite, .acteurs-cercle.ecosysteme .ac-centre, .acteurs-cercle.ecosysteme .ac-acteur { animation: none; } }

/* ===== Les cinq types d'ancrage EN 795 : cartes illustrées + filtre EPI / fixé à demeure (outils/planches_fondamentaux.py) ===== */
.ta-types > input { position: absolute; opacity: 0; pointer-events: none; }
.ta-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ta-filtres label { cursor: pointer; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--bordure); background: var(--blanc);
  font-size: .86rem; color: var(--bleu); transition: background .2s, color .2s, border-color .2s; }
.ta-filtres label:hover { border-color: var(--bleu); }
#ta-tous:checked ~ .ta-filtres label[for="ta-tous"], #ta-f-ouvrage:checked ~ .ta-filtres label[for="ta-f-ouvrage"] { background: var(--bleu); border-color: var(--bleu); color: #fff; }
#ta-f-epi:checked ~ .ta-filtres label[for="ta-f-epi"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.ta-types > input:focus-visible ~ .ta-filtres { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 999px; }
.ta-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ta-carte { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bordure);
  border-top: 3px solid var(--bleu); border-radius: var(--rayon); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, opacity .3s, filter .3s; }
.ta-carte.ta-epi { border-top-color: var(--orange); }
.ta-picto { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 10px;
  background-color: #F7F9FB; background-image: linear-gradient(rgba(110, 139, 168, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .1) 1px, transparent 1px);
  background-size: 14px 14px; border-bottom: 1px solid var(--bordure); }
.ta-picto svg { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ta-carte { animation: ta-entree .6s cubic-bezier(.2, .8, .2, 1) both; }
.ta-carte:nth-child(2) { animation-delay: .08s; } .ta-carte:nth-child(3) { animation-delay: .16s; }
.ta-carte:nth-child(4) { animation-delay: .24s; } .ta-carte:nth-child(5) { animation-delay: .32s; }
@keyframes ta-entree { from { opacity: 0; transform: translateY(14px); } }
.ta-lettre { position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bleu); color: #fff; font: 700 .95rem Montserrat, sans-serif; }
.ta-epi .ta-lettre { background: var(--orange); }
.ta-corps { padding: 14px 16px 18px; }
.ta-statut { display: inline-block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu);
  background: #E8EEF5; border-radius: 3px; padding: 3px 8px; margin-bottom: 10px; }
.ta-epi .ta-statut { color: #A9440B; background: #FDEBDD; }
.ta-corps h3 { font-size: .98rem; line-height: 1.35; color: var(--bleu); margin: 0 0 8px; }
.ta-corps p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--texte-doux); overflow-wrap: anywhere; }
@media (hover: hover) {
  .ta-carte:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(14, 42, 71, .16); }
  .ta-carte:hover .ta-picto svg { transform: scale(1.07) translateY(-2px); }
}
.ta-types:has(#ta-f-epi:checked) .ta-ouvrage, .ta-types:has(#ta-f-ouvrage:checked) .ta-epi { opacity: .28; filter: grayscale(1); transform: scale(.97); }
.ta-types:has(#ta-f-epi:checked) .ta-epi, .ta-types:has(#ta-f-ouvrage:checked) .ta-ouvrage { box-shadow: 0 14px 30px rgba(14, 42, 71, .14); }
.ta-bas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; align-items: stretch; }
.ta-bas .alert { margin: 0; }
.ta-essai { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px;
  background: var(--blanc); border: 1px solid var(--bordure); border-left: 4px solid var(--orange); border-radius: var(--rayon); }
.ta-essai p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--texte-doux); }
.ta-kn { font: 300 2.8rem/1 Montserrat, sans-serif; color: var(--orange); white-space: nowrap; }
.ta-kn small { font-size: .9rem; font-weight: 600; margin-left: 3px; color: var(--bleu); }
@media (max-width: 1180px) { .ta-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ta-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ta-bas { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .ta-grille { grid-template-columns: 1fr; }
  .ta-carte { flex-direction: row; }
  .ta-picto { flex: 0 0 38%; aspect-ratio: auto; min-height: 120px; border-bottom: 0; border-right: 1px solid var(--bordure); }
  .ta-essai { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ta-carte, .ta-picto svg { transition: none; animation: none; } }

/* ===== Force de choc : écosystème EN 363 + jauge (outils/planches_fondamentaux.py) ===== */
.fc-choc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.fc-eco { margin: 0 auto; max-width: 540px; }
.fc-eco .ac-centre h3 { font-size: 1.3rem; letter-spacing: .04em; }
.fc-eco .ac-acteur h3 { font-family: "IBM Plex Mono", monospace; font-size: .86rem; color: var(--orange); }
.fc-eco .ac-acteur p { font-size: .8rem; }
.fc-choc-droite { display: grid; gap: 18px; }
.fc-choc-droite .alert { margin: 0; }
.fc-jauge { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px 22px 18px; box-shadow: var(--ombre); }
.fc-jauge .eyebrow { margin-bottom: 30px; }
.fc-barre { position: relative; display: flex; height: 16px; border-radius: 999px; background: #E9EEF3; }
.fc-zone { height: 100%; }
.fc-ok { flex: 0 0 50%; background: linear-gradient(90deg, #8CC9A4, #2E7D4F); border-radius: 999px 0 0 999px; }
.fc-vigil { flex: 0 0 25%; background: linear-gradient(90deg, #F2B71F, #F26A1B); }
.fc-ko { flex: 1; background: repeating-linear-gradient(45deg, #B3261E 0 6px, #C8463F 6px 12px); border-radius: 0 999px 999px 0; }
.fc-curseur { position: absolute; top: -6px; left: 45%; width: 4px; height: 28px; margin-left: -2px; border-radius: 2px; background: var(--bleu);
  box-shadow: 0 0 0 3px #fff; animation: fc-curseur 2.6s cubic-bezier(.2, .8, .2, 1) .3s both; }
@keyframes fc-curseur { 0% { left: 0; } 60% { left: 82%; } 100% { left: 45%; } }
.fc-repere { position: absolute; top: -26px; transform: translateX(-50%); font-size: .74rem; color: var(--bleu); white-space: nowrap; }
.fc-repere::after { content: ""; position: absolute; left: 50%; top: 18px; height: 28px; border-left: 2px dashed currentColor; }
.fc-r4 { left: 50%; color: #2E7D4F; } .fc-r6 { left: 75%; color: #B3261E; }
.fc-graduation { display: flex; justify-content: space-between; margin-top: 8px; font: .72rem "IBM Plex Mono", monospace; color: var(--texte-doux); }
.fc-lecture { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.fc-lecture li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: start; }
.fc-lecture li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; margin-top: 5px; }
.fc-l-ok::before { background: #2E7D4F; } .fc-l-ko::before { background: #B3261E; }
.fc-lecture p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--texte-doux); }
@media (max-width: 960px) { .fc-choc { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fc-curseur { animation: none; } }

/* ===== Trois usages : retenue, arrêt, maintien (cartes illustrées) ===== */
.us-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: us; }
.us-carte { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--bordure); border-top: 4px solid #2E7D4F;
  border-radius: var(--rayon); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
  animation: ta-entree .6s cubic-bezier(.2, .8, .2, 1) both; }
.us-carte:nth-child(2) { border-top-color: var(--orange); animation-delay: .1s; }
.us-carte:nth-child(3) { border-top-color: #4A88C7; animation-delay: .2s; }
.us-visuel { position: relative; aspect-ratio: 300 / 170; border-bottom: 1px solid var(--bordure); background-color: #F7F9FB;
  background-image: linear-gradient(rgba(110, 139, 168, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 168, .1) 1px, transparent 1px);
  background-size: 14px 14px; }
.us-visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.us-num { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #2E7D4F; color: #fff; font: 700 .95rem Montserrat, sans-serif; }
.us-arret .us-num { background: var(--orange); } .us-maintien .us-num { background: #4A88C7; }
.us-corps { padding: 16px 18px 20px; }
.us-corps h3 { font-size: 1.12rem; color: var(--bleu); margin: 0 0 12px; }
.us-corps dl { margin: 0; display: grid; gap: 4px; }
.us-corps dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-top: 8px; }
.us-corps dd { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--texte-doux); }
@media (hover: hover) {
  .us-carte:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(14, 42, 71, .16); }
  .us-carte:hover .us-visuel svg { transform: scale(1.05); }
}
@media (max-width: 900px) { .us-grille { grid-template-columns: 1fr; } .us-visuel { aspect-ratio: 300 / 150; } }
@media (prefers-reduced-motion: reduce) { .us-carte, .us-visuel svg { transition: none; animation: none; } }

/* ==========================================================================
   Recherche : champ au centre du bandeau du haut (ordinateur), loupe dans l'en-tête (mobile)
   Script : js/recherche.js
   ========================================================================== */
.recherche { position: relative; flex: 0 1 380px; min-width: 200px; display: flex; align-items: center; margin: 0 auto; }
.recherche > svg { position: absolute; left: 11px; width: 15px; height: 15px; color: #9DB0C4; pointer-events: none; transition: color .2s; }
.recherche input {
  width: 100%; height: 28px; padding: 0 34px 0 32px; border-radius: 40px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: var(--blanc);
  font: inherit; font-size: .8rem; font-weight: 400; letter-spacing: .01em;
  transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.recherche input::placeholder { color: #9DB0C4; opacity: 1; }
.recherche input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
@media (hover: hover) { .recherche input:hover { border-color: rgba(255,255,255,.4); } }
.recherche input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.12); }
.recherche:focus-within > svg { color: var(--orange); }
.recherche kbd {
  position: absolute; right: 9px; font: inherit; font-size: .66rem; line-height: 16px; padding: 0 5px;
  color: #9DB0C4; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; pointer-events: none;
}
.recherche:focus-within kbd { display: none; }

/* Panneau de résultats : même habillage que le menu déroulant « Appui technique » */
.recherche-panneau {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 61;
  width: min(560px, 92vw); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange);
  border-radius: var(--rayon); box-shadow: var(--ombre-forte);
  color: var(--texte); text-align: left; white-space: normal; letter-spacing: normal;
}
.recherche-panneau[hidden] { display: none; }
.recherche-entete { padding: 10px 16px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); border-bottom: 1px solid var(--bordure); }
.recherche-entete b { color: var(--bleu); font-weight: 600; letter-spacing: .02em; text-transform: none; }
.bandeau-haut .recherche-panneau a, .recherche-panneau a { color: var(--texte); text-decoration: none; }
.recherche-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--gris-fond); transition: background .15s, box-shadow .15s; }
.recherche-item:last-child { border-bottom: 0; }
.recherche-item[aria-selected="true"] { background: var(--gris-fond); box-shadow: inset 3px 0 0 var(--orange); }
@media (hover: hover) { .recherche-item:hover { background: var(--gris-fond); box-shadow: inset 3px 0 0 var(--orange); } }
.recherche-type { display: inline-flex; align-items: center; gap: 7px; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-fonce); }
.recherche-type::before { content: ""; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid var(--orange); }
.recherche-titre { display: block; margin-top: 3px; color: var(--bleu); font-weight: 600; font-size: .9rem; line-height: 1.3; }
.recherche-extrait { display: block; margin-top: 4px; color: var(--texte-doux); font-size: .8rem; line-height: 1.45; }
.recherche-panneau mark { background: rgba(242,106,27,.16); color: inherit; border-radius: 2px; padding: 0 1px; }
.recherche-titre mark { color: var(--orange-fonce); background: none; padding: 0; }
.recherche-vide { padding: 16px 16px 10px; font-size: .85rem; color: var(--texte-doux); }
.recherche-vide strong { color: var(--bleu); }
.recherche-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 16px; }
.recherche-suggestions button {
  font: inherit; font-size: .76rem; font-weight: 400; padding: 5px 12px; border-radius: 40px; cursor: pointer;
  border: 1px solid var(--bordure); background: var(--blanc); color: var(--bleu); transition: border-color .2s, color .2s;
}
@media (hover: hover) { .recherche-suggestions button:hover { border-color: var(--orange); color: var(--orange-fonce); } }
.recherche-suggestions button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

@media (max-width: 1240px) { .recherche { flex-basis: 280px; } }
@media (max-width: 980px) { .recherche { order: 3; flex: 1 1 100%; margin: 2px 0 4px; } .recherche-panneau { left: 0; transform: none; } }

/* Mobile : loupe dans l'en-tête, recherche en plein écran */
.recherche-loupe { display: none; }
.recherche-mobile[hidden] { display: none; }
@media (max-width: 760px) {
  .recherche-loupe {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto; margin-right: 2px;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--bleu); cursor: pointer;
  }
  .recherche-loupe svg { width: 24px; height: 24px; }
  .recherche-mobile { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--blanc); }
  .recherche-mobile-haut {
    display: flex; align-items: center; gap: 10px; background: var(--bleu);
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  }
  .recherche-mobile .recherche { order: 0; flex: 1; min-width: 0; margin: 0; }
  .recherche-mobile .recherche input { height: 44px; font-size: 16px; padding-left: 38px; }
  .recherche-mobile .recherche > svg { left: 14px; width: 18px; height: 18px; }
  .recherche-mobile .recherche kbd { display: none; }
  .recherche-fermer { flex: none; border: 0; background: none; color: var(--blanc); font: inherit; font-size: .9rem; padding: 10px 2px; cursor: pointer; }
  .recherche-mobile .recherche-panneau {
    position: static; transform: none; width: auto; max-height: none; flex: 1;
    border: 0; border-radius: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom);
  }
  .recherche-mobile .recherche-item { padding: 14px 16px; }
  .recherche-mobile .recherche-titre { font-size: 1rem; }
  .recherche-mobile .recherche-suggestions button { font-size: .85rem; padding: 8px 14px; }
}
