/* ============================================================
   VENITE ADOREMUS — Page d'accueil (sections)
   Scopé sous .va-accueil (le contenu de la page d'accueil).
   La base, le conteneur .wrap, la nav et le footer sont dans
   chrome.css (site-wide). Dépend de venite-tokens.css + venite-ds.css.
   ============================================================ */

/* Pas d'espace WP entre les bandes ni autour du module : la maquette colle
   les sections. Neutralise le `margin-block-start: 24px` de .is-layout-flow. */
.va-accueil > .wp-block-group { margin-block: 0; }
.va-accueil .module-frame > * { margin-block-start: 0; }

/* Le module ne doit PAS animer un transform (.reveal) : un ancêtre transformé
   crée un bloc-conteneur qui casse le position:fixed des dropdowns du plugin
   (la liste s'affichait décalée). On neutralise l'animation sur ce conteneur. */
.va-accueil .module-frame.reveal { animation: none; transform: none; }

/* ---------- HERO ---------- */
.va-accueil .hero { position: relative; min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; color: var(--etoile); overflow: hidden;

  background: radial-gradient(125% 95% at 72% 6%, oklch(0.50 0.11 256) 0%, oklch(0.36 0.095 256) 40%, oklch(0.24 0.06 256) 80%, oklch(0.19 0.045 256) 100%); }
/* Connecté : la barre d'admin WP (32px) pousse le contenu → on la déduit aussi. */
body.admin-bar .va-accueil .hero { min-height: calc(100vh - 72px - 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .va-accueil .hero { min-height: calc(100vh - 72px - 46px); }
}
.va-accueil .hero__steeple { position: absolute; right: 0; bottom: 0; width: 44%; max-width: 600px; opacity: 0.96; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, black 62%, transparent); mask-image: linear-gradient(to top, black 62%, transparent); }
.va-accueil .hero__moon { position: absolute; top: 14%; right: 16%; width: 58px; height: 58px; border-radius: 50%; box-shadow: 16px 13px 0 0 var(--or-100); filter: drop-shadow(0 0 22px oklch(0.96 0.038 90 / 0.5)); opacity: 0.9; }
.va-accueil .hero__in { position: relative; z-index: 2; padding: var(--sp-12) 0; max-width: 760px; }
.va-accueil .hero__logo { height: 84px; margin-bottom: var(--sp-6); filter: drop-shadow(0 6px 34px oklch(0.82 0.15 80 / 0.5)); }
.va-accueil .hero h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; color: var(--etoile); }
.va-accueil .hero h1 em { font-style: italic; color: var(--or-400); }
.va-accueil .hero__sub { font-size: var(--t-md); color: var(--etoile-soft); max-width: 46ch; margin: var(--sp-5) 0 0; line-height: 1.55; }
.va-accueil .hero__when { display: inline-flex; align-items: center; gap: 0.5em; margin-top: var(--sp-6); color: var(--or-300); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.04em; }
.va-accueil .hero__cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; }
.va-accueil .va-btn--lg { font-size: var(--t-base); padding: 0.85em 1.6em; }
.va-accueil .scrollcue { position: absolute; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); color: var(--etoile-soft); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; display: flex; flex-direction: column; align-items: center; gap: 0.4em; z-index: 2; cursor: pointer; text-decoration: none; transition: opacity .2s ease; }
.va-accueil .scrollcue:hover { opacity: 1; color: var(--or-300); }
.va-accueil .scrollcue svg { width: 20px; height: 20px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100%{transform:translateY(0);opacity:.6} 50%{transform:translateY(5px);opacity:1} }

/* ---------- bands ---------- */
.va-accueil .band { padding: var(--sp-12) 0; }
.va-accueil .band--creme { background: var(--creme); }
.va-accueil .band--brume { background: var(--brume); }
.va-accueil .band--nuit { background: var(--nuit-900); color: var(--etoile); position: relative; overflow: hidden; }
.va-accueil .band--nuit h2, .va-accueil .band--nuit h3 { color: var(--etoile); }
.va-accueil .band--or { background: linear-gradient(135deg, var(--or-700), var(--or-800)); color: #fff; }
.va-accueil section,
.va-accueil .band { scroll-margin-top: 84px; }
.va-accueil .kicker-c { color: var(--or-700); display: inline-block; margin-bottom: var(--sp-3); }
.va-accueil .band--nuit .kicker-c, .va-accueil .band--or .kicker-c { color: var(--or-300); }
.va-accueil .band--or .kicker-c { color: oklch(0.97 0.04 90); }

/* Kicker : doit primer sur .quoi p / .pourquoi p / .ettoi p / .module-head p
   (qui sont en 0,2,1 et écrasaient la taille + la couleur du kicker). */
.va-accueil .band .va-kicker,
.va-accueil .module-head .va-kicker {
  font-size: var(--t-xs);
  line-height: 1.3;
  color: var(--or-700);
  margin: 0 0 var(--sp-3);
}
.va-accueil .band--nuit .va-kicker,
.va-accueil .when-card .va-kicker { color: var(--or-300); }
.va-accueil .band--or .va-kicker { color: oklch(0.97 0.04 90); }

/* Bouton fantôme avec chevron : resserrer pour équilibrer (sinon trop d'espace
   à droite du texte à cause de l'icône + l'écart). */
.va-accueil .va-btn--ghost { gap: 0.4em; }
.va-accueil .va-btn--ghost > svg.icon:last-child { margin-right: -0.3em; }

/* ---------- QUOI ---------- */
.va-accueil .quoi { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-10); align-items: center; }
@media (max-width: 900px){ .va-accueil .quoi { grid-template-columns: 1fr; gap: var(--sp-8); } }
.va-accueil .quoi h2 { font-size: var(--t-2xl); margin-bottom: var(--sp-4); }
.va-accueil .quoi p { color: var(--encre-soft); font-size: var(--t-md); margin: 0 0 var(--sp-4); }
.va-accueil .stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.va-accueil .stat { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-sm); }
.va-accueil .stat b,
.va-accueil .stat .va-stat-num { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--or-700); line-height: 1; display: block; margin: 0; }
.va-accueil .stat span,
.va-accueil .stat .va-stat-label { font-size: var(--t-sm); color: var(--encre-soft); margin: 0.4em 0 0; display: block; }
.va-accueil .stat--wide { grid-column: 1 / -1; }

/* ---------- MODULE « Trouver un lieu » (cadre autour du shortcode) ---------- */
.va-accueil .module-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.va-accueil .module-head h2 { font-size: var(--t-2xl); }
.va-accueil .module-head p { color: var(--encre-soft); margin: var(--sp-2) 0 0; }
.va-accueil .module-frame { background: var(--blanc); border-radius: var(--r-xl); padding: var(--sp-5); border: 1px solid var(--ligne); box-shadow: var(--sh-lg); }

/* ---------- POURQUOI ---------- */
.va-accueil .pourquoi { text-align: center; max-width: 760px; margin: 0 auto; }
.va-accueil .pourquoi .verse { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; color: var(--etoile); text-wrap: balance; max-width: 18ch; margin: var(--sp-5) auto 0; }
.va-accueil .pourquoi .verse .hl { color: var(--or-400); }
.va-accueil .pourquoi .ref { display: block; margin-top: var(--sp-5); color: var(--or-300); font-family: var(--sans); font-style: normal; font-size: var(--t-sm); letter-spacing: 0.16em; text-transform: uppercase; }
.va-accueil .pourquoi p { color: var(--etoile-soft); font-size: var(--t-md); margin: var(--sp-8) auto 0; max-width: 52ch; }

/* ---------- COMMENT ---------- */
/* H2 à la même taille que les autres sections (le style inline du bloc ne
   s'appliquait pas) + kicker « Comment ? » en orange (robuste, #id). */
.va-accueil #comment h2 { font-size: var(--t-2xl); line-height: 1.12; }
.va-accueil #comment .va-kicker { color: var(--or-700); }
.va-accueil .comment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-8); }
@media (max-width: 900px){ .va-accueil .comment-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .va-accueil .comment-grid { grid-template-columns: 1fr; } }
.va-accueil .ccard { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-sm); }
.va-accueil .ccard__ico { width: 2.6em; height: 2.6em; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--or-100); color: var(--or-800); margin-bottom: var(--sp-4); }
.va-accueil .ccard h3 { font-size: var(--t-lg); margin-bottom: var(--sp-2); }
.va-accueil .ccard p { color: var(--encre-soft); font-size: var(--t-sm); margin: 0; }
.va-accueil .comment-note { margin-top: var(--sp-6); padding: var(--sp-5) var(--sp-6); background: var(--or-100); border-radius: var(--r-lg); color: var(--or-800); font-size: var(--t-md); display: flex; align-items: center; gap: var(--sp-4); }
.va-accueil .comment-note svg { flex: 0 0 auto; width: 1.6em; height: 1.6em; }

/* ---------- QUAND & OU ---------- */
.va-accueil .twocol { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-10); align-items: start; }
@media (max-width: 900px){ .va-accueil .twocol { grid-template-columns: 1fr; gap: var(--sp-8); } }
.va-accueil .when-card { background: var(--nuit-900); color: var(--etoile); border-radius: var(--r-xl); padding: var(--sp-8); position: relative; overflow: hidden; }
.va-accueil .when-card .va-kicker { color: var(--or-300); }
.va-accueil .when-card .big { font-family: var(--serif); font-size: var(--t-2xl); font-weight: 600; margin: var(--sp-3) 0; line-height: 1.05; }
.va-accueil .when-card p { color: var(--etoile-soft); margin: 0; }
.va-accueil .timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.va-accueil .timeline::before { content:""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--or-500), var(--ligne)); }
.va-accueil .timeline li,
.va-accueil .timeline .va-tl-item { position: relative; padding: 0 0 var(--sp-6) var(--sp-8); }
.va-accueil .timeline li:last-child,
.va-accueil .timeline .va-tl-item:last-child { padding-bottom: 0; }
.va-accueil .timeline li::before,
.va-accueil .timeline .va-tl-item::before { content:""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--or-500); border: 3px solid var(--creme); box-shadow: 0 0 0 1px var(--or-500); }
.va-accueil .timeline .yr { font-family: var(--serif); font-size: var(--t-lg); font-weight: 600; color: var(--or-800); }
.va-accueil .timeline .ev { color: var(--encre-soft); font-size: var(--t-sm); margin-top: 0.2em; }

/* ---------- ET TOI ---------- */
.va-accueil .ettoi { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 900px){ .va-accueil .ettoi { grid-template-columns: 1fr; } }
.va-accueil .ettoi h2 { font-size: var(--t-3xl); color: #fff; line-height: 1; }
.va-accueil .ettoi p { color: oklch(0.98 0.02 90 / 0.92); font-size: var(--t-md); margin: var(--sp-4) 0 0; }
.va-accueil .ettoi__acts { display: flex; flex-direction: column; gap: var(--sp-3); }
.va-accueil .act { display: flex; gap: var(--sp-4); align-items: flex-start; background: oklch(1 0 0 / 0.12); border: 1px solid oklch(1 0 0 / 0.2); border-radius: var(--r-lg); padding: var(--sp-5); color: #fff; }
.va-accueil .act svg { flex: 0 0 auto; width: 1.5em; height: 1.5em; margin-top: 0.15em; }
.va-accueil .act b { display: block; font-size: var(--t-md); font-family: var(--serif); }
.va-accueil .act span { font-size: var(--t-sm); color: oklch(1 0 0 / 0.85); }

/* entrée subtile au scroll si supporté */
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .va-accueil .reveal { animation: va-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes va-rise { from { transform: translateY(22px); } to { transform: none; } }
  }
}
