/* ==========================================================================
   ALTENSIA Safety Engineering — feuille de style commune (esquisse)
   ========================================================================== */

:root {
  /* Couleurs relevées sur le fichier du logo */
  --bleu: #0E2A47;          /* bleu principal : titres, en-tête, fonds forts */
  --bleu-2: #1F4E79;        /* bleu secondaire : liens, aplats légers */
  --bleu-3: #2C5F8F;
  --orange: #F26A1B;        /* accent : boutons d'action, numéros, puces */
  --orange-fonce: #D85A10;
  --texte: #111418;
  --texte-doux: #4A5563;
  --gris-trait: #9AA8B8;    /* traits de construction du logo */
  --gris-fond: #F2F4F7;
  --bordure: #DDE3EA;
  --blanc: #FFFFFF;

  --rayon: 4px;
  --ombre: 0 1px 2px rgba(14, 42, 71, .06), 0 4px 16px rgba(14, 42, 71, .06);
  --ombre-forte: 0 2px 4px rgba(14, 42, 71, .08), 0 12px 32px rgba(14, 42, 71, .12);
  --largeur: 1200px;
  --police: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--orange-fonce); } }

h1, h2, h3, h4 { color: var(--bleu); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 300; }
h3 { font-size: 1.15rem; font-weight: 400; }
h4 { font-size: 1rem; font-weight: 400; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .conteneur { padding: 0 16px; } }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em;
  font-family: inherit; font-size: .95rem; font-weight: 400;
  border-radius: var(--rayon); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-orange { background: var(--orange); color: var(--blanc); }
@media (hover: hover) { .btn-orange:hover { background: var(--orange-fonce); color: var(--blanc); } }
.btn-contour { border-color: currentColor; color: var(--bleu); background: transparent; }
@media (hover: hover) { .btn-contour:hover { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); } }
.btn-clair { border-color: rgba(255,255,255,.7); color: var(--blanc); }
@media (hover: hover) { .btn-clair:hover { background: var(--blanc); color: var(--bleu); border-color: var(--blanc); } }

.lien-fleche { font-weight: 400; text-decoration: none; color: var(--bleu-2); }
.lien-fleche::after { content: " →"; transition: margin .15s; }
@media (hover: hover) { .lien-fleche:hover::after { margin-left: 4px; } }

/* ---------- Bandeau supérieur ---------- */
.bandeau-haut { background: var(--bleu); color: #C9D4E0; font-size: .8rem; }
.bandeau-haut .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.bandeau-haut a { color: #E3EAF2; text-decoration: none; }
@media (hover: hover) { .bandeau-haut a:hover { color: var(--blanc); } }
.bandeau-haut .coord { display: flex; gap: 24px; flex-wrap: wrap; }
.bandeau-haut .langues { display: flex; gap: 8px; align-items: center; }
.bandeau-haut .langues .actif { color: var(--blanc); font-weight: 400; }
.selecteur-langues { display: flex; gap: 2px; }
.selecteur-langues a, .selecteur-langues span { padding: 2px 5px; border-radius: 3px; }
@media (hover: hover) { .selecteur-langues a:hover { background: rgba(255,255,255,.1); } }
.selecteur-langues .actif { background: var(--orange); }
.selecteur-langues { align-items: center; }
.selecteur-langues a { display: inline-flex; align-items: center; padding: 4px 5px; }
.drapeau { display: block; width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.selecteur-langues a:not(.actif) .drapeau { opacity: .8; transition: opacity .15s; }
@media (hover: hover) { .selecteur-langues a:hover .drapeau { opacity: 1; } }
@media (max-width: 760px) { .bandeau-haut .masque-mobile { display: none; } }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--bordure); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.entete .logo img { height: 58px; width: auto; }
.nav-principale { display: flex; align-items: center; gap: 28px; }
.nav-principale ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-principale > ul > li { position: relative; }
.nav-principale > ul > li > a {
  display: block; padding: 10px 12px; font-size: .85rem; font-weight: 400; letter-spacing: .06em;
  color: var(--bleu); text-decoration: none; text-transform: uppercase;
}
.nav-principale > ul > li > a[aria-current="page"] { color: var(--orange); }
@media (hover: hover) { .nav-principale > ul > li > a:hover { color: var(--orange); } }

/* Sous-menus */
.sous-menu {
  position: absolute; top: 100%; left: 0; min-width: 290px;
  background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--rayon) var(--rayon); box-shadow: var(--ombre-forte);
  padding: 10px 0; display: block !important;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sous-menu li a { display: block; padding: 8px 20px; font-size: .88rem; color: var(--texte); text-decoration: none; }
.sous-menu li a:hover { background: var(--gris-fond); color: var(--bleu); }
.sous-menu .accroche { padding: 4px 20px 10px; font-size: .75rem; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--bordure); margin-bottom: 6px; }
.nav-principale li:hover > .sous-menu, .nav-principale li:focus-within > .sous-menu { opacity: 1; visibility: visible; transform: none; }
/* après un clic dans un menu déroulant (js/main.js) : refermé jusqu'à ce que la souris quitte l'entrée */
.nav-principale li.menu-clique > .sous-menu, .bandeau-menu.menu-clique .bandeau-sous { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
.sous-menu { min-width: 340px; max-width: 400px; }
.nav-principale > ul > li:nth-last-child(-n+3) > .sous-menu { left: auto; right: 0; }
.sous-menu li a { line-height: 1.4; }
.sous-menu .groupe, .encart .groupe { padding: 10px 20px 2px; font-size: .78rem; font-weight: 400; color: var(--bleu); text-transform: uppercase; letter-spacing: .05em; }
.sous-menu .niveau-2 a { padding-left: 36px; position: relative; }
.sous-menu .niveau-2 a::before { content: ""; position: absolute; left: 22px; top: 50%; width: 7px; border-top: 1px solid var(--gris-trait); }
.encart .groupe { padding: 10px 0 4px; }
.encart .niveau-2 a { padding-left: 26px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--bleu); }
.burger svg { width: 28px; height: 28px; }

.entete .logo { flex: none; }
/* 6 catégories dont deux libellés longs (« Contrôler & exploiter », « Appui normatif ») : en-tête plus large,
   espacements resserrés, et ces libellés passent sur deux lignes */
@media (min-width: 1280px) {
  .entete .conteneur { max-width: 1340px; gap: 20px; }
  .nav-principale { gap: 18px; }
  .nav-principale > ul > li { display: flex; align-items: center; }
  .nav-principale > ul > li > a { padding: 8px 10px; letter-spacing: .03em; line-height: 1.2; text-align: center; max-width: 12em; }
  /* libellé le plus long : sur 3 lignes au plus */
  .nav-principale > ul > li:nth-child(5) > a { max-width: 9.8em; }
}
@media (max-width: 1279px) {
  .entete .logo img { height: 48px; }
  .entete .conteneur { min-height: 72px; }
  .burger { display: block; }
  .nav-principale {
    position: fixed; inset: 72px 0 0 0; background: var(--blanc);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 32px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s; visibility: hidden;
  }
  .nav-principale.ouvert { transform: none; visibility: visible; }
  .nav-principale ul { flex-direction: column; }
  .nav-principale > ul > li { border-bottom: 1px solid var(--bordure); }
  .nav-principale > ul > li > a { padding: 16px 4px; font-size: .95rem; }
  .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; min-width: 0; max-width: none; }
  .sous-menu .accroche { display: none; }
  .nav-principale .btn { margin-top: 20px; justify-content: center; }
}

/* ---------- Motifs graphiques « blueprint » ---------- */
.grille-fond {
  background-image:
    linear-gradient(rgba(154,168,184,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,168,184,.16) 1px, transparent 1px);
  background-size: 40px 40px;
}
.grille-fond-sombre {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Séparateur : câble entre deux anneaux d'ancrage */
.cable {
  display: flex; align-items: center; gap: 0; max-width: 220px; margin: 0 0 20px; height: 14px;
}
.cable::before, .cable::after {
  content: ""; width: 12px; height: 12px; border: 3px solid var(--orange); border-radius: 50%; flex: none;
}
.cable span { flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--bleu) 0 5px, #C9D4E0 5px 8px); }
.centre .cable { margin-left: auto; margin-right: auto; }

/* Puce triangle orange */
.triangle { display: inline-block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--orange); }
.liste-triangle { list-style: none; padding: 0; margin: 0 0 1em; }
.liste-triangle li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.liste-triangle li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--orange);
}

.surtitre {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
/* pages catégorie : titre de chaque prestation dans son bloc, en orange gras, un cran au-dessus du texte */
.carte .titre-prestation { color: var(--orange); font-weight: 600 !important; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; text-transform: none; margin-bottom: 10px; }
/* titre de section en orange, précédé du petit triangle (ex. « La méthode ALTENSIA » sur l'accueil) */
.titre-orange { color: var(--orange) !important; display: inline-flex; align-items: center; gap: .3em; }
.titre-orange::before { content: ""; flex: none; border-left: .2em solid transparent; border-right: .2em solid transparent; border-bottom: .35em solid var(--orange); }
.surtitre::before { content: ""; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-grise { background: var(--gris-fond); }
.section-bleue { background: var(--bleu); color: #D6DFEA; }
.section-bleue h2, .section-bleue h3 { color: var(--blanc); }
.entete-section { max-width: 760px; margin-bottom: 48px; }
.entete-section.centre { margin-left: auto; margin-right: auto; text-align: center; }
.entete-section p { color: var(--texte-doux); font-size: 1.05rem; }
.section-bleue .entete-section p { color: #B9C7D6; }
@media (max-width: 760px) { .section { padding: 64px 0; } .entete-section { margin-bottom: 32px; } }

.grille { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.carte {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 28px; box-shadow: var(--ombre); transition: box-shadow .2s, transform .2s;
}
a.carte, .carte-lien { text-decoration: none; color: inherit; display: block; }
@media (hover: hover) { a.carte:hover { box-shadow: var(--ombre-forte); transform: translateY(-2px); } }
.carte p { color: var(--texte-doux); font-size: .95rem; }

/* ---------- Placeholders images ---------- */
.placeholder {
  position: relative; display: flex; align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(14,42,71,.04) 25%, transparent 25%, transparent 50%, rgba(14,42,71,.04) 50%, rgba(14,42,71,.04) 75%, transparent 75%) 0 0 / 24px 24px,
    #E4E9EF;
  border-radius: var(--rayon); min-height: 200px; overflow: hidden; color: var(--texte-doux);
  margin: 0;
}
.placeholder::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -70%);
  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='%239AA8B8' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5-7 7'/%3E%3C/svg%3E");
}
.placeholder figcaption, .placeholder .legende {
  position: relative; width: 100%; padding: 10px 14px; font-size: .78rem; line-height: 1.4;
  background: rgba(255,255,255,.85); border-top: 1px dashed var(--gris-trait);
}
.placeholder figcaption strong { color: var(--bleu); }

.photo { border-radius: var(--rayon); overflow: hidden; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--blanc); min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--bleu); }
.hero-image { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,42,71,.94) 0%, rgba(14,42,71,.82) 40%, rgba(14,42,71,.25) 75%, rgba(14,42,71,.1) 100%);
}
.hero .conteneur { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero-texte { max-width: 640px; }
.hero h1 { color: var(--blanc); }
.hero .signature { font-size: .85rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: #C9D4E0; margin-bottom: 20px; }
.hero .signature em { font-style: normal; color: var(--orange); }
.hero .intro { font-size: 1.12rem; color: #DCE4EE; margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; font-size: .85rem; color: #C9D4E0; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--orange); }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(14,42,71,.75) 0%, rgba(14,42,71,.92) 100%); }
  .hero .conteneur { padding-top: 56px; padding-bottom: 56px; }
}

/* Hero de page intérieure */
.hero-page { background: var(--bleu); color: #C9D4E0; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero-page h1 { color: var(--blanc); font-size: clamp(1.55rem, 4vw + .6rem, 2.75rem); max-width: 820px; }
.hero-page .intro { font-size: 1.08rem; max-width: 720px; color: #C9D4E0; margin: 0; }
/* Accès direct aux prestations, sous l'introduction d'une page catégorie */
.acces-prestations { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 32px; }
.acces-prestations a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--rayon);
  background: rgba(255,255,255,.06); color: var(--blanc); text-decoration: none;
  font-size: .92rem; font-weight: 400; line-height: 1.35; transition: background .15s, border-color .15s;
}
.acces-prestations a:focus-visible { background: rgba(242,106,27,.16); border-color: var(--orange); color: var(--blanc); }
@media (hover: hover) { .acces-prestations a:hover { background: rgba(242,106,27,.16); border-color: var(--orange); color: var(--blanc); } }
.acces-prestations .num { font-size: .75rem; font-weight: 400; color: var(--orange); letter-spacing: .06em; }
.acces-prestations .fleche { color: var(--orange); font-size: 1.1rem; transition: transform .15s; }
@media (hover: hover) { .acces-prestations a:hover .fleche { transform: translateX(3px); } }
@media (max-width: 600px) { .acces-prestations { grid-template-columns: 1fr; } }

.fil-ariane { font-size: .8rem; margin-bottom: 24px; color: #9DB0C4; }
.fil-ariane a { color: #C9D4E0; text-decoration: none; }
@media (hover: hover) { .fil-ariane a:hover { color: var(--blanc); } }
.fil-ariane span[aria-hidden] { margin: 0 8px; }

/* ---------- Problèmes ---------- */
.probleme { border-top: 3px solid var(--bleu); position: relative; }
.probleme .num { font-size: .75rem; font-weight: 400; color: var(--orange); letter-spacing: .1em; margin-bottom: 10px; }
.probleme h3 { font-size: 1.05rem; }
.probleme .reponse { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--bordure); font-size: .88rem; color: var(--bleu-2); font-weight: 400; text-decoration: none; }
a.reponse:focus-visible { color: var(--orange-fonce); text-decoration: underline; }
@media (hover: hover) { a.reponse:hover { color: var(--orange-fonce); text-decoration: underline; } }

/* ---------- Méthode (frise) ---------- */
.frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: etape; position: relative; }
.frise::before { content: ""; position: absolute; top: 37px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 11px); }
.frise li { text-align: center; padding: 0 10px; position: relative; }
.frise .picto {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); background: var(--bleu);
  display: grid; place-items: center; position: relative;
}
.frise .picto svg { width: 32px; height: 32px; stroke: var(--blanc); }
.frise .picto::after {
  counter-increment: etape; content: counter(etape, decimal-leading-zero);
  position: absolute; top: -6px; right: -8px; background: var(--orange); color: var(--blanc);
  font-size: .7rem; font-weight: 400; padding: 3px 6px; border-radius: 3px;
}
.frise h3 { font-size: 1rem; margin-bottom: 6px; }
.frise p { font-size: .85rem; color: #B9C7D6; margin: 0; }
@media (max-width: 1000px) {
  .frise { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .frise::before { display: none; }
}
@media (max-width: 560px) {
  .frise { grid-template-columns: 1fr; row-gap: 0; }
  .frise li { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; text-align: left; padding: 0 0 24px; }
  .frise li:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; border-left: 2px dashed rgba(255,255,255,.3); }
  .frise .picto { width: 64px; height: 64px; margin: 0; grid-row: span 2; }
  .frise h3 { align-self: end; margin: 6px 0 2px; }
}

/* ---------- Domaines ---------- */
.domaines { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .domaines { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .domaines { grid-template-columns: 1fr; } }
.domaine { display: flex; flex-direction: column; padding: 26px 22px; border-top: 3px solid var(--orange); }
.domaine .etiquette { font-size: .72rem; font-weight: 400; color: var(--orange); letter-spacing: .12em; }
.domaine h3 { font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; margin: 6px 0 4px; }
.domaine .objet { font-size: .88rem; color: var(--texte-doux); margin-bottom: 16px; }
.domaine ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: .88rem; flex: 1; }
.domaine li { padding: 7px 0; border-top: 1px solid var(--bordure); }
.domaine li a { color: var(--texte); text-decoration: none; }
@media (hover: hover) { .domaine li a:hover { color: var(--orange-fonce); } }
.badge-bientot { display: inline-block; font-size: .65rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; background: #FDEBDF; color: var(--orange-fonce); padding: 2px 6px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; }

/* ---------- Indépendance ---------- */
.bloc-image-texte { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .bloc-image-texte { grid-template-columns: 1fr; gap: 32px; } }
.argument { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--bordure); }
.argument:first-of-type { border-top: 0; }
.argument .picto-rond { width: 48px; height: 48px; border-radius: 50%; background: var(--gris-fond); display: grid; place-items: center; }
.argument .picto-rond svg { width: 24px; height: 24px; stroke: var(--bleu); }
.argument h3 { margin-bottom: 4px; }
.argument p { margin: 0; color: var(--texte-doux); font-size: .95rem; }

/* ---------- Réalisations ---------- */
.projet { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.projet .placeholder, .projet .photo { border-radius: 0; min-height: 200px; aspect-ratio: 16 / 10; }
.projet .corps { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.projet .secteur { font-size: .72rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.projet h3 { margin: 6px 0 12px; font-size: 1.05rem; }
.projet ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: p; font-size: .85rem; color: var(--texte-doux); flex: 1; }
.projet ol li { counter-increment: p; display: grid; grid-template-columns: 22px 1fr; gap: 6px; margin-bottom: 6px; }
.projet ol li::before { content: counter(p) "/"; font-weight: 400; color: var(--bleu); }
.projet .pays { font-size: .78rem; color: var(--texte-doux); }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filtre {
  font-family: inherit; font-size: .85rem; font-weight: 400; padding: 8px 16px; border-radius: 40px;
  border: 1px solid var(--bordure); background: var(--blanc); color: var(--bleu); cursor: pointer;
}
@media (hover: hover) { .filtre:hover { border-color: var(--bleu); } }
.filtre[aria-pressed="true"] { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); }
.aucun-resultat { display: none; text-align: center; color: var(--texte-doux); padding: 40px 0; }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .zone { grid-template-columns: 1fr; } }
.carte-zone { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px; }
.carte-zone svg, .carte-zone img { width: 100%; height: auto; display: block; border-radius: calc(var(--rayon) - 2px); }
.pays-liste { display: grid; gap: 16px; }
.pays-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 18px; background: var(--blanc); border-radius: var(--rayon); border-left: 3px solid var(--orange); }
.pays-item .code { font-weight: 300; font-size: 1.1rem; color: var(--bleu); background: var(--gris-fond); border-radius: var(--rayon); display: grid; place-items: center; height: 48px; }
.pays-item h3 { margin-bottom: 2px; font-size: 1rem; }
.pays-item p { margin: 0; font-size: .88rem; color: var(--texte-doux); }

/* ---------- Articles ---------- */
.article { padding: 0; overflow: hidden; }
.article .placeholder { border-radius: 0; min-height: 170px; }
.article .corps { padding: 22px 24px; }
.article .meta { font-size: .75rem; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .08em; }
.article h3 { margin: 8px 0 10px; font-size: 1.05rem; }

/* ---------- Logos clients ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.logo-client { padding: 0 6px; text-align: center; }
/* aucun mot coupé sur le site : pas de césure automatique ni de coupure au milieu d'un mot ;
   les titres se répartissent sur des lignes de longueur équilibrée */
html { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
h1, h2, h3, h4 { text-wrap: balance; }
.logo-client { height: 72px; border: 1px dashed #C3CCD6; border-radius: var(--rayon); display: grid; place-items: center; color: #8C99A8; font-size: .78rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; background: var(--blanc); }

/* ---------- CTA final ---------- */
.cta { background: var(--bleu); color: #C9D4E0; padding: 80px 0; position: relative; overflow: hidden; }
.cta .conteneur { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; }
.cta h2 { color: var(--blanc); margin-bottom: 10px; }
.cta p { margin: 0; font-size: 1.05rem; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .sceau-deco { position: absolute; right: -80px; top: 50%; width: 340px; transform: translateY(-50%); opacity: .06; pointer-events: none; }
@media (max-width: 800px) { .cta .conteneur { grid-template-columns: 1fr; } .cta .sceau-deco { display: none; } }

/* ---------- Pied de page ---------- */
.pied { background: #091D33; color: #9DB0C4; font-size: .88rem; padding: 64px 0 0; }
.pied a { color: #C9D4E0; text-decoration: none; }
@media (hover: hover) { .pied a:hover { color: var(--blanc); } }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h4 { color: var(--blanc); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied .marque { display: flex; gap: 18px; align-items: flex-start; }
.pied .marque img { width: 88px; flex: none; }
.pied .marque strong { color: var(--blanc); display: block; font-size: 1rem; margin-bottom: 6px; letter-spacing: .04em; }
.pied .a-completer { color: #F7A46F; font-style: italic; }
.reseaux { display: flex; gap: 10px; margin-top: 16px; }
.reseaux a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--rayon); display: grid; place-items: center; }
@media (hover: hover) { .reseaux a:hover { border-color: var(--orange); } }
.reseaux svg { width: 18px; height: 18px; fill: currentColor; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .78rem; }
.pied-bas .conteneur { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pied-bas nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Gabarit prestation ---------- */
.mise-en-page { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.mise-en-page > *, .grille > *, .bloc-image-texte > *, .zone > * { min-width: 0; }
@media (max-width: 960px) { .mise-en-page { grid-template-columns: 1fr; gap: 40px; } }
.contenu > section { margin-bottom: 56px; }
.contenu h2 { font-size: 1.6rem; }
.contenu p, .contenu li { color: #2B3440; }
.encadre-probleme { background: var(--gris-fond); border-left: 4px solid var(--orange); padding: 24px 28px; border-radius: 0 var(--rayon) var(--rayon) 0; }
.encadre-probleme p:last-child { margin: 0; }

.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--bordure); }
.etapes li::before { content: counter(e, decimal-leading-zero); font-size: 1.4rem; font-weight: 300; color: var(--orange); line-height: 1.2; }
.etapes h3 { margin-bottom: 4px; font-size: 1.02rem; }
.etapes p { margin: 0; font-size: .95rem; }

.livrables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .livrables { grid-template-columns: 1fr; } }
.livrable { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.livrable svg { width: 28px; height: 28px; stroke: var(--bleu); }
.livrable h4, .livrable h3 { margin-bottom: 2px; font-size: .95rem; }
.livrable p { margin: 0; font-size: .85rem; color: var(--texte-doux); }

.tableau-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.tableau th, .tableau td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.tableau th { background: var(--bleu); color: var(--blanc); font-weight: 400; font-size: .8rem; letter-spacing: .04em; }
.tableau tbody tr:nth-child(even) { background: #FAFBFC; }

/* Accordéon FAQ */
.faq { border-top: 1px solid var(--bordure); }
.faq-item { border-bottom: 1px solid var(--bordure); }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; padding: 20px 40px 20px 0; position: relative;
  font-family: inherit; font-size: 1rem; font-weight: 400; color: var(--bleu); cursor: pointer;
}
.faq-question::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .2s;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-reponse { padding: 0 0 20px; color: #2B3440; }
.faq-reponse[hidden] { display: none; }

/* Barre latérale */
.barre-laterale { position: sticky; top: 108px; display: grid; gap: 20px; }
.encart { padding: 24px; border-radius: var(--rayon); border: 1px solid var(--bordure); background: var(--blanc); }
.encart h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: 12px; }
.encart ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.encart li a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--bordure); color: var(--texte); text-decoration: none; }
@media (hover: hover) { .encart li a:hover { border-color: var(--bleu-2); color: var(--bleu); } }
.encart li a[aria-current="page"] { border-color: var(--orange); color: var(--bleu); font-weight: 400; }
.encart-cta { background: var(--bleu); color: #C9D4E0; border: 0; }
.encart-cta h3 { color: var(--blanc); font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
.encart-cta p { font-size: .9rem; }
.encart-cta .btn { width: 100%; justify-content: center; }

/* ---------- Réglementation ---------- */
.onglets-pays { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; position: sticky; top: 84px; background: var(--blanc); padding: 12px 0; z-index: 5; border-bottom: 1px solid var(--bordure); }
@media (max-width: 1279px) { .onglets-pays { top: 72px; } }
.onglets-pays a { font-weight: 400; font-size: .88rem; padding: 8px 16px; border-radius: 40px; border: 1px solid var(--bordure); text-decoration: none; color: var(--bleu); }
@media (hover: hover) { .onglets-pays a:hover { background: var(--gris-fond); } }
.a-retenir { background: #FFF6F0; border: 1px solid #F8CFB5; border-radius: var(--rayon); padding: 22px 24px; margin: 24px 0; }
.a-retenir h4, .a-retenir h3 { display: flex; align-items: center; gap: 10px; color: var(--orange-fonce); text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.a-retenir h4::before, .a-retenir h3::before { content: ""; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--orange); }
.a-retenir ul { margin: 0; padding-left: 18px; }
.a-retenir li { margin-bottom: 6px; }
.norme { padding: 20px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); }
.norme .ref { font-weight: 300; color: var(--bleu); font-size: 1.05rem; }
.norme p { margin: 6px 0 0; font-size: .88rem; color: var(--texte-doux); }
.avertissement { font-size: .82rem; color: var(--texte-doux); border-top: 1px solid var(--bordure); padding-top: 16px; margin-top: 32px; }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.formulaire .plein { grid-column: 1 / -1; }
@media (max-width: 640px) { .formulaire { grid-template-columns: 1fr; } }
.champ label { display: block; font-size: .85rem; font-weight: 400; color: var(--bleu); margin-bottom: 6px; }
.champ input, .champ select, .champ textarea {
  width: 100%; font-family: inherit; font-size: .95rem; padding: 12px 14px;
  border: 1px solid #C3CCD6; border-radius: var(--rayon); background: var(--blanc); color: var(--texte);
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu-2); box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.champ textarea { min-height: 160px; resize: vertical; }
.champ .aide { font-size: .78rem; color: var(--texte-doux); margin-top: 4px; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--texte-doux); }
.case input { margin-top: 4px; }
.message-demo { display: none; background: #EAF4EC; border: 1px solid #B7D9BE; color: #1E5B2C; padding: 16px 20px; border-radius: var(--rayon); }
.message-demo.visible { display: block; }

/* Questionnaire de demande d'accompagnement (contact.html, js/contact.js) */
.qd-etapes { list-style: none; counter-reset: qd; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; padding: 0; font-size: .82rem; color: var(--texte-doux); }
.qd-etapes li { counter-increment: qd; display: inline-flex; align-items: center; gap: 8px; }
.qd-etapes li::before { content: counter(qd); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); color: var(--blanc); font-size: .72rem; }
.questionnaire { gap: 18px; }
.qd-bloc { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 18px 20px 20px; margin: 0; min-width: 0; background: var(--blanc); }
.qd-bloc legend { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; margin-left: -8px; font-size: 1.05rem; color: var(--bleu); }
.qd-bloc legend span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: var(--blanc); font-size: .8rem; }
.qd-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.qd-grille .plein, .qd-message { grid-column: 1 / -1; }
.qd-message { margin-top: 16px; }
.qd-message textarea { min-height: 120px; }
@media (max-width: 640px) { .qd-grille { grid-template-columns: 1fr; } }
.qd-libelle { display: block; font-size: .85rem; color: var(--bleu); margin-bottom: 8px; }
.qd-cases { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; }
.qd-cases label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.qd-aide { margin: 0; font-size: .88rem; color: var(--texte-doux); }
.champ .qd-invalide { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.case input.qd-invalide { outline: 2px solid #C0392B; }
.qd-erreur { margin: 0; color: #C0392B; font-size: .9rem; }
.qd-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.qd-engagement { font-size: .88rem; color: var(--texte-doux); }
.qd-engagement::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: middle; }
.qd-confirmation p { margin: 8px 0 0; }
.qd-recap { white-space: pre-wrap; font: .85rem/1.5 inherit; font-family: inherit; background: var(--blanc); border: 1px solid #B7D9BE; border-radius: var(--rayon); padding: 12px 14px; margin: 12px 0 0; color: var(--texte); max-height: 360px; overflow: auto; }

.coordonnees { display: grid; gap: 20px; }
.coord-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.coord-item svg { width: 22px; height: 22px; stroke: var(--orange); margin-top: 3px; }
.coord-item h4, .coord-item h3 { margin-bottom: 2px; font-size: .9rem; }
.encart .coord-item h3 { color: var(--bleu); text-transform: none; letter-spacing: -0.01em; }   /* (titres h3 dans .encart, sans son style d'intertitre) */
.coord-item p { margin: 0; font-size: .92rem; color: var(--texte-doux); }

/* ---------- Divers ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
.chiffre strong { display: block; font-size: 2.2rem; font-weight: 300; color: var(--bleu); line-height: 1.1; }
.chiffre span { font-size: .85rem; color: var(--texte-doux); }
.a-completer-inline { background: #FFF2E9; color: var(--orange-fonce); padding: 0 4px; border-radius: 2px; font-weight: 400; }

.galerie { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.galerie > :first-child { grid-row: span 2; }
.galerie .placeholder { min-height: 180px; }
@media (max-width: 700px) { .galerie { grid-template-columns: 1fr; grid-template-rows: auto; } .galerie > :first-child { grid-row: auto; } }

.fiche-infos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); }
.fiche-infos div { padding: 18px 20px; border-right: 1px solid var(--bordure); }
.fiche-infos div:last-child { border-right: 0; }
.fiche-infos dt { font-size: .72rem; font-weight: 400; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .1em; }
.fiche-infos dd { margin: 4px 0 0; font-weight: 400; color: var(--bleu); }
@media (max-width: 760px) { .fiche-infos { grid-template-columns: 1fr 1fr; } .fiche-infos div:nth-child(2) { border-right: 0; } .fiche-infos div:nth-child(-n+2) { border-bottom: 1px solid var(--bordure); } }

.equipe { text-align: center; }
.equipe .placeholder { aspect-ratio: 1; min-height: 0; margin-bottom: 16px; }
.equipe h3 { margin-bottom: 2px; }
.equipe p { font-size: .88rem; color: var(--texte-doux); }

/* ---------- Domaines d'activité (secteurs) — section fournie, couleurs alignées sur la charte ---------- */
.alt-sectors {
  --alt-navy: var(--bleu); --alt-ink: var(--texte); --alt-orange: var(--orange); --alt-bg: var(--gris-fond);
  --alt-card: var(--blanc); --alt-line: var(--bordure); --alt-muted: var(--texte-doux);
  color: var(--alt-ink); background-color: var(--alt-bg);
  background-image: linear-gradient(rgba(13,42,74,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(13,42,74,.045) 1px, transparent 1px);
  background-size: 32px 32px; padding: 88px 16px; scroll-margin-top: 90px;
}
.alt-wrap { max-width: 1152px; margin: 0 auto; }
.alt-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--alt-orange); margin: 0 0 14px; }
.alt-kicker::before { content: ""; width: 28px; height: 2px; background: var(--alt-orange); }
.alt-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 300; color: var(--alt-navy); margin: 0 0 14px; line-height: 1.15; }
.alt-intro { max-width: 680px; font-size: 1rem; line-height: 1.65; color: var(--alt-muted); margin: 0 0 48px; }
.alt-cat { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--alt-line); }
.alt-cat:last-child { border-bottom: 1px solid var(--alt-line); }
.alt-cat-head { position: relative; }
.alt-cat-num { display: block; font-size: .8rem; font-weight: 400; letter-spacing: .12em; color: var(--alt-muted); margin-bottom: 10px; }
.alt-cat-name { display: flex; align-items: center; gap: 10px; font-size: 1.75rem; font-weight: 300; color: var(--alt-navy); margin: 0; }
.alt-cat-name .alt-chev { color: var(--alt-orange); font-weight: 300; }
.alt-cat-desc { font-size: .9rem; line-height: 1.55; color: var(--alt-muted); margin: 12px 0 0; }
.alt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 14px; }
.alt-item {
  position: relative; background: var(--alt-card); border: 1px solid var(--alt-line); border-radius: 6px;
  padding: 22px 12px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.alt-item::before, .alt-item::after { content: ""; position: absolute; width: 8px; height: 8px; border: solid var(--alt-orange); opacity: 0; transition: opacity .25s ease; }
.alt-item::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.alt-item::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }
@media (hover: hover) { .alt-item:hover { transform: translateY(-4px); border-color: var(--alt-navy); box-shadow: 0 10px 24px rgba(13,42,74,.12); } }
@media (hover: hover) { .alt-item:hover::before, .alt-item:hover::after { opacity: 1; } }
.alt-ic { width: 52px; height: 52px; fill: none; stroke: var(--alt-navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.alt-ic .a { stroke: var(--alt-orange); }
.alt-ic .af { fill: var(--alt-orange); stroke: none; }
@media (hover: hover) { .alt-item:hover .alt-ic { transform: scale(1.08); } }
.alt-label { font-size: .84rem; font-weight: 400; line-height: 1.3; color: var(--alt-ink); }
/* apparition au défilement (classe alt-vu posée par js/main.js) */
.alt-js .alt-item { opacity: 0; transform: translateY(14px); }
.alt-js .alt-item.alt-vu { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease, border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .alt-js .alt-item.alt-vu:hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .alt-js .alt-item { opacity: 1; transform: none; } .alt-item, .alt-ic { transition: none; } }
/* version compacte (accueil) : vignettes plus petites, plus nombreuses par ligne, moins d'espace */
.alt-sectors { padding: 56px 16px; }
.alt-intro { margin-bottom: 28px; }
.alt-cat { grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; }
.alt-cat-num { margin-bottom: 6px; }
.alt-cat-name { font-size: 1.4rem; }
.alt-cat-desc { font-size: .82rem; margin-top: 8px; }
.alt-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; align-content: start; }
.alt-item { padding: 12px 6px 10px; gap: 6px; }
.alt-ic { width: 34px; height: 34px; }
.alt-label { font-size: .72rem; line-height: 1.25; }
@media (hover: hover) { .alt-item:hover, .alt-js .alt-item.alt-vu:hover { transform: translateY(-2px); } }
@media (max-width: 820px) {
  .alt-sectors { padding: 44px 16px; }
  .alt-cat { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .alt-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .alt-ic { width: 32px; height: 32px; }
}

/* ---------- Scroll narratif (animations pilotées par le défilement, voir js/main.js) ---------- */
/* Les classes ne sont posées que si le navigateur sait animer : sans script, tout reste visible. */
/* Bêta-2 : vocabulaire du moteur « Premium 3D Glass » — courbe exponentielle longue
   cubic-bezier(0.16, 1, 0.3, 1), fondu + montée de 14 px en 1 s, 34 px pour le bandeau de contact */
.recit-actif .recit {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--recit-delai, 0s);
}
.recit-actif .recit.recit-contact { transform: translateY(34px); transition-duration: .9s; transition-timing-function: cubic-bezier(.25, 1, .5, 1); }
.recit-actif .recit.recit-vu { opacity: 1; transform: none; }

/* Titres : chaque ligne monte hors de son masque, du flou au net (1,15 s), ligne après ligne */
.titre-masque .mot { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.titre-masque .mot-in {
  display: inline-block; transform: translateY(112%); opacity: 0; filter: blur(12px);
  transition: transform 1.15s cubic-bezier(.16, 1, .3, 1), opacity .7s ease-out, filter 1.05s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--ligne, 0) * .09s);
}
.titre-masque.titre-vu .mot-in { transform: none; opacity: 1; filter: blur(0); }

/* Jauge de progression : un trait vertical par section, à droite de l'écran */
.jauge-chapitres {
  position: fixed; top: 50%; right: 22px; transform: translateY(-50%); z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .6s;
}
.jauge-chapitres.jauge-visible { opacity: 1; }
.jauge-trait { display: block; width: 2px; height: 26px; border-radius: 2px; background: rgba(14, 42, 71, .14); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.jauge-trait > span { display: block; width: 100%; height: 100%; background: var(--orange); transform: scaleY(0); transform-origin: 50% 0; }
@media (max-width: 900px) { .jauge-chapitres { display: none; } }

/* Méthode : la ligne se trace et les étapes s'allument une à une au défilement */
.frise::after {
  content: ""; position: absolute; top: 37px; left: 8%; height: 2px; width: 84%;
  background: var(--orange); transform: scaleX(var(--progression, 0)); transform-origin: 0 50%;
  transition: transform .15s linear;
}
.frise .picto { transition: border-color .4s, background-color .4s, box-shadow .4s; }
.frise li.etape-active .picto { border-color: var(--orange); background-color: #1B3A5E; box-shadow: 0 0 0 6px rgba(242,106,27,.14); }
.frise li h3 { transition: color .4s; }
.frise li.etape-active h3 { color: var(--orange); }
/* les ronds passent devant le trait de la frise (fond opaque, au premier plan) */
.frise li { z-index: 1; }
/* pictos de la méthode : même dessin que les pictos des domaines d'activité (trait + accent orange) */
.frise .picto svg, .methode-detail .picto svg { width: 42px; height: 42px; fill: none; stroke: var(--blanc); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.frise .picto svg .a, .methode-detail .picto svg .a { stroke: var(--orange); }
.frise .picto svg .af, .methode-detail .picto svg .af { fill: var(--orange); stroke: none; }
.frise li.fondu-courant .picto svg .a { stroke: var(--bleu); }
.frise li.fondu-courant .picto svg .af { fill: var(--bleu); }
@media (max-width: 1000px) { .frise::after { display: none; } }

/* En-tête : la photo glisse légèrement moins vite que la page (effet de profondeur) */
.hero-image img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .recit-actif .recit { opacity: 1; transform: none; transition: none; }
  .titre-masque .mot-in { transform: none; opacity: 1; filter: none; transition: none; }
  .jauge-chapitres, .frise::after { display: none; }
}

/* Rappel des domaines d'activité dans le bandeau bleu du haut */
/* Hero : panneaux « Nos prestations » / « Domaines d'activité » (en haut à droite, sur la photo) */
.hero .btn-panneau { font-family: inherit; cursor: pointer; background: transparent; }
.hero .btn-clair.actif { background: var(--blanc); color: var(--bleu); border-color: var(--blanc); }
.hero-panneau {
  position: absolute; z-index: 2; top: 36px; right: calc(max(0px, (100% - var(--largeur)) / 2) + 24px); width: 440px;
  padding: 16px; border-radius: var(--rayon); background: rgba(14, 42, 71, .78); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 18px 40px rgba(0,0,0,.35);
  --alt-navy: var(--bleu); --alt-ink: var(--texte); --alt-orange: var(--orange);
  opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease;
}
.hero-panneau.ouvert { opacity: 1; transform: none; }
/* croix de fermeture, à cheval sur le coin haut droit du panneau */
.hs-fermer {
  position: absolute; top: -14px; right: -14px; width: 30px; height: 30px; padding: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  background: var(--bleu); color: var(--blanc); box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: background .2s, border-color .2s;
}
.hs-fermer:focus-visible { background: var(--orange); border-color: var(--orange); }
@media (hover: hover) { .hs-fermer:hover { background: var(--orange); border-color: var(--orange); } }
.hs-fermer svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 600px) { .hs-fermer { top: -12px; right: -8px; } }
.hs-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.hs-onglets-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-onglets.hs-onglets-3 button { font-size: .7rem; letter-spacing: 0; padding: 9px 6px; line-height: 1.2; }
.hs-onglets button {
  font: inherit; font-size: .9rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  padding: 10px 12px; border-radius: var(--rayon); border: 1px solid rgba(255,255,255,.55); background: transparent; color: var(--blanc);
  transition: background .2s, border-color .2s;
}
@media (hover: hover) { .hs-onglets button:hover { border-color: var(--blanc); background: rgba(255,255,255,.1); } }
.hs-onglets button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); }
.hs-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hs-item { aspect-ratio: 1; animation: hs-entree .35s ease both; animation-delay: calc(var(--i) * 35ms); }
.hs-item > * {
  height: 100%; background: rgba(255,255,255,.96); border-radius: 6px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.hs-item .alt-ic { width: 38px; height: 38px; }
.hs-item .alt-label { font-size: .66rem; line-height: 1.2; }
/* carrés de prestations : numéro, intitulé, flèche — cliquables */
.hs-grille-3 { grid-template-columns: repeat(3, 1fr); }
.hs-item:has(> a) { aspect-ratio: auto; min-height: 118px; }
.hs-item > a { justify-content: space-between; }
.ac-livrables a.code { font-size: 1.1rem; line-height: 1; }
.hs-item > a { position: relative; padding: 10px 8px; text-decoration: none; color: var(--bleu); border: 2px solid transparent; transition: border-color .2s, transform .2s; }
@media (hover: hover) { .hs-item > a:hover { border-color: var(--orange); transform: translateY(-2px); } }
.hs-num { font-size: .72rem; font-weight: 300; color: var(--orange); letter-spacing: .04em; }
.hs-texte { font-size: .74rem; font-weight: 400; line-height: 1.25; }
.hs-fleche { color: var(--orange); font-weight: 400; }
.hs-lien { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 400; color: var(--blanc); }
@media (hover: hover) { .hs-lien:hover { color: var(--orange); } }
@keyframes hs-entree { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-panneau, .hs-item { transition: none; animation: none; } }
.hero-texte { max-width: 700px; }
/* sous 1280 px, le panneau passe sous le texte du hero */
@media (max-width: 1279px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: center; }
  .hero-panneau { position: relative; top: auto; right: auto; width: auto; max-width: 520px; margin: -48px 24px 48px; }
}
@media (max-width: 600px) {
  .hero-panneau { margin: -40px 16px 40px; padding: 12px; }
  .hs-grille { grid-template-columns: repeat(3, 1fr); }
  .hs-grille-3 { grid-template-columns: repeat(2, 1fr); }
  .hs-item:has(> a) { aspect-ratio: auto; min-height: 110px; }
}

/* Panneaux « Donneur d'ordre » / « Installateur » (≥ 761 px) : fenêtre centrée dans l'écran,
   qui sort du bouton cliqué, avec les 4 domaines et toutes leurs prestations d'un coup d'œil */
.hs-entete, .hs-colonnes, .hs-voile { display: none; }
@media (min-width: 761px) {
  html.hs-modal { overflow: hidden; }
  .hs-voile {
    display: block; position: fixed; inset: 0; z-index: 1000;
    background: rgba(6, 22, 40, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .28s ease;
  }
  .hs-voile[hidden] { display: none; }
  .hs-voile.ouvert { opacity: 1; }
  .hero-panneau.hs-vue {
    position: fixed; z-index: 1001; top: 50%; left: 50%; right: auto; margin: 0; max-width: none;
    width: min(1140px, calc(100vw - 48px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
    overflow: visible; display: flex; flex-direction: column;
    padding: 0; border-radius: 12px; background: #0f2c4b; border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 30px 80px rgba(0,0,0,.5);
    opacity: 0; transform-origin: center;
    transform: translate(calc(-50% + var(--dx, 0px) * .6), calc(-50% + var(--dy, 0px) * .6)) scale(.35);
    transition: opacity .18s ease, transform .18s cubic-bezier(.4, 0, 1, 1);
  }
  .hero-panneau.hs-vue[hidden] { display: none; }
  .hero-panneau.hs-vue.ouvert {
    opacity: 1; transform: translate(-50%, -50%) scale(1);
    transition: opacity .2s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
  }
  .hs-vue .hs-onglets, .hs-vue .hs-grille, .hs-vue .hs-lien { display: none; }
  .hs-vue .hs-fermer { top: 18px; right: 18px; width: 38px; height: 38px; z-index: 2; }
  .hs-vue .hs-fermer svg { width: 16px; height: 16px; }
  .hs-vue .hs-entete {
    display: block; flex: none; padding: 28px 80px 22px 36px; border-bottom: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(100deg, rgba(240,112,32,.14), transparent 55%); border-radius: 12px 12px 0 0;
  }
  .hs-surtitre { margin: 0 0 4px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
  .hs-titre { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 300; line-height: 1.15; color: var(--blanc); }
  .hs-chapo { margin: 6px 0 0; font-size: .92rem; color: rgba(255,255,255,.72); }
  .hs-vue .hs-colonnes {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
    padding: 22px 28px 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 0;
  }
  .hs-col {
    display: flex; flex-direction: column; min-width: 0; border-radius: 10px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  }
  .hs-col-tete {
    display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 12px; text-decoration: none;
    color: var(--blanc); border-bottom: 2px solid var(--orange); transition: background .2s;
    border-radius: 10px 10px 0 0;
  }
  .hs-col-tete:focus-visible { background: rgba(240,112,32,.16); }
@media (hover: hover) { .hs-col-tete:hover { background: rgba(240,112,32,.16); } }
  .hs-col-num { font-size: .8rem; font-weight: 300; color: var(--orange); letter-spacing: .06em; }
  .hs-col-nom { font-size: .84rem; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25; }
  .hs-col ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
  .hs-col li > a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
    border-radius: 6px; background: rgba(255,255,255,.96); color: var(--bleu); text-decoration: none;
    font-size: .8rem; line-height: 1.3; border-left: 3px solid transparent;
    transition: border-color .15s, transform .15s, background .15s;
  }
  .hs-col li > a .hs-texte { font-size: inherit; }
  .hs-col li > a .hs-fleche { flex: none; transition: transform .15s; }
  .hs-col li > a:focus-visible { border-left-color: var(--orange); background: var(--blanc); transform: translateX(2px); }
@media (hover: hover) { .hs-col li > a:hover { border-left-color: var(--orange); background: var(--blanc); transform: translateX(2px); } }
  @media (hover: hover) { .hs-col li > a:hover .hs-fleche { transform: translateX(3px); } }
  /* entrée échelonnée : les colonnes puis leurs prestations */
  .hs-vue.ouvert .hs-col { animation: hs-col-entree .45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(80ms + var(--i) * 55ms); }
  .hs-vue.ouvert .hs-col li { animation: hs-col-entree .4s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(140ms + var(--i) * 55ms + var(--j) * 30ms); }
  @keyframes hs-col-entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .hs-vue .hs-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  .hero-panneau.hs-vue, .hero-panneau.hs-vue.ouvert { transform: translate(-50%, -50%); transition: opacity .15s; }
  .hs-vue.ouvert .hs-col, .hs-vue.ouvert .hs-col li { animation: none; }
}

/* ==========================================================================
   Appui normatif et technique : notes de référence (préfixe .an-note,
   pages appui-normatif-technique.html et note-*.html)
   ========================================================================== */
.an-note {
  --an-orange-texte: #C4500C; --an-doux: #EEF2F6; --an-fg: #14273D; --an-muet: #4A5B6E; --an-trait: #D9E0E7; --an-construct: #9AA8B8;
  --an-ok: #2E7D4F; --an-ko: #B3261E; --an-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace; --an-texte: 68ch;
  color: var(--an-fg);
}
.an-note .wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .an-note .wrap { padding: 0 16px; } }
.an-note h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); font-weight: 400; margin: 0; }
.an-note h3 { font-size: 1.06rem; margin: 0; }
.an-note p { margin: 0; }
.an-note .eyebrow { font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--an-orange-texte); margin: 0; }
.an-note .muted { color: var(--an-muet); }
.an-note .ref { font-family: var(--an-mono); font-size: .86em; color: var(--an-orange-texte); }

/* haut de page (bandeau bleu du site) */
.an-hero-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.an-hero h1 em { font-style: normal; color: var(--orange); }
.an-hero .flags { margin-top: 16px; }
.an-hero .flag { color: #E3EAF2; border-color: rgba(255,255,255,.3); }
.an-hero .flag b { color: var(--orange); }
@media (max-width: 860px) { .an-hero-grille { grid-template-columns: 1fr; gap: 28px; } }
.an-note .flags { display: flex; flex-wrap: wrap; gap: 6px; }
.an-note .flag { font-family: var(--an-mono); font-size: .72rem; font-weight: 400; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--an-trait); }
.an-note .flag b { color: var(--an-orange-texte); font-weight: 400; }
/* cartouche de repères */
.an-note .spec { border: 1.5px solid var(--an-fg); border-radius: 4px; background: var(--blanc); color: var(--an-fg); font-size: .9rem; }
.an-note .spec-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1.5px solid var(--an-fg); font-family: var(--an-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.an-note .spec dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.an-note .spec dt, .an-note .spec dd { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--an-trait); }
.an-note .spec dt { color: var(--an-muet); }
.an-note .spec dd { font-family: var(--an-mono); font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.an-note .spec dt:last-of-type, .an-note .spec dd:last-of-type { border-bottom: 0; }
/* petit écran : libellé au-dessus de la valeur, pour qu'aucun mot ne déborde */
@media (max-width: 520px) {
  .an-note .spec dl { grid-template-columns: 1fr; }
  .an-note .spec dt { border-bottom: 0; padding-bottom: 2px; }
  .an-note .spec dd { text-align: left; padding-top: 0; }
}

/* sous-navigation de la rubrique */
.an-sousnav { background: var(--an-doux); border-bottom: 1px solid var(--an-trait); }
.an-sousnav .conteneur { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; padding-top: 10px; padding-bottom: 10px; }
.an-sousnav-titre { font-size: .7rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--an-orange-texte); }
.an-sousnav a { font-size: .82rem; font-weight: 400; color: var(--bleu); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.an-sousnav a[aria-current] { border-bottom-color: var(--orange); }
@media (hover: hover) { .an-sousnav a:hover { border-bottom-color: var(--orange); } }
@media (max-width: 640px) { .an-sousnav-titre { width: 100%; } }

/* sections */
.an-note section.block { padding: 60px 0; }
.an-note section.soft { background: var(--an-doux); }
.an-note .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; margin-bottom: 32px; align-items: end; }
.an-note .sec-head > div { display: flex; flex-direction: column; gap: 12px; }
.an-note .sec-head p.muted { max-width: var(--an-texte); }
@media (max-width: 860px) { .an-note .sec-head { grid-template-columns: 1fr; gap: 12px; } }
.an-note .prose { max-width: var(--an-texte); display: flex; flex-direction: column; gap: 14px; }
.an-note .prose ul, .an-note .bul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.an-note .prose li::marker, .an-note .bul li::marker { color: var(--orange); }
.an-note .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.an-note .two > * { min-width: 0; }
@media (max-width: 860px) { .an-note .two { grid-template-columns: 1fr; gap: 28px; } }
.an-note .keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.an-note .key { background: var(--blanc); border: 1px solid var(--an-trait); border-top: 3px solid var(--orange); border-radius: var(--rayon); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.an-note .key .v { font-family: var(--an-mono); font-size: 1.5rem; font-weight: 400; color: var(--an-orange-texte); line-height: 1.1; }
.an-note .key p { font-size: .92rem; color: var(--an-muet); line-height: 1.55; }

/* tableaux */
.an-note .table-box { overflow-x: auto; border: 1px solid var(--an-trait); border-radius: var(--rayon); background: var(--blanc); }
.an-note table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.an-note th, .an-note td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--an-trait); }
.an-note thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blanc); background: var(--bleu); font-weight: 400; }
.an-note tbody tr:last-child td { border-bottom: 0; }
.an-note td:first-child { font-weight: 400; color: var(--bleu); }
.an-note td.num, .an-note th.num { text-align: right; font-family: var(--an-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-note tr.total td { background: var(--an-doux); font-weight: 400; }

/* étapes */
/* étapes : cartes côte à côte (3 colonnes, 4 si 4 étapes), pour voir la séquence d'un coup d'œil */
.an-note .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: an-etape; }
.an-note .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an-note .steps > li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; background: var(--blanc); border: 1px solid var(--an-trait); border-top: 3px solid var(--orange); border-radius: var(--rayon); }
.an-note .steps > li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 22px; width: 12px; text-align: center; color: var(--orange); font-weight: 400; }
.an-note .steps .n { display: flex; align-items: baseline; gap: 10px; font-family: var(--an-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--an-muet); padding-bottom: 10px; border-bottom: 1px solid var(--an-trait); }
.an-note .steps .n b { font-family: var(--police); font-size: 1.9rem; font-weight: 300; color: var(--bleu); line-height: 1; letter-spacing: 0; }
.an-note .steps li.hi .n b { color: var(--orange); }
.an-note .steps h3 { font-size: 1rem; }
.an-note .steps p { color: var(--an-muet); font-size: .92rem; margin-top: 4px; }
.an-note .steps ul { margin: 10px 0 0; padding-left: 18px; color: var(--an-muet); font-size: .88rem; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.an-note .steps ul li::marker { color: var(--orange); }
@media (max-width: 1000px) {
  .an-note .steps, .an-note .steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-note .steps > li::after { display: none; }
}
@media (max-width: 640px) {
  .an-note .steps, .an-note .steps:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; }
}

/* encadrés, figures */
.an-note .note { font-size: .93rem; color: var(--an-muet); max-width: var(--an-texte); padding: 16px 18px; background: var(--blanc); border: 1px dashed var(--an-construct); border-radius: var(--rayon); }
.an-note .note strong { color: var(--an-fg); }
.an-note .alert { background: var(--bleu); color: var(--blanc); border-radius: var(--rayon); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.an-note .alert .eyebrow { color: #FF8A3D; }
.an-note .alert p { color: #C9D3DE; }
.an-note .alert h3 { color: var(--blanc); }
.an-note figure { margin: 0; }
.an-note .fig { background: var(--blanc); border: 1px solid var(--an-trait); border-radius: var(--rayon); padding: 14px; overflow-x: auto; }
.an-note .fig img, .an-note .fig video { display: block; width: 100%; height: auto; border-radius: 4px; }
.an-note .fig svg { display: block; width: 100%; height: auto; min-width: 520px; }
.an-note figcaption { font-family: var(--an-mono); font-size: .74rem; color: var(--an-muet); margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* bandeau positionnement */
.an-note .stance { background: var(--bleu); color: var(--blanc); }
.an-note .stance .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding-top: 42px; padding-bottom: 42px; align-items: start; }
.an-note .stance h2 { color: var(--blanc); font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.an-note .stance p { color: #C9D3DE; }
.an-note .stance .eyebrow { color: #FF8A3D; }
.an-note .stance-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; list-style: none; margin: 0; padding: 0; }
.an-note .stance-list li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(201, 211, 222, .25); }
.an-note .stance-list strong { color: var(--blanc); font-size: .95rem; }
.an-note .stance-list span { color: #C9D3DE; font-size: .9rem; line-height: 1.5; }
@media (max-width: 860px) { .an-note .stance .wrap, .an-note .stance-list { grid-template-columns: 1fr; } }

/* arbre de décision (contrôle) */
.an-note .flow { display: grid; gap: 12px; max-width: 860px; }
.an-note .q { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.an-note .q > div { border: 1px solid var(--an-trait); border-radius: var(--rayon); padding: 14px 16px; background: var(--blanc); font-size: .9rem; min-width: 0; }
.an-note .q .ask { font-weight: 400; }
.an-note .q .yes b, .an-note .q .no b { font-family: var(--an-mono); font-size: .72rem; letter-spacing: .1em; display: block; margin-bottom: 4px; }
.an-note .q .yes b { color: var(--an-ok); } .an-note .q .no b { color: var(--an-ko); }
.an-note .q .yes, .an-note .q .no { color: var(--an-muet); }
.an-note .verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 860px; margin-top: 4px; }
.an-note .verdict { border-radius: var(--rayon); padding: 14px 16px; font-weight: 400; border: 2px solid; }
.an-note .verdict.ok { border-color: var(--an-ok); color: var(--an-ok); } .an-note .verdict.ko { border-color: var(--an-ko); color: var(--an-ko); }
.an-note .verdict span { display: block; font-weight: 400; color: var(--an-muet); font-size: .88rem; margin-top: 4px; }
@media (max-width: 760px) { .an-note .q, .an-note .verdicts { grid-template-columns: 1fr; } }

/* accueil de la rubrique : filtre par pays et cartes des notes */
.an-note .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.an-note .chip { font: 600 .82rem var(--police); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--an-trait); background: var(--blanc); color: var(--an-fg); cursor: pointer; min-height: 40px; }
.an-note .chip[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.an-note .theme { padding: 8px 0 34px; }
.an-note .theme-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1.5px solid var(--bleu); margin-bottom: 18px; }
.an-note .theme-head h2 { font-size: 1.25rem; }
.an-note .theme-head .ref { font-size: .76rem; }
.an-note .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.an-note .card { display: flex; flex-direction: column; gap: 8px; background: var(--blanc); border: 1px solid var(--an-trait); border-radius: var(--rayon); padding: 18px 18px 16px; text-decoration: none; color: var(--an-fg); transition: border-color .15s; }
@media (hover: hover) { .an-note .card:hover { border-color: var(--orange); color: var(--an-fg); } }
.an-note .card h3 { font-size: 1rem; color: var(--bleu); }
.an-note .card p { font-size: .88rem; color: var(--an-muet); line-height: 1.5; flex: 1; }
/* Accueil Appui technique : quatre portes d'entrée et niveaux d'accompagnement */
.an-portes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .an-portes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .an-portes { grid-template-columns: 1fr; } }
.an-porte { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; background: var(--blanc); border: 1px solid var(--an-trait); border-top: 3px solid var(--orange); border-radius: var(--rayon); text-decoration: none; color: var(--an-fg); transition: border-color .2s, transform .35s var(--b5-ease, ease), box-shadow .35s; }
@media (hover: hover) { a.an-porte:hover, .an-porte:has(a:hover) { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(14,42,71,.35); color: var(--an-fg); } }
.an-porte-num { font-family: var(--an-mono); font-size: .78rem; letter-spacing: .1em; color: var(--an-orange-texte); }
.an-porte h3 { font-size: 1.12rem; color: var(--bleu); }
.an-porte p { font-size: .9rem; color: var(--an-muet); line-height: 1.55; flex: 1; }
.an-porte-pour { font-size: .84rem; line-height: 1.45; padding-top: 10px; border-top: 1px solid var(--an-trait); }
.an-porte-pour b { display: block; font-family: var(--an-mono); font-size: .68rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--an-orange-texte); margin-bottom: 2px; }
.an-porte-btns { display: flex; flex-direction: column; gap: 8px; }
.an-porte-btn { display: inline-flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding: 11px 14px; border-radius: var(--rayon); background: var(--bleu); color: var(--blanc); font-size: .86rem; text-decoration: none; transition: background .2s; }
.an-porte-btns .an-porte-btn { margin-top: 0; }
@media (hover: hover) { a.an-porte:hover .an-porte-btn, a.an-porte-btn:hover { background: var(--orange); color: var(--blanc); } }
.an-niveaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--an-trait); border-radius: var(--rayon); background: var(--blanc); }
.an-niveaux li { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-left: 1px solid var(--an-trait); }
.an-niveaux li:first-child { border-left: 0; }
.an-niveau-tag { align-self: flex-start; font-family: var(--an-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--an-orange-texte); }
.an-niveaux h3 { font-size: 1rem; color: var(--bleu); }
.an-niveaux p { font-size: .88rem; color: var(--an-muet); line-height: 1.5; flex: 1; }
.an-niveaux a { font-size: .86rem; color: var(--orange-fonce); text-decoration: none; }
@media (hover: hover) { .an-niveaux a:hover { text-decoration: underline; } }
@media (max-width: 1000px) { .an-niveaux { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-niveaux li:nth-child(3) { border-left: 0; } .an-niveaux li:nth-child(n+3) { border-top: 1px solid var(--an-trait); } }
@media (max-width: 600px)  { .an-niveaux { grid-template-columns: 1fr; } .an-niveaux li { border-left: 0; } .an-niveaux li + li { border-top: 1px solid var(--an-trait); } }
.an-note .card .badge { align-self: flex-start; font-family: var(--an-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blanc); background: var(--orange); padding: 2px 7px; border-radius: 3px; }

/* note précédente / suivante, avertissement */
.an-note .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.an-note .pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--bleu); border: 1px solid var(--an-trait); border-radius: var(--rayon); padding: 16px 18px; }
@media (hover: hover) { .an-note .pager a:hover { border-color: var(--orange); } }
.an-note .pager small { font-family: var(--an-mono); font-size: .72rem; color: var(--an-muet); }
.an-note .pager .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .an-note .pager { grid-template-columns: 1fr; } .an-note .pager .next { grid-column: 1; } }
.an-avertissement { font-size: .8rem; color: var(--texte-doux); padding-top: 18px; padding-bottom: 18px; margin: 0 auto; }

/* ==========================================================================
   Actualités : lien du bandeau, liste des articles et composants d'article (préfixe ac-)
   ========================================================================== */
.bandeau-haut .lien-bandeau { display: inline-flex; align-items: center; gap: 8px; color: var(--blanc); font-weight: 400; white-space: nowrap; }
.bandeau-haut .lien-bandeau::before { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--orange); }
.bandeau-haut .lien-bandeau[aria-current] { color: var(--orange); }
@media (hover: hover) { .bandeau-haut .lien-bandeau:hover { color: var(--orange); } }
.bandeau-haut .langues .lien-bandeau { margin-right: 18px; }
@media (max-width: 600px) {
  .bandeau-haut .conteneur { flex-wrap: wrap; row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .bandeau-haut .coord { gap: 16px; }
  .bandeau-haut .langues .lien-bandeau { margin-right: 10px; }
}
.liste-actus .article .placeholder { min-height: 190px; }
.liste-actus .article .lire { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 400; color: var(--orange-fonce); }

/* Liste compacte : 4 cartes par ligne (3 puis 2 puis 1 selon la largeur) */
.liste-actus.compacte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1180px) { .liste-actus.compacte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .liste-actus.compacte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .liste-actus.compacte { grid-template-columns: 1fr; } }
.liste-actus.compacte .article { display: flex; flex-direction: column; }
.liste-actus.compacte .article .placeholder { min-height: 0; aspect-ratio: 16 / 9; }
.liste-actus.compacte .article .placeholder::before { width: 32px; height: 32px; }
.liste-actus.compacte .article .placeholder figcaption { padding: 6px 10px; font-size: .7rem; }
.liste-actus.compacte .article .corps { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.liste-actus.compacte .article .meta { font-size: 11px; }
.liste-actus.compacte .article h3 { margin: 6px 0 8px; font-size: .95rem; line-height: 1.3; }
.liste-actus.compacte .article p { font-size: .83rem; line-height: 1.45; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.liste-actus.compacte .article .lire { margin-top: auto; font-size: .8rem; }

/* En-tête d'article : texte + visuel */
.ac-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-page h1 em { font-style: normal; color: var(--orange); }
.ac-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .78rem; font-weight: 400; letter-spacing: .04em; color: #9DB0C4; }
.ac-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ac-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.ac-hero .placeholder { min-height: 260px; margin: 0; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }
.ac-hero .placeholder figcaption { color: #C9D4E0; }
.ac-hero .placeholder figcaption strong { color: var(--blanc); }
.ac-hero svg { width: 100%; max-width: 440px; justify-self: center; }
@media (max-width: 860px) { .ac-hero { grid-template-columns: 1fr; gap: 28px; } }

/* Sections d'article */
.ac-article .section { padding: 72px 0; }
.ac-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; margin-bottom: 34px; align-items: end; }
.ac-tete h2 { margin: 0; }
.ac-tete p { margin: 0; color: var(--texte-doux); max-width: 68ch; }
.ac-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.ac-deux h2 { margin: 0; }
.ac-prose p { color: var(--texte-doux); max-width: 68ch; }
@media (max-width: 860px) { .ac-tete, .ac-deux { grid-template-columns: 1fr; gap: 14px; } }

/* Bandeau « positionnement » */
.ac-bande { background: var(--bleu); color: #C9D4E0; padding: 48px 0; }
.ac-bande .conteneur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.ac-bande h2 { color: var(--blanc); font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.ac-bande p { margin: 0; }
.ac-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; list-style: none; margin: 0; padding: 0; }
.ac-points li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(201, 212, 224, .25); }
.ac-points strong { color: var(--blanc); font-size: .95rem; }
.ac-points span { font-size: .9rem; line-height: 1.5; }
@media (max-width: 860px) { .ac-bande .conteneur, .ac-points { grid-template-columns: 1fr; } }

/* Cartes de situations */
.ac-situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ac-situation { background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange); border-radius: var(--rayon); padding: 22px; }
.ac-situation svg { width: 34px; height: 34px; color: var(--orange); margin-bottom: 10px; }
.ac-situation h3 { font-size: 1.02rem; margin-bottom: 8px; }
.ac-situation p { font-size: .92rem; color: var(--texte-doux); line-height: 1.55; margin: 0; }
@media (max-width: 960px) { .ac-situations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-situations.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .ac-situations, .ac-situations.deux { grid-template-columns: 1fr; } }

/* Tableaux */
.ac-article .tableau-wrap { border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); }
.ac-article .tableau { min-width: 720px; }
.ac-article .tableau td:first-child { font-weight: 400; color: var(--bleu); width: 22%; }
.ac-ref { font-weight: 400; font-size: .84rem; color: var(--orange-fonce); white-space: nowrap; }

/* Échelle de priorités / modules */
.ac-echelle { display: grid; }
.ac-palier { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--bordure); align-items: start; }
.ac-palier:last-child { border-bottom: 1px solid var(--bordure); }
.ac-palier .niv { font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); }
.ac-palier .niv b { display: block; font-size: 1.9rem; font-weight: 300; color: var(--bleu); line-height: 1; letter-spacing: 0; }
.ac-palier.prioritaire .niv b { color: var(--orange); }
.ac-palier h3 { margin-bottom: 6px; }
.ac-palier p { margin: 0; font-size: .94rem; color: var(--texte-doux); }
.ac-palier .ex { font-size: .9rem; }
.ac-palier .ex span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); font-weight: 400; margin-bottom: 4px; }
@media (max-width: 760px) { .ac-palier { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; } .ac-palier .niv { letter-spacing: .02em; } .ac-palier .ex { grid-column: 2; } }

/* Méthode en étapes, reliées par la « ligne de vie » du logo */
.ac-methode { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.ac-methode.cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ac-methode.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-etape { padding-right: 16px; }
.ac-etape .noeud { display: flex; align-items: center; margin-bottom: 14px; }
.ac-etape .anneau { width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--orange); background: var(--blanc); flex: none; }
.ac-etape .cable { flex: 1; height: 5px; background: repeating-linear-gradient(90deg, #4E5966 0 5px, #DCE2E8 5px 7px); }
.ac-etape:last-child .cable { background: transparent; }
.ac-etape.relais .anneau { border-color: var(--gris-trait); }
.ac-etape h3 { font-size: 1rem; margin-bottom: 6px; }
.ac-etape h3 small { display: block; font-size: .72rem; font-weight: 400; color: var(--texte-doux); margin-bottom: 2px; letter-spacing: .04em; }
.ac-etape p { font-size: .88rem; color: var(--texte-doux); line-height: 1.55; margin: 0; }
@media (max-width: 980px) { .ac-methode, .ac-methode.cinq, .ac-methode.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; } .ac-etape .cable { display: none; } }
@media (max-width: 520px) { .ac-methode, .ac-methode.cinq, .ac-methode.quatre { grid-template-columns: 1fr; } }
.ac-note { margin-top: 28px; font-size: .92rem; color: var(--texte-doux); max-width: 68ch; padding: 16px 18px; background: var(--blanc); border: 1px dashed var(--gris-trait); border-radius: var(--rayon); }
.ac-note strong { color: var(--bleu); }

/* Livrables : le code renvoie vers la prestation correspondante */
.ac-livrables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; margin: 0; padding: 0; }
.ac-livrables li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--bordure); }
.ac-livrables .code { font-size: .78rem; font-weight: 300; color: var(--orange-fonce); padding-top: 2px; text-decoration: none; }
@media (hover: hover) { a.code:hover { text-decoration: underline; } }
.ac-livrables strong { display: block; color: var(--bleu); margin-bottom: 2px; }
.ac-livrables span { font-size: .92rem; color: var(--texte-doux); }
@media (max-width: 760px) { .ac-livrables { grid-template-columns: 1fr; } }

/* Comparatif */
.ac-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ac-col { border-radius: var(--rayon); padding: 26px; }
.ac-col h3 { margin-bottom: 14px; }
.ac-col ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .93rem; }
.ac-col.eux { background: var(--blanc); border: 1px solid var(--bordure); color: var(--texte-doux); }
.ac-col.nous { background: var(--bleu); color: #C9D4E0; }
.ac-col.nous h3 { color: var(--blanc); }
.ac-col.nous li::marker { color: var(--orange); }
@media (max-width: 760px) { .ac-compare { grid-template-columns: 1fr; } }

/* Jalons de chantier : grandes pastilles illustrées reliées par la ligne de vie */
.st-jalons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; position: relative; }
.st-jalons::before { content: ""; position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 5px; background: repeating-linear-gradient(90deg, #4E5966 0 5px, #DCE2E8 5px 7px); }
.st-jalon { text-align: center; padding: 0 10px; position: relative; }
.st-jalon .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--blanc); border: 4px solid var(--orange); display: grid; place-items: center; margin: 0 auto 14px; position: relative; z-index: 1; }
.st-jalon .ico svg { width: 32px; height: 32px; stroke: var(--bleu); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-jalon.fin .ico { background: var(--bleu); border-color: var(--bleu); }
.st-jalon.fin .ico svg { stroke: var(--blanc); }
.st-jalon h3 { font-size: 1rem; margin-bottom: 4px; }
.st-jalon h3 small { display: block; font-size: .72rem; font-weight: 400; color: var(--orange-fonce); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.st-jalon p { font-size: .86rem; color: var(--texte-doux); margin: 0; line-height: 1.5; }
@media (max-width: 640px) { .st-jalons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; } .st-jalons::before { display: none; } }

/* Boucle de traitement d'un écart */
.st-boucle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: maillon; }
.st-maillon { position: relative; background: var(--blanc); border: 1px solid var(--bordure); border-top: 4px solid var(--orange); border-radius: var(--rayon); padding: 18px 16px; counter-increment: maillon; }
.st-maillon::before { content: counter(maillon); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu); color: var(--blanc); font-size: .8rem; font-weight: 600; margin-bottom: 10px; }
.st-maillon:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.3rem; font-weight: 600; }
.st-maillon h3 { font-size: .98rem; margin-bottom: 4px; }
.st-maillon p { font-size: .85rem; color: var(--texte-doux); margin: 0; }
.st-maillon.ok { border-top-color: var(--bleu); background: var(--bleu); color: #C9D4E0; }
.st-maillon.ok::before { background: var(--orange); }
.st-maillon.ok h3 { color: var(--blanc); }
.st-maillon.ok p { color: #C9D4E0; }
@media (max-width: 760px) { .st-boucle { grid-template-columns: 1fr; gap: 26px; } .st-maillon:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -26px; transform: translateX(-50%); } }

/* FAQ */
.ac-faq { max-width: 860px; }
.ac-faq details { border-top: 1px solid var(--bordure); }
.ac-faq details:last-child { border-bottom: 1px solid var(--bordure); }
.ac-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 400; color: var(--bleu); position: relative; }
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--orange); }
.ac-faq details[open] summary::after { content: "–"; }
.ac-faq details p { padding-bottom: 20px; margin: 0; color: var(--texte-doux); max-width: 68ch; }

/* Article interactif (FD S71-522) : cartes à retourner, choix du type, parcours, liste à cocher, quiz */
.ac-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ac-carte { perspective: 1000px; height: 220px; cursor: pointer; }
.ac-carte-in { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.ac-carte.retournee .ac-carte-in { transform: rotateY(180deg); }
.ac-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--rayon); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.ac-face.recto { background: var(--blanc); border: 1px solid var(--bordure); border-top: 3px solid var(--orange); }
.ac-face.recto b { font-size: 1.02rem; color: var(--bleu); }
.ac-face.recto span { font-size: .8rem; color: var(--texte-doux); font-weight: 400; }
.ac-face.verso { background: var(--bleu); color: #C9D4E0; transform: rotateY(180deg); font-size: .92rem; justify-content: flex-start; gap: 8px; }
.ac-face.verso b { color: var(--blanc); }
.ac-verdict { font-weight: 300; font-size: 1.05rem; letter-spacing: .06em; }
.ac-verdict.faux { color: #FF9B9B; }
.ac-verdict.vrai { color: #7FE0B8; }
.ac-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.ac-type { border: 1px solid var(--bordure); background: var(--blanc); border-radius: var(--rayon); padding: 18px 8px; font-family: inherit; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.ac-type strong { display: block; font-size: 2rem; font-weight: 300; color: var(--bleu); line-height: 1.1; }
.ac-type small { font-size: .74rem; color: var(--texte-doux); font-weight: 400; }
@media (hover: hover) { .ac-type:hover { border-color: var(--bleu-2); } }
.ac-type[aria-pressed="true"] { border-color: var(--orange); background: #FFF6F0; }
.ac-verdict-type { border-radius: var(--rayon); padding: 22px; background: var(--blanc); border: 1px solid var(--bordure); border-left: 6px solid var(--bordure); }
.ac-verdict-type.dedans { border-left-color: #1F9D6B; }
.ac-verdict-type.dehors { border-left-color: #D64545; }
.ac-verdict-type h3 { margin-bottom: 4px; }
.ac-verdict-type p { margin: 0; color: var(--texte-doux); }
@media (max-width: 700px) { .ac-types { grid-template-columns: repeat(3, 1fr); } }
.ac-parcours { display: grid; grid-template-columns: repeat(3, 1fr); }
.ac-parcours button { font-family: inherit; text-align: left; background: var(--blanc); border: 1px solid var(--bordure); padding: 24px; cursor: pointer; transition: background .25s; }
.ac-parcours button + button { border-left: 0; }
.ac-parcours .num { width: 40px; height: 40px; border-radius: 50%; background: var(--bleu); color: var(--blanc); display: grid; place-items: center; font-weight: 300; margin-bottom: 12px; }
.ac-parcours h3 { font-size: 1.1rem; margin-bottom: 4px; }
.ac-parcours p { margin: 0; font-size: .9rem; color: var(--texte-doux); }
.ac-parcours button[aria-selected="true"] { background: var(--bleu); }
.ac-parcours button[aria-selected="true"] h3, .ac-parcours button[aria-selected="true"] p { color: var(--blanc); }
.ac-parcours button[aria-selected="true"] .num { background: var(--orange); }
.ac-parcours-detail { margin-top: 18px; background: var(--blanc); border: 1px dashed var(--gris-trait); border-radius: var(--rayon); padding: 24px; }
.ac-parcours-detail ul { margin: 0; padding-left: 20px; }
.ac-parcours-detail li { margin: 6px 0; color: var(--texte-doux); }
.ac-parcours-detail li::marker { color: var(--orange); }
@media (max-width: 820px) { .ac-parcours { grid-template-columns: 1fr; } .ac-parcours button + button { border-left: 1px solid var(--bordure); border-top: 0; } }
.ac-jauge { height: 12px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin: 26px 0 8px; }
.ac-jauge div { height: 100%; width: 0; background: var(--orange); transition: width .4s; }
.ac-jauge-texte { font-weight: 400; font-size: .9rem; color: var(--blanc); }
.ac-coches { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.ac-coche { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; font: inherit; font-size: .95rem; color: #D6DFEA; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--rayon); padding: 14px; cursor: pointer; }
@media (hover: hover) { .ac-coche:hover { background: rgba(255,255,255,.12); } }
.ac-coche .case { flex: 0 0 22px; height: 22px; border-radius: 4px; border: 2px solid rgba(255,255,255,.5); display: grid; place-items: center; font-weight: 300; font-size: .85rem; color: var(--blanc); }
.ac-coche[aria-pressed="true"] .case { background: var(--orange); border-color: var(--orange); }
.ac-coche[aria-pressed="true"] .case::after { content: "✓"; }
.ac-coche[aria-pressed="true"] span:last-child { opacity: .75; text-decoration: line-through; }
.ac-coches-message { margin-top: 18px; font-weight: 400; color: #FFD2B5; min-height: 1.6em; }
.ac-quiz { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 32px; max-width: 760px; }
.ac-quiz .q-prog { font-size: .78rem; color: var(--texte-doux); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.ac-quiz .q-titre { font-size: 1.2rem; font-weight: 400; color: var(--bleu); margin: 10px 0 20px; }
.ac-quiz .options { display: grid; gap: 10px; }
.ac-quiz .option { text-align: left; font-family: inherit; font-size: .95rem; font-weight: 400; padding: 14px 16px; border-radius: var(--rayon); border: 1px solid var(--bordure); background: var(--gris-fond); cursor: pointer; }
@media (hover: hover) { .ac-quiz .option:hover:not(:disabled) { border-color: var(--bleu-2); } }
.ac-quiz .option.juste { border-color: #1F9D6B; background: #E3F6EE; }
.ac-quiz .option.faux { border-color: #D64545; background: #FBE7E7; }
.ac-quiz .explication { margin-top: 16px; font-size: .92rem; color: var(--texte-doux); min-height: 1.5em; }
.ac-quiz .score { font-size: 2.6rem; font-weight: 300; color: var(--orange); }
.ac-quiz .btn { margin-top: 18px; }
.ac-cable { stroke-dasharray: 6 6; animation: ac-flux 1.6s linear infinite; }
@keyframes ac-flux { to { stroke-dashoffset: -24; } }
.ac-intervenant { animation: ac-marche 6s ease-in-out infinite alternate; }
@keyframes ac-marche { from { transform: translateX(0); } to { transform: translateX(210px); } }
.ac-avertissement { font-size: .8rem; color: var(--texte-doux); max-width: 760px; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .ac-cable, .ac-intervenant { animation: none; } .ac-carte-in { transition: none; } }

/* ==========================================================================
   Bêta-2 : sceau et logotype en verre 3D (js/logo-3d.js, page logo-3d.html)
   ========================================================================== */
[data-logo3d] { position: relative; }
[data-logo3d] canvas { display: block; width: 100%; height: 100%; max-width: 100%; cursor: grab; }
.logo3d-planche { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 120px); }
.logo3d-panneau { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px; gap: 18px; }
.logo3d-clair { background: #FFFFFF; }
.logo3d-sombre { background: var(--bleu); }
.logo3d-sceau { width: min(520px, 90%); aspect-ratio: 1; }
.logo3d-sceau-petit { width: min(380px, 70%); }
.logo3d-texte { width: min(560px, 92%); aspect-ratio: 460 / 95; }
.logo3d-legende { margin: 8px 0 0; font-size: .82rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--texte-doux); text-align: center; }
.logo3d-signature { margin: 0; font-size: clamp(.72rem, 1.2vw, .95rem); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #C9D4E0; text-align: center; }
.logo3d-signature em { font-style: normal; color: var(--orange); }
.logo3d-aide { font-size: .82rem; color: var(--texte-doux); padding-top: 14px; padding-bottom: 14px; }
.logo3d-indisponible::after { content: "Affichage 3D indisponible sur cet appareil"; display: grid; place-items: center; height: 100%; font-size: .85rem; color: var(--texte-doux); }
@media (max-width: 860px) { .logo3d-planche { grid-template-columns: 1fr; } }
/* sceau 3D sur le dos du technicien (accueil bêta-2) : position et taille calculées par js/logo-3d.js */
.hero-sceau3d { position: absolute; z-index: 1; width: 0; height: 0; }
.hero-sceau3d canvas { cursor: default; }

/* ==========================================================================
   Accueil, section #domaines : les 4 blocs côte à côte, celui que survole la souris s'agrandit
   (voir js/main.js). Pas d'épinglage ni d'animation au défilement : la section garde sa hauteur normale.
   ========================================================================== */
#domaines.domaines-survol .grille.domaines { display: flex; gap: 14px; align-items: stretch; }
#domaines.domaines-survol .carte.domaine {
  flex: 1 1 0; min-width: 0; padding: 16px 14px;
  transition: flex-grow .4s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, border-color .3s;
}
#domaines.domaines-survol .carte.domaine.domaine-actif {
  flex-grow: 1.8; box-shadow: 0 18px 44px rgba(14, 42, 71, .16);
  border-top-color: var(--orange); outline: 2px solid var(--orange); outline-offset: -2px;
}
#domaines.domaines-survol .domaine h3 { font-size: 1.05rem; transition: font-size .35s cubic-bezier(.16, 1, .3, 1); }
#domaines.domaines-survol .domaine-actif h3 { font-size: 1.3rem; }
#domaines.domaines-survol .domaine ul { font-size: .82rem; margin-bottom: 12px; transition: font-size .35s cubic-bezier(.16, 1, .3, 1); }
#domaines.domaines-survol .domaine li { padding: 5px 0; line-height: 1.35; }
#domaines.domaines-survol .domaine-actif ul { font-size: .92rem; }
#domaines.domaines-survol .domaine .lien-fleche { font-size: .85rem; }
#domaines.dd-mesure .carte.domaine, #domaines.dd-mesure .domaine h3, #domaines.dd-mesure .domaine ul { transition: none !important; }

/* ==========================================================================
   Accueil (bêta-2) : thèmes en fondu au défilement (sections data-fondu, voir js/main.js)
   La section s'allonge, son contenu reste épinglé ; les blocs se remplacent en fondu
   (montée + flou → net, courbe cubic-bezier(.16, 1, .3, 1) du moteur « Premium 3D Glass »).
   Sans épinglage (mobile, écran bas), les blocs restent tous affichés.
   ========================================================================== */
@property --zc-zoom { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --zc-x { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --zc-y { syntax: "<length>"; inherits: true; initial-value: 0px; }

.fondu-nav, .fondu-avancement { display: none; }
.fondu-pile { display: grid; gap: 24px; }
.fondu-cadre > *, .fondu-pile > * { min-width: 0; }

.fondu-epingle { height: calc(100vh + var(--fondu-n, 3) * 45vh); padding: 0; }
.fondu-epingle > .conteneur {
  position: sticky; top: 86px; height: calc(100vh - 86px);
  display: flex; flex-direction: column; justify-content: center; padding-top: 20px; padding-bottom: 20px;
}
.fondu-epingle .fondu-pile { grid-template-columns: minmax(0, 1fr); gap: 0; }
.fondu-epingle .fondu-item {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(30px) scale(.985); filter: blur(10px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1),
              filter .8s cubic-bezier(.16, 1, .3, 1), visibility 0s linear 1s;
}
.fondu-epingle .fondu-item.fondu-passe { transform: translateY(-30px) scale(.985); }
.fondu-epingle .fondu-item.fondu-actif {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none; filter: none;
  transition-delay: .2s, .2s, .2s, 0s;
}
.fondu-mesure .fondu-item, .fondu-mesure .fondu-item * { transition: none !important; }
.fondu-epingle.fondu-mesure > .conteneur { height: auto; }

/* sommaire (toujours cliquable) et repère d'avancement */
.fondu-epingle .fondu-nav { display: grid; list-style: none; margin: 0; padding: 0; gap: 2px; }
.fondu-nav button {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; width: 100%;
  padding: 8px 0 8px 16px; border: 0; border-left: 2px solid var(--bordure); background: none;
  font-family: inherit; font-size: .9rem; line-height: 1.35; text-align: left; color: var(--texte-doux); cursor: pointer;
  transition: color .5s cubic-bezier(.16, 1, .3, 1), border-color .5s cubic-bezier(.16, 1, .3, 1), padding .5s cubic-bezier(.16, 1, .3, 1);
}
.fondu-nav .fn-num { font-weight: 400; font-size: .78rem; letter-spacing: .08em; color: var(--gris-trait); padding-top: .12em; transition: color .5s; }
.fondu-nav button:focus-visible { color: var(--bleu); }
@media (hover: hover) { .fondu-nav button:hover { color: var(--bleu); } }
.fondu-nav .fondu-courant button { color: var(--bleu); font-weight: 400; border-left-color: var(--orange); padding-left: 22px; }
.fondu-nav .fondu-courant .fn-num { color: var(--orange); }
.fondu-epingle .fondu-avancement {
  display: block; height: 2px; max-width: 340px; margin-top: 22px; background: var(--bordure); border-radius: 2px; overflow: hidden;
}
.fondu-avancement > span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }

/* --- Bêta-5 · Vos constats : diagnostic constat → réponse, en accordéon --- */
.constats-diag { margin-top: 44px; border-top: 2px solid var(--bleu); }
.ct-entetes, .ct-ligne, .ct-int { display: grid; grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 20px; padding-left: 8px; padding-right: 8px; }
.ct-entetes { padding-top: 10px; padding-bottom: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-trait); }
.ct-item { border-bottom: 1px solid var(--bordure); background: rgba(255, 255, 255, .85); }
.ct-ligne { align-items: center; padding-top: 22px; padding-bottom: 22px; cursor: pointer; }
.ct-num { font-size: 1.5rem; font-weight: 300; color: var(--gris-trait); transition: color .3s; }
.ct-titre { margin: 0; font-size: 1.15rem; font-weight: 400; line-height: 1.3; }
.ct-titre button { padding: 0; border: 0; background: none; font: inherit; color: var(--bleu); text-align: left; cursor: pointer; }
.ct-titre button:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.ct-rep { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille { font-size: .78rem; line-height: 1.3; padding: 4px 10px; border-radius: 20px; background: #EAF0F6; color: var(--bleu-2); white-space: nowrap; }
.ct-plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bordure); display: grid; place-items: center; transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .3s, border-color .3s; }
.ct-plus::before { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--bleu); }
@media (hover: hover) { .ct-ligne:hover .ct-num { color: var(--orange); } }
@media (hover: hover) { .ct-ligne:hover .ct-plus { border-color: var(--orange); } }
.ct-item.ouvert .ct-num { color: var(--orange); }
.ct-item.ouvert .ct-plus { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); }
.ct-item.ouvert .ct-plus::before { color: var(--blanc); }
.ct-corps { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.16, 1, .3, 1); }
.ct-item.ouvert .ct-corps { grid-template-rows: 1fr; }
.ct-corps > div { overflow: hidden; min-height: 0; }
.ct-item:not(.ouvert) .ct-corps > div { visibility: hidden; transition: visibility 0s .5s; }
.ct-int { padding-bottom: 28px; }
.ct-txt { grid-column: 2; color: var(--texte-doux); }
.ct-txt p { font-size: .98rem; line-height: 1.65; margin: 0 0 .7em; }
.ct-txt .ct-long { font-size: 1.02rem; color: var(--bleu); margin-bottom: 10px; }
.ct-reponses { grid-column: 3; align-self: start; border-left: 3px solid var(--orange); padding-left: 18px; }
.ct-rep-titre { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.ct-reponses a.reponse { display: block; padding: 3px 0; font-size: .92rem; font-weight: 400; color: var(--bleu-2); text-decoration: none; }
@media (max-width: 820px) {
  .ct-entetes { display: none; }
  .ct-ligne, .ct-int { grid-template-columns: 40px minmax(0, 1fr) 34px; gap: 12px; padding-left: 4px; padding-right: 4px; }
  .ct-rep { display: none; }
  .ct-txt, .ct-reponses { grid-column: 2 / 4; }
  .ct-reponses { margin-top: 6px; }
  .ct-num { font-size: 1.2rem; }
  .ct-titre { font-size: 1.05rem; }
}

/* --- Vos constats --- */
#constats .fondu-pile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { #constats .fondu-pile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { #constats .fondu-pile { grid-template-columns: minmax(0, 1fr); } }
.probleme.a-completer { border-top-style: dashed; }
.probleme.a-completer h3, .probleme.a-completer p { color: var(--gris-trait); font-style: italic; }
#constats.fondu-epingle .fondu-cadre { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
#constats.fondu-epingle .entete-section { margin-bottom: 24px; }
#constats.fondu-epingle .entete-section p { font-size: .98rem; }
#constats.fondu-epingle .fondu-pile { grid-template-columns: minmax(0, 1fr); }
#constats.fondu-epingle .probleme { padding: 44px 48px 36px; border-top-width: 4px; box-shadow: var(--ombre-forte); }
#constats.fondu-epingle .probleme::before {
  content: attr(data-n); position: absolute; top: 18px; right: 32px;
  font-size: 5.6rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: rgba(14, 42, 71, .06);
}
#constats.fondu-epingle .probleme .num { font-size: .8rem; margin-bottom: 18px; }
#constats.fondu-epingle .probleme h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.25; margin-bottom: 16px; padding-right: 90px; }
#constats.fondu-epingle .probleme p { font-size: 1rem; line-height: 1.65; }
#constats.fondu-epingle .probleme .reponse { font-size: .95rem; margin-top: 22px; padding-top: 18px; }

/* --- Notre fil conducteur (méthode) : la frise sert de sommaire, l'étape s'affiche en grand --- */
#methode .methode-pile { display: none; }
#methode.fondu-epingle .entete-section { margin-bottom: 32px; }
#methode.fondu-epingle .entete-section h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
#methode.fondu-epingle .frise li { cursor: pointer; }
#methode.fondu-epingle .frise p { display: none; }
#methode.fondu-epingle .frise::after { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
#methode.fondu-epingle .frise .picto { transition: border-color .5s, background-color .5s, box-shadow .5s, transform .7s cubic-bezier(.16, 1, .3, 1); }
#methode.fondu-epingle .frise li.fondu-courant .picto { background-color: var(--orange); border-color: var(--orange); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(242, 106, 27, .18), 0 10px 30px rgba(242, 106, 27, .35); }
#methode.fondu-epingle .frise li.fondu-courant .picto::after { background: var(--blanc); color: var(--orange); }
#methode.fondu-epingle .methode-pile { display: grid; max-width: 820px; margin: 40px auto 0; }
.methode-detail {
  display: grid; grid-template-columns: auto 72px minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 34px 42px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 50px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.md-num { font-size: 4rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--orange); }
.md-num small { font-size: .95rem; font-weight: 400; letter-spacing: .04em; color: #8FA3B8; margin-left: 4px; }
.methode-detail .picto { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); display: grid; place-items: center; }
.methode-detail .picto::after { content: none; }
.methode-detail .picto svg { width: 40px; height: 40px; }
.methode-detail h3 { font-size: 1.9rem; margin: 0 0 6px; color: var(--blanc); }
.methode-detail p { font-size: 1.12rem; line-height: 1.55; margin: 0; color: #D6DFEA; }

/* --- Bêta-5 · Méthode « ligne de vie du projet » : un câble, 6 ancrages, chaque étape suspendue ---
   Colonnes sans gouttière (marge sur les cartes) : le centre de chaque colonne tombe sur son ancrage. */
.ldv { margin-top: 52px; }
/* 7 étapes : Diagnostic (2), Conception (2), Réalisation (2), Exploitation (1) */
.ldv-phases { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 2fr 2fr 2fr 1fr; }
.ldv-phases li {
  position: relative; margin: 0 8px; padding-bottom: 10px; text-align: center;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #8FA3B8;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.ldv-phases li::before, .ldv-phases li::after { content: ""; position: absolute; bottom: -1px; width: 1px; height: 7px; background: rgba(255, 255, 255, .35); }
.ldv-phases li::before { left: 0; }
.ldv-phases li::after { right: 0; }
.ldv-etapes {
  list-style: none; margin: 0; padding: 52px 0 0; position: relative; counter-reset: ldv;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
}
/* le câble (torons acier) et sa partie « parcourue » en orange, pilotée par --progression (js/main.js) */
.ldv-etapes::before, .ldv-etapes::after { content: ""; position: absolute; top: 10px; left: 7.143%; right: 7.143%; height: 4px; border-radius: 2px; }   /* ½ colonne sur 7 */
.ldv-etapes::before { background: repeating-linear-gradient(115deg, #52657B 0 3px, #C3CFDB 3px 5px); opacity: .75; }
.ldv-etapes::after { background: var(--orange); transform: scaleX(var(--progression, 0)); transform-origin: 0 50%; transition: transform .3s ease-out; }
.ldv-etapes > li {
  counter-increment: ldv; position: relative; margin: 0 8px; padding: 22px 16px 20px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .13); border-top: 3px solid rgba(255, 255, 255, .22); border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  transform-origin: 50% -29px; transition: border-color .4s;
}
/* l'anneau d'ancrage sur le câble… */
.ldv-etapes > li::before {
  content: ""; position: absolute; z-index: 1; top: -51px; left: calc(50% - 11px); width: 22px; height: 22px; box-sizing: border-box;
  border-radius: 50%; border: 4px solid #8FA3B8; background: var(--bleu); transition: border-color .4s, background-color .4s, box-shadow .4s;
}
/* …et la longe qui suspend la carte */
.ldv-etapes > li::after { content: ""; position: absolute; top: -29px; left: calc(50% - 1px); width: 2px; height: 26px; background: rgba(255, 255, 255, .3); transition: background-color .4s; }
.ldv-etapes > li.etape-active { border-top-color: var(--orange); }
.ldv-etapes > li.etape-active::before { border-color: var(--orange); background: var(--blanc); box-shadow: 0 0 0 5px rgba(242, 106, 27, .18); }
.ldv-etapes > li.etape-active::after { background: var(--orange); }
.ldv .picto { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.ldv .picto svg { width: 34px; height: 34px; fill: none; stroke: var(--blanc); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ldv .picto svg .a { stroke: var(--orange); }
.ldv .picto svg .af { fill: var(--orange); stroke: none; }
/* numéro d'étape, discret, dans le coin de la carte */
.ldv .picto::after { content: counter(ldv, decimal-leading-zero); position: absolute; top: 10px; right: 12px; font-size: 1.35rem; font-weight: 300; line-height: 1; color: var(--orange); opacity: .9; }
.ldv h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--blanc); }
.ldv p { font-size: .86rem; line-height: 1.55; color: #B9C7D6; margin: 0; }
/* au survol, la carte se balance doucement sous son ancrage */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ldv-etapes > li:hover { animation: ldv-balance 1.4s ease-out; border-color: rgba(255, 255, 255, .28); border-top-color: var(--orange); }
}
@keyframes ldv-balance { 0% { transform: rotate(0); } 20% { transform: rotate(2.2deg); } 45% { transform: rotate(-1.4deg); } 70% { transform: rotate(.6deg); } 100% { transform: rotate(0); } }
/* écran moyen et petit : le câble devient vertical, les cartes s'empilent à droite */
@media (max-width: 999px) {
  .ldv { margin-top: 36px; }
  .ldv-phases { display: none; }
  .ldv-etapes { grid-template-columns: 1fr; padding: 0 0 0 46px; row-gap: 14px; }
  .ldv-etapes::before, .ldv-etapes::after { top: 30px; bottom: 30px; left: 10px; right: auto; width: 4px; height: auto; }
  .ldv-etapes::before { background: repeating-linear-gradient(25deg, #52657B 0 3px, #C3CFDB 3px 5px); }
  .ldv-etapes::after { transform: scaleY(var(--progression, 0)); transform-origin: 50% 0; }
  .ldv-etapes > li { margin: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 16px; align-items: start; text-align: left; padding: 18px 52px 18px 16px; transform-origin: -24px 30px; }
  .ldv-etapes > li::before { top: 19px; left: -47px; }
  .ldv-etapes > li::after { top: 29px; left: -25px; width: 25px; height: 2px; }
  .ldv .picto { width: 52px; height: 52px; margin: 0; grid-row: span 2; }
  .ldv .picto svg { width: 30px; height: 30px; }
  .ldv h3 { margin: 4px 0 4px; }
}

/* --- Notre positionnement : la photo reste, les engagements défilent dessus en carte « verre » --- */
.positionnement {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; align-items: start;
  grid-template-areas: "photo tete" "photo pile" "photo lien";
}
.positionnement .pos-photo { grid-area: photo; align-self: center; }
.positionnement .fondu-tete { grid-area: tete; }
.positionnement .fondu-pile { grid-area: pile; gap: 0; }
.positionnement .pos-lien { grid-area: lien; justify-self: start; margin-top: 8px; }
.positionnement .argument:first-child { border-top: 0; }
@media (max-width: 900px) {
  .positionnement { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "tete" "pile" "lien"; gap: 28px; }
}
#positionnement.fondu-epingle .positionnement {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px 72px; align-content: center;
  grid-template-areas: "tete photo" "lien photo";
}
#positionnement.fondu-epingle .pos-photo { align-self: center; box-shadow: var(--ombre-forte); max-height: calc(100vh - 140px); }
#positionnement.fondu-epingle .pos-lien { align-self: start; }
#positionnement.fondu-epingle .fondu-pile { grid-area: photo; align-self: end; margin: 0 28px 28px; z-index: 1; }
#positionnement.fondu-epingle .argument {
  border-top: 0; padding: 24px 26px; border-radius: 8px;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 44px rgba(14, 42, 71, .22);
}
#positionnement.fondu-epingle .argument .picto-rond { background: var(--bleu); }
#positionnement.fondu-epingle .argument .picto-rond svg { stroke: var(--blanc); }
#positionnement.fondu-epingle .argument h3 { font-size: 1.15rem; }

/* --- Zone d'intervention : carte vectorielle aux couleurs du site --- */
.zone-fondu {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 56px; align-items: start;
  grid-template-areas: "carte tete" "carte pile";
}
.zone-fondu .zone-carte { grid-area: carte; align-self: center; }
.zone-fondu .fondu-tete { grid-area: tete; }
.zone-fondu .fondu-pile { grid-area: pile; gap: 16px; }
@media (max-width: 900px) {
  .zone-fondu { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "carte" "pile"; gap: 28px; }
}
#zone.fondu-epingle .zone-fondu {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0 64px; align-content: center;
  grid-template-areas: "tete carte" "pile carte";
}
#zone.fondu-epingle .fondu-tete { margin-bottom: 26px; }
#zone.fondu-epingle .fondu-item { align-self: start; }
.zc[data-actif="lu"] .zc-voisin, .zc[data-actif="be"] .zc-voisin, .zc[data-actif="be"] .zc-nom.zc-nom.zc-nom[data-pays="lu"] { opacity: 0; }
.zc-nom[data-pays="lu"] { font-size: calc(17px / var(--zc-zoom)); letter-spacing: .1em; }
.zc-voisin { transition: opacity .9s; }
#zone.fondu-epingle .pays-item { padding: 24px 26px; grid-template-columns: 64px minmax(0, 1fr); box-shadow: var(--ombre-forte); }
#zone.fondu-epingle .pays-item .code { height: 64px; font-size: 1.35rem; background: var(--bleu); color: var(--blanc); }
#zone.fondu-epingle .pays-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
#zone.fondu-epingle .pays-item p { font-size: .98rem; }

.zone-carte {
  position: relative; overflow: hidden; border-radius: 8px; box-shadow: var(--ombre-forte);
  background-color: var(--bleu);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
#zone.fondu-epingle .zone-carte { max-height: calc(100vh - 140px); }
/* variante survol / clic (data-fondu-survol) : section normale, sans épinglage au défilement */
#zone.fondu-survol { height: auto; padding: 96px 0; }
#zone.fondu-survol > .conteneur { position: static; height: auto; padding-top: 0; padding-bottom: 0; }
#zone.fondu-survol .zone-carte { max-height: none; }
#zone.fondu-survol .fondu-avancement { display: none; }
#zone .zone-repos { display: none; }
#zone.fondu-survol .zone-repos {
  display: grid; grid-area: 1 / 1; align-self: start; opacity: 0; visibility: hidden;
  transform: translateY(30px) scale(.985); filter: blur(10px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1),
              filter .8s cubic-bezier(.16, 1, .3, 1), visibility 0s linear 1s;
}
#zone.fondu-survol.fondu-repos .zone-repos { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .2s, .2s, .2s, 0s; }
#zone.fondu-survol .zone-repos .code { font-weight: 400; }
#zone.fondu-survol.fondu-repos .fondu-nav button { color: var(--bleu); border-left-color: var(--orange); }
#zone.fondu-survol.fondu-repos .fondu-nav .fn-num { color: var(--orange); }
#zone .fondu-nav .fondu-fige button { font-weight: 500; }
.zc-cliquable { cursor: pointer; }
.zc { display: block; width: 100%; height: auto; font-family: var(--police); }
.zc-monde {
  transform: translate(var(--zc-x), var(--zc-y)) scale(var(--zc-zoom));
  transition: --zc-zoom 1.4s cubic-bezier(.16, 1, .3, 1), --zc-x 1.4s cubic-bezier(.16, 1, .3, 1), --zc-y 1.4s cubic-bezier(.16, 1, .3, 1);
}
.zc-graticule line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.zc-voisin, .zc-mer { fill: rgba(185, 199, 214, .38); font-size: calc(15px / var(--zc-zoom)); font-weight: 400; letter-spacing: .2em; }
.zc-mer { font-style: italic; font-weight: 400; letter-spacing: .12em; }
.zc-pays path { vector-effect: non-scaling-stroke; transition: fill .9s cubic-bezier(.16, 1, .3, 1), stroke .9s cubic-bezier(.16, 1, .3, 1); }
.zc-fond { fill: rgba(255, 255, 255, .05); }
.zc-hach { opacity: 1; }
.zc-plein { fill: rgba(242, 106, 27, .28); }
.zc-contour { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; }
.zc pattern line { stroke: rgba(242, 106, 27, .5); stroke-width: 1.2; transition: stroke .9s; }
.zc-pays:not(.zc-on) .zc-plein { fill: rgba(255, 255, 255, .07); }
.zc-pays:not(.zc-on) .zc-contour { stroke: rgba(255, 255, 255, .35); stroke-width: 1.1; }
.zc[data-actif="lu"] #zc-h-fr line, .zc[data-actif="be"] #zc-h-fr line,
.zc[data-actif="fr"] #zc-h-be line, .zc[data-actif="lu"] #zc-h-be line { stroke: rgba(255, 255, 255, .13); }
.zc[data-actif="fr"] .zc-on .zc-contour, .zc[data-actif="lu"] .zc-on .zc-contour, .zc[data-actif="be"] .zc-on .zc-contour {
  stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(242, 106, 27, .7));
}
.zc-nom { fill: var(--blanc); font-size: calc(21px / var(--zc-zoom)); font-weight: 400; letter-spacing: .18em; transition: opacity .9s; }
.zc-ville circle { r: calc(4.5px / var(--zc-zoom)); fill: var(--blanc); stroke: var(--bleu); stroke-width: calc(1.5px / var(--zc-zoom)); }
.zc-ville.zc-capitale circle { r: calc(6px / var(--zc-zoom)); fill: var(--orange); stroke: var(--blanc); }
.zc-ville text { fill: #D6DFEA; font-size: calc(16px / var(--zc-zoom)); font-weight: 400; }
.zc-ville, .zc-nom { transition: opacity .9s cubic-bezier(.16, 1, .3, 1); }
.zc[data-actif="fr"] [data-pays]:not([data-pays="fr"]):is(.zc-ville, .zc-nom),
.zc[data-actif="lu"] [data-pays]:not([data-pays="lu"]):is(.zc-ville, .zc-nom),
.zc[data-actif="be"] [data-pays]:not([data-pays="be"]):is(.zc-ville, .zc-nom) { opacity: .35; }
.zc-legende {
  position: absolute; left: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .76rem; font-weight: 400; color: #D6DFEA;
}
.zc-legende span { display: inline-flex; align-items: center; gap: 8px; }
.zc-legende i { display: inline-block; width: 16px; height: 12px; border: 1.5px solid var(--orange); border-radius: 2px; }
.zc-l-plein { background: rgba(242, 106, 27, .4); }
.zc-l-hach { background: repeating-linear-gradient(45deg, rgba(242, 106, 27, .75) 0 1.5px, transparent 1.5px 5px); }
@media (prefers-reduced-motion: reduce) { .zc-monde, .zc-pays path { transition: none; } }
/* Zoom Luxembourg : villes, voisins et rivières visibles seulement quand la carte est centrée sur le pays */
.zc-detail { opacity: 0; pointer-events: none; transition: opacity .9s cubic-bezier(.16, 1, .3, 1); }
#zone .zc[data-actif="lu"] .zc-detail-lu, #zone .zc[data-actif="be"] .zc-detail-be { opacity: 1; }
#zone .zc[data-actif="lu"] .zc-nom[data-pays="lu"], #zone .zc[data-actif="be"] .zc-nom[data-pays="be"] { opacity: 0; }
.zc-detail .zc-ville circle { r: calc(3.4px / var(--zc-zoom)); stroke-width: calc(1.2px / var(--zc-zoom)); }
.zc-detail .zc-ville text { font-size: calc(12.5px / var(--zc-zoom)); }
.zc-detail .zc-principale text { font-size: calc(14.5px / var(--zc-zoom)); fill: var(--blanc); }
.zc-detail-lu .zc-ville[data-pays="lu"] text, .zc-detail-be .zc-ville[data-pays="be"] text { fill: var(--blanc); }
.zc-detail-lu .zc-ville:not([data-pays="lu"]) { opacity: .55; }
.zc-detail .zc-principale text { font-weight: 500; letter-spacing: .02em; }
.zc-voisin-lu { fill: rgba(185, 199, 214, .45); font-size: calc(12px / var(--zc-zoom)); letter-spacing: .22em; }
.zc-riviere { fill: rgba(150, 190, 230, .55); font-size: calc(10.5px / var(--zc-zoom)); font-style: italic; letter-spacing: .08em; }

/* Bêta-2 : titre du haut de page plus long, section « Notre métier » sous le haut de page */
.hero h1 { font-size: clamp(1.75rem, 2.4vw + .7rem, 2.65rem); line-height: 1.15; }
.metier { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.metier .entete-section { margin-bottom: 0; position: sticky; top: 120px; }
.metier-texte p { font-size: 1.05rem; line-height: 1.7; color: var(--texte); margin: 0 0 18px; }
.metier-texte p:first-child { font-size: 1.2rem; font-weight: 400; color: var(--bleu); }
.metier-conclusion {
  margin-top: 28px !important; padding: 20px 24px; border-left: 4px solid var(--orange);
  background: var(--gris-fond); font-weight: 400; color: var(--bleu) !important;
}
@media (max-width: 900px) { .metier { grid-template-columns: minmax(0, 1fr); } .metier .entete-section { position: static; } }
/* panneaux « Donneur d'ordre » / « Installateur » : onglets et carrés plus compacts (jusqu'à 7 prestations) */
#hero-donneur .hs-onglets button, #hero-installateur .hs-onglets button { font-size: .72rem; letter-spacing: .02em; padding: 8px 6px; line-height: 1.2; }
#hero-donneur .hs-onglets, #hero-installateur .hs-onglets { margin-bottom: 10px; }
#hero-donneur .hs-item:has(> a), #hero-installateur .hs-item:has(> a) { min-height: 84px; }
@media (min-width: 761px) {
  #hero-donneur .hs-grille, #hero-installateur .hs-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #hero-donneur .hs-texte, #hero-installateur .hs-texte { font-size: .7rem; }
}
@media (max-width: 760px) { .hero .actions .btn { white-space: normal; text-align: center; max-width: 100%; } }
/* petit écran : la photo passe sous le texte, le sceau 3D gênerait la lecture */
@media (max-width: 900px) { .hero-sceau3d { display: none; } }

/* Bêta-2 : boutons « votre situation » du haut de page — blancs, orange une fois sélectionnés */
.hero .btn.btn-situation { background: var(--blanc); color: var(--bleu); border-color: var(--blanc); }
@media (hover: hover) { .hero .btn.btn-situation:hover { background: var(--blanc); color: var(--orange-fonce); border-color: var(--orange); } }
.hero .btn.btn-situation.actif, .hero .btn.btn-situation[aria-expanded="true"], .hero .btn.btn-situation:active {
  background: var(--orange); color: var(--blanc); border-color: var(--orange);
}
.hero .intro { margin-bottom: 22px; }
.hero-situation { font-size: .92rem; font-weight: 400; color: #DCE4EE; margin: 0 0 14px; }

/* Bandeau actualité FD S71-522 (accueil, juste avant « Notre métier ») */
.bandeau-actu { background: #FFF4EC; border-top: 1px solid #F9D3BA; border-bottom: 1px solid #F9D3BA; padding: 26px 0; position: relative; overflow: hidden; }
.bandeau-actu::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.bandeau-actu-interieur { display: flex; align-items: center; gap: 24px; }
.bandeau-actu-pastille { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 600; box-shadow: 0 0 0 6px rgba(242,106,27,.18); animation: bandeau-actu-pouls 2.4s ease-in-out infinite; }
@keyframes bandeau-actu-pouls { 0%,100% { box-shadow: 0 0 0 6px rgba(242,106,27,.18); } 50% { box-shadow: 0 0 0 12px rgba(242,106,27,.06); } }
@media (prefers-reduced-motion: reduce) { .bandeau-actu-pastille { animation: none; } }
.bandeau-actu-texte { flex: 1; min-width: 0; }
.bandeau-actu-etiquette { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-fonce); margin-bottom: 4px; }
.bandeau-actu h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 4px; }
.bandeau-actu p { margin: 0; color: #4A5B6E; }
.bandeau-actu-actions { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bandeau-actu-lien { font-size: .9rem; text-decoration: none; color: var(--bleu-2); }
@media (hover: hover) { .bandeau-actu-lien:hover { color: var(--orange-fonce); } }
@media (max-width: 760px) {
  .bandeau-actu-interieur { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bandeau-actu-pastille { width: 44px; height: 44px; font-size: 1.4rem; }
  .bandeau-actu-actions { align-items: flex-start; }
}