/* ============================================================
   VENITE ADOREMUS — Chrome du thème (site-wide)
   Base typographique, conteneur, en-tête (nav + menu mobile),
   sélecteur de langue, pied de page, pages statiques.
   Dépend de venite-tokens.css + venite-ds.css.
   ============================================================ */

/* ---- Base ---- */
html { box-sizing: border-box; scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); }

.va-site {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.va-site *, .va-site *::before, .va-site *::after { box-sizing: border-box; }
.va-site h1, .va-site h2, .va-site h3, .va-site h4 {
  font-family: var(--serif); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
.va-site p { text-wrap: pretty; }
.va-site img { max-width: 100%; height: auto; }
/* Pas de couleur de lien globale : elle écraserait la couleur propre des
   boutons .va-btn. Les liens nav/footer/contenu ont leurs règles dédiées. */
.va-site a { text-decoration: none; }

/* Masquer le sélecteur de langue FLOTTANT de TranslatePress (doublon de
   celui de la nav). On peut aussi le désactiver dans Réglages → TranslatePress. */
#trp-floater-ls,
.trp-floater-ls,
.trp-language-switcher-container.trp-floater { display: none !important; }

.va-site .wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-6); }
.va-site .wrap--narrow { max-width: 760px; }

.va-site .icon {
  width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Lien d'évitement (accessibilité) */
.va-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--nuit-900); color: var(--etoile); padding: 0.6em 1em; border-radius: 0 0 var(--r-sm) 0;
}
.va-skip-link:focus { left: 0; }

/* ============================================================
   EN-TÊTE / NAV
   ============================================================ */
.va-site .nav { position: sticky; top: 0; z-index: 60; background: oklch(0.975 0.013 85 / 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ligne); }
/* Connecté : la nav collante doit se caler sous la barre d'admin WP. */
body.admin-bar .va-site .nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .va-site .nav { top: 46px; } }
.va-site .nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: var(--sp-5); }
.va-site .nav__brand { display: flex; align-items: center; gap: 0.55em; text-decoration: none; flex: 0 0 auto; }
.va-site .nav__brand img { height: 40px; width: auto; }
.va-site .custom-logo-link { display: inline-flex; }
.va-site .custom-logo { height: 40px; width: auto; }

.va-site .nav__menu { display: flex; align-items: center; gap: var(--sp-6); }
.va-site .nav__links { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.va-site .nav__links a { color: var(--encre); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.va-site .nav__links a:hover { color: var(--or-800); }
.va-site .nav__right { display: flex; align-items: center; gap: var(--sp-4); }

/* Sélecteur de langue */
.va-site .lang { display: inline-flex; border: 1.5px solid var(--ligne); border-radius: var(--r-pill); overflow: hidden; font-size: var(--t-xs); font-weight: 700; }
.va-site .lang a, .va-site .lang button { border: 0; background: transparent; padding: 0.4em 0.7em; cursor: pointer; color: var(--encre-faint); font: inherit; text-decoration: none; line-height: 1.6; }
.va-site .lang a.is-on, .va-site .lang button.is-on { background: var(--or-700); color: #fff; }

/* Burger (caché sur desktop) */
.va-site .nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 38px; padding: 0 9px; background: transparent; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); cursor: pointer; }
.va-site .nav__burger span { display: block; height: 2px; width: 100%; background: var(--encre); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.va-site .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.va-site .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.va-site .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .va-site .nav__burger { display: flex; order: 3; }
  .va-site .nav__menu {
    order: 4; flex-basis: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: var(--sp-4);
    padding: var(--sp-4) 0 var(--sp-5);
  }
  .va-site .nav.is-open .nav__menu { display: flex; }
  .va-site .nav__inner { flex-wrap: wrap; height: auto; min-height: 70px; padding-top: 10px; padding-bottom: 10px; }
  .va-site .nav__links { flex-direction: column; gap: var(--sp-3); }
  .va-site .nav__right { justify-content: flex-start; }
}

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.va-site .foot { background: var(--nuit-950); color: var(--etoile-soft); padding: var(--sp-10) 0 var(--sp-6); position: relative; overflow: hidden; }
.va-site .foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); position: relative; z-index: 1; }
@media (max-width: 760px) { .va-site .foot__grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.va-site .foot img { height: 56px; margin-bottom: var(--sp-4); }
.va-site .foot h4 { font-family: var(--sans); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-300); margin-bottom: var(--sp-4); }
.va-site .foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.va-site .foot a { color: var(--etoile-soft); text-decoration: none; font-size: var(--t-sm); }
.va-site .foot a:hover { color: var(--etoile); }
.va-site .foot__bottom { border-top: 1px solid var(--ligne-nuit); margin-top: var(--sp-8); padding-top: var(--sp-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--t-xs); opacity: 0.7; position: relative; z-index: 1; }

/* ============================================================
   PAGES STATIQUES & contenu Gutenberg (page.php, index.php, 404)
   ============================================================ */
.va-site .va-page { padding: var(--sp-10) 0 var(--sp-12); }
.va-site .va-page__header { margin-bottom: var(--sp-6); }
.va-site .va-page__title { font-size: var(--t-2xl); color: var(--encre); }
.va-site .va-page__content { font-size: var(--t-md); }
.va-site .va-page__content > * { margin-top: var(--sp-4); }
.va-site .va-page__content > *:first-child { margin-top: 0; }
.va-site .va-page__content h2 { font-size: var(--t-xl); margin-top: var(--sp-8); }
.va-site .va-page__content h3 { font-size: var(--t-lg); margin-top: var(--sp-6); }
.va-site .va-page__content a { color: var(--or-800); text-decoration: underline; text-underline-offset: 2px; }
.va-site .va-page__content img { border-radius: var(--r-md); }
.va-site .va-page__content blockquote { border-left: 3px solid var(--or-500); padding-left: var(--sp-4); color: var(--encre-soft); font-style: italic; }

/* État vide / listing simple (index, recherche) */
.va-site .va-list { display: flex; flex-direction: column; gap: var(--sp-6); }
.va-site .va-list__item { border-bottom: 1px solid var(--ligne); padding-bottom: var(--sp-5); }
.va-site .va-list__item h2 { font-size: var(--t-xl); margin-bottom: var(--sp-2); }
.va-site .va-list__item h2 a { color: var(--encre); }
.va-site .va-list__item h2 a:hover { color: var(--or-800); }
