/* Dossiers thématiques: cadre de lecture (sommaire, pager, bandeau). Le contenu des vues est stylé par
   dossier.css, généré à l'import et cantonné à .hti-dossier. Chargé après lui: ses variables l'emportent. */

/* Pleine largeur: pas de colonne latérale d'article sur une page de dossier. */
body.hti-dossier-page .column-lg-35 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
body.hti-dossier-page .column-lg-13 { display: none !important; }
body.hti-dossier-page .card--with-marg { padding-left: 0; padding-right: 0; background: transparent; box-shadow: none; }
body.hti-dossier-page .card__title, body.hti-dossier-page .card__note { display: none; }

.hti-dossier {
	--bleu: #044362;
	--orange: #ff5c31;
	--fond: #eaf0f7;
	--filet: #d3dfea;
	--top: 1.5rem;
	--side: 17rem;
	font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
	color: #1f3a4a;
	text-align: left;
	max-width: 80rem;
	margin: 0 auto;
}
/* Le thème stylise des éléments nus (h1, p, a, header…) : sans ce rattrapage, ils l'emportent sur l'héritage
   que dossier.css suppose (ex. titre de couverture sombre sur fond sombre). :where() garde la spécificité
   basse: les règles de classe du dossier gardent la main. */
.hti-dossier.hti-dossier :where(h1, h2, h3, h4, h5, h6) { color: inherit; font-family: inherit; }
.hti-dossier :where(p, li, dt, dd, td, th, a, figcaption, summary, span, div) { color: inherit; font-family: inherit; }
.hti-dossier :where(p, li, dd, td, th) { font-size: inherit; text-align: left; }
.hti-dossier :where(header, section, article, aside, nav, figure, table, ul, ol, dl) { background: transparent; }
.hti-dossier :where(h1, h2, h3, h4) { clear: none; }
/* style.css du thème colore tout `.wp-site-blocks header` (0,1,1): il faut plus fort que :where(). */
.hti-dossier .view header { background: transparent; color: inherit; }
.hti-dossier .hd-nav li { list-style: none; }

/* Titres sur fonds sombres: jamais la couleur de titre du thème. */
.hti-dossier .cover h1, .hti-dossier .cover .cover-q, .hti-dossier .callout.arb :where(h1, h2, h3, h4, p, li) { color: #fff; }

/* Bandeau « Dossier »: rubrique + lien vers les autres dossiers, tout en haut. */
.hti-dossier .hd-topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--orange); }
.hti-dossier .hd-topbar-label { font: 700 .78rem "Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hti-dossier .hd-topbar-link { font: 600 .82rem "Montserrat", sans-serif; color: var(--bleu); text-decoration: none; }
.hti-dossier .hd-topbar-link::after { content: " \2192"; }
.hti-dossier .hd-topbar-link:hover { text-decoration: underline; }

/* Tableaux: jamais coupés lettre à lettre (le dossier d'origine suppose un écran plus large que la colonne
   de lecture); si le tableau est trop large, le conteneur défile. */
.hti-dossier .view table :is(th, td) { overflow-wrap: break-word !important; word-break: normal !important; hyphens: none !important; }
.hti-dossier .view :is(.table-wrap, .grid-table-wrap) { overflow-x: auto !important; max-width: 100%; }
.hti-dossier .view :is(#table-criteres, #table-hebergeurs) { display: table !important; inline-size: auto !important; min-inline-size: 76rem !important; }
.hti-dossier .view #table-criteres :is(th, td) { min-inline-size: 5rem; }
.hti-dossier .view #table-criteres :is(th, td):first-child { min-inline-size: 3rem; }

/* Numéros décoratifs en orange vif sur blanc: contraste insuffisant (2,7), on fonce. */
.hti-dossier .fig-num, .hti-dossier .src-num { color: #c2410c; }

/* En-tête du dossier: titre + accès au PDF, au-dessus du bandeau de mise à jour. */
.hti-dossier .hd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.hti-dossier .hd-heading { flex: 1 1 24rem; margin: 0; font: 800 clamp(1.4rem, 1rem + 1.4vw, 2rem)/1.2 "Montserrat", sans-serif; color: var(--bleu); }
.hti-dossier .hd-pdf { flex: none; display: inline-block; padding: .7rem 1.2rem; font: 700 .85rem "Montserrat", sans-serif; color: #fff; background: var(--orange); text-decoration: none; border: 0; }
.hti-dossier .hd-pdf:hover { background: var(--bleu); }
.hti-dossier .hd-pdf-note { display: block; margin-top: .3rem; font: 400 .72rem "Open Sans", sans-serif; color: #6b7f8c; text-align: right; }
.hti-dossier .hd-pdf--locked { background: transparent; color: var(--bleu); border: 1px solid var(--bleu); }
.hti-dossier .hd-pdf--locked:hover { background: var(--fond); }
.hti-dossier .hd-pdfbox { flex: none; text-align: right; }

.hti-dossier .hd-banner { margin: 0 0 1rem; padding: .5rem 1rem; background: var(--fond); border-left: 3px solid var(--orange); font: 600 .8125rem/1.4 "Montserrat", sans-serif; color: var(--bleu); }

.hti-dossier .hd-layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 2rem; align-items: start; }
.hti-dossier .hd-main { min-width: 0; }

.hti-dossier .hd-nav { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.25rem 1rem; background: var(--fond); border: 1px solid var(--filet); }
.hti-dossier .hd-nav-title { margin: 0 0 .75rem; font: 700 .75rem "Montserrat", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.hti-dossier .hd-nav ol { list-style: none; margin: 0; padding: 0; }
.hti-dossier .hd-nav-link { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .25rem; align-items: baseline; padding: .45rem .55rem; font: 500 .84rem/1.35 "Montserrat", sans-serif; color: var(--bleu); text-decoration: none; border-radius: 4px; }
.hti-dossier .hd-nav-link:hover { background: var(--filet); }
.hti-dossier .hd-nav-link[aria-current="page"] { background: var(--bleu); color: #fff; font-weight: 600; }
.hti-dossier .hd-nav-link .hd-num { font-weight: 700; color: var(--orange); }
.hti-dossier .hd-nav-link .hd-title { grid-column: 2; }
.hti-dossier .hd-nav-link:not(:has(.hd-num)) .hd-title { grid-column: 1 / 3; }
.hti-dossier .hd-nav-link.hd-locked { color: #6b7f8c; }
.hti-dossier .hd-lock { grid-column: 3; font: 700 .6rem "Montserrat", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); }

.hti-dossier .hd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 3.5rem 0; padding-top: 2rem; border-top: 1px solid var(--filet); }
.hti-dossier .hd-pager a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--filet); text-decoration: none; color: var(--bleu); }
.hti-dossier .hd-pager a:hover { border-color: var(--orange); }
.hti-dossier .hd-pager-next { grid-column: 2; text-align: right; }
.hti-dossier .hd-pager-label { display: block; font: 700 .7rem "Montserrat", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.hti-dossier .hd-pager-title { display: block; margin-top: .2rem; font: 600 .95rem/1.35 "Montserrat", sans-serif; }

.hti-dossier .hd-editions { margin: 3rem 3.5rem 0; }
.hti-dossier .hd-editions table { border-collapse: collapse; width: 100%; max-width: 32rem; }
.hti-dossier .hd-editions th, .hti-dossier .hd-editions td { padding: .5rem .75rem; border: 1px solid var(--filet); text-align: left; }
.hti-dossier .hd-editions th { background: var(--fond); }

.hti-dossier .hd-locked-view { padding: 2rem 0; }

/* Page « Dossiers »: barre de recherche + tableau, dans l'esprit des pages Levées de fonds / Attaques cyber. */
.hti-dossiers { font-family: "Open Sans", Arial, sans-serif; color: #1f3a4a; margin: 0 0 24px; }
.hti-dossiers__toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.hti-dossiers__q { flex: 1 1 260px; min-width: 200px; padding: 8px 12px; border: 1px solid #c8d4de; border-radius: 4px; font-size: 14px; }
.hti-dossiers__status { margin: 0 0 8px; font-size: 13px; color: #475569; min-height: 1em; }
.hti-dossiers__scroll { overflow-x: auto; }
.hti-dossiers__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hti-dossiers__table thead th { background: #044362; color: #fff; text-align: left; padding: 9px 12px; font: 700 12px "Montserrat", sans-serif; letter-spacing: .04em; white-space: nowrap; }
.hti-dossiers__table td { padding: 12px; border-bottom: 1px solid #d3dfea; vertical-align: top; }
.hti-dossiers__row:nth-child(even) td { background: #f5f8fb; }
.hti-dossiers__row[hidden] { display: none; }
.hti-dossiers__title { min-width: 16rem; }
.hti-dossiers__title a { font: 700 15px "Montserrat", sans-serif; color: #044362; text-decoration: none; }
.hti-dossiers__title a:hover { text-decoration: underline; }
.hti-dossiers__title p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: #475569; text-align: left; }
.hti-dossiers__pdf { display: inline-block; padding: 2px 8px; border: 1px solid #044362; font: 700 11px "Montserrat", sans-serif; color: #044362; }
.hti-dossiers__btn { display: inline-block; padding: 7px 14px; background: #ff5c31; color: #fff; font: 700 13px "Montserrat", sans-serif; text-decoration: none; white-space: nowrap; }
.hti-dossiers__btn:hover { background: #044362; }
.hti-dossiers__empty { font-size: 14px; color: #475569; }

@media (max-width: 62rem) {
	.hti-dossier .hd-layout { grid-template-columns: minmax(0, 1fr); }
	.hti-dossier .hd-nav { position: static; max-height: none; }
	.hti-dossier .hd-pager, .hti-dossier .hd-editions { margin-left: 1rem; margin-right: 1rem; }
	.hti-dossier .view { padding: 2rem 1rem 1rem; }
}

/* Infobulle du glossaire: ajoutée au <body> par glossaire.js, donc hors de .hti-dossier (variables et règles
   cantonnées absentes) : on la style en entier ici, fond blanc opaque, au-dessus de l'en-tête fixe du site. */
.gl-pop { position: absolute; z-index: 1000; width: min(22rem, calc(100vw - 2rem)); box-sizing: border-box; padding: .9rem 1rem; background: #fff; color: #044362; border: 1px solid #044362; border-radius: 6px; box-shadow: 0 8px 24px rgba(4, 67, 98, .22); font: 400 .875rem/1.5 "Open Sans", sans-serif; text-align: left; }
.gl-pop[hidden] { display: none !important; }
.gl-pop b, .gl-pop .gl-pop-term { display: block; margin: 0 0 .3rem; font: 700 .875rem "Montserrat", sans-serif; color: #044362; }
.gl-pop .gl-pop-def, .gl-pop p { margin: 0 0 .5rem; font-size: .875rem; line-height: 1.5; color: #475569; text-align: left; }
.gl-pop a, .gl-pop .gl-pop-link { display: inline-block; margin-top: .3rem; font-size: .8rem; font-weight: 600; color: #044362; text-decoration: underline; text-decoration-color: #ff5c31; }

/* Carte « Dossier » insérée dans un article ([hti_dossier]). Sélecteurs volontairement spécifiques: le thème style
   les titres, listes et liens de `.single-post_ci .card--style` avec des règles plus fortes que de simples classes. */
section.hd-card { margin: 28px 0; padding: 26px 28px; background: #044362; color: #fff; border-left: 6px solid #ff5c31; box-shadow: 0 6px 22px rgba(4, 67, 98, .18); text-align: left; font-family: "Open Sans", sans-serif; }
section.hd-card .hd-card__head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; margin: 0 0 8px; }
section.hd-card .hd-card__kicker { font: 700 12px "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ff5c31; }
section.hd-card .hd-card__meta { font: 600 12px "Open Sans", sans-serif; color: #cfe0ea; }
section.hd-card h3.hd-card__title { margin: 0 0 10px; font: 800 24px/1.25 "Montserrat", sans-serif; color: #fff; }
section.hd-card p.hd-card__resume { margin: 0 0 18px; font: 400 16px/1.55 "Open Sans", sans-serif; color: #fff; text-align: left; }
section.hd-card .hd-card__toc { margin: 0 0 20px; padding: 16px 18px; background: rgba(255, 255, 255, .08); }
section.hd-card p.hd-card__toc-title { margin: 0 0 10px; font: 700 12px "Montserrat", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-align: left; }
section.hd-card .hd-card__toc ol { list-style: none; margin: 0; padding: 0; columns: 2 18rem; column-gap: 28px; }
section.hd-card .hd-card__toc li.hd-card__item { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0 6px; margin: 0 0 10px; break-inside: avoid; color: #fff; }
section.hd-card .hd-card__num { grid-row: 1 / span 2; font: 800 14px "Montserrat", sans-serif; color: #ff5c31; }
section.hd-card .hd-card__t { font: 700 14px/1.35 "Montserrat", sans-serif; color: #fff; }
section.hd-card .hd-card__d { grid-column: 2; font: 400 12.5px/1.45 "Open Sans", sans-serif; color: #cfe0ea; }
section.hd-card p.hd-card__more { margin: 6px 0 0; font: 400 12.5px/1.5 "Open Sans", sans-serif; color: #cfe0ea; text-align: left; }
section.hd-card .hd-card__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
section.hd-card .hd-card__actions a.hd-card__btn, .single-post_ci section.hd-card .hd-card__actions a.hd-card__btn:not(.bloc-tooltip) { display: inline-block; padding: 12px 22px; background: #ff5c31; color: #fff; border: 2px solid #ff5c31; font: 700 14px "Montserrat", sans-serif; text-decoration: none; }
section.hd-card .hd-card__actions a.hd-card__btn:hover { background: #fff; border-color: #fff; color: #044362; }
section.hd-card .hd-card__actions a.hd-card__btn--ghost, .single-post_ci section.hd-card .hd-card__actions a.hd-card__btn--ghost:not(.bloc-tooltip) { background: transparent; color: #fff; border-color: #fff; }
section.hd-card .hd-card__note { font: 600 12px "Open Sans", sans-serif; color: #cfe0ea; }
p.hd-card__missing { padding: 10px 14px; border: 1px dashed #ff5c31; color: #b54a1f; font-size: 13px; }
@media (max-width: 40rem) { section.hd-card { padding: 20px 18px; } section.hd-card h3.hd-card__title { font-size: 20px; } }

/* Visionneuse de figures (dossier-front.js). Au-dessus de l'en-tête fixe du site (200) et des infobulles (1000). */
.hti-dossier img.hd-zoomable { cursor: zoom-in; }
.hti-dossier img.hd-zoomable:focus-visible { outline: 3px solid #ff5c31; outline-offset: 3px; }
body.hd-lb-open { overflow: hidden; }
.hd-lb { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: rgba(4, 30, 45, .94); }
.hd-lb[hidden] { display: none !important; }
.hd-lb__bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 16px; background: #044362; color: #fff; }
.hd-lb__title { flex: 1 1 18rem; margin: 0; font: 700 14px/1.35 "Montserrat", sans-serif; color: #fff; text-align: left; }
.hd-lb__btn { padding: 8px 14px; border: 1px solid #fff; background: transparent; color: #fff; font: 600 13px "Montserrat", sans-serif; text-decoration: none; cursor: pointer; }
.hd-lb__btn:hover, .hd-lb__btn:focus-visible { background: #fff; color: #044362; }
.hd-lb__close { background: #ff5c31; border-color: #ff5c31; }
.hd-lb__body { flex: 1; overflow: auto; display: flex; padding: 16px; }
.hd-lb__img { margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.hd-lb--zoom .hd-lb__body { display: block; }
.hd-lb--zoom .hd-lb__img { max-width: none; max-height: none; margin: 0 auto; }

/* Espace Premium ([hti_espace_premium], [hti_espace_premium_lien]). */
.hti-espace { font-family: "Open Sans", Arial, sans-serif; color: #1f3a4a; }
.hti-espace .hti-espace__hello { margin: 0 0 18px; font: 600 16px "Open Sans", sans-serif; color: #044362; text-align: left; }
.hti-espace .hti-espace__saved { margin: 0 0 14px; padding: 8px 12px; background: #e6f4ea; color: #1e6b34; font-size: 13px; text-align: left; }
.hti-espace .hti-espace__block { margin: 0 0 30px; }
.hti-espace .hti-espace__block h2 { margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid #ff5c31; font: 800 20px "Montserrat", sans-serif; color: #044362; }
.hti-espace .hti-espace__dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 16px; }
.hti-espace article.hti-espace__dossier { padding: 16px 18px; background: #fff; border: 1px solid #d3dfea; border-top: 3px solid #044362; }
.hti-espace article.hti-espace__dossier h3 { margin: 0 0 4px; font: 700 16px/1.3 "Montserrat", sans-serif; }
.hti-espace article.hti-espace__dossier h3 a { color: #044362; text-decoration: none; }
.hti-espace article.hti-espace__dossier p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; text-align: left; }
.hti-espace p.hti-espace__meta { font-size: 12px; color: #64748b; }
.hti-espace .hti-espace__actions { display: flex; gap: 8px; margin: 10px 0 0; }
.hti-espace a.hti-espace__btn, .hti-espace button.hti-espace__btn { display: inline-block; padding: 8px 16px; background: #ff5c31; color: #fff; border: 2px solid #ff5c31; font: 700 13px "Montserrat", sans-serif; text-decoration: none; cursor: pointer; }
.hti-espace a.hti-espace__btn:hover, .hti-espace button.hti-espace__btn:hover { background: #044362; border-color: #044362; }
.hti-espace a.hti-espace__btn--ghost { background: transparent; color: #044362; border-color: #044362; }
.hti-espace ul.hti-espace__alertes { list-style: none; margin: 0 0 12px; padding: 0; }
.hti-espace ul.hti-espace__alertes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #d3dfea; font-size: 14px; }
.hti-espace ul.hti-espace__alertes li.is-on strong { color: #1e6b34; }
.hti-espace ul.hti-espace__alertes li.is-off strong { color: #8a99a6; }
.hti-espace ul.hti-espace__contenus { list-style: none; margin: 0; padding: 0; }
.hti-espace ul.hti-espace__contenus li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #d3dfea; font-size: 14px; }
.hti-espace ul.hti-espace__contenus a { color: #044362; font-weight: 600; text-decoration: none; }
.hti-espace ul.hti-espace__contenus span { flex: none; color: #64748b; font-size: 12px; }
.hti-espace p.hti-espace__empty { font-size: 14px; color: #64748b; }
.hti-espace details.hti-espace__prefs { margin-top: 10px; padding: 12px 16px; background: #eaf0f7; }
.hti-espace details.hti-espace__prefs summary { cursor: pointer; font: 700 13px "Montserrat", sans-serif; color: #044362; }
.hti-espace .hti-espace__checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0 12px; }
.hti-espace .hti-espace__checks label { font-size: 14px; }
.hti-espace--gate { padding: 8px 0; }
.hti-espace--gate h2 { font: 800 22px "Montserrat", sans-serif; color: #044362; }
p.hti-espace-lien { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 18px; padding: 12px 18px; background: #044362; color: #fff; font: 600 14px "Open Sans", sans-serif; text-align: left; border-left: 6px solid #ff5c31; }
p.hti-espace-lien a { color: #fff; font: 700 14px "Montserrat", sans-serif; text-decoration: underline; text-decoration-color: #ff5c31; text-underline-offset: 3px; }
