/*
Theme Name: Poster
Theme URI: https://posterapp.eu
Author: Versatile
Author URI: https://versatile.lu
Description: Site vitrine de Poster, l'appli d'affiches de match pour les clubs amateurs. Thème bloc (FSE) aux couleurs de l'appli : dégradé bleu à 135° avec grain léger, Barlow Condensed italique pour les titres, Montserrat pour le texte.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: Tous droits réservés
Text Domain: poster
*/

/* ---------- Fond : dégradé de l'appli + grain (fixe, y compris sur iPhone) ---------- */
html { background: #010C22; }
body { background: transparent; min-height: 100vh; }
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		linear-gradient(135deg, #010C22 0%, #0A3A78 55%, #2988DB 100%);
}
::selection { background: #8DC0FB; color: #010C22; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #8DC0FB; outline-offset: 3px; }

/* ---------- En-tête ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.poster-header { position: relative; border-bottom: 1px solid rgba(255,255,255,.08); }
/* le flou est sur un calque à part : sinon le menu mobile plein écran reste coincé dans l'en-tête */
.poster-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(1, 12, 34, .55); }
.poster-header .wp-block-site-logo img, .poster-header .poster-logo img { height: 34px; width: auto; }
.poster-header .wp-block-navigation a { font-weight: 600; font-size: 15px; text-decoration: none; }
.poster-header .wp-block-navigation a:hover { color: #8DC0FB; }
.wp-block-navigation__responsive-container.is-menu-open { background: #010C22 !important; color: #fff !important; padding: 24px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { color: #fff; font-family: var(--wp--preset--font-family--barlow); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 30px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px !important; padding-top: 30px; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: #fff; }
[id] { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

/* ---------- Boutons : style des boutons de l'appli ---------- */
.wp-block-button__link { font-family: var(--wp--preset--font-family--barlow); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; border-radius: 4px; transition: transform .15s, background .15s, color .15s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link { border: 2px solid rgba(255,255,255,.85); background: transparent; color: #fff; }
.is-style-outline > .wp-block-button__link:hover { background: #fff; color: #0B1F40; }

/* ---------- Titres ---------- */
.poster-kicker { font-family: var(--wp--preset--font-family--barlow); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8DC0FB; }
.poster-accent { color: #8DC0FB; }

/* ---------- Accroche ---------- */
.poster-hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.poster-hero h1 { line-height: .95; margin: 0; }
.poster-phone { position: relative; max-width: 330px; margin: 0 auto; border-radius: 38px; padding: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.poster-phone video, .poster-phone img { display: block; width: 100%; height: auto; border-radius: 30px; aspect-ratio: 9 / 16; object-fit: cover; background: #0A3A78; }
.poster-sports { font-size: 14px; opacity: .8; letter-spacing: .02em; }

/* ---------- Étapes ---------- */
.poster-steps { gap: 22px !important; }
.poster-step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px !important; height: 100%; }
.poster-step .wp-block-image { margin: 0 0 16px; }
.poster-step .wp-block-image img { border-radius: 12px; width: 100%; height: auto; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.poster-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; background: #2988DB; font-family: var(--wp--preset--font-family--barlow); font-style: italic; font-weight: 800; font-size: 24px; margin: 0 0 8px; }
.poster-step h3 { margin: 0 0 6px; }
.poster-step p { margin: 0; font-size: 15px; opacity: .9; }

/* ---------- Modèles ---------- */
.poster-models { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.poster-models figure { margin: 0 !important; }
.poster-models img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 16px 34px rgba(0,0,0,.4); transition: transform .2s; }
.poster-models img:hover { transform: translateY(-4px) rotate(-.5deg); }
.poster-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.poster-chips p { margin: 0 !important; padding: 6px 12px; border: 2px solid rgba(255,255,255,.75); border-radius: 4px; font-family: var(--wp--preset--font-family--barlow); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 15px; }
@media (max-width: 781px) { .poster-models { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tarifs ---------- */
.poster-price { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 28px !important; height: 100%; }
.poster-price.is-club { background: #fff; color: #0B1F40; }
.poster-price.is-club .poster-kicker { color: #2988DB; }
.poster-price .poster-amount { font-family: var(--wp--preset--font-family--barlow); font-style: italic; font-weight: 800; font-size: clamp(54px, 7vw, 72px); line-height: 1; margin: 6px 0 4px; }
.poster-price .poster-amount span { font-size: .38em; letter-spacing: .02em; }
.poster-price ul { padding-left: 1.1em; margin: 14px 0 0; }
.poster-price li { margin: 6px 0; }

/* ---------- Contact ---------- */
.poster-contact { background: rgba(1,12,34,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; }
.poster-contact a:not(.wp-block-button__link) { color: #fff; }

/* ---------- Pied de page ---------- */
.poster-footer { border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.poster-footer a { color: #CFE4FF; }

/* ---------- Apparition au défilement (sans JavaScript lourd) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.poster-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
	.poster-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- v1.1 : liens de compte, FAQ, pages de texte, pied de page ---------- */
.poster-header-cta .wp-block-button__link { padding: 9px 16px; font-size: 16px; white-space: nowrap; }
.poster-header-cta .is-style-outline .wp-block-button__link { border-width: 2px; padding: 7px 14px; }
@media (max-width: 600px) { .poster-header-cta .poster-cta-login { display: none !important; } .poster-header-cta .wp-block-button__link { font-size: 14px; padding: 8px 12px; } }
.poster-footer-links a { white-space: nowrap; display: inline-block; }
.poster-cta { display: flex; align-items: center; gap: 16px; }
.poster-cta-link { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.poster-cta-link:hover { color: #8DC0FB; }
.poster-cta-btn { padding: 9px 16px !important; font-size: 16px !important; white-space: nowrap; background: #fff; color: #0B1F40 !important; text-decoration: none; }
@media (max-width: 600px) { .poster-cta-link { display: none; } .poster-cta-btn { font-size: 14px !important; padding: 8px 12px !important; } }
.poster-faq details { border-bottom: 1px solid rgba(255,255,255,.14); padding: 16px 0; }
.poster-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.poster-faq summary::-webkit-details-marker { display: none; }
.poster-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--barlow); font-style: italic; font-size: 26px; line-height: 1; color: #8DC0FB; }
.poster-faq details[open] summary::after { content: "–"; }
.poster-faq details p { margin: 10px 0 0; opacity: .92; }
.poster-prose h2 { font-size: 28px; margin-top: 2em; }
.poster-prose p, .poster-prose li { opacity: .95; }
.poster-todo { background: #F2C230; color: #111; padding: 0 .3em; border-radius: 3px; font-weight: 700; }
.poster-footer-links a { margin-right: 14px; }
.poster-powered a { color: #fff; font-weight: 700; }
.poster-features { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.poster-feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 22px !important; }
.poster-feature h3 { font-size: 22px; margin: 0 0 6px; }
.poster-feature p { margin: 0; font-size: 15px; opacity: .9; }
@media (max-width: 781px) { .poster-features { grid-template-columns: 1fr; } }
