/* =====================================================================
   THEOREMS - surcouche du template Cassiopeia (cassiopeia_theorems)
   Charte : bleu acier (fonds), bleu du logo (liens), orange du contour
   du logo (cotes, repères, focus). Titres en DIN (Bahnschrift sous Windows,
   DIN Alternate sous macOS), textes en police système : aucune police
   externe n'est chargée.
   ===================================================================== */

:root {
  --thr-acier: #15314d;
  --thr-acier-2: #1f4469;
  --thr-bleu: #2e74b5;
  --thr-ciel: #9cc8ec;
  --thr-orange: #f4b083;
  --thr-beton: #eef2f6;
  --thr-encre: #1d2935;
  --thr-gris: #5a6876;
  --thr-trait: #d3dbe4;
  --thr-titres: Bahnschrift, "DIN Alternate", "DIN Next LT Pro", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --thr-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --cassiopeia-color-primary: var(--thr-acier);
  --cassiopeia-color-hover: var(--thr-acier-2);
  --cassiopeia-color-link: var(--thr-bleu);
  --link-color: var(--thr-bleu);
  --link-color-rgb: 46, 116, 181;
  --link-hover-color: var(--thr-acier);
  --link-hover-color-rgb: 21, 49, 77;
  --cassiopeia-font-family-body: var(--thr-texte);
  --cassiopeia-font-family-headings: var(--thr-titres);
  --cassiopeia-font-weight-headings: 600;
}

body {
  color: var(--thr-encre);
  font-family: var(--thr-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--thr-titres);
  font-weight: 600;
  color: var(--thr-acier);
  letter-spacing: .01em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); margin-bottom: 1.25rem; }
h2 { font-size: 1.375rem; margin-top: 2rem; margin-bottom: .75rem; }
h3 { font-size: 1.125rem; }

a { color: var(--thr-bleu); text-underline-offset: .15em; }
a:hover { color: var(--thr-acier); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--thr-bleu);
  outline-offset: 2px;
  box-shadow: none;
}

.com-content-article__body > p,
.com-content-article__body > ul,
.thr-contact__intro p,
.blog-item p {
  max-width: 68ch;
}

/* ---------------------------------------------------------------- en-tête */
.container-header {
  background: var(--thr-acier);
  box-shadow: none;
}

.container-header .grid-child {
  padding-top: .5rem;
  padding-bottom: 0;
}

.container-header .navbar-brand {
  padding-top: .75rem;
  padding-bottom: .5rem;
}

.container-header .brand-logo,
.container-header .brand-logo:hover {
  color: #fff;
  font-family: var(--thr-titres);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
}

.container-header .site-description {
  color: var(--thr-ciel);
  font-size: .9375rem;
  letter-spacing: .01em;
}

.container-header .container-nav {
  padding-top: 0;
  padding-bottom: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > .mod-menu__heading {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}

.container-header .metismenu.mod-menu .metismenu-item.level-1 {
  padding: .65em .9em .55em;
  border-bottom: 3px solid transparent;
}

.container-header .metismenu.mod-menu .metismenu-item.level-1.active,
.container-header .metismenu.mod-menu .metismenu-item.level-1:hover {
  border-bottom-color: var(--thr-orange);
}

.container-header .metismenu > li:first-child { margin-left: -.9em; }

.container-header .metismenu .mm-toggler { color: var(--thr-ciel); }

.container-header .metismenu > li > .mm-collapse {
  background: #fff;
  border: 1px solid var(--thr-trait);
  border-top: 3px solid var(--thr-orange);
  box-shadow: 0 10px 24px rgba(21, 49, 77, .18);
  min-width: 17rem;
}

.container-header .metismenu > li > .mm-collapse > li > a {
  color: var(--thr-acier);
  font-size: .9688rem;
  text-decoration: none;
}

.container-header .metismenu > li > .mm-collapse > li > a:hover,
.container-header .metismenu > li > .mm-collapse > li.active > a {
  color: var(--thr-bleu);
  text-decoration: underline;
}

.container-header .navbar-toggler {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 2px;
  padding: .4rem .65rem;
  margin: 0 0 .75rem;
}

@media (max-width: 991.98px) {
  .container-header .metismenu > li > .mm-collapse {
    background: var(--thr-acier-2);
    border: 0;
    box-shadow: none;
  }
  .container-header .metismenu > li > .mm-collapse > li > a { color: #fff; }
  .container-header .metismenu > li:first-child { margin-left: 0; }
}

/* ---------------------------------------------------------------- bandeau d'accueil */
.container-banner { background: var(--thr-acier); }

.thr-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem) .5em 0;
  color: #fff;
}

.thr-hero__texte { max-width: 46rem; }

.thr-hero h1 {
  color: #fff;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.thr-hero__accroche {
  color: var(--thr-ciel);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.thr-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

.thr-bouton,
.thr-bouton:hover {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 2px solid var(--thr-orange);
  border-radius: 2px;
  background: var(--thr-orange);
  color: var(--thr-acier);
  font-family: var(--thr-titres);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}

.thr-bouton:hover { background: #f7c4a1; border-color: #f7c4a1; }

.thr-bouton--contour,
.thr-bouton--contour:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.thr-bouton--contour:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.thr-hero__dessin { margin-top: clamp(1.5rem, 1rem + 2vw, 2.75rem); }

.thr-hero__dessin img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- fil d'Ariane */
.mod-breadcrumbs,
.mod-breadcrumbs.px-3 { padding: .75rem 0 0 !important; margin: 0; background: none; font-size: .875rem; }
.mod-breadcrumbs a { color: var(--thr-gris); }

/* ---------------------------------------------------------------- contenu */
.container-component { padding: 1.5rem .5em 3rem; }
.container-breadcrumbs,
.site-grid > .container-top-a,
.site-grid > .container-bottom-a { padding-left: .5em; padding-right: .5em; }

.page-header h1 { margin-top: .5rem; }

/* Blocs (anciens onglets) */
.thr-blocs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 3rem;
  margin: 2rem 0 1rem;
}

@media (min-width: 900px) {
  .thr-blocs { grid-template-columns: 1fr 1fr; }
}

.thr-bloc {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--thr-trait);
}

.thr-bloc__img {
  flex: 0 0 auto;
  width: 8.5rem;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.thr-bloc__corps { min-width: 0; }

.thr-bloc h2 {
  font-size: 1.1875rem;
  margin: 0 0 .5rem;
}

.thr-bloc h2 a { color: var(--thr-acier); text-decoration-color: var(--thr-orange); text-decoration-thickness: 2px; }
.thr-bloc h2 a:hover { color: var(--thr-bleu); }

.thr-bloc ul,
.thr-liens,
.thr-carte-liste {
  padding-left: 1.1rem;
  margin: 0;
}

.thr-bloc li { margin-bottom: .3rem; font-size: 1rem; line-height: 1.5; }
.com-content-article__body ul li::marker { color: var(--thr-bleu); }

@media (max-width: 575.98px) {
  .thr-bloc { gap: 1rem; }
  .thr-bloc__img { width: 5.5rem; }
}

/* Cartes de renvoi (page Prestations) */
.thr-renvois {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.thr-renvois a {
  display: block;
  color: var(--thr-acier);
  text-decoration: none;
}

.thr-renvois img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
}

.thr-renvois span {
  display: block;
  margin-top: .6rem;
  font-family: var(--thr-titres);
  font-weight: 600;
  font-size: 1.0625rem;
}

.thr-renvois a:hover span { color: var(--thr-bleu); text-decoration: underline; text-decoration-color: var(--thr-orange); }

/* Illustrations flottantes */
.thr-illus { border-radius: 2px; height: auto; max-width: 100%; }
.thr-illus--droite { float: right; margin: .25rem 0 1rem 1.5rem; max-width: 40%; }
.thr-illus--petite { max-width: 12rem; }
.thr-figure { margin: 1.5rem 0; }
.thr-figure img { max-width: 100%; height: auto; }

@media (max-width: 575.98px) {
  .thr-illus--droite { float: none; display: block; margin: 0 0 1rem; max-width: 100%; }
}

/* Documents à télécharger */
.thr-doc a {
  display: inline-block;
  padding: .6rem 1rem;
  border: 1px solid var(--thr-trait);
  border-left: 3px solid var(--thr-bleu);
  background: var(--thr-beton);
  text-decoration: none;
}

/* Liens utiles, plan du site */
.thr-liens li { margin-bottom: 1rem; }
.thr-liens a { font-weight: 600; }
.thr-plan ul { padding-left: 1.1rem; }
.thr-plan > p { margin: 0; }

/* Blog (Actualités, Documentation) */
.blog-items .blog-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--thr-trait);
  margin-bottom: 0;
}

.blog-item .page-header h2 { margin-top: 0; font-size: 1.375rem; }
.blog-item .page-header h2 a { color: var(--thr-acier); }
.article-info { color: var(--thr-gris); font-size: .875rem; }

/* ---------------------------------------------------------------- contact */
.thr-choix {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.thr-choix a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--thr-trait);
  border-left: 3px solid var(--thr-bleu);
  border-radius: 2px;
  color: var(--thr-encre);
  text-decoration: none;
}

.thr-choix a:hover { border-color: var(--thr-bleu); background: var(--thr-beton); }

.thr-choix__titre {
  display: block;
  font-family: var(--thr-titres);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--thr-acier);
  margin-bottom: .25rem;
}

.thr-choix__desc { display: block; color: var(--thr-gris); font-size: .9688rem; }

.thr-coord {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: 1fr;
  padding-top: 1.5rem;
  border-top: 1px solid var(--thr-trait);
}

@media (min-width: 900px) {
  .thr-coord { grid-template-columns: minmax(16rem, 1fr) 2fr; }
}

.thr-coord h2 { margin-top: 0; }

.thr-carte {
  width: 100%;
  min-height: 20rem;
  background: var(--thr-beton);
  border: 1px solid var(--thr-trait);
  border-radius: 2px;
  z-index: 0;
}

.thr-carte--grande { min-height: 36rem; margin: 1.5rem 0; }

@media (max-width: 767.98px) {
  .thr-carte--grande { min-height: 26rem; }
}

.thr-carte-details { margin-top: 1rem; }
.thr-carte-details summary { cursor: pointer; font-weight: 600; color: var(--thr-bleu); }
.thr-carte-liste li { padding: 1rem 0; border-bottom: 1px solid var(--thr-trait); }
.thr-carte-liste img,
.thr-bulle img { max-width: 100%; height: auto; }
.thr-bulle h3 { font-size: 1rem; margin: 0 0 .4rem; }
.thr-bulle p { margin: 0 0 .35rem; font-size: .875rem; }

/* Pages formulaires : intro + coordonnées à gauche, formulaire à droite ; en mobile intro, formulaire, coordonnées */
.thr-contact__grille {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: 1fr;
  grid-template-areas: "intro" "form" "coord";
}

.thr-contact__intro { grid-area: intro; }
.thr-contact__formulaire { grid-area: form; }
.thr-contact__coord { grid-area: coord; }

@media (min-width: 992px) {
  .thr-contact__grille {
    grid-template-columns: minmax(16rem, 1fr) 2fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro form" "coord form";
  }
}

.thr-contact__coord,
.thr-contact__formulaire { border-top: 1px solid var(--thr-trait); padding-top: 1.25rem; }
.thr-contact__coord h2,
.thr-contact__formulaire h2 { margin-top: 0; }
.thr-contact__coord .thr-carte { margin-top: 1.5rem; min-height: 16rem; }
.thr-adresse { margin-bottom: .75rem; font-style: normal; }
.thr-contact__intro p { margin-bottom: .75rem; }

.thr-form__note { color: var(--thr-gris); font-size: .875rem; }

.thr-form__champs {
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .thr-form__champs { grid-template-columns: 1fr 1fr; }
  .thr-form__champ--large { grid-column: 1 / -1; }
}

.thr-form .control-group { margin-bottom: 1rem; display: block; }
.thr-form .control-label { width: auto; float: none; padding-top: 0; text-align: left; }
.thr-form .controls { margin-left: 0; }
.thr-form label { font-weight: 600; font-size: .9375rem; color: var(--thr-acier); margin-bottom: .3rem; }
.thr-form .form-control,
.thr-form .form-select { border-radius: 2px; border-color: #b9c5d1; width: 100%; max-width: none; }
.thr-form .input-group { flex-wrap: nowrap; max-width: 22rem; }
.thr-form .input-group > .form-control { width: 1%; flex: 1 1 auto; }
.thr-form .input-group > .btn { border-radius: 0 2px 2px 0; }
.thr-form textarea.form-control { min-height: 10rem; }
.thr-form__captcha { margin: .5rem 0 1.25rem; }

.btn-primary {
  --btn-bg: var(--thr-acier);
  --btn-border-color: var(--thr-acier);
  --btn-hover-bg: var(--thr-bleu);
  --btn-hover-border-color: var(--thr-bleu);
  --btn-active-bg: var(--thr-acier-2);
  --btn-active-border-color: var(--thr-acier-2);
  border-radius: 2px;
  font-family: var(--thr-titres);
  font-weight: 600;
  padding: .65rem 1.4rem;
}

/* ---------------------------------------------------------------- pied de page */
.container-footer {
  background: var(--thr-acier);
  background-image: none;
  color: var(--thr-ciel);
  margin-top: 0;
}

.container-footer .grid-child {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: 1fr;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .container-footer .grid-child { grid-template-columns: minmax(14rem, 1fr) 2fr; }
}

.container-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.container-footer a:hover { color: #fff; text-decoration-color: var(--thr-orange); }
.thr-pied p { margin: 0 0 .75rem; font-size: .9688rem; }
.thr-pied .thr-pied__nom { font-family: var(--thr-titres); font-weight: 600; letter-spacing: .14em; color: #fff; font-size: 1.25rem; }

.container-footer .thr-menu-pied {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .5rem 2rem;
  list-style: none;
  padding: 0;
  margin: .4rem 0 0;
}

.container-footer .thr-menu-pied .nav-item a { padding: 0; font-size: .9688rem; }

.back-to-top-link { background: var(--thr-orange); color: var(--thr-acier); border-radius: 2px; }

/* ---------------------------------------------------------------- mouvement, impression */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .container-header .container-nav,
  .container-banner,
  .container-footer .thr-menu-pied,
  .back-to-top-link,
  .thr-carte { display: none !important; }
}

/* ---------------------------------------------------------------- alignements et dessin en mobile */
@media (max-width: 991.98px) {
  .container-header .grid-child,
  .container-footer .grid-child,
  .thr-hero { padding-left: 1rem; padding-right: 1rem; }
  .container-component,
  .container-breadcrumbs { padding-left: 0; padding-right: 0; }
  .mod-breadcrumbs { padding-left: 0; }
}

@media (max-width: 767.98px) {
  .thr-hero__dessin { overflow: hidden; }
  .thr-hero__dessin img { width: 175%; max-width: none; margin-left: -37.5%; }
}

/* Bloc d'informations des articles : pas d'intitulé « Détails » */
.article-info .article-info-term { display: none; }
.article-info { margin: 0 0 .75rem; }

/* Écrans intermédiaires : en-tête, bandeau et pied alignés sur le contenu */
@media (min-width: 992px) and (max-width: 1359.98px) {
  .container-header .grid-child,
  .container-footer .grid-child,
  .thr-hero { padding-left: 1.5em; padding-right: 1.5em; }
}

/* Les grilles de cartes occupent toute la largeur (pas la limite de longueur de ligne du texte) */
.com-content-article__body > ul.thr-renvois,
.com-content-article__body > ul.thr-choix,
.com-content-article__body > ul.thr-prestas { max-width: none; }

/* Page Domaines : sous-thèmes en liens directs vers les blocs ; ancres sous l'en-tête */
.thr-bloc { scroll-margin-top: 1.5rem; }
.thr-bloc--domaine p { margin: 0 0 .75rem; font-size: 1rem; }
.thr-themes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.thr-themes li { margin: 0; }
.thr-themes li::marker { content: none; }
.thr-themes a {
  display: inline-block;
  padding: .2rem .65rem;
  border: 1px solid var(--thr-trait);
  border-radius: 2px;
  font-size: .9375rem;
  text-decoration: none;
}
.thr-themes a:hover { border-color: var(--thr-bleu); background: var(--thr-beton); }
.thr-bloc .thr-themes { padding-left: 0; }

/* =====================================================================
   Logo, focus sur fond sombre, boutons pleins
   ===================================================================== */
.container-header :focus-visible,
.container-banner :focus-visible,
.container-footer :focus-visible { outline-color: var(--thr-orange); }

.container-header .brand-logo img { display: block; height: 60px; width: auto; }
@media (max-width: 767.98px) { .container-header .brand-logo img { height: 44px; } }
.container-header .navbar-brand { padding-top: 1rem; padding-bottom: .75rem; }

.thr-pied__logo { margin: 0 0 .35rem; }
.thr-pied__logo img { display: block; height: 48px; width: auto; }
.thr-pied .thr-pied__devise { font-family: "Segoe Script", "Bradley Hand", cursive; color: var(--thr-orange); font-size: 1.0625rem; margin-bottom: 1rem; }

.thr-bouton--plein,
.thr-bouton--plein:hover { background: var(--thr-acier); border-color: var(--thr-acier); color: #fff; }
.thr-bouton--plein:hover { background: var(--thr-bleu); border-color: var(--thr-bleu); }

/* =====================================================================
   Références : filtres
   ===================================================================== */
.thr-references__intro p { max-width: 72ch; }

.thr-filtres {
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem 1.25rem .75rem;
  background: var(--thr-beton);
  border-radius: 2px;
}

.thr-filtres__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-bottom: .9rem; }
.thr-filtres__titre { margin: 0; font-weight: 600; color: var(--thr-acier); font-size: .9375rem; min-width: 6.5rem; }
.thr-puces { display: flex; flex-wrap: wrap; gap: .45rem; flex: 1 1 30rem; }

.thr-puce {
  border: 1px solid #b9c5d1;
  background: #fff;
  color: var(--thr-acier);
  border-radius: 2px;
  padding: .35rem .7rem;
  font-size: .9375rem;
  line-height: 1.3;
  cursor: pointer;
}

.thr-puce:hover { border-color: var(--thr-bleu); }
.thr-puce[aria-pressed="true"] { background: var(--thr-acier); border-color: var(--thr-acier); color: #fff; }
.thr-puce__nb { color: var(--thr-gris); font-size: .8125rem; margin-left: .15rem; }
.thr-puce[aria-pressed="true"] .thr-puce__nb { color: var(--thr-ciel); }

.thr-filtres__ligne--champs { align-items: flex-end; }
.thr-champ { display: flex; flex-direction: column; gap: .25rem; font-size: .875rem; font-weight: 600; color: var(--thr-acier); margin: 0; }
.thr-champ select,
.thr-champ input {
  min-width: 14rem;
  border: 1px solid #b9c5d1;
  border-radius: 2px;
  padding: .45rem .6rem;
  font: inherit;
  font-weight: 400;
  color: var(--thr-encre);
  background: #fff;
}
.thr-champ--recherche { flex: 1 1 16rem; }
.thr-champ--recherche input { width: 100%; }

.thr-filtres__ligne--bilan { justify-content: space-between; margin-bottom: .25rem; }
.thr-filtres__compte { margin: 0; color: var(--thr-encre); }
.thr-lien-bouton { background: none; border: 0; padding: 0; color: var(--thr-bleu); text-decoration: underline; cursor: pointer; font: inherit; }
.thr-vues { display: inline-flex; margin-left: auto; }
.thr-vue { border: 1px solid #b9c5d1; background: #fff; padding: .35rem .9rem; font: inherit; font-size: .9375rem; cursor: pointer; color: var(--thr-acier); }
.thr-vue + .thr-vue { border-left: 0; }
.thr-vue[aria-pressed="true"] { background: var(--thr-acier); border-color: var(--thr-acier); color: #fff; }

/* =====================================================================
   Références : cartes
   ===================================================================== */
.thr-refs {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1.75rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.thr-ref[hidden] { display: none; }
.thr-ref__lien { display: flex; flex-direction: column; height: 100%; color: var(--thr-encre); text-decoration: none; }
.thr-ref__visuel { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--thr-acier); border-radius: 2px; overflow: hidden; }
.thr-ref__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thr-ref__statut {
  position: absolute; left: .6rem; top: .6rem;
  background: var(--thr-orange); color: var(--thr-acier);
  font-size: .8125rem; font-weight: 600; padding: .15rem .5rem; border-radius: 2px;
}
.thr-ref__corps { display: flex; flex-direction: column; padding-top: .75rem; gap: .15rem; }
.thr-ref__titre { font-family: var(--thr-titres); font-weight: 600; font-size: 1.125rem; line-height: 1.25; color: var(--thr-acier); }
.thr-ref__lien:hover .thr-ref__titre { color: var(--thr-bleu); text-decoration: underline; text-decoration-color: var(--thr-orange); text-decoration-thickness: 2px; }
.thr-ref__lieu { font-weight: 600; font-size: .9375rem; color: var(--thr-encre); }
.thr-ref__mo,
.thr-ref__annees { font-size: .875rem; color: var(--thr-gris); }

.thr-refs__vide { padding: 1.5rem; background: var(--thr-beton); }
.thr-carte--references { min-height: 38rem; margin: 0 0 1rem; }
@media (max-width: 767.98px) { .thr-carte--references { min-height: 28rem; } }
.thr-refs__note { font-size: .875rem; color: var(--thr-gris); }
.thr-bulle a { font-weight: 600; }

.thr-lexique { margin-top: 1rem; border-top: 1px solid var(--thr-trait); padding-top: 1rem; }
.thr-lexique summary { cursor: pointer; font-weight: 600; color: var(--thr-bleu); }
.thr-lexique dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 1rem 0 0; font-size: .9375rem; }
.thr-lexique dt { font-weight: 600; color: var(--thr-acier); }
.thr-lexique dd { margin: 0; }

/* Bloc d'accueil et références associées */
.thr-refs-accueil { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--thr-trait); }
.thr-refs-accueil h2,
.thr-refs-associees h2 { margin-top: 0; }
.thr-refs-associees { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--thr-trait); }
.thr-refs--compact { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 992px) { .thr-refs--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.thr-refs--compact .thr-ref__titre { font-size: 1rem; }

/* =====================================================================
   Fiche d'une référence
   ===================================================================== */
.thr-fiche__retour { margin: 0 0 .75rem; font-size: .9375rem; }
.thr-fiche__retour a::before { content: "\2190\00a0"; }
.thr-fiche h1 { max-width: 30ch; }
.thr-fiche__visuel { margin: 0 0 2rem; }
.thr-fiche__visuel img { display: block; width: 100%; max-height: 34rem; object-fit: cover; border-radius: 2px; }

.thr-fiche__grille { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); }
.thr-fiche__grille > * { min-width: 0; }
@media (min-width: 992px) { .thr-fiche__grille { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); } }

.thr-fiche__texte > p:first-child { font-size: 1.1875rem; line-height: 1.55; color: var(--thr-acier); }
.thr-fiche__texte h2 { font-size: 1.25rem; }
.thr-carac li { margin-bottom: .3rem; }

.thr-fiche__infos { align-self: start; }
.thr-fiche__infos dl { margin: 0; padding: 1.25rem 1.25rem .5rem; background: var(--thr-beton); border-top: 3px solid var(--thr-acier); }
.thr-fiche__infos dt { font-size: .8125rem; font-weight: 600; color: var(--thr-gris); }
.thr-fiche__infos dd { margin: 0 0 .85rem; color: var(--thr-encre); }
.thr-fiche__themes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.thr-fiche__themes a { display: inline-block; padding: .15rem .5rem; border: 1px solid #b9c5d1; background: #fff; border-radius: 2px; font-size: .875rem; text-decoration: none; }
.thr-carte--fiche { min-height: 15rem; margin-top: 1rem; }
.thr-fiche__note { font-size: .8125rem; color: var(--thr-gris); margin-top: .35rem; }

.thr-galerie {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}
.thr-galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--thr-beton); }
.thr-galerie img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thr-galerie a:hover img { opacity: .9; }

.thr-visionneuse { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.thr-visionneuse::backdrop { background: rgba(10, 22, 35, .88); }
.thr-visionneuse figure { margin: 0; }
.thr-visionneuse img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; background: #fff; }
.thr-visionneuse figcaption { color: #fff; text-align: center; padding-top: .5rem; font-size: .875rem; }
.thr-visionneuse button {
  position: fixed; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  width: 3rem; height: 3rem; font-size: 1.75rem; line-height: 1; cursor: pointer; border-radius: 2px;
}
.thr-visionneuse button:hover { background: rgba(255, 255, 255, .28); }
.thr-visionneuse__fermer { top: 1rem; right: 1rem; }
.thr-visionneuse__prec { left: 1rem; top: 50%; }
.thr-visionneuse__suiv { right: 1rem; top: 50%; }

.thr-tableau { overflow-x: auto; margin: 1rem 0; }
.thr-tableau table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.thr-tableau th,
.thr-tableau td { border-bottom: 1px solid var(--thr-trait); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.thr-tableau thead th { color: var(--thr-acier); border-bottom: 2px solid var(--thr-acier); }

/* Page Le bureau, pages prestations */
.thr-clients { list-style: none; padding: 0; }
.thr-clients li { padding: .6rem 0; border-bottom: 1px solid var(--thr-trait); }
.thr-renvois--photos li { margin: 0; }

/* Dessin du bandeau : version de nuit (THEOREMS) par défaut, version de jour pour la présentation Moderne */
.thr-dessin--jour { display: none !important; }

/* =====================================================================
   Bandeau d'accueil : grand ouvrage en filigrane, façon coups de crayon (remplace la coupe cotée)
   ===================================================================== */
.thr-hero__dessin { display: none !important; }
.container-banner {
  background: url("../images/ouvrage-craie.svg") no-repeat right max(.5rem, calc((100% - 1320px) / 2 + .5em)) bottom -10px / min(860px, 64%) auto, var(--thr-acier);
}
.thr-hero { min-height: clamp(26rem, 38vw, 36rem); padding-bottom: clamp(4rem, 8vw, 7rem); display: flex; flex-direction: column; justify-content: center; }
.thr-hero > * { position: relative; max-width: 40rem; }
@media (max-width: 767.98px) {
  .container-banner { background-size: 150% auto; background-position: center bottom; }
  .thr-hero { min-height: 0; padding-bottom: 14rem; }
}

/* =====================================================================
   Dessin propre à chaque page (classe de page posée par l'entrée de menu : thr-dessin thr-dessin--<scène>)
   ===================================================================== */
@media (min-width: 992px) {
  .thr-dessin .container-component { background-repeat: no-repeat; background-position: right -1rem top 8rem; background-size: min(600px, 44%) auto; }
  .thr-dessin--arc .container-component { background-image: url("../images/dessin-arc-graphite.svg"); }
  .thr-dessin--voutes .container-component { background-image: url("../images/dessin-voutes-graphite.svg"); }
  .thr-dessin--convoi .container-component { background-image: url("../images/dessin-convoi-graphite.svg"); }
  .thr-dessin--filaire .container-component { background-image: url("../images/dessin-filaire-graphite.svg"); }
  .thr-dessin--inspection .container-component { background-image: url("../images/dessin-inspection-graphite.svg"); }
  .thr-dessin .com-content-article__body > .thr-illus--droite:first-child { margin-top: 15rem; }
}

/* =====================================================================
   Accueil : bande défilante « Dernières opérations »
   ===================================================================== */
.thr-defile { margin: 2.5rem 0 .5rem; }
.thr-defile__tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.25rem; }
.thr-defile__tete h2 { margin: 0 auto 0 0; }
.thr-defile__pause, .thr-defile__tout { background: none; border: 1px solid var(--thr-trait); border-radius: 2px; padding: .25rem .7rem; font: inherit; font-size: .875rem; color: var(--thr-encre); cursor: pointer; }
.thr-defile[data-pause] .thr-defile__pause { background: var(--thr-beton); }
.thr-defile__fenetre {
  overflow: hidden; margin-top: .75rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.thr-defile__piste { display: flex; gap: 1.25rem; width: max-content; list-style: none; margin: 0; padding: .75rem 0 1.25rem; animation: thr-defile 80s linear infinite; }
/* pause : bouton, survol de la bande à la souris, ou carte atteinte au clavier. Le survol et le focus ne portent plus sur
   l'en-tête : sur téléphone, le bouton touché gardait le focus (et le « survol ») et la bande ne reprenait jamais (1.23.2). */
.thr-defile[data-pause] .thr-defile__piste, .thr-defile__fenetre:focus-within .thr-defile__piste { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .thr-defile__fenetre:hover .thr-defile__piste { animation-play-state: paused; } }
@keyframes thr-defile { to { transform: translateX(calc(-50% - .625rem)); } }
.thr-defile__piste li { flex: none; width: 17.5rem; }
.thr-defile__piste a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--thr-encre); }
.thr-defile__piste img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 2px; }
.thr-defile__titre { font-family: var(--thr-titres); font-weight: 600; color: var(--thr-acier); line-height: 1.3; margin-top: .65rem; }
.thr-defile__piste a:hover .thr-defile__titre { color: var(--thr-bleu); text-decoration: underline; }
.thr-defile__lieu { font-size: .875rem; color: var(--thr-gris); margin-top: .2rem; }
.thr-defile__annee { font-size: .8125rem; font-weight: 600; color: var(--thr-encre); margin-top: auto; padding-top: .3rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .thr-defile__piste { animation: none; }
  .thr-defile__fenetre { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .thr-defile__piste li[aria-hidden="true"], .thr-defile__pause { display: none; }
}
/* modules de la position top-a (bande défilante) : sans cadre de carte */
.container-top-a > .card, .container-top-a .card-body { background: transparent; border: 0; box-shadow: none; padding: 0; }
@media (min-width: 992px) {
  .thr-dessin--bowstring .container-component { background-image: url("../images/dessin-bowstring-graphite.svg"); }
  .thr-dessin--haubans.view-category .container-component { background-image: url("../images/ouvrage-graphite.svg"); }
}

/* =====================================================================
   Accueil : chapeau, prestations dessinées, clients, appel à l'action
   ===================================================================== */
.thr-accueil__chapeau { font-size: 1.1875rem; line-height: 1.55; max-width: 46rem; color: var(--thr-acier); margin: 2rem 0 2.25rem; }
.thr-prestas { list-style: none; padding: 0; margin: 1rem 0 3rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
.thr-prestas a { display: flex; flex-direction: column; height: 100%; padding: 1rem 1.15rem 1.25rem; border: 1px solid var(--thr-trait); border-radius: 2px;
  background: #fff; color: var(--thr-encre); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.thr-prestas a:hover { border-color: var(--thr-bleu); box-shadow: 0 8px 24px rgba(21, 49, 77, .1); }
.thr-prestas__dessin { display: block; aspect-ratio: 1600 / 560; margin: 0 -.35rem .85rem; background: no-repeat center / contain; }
.thr-prestas__dessin--arc { background-image: url("../images/dessin-arc-graphite.svg"); }
.thr-prestas__dessin--voutes { background-image: url("../images/dessin-voutes-graphite.svg"); }
.thr-prestas__dessin--bowstring { background-image: url("../images/dessin-bowstring-graphite.svg"); }
.thr-prestas__dessin--filaire { background-image: url("../images/dessin-filaire-graphite.svg"); }
.thr-prestas__dessin--chantier { background-image: url("../images/dessin-chantier-graphite.svg"); }
.thr-prestas__dessin--convoi { background-image: url("../images/dessin-convoi-voutes-graphite.svg"); }   /* 1.25.19 */
.thr-prestas__dessin--inspection { background-image: url("../images/dessin-inspection-suspendu-graphite.svg"); }   /* 1.25.19 */
.thr-prestas__dessin--haubans { background-image: url("../images/ouvrage-graphite.svg"); }
.thr-prestas__titre { font-family: var(--thr-titres); font-weight: 600; font-size: 1.125rem; color: var(--thr-acier); }
.thr-prestas a:hover .thr-prestas__titre { color: var(--thr-bleu); }
.thr-prestas__texte { font-size: .9375rem; color: var(--thr-gris); margin-top: .35rem; line-height: 1.5; }

.thr-confiance { margin: 0 0 3rem; }
.thr-confiance__liste { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.thr-confiance__liste li { padding: .35rem .75rem; border: 1px solid var(--thr-trait); border-radius: 2px; font-size: .9375rem; color: var(--thr-encre); background: #fff; }

.thr-appel { margin: 0 0 1rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--thr-acier); color: #fff; border-radius: 2px; }
.thr-appel h2 { color: #fff; margin-top: 0; }
.thr-appel p { color: var(--thr-ciel); max-width: 44rem; }
.thr-appel__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 0; }

/* =====================================================================
   Page Domaines : domaines dessinés, ouvrages par type, carte par domaine
   ===================================================================== */
.com-content-article__body > ul.thr-domaines, .com-content-article__body > ul.thr-types { max-width: none; }
.thr-domaines { list-style: none; padding: 0; margin: 1rem 0 3rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.thr-domaine { border: 1px solid var(--thr-trait); border-radius: 2px; background: #fff; padding: 1.25rem 1.5rem 1.25rem; }
.thr-domaine__lien { display: block; text-decoration: none; }
.thr-domaine__lien .thr-prestas__dessin { margin: 0 -.5rem .75rem; }
.thr-domaine__titre { display: block; font-family: var(--thr-titres); font-weight: 600; font-size: 1.375rem; color: var(--thr-acier); }
.thr-domaine__lien:hover .thr-domaine__titre { color: var(--thr-bleu); text-decoration: underline; }
.thr-domaine p { color: var(--thr-gris); margin: .5rem 0 1rem; }
.thr-domaine__themes { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.thr-domaine__themes a { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--thr-trait); border-radius: 2px; text-decoration: none; font-size: .9375rem; }
.thr-domaine__themes a:hover { border-color: var(--thr-bleu); }
.thr-domaine .thr-domaine__refs { font-size: .875rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.thr-domaine__pastille { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; flex: none; }
:root { --thr-dom-oa: #C2410C; --thr-dom-gc: #2E74B5; }
.thr-domaine__pastille--oa { background: var(--thr-dom-oa); }
.thr-domaine__pastille--gc { background: var(--thr-dom-gc); }

.thr-types { list-style: none; padding: 0; margin: 1rem 0 3rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.thr-types a { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--thr-trait); border-left: 3px solid var(--thr-bleu);
  border-radius: 2px; text-decoration: none; background: #fff; }
.thr-types a:hover { background: var(--thr-beton); }
.thr-types__lib { font-weight: 600; color: var(--thr-acier); }
.thr-types__nb { font-size: .875rem; color: var(--thr-gris); font-variant-numeric: tabular-nums; }

.thr-carte-domaines__filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .75rem; }
.thr-carte-domaines__filtres .thr-puce { display: inline-flex; align-items: center; gap: .45rem; }
.thr-carte-domaines__filtres .thr-puce[aria-pressed="false"] { opacity: .55; }
.thr-carte-domaines { min-height: 34rem; border: 1px solid var(--thr-trait); border-radius: 2px; margin-bottom: .75rem; }
@media (max-width: 767.98px) { .thr-carte-domaines { min-height: 26rem; } }

/* =====================================================================
   Grilles de cartes (page Le bureau) et informations administratives
   ===================================================================== */
.com-content-article__body > ul.thr-grille, .com-content-article__body > ul.thr-domaine__themes, .com-content-article__body > ul.thr-confiance__liste { max-width: none; }
.thr-grille { list-style: none; padding: 0; margin: 1rem 0 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.thr-grille > li { padding: 1.15rem 1.25rem; border: 1px solid var(--thr-trait); border-top: 3px solid var(--thr-bleu); border-radius: 2px; background: #fff; }
.thr-grille h3 { font-size: 1.0625rem; margin: 0 0 .4rem; color: var(--thr-acier); }
.thr-grille p { margin: 0; color: var(--thr-gris); font-size: .9375rem; }
.thr-grille--equipe { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.thr-grille__chiffre { display: block; font-family: var(--thr-titres); font-weight: 700; font-size: 2.75rem; line-height: 1; color: var(--thr-acier); margin-bottom: .4rem;
  font-variant-numeric: tabular-nums; }
.thr-grille--clients { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.thr-admin { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 1rem 0 3rem; padding: 1.25rem 1.5rem;
  border: 1px solid var(--thr-trait); border-radius: 2px; max-width: 44rem; }
.thr-admin dt { color: var(--thr-gris); font-weight: 500; }
.thr-admin dd { margin: 0; color: var(--thr-encre); font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .thr-admin { grid-template-columns: 1fr; } .thr-admin dd { margin-bottom: .5rem; } }
.thr-domaine__themes + p { margin-top: 1rem; }
@media (min-width: 992px) { .thr-dessin .thr-accueil__chapeau { max-width: 36rem; } }

/* =====================================================================
   Pied de page : trois colonnes (marque, coordonnées, dernières opérations) puis la ligne du menu de pied
   ===================================================================== */
.container-footer .grid-child { grid-template-columns: 1fr !important; gap: 2rem 3rem; padding-top: 3rem; padding-bottom: 1.5rem; }
@media (min-width: 1100px) { .container-footer .grid-child { grid-template-columns: 2fr 1.4fr !important; } }
.container-footer .grid-child > ul { grid-column: 1 / -1; }
.thr-pied { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .thr-pied { grid-template-columns: 1.1fr .9fr; } }
.container-footer .thr-pied__titre { font-family: var(--thr-titres); font-weight: 600; color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.thr-pied__accroche { max-width: 22rem; }
.thr-pied .thr-pied__tel { font-family: var(--thr-titres); font-size: 1.375rem; font-weight: 600; margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.thr-pied .thr-pied__tel a { text-decoration: none; }
.thr-pied__bouton { display: inline-block; margin-top: .25rem; padding: .5rem 1rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 2px; text-decoration: none !important; font-weight: 600; }
.thr-pied__bouton:hover { border-color: var(--thr-orange); }
.thr-pied__ops { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .85rem; }
.thr-pied__ops a { display: flex; gap: .85rem; align-items: center; text-decoration: none; }
.thr-pied__ops img { flex: none; width: 96px; height: 60px; object-fit: cover; border-radius: 2px; }
.thr-pied__op { display: flex; flex-direction: column; min-width: 0; }
.thr-pied__op-titre { color: #fff; font-weight: 500; font-size: .9375rem; line-height: 1.3; }
.thr-pied__ops a:hover .thr-pied__op-titre { text-decoration: underline; text-decoration-color: var(--thr-orange); }
.thr-pied__op-lieu { font-size: .8125rem; opacity: .75; margin-top: .15rem; }
.container-footer .thr-menu-pied { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.container-footer .thr-menu-pied .nav-item a { font-size: .875rem; opacity: .85; }
.container-footer .thr-menu-pied .nav-item a:hover { opacity: 1; }

/* =====================================================================
   Actualités et Documentation en cartes (mêmes cartes que les références)
   ===================================================================== */
.thr-refs--articles { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); margin-top: 1.5rem; }
.thr-ref__visuel--dessin { background: var(--thr-beton); }
.thr-ref__dessin { position: absolute; inset: 14% 8%; margin: 0; aspect-ratio: auto; }
.thr-ref__date { order: -1; margin: 0 0 .35rem; padding: 0; }
.thr-ref__extrait { margin-top: .4rem; line-height: 1.5; }
.thr-ref__suite { margin-top: auto; padding-top: .75rem; font-weight: 600; font-size: .9375rem; color: var(--thr-bleu); }
.thr-ref__lien:hover .thr-ref__suite { text-decoration: underline; }

/* Lien d'évitement (injecté par user.js) */
.thr-evitement { position: absolute; left: .75rem; top: -4rem; z-index: 2000; padding: .6rem 1rem; background: #fff; color: #15314d; font-weight: 600;
  border: 2px solid #15314d; border-radius: 4px; text-decoration: none; }
.thr-evitement:focus { top: .75rem; }
main:focus { outline: none; }

/* =====================================================================
   Références : quatre présentations au choix (catégorie Références › onglet Champs)
   ===================================================================== */
.thr-refs__entete, .thr-ref__missions, .thr-ref__montant, .thr-ref__resume { display: none; }
.thr-ref__annees:empty, .thr-ref__missions:empty, .thr-ref__montant:empty { display: none !important; }

/* Liste détaillée : photo à gauche, texte complet à droite */
.thr-refs--liste { grid-template-columns: 1fr; gap: 1rem; }
.thr-refs--liste .thr-ref__lien { flex-direction: row; align-items: stretch; }
.thr-refs--liste .thr-ref__visuel { flex: 0 0 min(34%, 20rem); aspect-ratio: auto; min-height: 11rem; }
.thr-refs--liste .thr-ref__corps { padding: 1rem 1.25rem; flex: 1; }
.thr-refs--liste .thr-ref__titre { font-size: 1.25rem; }
.thr-refs--liste .thr-ref__resume { display: block; margin-top: .5rem; color: var(--thr-encre); font-size: .9688rem; line-height: 1.5; max-width: 62ch; }
.thr-refs--liste .thr-ref__missions { display: block; margin-top: .6rem; font-size: .8125rem; color: var(--thr-gris); }
.thr-refs--liste .thr-ref__missions::before { content: "Missions : "; font-weight: 600; }
.thr-refs--liste .thr-ref__montant { display: block; font-size: .8125rem; color: var(--thr-gris); }
.thr-refs--liste .thr-ref__montant::before { content: "Montant des travaux : "; font-weight: 600; }
@media (max-width: 767.98px) {
  .thr-refs--liste .thr-ref__lien { flex-direction: column; }
  .thr-refs--liste .thr-ref__visuel { flex-basis: auto; aspect-ratio: 16 / 10; min-height: 0; }
}

/* Mosaïque : murs de photos, titre en surimpression, une tuile sur cinq en grand */
.thr-refs--mosaique { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); grid-auto-rows: 13rem; grid-auto-flow: dense; gap: .6rem; }
.thr-refs--mosaique .thr-ref:nth-child(5n + 2) { grid-column: span 2; grid-row: span 2; }
.thr-refs--mosaique .thr-ref__lien { position: relative; height: 100%; overflow: hidden; }
.thr-refs--mosaique .thr-ref__visuel { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; }
.thr-refs--mosaique .thr-ref__visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 14, 24, .82)); }
.thr-refs--mosaique .thr-ref__corps { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; z-index: 1; background: none !important; }
.thr-refs--mosaique .thr-ref__titre { color: #FFFFFF !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); font-size: 1rem; }
.thr-refs--mosaique .thr-ref:nth-child(5n + 2) .thr-ref__titre { font-size: 1.375rem; }
.thr-refs--mosaique .thr-ref__lieu { color: #E6ECF3 !important; }
.thr-refs--mosaique .thr-ref__mo, .thr-refs--mosaique .thr-ref__annees { display: none; }
.thr-refs--mosaique .thr-ref__lien:hover .thr-ref__visuel img { transform: scale(1.05); }
@media (max-width: 575.98px) { .thr-refs--mosaique .thr-ref:nth-child(5n + 2) { grid-column: auto; grid-row: span 1; } }

/* Tableau : une ligne par opération, colonnes alignées */
.thr-refs--tableau { display: block; }
.thr-refs--tableau .thr-refs__entete, .thr-refs--tableau .thr-ref__corps {
  display: grid; grid-template-columns: minmax(14rem, 2.2fr) 1.2fr 1.4fr .8fr 1.3fr .9fr; gap: .25rem 1rem; align-items: baseline; }
.thr-refs--tableau .thr-refs__entete { padding: .6rem 1rem; font-size: .8125rem; font-weight: 600; color: var(--thr-gris); border-bottom: 2px solid var(--thr-acier); }
.thr-refs--tableau .thr-ref { margin: 0; }
.thr-refs--tableau .thr-ref__lien { border-radius: 0 !important; box-shadow: none !important; border-width: 0 0 1px !important; transform: none !important; background-clip: border-box; }
.thr-refs--tableau .thr-ref__visuel, .thr-refs--tableau .thr-ref__resume { display: none; }
.thr-refs--tableau .thr-ref__corps { padding: .7rem 1rem; }
.thr-refs--tableau .thr-ref__titre { font-size: .9688rem; }
.thr-refs--tableau .thr-ref__lieu, .thr-refs--tableau .thr-ref__mo, .thr-refs--tableau .thr-ref__annees,
.thr-refs--tableau .thr-ref__missions, .thr-refs--tableau .thr-ref__montant { display: block !important; margin: 0 !important; padding: 0 !important; font-size: .875rem; font-weight: 400; }
.thr-refs--tableau .thr-ref__lien:hover { background-color: var(--thr-beton); }
.thr-refs--tableau .thr-ref__statut { display: none; }
@media (max-width: 991.98px) {
  .thr-refs--tableau .thr-refs__entete { display: none; }
  .thr-refs--tableau .thr-ref__corps { grid-template-columns: 1fr; }
}

/* =====================================================================
   Fiches : trois présentations (catégorie Références › onglet Champs)
   ===================================================================== */
/* Magazine : grande photo, titre en surimpression */
.thr-fiche--magazine { display: grid; grid-template-columns: minmax(0, 1fr); }
.thr-fiche--magazine .thr-fiche__retour { grid-row: 1; }
.thr-fiche--magazine h1, .thr-fiche--magazine .thr-fiche__visuel { grid-row: 2; grid-column: 1; }
.thr-fiche--magazine .thr-fiche__visuel { position: relative; margin: 0 0 2.25rem; }
.thr-fiche--magazine .thr-fiche__visuel img { height: clamp(20rem, 58vh, 38rem); max-height: none; }
.thr-fiche--magazine .thr-fiche__visuel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0) 35%, rgba(8, 14, 24, .78)); }
.thr-fiche--magazine h1 { z-index: 1; align-self: end; margin: 0 0 2.25rem; padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.25rem);
  max-width: 24ch; color: #FFFFFF !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); -webkit-text-fill-color: #FFFFFF; background: none !important; animation: none !important; }
.thr-fiche--magazine .thr-fiche__grille { grid-row: 3; }

/* Fiche technique : informations en bandeau sous le titre, texte pleine largeur, galerie en grand */
.thr-fiche--technique .thr-fiche__grille { grid-template-columns: minmax(0, 1fr) !important; }
.thr-fiche--technique .thr-fiche__infos { order: -1; }
.thr-fiche--technique .thr-fiche__infos dl { columns: 4 13rem; column-gap: 2rem; }
.thr-fiche--technique .thr-fiche__infos dt { break-after: avoid; }
.thr-fiche--technique .thr-fiche__infos dd { break-before: avoid; break-inside: avoid; }
.thr-fiche--technique .thr-fiche__infos .thr-carte--fiche { min-height: 16rem; }
.thr-fiche--technique .thr-fiche__texte { columns: 2 26rem; column-gap: 3rem; }
.thr-fiche--technique .thr-fiche__texte > h2, .thr-fiche--technique .thr-fiche__texte > ul, .thr-fiche--technique .thr-fiche__texte > .thr-galerie,
.thr-fiche--technique .thr-fiche__texte > .thr-tableau { break-inside: avoid; }
.thr-fiche--technique .thr-fiche__texte > .thr-galerie { column-span: all; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.thr-fiche--technique .thr-fiche__texte > h2:has(+ .thr-galerie) { column-span: all; }

/* =====================================================================
   Effets de navigation dans les références et d'affichage des photos
   ===================================================================== */
/* 1.25.16 : aucun effet de transition entre les pages (ni fondu, ni estompage au clic, ni cercle à la bascule claire / sombre) :
   chaque page s'affiche directement, comme sur un site classique. Historique : 1.25.13 à 1.25.15, glissement puis fondus. */
@view-transition { navigation: none; }
/* 1.25.17 : plus de réarrangement animé des cartes des Références (changement de mode et filtres appliqués directement) */

/* Photos : fondu à l'arrivée, lueur d'attente pendant le chargement */
.thr-js :is(.thr-ref__visuel, .thr-galerie a, .thr-defile__piste a, .thr-fiche__visuel) img { transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.thr-js :is(.thr-ref__visuel, .thr-galerie a, .thr-defile__piste a, .thr-fiche__visuel) img:not(.thr-charge) { opacity: 0; }
/* 1.25.13 : sauf les vignettes dessinées (actualités, documents sans photo), qui n'ont rien à charger : la lueur y tournait sans fin */
.thr-js :is(.thr-ref__visuel:not(.thr-ref__visuel--dessin), .thr-galerie a):not(.thr-charge) {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  background-size: 220% 100%; animation: thr-lueur 2.4s ease-in-out infinite; }
@keyframes thr-lueur { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Survol : la photo s'approche légèrement */
.thr-ref__lien:hover .thr-ref__visuel img, .thr-galerie a:hover img { transform: scale(1.045); }

/* Cartes et vignettes qui arrivent au fil du défilement (1.24.24 : montée plus ample avec léger zoom, rangée par rangée, de gauche à
 * droite ; mêmes effets pour les grilles des bâtisseurs, des renvois et des encarts). Script : initPhotos dans js/user.js. */
.thr-js :is(.thr-refs > .thr-ref, .thr-galerie > li, .thr-prestas > li, .thr-batisseurs__grille > li, .thr-renvois > li, .thr-blocs > .thr-bloc) {
  transition: opacity .7s ease-out, transform .95s cubic-bezier(.16, 1, .3, 1); }
.thr-js :is(.thr-refs > .thr-ref, .thr-galerie > li, .thr-prestas > li, .thr-batisseurs__grille > li, .thr-renvois > li, .thr-blocs > .thr-bloc):not(.thr-revele) {
  opacity: 0; transform: translateY(46px) scale(.96); }
/* 1.24.25 - la cascade d'apparition propre à AURORE (animation « au-monte », jouée au chargement pour toutes les cartes, y compris hors
 * de l'écran) l'emportait sur cet effet : elle est neutralisée quand le script gère l'arrivée des cartes. */
html.thr-js :is(.thr-refs > .thr-ref, .thr-galerie > li, .thr-prestas > li, .thr-batisseurs__grille > li, .thr-renvois > li, .thr-blocs > .thr-bloc) { animation: none !important; }

/* Fiche : la grande photo s'agrandit d'un clic et respire lentement */
.thr-fiche__visuel { overflow: hidden; border-radius: inherit; }
.thr-fiche__visuel img.thr-charge { animation: thr-respire 18s ease-out both; }
@keyframes thr-respire { from { transform: scale(1); } to { transform: scale(1.06); } }
.thr-agrandissable { cursor: zoom-in; }

/* Visionneuse : fondu du fond, entrée en zoom, glissement d'une photo à l'autre */
.thr-visionneuse[open]::backdrop { animation: thr-fondu .3s ease both; }
@keyframes thr-fondu { from { opacity: 0; } }
.thr-visionneuse img { transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }
.thr-visionneuse:not(.thr-visionneuse--prete) img { opacity: 0; }
.thr-visionneuse[data-sens="ouverture"]:not(.thr-visionneuse--prete) img { transform: scale(.94); }
.thr-visionneuse[data-sens="suivant"]:not(.thr-visionneuse--prete) img { transform: translateX(40px); }
.thr-visionneuse[data-sens="precedent"]:not(.thr-visionneuse--prete) img { transform: translateX(-40px); }
.thr-visionneuse figcaption { display: flex; justify-content: space-between; gap: 1rem; }
.thr-visionneuse__titre { opacity: .85; }
.thr-visionneuse__compte { font-variant-numeric: tabular-nums; }
.thr-visionneuse--seule :is(.thr-visionneuse__prec, .thr-visionneuse__suiv) { display: none; }
.thr-visionneuse img { cursor: default; touch-action: pan-y; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .thr-js :is(.thr-refs > .thr-ref, .thr-galerie > li, .thr-prestas > li, .thr-batisseurs__grille > li, .thr-renvois > li, .thr-blocs > .thr-bloc):not(.thr-revele) { opacity: 1; transform: none; }
  .thr-fiche__visuel img.thr-charge, .thr-js :is(.thr-ref__visuel, .thr-galerie a):not(.thr-charge) { animation: none; }
  .thr-ref__lien:hover .thr-ref__visuel img, .thr-galerie a:hover img { transform: none; }
  .thr-visionneuse img { transition: none; }
}

/* Logo du pied de page : le logo de l'en-tête (sans fond) dans toutes les présentations ; version « encre » sur pied de page clair (Paint) */
.thr-pied__logo .thr-logo-clair { display: none !important; }
.thr-pied__logo .thr-logo-aurore { display: block !important; }

/* Sélecteur de langue (FR / EN) dans l'en-tête */
.container-header .container-search { display: flex; align-items: center; margin-left: .5rem; }
.mod-languages ul.lang-inline { display: flex; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.mod-languages ul.lang-inline li { margin: 0; }
.mod-languages ul.lang-inline a { display: block; padding: .3rem .55rem; border-radius: 6px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; color: inherit; opacity: .75; border: 1px solid transparent; }
.mod-languages ul.lang-inline a:hover { opacity: 1; border-color: currentColor; }
.mod-languages ul.lang-inline li.lang-active a { opacity: 1; border-color: currentColor; }

/* Photos en WebP : la balise <picture> s'efface pour que l'image garde sa mise en page */
picture { display: contents; }

/* Modèle 3D d'une fiche de référence */
.thr-modele { margin: 2.5rem 0 1rem; }
.thr-modele__note { font-size: .875rem; opacity: .8; max-width: 60ch; }
.thr-modele__scene { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(20rem, 52vw, 30rem);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 12px; overflow: hidden; touch-action: none;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, currentColor 7%, transparent), transparent 70%); }
.thr-modele__scene canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.thr-modele__scene canvas:active { cursor: grabbing; }
.thr-modele__attente { opacity: .75; }
.thr-modele__outils { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; }
.thr-modele__legende { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8125rem; opacity: .9; }
.thr-modele__puce { display: inline-flex; align-items: center; gap: .4rem; }
.thr-modele__puce i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; }

/* Prise de rendez-vous (Microsoft Bookings) */
.thr-rdv__cadre { position: relative; width: 100%; height: clamp(38rem, 80vh, 52rem); border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.thr-rdv__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thr-rdv__secours { margin-top: .9rem; }
.thr-pied__boutons { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Bouton de présentation claire / sombre (à côté du sélecteur de langue) */
.thr-bascule { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; margin-left: .35rem; padding: 0;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; opacity: .8; cursor: pointer; }
.thr-bascule:hover, .thr-bascule:focus-visible { opacity: 1; border-color: currentColor; }
.container-header div.mod-languages ul li.lang-active { background-color: transparent; }

/* ---------------------------------------------------------------- cinématique d'accueil (le pont se construit) */
html.thr-cine .container-banner { background-image: none !important; position: relative; overflow: hidden; }
.thr-cinematique { position: absolute; right: max(.5rem, calc((100% - 1320px) / 2 + .5em)); bottom: -10px; width: min(700px, 58%); aspect-ratio: 1210 / 560; pointer-events: none; z-index: 0; }
.thr-cinematique svg { display: block; width: 100%; height: 100%; }
html.thr-cine .container-banner > :not(.thr-cinematique) { position: relative; z-index: 1; }
@media (max-width: 767.98px) { .thr-cinematique { width: 102%; right: auto; left: 50%; transform: translateX(-50%); } }

/* ---------------------------------------------------------------- avant / après (curseur de comparaison) */
.thr-avap { margin: 2rem 0; }
.thr-avap__cadre { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #0f1724; user-select: none; touch-action: pan-y; }
.thr-avap__cadre img, .thr-avap__cadre picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thr-avap__avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.thr-avap__poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 18px rgba(0,0,0,.35); pointer-events: none; }
.thr-avap__poignee::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%231B2433' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 1.4rem; background-repeat: no-repeat; background-position: center; }
.thr-avap__curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.thr-avap__curseur:focus-visible + .thr-avap__poignee, .thr-avap__cadre:focus-within .thr-avap__poignee { box-shadow: 0 0 0 3px var(--thr-accent, #FF8A3D); }
.thr-avap__etiquette { position: absolute; top: .8rem; padding: .25rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(10,16,28,.62); backdrop-filter: blur(4px); pointer-events: none; }
.thr-avap__etiquette--avant { left: .8rem; }
.thr-avap__etiquette--apres { right: .8rem; }
.thr-avap__aide { font-size: .85rem; opacity: .75; margin-top: .5rem; }

/* ---------------------------------------------------------------- frise « Depuis 2014 » (Le bureau) */
.thr-frise { position: relative; margin: .5rem 0 2.5rem; }
.thr-frise__annees { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 1fr);
  gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.thr-frise__annee { scroll-snap-align: start; position: relative; padding: 2.1rem 1.1rem 0 0; border-top: 2px solid var(--thr-trait, rgba(127,140,160,.45)); }
.thr-frise__annee::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--thr-accent, #FF8A3D); box-shadow: 0 0 0 4px rgba(255,138,61,.18); }
.thr-frise__annee--vide::before { background: transparent; border: 2px solid var(--thr-trait, rgba(127,140,160,.6)); box-shadow: none; }
.thr-frise__an { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.thr-frise__nb { display: block; font-size: .8rem; opacity: .7; margin: .35rem 0 .7rem; }
.thr-frise__ops { list-style: none; margin: 0; padding: 0; font-size: .88rem; line-height: 1.35; }
.thr-frise__ops li { margin: 0 0 .5rem; }
.thr-frise__ops a { text-decoration: none; }
.thr-frise__ops a:hover, .thr-frise__ops a:focus-visible { text-decoration: underline; }
.thr-frise__plus { opacity: .65; font-style: italic; }
.thr-frise__nav { display: flex; gap: .4rem; justify-content: flex-end; }
.thr-frise__intro { margin-top: -.25rem; opacity: .85; }

/* ---------------------------------------------------------------- carte des références : lecture chronologique */
.thr-lecture { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.thr-lecture__bouton { font: inherit; font-size: .85rem; font-weight: 600; padding: .45rem .8rem; border-radius: 6px; border: 0; cursor: pointer; color: #fff; background: rgba(14, 23, 38, .86); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.thr-lecture__bouton:focus-visible { outline: 3px solid #FF8A3D; outline-offset: 2px; }
.thr-lecture__annee:not(:empty) { font-size: 1.05rem; font-weight: 700; padding: .3rem .7rem; border-radius: 6px; color: #0E1726; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
@keyframes thr-repere-apparait { 0% { translate: 0 -16px; scale: .6; opacity: 0; } 60% { opacity: 1; } 100% { translate: 0 0; scale: 1; opacity: 1; } }
.leaflet-marker-icon.thr-repere-nouveau { animation: thr-repere-apparait .5s cubic-bezier(.22,1,.36,1); }

/* ---------------------------------------------------------------- recherche dans l'en-tête */
.container-header search { order: -1; margin-right: .6rem; display: flex; align-items: center; }
.container-header .container-search { display: flex; align-items: center; }
.container-header .mod-finder { margin: 0; }
.container-header .mod-finder .input-group { flex-wrap: nowrap; }
.container-header .mod-finder input.js-finder-search-query {
  width: 9.5rem; min-width: 0; padding: .35rem .6rem; font-size: .85rem; border-radius: 6px 0 0 6px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: inherit; transition: width .25s ease; }
.container-header .mod-finder input.js-finder-search-query:focus { width: 13rem; outline: none; border-color: var(--thr-accent, #FF8A3D); }
.container-header .mod-finder input.js-finder-search-query::placeholder { color: currentColor; opacity: .6; }
.container-header .thr-recherche__bouton { display: inline-flex; align-items: center; padding: .35rem .55rem; border-radius: 0 6px 6px 0; }
@media (max-width: 991.98px) { .container-header .mod-finder input.js-finder-search-query { width: 7rem; } }
@media (prefers-reduced-motion: reduce) { .container-header .mod-finder input { transition: none; } }

/* ---------------------------------------------------------------- page de résultats de recherche */
.com-finder #search-result-list { list-style: none; padding: 0; }
.com-finder #search-result-list > li { padding: 1rem 0; border-bottom: 1px solid rgba(127,140,160,.25); }
.com-finder .result__title { font-size: 1.1rem; margin: 0 0 .3rem; }
.com-finder .result__description { margin: 0; opacity: .85; }
.com-finder mark { background: rgba(255,138,61,.28); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* ---------------------------------------------------------------- fiche : opérations similaires, voisines, impression */
.thr-fiche__actions { margin-top: 1.25rem; }
.thr-similaires { margin: 3rem 0 1.5rem; }
.thr-similaires ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.1rem; }
.thr-similaires a { display: block; text-decoration: none; color: inherit; border-radius: 10px; overflow: hidden; background: rgba(127,140,160,.08); border: 1px solid rgba(127,140,160,.18); height: 100%; transition: transform .2s ease, border-color .2s ease; }
.thr-similaires a:hover, .thr-similaires a:focus-visible { transform: translateY(-3px); border-color: var(--thr-accent, #FF8A3D); }
.thr-similaires img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.thr-similaires__titre { display: block; padding: .75rem .9rem .2rem; font-weight: 600; line-height: 1.3; }
.thr-similaires__lieu { display: block; padding: 0 .9rem .85rem; font-size: .85rem; opacity: .7; }
.thr-voisins { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(127,140,160,.25); }
.thr-voisins a { max-width: 48%; text-decoration: none; line-height: 1.35; }
.thr-voisins a span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: .2rem; }
.thr-voisins__prec::before { content: "← "; }
.thr-voisins__suiv { text-align: right; margin-left: auto; }
.thr-voisins__suiv::after { content: " →"; }
@media (prefers-reduced-motion: reduce) { .thr-similaires a { transition: none; } .thr-similaires a:hover { transform: none; } }

@media print {
  @page { margin: 14mm 12mm; }
  html, body, html:root body { background: #fff !important; color: #111 !important; }
  .container-header, .container-footer, .container-banner, .mod-breadcrumbs, .thr-cinematique, .thr-bascule, .thr-fiche__retour,
  .thr-modele, .thr-avap__aide, .thr-fiche__actions, .thr-similaires, .thr-voisins, .thr-carte, .thr-fiche__note, .back-to-top-link, .thr-defile { display: none !important; }
  body::before, body::after, .site-grid::before, .site-grid::after { display: none !important; }
  .thr-fiche::before { content: "THEOREMS · Bureau d’études ouvrages d’art · 28, rue Pierre Curie, 59000 Lille · +33 (0)3 20 79 01 78 · contact@theorems.fr";
    display: block; font-size: 8.5pt; color: #555; border-bottom: 1px solid #999; padding-bottom: 4pt; margin-bottom: 10pt; }
  html:root body .thr-fiche h1, html:root body .thr-fiche h2, html:root body .thr-fiche h3, html:root body .thr-fiche dt { color: #1F4E79 !important; -webkit-text-fill-color: #1F4E79 !important; background: none !important; text-shadow: none !important; }
  html:root body .thr-fiche, html:root body .thr-fiche * { color: #111 !important; box-shadow: none !important; }
  .thr-fiche__visuel img { max-height: 8.5cm; width: auto; max-width: 100%; }
  .thr-fiche__grille { display: grid !important; grid-template-columns: 1fr 6.2cm !important; gap: 8mm !important; }
  html:root body .thr-fiche__infos { border: 1px solid #999 !important; padding: 4mm !important; }
  html:root body .thr-fiche__infos, html:root body .thr-fiche__infos *, html:root body .thr-fiche__themes a { background: none !important; backdrop-filter: none !important; border-color: #bbb !important; }
  html:root body .thr-fiche__infos::before, html:root body .thr-fiche__infos::after { display: none !important; }
  html:root body .thr-fiche .thr-fiche__infos :is(dl, dt, dd, ul, li, a) { background: none !important; backdrop-filter: none !important; border-color: #bbb !important; }
  html:root body .thr-fiche .thr-fiche__infos dl::before, html:root body .thr-fiche .thr-fiche__infos dl::after { display: none !important; }
  .thr-fiche img, .thr-fiche picture, .thr-fiche figure, .thr-fiche [class*="apparit"], .thr-fiche [class*="revel"] { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .site-grid, .container-component, main { min-height: 0 !important; }
  .thr-js :is(.thr-refs > .thr-ref, .thr-galerie > li, .thr-prestas > li) { opacity: 1 !important; transform: none !important; }
  .thr-galerie img { max-height: 3.6cm; }
  a { text-decoration: none !important; }
  h2, h3 { break-after: avoid; }
  figure, img { break-inside: avoid; }
}

/* ---------------------------------------------------------------- page introuvable (404) */
.thr-404 { max-width: 46rem; margin: clamp(2rem, 6vw, 5rem) auto; text-align: center; padding: 0 1.25rem; }
.thr-404__dessin { display: block; width: min(100%, 34rem); height: auto; margin: 0 auto 1.25rem; color: currentColor; opacity: .9; }
.thr-404__code { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--thr-accent, #FF8A3D); margin: 0 0 .4rem; font-weight: 600; }
.thr-404 h1 { margin: 0 0 .8rem; }
.thr-404__texte { opacity: .85; margin: 0 auto 1.4rem; max-width: 36rem; }
.thr-404__recherche { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: 0 0 1.4rem; }
.thr-404__recherche label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.thr-404__recherche input { flex: 1 1 16rem; max-width: 22rem; padding: .6rem .8rem; border-radius: 6px; border: 1px solid rgba(127,140,160,.45); background: rgba(127,140,160,.08); color: inherit; font: inherit; }
.thr-404__liens { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; }

/* ---------------------------------------------------------------- THEOREMS en chiffres (accueil) */
.thr-chiffres-sec { margin: 3rem 0; }
.thr-chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.thr-chiffres li { padding: 1.4rem 1.2rem; border-radius: 12px; border: 1px solid rgba(127,140,160,.22); background: rgba(127,140,160,.07); }
.thr-chiffres__n { display: block; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--thr-accent, #FF8A3D); font-variant-numeric: tabular-nums; }
.thr-chiffres__l { display: block; margin-top: .55rem; font-size: .92rem; line-height: 1.35; opacity: .85; }
.thr-brouillon { font-size: .88rem; padding: .55rem .8rem; border-radius: 6px; border-left: 3px solid var(--thr-accent, #FF8A3D); background: rgba(127,140,160,.1); margin: 0 0 1rem; }
.thr-rdv__accord { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: .25rem; color: #1B2433; }
.thr-rdv__accord p { max-width: 30rem; margin: 0 0 .6rem; }

/* ---------------------------------------------------------------- revue de presse */
.thr-presse__intro { max-width: 46rem; opacity: .85; }
.thr-presse__filtres { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 1.6rem; }
.thr-presse__liste { list-style: none; margin: 0; padding: 0; }
.thr-presse__element { display: grid; grid-template-columns: 15rem 1fr; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(127,140,160,.22); }
.thr-presse__element[hidden] { display: none; }
.thr-presse__visuel { position: relative; }
.thr-presse__visuel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.thr-presse__type { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; color: #fff; background: #1F4E79; }
.thr-presse__visuel .thr-presse__type { position: absolute; top: .55rem; left: .55rem; }
.thr-presse__type--video { background: #B5362E; }
.thr-presse__type--web { background: #2F6F5E; }
.thr-presse__type--radio { background: #6B4C9A; }
.thr-presse__source { font-size: .88rem; margin: 0 0 .35rem; opacity: .85; }
.thr-presse__titre { font-size: 1.2rem; margin: 0 0 .6rem; line-height: 1.3; }
.thr-presse__langue { font-size: .8rem; font-weight: 400; opacity: .65; margin-left: .3rem; }
.thr-presse__citation { margin: .8rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--thr-accent, #FF8A3D); font-style: italic; opacity: .9; }
.thr-presse__refs { font-size: .9rem; }
.thr-presse__liens { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin: .8rem 0 0; }
.thr-presse__archive { font-size: .85rem; }
@media (max-width: 640px) { .thr-presse__element { grid-template-columns: 1fr; } }
.thr-presse-fiche { margin: 2.5rem 0 0; }
.thr-presse-fiche ul { list-style: none; margin: 0; padding: 0; }
.thr-presse-fiche li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; padding: .7rem 0; border-bottom: 1px solid rgba(127,140,160,.2); }
.thr-presse-fiche__source { font-size: .85rem; opacity: .8; }
.thr-presse-fiche a { flex-basis: 100%; font-weight: 600; }
.thr-presse__element:target { background: rgba(255,138,61,.08); border-radius: 10px; outline: 2px solid rgba(255,138,61,.35); outline-offset: 6px; }

/* ---------------------------------------------------------------- revue de presse : photo, capture et PDF */
.thr-presse__visuels { display: flex; flex-direction: column; gap: .6rem; }
.thr-presse__visuel { display: block; position: relative; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.thr-presse__capture { position: relative; display: block; width: 62%; border-radius: 6px; overflow: hidden; border: 1px solid rgba(127,140,160,.35); background: #fff; cursor: zoom-in; }
.thr-presse__capture img { display: block; width: 100%; height: 7.5rem; object-fit: cover; object-position: top; }
.thr-presse__capture span { position: absolute; left: .4rem; bottom: .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 4px; color: #fff; background: rgba(14,23,38,.8); }
.thr-presse__visuel:focus-visible, .thr-presse__capture:focus-visible { outline: 3px solid var(--thr-accent, #FF8A3D); outline-offset: 2px; }
.thr-presse-fiche__pieces { flex-basis: 100%; display: flex; align-items: center; gap: .7rem; margin-top: .3rem; }
.thr-presse-fiche__capture img { display: block; width: 5.5rem; height: 3.6rem; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid rgba(127,140,160,.35); background: #fff; }
.thr-pdf { width: min(64rem, 94vw); height: 92vh; max-height: 92vh; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #1b2230; color: #fff; display: none; }
.thr-pdf[open] { display: flex; flex-direction: column; }
.thr-pdf::backdrop { background: rgba(5,8,14,.78); }
.thr-pdf__tete { display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; background: #0E1726; }
.thr-pdf__titre { flex: 1; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr-pdf__ouvrir { color: #FFB070; font-size: .85rem; }
.thr-pdf__fermer { font-size: 1.6rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; padding: 0 .3rem; }
.thr-pdf__cadre { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------------------------------------------------------------- revue de presse : vidéos */
.thr-presse__visuel--video { cursor: pointer; }
.thr-presse__lecture { position: absolute; z-index: 1; left: 50%; top: 50%; width: 3.6rem; height: 3.6rem; margin: -1.8rem 0 0 -1.8rem; border-radius: 50%;
  background: rgba(14,23,38,.72); box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: transform .2s ease, background .2s ease; }
.thr-presse__lecture::after { content: ""; position: absolute; left: 1.45rem; top: 1.05rem; border-style: solid; border-width: .75rem 0 .75rem 1.2rem; border-color: transparent transparent transparent #fff; }
.thr-presse__visuel--video:hover .thr-presse__lecture, .thr-presse__visuel--video:focus-visible .thr-presse__lecture { transform: scale(1.08); background: var(--thr-accent, #FF8A3D); }
.thr-video { width: min(64rem, 94vw); padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #0E1726; color: #fff; }
.thr-video::backdrop { background: rgba(5,8,14,.82); }
.thr-video__corps { position: relative; aspect-ratio: 16 / 9; background: #000; }
.thr-video__corps video, .thr-video__corps iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thr-video__avis { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem; text-align: center; }
.thr-video__avis p { max-width: 32rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .thr-presse__lecture { transition: none; } }

/* ---------------------------------------------------------------- « En vidéo » (fiches de références, actualités) */
.thr-video-sec { margin: 2rem 0; }
.thr-video-sec__lecteur { display: block; width: 100%; max-width: 54rem; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.thr-video-sec__vignette { position: relative; display: block; max-width: 54rem; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0E1726; cursor: pointer; }
.thr-video-sec__vignette img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.82); }
.thr-video-sec__vignette .thr-presse__lecture { width: 4.6rem; height: 4.6rem; margin: -2.3rem 0 0 -2.3rem; }
.thr-video-sec__vignette .thr-presse__lecture::after { left: 1.85rem; top: 1.35rem; border-width: 1rem 0 1rem 1.55rem; }
.thr-video-sec__hote { position: absolute; left: .8rem; bottom: .8rem; font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; color: #fff; background: rgba(14,23,38,.75); }
.thr-video-sec__vignette:hover .thr-presse__lecture, .thr-video-sec__vignette:focus-visible .thr-presse__lecture { transform: scale(1.08); background: var(--thr-accent, #FF8A3D); }
@media print { .thr-video-sec { display: none !important; } }

/* ---------------------------------------------------------------- décors d'événements (plugin thrdecors) */
.thr-decor-ruban { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .4rem .5rem .4rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: color-mix(in srgb, currentColor 10%, transparent); border: 1px solid color-mix(in srgb, currentColor 24%, transparent); backdrop-filter: blur(6px); animation: thr-ruban-entre .7s cubic-bezier(.22,1,.36,1) both; max-width: 100%; }
.thr-decor-ruban button { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 0; background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.thr-decor-ruban button:focus-visible { outline: 3px solid var(--thr-accent, #FF8A3D); outline-offset: 2px; }
@keyframes thr-ruban-entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.thr-decor-toile { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes thr-scintille { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes thr-balance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes thr-vibre { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-1.6px); } 75% { transform: translateY(1.6px); } }
@keyframes thr-pouls { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }
@keyframes thr-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes thr-ecart-g { from { transform: translateX(58px); } to { transform: none; } }
@keyframes thr-ecart-d { from { transform: translateX(-58px); } to { transform: none; } }
@keyframes thr-monte { from { transform: translateY(90px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes thr-ecarte-g { from { transform: translateX(22px); } to { transform: translate(-10px, -6px); } }
@keyframes thr-ecarte-d { from { transform: translateX(-22px); } to { transform: translate(10px, -6px); } }
.thr-decor .thr-lum { animation: thr-scintille 1.6s ease-in-out infinite; }
.thr-decor .thr-balance { transform-box: fill-box; transform-origin: 50% 100%; animation: thr-balance 3.4s ease-in-out infinite; }
.thr-decor .thr-vibre { animation: thr-vibre .18s linear infinite; }
.thr-decor .thr-pouls { stroke-dasharray: .12 .88; animation: thr-pouls 2.6s linear infinite; }
.thr-decor .thr-troncon--g { animation: thr-ecart-g 2.4s cubic-bezier(.22,1,.36,1) .3s both; }
.thr-decor .thr-troncon--d { animation: thr-ecart-d 2.4s cubic-bezier(.22,1,.36,1) .3s both; }
.thr-decor .thr-poings { animation: thr-monte 1.8s cubic-bezier(.22,1,.36,1) both; }
.thr-decor .thr-maillons--g { animation: thr-apparait .3s ease 1.2s both, thr-ecarte-g 1.6s cubic-bezier(.22,1,.36,1) 1.8s both; }
.thr-decor .thr-maillons--d { animation: thr-apparait .3s ease 1.2s both, thr-ecarte-d 1.6s cubic-bezier(.22,1,.36,1) 1.8s both; }
.thr-decor .thr-eclat { animation: thr-apparait 1s ease 1.9s both; }
.thr-decor--dix-mai .thr-eclat { animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .thr-decor *, .thr-decor-ruban { animation: none !important; }
}
html[data-aurore-leger] .thr-decor * { animation: none !important; }

/* ---------------------------------------------------------------- page de maintenance (site hors ligne) */
body.thr-maintenance { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
body.thr-maintenance .outer, body.thr-maintenance .offline-card { all: unset; }
.thr-maintenance__page { margin: 3rem auto; }
.thr-maintenance__info { font-weight: 600; margin: 0 auto 1rem; max-width: 36rem; }
.thr-maintenance__contact { margin: 0 0 1.6rem; }
.thr-maintenance__acces { max-width: 20rem; margin: 0 auto 2rem; text-align: left; font-size: .9rem; }
.thr-maintenance__acces summary { cursor: pointer; text-align: center; opacity: .7; }
.thr-maintenance__acces form { display: grid; gap: .45rem; margin-top: .9rem; }
.thr-maintenance__acces input { padding: .5rem .7rem; border-radius: 6px; border: 1px solid rgba(127,140,160,.45); background: rgba(127,140,160,.08); color: inherit; font: inherit; }
.thr-maintenance__acces button { margin-top: .4rem; justify-self: start; }
.thr-maintenance__logo img { height: 2.6rem; width: auto; opacity: .9; }
.thr-maintenance__logo .thr-logo-aurore { display: none; }
/* cinématique de la page de maintenance : le pont se construit (fondations, pylônes, fléaux, haubans), le chantier s'installe,
   puis le lève-voussoir monte le voussoir de clavage jusqu'à la brèche… et le redescend, en boucle : le clavage est « prévu très bientôt » */
@keyframes thr-mt-trace { to { stroke-dashoffset: 0; } }
@keyframes thr-mt-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes thr-mt-cable { 0%, 8% { transform: scaleY(3.55); } 38%, 62% { transform: scaleY(1); } 92%, 100% { transform: scaleY(3.55); } }
@keyframes thr-mt-voussoir { 0%, 8% { transform: translateY(51px); } 38% { transform: translateY(0); } 44% { transform: translateY(-2px); } 50%, 62% { transform: translateY(0); } 92%, 100% { transform: translateY(51px); } }
.thr-mt-t { stroke-dasharray: 1; stroke-dashoffset: 1; animation: thr-mt-trace .9s cubic-bezier(.33,0,.2,1) forwards; }
.thr-mt-eau { animation-delay: .25s; }
.thr-mt-fond { animation-delay: .4s; animation-duration: .7s; }
.thr-mt-pyl { animation-delay: .8s; animation-duration: .8s; }
.thr-mt-tab { animation-delay: 1.5s; animation-duration: 1.3s; }
.thr-mt-c0 { animation-delay: 2.5s; animation-duration: .5s; }
.thr-mt-c1 { animation-delay: 2.2s; animation-duration: .5s; }
.thr-mt-c2 { animation-delay: 1.9s; animation-duration: .5s; }
.thr-mt-chantier { opacity: 0; animation: thr-mt-apparait .6s ease 3s forwards; }
.thr-mt-levage { opacity: 0; animation: thr-mt-apparait .6s ease 3.3s forwards; }
.thr-mt-cable { transform-box: view-box; transform-origin: 320px 84px; transform: scaleY(3.55); animation: thr-mt-cable 7s ease-in-out 3.4s infinite; }
.thr-mt-voussoir { transform: translateY(51px); animation: thr-mt-voussoir 7s ease-in-out 3.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .thr-mt-t { stroke-dashoffset: 0; animation: none; }
  .thr-mt-chantier, .thr-mt-levage { opacity: 1; animation: none; }
  .thr-mt-cable, .thr-mt-voussoir { transform: none; animation: none; }
}

/* ---------------------------------------------------------------- bouton « Modifier » (utilisateurs autorisés, depuis le site) */
html:root a.thr-modifier { display: inline-flex; align-items: center; gap: .35rem; margin-left: 1rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  text-decoration: none !important; color: #fff !important; background: rgba(14, 23, 38, .86) !important; border: 1px solid var(--thr-accent, #FF8A3D); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
html:root a.thr-modifier::before, html:root a.thr-modifier::after { content: none !important; display: none !important; }
html:root a.thr-modifier:hover, html:root a.thr-modifier:focus-visible { background: var(--thr-accent, #FF8A3D) !important; }
.thr-ref { position: relative; }
.thr-modifier--carte { position: absolute; top: .6rem; right: .6rem; margin: 0; z-index: 3; }
.thr-modifier--presse { float: right; margin: 0 0 .4rem 1rem; }
@media print { .thr-modifier { display: none !important; } }

/* ---------------------------------------------------------------- Transports exceptionnels : le convoi qui traverse */
.thr-convoi { margin: 1.5rem 0 2rem; }
.thr-convoi svg { display: block; width: 100%; max-width: 56rem; height: auto; overflow: visible; }
.thr-convoi path, .thr-convoi circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.thr-convoi__sol { stroke-opacity: .5; stroke-width: 1.4; }
.thr-convoi path.thr-convoi__eau { stroke: #3b82f6; stroke-width: 1.8; }
.thr-convoi path.thr-convoi__plein { stroke: none; }
.thr-convoi__culee { stroke-width: 1.6; }
.thr-convoi__appui { stroke-width: 1.2; stroke-opacity: .8; }
.thr-convoi__tablier { stroke-width: 2.4; }
.thr-convoi__tablier--bas { stroke-width: 1; stroke-opacity: .45; }
.thr-convoi__garde { stroke-width: 1; stroke-opacity: .55; stroke-dasharray: 2 5; }
.thr-convoi__vehicule path, .thr-convoi__vehicule circle { stroke: var(--thr-accent, #FF8A3D); stroke-width: 1.6; }
.thr-convoi__charge { fill: color-mix(in srgb, var(--thr-accent, #FF8A3D) 16%, transparent) !important; }
.thr-convoi__roue { fill: currentColor !important; fill-opacity: .15 !important; }

/* ---------------------------------------------------------------- mode salon (diaporama plein écran des références) */
html.thr-salon-actif, html.thr-salon-actif body { overflow: hidden; }
.thr-salon { position: fixed; inset: 0; z-index: 10000; background: #070B14; color: #F4F6FA; font-size: clamp(14px, 1.2vw, 22px); }
.thr-salon__accueil { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.thr-salon__accueil h2 { font-size: 2.4em; margin: .2em 0 .5em; }
.thr-salon__marque { letter-spacing: .3em; font-weight: 700; color: #FF8A3D; margin: 0; }
.thr-salon__scene { position: absolute; inset: 0; }
.thr-salon__diapo { position: absolute; inset: 0; display: grid; grid-template-columns: 62% 38%; background: #070B14; }
.thr-salon__diapo--entre { animation: thr-salon-entre .9s ease both; }
@keyframes thr-salon-entre { from { opacity: 0; } to { opacity: 1; } }
.thr-salon__diapo img { width: 100%; height: 100vh; object-fit: cover; display: block; }
.thr-salon__fiche { padding: 5vh 3vw 4vh; display: flex; flex-direction: column; gap: .4em; background: linear-gradient(160deg, #0D1526, #070B14); overflow: hidden; }
.thr-salon__fiche h2 { font-size: 2em; line-height: 1.12; margin: 0 0 .5em; }
.thr-salon__fiche dl { margin: 0; display: grid; gap: .15em; }
.thr-salon__fiche dt { font-size: .7em; text-transform: uppercase; letter-spacing: .1em; color: #FF8A3D; margin-top: .5em; }
.thr-salon__fiche dd { margin: 0; font-weight: 600; }
.thr-salon__resume { opacity: .85; line-height: 1.45; margin: 1em 0 0; }
.thr-salon__qr { margin-top: auto; display: flex; align-items: center; gap: 1em; font-size: .8em; opacity: .9; }
.thr-salon__code { width: 8em; height: 8em; background: #fff; border-radius: 8px; padding: .3em; flex: none; }
.thr-salon__code svg { width: 100%; height: 100%; display: block; }
.thr-salon__barre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.thr-salon__barre span { display: block; height: 100%; width: 0; background: #FF8A3D; }
.thr-salon--pause .thr-salon__barre span { background: #8A94A3; }
.thr-salon__fermer { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(14,23,38,.7); color: #fff; font-size: 1.6rem; cursor: pointer; opacity: .5; }
.thr-salon__fermer:hover, .thr-salon__fermer:focus-visible { opacity: 1; }
@media (max-width: 800px) { .thr-salon__diapo { grid-template-columns: 1fr; grid-template-rows: 45vh 1fr; } .thr-salon__diapo img { height: 45vh; } }
@media (prefers-reduced-motion: reduce) { .thr-salon__diapo--entre { animation: none; } }
.thr-salon__signature { color: #FF8A3D; letter-spacing: .06em; }
.thr-salon-lien { margin: 1rem 0 0; text-align: right; }

/* ---------------------------------------------------------------- offres d'emploi */
.thr-offres { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
.thr-offre a { display: block; padding: 1rem 1.2rem; border-radius: 10px; border: 1px solid rgba(127,140,160,.25); background: rgba(127,140,160,.07); text-decoration: none; color: inherit; }
.thr-offre a:hover, .thr-offre a:focus-visible { border-color: var(--thr-accent, #FF8A3D); }
.thr-offre__type { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--thr-accent, #FF8A3D); }
.thr-offre__titre { display: block; font-size: 1.15rem; font-weight: 700; margin: .2rem 0; }
.thr-offre__infos { display: block; font-size: .9rem; opacity: .8; }
.thr-offre__fiche { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; border-radius: 10px; background: rgba(127,140,160,.08); }
.thr-offre__fiche dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.thr-offre__fiche dd { margin: 0; font-weight: 600; }
.thr-offre__postuler { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.thr-offre__note { font-style: italic; opacity: .75; }
/* ---------------------------------------------------------------- témoignages */
.thr-temoignages { margin: 3rem 0; }
.thr-temoignages__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.thr-temoignages__liste figure { margin: 0; height: 100%; padding: 1.4rem 1.4rem 1.2rem; border-radius: 12px; border: 1px solid rgba(127,140,160,.22); background: rgba(127,140,160,.07); }
.thr-temoignages__liste blockquote { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.5; font-style: italic; }
.thr-temoignages__liste blockquote p { margin: 0; }
.thr-temoignages__liste figcaption { font-size: .9rem; line-height: 1.4; }
.thr-temoignages__liste figcaption strong { color: var(--thr-accent, #FF8A3D); }
html.thr-ruban-masque .thr-decor-ruban { display: none !important; }

/* ---------------------------------------------------------------- les grands bâtisseurs */
.thr-batisseurs__intro { max-width: 46rem; opacity: .85; }
.thr-bat-dessin { display: block; width: 100%; height: auto; }
.thr-bat-portrait { display: block; color: var(--thr-accent, #FF8A3D); }
.thr-bat-portrait img, .thr-bat-portrait canvas { display: block; width: 100%; height: auto; border-radius: 8px; }
.thr-bat-portrait img[data-trait] { filter: grayscale(1) contrast(1.15); }
/* frise des vies */
.thr-vies { margin: 1.5rem 0 2rem; padding: 1.2rem 1.2rem 1rem; border-radius: 12px; border: 1px solid rgba(127,140,160,.22); background: rgba(127,140,160,.06); }
.thr-vies__titre { font-weight: 700; margin-bottom: .8rem; color: var(--text2, inherit); }
.thr-vies__axe { position: relative; height: 1.4rem; border-bottom: 1px solid rgba(127,140,160,.45); margin: 0 0 .6rem; font-size: .75rem; opacity: .75; }
.thr-vies__axe span { position: absolute; bottom: .2rem; transform: translateX(-50%); }
.thr-vies__defile { overflow: auto; -webkit-overflow-scrolling: touch; max-height: 24rem; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(127,140,160,.55) transparent; border-radius: 8px; }
.thr-vies__defile:focus-visible { outline: 2px solid var(--thr-accent, #FF8A3D); outline-offset: 2px; }
.thr-vies__defile::-webkit-scrollbar { width: 8px; height: 8px; }
.thr-vies__defile::-webkit-scrollbar-thumb { background: rgba(127,140,160,.5); border-radius: 8px; }
/* frise : l'axe des années reste visible en haut pendant le défilement vertical */
.thr-vies__defile .thr-vies__axe { position: sticky; top: 0; z-index: 3; background: rgba(14,23,38,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.thr-fond-clair .thr-vies__defile .thr-vies__axe { background: rgba(248,250,252,.94); }
.thr-vies__liste li[hidden] { display: none; }
/* bouton « Voir plus de bâtisseurs » sous la grille des vignettes */
.thr-batisseurs__plus { margin: 1.6rem 0 0; text-align: center; }
.thr-batisseurs__plus[hidden] { display: none; }
.thr-batisseurs__reste { opacity: .92; font-weight: 400; margin-left: .25rem; }
.thr-vies__defile--suite { -webkit-mask-image: linear-gradient(#000 calc(100% - 2.2rem), rgba(0,0,0,.25)); mask-image: linear-gradient(#000 calc(100% - 2.2rem), rgba(0,0,0,.25)); }
/* en-tête de la rubrique : titre et présentation à gauche, filtres « Pays » et « Époque » à droite sur grand écran */
.thr-batisseurs__entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.thr-batisseurs__titre { flex: 1 1 30rem; min-width: 0; }
.thr-batisseurs__titre .thr-batisseurs__intro { margin-bottom: 0; }
.thr-batisseurs__vues { flex: 0 1 38rem; display: flex; flex-direction: column; gap: .55rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(127,140,160,.22); background: rgba(127,140,160,.06); }
.thr-batisseurs__vue { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; }
.thr-batisseurs__vue-titre { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .75; flex: 0 0 100%; }
.thr-batisseurs__vue .thr-puce { padding-top: .2rem; padding-bottom: .2rem; font-size: .85rem; }
@media (max-width: 47.99rem) { .thr-vies__defile { max-height: 20rem; } }
.thr-vies__interieur { min-width: 46rem; }
.thr-vies__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(var(--lignes, 1), 1.75rem); row-gap: .3rem; }
.thr-vies__liste li { grid-row: var(--ligne); grid-column: 1; margin-left: var(--debut); width: var(--largeur); min-width: 0; position: relative; }
.thr-vies__liste a { display: block; height: 100%; padding: 0 .55rem; line-height: 1.75rem; border-radius: 999px; font-size: .8rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit;
  background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 22%, transparent); border: 1px solid color-mix(in srgb, var(--thr-accent, #FF8A3D) 55%, transparent); transition: opacity .2s ease; }
.thr-vies__liste a:hover, .thr-vies__liste a:focus-visible { background: var(--thr-accent, #FF8A3D); color: #fff; overflow: visible; min-width: max-content; position: relative; z-index: 2; }
.thr-vies__liste li.thr-vies--eteinte a { opacity: .15; pointer-events: none; }
.thr-vies__dates { opacity: .8; font-size: .8em; }
/* au-delà de 10 lignes : frise repliée, dégradé et bouton pour l'afficher en entier */
.thr-batisseurs__recherche { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; }
.thr-batisseurs__recherche label { font-weight: 600; }
.thr-batisseurs__recherche input { flex: 1 1 16rem; max-width: 24rem; padding: .45rem .7rem; border-radius: 8px; border: 1px solid rgba(127,140,160,.45); background: transparent; color: inherit; font: inherit; }
.thr-batisseurs__compte { margin: 0; font-size: .9rem; opacity: .8; min-height: 1.2em; }
.thr-batisseurs__filtres { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.thr-batisseurs__grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.1rem; }
.thr-batisseurs__grille--petite { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.thr-bat-carte[hidden] { display: none; }
.thr-bat-carte a { display: flex; flex-direction: column; height: 100%; padding: 1rem; border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid rgba(127,140,160,.22); background: rgba(127,140,160,.07); transition: border-color .2s ease, transform .2s ease; }
.thr-bat-carte a:hover, .thr-bat-carte a:focus-visible { border-color: var(--thr-accent, #FF8A3D); transform: translateY(-3px); }
.thr-bat-carte__visuel { margin-bottom: .7rem; }
.thr-bat-carte__nom { font-weight: 700; font-size: 1.1rem; }
.thr-bat-carte__dates { font-size: .85rem; color: var(--text-muted, inherit); opacity: var(--thr-dates-opacite, 1); }
.thr-bat-carte__apport { font-size: .9rem; margin-top: .4rem; line-height: 1.35; }
/* fiche */
.thr-bat__entete { position: relative; overflow: hidden; padding: .5rem 0 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(127,140,160,.25); }
.thr-bat__filigrane { position: absolute; right: -2%; top: -10%; width: min(46rem, 70%); opacity: .08; pointer-events: none; color: currentColor; }
.thr-bat__entete h1 { position: relative; margin: 0 0 .3rem; }
.thr-bat__dates { position: relative; margin: 0; font-size: 1.05rem; opacity: .85; }
.thr-bat__encart { width: min(20rem, 100%); padding: 1.1rem; margin: 0 0 1rem; border-radius: 12px; border: 1px solid rgba(127,140,160,.25); background: rgba(127,140,160,.08); }
.thr-bat__encart--droite { float: right; margin-left: 1.6rem; }
.thr-bat__encart--gauche { float: left; margin-right: 1.6rem; }
.thr-bat__encart dl { margin: .9rem 0 0; font-size: .9rem; }
.thr-bat__encart dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-top: .55rem; }
.thr-bat__encart dd { margin: 0; font-weight: 600; }
.thr-bat__credit { font-size: .75rem; opacity: .65; margin: .6rem 0 0; }
.thr-bat__texte .thr-bat__chapo { font-size: 1.15rem; line-height: 1.5; }
.thr-bat__ouvrages li { margin-bottom: .45rem; }
.thr-bat__savez { clear: both; margin: 2rem 0; padding: 1.1rem 1.3rem; border-radius: 12px; border-left: 4px solid var(--thr-accent, #FF8A3D); background: rgba(127,140,160,.08); }
.thr-bat__savez h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
.thr-bat__savez p { margin: 0; }
.thr-bat__heritage { clear: both; margin: 2rem 0; }
.thr-bat__heritage-sous { font-weight: 600; margin-bottom: .6rem; }
.thr-bat__refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .8rem; }
.thr-bat__refs a { display: block; text-decoration: none; color: inherit; border-radius: 10px; overflow: hidden; border: 1px solid rgba(127,140,160,.22); background: rgba(127,140,160,.06); height: 100%; }
.thr-bat__refs img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.thr-bat__refs span { display: block; padding: .5rem .7rem; font-size: .85rem; line-height: 1.3; }
.thr-bat__sources { clear: both; font-size: .88rem; opacity: .85; }
.thr-bat__voir { clear: both; margin-top: 2rem; }
@media (max-width: 720px) { .thr-bat__encart--droite, .thr-bat__encart--gauche { float: none; margin: 0 0 1rem; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .thr-bat-carte a { transition: none; } .thr-bat-carte a:hover { transform: none; } }
.thr-decor-ruban a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.thr-bouton--discret { background: transparent !important; color: inherit !important; border: 1px solid color-mix(in srgb, var(--thr-accent, #FF8A3D) 60%, transparent) !important; }

.thr-vies__axe span:first-child { transform: none; }
.thr-vies__axe span:last-child { transform: translateX(-100%); }

/* ---------------------------------------------------------------- bâtisseurs : une couleur par discipline (frise, vignettes, légende des filtres, fiche) */
[data-couleur="maconnerie"], [data-bat-filtre="maconnerie"] { --bat-c: #D2A26C; }
[data-couleur="liants"], [data-bat-filtre="liants"] { --bat-c: #A7ADB8; }
[data-couleur="metal"], [data-bat-filtre="metal"] { --bat-c: #5E97E0; }
[data-couleur="beton-arme"], [data-bat-filtre="beton-arme"] { --bat-c: #6DBB72; }
[data-couleur="precontrainte"], [data-bat-filtre="precontrainte"] { --bat-c: #FF8A3D; }
[data-couleur="suspendus"], [data-bat-filtre="suspendus"] { --bat-c: #36B9C8; }
[data-couleur="geotechnique"], [data-bat-filtre="geotechnique"] { --bat-c: #B9825A; }
[data-couleur="calcul"], [data-bat-filtre="calcul"] { --bat-c: #A98BE0; }
.thr-vies__liste li[data-couleur] a { background: color-mix(in srgb, var(--bat-c) 26%, transparent); border-color: color-mix(in srgb, var(--bat-c) 75%, transparent); }
.thr-vies__liste li[data-couleur] a:hover, .thr-vies__liste li[data-couleur] a:focus-visible { background: var(--bat-c); color: #0E1726; }
.thr-bat-carte[data-couleur] a { border-top: 3px solid var(--bat-c); }
.thr-bat-carte[data-couleur] .thr-bat-portrait { color: var(--bat-c); }
.thr-bat[data-couleur] .thr-bat__encart { border-top: 3px solid var(--bat-c); }
.thr-bat[data-couleur] .thr-bat__encart .thr-bat-portrait { color: var(--bat-c); }
.thr-bat[data-couleur] .thr-bat__savez { border-left-color: var(--bat-c); }
[data-bat-filtre]:not([data-bat-filtre=""])::before { content: ""; display: inline-block; width: .65em; height: .65em; margin-right: .45em; border-radius: 50%; background: var(--bat-c); vertical-align: .05em; }
/* présentation claire : couleurs un peu plus soutenues pour garder le contraste des traits */
html.thr-fond-clair [data-couleur="maconnerie"], html.thr-fond-clair [data-bat-filtre="maconnerie"] { --bat-c: #A86F2E; }
html.thr-fond-clair [data-couleur="liants"], html.thr-fond-clair [data-bat-filtre="liants"] { --bat-c: #6B7280; }
html.thr-fond-clair [data-couleur="metal"], html.thr-fond-clair [data-bat-filtre="metal"] { --bat-c: #2F6DB8; }
html.thr-fond-clair [data-couleur="beton-arme"], html.thr-fond-clair [data-bat-filtre="beton-arme"] { --bat-c: #2E8A3C; }
html.thr-fond-clair [data-couleur="precontrainte"], html.thr-fond-clair [data-bat-filtre="precontrainte"] { --bat-c: #D9601A; }
html.thr-fond-clair [data-couleur="suspendus"], html.thr-fond-clair [data-bat-filtre="suspendus"] { --bat-c: #0E8796; }
html.thr-fond-clair [data-couleur="geotechnique"], html.thr-fond-clair [data-bat-filtre="geotechnique"] { --bat-c: #8A5530; }
html.thr-fond-clair [data-couleur="calcul"], html.thr-fond-clair [data-bat-filtre="calcul"] { --bat-c: #7552C2; }
html.thr-fond-clair .thr-vies__liste li[data-couleur] a:hover, html.thr-fond-clair .thr-vies__liste li[data-couleur] a:focus-visible { color: #fff; }
/* noms de la frise dans la couleur du texte (pas celle des liens) : meilleure lecture sur les barres colorées */
.thr-batisseurs .thr-vies .thr-vies__liste li[data-couleur] a { color: inherit; }
.thr-batisseurs .thr-vies .thr-vies__liste li[data-couleur] a:hover, .thr-batisseurs .thr-vies .thr-vies__liste li[data-couleur] a:focus-visible { color: #0E1726; }
html.thr-fond-clair .thr-batisseurs .thr-vies .thr-vies__liste li[data-couleur] a:hover, html.thr-fond-clair .thr-batisseurs .thr-vies .thr-vies__liste li[data-couleur] a:focus-visible { color: #fff; }

/* portraits dessinés : masque alpha teinté à la couleur de la discipline (ou de l'accent) */
.thr-bat-portrait--trait { display: block; width: 100%; aspect-ratio: 4 / 5; background-color: currentColor;
  -webkit-mask-image: var(--trait); mask-image: var(--trait); -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.thr-bat-carte .thr-bat-portrait--trait { height: 12rem; width: auto; margin: 0 auto .7rem; }
/* masque différé : rien n'est téléchargé tant que la vignette n'approche pas de l'écran */
.thr-js .thr-bat-portrait--differe { background-color: transparent; -webkit-mask-image: none; mask-image: none; }
.thr-bat__encart .thr-bat-portrait--trait { max-height: 20rem; width: auto; height: 20rem; margin: 0 auto; }
@media (max-width: 720px) { .thr-bat__encart .thr-bat-portrait--trait { height: 16rem; } }

/* ---------------------------------------------------------------- Le quiz THEOREMS */
.thr-quiz-lien[aria-current="page"] { opacity: 1; border-color: currentColor; }
.thr-quiz { --q-c: var(--thr-accent, #FF8A3D); }
.thr-quiz [data-theme="conception"], .thr-quiz[data-theme="conception"] { --q-c: #A98BE0; }
.thr-quiz [data-theme="calcul"] { --q-c: #E8B93C; }
.thr-quiz [data-theme="beton"] { --q-c: #6DBB72; }
.thr-quiz [data-theme="metal"] { --q-c: #5E97E0; }
.thr-quiz [data-theme="maconnerie"] { --q-c: #D2A26C; }
.thr-quiz [data-theme="sols-eau"] { --q-c: #36B9C8; }
.thr-quiz [data-theme="surveillance"] { --q-c: #F07167; }
.thr-quiz [data-theme="equipements"] { --q-c: #A7ADB8; }
.thr-quiz [data-theme="chantier"] { --q-c: #B9825A; }
.thr-quiz [data-theme="histoire"] { --q-c: #FF8A3D; }
html.thr-fond-clair .thr-quiz [data-theme="calcul"] { --q-c: #A87A00; }
html.thr-fond-clair .thr-quiz [data-theme="equipements"] { --q-c: #6B7280; }
html.thr-fond-clair .thr-quiz [data-theme="sols-eau"] { --q-c: #0E8796; }
html.thr-fond-clair .thr-quiz [data-theme="maconnerie"] { --q-c: #A86F2E; }
.thr-quiz__intro { font-size: 1.1rem; }
.thr-quiz__note, .thr-quiz__aide, .thr-quiz__avertissement { font-size: .88rem; opacity: .75; }
.thr-quiz__bloc { margin: 1.5rem 0; padding: 1.3rem 1.4rem; border-radius: 14px; border: 1px solid rgba(127,140,160,.25); background: rgba(127,140,160,.07); }
.thr-quiz__bloc h2 { margin: 0 0 .6rem; font-size: 1.25rem; }
.thr-quiz__defi { border-left: 4px solid var(--thr-accent, #FF8A3D); }
.thr-quiz__fait { font-size: 1.05rem; }
.thr-quiz fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.thr-quiz legend { font-weight: 700; margin-bottom: .5rem; font-size: .95rem; }
.thr-quiz__tous { margin-left: .6rem; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; font-size: .85rem; cursor: pointer; opacity: .8; }
.thr-quiz__themes { display: flex; flex-wrap: wrap; gap: .45rem; }
.thr-quiz__themes legend { width: 100%; }
.thr-quiz__theme input, .thr-quiz__choix input { position: absolute; opacity: 0; pointer-events: none; }
.thr-quiz__theme span, .thr-quiz__choix span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; cursor: pointer; font-size: .9rem;
  border: 1px solid color-mix(in srgb, var(--q-c) 55%, transparent); transition: background .15s ease; }
.thr-quiz__theme span::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--q-c); }
.thr-quiz__theme small { opacity: .65; font-size: .8em; }
.thr-quiz__theme input:checked + span { background: color-mix(in srgb, var(--q-c) 28%, transparent); border-color: var(--q-c); font-weight: 600; }
.thr-quiz__theme input:focus-visible + span, .thr-quiz__choix input:focus-visible + span { outline: 2px solid var(--q-c); outline-offset: 2px; }
.thr-quiz__reglages { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.thr-quiz__choix { display: flex; flex-wrap: wrap; gap: .35rem; }
.thr-quiz__choix legend { width: 100%; }
.thr-quiz__choix input:checked + span { background: color-mix(in srgb, var(--q-c) 28%, transparent); border-color: var(--q-c); font-weight: 600; }
.thr-quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 1rem 0 .4rem; }
.thr-quiz__son { padding: .45rem .8rem; border-radius: 8px; border: 1px solid rgba(127,140,160,.45); background: transparent; color: inherit; cursor: pointer; font-size: .88rem; }
.thr-quiz__alerte { color: #F07167; font-weight: 600; }
.thr-quiz__records { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.thr-quiz__records li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; border-bottom: 1px dashed rgba(127,140,160,.3); padding-bottom: .3rem; }
.thr-quiz__chargement { padding: 2rem 0; opacity: .8; }
/* jeu */
.thr-quiz__jeu { scroll-margin-top: 6rem; }
.thr-quiz__tete { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.thr-quiz__quitter { padding: .3rem .7rem; border-radius: 8px; border: 1px solid rgba(127,140,160,.45); background: transparent; color: inherit; cursor: pointer; font-size: .85rem; }
.thr-quiz__compteur { font-weight: 700; }
.thr-quiz__serie { color: var(--thr-accent, #FF8A3D); font-weight: 700; }
.thr-quiz__points { margin-left: auto; font-weight: 700; }
.thr-quiz__jauge, .thr-quiz__chrono { height: 6px; border-radius: 999px; background: rgba(127,140,160,.2); overflow: hidden; margin: .7rem 0; }
.thr-quiz__jauge i, .thr-quiz__chrono i { display: block; height: 100%; width: 0; background: var(--q-c); transition: width .3s ease; }
.thr-quiz__chrono i { width: 100%; background: #36B9C8; transition: width .2s linear; }
.thr-quiz__chrono--fin i { background: #F07167; }
.thr-quiz__carte { margin-top: 1rem; padding: 1.5rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--q-c) 45%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--q-c) 12%, transparent), transparent 60%); }
.thr-quiz__cat { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--q-c); font-weight: 700; }
.thr-quiz__question { font-size: 1.3rem; line-height: 1.4; margin: 0 0 1.2rem; outline: none; }
.thr-quiz__reponses { display: grid; gap: .6rem; }
.thr-quiz__reponse { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .8rem 1rem; border-radius: 12px; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid rgba(127,140,160,.35); background: rgba(127,140,160,.08); animation: thr-quiz-entre .35s ease both; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.thr-quiz__reponse:hover:not(:disabled), .thr-quiz__reponse:focus-visible { border-color: var(--q-c); transform: translateX(3px); }
.thr-quiz__reponse:disabled { cursor: default; }
.thr-quiz__touche { flex: none; display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; font-size: .85rem; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--q-c) 60%, transparent); }
.thr-quiz__reponse--juste { border-color: #3FB950 !important; background: rgba(63,185,80,.18) !important; }
.thr-quiz__reponse--faux { border-color: #F07167 !important; background: rgba(240,113,103,.16) !important; }
.thr-quiz__reponse:disabled:not(.thr-quiz__reponse--juste):not(.thr-quiz__reponse--faux) { opacity: .55; }
@keyframes thr-quiz-entre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.thr-quiz__retour { margin-top: 1rem; }
.thr-quiz__verdict { font-weight: 700; font-size: 1.1rem; margin: 0 0 .4rem; }
.thr-quiz__verdict--juste { color: #3FB950; }
.thr-quiz__verdict--faux { color: #F07167; }
html.thr-fond-clair .thr-quiz__verdict--juste { color: #1F7A35; }
html.thr-fond-clair .thr-quiz__verdict--faux { color: #B42318; }
.thr-quiz__explication { opacity: .85; font-size: .95rem; }
/* résultat */
.thr-quiz__score { display: flex; align-items: baseline; gap: 1.2rem; margin: .5rem 0; }
.thr-quiz__score strong { font-size: 3rem; line-height: 1; color: var(--thr-accent, #FF8A3D); }
.thr-quiz__score span { font-size: 1.2rem; font-weight: 600; }
.thr-quiz__mot { font-size: 1.15rem; }
.thr-quiz__record { display: inline-block; margin-left: .4rem; padding: .1rem .6rem; border-radius: 999px; background: var(--thr-accent, #FF8A3D); color: #0E1726; font-weight: 700; font-size: .85rem; }
.thr-quiz__bilan { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .45rem; }
.thr-quiz__bilan li { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr 3rem; align-items: center; gap: .8rem; font-size: .92rem; }
.thr-quiz__barre { height: 8px; border-radius: 999px; background: rgba(127,140,160,.2); overflow: hidden; }
.thr-quiz__barre i { display: block; height: 100%; background: var(--q-c); }
.thr-quiz__revue { margin-top: 1rem; }
.thr-quiz__revue summary { cursor: pointer; font-weight: 600; }
.thr-quiz__revue li { margin: .8rem 0; padding-left: .6rem; border-left: 3px solid #3FB950; }
.thr-quiz__revue li.faux { border-left-color: #F07167; }
.thr-quiz__revue p { margin: .2rem 0; }
.thr-bat__quiz { clear: both; margin: 2rem 0 0; }
@media (max-width: 600px) { .thr-quiz__question { font-size: 1.12rem; } .thr-quiz__bilan li { grid-template-columns: 1fr 5rem 2.5rem; } .thr-quiz__carte { padding: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .thr-quiz__reponse { animation: none; transition: none; } .thr-quiz__reponse:hover { transform: none; } .thr-quiz__jauge i, .thr-quiz__chrono i { transition: none; } }
.thr-quiz { scroll-margin-top: 7.5rem; }
.container-header .mod-languages { display: flex; align-items: center; gap: .2rem; }
.thr-bascule-place { display: inline-block; width: 2.1rem; height: 2.1rem; margin-left: .35rem; flex: none; }
/* en-tête mobile stable : bouton de menu à sa taille finale dès le premier affichage, et sur téléphone la ligne
   recherche + langues + quiz + présentation sur sa propre ligne d'emblée (sinon elle passait à la ligne après coup) */
.container-header .navbar-toggler { min-width: 41px; min-height: 35px; }
@media (max-width: 575.98px) { .container-header .container-nav .container-search { flex: 1 0 100%; } }
.thr-quiz [data-theme="bois"] { --q-c: #8BC34A; }
.thr-quiz [data-theme="reglementation"] { --q-c: #7EA6F2; }
.thr-quiz [data-theme="celebres"] { --q-c: #F2A65A; }
html.thr-fond-clair .thr-quiz [data-theme="bois"] { --q-c: #4E7D1E; }
html.thr-fond-clair .thr-quiz [data-theme="celebres"] { --q-c: #B8641A; }

/* quiz sur toute la largeur du contenu, comme les autres pages : sur grand écran, défi du jour et records côte à côte,
   réponses sur deux colonnes */
@media (min-width: 992px) {
  .thr-quiz__accueil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; align-items: stretch; }
  .thr-quiz__accueil > * { grid-column: 1 / -1; }
  .thr-quiz__accueil > .thr-quiz__defi { grid-column: 1; }
  .thr-quiz__accueil > .thr-quiz__records-bloc { grid-column: 2; }
  .thr-quiz__accueil:not(:has(.thr-quiz__records-bloc)) > .thr-quiz__defi { grid-column: 1 / -1; }
  .thr-quiz__reponses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thr-quiz__question { font-size: 1.45rem; }
}
@media (min-width: 992px) { .thr-quiz__reglages { display: grid; grid-template-columns: 1.3fr 1.3fr .6fr .8fr; gap: 1rem 1.6rem; } }

/* icône du quiz : manette de jeu bicolore (orange et turquoise THEOREMS), légère lueur néon au survol */
.thr-quiz-lien .thr-manette { display: block; overflow: visible; }
.thr-manette__c1 { stop-color: #FF8A3D; }
.thr-manette__c2 { stop-color: #22C3D0; }
.thr-manette__croix { stroke: #FF8A3D; }
.thr-manette__b1 { fill: #22C3D0; }
.thr-manette__b2 { fill: #FF5FA2; }
.thr-manette__b3 { fill: #FFD23F; }
.thr-manette__b4 { fill: #7CDB6B; }
.thr-quiz-lien { opacity: 1; }
.thr-quiz-lien:hover .thr-manette, .thr-quiz-lien:focus-visible .thr-manette, .thr-quiz-lien[aria-current="page"] .thr-manette {
  filter: drop-shadow(0 0 2px rgba(255, 138, 61, .9)) drop-shadow(0 0 5px rgba(34, 195, 208, .7)); }
@media (prefers-reduced-motion: no-preference) { .thr-quiz-lien .thr-manette { transition: filter .2s ease, transform .2s ease; } .thr-quiz-lien:hover .thr-manette { transform: rotate(-6deg) scale(1.06); } }

/* ---------------------------------------------------------------- quiz : règle des thèmes et machine de tirage (reprises de DUNKiT) */
.thr-quiz__regle { margin: 0 0 .8rem; }
.thr-quiz__venu { margin: 0 0 .8rem; padding: .6rem .9rem; border-radius: 10px; border-left: 4px solid var(--thr-accent, #FF8A3D); background: rgba(255,138,61,.1); }
.thr-quiz__compte { font-weight: 600; margin: .2rem 0 .6rem; }
.thr-quiz__compte--court { color: #F07167; }
.thr-quiz__bareme { margin: 0 0 1rem; }
.thr-quiz__bareme summary { cursor: pointer; font-size: .92rem; opacity: .85; }
.thr-quiz__bareme ul { list-style: none; margin: .6rem 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.thr-quiz__bareme li { display: grid; gap: .1rem; padding: .4rem .7rem; border-radius: 10px; border: 1px solid rgba(127,140,160,.3); font-size: .85rem; text-align: center; min-width: 6.5rem; }
.thr-quiz__bareme li.thr-quiz__palier-nul span { opacity: .6; }
.thr-quiz__bareme li.thr-quiz__palier-actuel { border-color: var(--thr-accent, #FF8A3D); background: rgba(255,138,61,.15); }
.thr-quiz__bonus { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.thr-tirage { text-align: center; padding: 1rem 0 2rem; }
.thr-tirage__titre { font-size: 1.8rem; margin: 0 0 .4rem; }
.thr-tirage__texte { opacity: .8; }
.thr-loto { display: grid; place-items: center; margin: 1.2rem 0 .6rem; }
.thr-loto__sphere { position: relative; width: 210px; height: 210px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(0,0,0,.28)); border: 6px solid rgba(127,140,160,.55);
  box-shadow: inset 0 0 30px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.25); }
.thr-loto__verre { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: linear-gradient(140deg, rgba(255,255,255,.22) 0 30%, transparent 45%); }
.thr-loto__boule { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem;
  background: var(--q-c, #FF8A3D); box-shadow: inset -3px -3px 6px rgba(0,0,0,.25); }
.thr-loto__boule--0 { animation: thr-danse 1.9s ease-in-out infinite; }
.thr-loto__boule--1 { animation: thr-danse 2.3s ease-in-out infinite .15s; }
.thr-loto__boule--2 { animation: thr-danse 1.7s ease-in-out infinite .3s; }
.thr-loto__boule--3 { animation: thr-danse 2.1s ease-in-out infinite .45s; }
.thr-loto__boule--4 { animation: thr-danse 2.5s ease-in-out infinite .6s; }
.thr-loto__boule--5 { animation: thr-danse 1.8s ease-in-out infinite .75s; }
.thr-loto__boule:nth-child(3n) { --orbite: 42px; }
.thr-loto__boule:nth-child(3n+1) { --orbite: 62px; }
.thr-loto__boule:nth-child(3n+2) { --orbite: 78px; }
.thr-loto__sphere:not(.thr-loto__sphere--tourne) .thr-loto__boule { animation-play-state: paused; }
@keyframes thr-danse { 0% { transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbite, 62px)) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbite, 62px)) rotate(-360deg); } }
.thr-loto__sphere--tourne { animation: thr-secousse .5s ease-in-out infinite alternate; }
@keyframes thr-secousse { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.thr-loto__goulotte { width: 60px; height: 16px; margin-top: -6px; border-radius: 0 0 12px 12px; background: rgba(127,140,160,.55); }
.thr-tirage__sorties { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; min-height: 7.5rem; margin-top: .8rem; }
.thr-tirage__sortie { display: grid; gap: .35rem; justify-items: center; opacity: 0; transform: scale(.4) translateY(-30px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,1.5,.4,1); }
.thr-tirage__sortie--vue { opacity: 1; transform: scale(1) translateY(0); }
.thr-tirage__grande { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem;
  background: var(--q-c, #FF8A3D); box-shadow: inset -5px -5px 12px rgba(0,0,0,.22), 0 6px 16px rgba(0,0,0,.25); }
.thr-tirage__bilan { margin: 1rem 0 .4rem; }
.thr-tirage__liste { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.thr-tirage__puce { padding: .3rem .7rem; border-radius: 999px; font-size: .88rem; border: 1px solid color-mix(in srgb, var(--q-c, #FF8A3D) 55%, transparent); }
.thr-tirage__puce--surprise { background: color-mix(in srgb, var(--q-c, #FF8A3D) 30%, transparent); font-weight: 700; }
.thr-tirage__actions { margin-top: 1rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.thr-confettis { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.thr-confettis i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: thr-confetti 2s ease-in forwards; }
@keyframes thr-confetti { to { transform: translateY(105vh) rotate(720deg); opacity: .2; } }
@media (max-width: 600px) { .thr-loto__sphere { width: 150px; height: 150px; } .thr-loto__boule:nth-child(3n+2) { --orbite: 52px; } .thr-loto__boule:nth-child(3n+1) { --orbite: 40px; } .thr-loto__boule:nth-child(3n) { --orbite: 26px; } }
@media (prefers-reduced-motion: reduce) { .thr-loto__boule, .thr-loto__sphere--tourne { animation: none !important; } .thr-tirage__sortie { transition: none; } }
/* bouton « Nouvelle actualité » (rédacteurs connectés) */
.thr-creer { margin: 0 0 1.2rem; }
.thr-creer__lien { display: inline-flex; align-items: center; gap: .45rem; }
/* « THEOREMS » en dégradé dans le titre du quiz : bleu à droite, orange à gauche */
.thr-degrade { background: linear-gradient(to left, #7AA7FF, #FF8A3D); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.thr-degrade-clair .thr-degrade { background-image: linear-gradient(to left, #2F6FE0, #E0661C); }

/* ---------------------------------------------------------------- Outils de calcul (rubrique Outils) */
.thr-outils-liste { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.thr-outils-liste li { border: 1px solid var(--thr-trait); border-radius: .6rem; background: color-mix(in srgb, currentColor 4%, transparent); }
.thr-outils-liste li > a, .thr-outils-liste__bientot { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem; height: 100%; color: inherit; text-decoration: none; }
.thr-outils-liste li > a:hover, .thr-outils-liste li > a:focus-visible { background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 10%, transparent); border-radius: .6rem; }
.thr-outils-liste strong { color: var(--thr-accent, #FF8A3D); font-size: 1.1rem; }
.thr-outils-liste span { font-size: .95rem; opacity: .85; }
.thr-outils-liste__bientot { opacity: .65; }
.thr-outils-avertissement { font-size: .9rem; opacity: .8; border-left: 3px solid var(--thr-accent, #FF8A3D); padding-left: .8rem; margin-top: 1.5rem; }

.thr-outil { margin: 1.5rem 0 2rem; }
.thr-outil__formes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.thr-outil__formes button, .thr-outil__unites button { font: inherit; font-size: .9rem; padding: .4rem .75rem; border-radius: 2rem; cursor: pointer;
  border: 1px solid var(--thr-trait); background: transparent; color: inherit; }
.thr-outil__formes button[aria-checked="true"], .thr-outil__unites button[aria-pressed="true"] { background: var(--thr-accent, #FF8A3D); border-color: var(--thr-accent, #FF8A3D); color: #10151d; font-weight: 600; }
.thr-outil__corps { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(16rem, 1.3fr); gap: 1.2rem; align-items: start; }
@media (max-width: 760px) { .thr-outil__corps { grid-template-columns: 1fr; } }
.thr-outil__saisie fieldset { border: 1px solid var(--thr-trait); border-radius: .6rem; padding: .8rem 1rem 1rem; margin: 0; }
.thr-outil__saisie legend { padding: 0 .4rem; font-weight: 600; }
.thr-outil__champs { display: grid; gap: .6rem; }
.thr-outil__champs label { display: grid; gap: .2rem; font-size: .92rem; }
.thr-outil__champs input, .thr-outil__champs select { font: inherit; padding: .45rem .6rem; border-radius: .4rem; border: 1px solid var(--thr-trait);
  background: color-mix(in srgb, currentColor 5%, transparent); color: inherit; }
.thr-outil__champs select option { color: #10151d; }
.thr-outil__erreur { color: #e5484d; font-weight: 600; margin: .6rem 0 0; }
.thr-outil__dessin { margin: 0; border: 1px solid var(--thr-trait); border-radius: .6rem; padding: .6rem; }
.thr-outil__dessin svg { display: block; width: 100%; height: auto; max-height: 24rem; }
.thr-outil__dessin figcaption { font-size: .85rem; opacity: .8; text-align: center; margin-top: .3rem; }
.thr-outil__matiere { fill: color-mix(in srgb, var(--thr-accent, #FF8A3D) 30%, transparent); stroke: var(--thr-accent, #FF8A3D); }
.thr-outil__axe { stroke: currentColor; stroke-dasharray: 6 4; opacity: .55; vector-effect: non-scaling-stroke; stroke-width: 1px !important; }
.thr-outil__cote { stroke: currentColor; opacity: .5; vector-effect: non-scaling-stroke; stroke-width: 1px !important; }
.thr-outil__g { fill: currentColor; }
.thr-outil__texte { fill: currentColor; font-family: inherit; }
.thr-outil__resultats { margin-top: 1.4rem; }
.thr-outil__entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.thr-outil__entete h2 { margin: 0; }
.thr-outil__unites { display: flex; gap: .3rem; }
.thr-outil__resultats table { width: 100%; border-collapse: collapse; margin-top: .6rem; font-variant-numeric: tabular-nums; }
.thr-outil__resultats th, .thr-outil__resultats td { padding: .42rem .6rem; border-bottom: 1px solid var(--thr-trait); text-align: left; vertical-align: baseline; }
.thr-outil__resultats td { text-align: right; white-space: nowrap; font-weight: 600; }
.thr-outil__resultats th { font-weight: 400; }
.thr-outil__groupe th { font-weight: 700; color: var(--thr-accent, #FF8A3D); padding-top: 1rem; border-bottom-width: 2px; }
.thr-outil__sym { font-style: italic; opacity: .85; margin-left: .25rem; white-space: nowrap; }

/* ---------------------------------------------------------------- Outils : calcul de poutres */
.thr-poutre__corps { align-items: start; }
.thr-poutre__unite { opacity: .7; font-weight: 400; }
.thr-poutre__charge { border-top: 1px solid var(--thr-trait, #d3dbe4); padding-top: .6rem; margin-top: .6rem; }
.thr-poutre__titre { display: flex; justify-content: space-between; align-items: center; margin: 0 0 .3rem; font-weight: 600; }
.thr-poutre__suppr { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 50%; width: 1.8rem; height: 1.8rem; line-height: 1; cursor: pointer; }
.thr-poutre__ajout { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 .3rem; }
.thr-poutre__ajout button { border: 1px solid var(--thr-accent, #FF8A3D); background: transparent; color: inherit; border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.thr-poutre__ajout button:hover, .thr-poutre__ajout button:focus-visible { background: var(--thr-accent, #FF8A3D); color: #10151f; }
.thr-poutre__aide { font-size: .85rem; opacity: .8; margin: .3rem 0 0; }
.thr-poutre__case { display: flex; align-items: center; gap: .5rem; grid-column: 1 / -1; }
.thr-poutre__case input { width: auto; }
.thr-poutre__schema svg, .thr-poutre__diagrammes svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.thr-poutre__diagrammes { margin: .5rem 0 1.2rem; }
.thr-poutre__lecture { min-height: 1.5em; font-variant-numeric: tabular-nums; font-size: .95rem; margin: 0 0 .4rem; }
.thr-pt-poutre { stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.thr-pt-appui { fill: none; stroke: currentColor; stroke-width: 2; }
.thr-pt-mur { stroke: currentColor; stroke-width: 3; }
.thr-pt-sol, .thr-pt-cote { stroke: currentColor; stroke-width: 1.2; opacity: .7; }
.thr-pt-q { fill: var(--thr-accent, #FF8A3D); fill-opacity: .18; stroke: var(--thr-accent, #FF8A3D); stroke-width: 1.5; }
.thr-pt-q--pp { fill: #8aa0b8; stroke: #8aa0b8; }
.thr-pt-fleche { stroke: var(--thr-accent, #FF8A3D); stroke-width: 1.4; fill: none; }
.thr-pt-fleche--forte { stroke-width: 2.6; }
.thr-pt-pointe { fill: var(--thr-accent, #FF8A3D); }
.thr-pt-txt, .thr-pt-val, .thr-pt-titre { fill: currentColor; font-size: 15px; font-family: inherit; }
.thr-pt-titre { font-weight: 600; font-size: 14px; opacity: .85; }
.thr-pt-val { font-size: 13px; font-weight: 600; }
.thr-pt-axe { stroke: currentColor; stroke-width: 1; opacity: .5; }
.thr-pt-aire--v { fill: #5E97E0; fill-opacity: .22; }
.thr-pt-aire--m { fill: var(--thr-accent, #FF8A3D); fill-opacity: .22; }
.thr-pt-aire--w { fill: #6DBB72; fill-opacity: .22; }
.thr-pt-courbe { fill: none; stroke-width: 2; }
.thr-pt-courbe--v { stroke: #5E97E0; }
.thr-pt-courbe--m { stroke: var(--thr-accent, #FF8A3D); }
.thr-pt-courbe--w { stroke: #6DBB72; }
.thr-pt-curseur { stroke: currentColor; stroke-width: 1; stroke-dasharray: 4 3; opacity: .7; pointer-events: none; }
.thr-poutre__corps .thr-outil__champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem .8rem; }
.thr-poutre__corps .thr-outil__champs label > span:first-child { display: block; }
.thr-poutre__corps .thr-outil__champs label { min-width: 0; }
.thr-poutre__corps .thr-outil__champs input, .thr-poutre__corps .thr-outil__champs select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.thr-poutre__corps .thr-outil__champs .thr-poutre__case { display: flex; flex-direction: row; align-items: center; gap: .5rem; grid-column: 1 / -1; }
.thr-poutre__corps .thr-outil__champs .thr-poutre__case input { width: 1.1rem; height: 1.1rem; flex: none; }
@media (min-width: 761px) { .thr-poutre__schema { position: sticky; top: 6.5rem; } }

/* ---------------------------------------------------------------- Outils : formulaire de RDM */
.thr-form__sommaire ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.thr-form__sommaire a { display: inline-block; border: 1px solid var(--thr-trait, #d3dbe4); border-radius: 999px; padding: .3rem .8rem; text-decoration: none; }
.thr-form__cas-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 1.2rem; }
.thr-form__cas { border: 1px solid var(--thr-trait, #d3dbe4); border-radius: .8rem; padding: 1rem 1.1rem; scroll-margin-top: 7rem; }
.thr-form__cas h3 { margin-top: 0; font-size: 1.08rem; }
.thr-form__schema { width: 100%; max-width: 30rem; height: auto; display: block; margin: .2rem auto .6rem; }
.thr-form__table { width: 100%; border-collapse: collapse; }
.thr-form__table th { text-align: left; font-weight: 500; font-size: .9rem; opacity: .85; padding: .45rem .6rem .45rem 0; vertical-align: middle; width: 38%; }
.thr-form__table td { padding: .45rem 0; vertical-align: middle; }
.thr-form__table tr + tr { border-top: 1px solid var(--thr-trait, #d3dbe4); }
.thr-form__table math { font-size: 1.12em; }
.thr-form__action { margin: .8rem 0 0; text-align: right; }
.thr-poutre__suppr--texte { width: auto; height: auto; border-radius: 999px; padding: .15rem .6rem; font-size: .85rem; margin-left: .3rem; }
.thr-pt-poutre--forte { stroke-width: 9; }
.thr-pt-rotule { fill: var(--thr-fond, #0d1420); stroke: currentColor; stroke-width: 2; }
.thr-form__retour { margin: .2rem 0 1rem; }
.thr-form__formule { overflow-x: auto; padding: .4rem 0; }
.thr-form__mohr thead th { font-weight: 600; text-align: left; padding: .45rem .6rem .45rem 0; }
.thr-form__table, .thr-form__cas { overflow-wrap: anywhere; }
.thr-form__table td { overflow-x: auto; max-width: 0; }
.thr-form__sec { fill: var(--thr-accent, #FF8A3D); fill-opacity: .18; stroke: var(--thr-accent, #FF8A3D); stroke-width: 1.6; }
.thr-form__axe { stroke: currentColor; stroke-width: 1; stroke-dasharray: 6 4; opacity: .6; fill: none; }
.thr-form__deformee { fill: none; stroke: #5E97E0; stroke-width: 2; stroke-dasharray: 5 4; }
.thr-form__schema--section { max-width: 17rem; }
.thr-form__coef { font-variant-numeric: tabular-nums; font-size: .88rem; }
.thr-form__coef th, .thr-form__coef td { text-align: center; padding: .25rem .3rem; width: auto; }
.thr-form__table td .thr-form__coef { margin: .2rem 0; }
.thr-form__defil { overflow-x: auto; }
.thr-form__coef { white-space: nowrap; }
.thr-form__table .thr-form__coef td, .thr-form__table .thr-form__coef th, .thr-form__coef td, .thr-form__coef th { max-width: none; overflow: visible; }

/* ---------------------------------------------------------------- Outils : calcul de dalles */
.thr-dalle__vue { min-width: 0; }
.thr-dalle__champs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.thr-dalle__champs button { border: 1px solid var(--thr-trait, #d3dbe4); background: transparent; color: inherit; border-radius: 999px; padding: .3rem .7rem; font-size: .85rem; cursor: pointer; }
.thr-dalle__champs button[aria-checked="true"] { background: var(--thr-accent, #FF8A3D); border-color: var(--thr-accent, #FF8A3D); color: #10151f; }
.thr-dalle__cadre { width: 100%; }
.thr-dalle__cadre canvas { display: block; max-width: 100%; touch-action: pan-y; cursor: crosshair; }
.thr-dalle__legende { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; font-variant-numeric: tabular-nums; margin: .4rem 0; }
.thr-dalle__degrade { flex: 0 0 9rem; height: .7rem; border-radius: .35rem; background: linear-gradient(90deg, rgba(94,151,224,.9), rgba(94,151,224,.06) 50%, rgba(255,138,61,.06) 50%, rgba(255,138,61,.9)); }
.thr-dalle__unite { opacity: .85; flex-basis: 100%; }
@media (min-width: 761px) { .thr-dalle__vue { position: sticky; top: 6.5rem; } }

/* bouton désactivé (impression des fiches de référence en attente) */
.thr-bouton:disabled, .thr-bouton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.thr-fiche__bientot { display: block; margin-top: .35rem; font-size: .85rem; opacity: .7; }

/* Outils > Combinaisons d'actions */
[data-outil="combinaisons"] .thr-outil__saisie { display: grid; gap: 1rem; }
.thr-combi__g { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); align-items: end; }
.thr-combi__opt { display: flex !important; align-items: center; gap: .45rem; font-size: .92rem; margin-top: .4rem; }
.thr-combi__defile { overflow-x: auto; margin: .6rem 0 .3rem; }
.thr-combi__actions { width: 100%; border-collapse: collapse; font-size: .9rem; }
.thr-combi__actions th, .thr-combi__actions td { padding: .35rem .4rem; border-bottom: 1px solid var(--thr-trait); text-align: left; vertical-align: middle; }
.thr-combi__actions thead th { font-weight: 600; opacity: .8; }
.thr-combi__actions tbody th { font-weight: 400; }
.thr-combi__actions small { opacity: .7; }
.thr-combi__actions input[type="number"] { width: 4.6rem; font: inherit; padding: .3rem .4rem; border-radius: .4rem; border: 1px solid var(--thr-trait); background: color-mix(in srgb, currentColor 5%, transparent); color: inherit; }
.thr-combi__case { width: 1.6rem; }
.thr-combi__sym { font-family: ui-monospace, monospace; font-size: .85em; color: var(--thr-accent, #FF8A3D); }
.thr-combi__comp { opacity: .65; font-style: italic; }
.thr-combi__note { font-size: .85rem; opacity: .75; margin: .3rem 0; }
.thr-combi__nb { display: inline-block; min-width: 1.6rem; padding: 0 .4rem; border-radius: 1rem; background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 22%, transparent); font-size: .8rem; text-align: center; vertical-align: middle; }
.thr-combi__liste { margin: .4rem 0 1rem; padding-left: 1.6rem; }
.thr-combi__liste li { padding: .22rem 0; border-bottom: 1px dashed var(--thr-trait); }
.thr-combi__liste code { font-family: ui-monospace, monospace; font-size: .92rem; white-space: normal; background: none; color: inherit; }
.thr-combi__dom { margin-left: .8rem; font-size: .8rem; opacity: .65; }

/* ======================================================================================================
   Audit du 10/11/2026 : corrections bloquantes avant la mise en ligne
   ====================================================================================================== */

/* --- A3. Stabilité de l'affichage : place réservée tant que les scripts n'ont pas construit le contenu.
   La réserve d'un écran pousse le contenu suivant hors de la vue dès le premier affichage : il ne « saute » plus. */
[data-outil]:empty { min-height: 100vh; }
#ct-contenu:has(> .text-empty) { min-height: 100vh; }
.thr-quiz { min-height: 75vh; }
/* fil d'Ariane sur une seule ligne sur téléphone : il ne passe plus à la ligne quand la police arrive */
@media (max-width: 767.98px) {
  .mod-breadcrumbs { display: flex; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .mod-breadcrumbs__item { flex: none; }
  .mod-breadcrumbs__item:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* --- A4. Zones tactiles d'au moins 24 px (WCAG 2.5.8) ; 44 px pour les commandes de l'en-tête */
.mod-breadcrumbs__item a, .mod-breadcrumbs__item > span { display: inline-block; min-height: 24px; line-height: 24px; }
.container-footer li.nav-item > a, .thr-pied__col a { display: inline-block; min-height: 24px; line-height: 24px; padding-block: 2px; }
.thr-quiz__tous, .thr-quiz__bareme > summary { min-height: 32px; display: inline-flex; align-items: center; }
.thr-quiz__choix input[type="radio"], .thr-quiz__theme input[type="checkbox"], .thr-poutre__case input[type="checkbox"] { width: 24px; height: 24px; }
.thr-quiz__theme, .thr-poutre__case { min-height: 32px; display: inline-flex; align-items: center; gap: .45rem; }
.thr-cat-liens__lien { display: inline-block; min-height: 24px; line-height: 24px; }

/* --- A2. En-tête compact sur téléphone et tablette : une seule ligne
   (logo, recherche repliée, langues, quiz, présentation, menu) ; le menu et la recherche s'ouvrent sous l'en-tête. */
.thr-recherche-ouvrir { display: none; }
@media (max-width: 991.98px) {
  .container-header { display: flex !important; align-items: center; gap: .25rem; min-height: 60px; padding: .4rem .75rem !important; }
  .container-header > .grid-child:first-child { flex: 1 1 auto; min-width: 0; padding: 0 !important; margin: 0; }
  .container-header .navbar-brand { padding: 0 !important; margin: 0; }
  .container-header .navbar-brand img { max-height: 36px; width: auto; }
  .container-header .container-nav { display: flex !important; align-items: center; flex: 0 0 auto; padding: 0 !important; margin: 0; gap: .15rem; width: auto; }
  .container-header .container-nav .navbar { order: 2; padding: 0; margin: 0; position: static; }
  .container-header .container-nav .container-search { order: 1; flex: 0 0 auto !important; margin: 0 !important; gap: .1rem; }
  .container-header .container-search > search { order: -1; }
  /* commandes de l'en-tête : 40 à 44 px */
  .container-header .navbar-toggler { min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .container-header .mod-languages ul.lang-inline a { min-width: 32px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .3rem; }
  .container-header .thr-bascule, .container-header .thr-bascule-place { width: 40px; height: 40px; margin-left: 0; }
  /* recherche : une loupe ; le champ s'ouvre sous l'en-tête */
  .thr-recherche-ouvrir { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
  .thr-recherche-ouvrir svg { width: 20px; height: 20px; }
  .container-header search form.mod-finder { display: none; }
  .container-header.thr-recherche-ouverte search form.mod-finder { display: block; position: absolute; left: .75rem; right: .75rem; top: calc(100% + .35rem); z-index: 1001; }
  .container-header.thr-recherche-ouverte search .mod-finder__search { width: 100%; }
  .container-header.thr-recherche-ouverte search input { min-height: 44px; }
  /* menu déplié : panneau pleine largeur sous l'en-tête */
  .container-header .navbar-collapse { position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; background: var(--thr-menu-fond, var(--bg, #FFFFFF));
    max-height: calc(100vh - 60px); overflow-y: auto; padding: .5rem 1rem 1rem; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .45); }
}
/* très petits écrans : l'accès au quiz passe par le menu */
@media (max-width: 379.98px) { .container-header .thr-quiz-lien { display: none; } }

/* ======================================================================================================
   Contrastes (12/11/2026) : contrôle de toutes les présentations, pas seulement AURORE et Bureau d'études.
   Les atténuations par transparence donnaient, sur fond clair, des textes sous 4,5:1 : couleurs pleines à la place.
   ====================================================================================================== */
.thr-outils-avertissement { opacity: 1; color: var(--text-muted, inherit); }
.thr-outils-liste li > a { color: var(--text, inherit); }
.thr-outils-liste span { opacity: 1; color: var(--text2, inherit); }
/* lien de l'éphéméride : couleur du texte du ruban (qui, lui, est contrasté dans chaque présentation), souligné */
html:root body .thr-decor-ruban a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }


/* =====================================================================
   Observations du 14/11/2026 (version 1.22.0)
   ===================================================================== */

/* Vignettes dessinées (documents, références sans photo) : pas de lueur de chargement, un reflet lent et espacé */
.thr-js .thr-ref__visuel--dessin:not(.thr-charge) { animation: thr-reflet 9s ease-in-out infinite; background-size: 260% 100%; }
@keyframes thr-reflet { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .thr-js :is(.thr-ref__visuel, .thr-galerie a):not(.thr-charge) { animation: none; background-image: none; } }

/* « THEOREMS en chiffres » : préfixe (« + de ») en petit devant le nombre */
.thr-chiffres__pre { font-size: .42em; font-weight: 600; letter-spacing: 0; vertical-align: .55em; margin-right: .1em; }

/* Fiche bâtisseur : « Dans nos références » après « À voir aussi », bien séparé des autres bâtisseurs */
.thr-bat__nosrefs { clear: both; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--thr-trait, rgba(127, 140, 160, .3)); }
.thr-bat__nosrefs h2 { margin-bottom: .3rem; }
.thr-bat__nosrefs-intro { margin: 0 0 1rem; opacity: .85; }

/* Pages prestations : références associées sur une seule rangée, sur toute la largeur */
.thr-refs-associees .thr-refs--compact { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
.thr-refs-associees .thr-refs--compact .thr-ref__titre { font-size: .92rem; }
.thr-refs-associees .thr-refs--compact .thr-ref__lieu { font-size: .8rem; }
@media (max-width: 991.98px) {
  .thr-refs-associees .thr-refs--compact { grid-auto-columns: minmax(13.5rem, 42%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
  .thr-refs-associees .thr-refs--compact > .thr-ref { scroll-snap-align: start; }
}
@media (max-width: 575.98px) { .thr-refs-associees .thr-refs--compact { grid-auto-columns: 78%; } }

/* Outils de calcul et formulaire de RDM : vignettes sur toute la largeur, 4 par rangée */
.com-content-article__body > ul.thr-outils-liste { max-width: none; }
.thr-outils-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .thr-outils-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .thr-outils-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .thr-outils-liste { grid-template-columns: 1fr; } }

/* Nos domaines : vignettes moins hautes (bandeau d'illustration réduit) */
.thr-domaine { padding: 1rem 1.25rem; }
.thr-domaine__lien .thr-prestas__dessin { aspect-ratio: auto; height: clamp(64px, 5.5vw, 90px); margin: 0 -.25rem .5rem; background-size: contain; }
.thr-domaine__lien .thr-domaine__photo { display: block; height: clamp(110px, 10vw, 150px); margin: -.25rem -.5rem .75rem; border-radius: 6px; overflow: hidden; }
.thr-domaine__lien .thr-domaine__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thr-domaine p { margin: .35rem 0 .75rem; }

/* Choix de la présentation : bouton « palette » et sa liste */
.thr-palette { position: relative; display: inline-flex; flex: none; }
.thr-palette__menu { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 1100; width: 16.5rem; max-height: min(70vh, 34rem); overflow-y: auto;
  padding: .6rem; border-radius: 12px; border: 1px solid rgba(127, 140, 160, .35); background: var(--card, #FFFFFF); color: var(--text, #1D2935);
  box-shadow: 0 18px 40px -12px rgba(8, 14, 26, .45); text-align: left; }
.thr-palette__menu[hidden] { display: none; }
.thr-palette__groupe { margin: .35rem .45rem .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.thr-palette__menu ul { list-style: none; margin: 0 0 .35rem; padding: 0; }
.thr-palette__menu li { margin: 0; }
.thr-palette__choix, .thr-palette__defaut { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .42rem .5rem; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.thr-palette__choix:hover, .thr-palette__choix:focus-visible, .thr-palette__defaut:hover, .thr-palette__defaut:focus-visible { background: rgba(127, 140, 160, .16); }
.thr-palette__choix:focus-visible, .thr-palette__defaut:focus-visible { outline: 2px solid var(--accent, var(--thr-accent, #C2410C)); outline-offset: -2px; }
.thr-palette__choix[aria-pressed="true"] { font-weight: 700; }
.thr-palette__choix[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-weight: 700; }
.thr-palette__pastille { flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid rgba(127, 140, 160, .55);
  background: linear-gradient(135deg, var(--thr-p-fond) 0 50%, var(--thr-p-accent) 50% 100%); }
.thr-palette__defaut { margin-top: .2rem; border-top: 1px solid rgba(127, 140, 160, .25); border-radius: 0 0 8px 8px; font-size: .85rem; opacity: .85; }
@media (max-width: 767.98px) { .thr-palette__menu { position: fixed; left: .75rem; right: .75rem; width: auto; } }

/* Documentation : sommaire des sous-rubriques, vignettes ou liste, sections */
.thr-docs-sommaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0 1rem; }
.thr-docs-sommaire__lien { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--border, var(--thr-trait)); border-radius: 10px;
  color: inherit; text-decoration: none; background: color-mix(in srgb, currentColor 4%, transparent); transition: border-color .2s ease, transform .2s ease; }
.thr-docs-sommaire__lien:hover, .thr-docs-sommaire__lien:focus-visible { border-color: var(--accent, var(--thr-accent, #C2410C)); transform: translateY(-2px); }
.thr-docs-sommaire__titre { font-weight: 700; font-size: 1.1rem; color: var(--accent, var(--thr-accent, #C2410C)); }
.thr-docs-sommaire__nb { font-size: .85rem; opacity: .75; }
.thr-docs-vues { display: flex; justify-content: flex-end; gap: .4rem; margin: .5rem 0 0; }
.thr-docs-section { margin-top: 2.75rem; }
.thr-docs-section h2 { margin-bottom: .35rem; }
.thr-docs-section h2 a { color: inherit; text-decoration: none; }
.thr-docs-section h2 a:hover { text-decoration: underline; }
.thr-docs-section__intro { max-width: 48rem; }
.thr-docs-section__intro p { margin: 0 0 .5rem; }
.thr-docs-section__suite { margin-top: -.5rem; font-weight: 600; }
.thr-docs__vide { font-style: italic; opacity: .75; }
.thr-docs { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.thr-ref__visuel--doc { background: color-mix(in srgb, currentColor 8%, transparent); }
.thr-ref__visuel--doc .thr-ref__page { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #FFFFFF; }
.thr-docu .thr-ref__lien:hover .thr-ref__page { transform: scale(1.03); }
.thr-ref__page { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
/* vue liste */
.thr-docs--liste .thr-docs { grid-template-columns: 1fr; gap: .6rem; }
.thr-docs--liste .thr-docu .thr-ref__lien { display: grid; grid-template-columns: 4.75rem 1fr; gap: 1rem; align-items: center; padding: .5rem; height: auto; }
.thr-docs--liste .thr-docu .thr-ref__visuel { aspect-ratio: 3 / 4; border-radius: 4px; }
.thr-docs--liste .thr-docu .thr-ref__statut, .thr-docs--liste .thr-docu .thr-ref__dessin { display: none; }
.thr-docs--liste .thr-docu .thr-ref__corps { padding: 0; }
.thr-docs--liste .thr-docu .thr-ref__extrait { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thr-docs--liste .thr-docu .thr-ref__suite { padding-top: .25rem; }

/* Liseuse de documents (intégrée à la page d'un document, ou en fenêtre depuis une liste) */
.thr-liseuse { margin: 1.5rem 0 2rem; border-radius: 10px; overflow: hidden; border: 1px solid rgba(127, 140, 160, .35); max-width: none !important; }
.thr-liseuse.thr-lis { height: min(84vh, 62rem); }
.thr-liseuse__attente { margin: 0; padding: 2rem; text-align: center; opacity: .75; }
.thr-lis { display: flex; flex-direction: column; position: relative; background: #3A3E45; color: #FFFFFF; }
.thr-lis__barre { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; padding: .5rem .75rem; background: #1E222A; color: #FFFFFF; font-size: .9rem; }
.thr-lis__titre { flex: 1 1 12rem; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr-lis__groupe { display: inline-flex; align-items: center; gap: .3rem; }
.thr-lis__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.thr-lis__btn:hover, .thr-lis__btn:focus-visible { background: rgba(255, 255, 255, .14); }
.thr-lis__btn:focus-visible, .thr-lis__num input:focus-visible, .thr-lis__defile:focus-visible { outline: 2px solid #FFB070; outline-offset: 1px; }
.thr-lis__btn--texte { font-size: .8rem; padding: 0 .65rem; }
.thr-lis__fermer { font-size: 1.4rem; }
.thr-lis__num input { width: 3.4rem; height: 2.1rem; padding: 0 .3rem; text-align: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px;
  background: rgba(255, 255, 255, .1); color: #FFFFFF; font: inherit; -moz-appearance: textfield; }
.thr-lis__num input::-webkit-inner-spin-button, .thr-lis__num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.thr-lis__total, .thr-lis__pct { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; opacity: .85; }
.thr-lis__defile { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: contain; }
.thr-lis__page { flex: none; position: relative; background: #FFFFFF; box-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.thr-lis__page:not(.thr-lis__page--prete)::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(127, 140, 160, .18) 50%, transparent 70%) 0 0 / 220% 100%; animation: thr-lueur 2.4s ease-in-out infinite; }
.thr-lis__page canvas { display: block; width: 100%; height: 100%; }
.thr-lis__etat { margin: 0; padding: .6rem .9rem; font-size: .9rem; }
.thr-lis__etat:empty { display: none; }
.thr-lis:not(.thr-lis--pret) .thr-lis__etat { position: absolute; left: 0; right: 0; top: 45%; text-align: center; }
.thr-lis--plein { height: 100vh !important; border-radius: 0; }
dialog.thr-lis-fenetre { width: min(1120px, 96vw); height: 94vh; height: 94dvh; max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; background: #1E222A; color: #FFFFFF; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
dialog.thr-lis-fenetre::backdrop { background: rgba(8, 12, 20, .74); }
.thr-lis-fenetre__corps { height: calc(100% - 2.4rem); }
.thr-lis-fenetre__fiche { display: flex; align-items: center; height: 2.4rem; padding: 0 .9rem; color: #FFD7B8; font-size: .9rem; }
.thr-lis-fenetre__fiche[hidden] { display: none; }
.thr-lis-fenetre__fiche[hidden] ~ * , dialog.thr-lis-fenetre:has(.thr-lis-fenetre__fiche[hidden]) .thr-lis-fenetre__corps { height: 100%; }
html.thr-lis-ouverte { overflow: hidden; }
.thr-liseuse-bouton { display: inline; padding: .1rem .5rem; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: var(--accent, var(--thr-accent, #C2410C));
  font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 599.98px) {
  dialog.thr-lis-fenetre { width: 100vw; height: 100dvh; border-radius: 0; }
  .thr-lis__barre { gap: .35rem .6rem; font-size: .85rem; }
  .thr-lis__titre { flex-basis: 100%; }
  .thr-liseuse.thr-lis { height: 78vh; }
}
@media (prefers-reduced-motion: reduce) { .thr-lis__page::before { animation: none; } .thr-ref__page { transition: none; } }
@media print {
  .thr-liseuse, dialog.thr-lis-fenetre { display: none !important; }
}

/* Actualités : sommaire de la rubrique, revue de presse et grands bâtisseurs à la suite des actualités du bureau */
.thr-actus-sommaire { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1.5rem; }
.thr-actus-titre { margin: .5rem 0 0; }
.thr-actus-section { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--border, var(--thr-trait)); }
.thr-actus-section h2 { margin-top: 0; }
.thr-actus-section__intro { max-width: 48rem; }
.thr-actus-section__suite { font-weight: 600; margin-top: 1rem; }
.thr-actus-presse { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.thr-actus-presse a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--border, var(--thr-trait)); border-radius: 10px;
  color: inherit; text-decoration: none; background: color-mix(in srgb, currentColor 4%, transparent); }
.thr-actus-presse a:hover, .thr-actus-presse a:focus-visible { border-color: var(--accent, var(--thr-accent, #C2410C)); }
.thr-actus-presse__source { font-size: .85rem; font-weight: 600; opacity: .8; }
.thr-actus-presse__titre { font-weight: 700; line-height: 1.3; }
.thr-actus-batisseurs { margin-top: 1rem; }
.thr-document > h1 { margin-bottom: .5rem; }
.thr-document__presentation { font-size: 1.25rem; margin-top: 0; }
.thr-document__texte { margin-top: 1rem; }

/* =====================================================================
   Version 1.22.2 (14/11/2026)
   ===================================================================== */
/* Accueil : avec la cinématique, le dessin de fond du bandeau ne doit jamais rester dessous (il apparaissait en double dans les présentations de nuit) */
html:root.thr-cine .container-banner { background-image: none !important; }
/* Transports exceptionnels : l'animation du convoi suffit, plus de dessin fixe en fond de page */
html:root .thr-dessin--convoi .container-component { background-image: none !important; }
/* animation du convoi : sur toute la largeur, la route se prolonge de part et d'autre du pont */
.com-content-article__body > figure.thr-convoi { max-width: none; }
.thr-convoi svg { max-width: none; overflow: hidden; }
.thr-convoi__route { stroke-width: 2.4; }
.thr-convoi__remblai { stroke-opacity: .28; stroke-width: 1; }
/* À propos : la tour Eiffel, dessin en hauteur à droite du texte d'introduction */
@media (min-width: 992px) {
  .thr-dessin--eiffel .container-component { background-image: url("../images/dessin-eiffel-graphite.svg"); background-size: auto 25rem; background-position: right 7% top 4.5rem; }
}

/* Version 1.22.3 — accueil sur grand écran : dessin du pont remonté (calé par user.js sur le bas du texte d'accroche), bandeau resserré,
   lien du bâtisseur ou de l'événement du jour en haut à droite du bandeau (le titre redevient le premier élément) */
@media (min-width: 992px) {
  html.thr-cine .thr-hero { position: relative; min-height: 0; padding-bottom: clamp(2.75rem, 4vw, 4rem); }
  .thr-hero > .thr-hero__texte { position: static; }
  .thr-hero .thr-decor-ruban { position: absolute; top: clamp(1rem, 1.6vw, 1.75rem); right: .5em; margin: 0; z-index: 2; }
  .thr-hero:has(.thr-decor-ruban) { padding-top: clamp(3.25rem, 2rem + 3vw, 4.75rem); }
}
@media (min-width: 992px) and (max-width: 1359.98px) { .thr-hero .thr-decor-ruban { right: 1.5em; } }

/* Version 1.22.4 — À propos : texte d'introduction plus large, tour Eiffel un peu plus petite ;
   accueil : moins de vide entre les boutons du bandeau et « Dernières opérations », chapeau sur une plus grande largeur */
@media (min-width: 992px) {
  html.thr-cine .thr-hero { padding-bottom: clamp(1rem, 1.6vw, 1.5rem); }
  .view-article .thr-defile, .thr-defile { margin-top: 1.25rem; }
}


/* =====================================================================
   Version 1.22.5 — largeur des textes : une seule règle sur tout le site.
   Le texte occupe toute la largeur du contenu. Sur une page à dessin (grand écran), le dessin est posé en haut à droite du texte :
   les lignes le contournent puis reprennent toute la largeur en dessous ; les blocs (grilles, encadrés, photos) commencent sous le dessin.
   Exceptions voulues : le bandeau d'accueil (le pont), le pied de page, les champs de formulaire.
   ===================================================================== */
html:root body :is(.com-content-article__body > p, .com-content-article__body > ul, .com-content-article__body > ol, .thr-contact__intro p, .blog-item p,
  .thr-references__intro p, .thr-accueil__chapeau, .thr-appel p, .thr-presse__intro, .thr-batisseurs__intro, .thr-docs-section__intro,
  .thr-actus-section__intro, .thr-refs--liste .thr-ref__resume, .thr-modele__note, .thr-admin) { max-width: none !important; }

/* dessin de chaque page, par encre (graphite ici ; lumière pour AURORE, craie pour les présentations de nuit : voir leurs feuilles) */
.thr-dessin--arc { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-arc-graphite.svg"); }
.thr-dessin--voutes { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-voutes-graphite.svg"); }
.thr-dessin--filaire { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-filaire-graphite.svg"); }
.thr-dessin--inspection { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-inspection-graphite.svg"); }
.thr-dessin--bowstring { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-bowstring-graphite.svg"); }
.thr-dessin--eiffel { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-eiffel-graphite.svg"); }
.thr-dessin--haubans { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/ouvrage-graphite.svg"); }
@media (min-width: 992px) {
  html:root .thr-dessin .container-component { background-image: none !important; }
  .thr-dessin .thr-references__intro { display: flow-root; }
  .thr-dessin :is(.com-content-article__body, .thr-references__intro)::before {
    content: ""; float: right; width: min(560px, 42%); aspect-ratio: 1600 / 560; margin: .25rem 0 1.25rem 2.5rem;
    background: var(--thr-dessin, none) no-repeat right top / contain; pointer-events: none; }
  .thr-dessin--eiffel .com-content-article__body::before { width: 12.5rem; aspect-ratio: 560 / 900; margin: -.5rem 4% 1.25rem 3rem; }
  .thr-dessin--convoi .com-content-article__body::before { content: none; }
  .thr-dessin .com-content-article__body > :is(div, ul[class], ol[class], figure, table, section, .thr-illus--droite) { clear: right; }
  .thr-dessin .com-content-article__body > .thr-illus--droite:first-child { margin-top: 0; }
}

/* =====================================================================
   Version 1.22.7 — Génie civil et bâtiment : bâtiment en construction et grue à tour (encre graphite ; lumière et craie dans leurs feuilles) ;
   pied de page : menu centré, mention de droits dessous
   ===================================================================== */
.thr-dessin--chantier { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-chantier-graphite.svg"); }
.container-footer .thr-menu-pied { justify-content: center; }
.container-footer .thr-pied__droits { grid-column: 1 / -1; margin: -1.25rem 0 0; text-align: center; font-size: .8125rem; opacity: .7; letter-spacing: .02em; }
/* bandeau d'accueil : bloc de texte et accroche sur 44 rem (1.22.8), pour garder l'accroche sur trois lignes dans toutes les présentations
   (le pont, calé par user.js sur la fin des lignes, se réduit d'autant) */
html:root body .thr-hero > *, html:root body .thr-hero__accroche { max-width: 44rem; }

/* =====================================================================
   Version 1.22.8 — page « Nos partenaires » : nuage de noms (sphère qui tourne avec user.js, nuage à plat sans script
   ou sans animation) ; couleur par catégorie. Lampe du ruban « Il y a … ans naissait … ».
   ===================================================================== */
.thr-nuage { --nuage-1: #B54708; --nuage-2: #175CD3; --nuage-3: #067647; --nuage-4: #6941C6; --nuage-5: #C01048; --nuage-6: #0E7090;
  display: grid; gap: 1.5rem; margin: 1.5rem 0 2rem; }
.thr-nuage--g1 { color: var(--nuage-1); } .thr-nuage--g2 { color: var(--nuage-2); } .thr-nuage--g3 { color: var(--nuage-3); }
.thr-nuage--g4 { color: var(--nuage-4); } .thr-nuage--g5 { color: var(--nuage-5); } .thr-nuage--g6 { color: var(--nuage-6); }
.thr-nuage__groupe:nth-of-type(6n+1) { --c: var(--nuage-1); } .thr-nuage__groupe:nth-of-type(6n+2) { --c: var(--nuage-2); }
.thr-nuage__groupe:nth-of-type(6n+3) { --c: var(--nuage-3); } .thr-nuage__groupe:nth-of-type(6n+4) { --c: var(--nuage-4); }
.thr-nuage__groupe:nth-of-type(6n+5) { --c: var(--nuage-5); } .thr-nuage__groupe:nth-of-type(6n+6) { --c: var(--nuage-6); }
html:root body .thr-nuage .thr-nuage__groupe h2 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--c); letter-spacing: .02em; }
.thr-nuage__groupe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.1rem; }
.thr-nuage__groupe li { color: var(--c); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.thr-nuage__groupe li strong { font-size: 1.4rem; font-weight: 700; }
/* sphère : listes gardées pour les lecteurs d'écran, légende cliquable, scène décorative */
.thr-nuage.is-sphere { display: block; }
.thr-nuage.is-sphere .thr-nuage__groupe { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.thr-nuage__legende { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 .5rem; }
.thr-nuage__cle { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border: 1px solid currentColor; border-radius: 999px;
  background: transparent; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.thr-nuage__cle::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.thr-nuage__cle[aria-pressed="true"] { background: color-mix(in srgb, currentColor 14%, transparent); }
.thr-nuage__cle:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.thr-nuage__scene { position: relative; height: clamp(22rem, 44vw, 36rem); overflow: hidden; user-select: none; touch-action: pan-y; cursor: grab; }
.thr-nuage__mot { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 700; line-height: 1.1; will-change: transform, opacity;
  font-size: clamp(.8rem, .55rem + .75vw, 1.15rem); transition: color .2s; }
.thr-nuage__scene .thr-nuage__mot { font-size: inherit; }
.thr-nuage__scene { font-size: clamp(.85rem, .6rem + .7vw, 1.2rem); }
.thr-nuage__mot.is-actif { opacity: 1 !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.thr-nuage__scene[data-groupe="1"] .thr-nuage__mot:not(.thr-nuage--g1), .thr-nuage__scene[data-groupe="2"] .thr-nuage__mot:not(.thr-nuage--g2),
.thr-nuage__scene[data-groupe="3"] .thr-nuage__mot:not(.thr-nuage--g3), .thr-nuage__scene[data-groupe="4"] .thr-nuage__mot:not(.thr-nuage--g4),
.thr-nuage__scene[data-groupe="5"] .thr-nuage__mot:not(.thr-nuage--g5), .thr-nuage__scene[data-groupe="6"] .thr-nuage__mot:not(.thr-nuage--g6) { color: var(--thr-trait, #98A2B3); filter: grayscale(1); }
.thr-partenaires__suite { text-align: center; }
.thr-nuage__aide { margin: .25rem 0 0; text-align: center; font-size: .8125rem; opacity: .75; }
@media (max-width: 767.98px) {
  .thr-nuage__groupe li { font-size: .95rem; }
  .thr-nuage__groupe li strong { font-size: 1.2rem; }
}

/* ruban du bâtisseur du jour : petite lampe qui s'allume */
.thr-decor-ruban__lampe { display: inline-block; width: 1.25em; height: 1.25em; margin: -.2em .45em -.2em -.15em; vertical-align: middle; color: #D97706; overflow: visible;
  animation: thr-lampe 1.4s ease .5s both; }
.thr-decor-ruban__lampe .thr-lampe__verre { fill: #FCD34D; fill-opacity: .55; }
.thr-decor-ruban__lampe .thr-lampe__rayons { opacity: .9; }
@keyframes thr-lampe { 0% { filter: none; } 30% { filter: drop-shadow(0 0 6px rgba(252, 196, 52, .95)); } 45% { filter: drop-shadow(0 0 1px rgba(252, 196, 52, .3)); } 100% { filter: drop-shadow(0 0 4px rgba(252, 196, 52, .7)); } }
@media (prefers-reduced-motion: reduce) { .thr-decor-ruban__lampe { animation: none; filter: drop-shadow(0 0 4px rgba(252, 196, 52, .7)); } }

/* =====================================================================
   Version 1.22.9 — liseuse : recherche dans le document (champ dans la barre, occurrences surlignées sur les pages)
   ===================================================================== */
.thr-lis__cherche label { display: flex; margin: 0; }
.thr-lis__cherche input { width: 12rem; height: 2.1rem; padding: 0 .6rem 0 1.95rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; color: #FFFFFF; font: inherit;
  background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-opacity='.75' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat .55rem center / .95rem; }
.thr-lis__cherche input::placeholder { color: rgba(255, 255, 255, .62); }
.thr-lis__cherche input:focus-visible { outline: 2px solid #FFB070; outline-offset: 1px; }
.thr-lis__cherche input::-webkit-search-cancel-button { filter: invert(1); }
.thr-lis__res { min-width: 4.4rem; font-size: .8rem; opacity: .85; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.thr-lis__res:empty { min-width: 0; }
.thr-lis__btn:disabled { opacity: .38; cursor: default; background: transparent; }
.thr-lis__marques { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.thr-lis__marque { position: absolute; border-radius: 2px; background: rgba(255, 213, 0, .36); }
.thr-lis__marque.is-courant { background: rgba(255, 140, 0, .38); box-shadow: 0 0 0 2px rgba(240, 110, 0, .9); }
@media (max-width: 599.98px) {
  .thr-lis__cherche { flex: 1 1 100%; }
  .thr-lis__cherche label { flex: 1 1 auto; }
  .thr-lis__cherche input { width: 100%; }
}

/* Version 1.22.9 — pages à dessin (grand écran) : le dessin remonte à hauteur du titre ; le titre s'arrête avant le dessin (il passe à la ligne
   si besoin). Le contenu qui suit (filtres des références, cartes du contact…) remonte d'autant. */
@media (min-width: 992px) {
  .thr-dessin:not(.thr-dessin--convoi) :is(.com-content-article, .thr-blogcartes, .com-content-category-blog, .contact) h1 { max-width: calc(100% - min(560px, 42%) - 2.5rem); }
  .thr-dessin :is(.com-content-article__body, .thr-references__intro)::before { margin-top: -4.3rem; }
  .thr-dessin--eiffel .com-content-article__body::before { margin-top: -5.05rem; }
}
/* Calculs de structures complexes : coupe d'un pont caisson, flux de cisaillement de torsion (encre graphite ; lumière et craie dans leurs feuilles) */
.thr-dessin--caisson { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-caisson-graphite.svg"); }
.thr-prestas__dessin--caisson { background-image: url("../images/dessin-caisson-graphite.svg"); }
@media (min-width: 992px) { .thr-dessin--caisson .com-content-article__body::before { aspect-ratio: 1180 / 450; } }
/* Documentation : niveau d'un cours sur sa carte, ligne de présentation (auteur, niveau, pages) sur la fiche */
.thr-docu__niveau { display: block; margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--thr-accent, #C2410C); }
.thr-doc-meta { font-size: .875rem; opacity: .8; }
/* positions des pages mesurées depuis la zone de défilement (et non depuis la liseuse entière, barre comprise) : aller à une page ou à un résultat tombe juste, même avec une barre haute (téléphone) */
.thr-lis__defile { position: relative; }

/* =====================================================================
   Version 1.22.10 — Documentation : recherche, filtre, tri et pagination des listes de documents
   ===================================================================== */
.thr-docs-outils { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin: 1.75rem 0 .25rem; }
.thr-docs-outils[hidden] { display: none; }
.thr-docs-outils__cherche { flex: 1 1 18rem; margin: 0; }
.thr-docs-outils__cherche input { width: 100%; height: 2.6rem; padding: 0 .9rem 0 2.4rem; border: 1px solid var(--border, var(--thr-trait, #CBD2DC)); border-radius: 8px;
  background: var(--card, #FFFFFF) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237F8CA0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat .8rem center / 1rem;
  color: inherit; font: inherit; }
.thr-docs-outils__choix { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-size: .8rem; font-weight: 600; opacity: .95; }
.thr-docs-outils__choix select { height: 2.6rem; min-width: 11rem; padding: 0 2rem 0 .7rem; border: 1px solid var(--border, var(--thr-trait, #CBD2DC)); border-radius: 8px;
  background-color: var(--card, #FFFFFF); color: inherit; font: inherit; font-size: .95rem; font-weight: 400; }
.thr-docs-outils :is(input, select):focus-visible { outline: 2px solid var(--accent, var(--thr-accent, #C2410C)); outline-offset: 1px; }
.thr-docs-outils__nb { flex: 1 0 100%; margin: .1rem 0 0; font-size: .875rem; opacity: .8; }
.thr-docs > [hidden] { display: none !important; }
.thr-docs-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin: 1.75rem 0 .5rem; }
.thr-docs-pages[hidden] { display: none; }
.thr-docs-pages__btn { min-width: 2.4rem; }
html:root body .thr-docs-pages .thr-docs-pages__btn[aria-current="page"] { background: var(--accent, var(--thr-accent, #C2410C)) !important; border-color: var(--accent, var(--thr-accent, #C2410C)) !important; color: #FFFFFF !important; opacity: 1; }
.thr-docs-pages__btn:disabled:not([aria-current]) { opacity: .4; cursor: default; }
.thr-docs-pages__trou { padding: 0 .2rem; opacity: .6; }
.thr-docs-outils + .thr-docs-vues { margin-top: -.5rem; }
/* vue liste : vignettes de documents au format paysage */
.thr-docs--liste .thr-docu .thr-ref__lien { grid-template-columns: 8rem 1fr; }
.thr-docs--liste .thr-docu .thr-ref__visuel { aspect-ratio: 8 / 5; }
@media (max-width: 599.98px) { .thr-docs-outils__choix { flex: 1 1 45%; } .thr-docs-outils__choix select { min-width: 0; width: 100%; } .thr-docs--liste .thr-docu .thr-ref__lien { grid-template-columns: 6rem 1fr; } }
@media (max-width: 599.98px) {
  .thr-docs-sommaire { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .thr-docs-sommaire__lien { padding: .7rem .8rem; }
  .thr-docs-sommaire__titre { font-size: .95rem; }
}

/* =====================================================================
   Version 1.23.0 — quiz : tableau des records (onglets, classement) et inscription facultative en fin de partie
   ===================================================================== */
.thr-quiz__tableau h2, .thr-quiz__inscription h2 { margin-top: 0; }
.thr-quiz__onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
.thr-quiz__onglet { padding: .35rem .85rem; border: 1px solid rgba(127, 140, 160, .45); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.thr-quiz__onglet[aria-selected="true"] { border-color: var(--accent, var(--thr-accent, #C2410C)); background: color-mix(in srgb, var(--accent, var(--thr-accent, #C2410C)) 16%, transparent); }
.thr-quiz__onglet:focus-visible { outline: 2px solid var(--accent, var(--thr-accent, #C2410C)); outline-offset: 2px; }
.thr-quiz__classement { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; counter-reset: none; }
.thr-quiz__classement li { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; }
.thr-quiz__classement li:nth-child(odd) { background: rgba(127, 140, 160, .08); }
.thr-quiz__classement li.thr-quiz__moi { box-shadow: inset 0 0 0 2px var(--accent, var(--thr-accent, #C2410C)); }
.thr-quiz__rang { font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.thr-quiz__nom { display: flex; flex-direction: column; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.thr-quiz__nom small { font-weight: 400; font-size: .8rem; opacity: .75; }
.thr-quiz__classement strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.thr-quiz__vide { margin: 0; font-style: italic; opacity: .8; }
.thr-quiz__inscription { margin: 1.5rem 0; padding: 1.2rem 1.4rem; border-radius: 14px; border: 1px dashed var(--accent, var(--thr-accent, #C2410C)); }
.thr-quiz__inscription label { display: block; font-weight: 600; margin-bottom: .35rem; }
.thr-quiz__inscription label span { font-weight: 400; opacity: .75; }
.thr-quiz__ligne { display: flex; flex-wrap: wrap; gap: .6rem; }
.thr-quiz__ligne input { flex: 1 1 14rem; max-width: 22rem; height: 2.75rem; padding: 0 .8rem; border: 1px solid rgba(127, 140, 160, .6); border-radius: 8px; background: var(--card, #FFFFFF); color: inherit; font: inherit; }
.thr-quiz__ligne input:focus-visible { outline: 2px solid var(--accent, var(--thr-accent, #C2410C)); outline-offset: 1px; }
.thr-quiz__etat:empty { display: none; }
.thr-quiz__etat { margin: .6rem 0 0; font-weight: 600; }
.thr-quiz__resultat .thr-quiz__tableau { margin-top: 1rem; }


/* =====================================================================
   1.23.1 - téléphone : pied de page, références, nuage, logo
   ===================================================================== */
/* Dernières opérations : la photo à gauche, le texte à droite (la règle des zones tactiles remettait le lien en bloc) */
.thr-pied__col .thr-pied__ops a { display: flex; align-items: center; gap: .85rem; min-height: 60px; padding-block: 0; line-height: inherit; }
.thr-pied__ops picture { flex: none; display: block; }
.thr-pied__ops .thr-pied__op { flex: 1 1 0; }
/* logo : toujours dans ses proportions. Quand la place manque, il rapetisse en entier au lieu de se comprimer en largeur ;
   sur les écrans étroits, les commandes de l'en-tête se resserrent et seule l'autre langue reste affichée. */
@media (max-width: 991.98px) {
  .container-header .navbar-brand, .container-header .brand-logo { display: block; min-width: 0; max-width: 100%; }
  .container-header .navbar-brand img { display: block; width: 100%; max-width: 133px; height: 36px; max-height: 36px; object-fit: contain; object-position: left center; }
}
@media (max-width: 439.98px) {
  .container-header { padding: .4rem .5rem !important; gap: .15rem; }
  .container-header .container-nav, .container-header .container-nav .container-search { gap: 0 !important; }
  .container-header .mod-languages ul.lang-inline li.lang-active { display: none; }
  .container-header .thr-recherche-ouvrir, .container-header .thr-bascule, .container-header .thr-bascule-place { width: 36px; height: 40px; }
  .container-header .navbar-toggler { min-width: 40px; }
}
/* Références : sur téléphone, les prestations en liste déroulante et le choix de présentation sur toute la largeur */
.thr-champ--prestation { display: none; }
@media (max-width: 767.98px) {
  .thr-filtres .thr-puces, .thr-filtres #thr-f-prestations { display: none; }
  .thr-champ--prestation { display: flex; flex: 1 1 100%; }
  .thr-filtres .thr-champ { flex: 1 1 100%; }
  .thr-filtres .thr-champ select, .thr-filtres .thr-champ input { min-width: 0; width: 100%; }
  .thr-filtres__ligne--bilan { gap: .5rem .75rem; }
  .thr-vues { display: flex; flex: 1 1 100%; margin-left: 0; }
  .thr-vue { flex: 1 1 0; min-width: 0; padding: .5rem .15rem; font-size: .8125rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .thr-vue[data-vue="tableau"] { display: none; }   /* le tableau à six colonnes n'est pas lisible sur un téléphone */
  .thr-nuage__scene { height: 24rem; font-size: .74rem; }
  .thr-nuage__legende { gap: .35rem; }
  html:root body .thr-nuage .thr-nuage__cle { padding: .2rem .6rem; font-size: .78rem; gap: .35rem; }
}

/* =====================================================================
   1.23.2 - « Toutes nos références » en bouton, à côté de « Mettre en pause » : même style, bordure vert foncé
   ===================================================================== */
:root { --thr-vert-bouton: #1F7A4A; }
html:root .thr-defile__tete a.thr-defile__tout { display: inline-block; text-decoration: none; border-color: var(--thr-vert-bouton); line-height: inherit; }
html:root .thr-defile__tete a.thr-defile__tout:hover { background-color: color-mix(in srgb, var(--thr-vert-bouton) 14%, transparent); text-decoration: none; }

/* =====================================================================
   1.24.0 - formulaires de contact : pièces jointes
   ===================================================================== */
.thr-pj__facultatif { font-weight: 400; opacity: .7; }
.thr-pj__zone { position: relative; display: flex; align-items: center; justify-content: center; min-height: 5.5rem; padding: 1rem;
  border: 1.5px dashed var(--thr-trait); border-radius: 6px; text-align: center; transition: border-color .2s, background-color .2s; }
.thr-pj__zone:hover, .thr-pj__zone.is-survol, .thr-pj__zone:focus-within { border-color: var(--thr-bleu); background-color: color-mix(in srgb, var(--thr-bleu) 7%, transparent); }
.thr-pj__zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.thr-pj__zone:focus-within { outline: 2px solid var(--thr-bleu); outline-offset: 2px; }
.thr-pj__invite { pointer-events: none; font-size: .95rem; }
.thr-pj__invite::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -.2em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-9.2 9.2a6 6 0 01-8.5-8.5l9.2-9.2a4 4 0 015.7 5.7l-9.2 9.2a2 2 0 01-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-9.2 9.2a6 6 0 01-8.5-8.5l9.2-9.2a4 4 0 015.7 5.7l-9.2 9.2a2 2 0 01-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.thr-pj__zone { flex-direction: column; gap: .3rem; }
.thr-pj__zone.a-fichiers::after { content: attr(data-nb); font-size: .8rem; opacity: .75; pointer-events: none; }
.thr-pj__invite--tactile { display: none; }
@media (hover: none) and (pointer: coarse) { .thr-pj__invite { display: none; } .thr-pj__invite--tactile { display: inline; } }
.thr-pj__aide { font-size: .85rem; color: color-mix(in srgb, currentColor 82%, transparent); margin: .4rem 0 0; }
.thr-pj__liste { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.thr-pj__liste li { display: flex; align-items: center; gap: .75rem; padding: .4rem .6rem; border: 1px solid var(--thr-trait); border-radius: 4px; font-size: .9rem; }
.thr-pj__nom { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thr-pj__taille { flex: none; opacity: .7; font-variant-numeric: tabular-nums; }
.thr-pj__retirer { flex: none; background: none; border: 1px solid var(--thr-trait); border-radius: 3px; padding: .15rem .55rem; font: inherit; font-size: .8rem; color: inherit; cursor: pointer; }
.thr-pj__retirer:hover { border-color: var(--thr-pj-erreur); color: var(--thr-pj-erreur); }
:root { --thr-pj-erreur: #b42318; }
.thr-pj__erreur { margin: .5rem 0 0; font-size: .875rem; color: var(--thr-pj-erreur); }

/* 1.24.1 - outils, résultats sur téléphone : les désignations gardent plus de la moitié de la largeur ; les valeurs passent
   à la ligne si besoin et la précision entre parenthèses (abscisse, rapport L/…) va sur sa propre ligne */
@media (max-width: 575.98px) {
  .thr-outil__resultats th[scope="row"] { width: 56%; padding-left: 0; }
  .thr-outil__resultats td { white-space: normal; padding-right: 0; }
  .thr-outil__resultats td small { display: block; font-weight: 400; }
}

/* 1.24.2 - blocs des prestations et des domaines sur téléphone : habillage. L'image reste à gauche, le titre et la liste
   l'entourent puis reprennent toute la largeur sous l'image (au lieu d'une colonne étroite à droite de l'image). */
@media (max-width: 575.98px) {
  .thr-bloc { display: block; }
  .thr-bloc::after { content: ""; display: table; clear: both; }
  .thr-bloc__img { float: left; width: 42%; max-width: 11rem; margin: .25rem 1.4rem .6rem 0; }
  .thr-bloc__corps { display: block; }
  .com-content-article .thr-bloc ul { overflow: visible; }   /* sinon la liste reste en colonne à côté de l'image */
}

/* ------------------------------------------------------------------
 * 1.24.7 - Développement de logiciels : encarts des logiciels (accroche, boutons) et fenêtre de demande
 * (démonstration ou plaquette). La fenêtre garde le même aspect dans toutes les présentations (bandeau bleu nuit
 * des plaquettes, corps clair), pour rester lisible quel que soit le thème.
 * ------------------------------------------------------------------ */
.thr-bloc__accroche { margin: 0 0 .6rem; font-weight: 600; }
.thr-bloc__note { margin: .6rem 0 0; font-size: .875rem; opacity: .8; }
.thr-bloc__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.thr-bloc__actions .thr-bouton { padding: .5rem 1.05rem; font-size: .95rem; }
.thr-bouton-ligne, .thr-bouton-ligne:hover { display: inline-block; padding: calc(.5rem + 1px) calc(1.05rem + 1px); border: 1px solid var(--thr-orange); border-radius: 2px; background: transparent;
  color: inherit; font-family: var(--thr-titres); font-weight: 600; font-size: .95rem; text-decoration: none; }
.thr-bouton-ligne:hover { background: color-mix(in srgb, var(--thr-orange) 16%, transparent); }
.thr-bouton-ligne::before { content: "↓"; margin-right: .4rem; }

dialog.thr-demande { width: min(34rem, 94vw); max-height: 94vh; max-height: 94dvh; padding: 0; border: 0; border-radius: 10px; overflow: auto;
  background: #fff; color: #1d2935; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); font-family: var(--thr-texte); }
dialog.thr-demande::backdrop { background: rgba(8, 14, 24, .72); }
.thr-demande__tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; background: #13294b; color: #fff;
  border-bottom: 3px solid #f4b083; }
.thr-demande__titre { flex: 1; margin: 0; font-family: var(--thr-titres); font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: #fff; }
.thr-demande__fermer { font-size: 1.6rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; padding: 0 .2rem; }
.thr-demande__corps { padding: 1rem 1.2rem 1.2rem; }
.thr-demande__intro { margin: 0 0 .9rem; color: #3b4a59; }
.thr-demande__champ { margin: 0 0 .7rem; }
.thr-demande__champ label { display: block; margin: 0 0 .2rem; font-size: .9rem; font-weight: 600; color: #1d2935; }
/* champs : aspect imposé (!important), les présentations stylent les champs de saisie du site à leur façon */
dialog.thr-demande .thr-demande__champ :is(input, textarea) { display: block; width: 100%; margin: 0; padding: .5rem .65rem !important; border: 1px solid #9fb0c2 !important;
  border-radius: 4px !important; background: #fff !important; color: #1d2935 !important; -webkit-text-fill-color: #1d2935 !important; box-shadow: none !important;
  font: inherit; font-size: 1rem; line-height: 1.4; opacity: 1 !important; }
dialog.thr-demande .thr-demande__champ :is(input, textarea)::placeholder { color: #7a8794 !important; -webkit-text-fill-color: #7a8794 !important; opacity: 1; }
dialog.thr-demande .thr-demande__champ :is(input, textarea):focus { outline: 2px solid #2e74b5 !important; outline-offset: 1px; border-color: #2e74b5 !important; }
.thr-demande__piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thr-demande__captcha { margin: .4rem 0 .6rem; color: #1d2935; }
.thr-demande__note { margin: .4rem 0 .8rem; font-size: .82rem; color: #4d5b69; }
.thr-demande__note a { color: #1f5f99; }
.thr-demande__erreur { margin: 0 0 .8rem; padding: .55rem .75rem; border-radius: 4px; background: #fdecea; color: #8a1c13; font-size: .92rem; }
.thr-demande__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.thr-demande__envoyer, .thr-demande__annuler { padding: .6rem 1.2rem; border-radius: 2px; font-family: var(--thr-titres); font-weight: 600; font-size: 1rem; cursor: pointer; }
.thr-demande__envoyer { border: 2px solid #f4b083; background: #f4b083; color: #15314d; }
.thr-demande__envoyer:hover { background: #f7c4a1; border-color: #f7c4a1; }
.thr-demande__envoyer:disabled { opacity: .7; cursor: progress; }
.thr-demande__annuler { border: 2px solid #b8c4d1; background: transparent; color: #1d2935; }
.thr-demande__merci { padding: .4rem 0; }
.thr-demande__merci p { margin: 0 0 1rem; color: #1d2935; }
.thr-demande__merci-titre { font-family: var(--thr-titres); font-size: 1.3rem; font-weight: 600; color: #15314d !important; }
@media (max-width: 575.98px) {
  dialog.thr-demande { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .thr-bloc__actions { gap: .5rem; }
}
@media print { .thr-bloc__actions { display: none !important; } }

/* ------------------------------------------------------------------
 * 1.24.8 - Développement de logiciels : dessin propre (un écran : arborescence du projet, tablier maillé aux éléments finis,
 * charges, diagramme des moments, échelle de couleurs) ; deux autres propositions dans les images (dessin-logiciel-itineraire-*,
 * dessin-logiciel-code-*). Boutons des encarts : même style pour la démo et la plaquette, flèche seulement pour la plaquette.
 * ------------------------------------------------------------------ */
.thr-dessin--logiciel { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-logiciel-ecran-graphite.svg"); }
/* 1.24.9 : dessin A (écran) retenu, réduit de 30 % (largeur 392 px au plus, 29,4 % du texte, au lieu de 560 px et 42 %) */
@media (min-width: 992px) {
  .thr-dessin--logiciel .com-content-article__body::before { width: min(392px, 29.4%); aspect-ratio: 1100 / 520; }
  .thr-dessin--logiciel .com-content-article h1 { max-width: calc(100% - min(392px, 29.4%) - 2.5rem); }
}
.thr-bouton-ligne:not([data-thr-demande="plaquette"])::before { content: none; }
/* ------------------------------------------------------------------
 * 1.24.13 - Études d'exécution : dessin animé « du plan d'exécution à l'ouvrage » (proposition B retenue) : plan de
 * ferraillage d'une semelle sur pieux (coupe, repères, nomenclature, cartouche), cage d'armatures montée barre par barre en
 * perspective, béton, puis tampon « Bon pour exécution ». Propositions A (encorbellements successifs) et C (poussage d'un tablier,
 * moment calculé à chaque position) gardées en réserve : images dessin-execution-encorbellement-* et dessin-execution-poussage-*.
 * Générateur : outils-migration/croquis_execution.py.
 * ------------------------------------------------------------------ */
.thr-dessin--execution { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-execution-ferraillage-graphite.svg"); }
/* 1.24.14 - Inspections détaillées : dessin animé du relevé des désordres d'une pile (proposition B retenue : vue développée,
 * fissures et ouvertures, épaufrure, efflorescences, photos repérées, fissuromètre à la loupe, légende, classe IQOA, préconisations).
 * Propositions A (visite à la nacelle négative) et C (parc d'ouvrages) en réserve : images dessin-inspection-visite-* et dessin-inspection-parc-*.
 * Générateur : outils-migration/croquis_inspection.py. */
.thr-dessin--releve { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-inspection-releve-graphite.svg"); }
/* 1.25.13 : Programme national Ponts, parc d'ouvrages classé IQOA (dessin propre à la page) */
.thr-dessin--parc { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-inspection-parc-graphite.svg"); }
/* 1.25.29 : un dessin par page. Prestations : pont-route en treillis métallique à membrure supérieure courbe (1.25.30 : diagonales en bleu, briques en rouge brique) ;
 * Infrastructures et ouvrages d'art : pont caisson à trois travées et inertie parabolique (voussoirs par encorbellements successifs).
 * L'arc reste à la Maîtrise d'œuvre, les voûtes aux Diagnostics. Générateur : outils-migration/croquis_scenes.py (treillis, viaduc). */
.thr-dessin--treillis { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-treillis-graphite.svg?v=1.25.30"); }
.thr-dessin--viaduc { --thr-dessin: url("/media/templates/site/cassiopeia_theorems/images/dessin-viaduc-graphite.svg"); }

/* 1.24.19 - logiciels : capture d'écran au format d'origine (sans recadrage). 1.24.21 : plus d'agrandissement au clic (inciter à demander la plaquette).
 * 1.24.20 - habillage à toutes les largeurs, comme les autres encarts sur téléphone : la capture à gauche, le titre, l'accroche
 * et la liste l'entourent puis reprennent toute la largeur dessous (plus de colonne vide sous l'image). */
html:root .thr-bloc--logiciel { display: block; }
html:root .thr-bloc--logiciel::after { content: ""; display: table; clear: both; }
html:root .thr-bloc--logiciel .thr-bloc__corps { display: block; }
html:root .com-content-article .thr-bloc--logiciel ul { overflow: visible; }
html:root .thr-bloc--logiciel .thr-bloc__visuel { float: left; width: 42%; max-width: 15rem; margin: .3rem 1.4rem .7rem 0; display: block;
  border-radius: 6px; overflow: hidden; border: 1px solid var(--thr-trait); box-shadow: 0 6px 20px rgba(10, 20, 40, .18); line-height: 0; }
html:root .thr-bloc--logiciel .thr-bloc__visuel .thr-bloc__img { width: 100%; height: auto; max-width: none; aspect-ratio: auto; object-fit: contain; border-radius: 0;
  float: none; margin: 0; }
@media (max-width: 575.98px) {
  html:root .thr-bloc--logiciel .thr-bloc__visuel { width: 42%; max-width: 11rem; margin: .25rem 1.1rem .6rem 0; }
}


/* 1.24.20 - sélecteur de langue : mini drapeaux (France, Royaume-Uni) à la place de FR / EN ; le nom de la langue reste lu par les
 * lecteurs d'écran et s'affiche au survol */
.mod-languages ul.lang-inline a:has(.thr-drapeau) { display: inline-flex; align-items: center; justify-content: center; padding: .45rem .45rem; line-height: 0; opacity: .8; }
.mod-languages ul.lang-inline a:has(.thr-drapeau):hover, .mod-languages ul.lang-inline li.lang-active a:has(.thr-drapeau) { opacity: 1; }
.mod-languages .thr-drapeau { display: block; width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .28); }

/* 1.24.21 - logiciels : nom en dégradé (orange vers bleu, couleurs adaptées aux présentations claires et sombres ; AURORE : dégradé des
 * grands titres, voir colors_aurore.css). Bloc ajusté au texte pour que le dégradé couvre tout le nom. */
html:root .thr-bloc--logiciel h2 { display: inline-block; vertical-align: top; background-image: linear-gradient(90deg, #E0661C, #2F6FE0);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@supports (color: light-dark(#000, #fff)) {
  html:root .thr-bloc--logiciel h2 { background-image: linear-gradient(90deg, light-dark(#E0661C, #FF8A3D), light-dark(#2F6FE0, #7AA7FF)); }
}
@media (forced-colors: active) { html:root .thr-bloc--logiciel h2 { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; } }

/* 1.24.21 - vignettes des documents et des cours : haut de la première page du PDF, sous un calque pastel transparent à 80 %
 * (opacité 20 %), en alternant cinq couleurs. L'étiquette « Lecture en ligne » reste au-dessus du calque. */
.thr-docu { --thr-calque: #7FB2F0; }
.thr-docu:nth-child(5n+2) { --thr-calque: #7FD1A8; }
.thr-docu:nth-child(5n+3) { --thr-calque: #F59BB0; }
.thr-docu:nth-child(5n+4) { --thr-calque: #F6C35B; }
.thr-docu:nth-child(5n+5) { --thr-calque: #B39BF0; }
.thr-ref__visuel--doc::after { content: ""; position: absolute; inset: 0; background: var(--thr-calque, transparent); opacity: .2; pointer-events: none; }
.thr-ref__visuel--doc .thr-ref__statut { z-index: 1; top: auto; bottom: .6rem; }   /* en bas : le haut de la page reste lisible */
@media (forced-colors: active) { .thr-ref__visuel--doc::after { display: none; } }

/* 1.24.22 - en-tête sur une seule ligne en grand écran : la zone de saisie de la recherche est remplacée par une loupe qui mène à la page
 * de recherche (le champ reste dans la page, sans script il reste accessible). Menu un peu resserré pour tenir sur la ligne avec le logo,
 * la loupe, les drapeaux, le quiz et les boutons de présentation. Téléphone et tablette : inchangé (loupe qui ouvre le champ sous l'en-tête). */
.thr-recherche-lien { display: none; }
@media (min-width: 992px) {
  .container-header search form.mod-finder { display: none; }
  .container-header search { margin-right: 0; }
  .thr-recherche-lien { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; margin-right: .3rem; padding: 0; border: 1px solid transparent;
    border-radius: 8px; color: inherit; opacity: .8; text-decoration: none; }
  .thr-recherche-lien:hover, .thr-recherche-lien:focus-visible { opacity: 1; border-color: currentColor; color: inherit; }
  .container-header .container-nav { align-items: center; align-content: center; column-gap: .4rem; }
  .container-header .container-nav .container-search { margin-left: 0; }
}
@media (min-width: 992px) {
  html:root body .container-header .metismenu.mod-menu .metismenu-item.level-1 { padding-left: .55rem; padding-right: .55rem; margin-left: 0; margin-right: 0; }
  html:root body .container-header .metismenu > li:first-child { margin-left: 0; }
}
@media (min-width: 992px) and (max-width: 1365.98px) {
  html:root body .container-header .mod-menu > li > a, html:root body .container-header .mod-menu > li > .mod-menu__heading { font-size: .9375rem; }
  html:root body .container-header .metismenu.mod-menu .metismenu-item.level-1 { padding-left: .45rem; padding-right: .45rem; }
  .container-header .thr-bascule, .container-header .thr-bascule-place { margin-left: .15rem; }
  .container-header .mod-languages ul.lang-inline a:has(.thr-drapeau) { padding-left: .35rem; padding-right: .35rem; }
}
@media (min-width: 1200px) and (max-width: 1279.98px) {
  html:root body .container-header .mod-menu > li > a, html:root body .container-header .mod-menu > li > .mod-menu__heading { font-size: .875rem; }
  html:root body .container-header .metismenu.mod-menu .metismenu-item.level-1 { padding-left: .38rem; padding-right: .38rem; }
}

/* 1.24.25 - Références, présentation « Nuage » : titres courts ou miniatures sur une sphère (moteur repris du nuage des partenaires).
 * Une couleur par prestation principale ; teintes foncées ici, claires pour les présentations sombres (_nuit_commun.css, colors_aurore.css). */
.thr-nuage-refs { --nuage-1: #B54708; --nuage-2: #175CD3; --nuage-3: #067647; --nuage-4: #6941C6; --nuage-5: #C01048; --nuage-6: #0E7090;
  --nuage-7: #A15C07; --nuage-8: #4E5BA6; --nuage-9: #3B7C0F; margin: 1rem 0 0; }
html:root body .thr-nuage-refs .thr-nuage-refs--t1 { color: var(--nuage-1); } html:root body .thr-nuage-refs .thr-nuage-refs--t2 { color: var(--nuage-2); }
html:root body .thr-nuage-refs .thr-nuage-refs--t3 { color: var(--nuage-3); } html:root body .thr-nuage-refs .thr-nuage-refs--t4 { color: var(--nuage-4); }
html:root body .thr-nuage-refs .thr-nuage-refs--t5 { color: var(--nuage-5); } html:root body .thr-nuage-refs .thr-nuage-refs--t6 { color: var(--nuage-6); }
html:root body .thr-nuage-refs .thr-nuage-refs--t7 { color: var(--nuage-7); } html:root body .thr-nuage-refs .thr-nuage-refs--t8 { color: var(--nuage-8); }
html:root body .thr-nuage-refs .thr-nuage-refs--t9 { color: var(--nuage-9); }
.thr-nuage-refs__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.2rem; margin: 0 0 .4rem; }
.thr-nuage-refs__barre .thr-nuage__legende { margin: 0; }
/* 1.24.26 : choix Photos / Mots sous le nuage ; photos réparties sur tout le rectangle de la scène (débord permis au survol, sur grand écran) */
.thr-nuage-refs__pied { display: flex; justify-content: center; margin: .75rem 0 0; }
html:root body .thr-nuage-refs__pied .thr-vues { margin: 0 auto; }
@media (min-width: 768px) { .thr-nuage-refs { overflow-x: clip; } .thr-nuage-refs__scene[data-mode="photos"] { overflow: visible; } }
html:root body .thr-nuage-refs .thr-nuage__cle { font-size: .8125rem; padding: .25rem .7rem; }
.thr-nuage-refs__scene { position: relative; height: clamp(26rem, 46vw, 38rem); overflow: hidden; user-select: none; touch-action: pan-y; cursor: grab;
  font-size: clamp(.85rem, .62rem + .6vw, 1.15rem); }
.thr-nuage-refs__el { position: absolute; left: 0; top: 0; text-decoration: none; will-change: transform, opacity; }
.thr-nuage-refs__mot { white-space: nowrap; font-weight: 700; line-height: 1.15; padding: .05em .2em; }
.thr-nuage-refs__mot:is(:hover, .is-actif) { opacity: 1 !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; z-index: 1000 !important; }
.thr-nuage-refs__photo { width: 7.2rem; }
.thr-nuage-refs__photo img, .thr-nuage-refs__vide { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px;
  border: 2px solid currentColor; box-shadow: 0 6px 16px rgba(10, 20, 40, .28); background: rgba(127, 140, 160, .18);
  transform-origin: 50% 100%; transition: transform .25s ease; }
.thr-nuage-refs__vide { display: flex; align-items: center; justify-content: center; padding: .3rem; text-align: center; font-size: .72rem; font-weight: 700; line-height: 1.2;
  background: color-mix(in srgb, currentColor 14%, transparent); }
.thr-nuage-refs__nom { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: .35rem; white-space: nowrap; font-size: .8rem; font-weight: 700;
  padding: .15rem .55rem; border-radius: 999px; background: rgba(15, 23, 42, .9); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.thr-nuage-refs__photo:is(:hover, .is-actif) { opacity: 1 !important; z-index: 1000 !important; }
.thr-nuage-refs__photo:is(:hover, .is-actif) :is(img, .thr-nuage-refs__vide) { transform: scale(1.9); }
.thr-nuage-refs__photo:is(:hover, .is-actif) .thr-nuage-refs__nom { opacity: 1; }
.thr-nuage-refs__el:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.thr-nuage-refs__scene[data-prestation]:not([data-prestation=""]) .thr-nuage-refs__el { filter: grayscale(1); opacity: .14 !important; }
.thr-nuage-refs__scene[data-prestation="1"] .thr-nuage-refs__el[data-prestation="1"], .thr-nuage-refs__scene[data-prestation="2"] .thr-nuage-refs__el[data-prestation="2"],
.thr-nuage-refs__scene[data-prestation="3"] .thr-nuage-refs__el[data-prestation="3"], .thr-nuage-refs__scene[data-prestation="4"] .thr-nuage-refs__el[data-prestation="4"],
.thr-nuage-refs__scene[data-prestation="5"] .thr-nuage-refs__el[data-prestation="5"], .thr-nuage-refs__scene[data-prestation="6"] .thr-nuage-refs__el[data-prestation="6"],
.thr-nuage-refs__scene[data-prestation="7"] .thr-nuage-refs__el[data-prestation="7"], .thr-nuage-refs__scene[data-prestation="8"] .thr-nuage-refs__el[data-prestation="8"],
.thr-nuage-refs__scene[data-prestation="9"] .thr-nuage-refs__el[data-prestation="9"] { filter: none; opacity: 1 !important; }
/* mouvements réduits : mots et photos simplement rangés */
.thr-nuage-refs__scene.is-plat { height: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.1rem; overflow: visible; cursor: auto; padding: 1rem 0; }
.thr-nuage-refs__scene.is-plat .thr-nuage-refs__el { position: relative; transform: none !important; }
.thr-nuage-refs__scene.is-plat .thr-nuage-refs__photo:is(:hover, .is-actif) :is(img, .thr-nuage-refs__vide) { transform: none; }
@media (max-width: 767.98px) {
  .thr-nuage-refs__scene { height: 26rem; font-size: .68rem; }
  .thr-nuage-refs__barre .thr-nuage__legende { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; padding-bottom: .25rem; scrollbar-width: thin; }
  .thr-nuage-refs__barre .thr-nuage__cle { flex: 0 0 auto; }
  .thr-nuage-refs__photo { width: 4.8rem; }
  .thr-nuage-refs__photo:is(:hover, .is-actif) :is(img, .thr-nuage-refs__vide) { transform: scale(1.6); }
  html:root body .thr-nuage-refs .thr-nuage__cle { font-size: .74rem; padding: .18rem .55rem; }
}
@media (prefers-reduced-motion: reduce) { .thr-nuage-refs__photo :is(img, .thr-nuage-refs__vide) { transition: none; } }

/* ==================================================================
   1.25.1 - Programme national Ponts : test d'éligibilité des communes, étapes numérotées, galerie légendée,
   questions fréquentes, renvoi depuis les autres prestations. Couleurs tirées du texte (currentColor) : lisible
   dans toutes les présentations, claires ou sombres.
   ================================================================== */
.thr-pnp-test { margin: 1.25rem 0 1.75rem; padding: 1.25rem 1.4rem 1.1rem; max-width: 48rem; border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); }
.thr-pnp-test__label { display: block; font-weight: 600; margin-bottom: .45rem; }
.thr-pnp-test__champ { width: 100%; font-size: 1.0625rem; padding: .7rem .9rem; }
.thr-pnp-test__aide, .thr-pnp-test__source { font-size: .875rem; opacity: .8; margin: .55rem 0 0; }
.thr-pnp-test__resultat { margin-top: .9rem; }
.thr-pnp-test__resultat:empty { display: none; }
.thr-pnp-test__compte { margin: 0 0 .5rem; font-weight: 600; }
.thr-pnp-test__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.thr-pnp-test__liste li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; padding: .55rem .75rem; border-radius: 8px;
  background: color-mix(in srgb, #16a34a 11%, transparent); }
.thr-pnp-test__oui { flex: none; width: 1.5rem; height: 1.5rem; margin-top: .1rem; border-radius: 50%; display: grid; place-items: center;
  background: #16a34a; color: #fff; font-weight: 700; font-size: .8rem; line-height: 1; }
.thr-pnp-test__detail { display: block; font-size: .85rem; opacity: .8; }
.thr-pnp-test__non { margin: 0; padding: .7rem .9rem; border-radius: 8px; background: color-mix(in srgb, #d97706 13%, transparent); }

.thr-pnp-chiffres { margin: 1.75rem 0 2.25rem; }
.thr-pnp-chiffres .thr-chiffres li { padding: 1.15rem 1.1rem; }
.thr-pnp-chiffres .thr-chiffres__n { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); }
@media (max-width: 575px) {
  .thr-pnp-chiffres .thr-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .thr-pnp-chiffres .thr-chiffres li { padding: .9rem .8rem; }
  .thr-pnp-chiffres .thr-chiffres__l { font-size: .84rem; }
}
.thr-chiffres__suf { font-size: .55em; font-weight: 600; margin-left: .12em; letter-spacing: 0; }

.thr-blocs--etapes { counter-reset: thr-etape; }
.thr-blocs--etapes > .thr-bloc { counter-increment: thr-etape; }
.thr-blocs--etapes > .thr-bloc::before { content: counter(thr-etape); flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid;
  place-items: center; font-weight: 700; font-size: 1.125rem; color: #fff; background: var(--accent, var(--thr-bleu)); }
.thr-bloc h3 { font-size: 1.1875rem; margin: 0 0 .45rem; }
.thr-blocs--etapes .thr-bloc p { margin: 0 0 .6rem; font-size: 1rem; line-height: 1.5; }
.thr-blocs--etapes .thr-bloc__role { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: .2rem 0 .3rem !important;
  color: var(--accent, var(--thr-bleu)); }

.thr-galerie--legendes { grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - .5rem), 14.5rem), 1fr)); gap: 1rem .75rem; }
.thr-galerie--legendes > li { display: flex; flex-direction: column; gap: .4rem; }
.thr-galerie__legende { font-size: .875rem; line-height: 1.35; opacity: .85; }

.thr-faq { margin: 0; padding: .85rem 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.thr-faq:last-of-type { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.thr-faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style-position: outside; }
.thr-faq summary::marker { color: var(--accent, var(--thr-bleu)); }
.thr-faq > p { margin: .6rem 0 0; max-width: 46rem; }

.thr-pnp-renvoi { margin: 1.25rem 0; padding: .9rem 1.15rem; border-radius: 10px; border-left: 4px solid var(--accent, var(--thr-bleu));
  background: color-mix(in srgb, currentColor 5%, transparent); }
.thr-pnp-sources { margin-top: 2rem; font-size: .8125rem; line-height: 1.5; opacity: .75; max-width: 52rem; }

/* =====================================================================
   1.25.3 - Feuilles de calculs : pages enrichies (sommaire, exemple traité, méthode, références, voir aussi) et tableau comparatif
   ===================================================================== */
.thr-sommaire { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 1rem 0 1.25rem; font-size: .9rem; }
.thr-sommaire__titre { font-weight: 600; margin-right: .25rem; opacity: .8; }
.thr-sommaire a { padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--thr-trait); color: inherit; text-decoration: none; }
.thr-sommaire a:hover, .thr-sommaire a:focus-visible { border-color: var(--thr-accent, #FF8A3D); background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 12%, transparent); }
.thr-feuille[id], .thr-feuille-page h2[id], .thr-feuilles-hub h2[id] { scroll-margin-top: 6.5rem; }

.thr-feuille-page, .thr-feuilles-hub { --thr-f-ok: #16803d; --thr-f-ko: #d4183d; margin-top: 2.5rem; }
.thr-feuille-page > h2, .thr-feuilles-hub > h2 { margin-top: 2.6rem; }
.thr-feuille-page > p, .thr-feuille-page > ul, .thr-feuilles-hub > p, .thr-exemple > p { max-width: 72ch; }
.thr-exemple > h3 { margin: 1.8rem 0 .6rem; font-size: 1.2rem; }
.thr-exemple__corps { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 1fr); gap: 1.25rem 2rem; align-items: start; margin: 1rem 0 .5rem; }
@media (max-width: 900px) { .thr-exemple__corps { grid-template-columns: 1fr; } }
.thr-exemple .thr-tableau { margin: .5rem 0 1rem; }
.thr-exemple .thr-tableau caption { caption-side: top; text-align: left; font-weight: 600; padding: .55rem .65rem .4rem; color: var(--text, inherit); opacity: .9; }
.thr-exemple__donnees th[scope="row"] { font-weight: 600; white-space: nowrap; width: 1%; padding-right: 1rem; }
@media (max-width: 575px) { .thr-exemple__donnees th[scope="row"] { white-space: normal; } }
.thr-exemple__figure { margin: 0; padding: 1rem; border: 1px solid var(--thr-trait); border-radius: .6rem; background: color-mix(in srgb, currentColor 3%, transparent); }
.thr-exemple__dessin svg { display: block; width: 100%; height: auto; max-height: 21rem; overflow: visible; }
.thr-exemple__figure figcaption { margin-top: .6rem; font-size: .85rem; line-height: 1.4; opacity: .85; }
.thr-exemple__verdict { margin: .4rem 0 .9rem; padding: .7rem 1rem; border-radius: .5rem; border-left: 4px solid; background: color-mix(in srgb, currentColor 4%, transparent); max-width: 52rem; }
.thr-exemple__verdict--ok { border-color: var(--thr-f-ok); }
.thr-exemple__verdict--ko { border-color: var(--thr-f-ko); }
.thr-exemple__etat { margin: 0; font-weight: 700; font-size: 1.1rem; }
.thr-exemple__verdict--ok .thr-exemple__etat { color: var(--thr-f-ok); }
.thr-exemple__verdict--ko .thr-exemple__etat { color: var(--thr-f-ko); }
.thr-exemple__taux { margin: .2rem 0 0; font-size: .95rem; }
.thr-exemple__chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; margin: 0 0 1rem; max-width: 52rem; }
.thr-exemple__chiffres > div { border: 1px solid var(--thr-trait); border-radius: .5rem; padding: .5rem .7rem; }
.thr-exemple__chiffres dt { font-size: .8rem; opacity: .75; }
.thr-exemple__chiffres dd { margin: 0; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.thr-exemple__chiffres dd span { font-weight: 400; font-size: .85rem; opacity: .75; }
.thr-exemple .thr-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.thr-exemple__verifs th[scope="row"] { font-weight: 400; }
.thr-exemple__verifs td { font-weight: 600; }
.thr-exemple__ok { color: var(--thr-f-ok); white-space: nowrap; }
.thr-exemple__ko { color: var(--thr-f-ko); white-space: nowrap; }
.thr-exemple__info { font-weight: 400; opacity: .75; }
.thr-exemple__actions { display: flex; flex-wrap: wrap; gap: .6rem .8rem; margin: 1.2rem 0 .5rem; max-width: none !important; }
.thr-exemple__mini { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.thr-exemple__mini a { font-size: .85rem; white-space: nowrap; padding: .2rem .65rem; border-radius: 999px; text-decoration: none; color: inherit;
  border: 1px solid color-mix(in srgb, var(--thr-accent, #FF8A3D) 70%, transparent); }
.thr-exemple__mini a:hover, .thr-exemple__mini a:focus-visible { background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 16%, transparent); }
.thr-exemple__cas td { font-size: .92rem; }

.thr-methode { list-style: none; counter-reset: thr-methode; margin: 1rem 0; padding: 0; display: grid; gap: .3rem; max-width: 60rem; }
.thr-methode > li { counter-increment: thr-methode; position: relative; padding: .6rem 0 .8rem 3.1rem; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.thr-methode > li::before { content: counter(thr-methode); position: absolute; left: 0; top: .6rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--accent, var(--thr-bleu)); }
.thr-methode h3 { font-size: 1.08rem; margin: .25rem 0 .35rem; }
.thr-methode p { margin: 0 0 .4rem; }
.thr-methode__formules { margin: .5rem 0 .2rem !important; padding: .5rem .8rem; border-left: 3px solid var(--thr-accent, #FF8A3D);
  background: color-mix(in srgb, currentColor 4%, transparent); font-variant-numeric: tabular-nums; font-size: .95rem; line-height: 1.6; }
.thr-textes-ref li + li { margin-top: .45rem; }

.thr-voir-aussi { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; max-width: none !important; }
@media (max-width: 991.98px) { .thr-voir-aussi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .thr-voir-aussi { grid-template-columns: 1fr; } }
.thr-voir-aussi li { margin: 0; border: 1px solid var(--thr-trait); border-radius: .6rem; background: color-mix(in srgb, currentColor 4%, transparent); }
.thr-voir-aussi a { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; height: 100%; color: inherit; text-decoration: none; border-radius: .6rem; }
.thr-voir-aussi a:hover, .thr-voir-aussi a:focus-visible { background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 10%, transparent); }
.thr-voir-aussi strong { color: var(--thr-accent, #FF8A3D); }
.thr-voir-aussi span { font-size: .9rem; color: var(--text2, inherit); }

.thr-feuilles-comparatif table { min-width: 46rem; }
.thr-feuilles-comparatif th[scope="row"] a { font-weight: 600; }
.thr-feuilles-comparatif td, .thr-feuilles-comparatif th { font-size: .92rem; }
@media (max-width: 575.98px) {
  .thr-exemple__verifs th:last-child, .thr-exemple__verifs td:last-child { display: none; }
  .thr-exemple .thr-num { white-space: normal; }
  html:root body .thr-exemple :is(.thr-exemple__verifs, .thr-exemple__donnees) :is(th, td) { font-size: .8rem; padding: .45rem .3rem; }
  .thr-exemple__cas table { min-width: 36rem; }
}
/* bouton secondaire de l'exemple (note PDF) : contour, dans toutes les présentations */
html:root body .thr-exemple__actions a.thr-bouton--discret { background: transparent !important; color: var(--text, inherit) !important; box-shadow: none !important;
  border: 1.5px solid color-mix(in srgb, var(--thr-accent, #FF8A3D) 75%, transparent) !important; filter: none !important; }
html:root body .thr-exemple__actions a.thr-bouton--discret::before { content: none !important; }
html:root body .thr-exemple__actions a.thr-bouton--discret:hover { background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 14%, transparent) !important; }

/* =====================================================================
   1.25.4 - Outils : pages enrichies (lot 2) : exemples des outils, tableaux de résultats, figures
   ===================================================================== */
[data-outil] { scroll-margin-top: 6.5rem; }
.thr-exemple__groupe th { font-weight: 700; font-size: .85rem; letter-spacing: .02em; padding-top: .8rem !important;
  color: var(--thr-accent, #FF8A3D); border-bottom-color: color-mix(in srgb, var(--thr-accent, #FF8A3D) 40%, transparent) !important; }
.thr-exemple__resultats th[scope="row"] { font-weight: 400; }
.thr-exemple__resultats td { font-weight: 600; }
.thr-exemple__expr { font-variant-numeric: tabular-nums; font-weight: 600; }
.thr-exemple__figure--large { margin: 1rem 0 .5rem; }
.thr-exemple__figure--large .thr-exemple__dessin svg { max-height: none; }
.thr-exemple__figure--large .thr-exemple__dessin svg + svg { margin-top: .5rem; }
.thr-exemple__figure--papier { background: #fff; color: #10151d; }
.thr-exemple__figure--papier figcaption { color: #3a4556; opacity: 1; }
.thr-exemple__dessin img { display: block; width: auto; max-width: 100%; height: auto; max-height: 30rem; margin: 0 auto; }
.thr-outil-page > .thr-tableau.thr-feuilles-comparatif td { font-size: .9rem; }
.thr-sur { text-decoration: overline; text-decoration-thickness: 1px; text-underline-offset: 0; }

/* =====================================================================
   1.25.5 - Outils : pages allégées (exemple court, méthode repliée)
   ===================================================================== */
.thr-outil-page--sobre { margin-top: 2.5rem; }
.thr-outil-page--sobre > h2 { margin-top: 2.2rem; }
.thr-outil-page--sobre .thr-exemple > p, .thr-outil-page--sobre .thr-exemple__texte > p { max-width: 64ch; }
.thr-exemple__texte > p:first-child { margin-top: 0; }
.thr-exemple__texte .thr-exemple__chiffres { margin: .9rem 0; }
.thr-plus { margin: 1.6rem 0 .5rem; border: 1px solid var(--thr-trait); border-radius: .6rem; background: color-mix(in srgb, currentColor 3%, transparent); max-width: 60rem; }
.thr-plus > summary { cursor: pointer; padding: .75rem 1rem; font-weight: 600; }
.thr-plus > summary::marker { color: var(--accent, var(--thr-bleu)); }
.thr-plus__corps { padding: 0 1rem .9rem; font-size: .95rem; }
.thr-plus__corps > p { margin: .5rem 0; }
.thr-plus__corps ul { margin: .2rem 0 .6rem; }
.thr-plus__titre { font-weight: 600; margin-bottom: .2rem !important; }
.thr-exemple__corps > * { min-width: 0; }
@media (max-width: 900px) { .thr-exemple__corps { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   1.25.9 - Photo principale des fiches de références : dimensions déclarées (width/height) pour réserver sa place ;
   la hauteur reste calculée d'après la largeur (sauf présentation magazine, qui fixe la sienne)
   ===================================================================================================== */
.thr-fiche__visuel img { height: auto; }
/* Transports exceptionnels : place du convoi animé réservée sous le premier paragraphe tant que le script ne l'a pas dessiné
   (figure insérée après le chargement : la page sautait de 255 px). Hauteur = marges de la figure + largeur × 230 / 1340. */
html.thr-js body:has([data-convoi-ici]) .com-content-article__body:not(:has(.thr-convoi)) > p:first-of-type { margin-bottom: calc(3.5rem + 17.164%); }

/* =====================================================================
   1.25.10 - Catalogues : index des éléments (encadré replié sous le catalogue) et éléments trouvés par la recherche du site
   ===================================================================================================== */
.ct-index { margin-top: 1.5rem; }
.ct-index__nb { font-weight: 400; opacity: .75; font-size: .9em; }
.ct-index__groupe { margin: .35rem 0 .6rem !important; font-size: .9rem; line-height: 1.7; }
.ct-index__groupe a { white-space: nowrap; }
.thr-cat-resultats { margin: 1.2rem 0 1.6rem; padding: .9rem 1.1rem; border: 1px solid var(--thr-trait); border-left: 4px solid var(--thr-accent, #FF8A3D);
  border-radius: .5rem; background: color-mix(in srgb, currentColor 3%, transparent); max-width: 60rem; }
.thr-cat-resultats h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.thr-cat-resultats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.thr-cat-resultats li span { font-size: .9rem; opacity: .8; }
.thr-cat-resultats__plus { font-size: .9rem; opacity: .75; }
#catalogues tr.thr-cat-cible > * { background: color-mix(in srgb, var(--thr-accent, #FF8A3D) 14%, transparent); }

/* 1.25.13 - arrivée sur une page sans saut de l'en-tête (téléphone et tablette) : la place de la loupe, ajoutée par le script, est
   réservée dès l'affichage ; sinon les drapeaux et les boutons glissaient de 36 à 40 px vers la gauche. */
@media (max-width: 991.98px) { .container-header search { min-width: 40px; min-height: 40px; } }
@media (max-width: 439.98px) { .container-header search { min-width: 36px; } }

/* 1.25.13 - vignettes dessinées (actualités, documents, références sans photo) : fond fixe, ni lueur de chargement ni reflet
   (la lueur, prévue pour l'attente d'une photo, balayait ces vignettes sans fin). Le dessin lui-même ne change pas. */
.thr-js .thr-ref__visuel--dessin:not(.thr-charge) { animation: none; background-size: auto; }

/* 1.25.13 - date des articles (Actualités) : le gris « atténué » imposé par la classe text-muted restait sombre sur les fonds sombres ;
   elle prend le gris de la présentation, lisible sur fond clair comme sur fond sombre. */
html:root body .article-info.text-muted, html:root body .article-info.text-muted time { color: var(--thr-gris, #5B6475) !important; }

/* 1.25.18 - Références : la vue d'arrivée (vignettes, nuage de photos ou de noms) est choisie par le script selon la provenance ; la
   liste reste invisible jusque-là (sa place est gardée), sinon les vignettes apparaissaient une image avant le nuage. Filet de
   sécurité : visible au bout de 2 s si le script ne s'exécute pas. */
html.thr-js .thr-refs[data-choix]:not(.thr-refs--pret) { visibility: hidden; animation: thr-refs-pret 0s 2s forwards; }
@keyframes thr-refs-pret { to { visibility: visible; } }


/* =====================================================================
   Version 1.25.20 (18/11/2026)
   ===================================================================== */
/* Quiz : encarts « Le défi du jour » et « Vos records » moins hauts (marges réduites ; bouton du défi à droite du texte) */
.thr-quiz__defi, .thr-quiz__records-bloc { margin: 1rem 0; padding: .85rem 1.2rem; }
.thr-quiz__defi h2, .thr-quiz__records-bloc h2 { margin-bottom: .3rem; font-size: 1.15rem; }
.thr-quiz__defi p { margin: 0; }
.thr-quiz__defi p:has(.thr-quiz__go), .thr-quiz__defi .thr-quiz__fait { margin-top: .6rem; }
.thr-quiz__records-bloc .thr-quiz__aide { margin: .35rem 0 0; }
@media (min-width: 576px) {
  .thr-quiz__defi:has(.thr-quiz__go) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; align-items: center; align-content: center; }
  .thr-quiz__defi:has(.thr-quiz__go) > h2 { grid-column: 1; grid-row: 1; }
  .thr-quiz__defi:has(.thr-quiz__go) > p:not(:has(.thr-quiz__go)) { grid-column: 1; grid-row: 2; }
  .thr-quiz__defi:has(.thr-quiz__go) > p:has(.thr-quiz__go) { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
/* Pied de page : liens du menu en dégradé, orange à gauche vers bleu à droite sur toute la rangée (mêmes couleurs que « THEOREMS »
   dans le titre du quiz et que les noms des logiciels) ; le lien survolé ou de la page en cours passe en blanc. Le dégradé est
   porté par la liste et découpé à la forme du texte des liens (background-clip: text) ; présentation Paint (pied clair) : teintes
   foncées, voir colors_paint.css. */
html:root body .container-footer .thr-menu-pied { background-image: linear-gradient(90deg, #FF8A3D 16%, #FFB27A 38%, #B9A7FF 62%, #7AA7FF 84%);
  -webkit-background-clip: text; background-clip: text; }
html:root body .container-footer .thr-menu-pied .nav-item a { color: transparent; -webkit-text-fill-color: transparent; opacity: 1; text-decoration-color: transparent; }
html:root body .container-footer .thr-menu-pied .nav-item a:is(:hover, :focus-visible, [aria-current="page"]) { -webkit-text-fill-color: #FFFFFF; color: #FFFFFF; text-decoration-color: var(--thr-orange, #FF8A3D); }
@media (forced-colors: active) {
  html:root body .container-footer .thr-menu-pied { background: none; }
  html:root body .container-footer .thr-menu-pied .nav-item a { color: LinkText; -webkit-text-fill-color: LinkText; }
}
/* Actualités, page 1 : « à la une » façon mosaïque (blog_cartes.php) : la plus récente en grande carte sur deux tiers de la largeur
   et deux rangées, les deux suivantes en demi-cartes à droite (titre et date, sans extrait), puis la grille habituelle.
   Tablette : grande carte sur toute la largeur, demi-cartes côte à côte ; téléphone : une colonne, comme avant. */
html:root .thr-ref--une .thr-ref__titre { font-size: 1.375rem; line-height: 1.22; }
.thr-ref--demi .thr-ref__extrait { display: none; }
@media (min-width: 768px) {
  .thr-refs--une { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thr-refs--une > .thr-ref--une { grid-column: 1 / -1; }
  .thr-ref--une .thr-ref__visuel { aspect-ratio: 2 / 1; }
}
@media (min-width: 992px) {
  .thr-refs--une { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thr-refs--une > .thr-ref--une { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .thr-ref--une .thr-ref__visuel { flex: 1 1 auto; aspect-ratio: auto; min-height: 18rem; }
  html:root .thr-ref--une .thr-ref__titre { font-size: 1.625rem; }
  .thr-ref--une .thr-ref__extrait { font-size: 1.0625rem; max-width: 52rem; }
  html:root .thr-ref--demi .thr-ref__titre { font-size: 1.0625rem; }
}

/* =====================================================================
   Version 1.25.21 (19/11/2026)
   ===================================================================== */
/* Quiz, page d'accueil du quiz : espacements resserrés entre les encarts et à l'intérieur (Tableau des records, Partie libre) */
.thr-quiz__accueil > .thr-quiz__bloc { margin: 0 0 1rem; padding: .85rem 1.2rem; }
.thr-quiz__accueil > .thr-quiz__bloc > :last-child { margin-bottom: 0; }
.thr-quiz__accueil > .thr-quiz__bloc h2 { margin-bottom: .45rem; }
.thr-quiz__accueil .thr-quiz__tableau .thr-quiz__onglets { margin-bottom: .6rem; }
.thr-quiz__accueil .thr-quiz__tableau .thr-quiz__aide { margin: .4rem 0 0; }
.thr-quiz__accueil > .thr-quiz__note { margin: 0 0 .75rem; }
/* Accueil : espaces resserrés au-dessus de « Dernières opérations » (84 → 52 px) et entre le défilé et le paragraphe
   de présentation (92 → 44 px) */
.container-banner:has(.thr-hero) { margin-bottom: .75rem; }
.container-top-a .thr-defile { margin-top: .375rem; }   /* 1.25.25 : 50 px sous le bandeau */
/* 1.25.24 : réservé à la page d'accueil (celle qui a le bandeau .thr-hero) ; le paragraphe de présentation y est supprimé, le
   premier titre (« Nos prestations ») monte à sa place. Les autres pages qui ont un chapeau gardent leurs marges d'origine. */
body:has(.thr-hero) .container-component main { margin-top: 0; }
body:has(.thr-hero) .com-content-article__body > :first-child { margin-top: .375rem; }   /* 1.25.25 : 50 px sous le défilé */

/* =====================================================================
   Version 1.25.22 (19/11/2026)
   ===================================================================== */
/* « Dernières opérations » en cartes fixes renouvelées par un damier (modes « cascade », par défaut, et « simultane » ;
   le mode « defilement » garde la bande qui défile, règles ci-dessus). Cinq cartes sur grand écran, quatre, trois puis deux ;
   hauteur constante (titre sur trois lignes, lieu et années sur une ligne) : le renouvellement ne décale jamais la page. */
.thr-defile--damier .thr-defile__fenetre { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.thr-defile--damier .thr-defile__piste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: auto; animation: none; }
.thr-defile--damier .thr-defile__piste li { width: auto; min-width: 0; }
@media (max-width: 1199.98px) {
  .thr-defile--damier .thr-defile__piste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thr-defile--damier .thr-defile__piste li:nth-child(n+5) { display: none; }
}
@media (max-width: 991.98px) {
  .thr-defile--damier .thr-defile__piste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .thr-defile--damier .thr-defile__piste li:nth-child(n+4) { display: none; }
}
@media (max-width: 639.98px) {
  .thr-defile--damier .thr-defile__piste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .thr-defile--damier .thr-defile__piste li:nth-child(n+3) { display: none; }
}
.thr-defile__visuel { display: block; position: relative; overflow: hidden; border-radius: 2px; }
.thr-defile--damier .thr-defile__titre { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: 3.9em; }
.thr-defile--damier .thr-defile__lieu { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.5em; }
.thr-defile--damier .thr-defile__annee { min-height: calc(1.5em + .3rem); }
.thr-defile--damier :is(.thr-defile__titre, .thr-defile__lieu, .thr-defile__annee) { transition: opacity .22s ease; }
.thr-defile--damier .thr-defile--sortie :is(.thr-defile__titre, .thr-defile__lieu, .thr-defile__annee) { opacity: 0; }
.thr-defile--damier .thr-defile__piste a.thr-defile--fondu { opacity: .15; }
.thr-defile--damier .thr-defile__piste a { transition: opacity .22s ease; }
/* tuiles du damier : au-dessus de la photo, sans interaction ; dévoilées une à une par le script */
.thr-defile__damier { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.thr-defile__damier > span { position: absolute; display: block; background-repeat: no-repeat; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .thr-defile--damier .thr-defile__pause { display: inline-block; }
}

/* =====================================================================
   Version 1.25.26 (19/11/2026)
   ===================================================================== */
/* Accueil, tuiles des prestations : Études d'exécution et Création de logiciels métiers prennent les dessins retenus pour leurs
   pages (ferraillage, écran de logiciel) ; encres lumière et craie dans colors_aurore.css et _nuit_commun.css. */
.thr-prestas__dessin--ferraillage { background-image: url("../images/dessin-execution-ferraillage-graphite.svg"); }
.thr-prestas__dessin--logiciel { background-image: url("../images/dessin-logiciel-ecran-graphite.svg"); }

/* =====================================================================
   Version 1.25.27 (19/11/2026)
   ===================================================================== */
/* Outils › Catalogues : sous le catalogue (élargi en 1.25.21), l'index, l'exemple et « Contenu, méthode et références » prennent
   toute la largeur, comme le catalogue (les autres pages d'outils gardent leurs largeurs de lecture). */
.com-content-article__body:has(> .thr-catalogues) :is(.thr-plus, .thr-exemple > p, .thr-exemple__texte > p, .thr-exemple__chiffres, .thr-faq > p, .thr-methode) { max-width: none; }

/* =====================================================================
   Version 1.25.28 (19/11/2026)
   ===================================================================== */
/* « Dernières opérations » : bouton de pause réduit à une icône (deux barres en lecture, triangle en pause), bulle d'aide
   immédiate au survol et au focus clavier (le libellé exact est aussi lu par les lecteurs d'écran via aria-label). */
.thr-defile__tete .thr-defile__pause { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; line-height: 1; flex: 0 0 auto; }
.thr-defile__icone { width: .875rem; height: .875rem; fill: currentColor; }
.thr-defile__pause .thr-defile__icone--lecture,
.thr-defile__pause[aria-pressed="true"] .thr-defile__icone--pause { display: none; }
.thr-defile__pause[aria-pressed="true"] .thr-defile__icone--lecture { display: block; }
/* 1.25.31 : la bulle d'aide du bouton de pause est désormais celle de tout le site (.thr-bulle, js/user.js initBulles). */

/* =====================================================================
   Version 1.25.31 (19/11/2026)
   ===================================================================== */
/* Infobulles du site (js/user.js, initBulles) : une seule bulle en position fixe, au-dessus de l'élément survolé ou atteint
   au clavier (au-dessous s'il manque de place), sombre bordée de clair pour rester lisible sur les présentations claires et sombres. */
.thr-bulle { position: fixed; left: 0; top: 0; z-index: 2147483000; width: max-content; max-width: min(22rem, calc(100vw - 16px));
  padding: .3rem .55rem; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .16); background: #111827; color: #FFFFFF;
  font-size: .75rem; font-weight: 500; line-height: 1.3; text-align: center; letter-spacing: normal; text-transform: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28); pointer-events: none; opacity: 0; transform: translateY(3px);
  transition: opacity .12s ease, transform .12s ease; }
.thr-bulle--dessous { transform: translateY(-3px); }
.thr-bulle.on { opacity: 1; transform: none; }
.thr-bulle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .thr-bulle { transition: none; transform: none; } }
