/* Wolten Studio - feuille de style de base des sites générés.
   Utilisée dans le canvas de l'éditeur, l'aperçu et (phase 6) l'export. */
:root {
  --site-primary: #8B5CF6;
  --site-dark: #111018;
  --site-light: #F5F3FF;
  --site-muted: #6b6b76;
  --site-radius: 12px;
  --site-font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--site-font); color: #1c1b22; line-height: 1.6; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
p { margin: 0 0 1em; }
section { padding: 80px 0; }
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--site-muted); max-width: 640px; }
.center .lead { margin-inline: auto; }

.site-btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--site-primary); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--site-primary); }
.site-btn.outline { background: transparent; border-color: currentColor; color: inherit; }

/* En-tête / menu */
.site-header { background: #fff; border-bottom: 1px solid #ece9f5; padding: 16px 0; }
.site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-header.stacked .site-header-in { flex-direction: column; }
.site-logo { font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--site-primary); }

/* Hero */
.hero { background: var(--site-dark); color: #fff; text-align: center; padding: 120px 0; }
.hero .lead { color: #cfcade; margin-inline: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--site-radius); width: 100%; }
.hero-split { background: var(--site-light); }
.hero-split .hero-actions { justify-content: flex-start; }

/* Grilles et cartes */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; margin-top: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-site { background: #fff; border: 1px solid #ece9f5; border-radius: var(--site-radius); padding: 28px; }
.card-site img { border-radius: 8px; margin-bottom: 16px; width: 100%; }
.alt-bg { background: var(--site-light); }

/* Témoignages, équipe, galerie */
.quote { font-style: italic; margin: 0 0 16px; }
.quote-author { font-weight: 700; font-style: normal; }
.team-card { text-align: center; }
.team-card img { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; margin: 0 auto 14px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Tarifs */
.price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 16px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--site-muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 6px 0; border-bottom: 1px solid #f0edf8; }
.plan.featured { border: 2px solid var(--site-primary); }

/* FAQ */
.faq details { border-bottom: 1px solid #ece9f5; padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin: 12px 0 0; color: var(--site-muted); }

/* Contact / formulaire */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; }
.site-form { display: grid; gap: 14px; }
.site-form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.site-form input, .site-form textarea { width: 100%; padding: 11px 14px; border: 1px solid #d9d5e8; border-radius: 8px; font: inherit; }
.site-form textarea { min-height: 120px; }
.site-form button { justify-self: start; cursor: pointer; font: inherit; }
.wolten-note { background: #fff7e0; border: 1px dashed #d9a400; color: #6b5200; padding: 8px 12px; border-radius: 8px; font-size: .85rem; }

/* CTA / footer */
.cta { background: var(--site-primary); color: #fff; text-align: center; }
.cta .site-btn { background: #fff; color: var(--site-primary); border-color: #fff; }
.site-footer { background: var(--site-dark); color: #cfcade; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; }
.site-footer .grid-3 { margin-top: 0; }
.copyright { border-top: 1px solid #2a2438; margin-top: 36px; padding-top: 20px; font-size: .85rem; }

/* Tablette */
@media (max-width: 992px) {
  section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 90px 0; }
}
/* Mobile */
@media (max-width: 480px) {
  section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-header-in { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 14px; }
  .hero { padding: 70px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .site-btn { text-align: center; }
}

/* ---- Variantes de blocs (phase 5) ---- */
.hero-gradient { background: linear-gradient(135deg, var(--site-dark), var(--site-primary)); }
.split.reverse > :first-child { order: 2; }
.numbered { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.numbered li { counter-increment: step; background: #fff; border: 1px solid #ece9f5; border-radius: var(--site-radius); padding: 28px; position: relative; }
.numbered li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--site-primary); color: #fff; font-weight: 700; margin-bottom: 14px; }
.stats { text-align: center; }
.stat-n { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--site-primary); line-height: 1.1; }
.big-quote { font-size: clamp(1.3rem, 3vw, 1.9rem); font-style: italic; max-width: 760px; margin: 0 auto 16px; }
.cta-dark { background: var(--site-dark); }
.cta-dark .site-btn { background: var(--site-primary); color: #fff; border-color: var(--site-primary); }
.footer-min { padding: 36px 0; }
.footer-min .site-nav { justify-content: center; margin-bottom: 8px; }
.footer-min .copyright { border-top: 0; margin-top: 8px; padding-top: 0; }
.banner { background: var(--site-primary); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }
@media (max-width: 992px) { .numbered { grid-template-columns: 1fr; } }

/* ---------- Animations (activées par site.js ; sans JavaScript tout reste visible) ---------- */
html { scroll-behavior: smooth; }
.js-anim [data-anim] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; will-change: opacity, transform; }
.js-anim [data-anim="fade-up"] { transform: translateY(30px); }
.js-anim [data-anim="fade-down"] { transform: translateY(-30px); }
.js-anim [data-anim="slide-left"] { transform: translateX(-48px); }
.js-anim [data-anim="slide-right"] { transform: translateX(48px); }
.js-anim [data-anim="zoom"] { transform: scale(.9); }
.js-anim [data-anim="blur"] { filter: blur(10px); transform: scale(.98); }
.js-anim [data-anim].is-in { opacity: 1; transform: none; filter: none; }
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(30, 20, 60, .16); }
.hover-zoom { overflow: hidden; border-radius: var(--site-radius); }
.hover-zoom img { transition: transform .5s ease; }
.hover-zoom:hover img { transform: scale(1.06); }
.pulse { animation: wsPulse 2.4s ease-in-out infinite; }
.float { animation: wsFloat 5s ease-in-out infinite; }
.gradient-text { background: linear-gradient(90deg, var(--site-primary), #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes wsPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .45); } 50% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); } }
@keyframes wsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim [data-anim] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .pulse, .float { animation: none; }
  .hover-lift:hover, .hover-zoom:hover img { transform: none; }
}

/* ---------- Plus de confort ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(30, 20, 60, .10); }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .js-nav .nav-burger { display: flex; margin-left: auto; }
  .js-nav .site-header-in { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .js-nav .site-header .site-nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 4px; }
  .js-nav .site-header.nav-open .site-nav { display: flex; }
  .js-nav .site-header .site-nav a { padding: 10px 4px; }
  .js-nav .site-header .site-btn { display: none; }
}
:focus-visible { outline: 3px solid var(--site-primary); outline-offset: 3px; border-radius: 4px; }
.wolten-form-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.wolten-form-msg.ok { background: #e8f8ee; color: #1a6b3a; }
.wolten-form-msg.err { background: #fdecec; color: #9b2222; }
.back-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--site-primary); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; transform: translateY(10px); z-index: 60; }
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 60; background: #25D366; color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.topbar-ann { background: var(--site-primary); color: #fff; text-align: center; padding: 9px 16px; font-size: .92rem; }
.topbar-ann a { color: #fff; font-weight: 600; }

* { box-sizing: border-box; } body {margin: 0;}