/*
Theme Name: POPORAMAA
Author: POPORAMAA
Description: Thème blog musique pop aux couleurs de POPORAMAA : bleu nuit, corail, jaune et crème, police Poppins. Thème à blocs (éditeur de site), 3 accueils et 3 styles de pages rubriques au choix (Nuit immersive, Pop collage, Collage 3D), 3 modèles d'article, mode clair / sombre, agenda, débat, newsletter. Compatible WordPress 6.4 et plus. « La pop a son mot à dire. »
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Version: 6.0.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poporamaa
Tags: blog, news, block-patterns, full-site-editing, custom-colors, wide-blocks
*/

/* ---------- Structure ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
main.wp-block-group > * { margin-block-start: 0; }
.poporamaa-liste-simple { list-style: none; padding-left: 0; }
.poporamaa-liste-simple li { margin-bottom: .35em; }
.poporamaa-liste-simple a, .wp-block-heading a, .poporamaa-pied a { text-decoration: none; }
.poporamaa-liste-simple a:hover, .wp-block-heading a:hover { color: var(--wp--preset--color--corail); }
.poporamaa-etiquette p { margin: 0; }
.poporamaa-tete-article { padding-bottom: calc(var(--wp--preset--spacing--70) + 90px) !important; }
.poporamaa-image-une { margin-top: -80px !important; position: relative; z-index: 2; }
.poporamaa-top-ligne { border-bottom: 1px solid rgba(255,249,241,.15); }
.poporamaa-top-ligne p { margin: 0; }

/* ---------- Relief (ombre décalée signature) ---------- */
.is-style-relief-corail { box-shadow: 12px 12px 0 var(--wp--preset--color--corail) !important; }
.is-style-relief-jaune  { box-shadow: 12px 12px 0 var(--wp--preset--color--jaune) !important; }
.wp-block-image.is-style-relief-corail img, .wp-block-image.is-style-relief-jaune img { display:block; }
.wp-block-image.is-style-relief-corail, .wp-block-image.is-style-relief-jaune { box-shadow:none !important; }
.wp-block-image.is-style-relief-corail img { box-shadow: 12px 12px 0 var(--wp--preset--color--corail); }
.wp-block-image.is-style-relief-jaune img  { box-shadow: 12px 12px 0 var(--wp--preset--color--jaune); }
.wp-block-post-featured-image img { transition: transform .35s ease; }
.wp-block-post-featured-image:hover img { transform: scale(1.03); }
.wp-block-post-featured-image { overflow: hidden; }

/* ---------- Titres avec relief corail ---------- */
.is-style-titre-relief { text-shadow: 4px 4px 0 var(--wp--preset--color--corail); }

/* ---------- Étiquettes de rubrique ---------- */
.wp-block-post-terms.is-style-etiquette a,
.wp-block-post-terms.is-style-etiquette-jaune a,
.is-style-etiquette a {
  display:inline-block; background: var(--wp--preset--color--corail); color: var(--wp--preset--color--bleu-nuit) !important;
  padding: .28em .8em; border-radius: 8px; text-decoration:none; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; font-size: .72rem; margin: 0 .3em .3em 0;
}
.wp-block-post-terms[class*=is-style-etiquette] .wp-block-post-terms__separator { display:none; }
.wp-block-post-terms.is-style-etiquette-jaune a { background: var(--wp--preset--color--jaune); color: var(--wp--preset--color--bleu-nuit) !important; }

/* ---------- Cartes d'articles ---------- */
.poporamaa-carte { background: #fff; border-radius: 18px; overflow: hidden; height: 100%;
  box-shadow: 0 1px 0 rgba(23,26,53,.06); transition: transform .25s ease, box-shadow .25s ease; }
.poporamaa-carte:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--wp--preset--color--jaune); }
.poporamaa-carte .wp-block-post-featured-image { margin:0; }
.poporamaa-carte .wp-block-post-title a { text-decoration: none; }
.poporamaa-carte .wp-block-post-title a:hover { color: var(--wp--preset--color--corail); }

/* ---------- Décors (ondes, étincelles) ---------- */
.poporamaa-decor { position: relative; overflow: hidden; }
.poporamaa-decor::before, .poporamaa-decor::after { content:""; position:absolute; pointer-events:none; background-repeat:no-repeat; background-size:contain; }
.poporamaa-decor::before { width: 200px; height: 200px; left: -50px; bottom: -50px; background-image: var(--poporamaa-ondes); }
.poporamaa-decor::after  { width: 200px; height: 200px; right: -50px; top: -50px; background-image: var(--poporamaa-ondes); transform: rotate(180deg); }
.poporamaa-decor > * { position: relative; z-index: 1; }
.poporamaa-etincelle { display:inline-block; width:.8em; height:.8em; background: var(--poporamaa-etincelle) center/contain no-repeat; vertical-align: middle; }

/* pas d'ondes en bas à gauche du pied de page */
.poporamaa-pied::before { display: none; }

/* ---------- En-tête ---------- */
.poporamaa-entete { position: sticky; top: 0; z-index: 50; }
body.admin-bar .poporamaa-entete { top: 32px; }
.poporamaa-entete .wp-block-navigation a { font-weight: 600; }
.poporamaa-entete .wp-block-navigation a:hover { color: var(--wp--preset--color--corail); }
.poporamaa-entete .wp-block-site-logo img { height: auto; }

/* ---------- Boutons ---------- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease; }
.wp-block-button__link:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--wp--preset--color--jaune); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { box-shadow: 4px 4px 0 var(--wp--preset--color--corail); }

/* ---------- Citation ---------- */
.wp-block-quote, .wp-block-pullquote blockquote { position: relative; }
.wp-block-pullquote { border-top: 4px solid var(--wp--preset--color--corail); border-bottom: 4px solid var(--wp--preset--color--corail); }

/* ---------- Pagination, formulaires ---------- */
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { font-weight:700; }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--corail); color: var(--wp--preset--color--creme); border-radius: 8px; padding: .2em .6em; }
input[type=email], input[type=text], input[type=search] { border-radius: 12px; border: 2px solid var(--wp--preset--color--bleu-nuit); padding: .7em 1em; font-family: inherit; }
.wp-block-search__button { border-radius: 12px !important; }

@media (max-width: 781px) {
  .poporamaa-entete > .wp-block-group { flex-wrap: nowrap; gap: 14px; }
  .poporamaa-entete .poporamaa-logo img { width: 150px !important; }
  .poporamaa-entete .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
  .poporamaa-decor::before, .poporamaa-decor::after { width: 140px; height: 140px; }
  body.admin-bar .poporamaa-entete { top: 46px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
