/*
Theme Name: PneuGroup Motion
Theme URI: https://example.com
Author: Smart Advice
Description: Thème WordPress léger + animations + WooCommerce + pages achat groupé (inscription, emails, compteur).
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: pneugroup
Tags: e-commerce, woocommerce, landing-page, responsive, custom-logo, custom-menu
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --bg:#070b14;
  --bg2:#0b1220;
  --card:rgba(15,26,45,.86);
  --text:#eaf0ff;
  --muted:#b6c2e2;
  --accent:#4da3ff;
  --accent2:#32d296;
  --border:rgba(255,255,255,.10);
  --shadow: 0 20px 70px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(77,163,255,.20), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(50,210,150,.16), transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x:hidden;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.container{width:min(1140px, 92vw); margin-inline:auto}
.card{
  border:1px solid var(--border);
  background: var(--card);
  border-radius:22px;
  box-shadow: var(--shadow);
}
.card.pad{padding:22px}

.site-header{
  position:sticky; top:0; z-index:100;
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,.68);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex; align-items:center; gap:16px; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px; color:var(--text)}
.brand:hover{text-decoration:none}
.brand-mark{
  width:36px;height:36px;border-radius:12px;
  background: radial-gradient(circle at 30% 30%, #7cc6ff 0%, #1d5bff 45%, #0a0f1f 100%);
  box-shadow: 0 10px 30px rgba(77,163,255,.25);
}
.brand-title{font-weight:900; letter-spacing:.2px}
.nav{margin-left:auto; display:flex; gap:14px; flex-wrap:wrap}
.nav a{color:var(--text); opacity:.92}
.nav a:hover{opacity:1; text-decoration:none}

.header-actions{display:flex; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:800;
  transform: translateZ(0);
}
.btn:hover{background: rgba(255,255,255,.10); text-decoration:none}
.btn.primary{border-color: rgba(77,163,255,.35); background: rgba(77,163,255,.18)}
.btn.success{border-color: rgba(50,210,150,.35); background: rgba(50,210,150,.16)}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--border);
  color: var(--muted);
  font-size:13px;
  background: rgba(255,255,255,.04);
}

.section{padding:26px 0}
.hero{padding:50px 0 22px}
.hero-grid{display:grid; grid-template-columns: 1.25fr .75fr; gap:18px; align-items:stretch}
@media (max-width: 900px){.hero-grid{grid-template-columns:1fr}}
.h1{font-size: clamp(28px, 3.1vw, 46px); line-height:1.05; margin:0 0 10px; font-weight:950}
.p{margin:0 0 14px; color: var(--muted)}
.kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px}
@media (max-width: 700px){.kpis{grid-template-columns:1fr}}
.kpi{padding:14px; border-radius:18px; border:1px solid var(--border); background: rgba(255,255,255,.04)}
.kpi b{display:block; font-size:20px}
.kpi span{color:var(--muted); font-size:13px}

.media-stack{display:grid; gap:12px}
.media-box{
  border:1px solid var(--border);
  border-radius:22px;
  background: rgba(255,255,255,.04);
  overflow:hidden;
  position:relative;
  min-height:180px;
}
.media-box .ph{
  padding:18px;
  color:var(--muted);
}
.media-box img{width:100%; height:100%; object-fit:cover; min-height:180px}
.glow{
  position:absolute; inset:-40px;
  background: radial-gradient(450px 300px at 30% 30%, rgba(77,163,255,.18), transparent 60%),
              radial-gradient(450px 300px at 70% 60%, rgba(50,210,150,.14), transparent 60%);
  pointer-events:none;
}

.notice{
  padding:12px 14px; border-radius:16px;
  border:1px dashed rgba(77,163,255,.45);
  background: rgba(77,163,255,.10);
  color: var(--text);
}

.pg-progress{margin:14px 0 8px}
.pg-bar{
  height:14px;border-radius:999px;
  background: rgba(255,255,255,.07);
  border:1px solid var(--border);
  overflow:hidden;
}
.pg-bar > i{
  display:block; height:100%; width:0%;
  background: linear-gradient(90deg, rgba(77,163,255,.95), rgba(50,210,150,.92));
  transition: width 900ms cubic-bezier(.2,.9,.2,1);
}
.pg-progress .meta{display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:13px; margin-top:8px; flex-wrap:wrap}

.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 700px){.form-grid{grid-template-columns:1fr}}
.field label{display:block; font-weight:800; margin:0 0 6px}
.field input, .field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
}
.field input:focus, .field textarea:focus{border-color: rgba(77,163,255,.55)}
.help{font-size:13px; color:var(--muted); margin-top:6px}

.toast{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.toast.ok{border-color: rgba(50,210,150,.45); background: rgba(50,210,150,.12)}
.toast.err{border-color: rgba(255,90,115,.5); background: rgba(255,90,115,.12)}

.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
@media (max-width: 900px){.grid{grid-template-columns:1fr}}

.footer{padding:26px 0; border-top:1px solid var(--border); color:var(--muted)}
.footer a{color:var(--text)}

/* Animations: subtle, modern */
@media (prefers-reduced-motion: no-preference){
  .float{animation: floaty 6s ease-in-out infinite}
  @keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
  .btn{transition: transform .18s ease, filter .18s ease}
  .btn:hover{transform: translateY(-1px); filter: brightness(1.06)}
  .card{transition: transform .25s ease, box-shadow .25s ease}
  .card.hover:hover{transform: translateY(-3px)}
  .reveal{opacity:0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease}
  .reveal.is-visible{opacity:1; transform: translateY(0)}
}
