/* FR : Remplacer les aplats de démonstration par les vraies photos WordPress en conservant les dimensions et la palette approuvées.
   EN : Replace demonstration placeholders with actual WordPress photos while retaining approved dimensions and palette. */
.card-image img { width:100%; height:100%; object-fit:cover; }
.post-card:not(:has(>.visual)) { display:block; }
.couple-photo:has(img) { border:0; overflow:hidden; }
.couple-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.article-cover img { display:block; width:100%; max-height:34rem; object-fit:contain; }
.video-area { margin-top:2.5rem; }
.video-area h2 { margin-bottom:1rem; }
.video-frame { position:relative; aspect-ratio:16/9; width:100%; background:var(--an-surface-soft); border:1px solid var(--an-border); border-radius:.5rem; overflow:hidden; }
.video-frame button { position:absolute; inset:0; width:100%; display:grid; place-content:center; justify-items:center; gap:1rem; background:transparent; color:var(--an-text); border:0; padding:1rem; }
.video-frame svg { width:3rem; height:3rem; }
.video-frame iframe { display:block; border:0; width:100%; height:100%; }
.video-note { font-size:.875rem; color:var(--an-muted); margin-top:.75rem; }
.prose ul, .prose ol { padding-left:1.5rem; margin-block:1rem; }
.post-card h3 { overflow-wrap:anywhere; }
.pagination { flex-wrap:wrap; }
.pagination span { display:grid; place-items:center; min-width:2.75rem; min-height:2.75rem; padding:.4rem; }
.pagination span[aria-current] { border-radius:.5rem; background:var(--an-primary); color:var(--an-on-primary); }
/* FR : Respecter les retours saisis dans les champs multilignes, sans permettre du HTML libre pour les textes courts d’accueil.
   EN : Respect line breaks entered in multiline fields without allowing arbitrary HTML in short home texts. */
.home-copy { white-space:pre-line; }

/* FR : L’en-tête reste fixé, opaque et à pleine largeur ; son espace réservé conserve sa hauteur normale pour éviter les sauts au seuil de réduction.
   EN : The header stays fixed, opaque and full-width; its reserved space retains its normal height to prevent jumps at the shrinking threshold. */
.header-space { height:calc(7.5rem + 1px); }
/* FR : Donner à l’en-tête et au pied de page exactement le même fond, légèrement plus sombre que la page en ivoire comme en vert nocturne ; ils encadrent ainsi le site sans changer ses autres surfaces.
   EN : Give header and footer exactly the same background, slightly darker than the page in both ivory and night green; they frame the site without changing its other surfaces. */
.site-header, .site-footer { background:light-dark(#E8E0D4, #0C140F); }
.site-header { position:fixed; inset-inline:0; top:var(--aa-admin-offset, 0px); z-index:100; }
.site-header.is-compact { box-shadow:0 .2rem .8rem rgb(0 0 0 / 8%); }
.site-header.is-compact .header-inner { min-height:6.5rem; }
.an-app .site-header.is-compact .brand .an-logo { width:5rem; }
/* FR : Garder les cibles de liens et le lien d’évitement accessibles malgré l’en-tête ; les panneaux bureau peuvent dépasser sans être coupés.
   EN : Keep anchor targets and the skip link accessible despite the header; desktop panels can extend without clipping. */
html { scroll-padding-top:9rem; }
.skip { position:fixed; z-index:101; }
/* FR : Présenter un bouton tactile de 44 px, dans la palette courante et au-dessus du contenu ; respecter les marges de sécurité des téléphones.
   EN : Present a 44 px touch button in the current palette above content; respect phone safe-area margins. */
.back-to-top { position:fixed; right:max(1.25rem, env(safe-area-inset-right)); bottom:max(1.25rem, env(safe-area-inset-bottom)); z-index:90; display:grid; place-items:center; width:2.75rem; height:2.75rem; padding:.5rem; border:1px solid var(--an-control-border); border-radius:50%; background:var(--an-primary); color:var(--an-on-primary); box-shadow:0 .2rem .8rem rgb(0 0 0 / 15%); }
.back-to-top[hidden] { display:none; }
.back-to-top:hover { filter:brightness(1.1); }
.back-to-top:focus-visible { outline:3px solid var(--an-primary); outline-offset:3px; }
@media (max-width:640px) {
 /* FR : Réduire légèrement hauteur et logo sur téléphone ; un menu déplié trop grand défile à l’intérieur de l’en-tête au lieu de devenir inaccessible.
    EN : Slightly reduce height and logo on phones; an oversized expanded menu scrolls inside the header instead of becoming inaccessible. */
 .header-space { height:calc(6.5rem + 1px); }
 .site-header { max-height:calc(100dvh - var(--aa-admin-offset, 0px)); overflow-y:auto; }
 .site-header.is-compact .header-inner { min-height:5.5rem; }
 .an-app .site-header.is-compact .brand .an-logo { width:4rem; }
 .back-to-top { right:max(1rem, env(safe-area-inset-right)); bottom:max(1rem, env(safe-area-inset-bottom)); }
}
/* FR : Animer seulement les dimensions de l’en-tête si le système autorise les mouvements ; sinon le changement est immédiat et le retour en haut aussi.
   EN : Animate only header dimensions when the system allows motion; otherwise the change is immediate, as is returning to the top. */
@media (prefers-reduced-motion:no-preference) {
 .site-header .header-inner { transition:min-height .2s ease; }
 .an-app .site-header .brand .an-logo { transition:width .2s ease; }
}
