/* pap-overrides.css — surcouches PAP spécifiques au branding HUSCI.
 *
 * Chargé via site-config.php > extra_css (cf inc/site-page.php).
 * Ne touche PAS site-core.css ni site-themes.css (partagés avec LCL/OBB).
 */

/* Aligner logo + nom « H.U.S.C.I. » ensemble (centrés) dans le sidebar,
 * et laisser la tagline en alignement gauche en-dessous (Yannick 2026-06-06).
 *
 * On force le container .site-brand en flex column centré pour que le logo
 * (image ronde) et le nom (texte) partagent le même axe vertical centré.
 * La tagline reste sur sa propre ligne, mais on lui rend explicitement le
 * text-align:left pour qu'elle ne suive pas le centrage de son parent. */
.site-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.site-brand .logo,
.site-brand .name {
  display: block;
  width: 100%;
  text-align: center;
}
/* Centrage de l'image du logo : site-core.css la force en `display:block`
 * (pour le badge press-indicator), donc le `text-align:center` du parent ne
 * peut PAS la centrer (c'est valable pour les inline). On utilise donc
 * `margin: 0 auto` sur l'image block elle-même.
 * Yannick 2026-06-07 : groupe visuellement logo + "H.U.S.C.I." centrés. */
.site-brand .logo img {
  margin: 0 auto;
}
.site-brand .tagline {
  width: 100%;
  text-align: left;
}

/* ── Titres annoncés, pas encore en ligne (2026-08-10) ──────────────────────
 * Une entrée de menu sans 'href' s'affiche grisée et non cliquable : la
 * rubrique existe, ses pages arrivent. Elles seront mises en ligne d'un coup.
 * Le petit point qui précède dit « en préparation » sans texte en plus. */
.site-nav .a-venir {
  display: block;
  padding: .35rem 0;
  color: var(--muted, #8b95a1);
  cursor: default;
  opacity: .72;
}
.site-nav .sub .a-venir {
  font-size: .95em;
}
.site-nav .sub .a-venir::before {
  content: "◦ ";
  opacity: .8;
}

/* Accueils pays : un seul choix de contexte, sans écran interstitiel. */
.pap-breadcrumbs { margin: 0 0 1rem; color: var(--muted); font-size: .82rem; }
.pap-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .55rem; list-style: none; margin: 0; padding: 0; }
.pap-breadcrumbs li + li::before { content: '›'; margin-right: .55rem; opacity: .6; }
.pap-breadcrumbs a { color: inherit; }
.pap-home-heading h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
.pap-home-subtitle { margin: .35rem 0 1.25rem; color: var(--muted); }
.pap-charter { margin-bottom: 1.5rem; }
.pap-charter h2 { font-size: 1.1rem; margin: 0 0 .35rem; }
.pap-charter ul { list-style: none; padding: 0; margin: 0; }
.pap-charter summary { cursor: pointer; padding: .2rem 0; font-weight: 600; }
.pap-charter details p { color: var(--muted); margin: .25rem 0 .65rem; max-width: 65ch; }
.pap-countries, .pap-opening { margin: 1.5rem 0; scroll-margin-top: 4.5rem; }
.pap-countries h2, .pap-opening h2 { margin: 0 0 .6rem; font-size: 1.35rem; }
.pap-country-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pap-country { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); color: var(--ink); text-decoration: none; }
.pap-country strong { font-size: 1.25rem; color: var(--accent); }
.pap-country span { font-size: .9rem; }
.pap-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.pap-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.pap-button-primary { background: var(--accent); color: var(--bg); }
.pap-country:hover, .pap-button:hover { border-color: var(--accent); }
.pap-country:focus-visible, .pap-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) {
  .pap-country-grid { grid-template-columns: 1fr; }
  .pap-country { padding: .9rem; }
  .pap-actions .pap-button { flex: 1 1 100%; }
}

/* International : présentation HUSCI d'origine, palette bleu nuit existante. */
.pap-husci-home .hero-husci { display: flex; flex-direction: column; align-items: center; margin-bottom: 0; }
.pap-husci-home .pap-welcome-frame { width: 100%; background: #000; border: 1px solid #333; border-radius: 12px; padding: 0 12px 16px; margin-bottom: 4px; text-align: center; }
.pap-husci-home .pap-welcome-frame h1 { color: #eee; }
.pap-husci-home .pap-welcome-frame .pap-home-subtitle { color: #aaa; text-align: center; margin: 4px 0 0; }
.pap-husci-home .pap-welcome-image { display: block; width: min(100%, 320px); height: auto; margin: 0 auto; }
/* Les cadres éliminent seulement les marges transparentes des PNG HUSCI. */
.pap-husci-home .hero-logo { display: block; position: relative; width: 100%; max-width: 460px; aspect-ratio: 1859 / 344; overflow: hidden; margin: 12px 0 2px; }
.pap-husci-home .hero-logo-img { display: block; position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.pap-husci-home .hero-logo-dark { transform: translateY(-31.0875%); }
.pap-husci-home .hero-logo-light { transform: translateY(-17.8431%); }
[data-theme$="-light"] .pap-husci-home .hero-logo { aspect-ratio: 1701 / 364; }
[data-theme$="-light"] .pap-husci-home .hero-logo-dark { display: none; }
[data-theme$="-dark"] .pap-husci-home .hero-logo-light { display: none; }
.pap-husci-home .lede { color: var(--muted); font-size: 1.08em; max-width: 680px; }
.pap-husci-home h2 { font-family: ui-serif, Georgia, serif; font-size: 1.5em; margin: 0 0 18px; scroll-margin-top: 70px; }
.pap-husci-home .muted-lede { color: var(--muted); font-size: .98em; margin: 0; width: 100%; text-align: center; }
.pap-husci-home #charte { scroll-margin-top: 70px; }
.site-nav .site-nav-section { margin-top: 1.5rem; }
.pap-husci-home .muted-lede strong { color: var(--accent); }
.pap-husci-home .pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-bottom: 36px; }
.pap-husci-home .pillar { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; min-width: 0; }
.pap-husci-home .pillar .t { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1em; color: var(--accent); margin-bottom: 10px; flex-wrap: wrap; }
.pap-husci-home .pillar .ic { font-size: 1.3em; }
.pap-husci-home .pillar .lettre { background: var(--accent); color: var(--card); border-radius: 4px; padding: 0 .35em; font-family: ui-serif, Georgia, serif; font-size: .95em; letter-spacing: .02em; }
.pap-husci-home .pillar .nom { flex: 1; }
.pap-husci-home .pillar p { color: var(--muted); font-size: .96em; line-height: 1.55; margin: 0; }

/* ------------------------------------------------------------------ *
 * Lexique en étiquettes (tco-concept) : les couleurs suivent le thème
 * PAP au lieu des valeurs CoLGF par défaut. La feuille du composant
 * ne fait que lire ces variables.
 * ------------------------------------------------------------------ */
tco-concept { --tco-or: var(--accent); }
.tco-fiche {
  --tco-or: var(--accent);
  --tco-carte: var(--card);
  --tco-encre: var(--ink);
  --tco-bord: var(--line);
  --tco-sourdine: var(--muted);
  --tco-parchemin: var(--line);
}

/* Schémas de page (SVG en ligne : ils suivent le thème). */
.pap-schema { margin: 1.5rem 0 1.2rem; }
.pap-schema svg { display: block; width: 100%; height: auto; }
.pap-schema figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; max-width: 70ch; }

/* Menu des bêta testeurs et information avant le formulaire (18 octobre 2026). */
.pap-beta-menu summary { display: flex; align-items: baseline; gap: .5rem; padding: 9px 12px; border-radius: var(--btn-radius, 8px); cursor: pointer; list-style: none; font-size: .97em; }
.pap-beta-menu summary::-webkit-details-marker { display: none; }
.pap-beta-menu summary::before { content: '›'; font-weight: 700; transition: transform .15s; }
.pap-beta-menu[open] > summary::before { transform: rotate(90deg); }
.pap-beta-menu summary:hover { background: var(--card); }
.pap-beta-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.site-nav .pap-beta-categories { padding: .2rem 0 .4rem 16px; }
.pap-beta-categories > li > span { display: block; padding: .35rem 0; font-size: .88em; color: var(--muted); }
.site-nav .pap-beta-nma { margin-left: 10px; color: #176b38; font-weight: 700; }
[data-theme$="-dark"] .site-nav .pap-beta-nma { color: #75d79c; }
#pap-beta-notice { margin: auto; width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: 0 16px 64px #0006; }
#pap-beta-notice::backdrop { background: #0009; }
#pap-beta-notice h2 { font-size: 1.3rem; text-transform: none; letter-spacing: normal; color: var(--ink); margin: 0 0 1rem; }
#pap-beta-notice p { line-height: 1.65; }
#pap-beta-notice .pap-beta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: 1.4rem; }
#pap-beta-notice .pap-button { font: inherit; cursor: pointer; padding: .6rem 1rem; }
#pap-beta-notice .pap-button-primary { color: var(--bg); }
