/*
Theme Name: StagePro Association
Theme URI: https://www.stageprosl.fr/
Author: StagePro Son&Lumières
Description: Thème sur mesure pour la location de matériel de sonorisation et d’éclairage avec installation.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: stagepro-association
*/

:root {
  --sp-bg: #06070d;
  --sp-surface: #0d1220;
  --sp-surface-2: #121a2b;
  --sp-text: #f7f8fc;
  --sp-muted: #aeb7ca;
  --sp-cyan: #18b7ff;
  --sp-violet: #9a5cff;
  --sp-border: rgba(255,255,255,.12);
  --sp-shadow: 0 18px 50px rgba(0,0,0,.28);
  --sp-radius: 20px;
  --sp-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--sp-cyan); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover, a:focus-visible { color: #74d7ff; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 2rem), var(--sp-width)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.eyebrow { color: var(--sp-cyan); font-size: .875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--sp-border);
  background: rgba(6,7,13,.88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--sp-text); font-weight: 800; text-decoration: none; }
.brand img, .custom-logo { width: 48px; height: 48px; object-fit: contain; }
.site-nav ul { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--sp-muted); font-size: .93rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--sp-text); }
.site-nav .nav-cta { padding: .62rem 1rem; border-radius: 999px; color: #06070d; background: linear-gradient(120deg,var(--sp-cyan),var(--sp-violet)); }
.nav-toggle { display: none; padding: .65rem; border: 1px solid var(--sp-border); border-radius: 12px; color: #fff; background: transparent; font: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem,10vw,9rem) 0 clamp(4rem,8vw,7rem);
  background:
    radial-gradient(circle at 12% 30%, rgba(24,183,255,.16), transparent 34%),
    radial-gradient(circle at 84% 24%, rgba(154,92,255,.16), transparent 36%);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom,black,transparent); }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { max-width: 850px; margin: .7rem 0 1.1rem; font-size: clamp(2.6rem,7vw,5.7rem); line-height: 1.08; letter-spacing: -.05em; }
.gradient-text { color: transparent; background: linear-gradient(100deg,var(--sp-cyan),#6888ff,var(--sp-violet)); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 690px; color: var(--sp-muted); font-size: clamp(1.08rem,2vw,1.28rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.button, .wp-block-button__link, button[type="submit"], input[type="submit"] { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .78rem 1.25rem; border: 0; border-radius: 999px; color: #06070d; background: linear-gradient(120deg,var(--sp-cyan),var(--sp-violet)); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.secondary { color: var(--sp-text); border: 1px solid var(--sp-border); background: transparent; }

.section { padding: clamp(4rem,8vw,7rem) 0; }
.section.alt { background: #090c15; }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section h2, .page-header h1 { margin: .35rem 0 .8rem; font-size: clamp(2rem,4vw,3.45rem); line-height: 1.08; letter-spacing: -.035em; }
.section-head p, .muted { color: var(--sp-muted); }
.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { padding: 1.45rem; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); box-shadow: var(--sp-shadow); }
.card h3 { margin: 0 0 .55rem; font-size: 1.26rem; }
.card p { margin: .45rem 0; color: var(--sp-muted); }
.card-link { display: inline-flex; margin-top: .75rem; font-weight: 800; }
.price { margin: .9rem 0 .15rem; color: #fff; font-size: 1.42rem; font-weight: 900; }
.price-note { font-size: .875rem; color: var(--sp-muted); }
.tag { display: inline-flex; padding: .3rem .65rem; border: 1px solid rgba(24,183,255,.28); border-radius: 999px; color: var(--sp-cyan); background: rgba(24,183,255,.07); font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.notice { margin: 1.4rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--sp-cyan); border-radius: 0 12px 12px 0; background: rgba(24,183,255,.08); color: #dceeff; }
.feature-list { padding-left: 1.2rem; color: var(--sp-muted); }
.feature-list li + li { margin-top: .35rem; }

.page-main { min-height: 60vh; padding: 4.5rem 0 6rem; }
.page-header { margin-bottom: 2.2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--sp-border); }
.entry-content { color: var(--sp-text); }
.entry-content > * { max-width: 820px; margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--sp-width); }
.entry-content h2 { margin-top: 2.5rem; font-size: clamp(1.7rem,3vw,2.4rem); line-height: 1.15; }
.entry-content h3 { margin-top: 2rem; font-size: 1.35rem; }
.entry-content p, .entry-content li { color: #d7dcec; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .8rem; border: 1px solid var(--sp-border); text-align: left; }
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .entry-content textarea, .entry-content select, .contact-panel input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .contact-panel textarea, .contact-panel select { width: 100%; padding: .85rem 1rem; border: 1px solid var(--sp-border); border-radius: 12px; color: var(--sp-text); background: var(--sp-surface-2); font: inherit; }
.entry-content textarea, .contact-panel textarea { min-height: 150px; resize: vertical; }
.entry-content label, .contact-panel label { display: block; margin: .75rem 0 .3rem; color: #fff; font-weight: 750; }
.contact-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.2rem; align-items: start; }
.contact-panel { padding: 1.6rem; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: var(--sp-surface); }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--sp-border); background: #04050a; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1rem; }
.site-footer p, .site-footer a { color: var(--sp-muted); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: .35rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--sp-border); color: #7f899e; font-size: .88rem; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1rem; border-bottom: 1px solid var(--sp-border); background: rgba(6,7,13,.98); }
  .site-nav.open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .site-nav a { display: block; padding: .65rem; }
  .nav-toggle { display: inline-flex; }
  .contact-split, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  body.admin-bar .site-header { top: 46px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 4.8rem; }
  .button-row .button { width: 100%; }
  .card { padding: 1.2rem; }
  .entry-content table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Keyboard access, small screens and form states. */
:focus-visible { outline: 3px solid var(--sp-cyan); outline-offset: 4px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100001; padding: .7rem 1rem; background: var(--sp-bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-nav a[aria-current="page"] { color: var(--sp-text); text-decoration: underline; }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible, .button:not(.secondary):hover, .button:not(.secondary):focus-visible, .wp-block-button__link:hover { color: #06070d; filter: brightness(1.12); }
.button.secondary:hover, .button.secondary:focus-visible { color: var(--sp-text); border-color: var(--sp-cyan); }
.brand { min-width: 0; }
.brand span { line-height: 1.3; }
.brand img { flex-shrink: 0; }
.card, .entry-content, .contact-panel, .contact-split > *, .footer-grid > * { min-width: 0; overflow-wrap: anywhere; }
.nav-toggle { min-width: 60px; min-height: 44px; flex-shrink: 0; cursor: pointer; }
:is(.entry-content, .contact-panel) input:is([type="checkbox"], [type="radio"]) { width: auto; accent-color: var(--sp-cyan); }
.wpforms-container { --wpforms-field-background-color: #121a2b; --wpforms-field-text-color: #f7f8fc; --wpforms-field-label-color: #f7f8fc; --wpforms-field-sublabel-color: #aeb7ca; --wpforms-field-description-color: #aeb7ca; --wpforms-field-border-color: #647087; --wpforms-label-error-color: #ff9a9a; --wpforms-button-background-color: #18b7ff; --wpforms-button-text-color: #06070d; }
.wpforms-container .wpforms-field-label, .wpforms-container .wpforms-field-sublabel { color: var(--sp-text); }
.wpforms-container .wpforms-error, .wpforms-container .wpforms-required-label { color: #ff9a9a; }
.wpforms-container .wpforms-confirmation-container-full { color: #123120; background: #e6f6ed; }
@media (max-width: 1100px) {
  .site-nav { max-height: calc(100dvh - 8rem); overflow-y: auto; }
  html:not(.has-navigation-js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.has-navigation-js) .site-nav { display: block; position: static; width: 100%; }
  html:not(.has-navigation-js) .nav-toggle { display: none; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
  .header-inner { gap: .6rem; }
  .brand { font-size: .9375rem; gap: .5rem; }
  .brand img { width: 40px; height: 40px; }
  .contact-panel { padding: 1.1rem; }
}
