/*
Theme Name: Vivre la Polynésie
Template: twentytwentyfive
Version: 0.7.1
Description: Ossature éditoriale locale du blog Vivre la Polynésie.
*/
:root { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
.sopota-resume { border-left: 4px solid #22675d; background: #f1f6f4; padding: 1.1rem 1.35rem; margin: 1.7rem 0; }
.sopota-resume h2 { font-size: 1.3rem; margin-top: 0; }
.sopota-demo { font-size: .9rem; color: #555; }
.sopota-rubriques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sopota-rubriques > div { padding: 1.2rem; border: 1px solid #ddd; border-radius: 5px; }
.sopota-rubriques h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.sopota-rubriques p { margin: 0; font-size: .95rem; }
.wp-block-navigation { font-size: .95rem; }
.home header.wp-block-template-part,
.sopota-standard-page header.wp-block-template-part,
.sopota-article-page header.wp-block-template-part { position: relative!important; }
.sopota-language-switcher { position: absolute; z-index: 90; width: 74px; margin: 0; color: #123f3a; font: 650 15px/1.2 Manrope, sans-serif; }
.sopota-language-switcher > summary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid rgba(18,63,58,.42); border-radius: 999px; background: rgba(255,249,230,.92); box-shadow: 0 2px 8px rgba(18,63,58,.1); cursor: pointer; list-style: none; }
.sopota-language-switcher > summary::-webkit-details-marker { display: none; }
.sopota-language-switcher > summary span { font-size: 12px; }
.sopota-language-menu { position: absolute; top: calc(100% + 7px); right: 0; min-width: 198px; padding: 6px; border: 1px solid rgba(18,63,58,.22); border-radius: 10px; background: rgba(255,249,230,.98); box-shadow: 0 8px 24px rgba(18,63,58,.18); }
.sopota-language-current, .sopota-language-unavailable { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 11px; border-radius: 6px; white-space: nowrap; }
.sopota-language-current { color: #123f3a; font-weight: 750; }
.sopota-language-unavailable { color: rgba(18,63,58,.78); }
.sopota-language-unavailable small { color: #687d78; font-size: 11px; font-weight: 500; }
@media (max-width: 600px) {
  .sopota-language-switcher { width: 54px; font-size: 14px; }
  .sopota-language-switcher > summary { min-height: 36px; padding: 6px 8px; }
  .sopota-language-menu { min-width: 184px; }
}
a:focus-visible, button:focus-visible { outline: 3px solid #22675d; outline-offset: 4px; }
@media (max-width: 650px) { .sopota-rubriques { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

/* Journal transparent commun à toutes les pages. */
.sopota-journal { position: fixed; z-index: 40; top: calc(88vh - 32px); left: 0; display: flex; align-items: center; width: 100%; max-width: 100%; height: 64px; overflow: hidden; background: transparent; pointer-events: none; }
.sopota-journal__viewport { width: 100%; overflow: hidden; }
.sopota-journal__track { display: flex; width: max-content; align-items: center; animation: sopota-journal-defilement 16s linear infinite; }
.sopota-journal__group { display: flex; flex: 0 0 auto; align-items: center; width: max-content; }
.sopota-journal__message { display: block; flex: 0 0 auto; margin-right: clamp(72px, 12vw, 168px); color: var(--sopota-journal-color, #123f3a); font-size: 25px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 3px rgba(255,255,255,.98), 0 0 9px rgba(255,255,255,.9); }
.sopota-journal__toggle { position: absolute; z-index: 1; top: 50%; right: 10px; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border: 1px solid rgba(18,63,58,.75); border-radius: 50%; background: rgba(255,255,255,.5); color: #123f3a; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; pointer-events: auto; }
.sopota-journal__toggle:focus-visible { outline: 3px solid #123f3a; outline-offset: 3px; }
.sopota-journal.is-paused .sopota-journal__track { animation-play-state: paused; }
@keyframes sopota-journal-defilement { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sopota-journal__track { animation: none; transform: none; justify-content: center; width: 100%; } .sopota-journal__group { display: none; } .sopota-journal__group:first-child { display: flex; justify-content: center; width: 100%; } .sopota-journal__message + .sopota-journal__message { display: none; } }

