/* ==========================================================================
   Temposia — page d'attente (vitrine www.sabta-temposia.fr)
   Identité Sabta : violet / argent, atome. Ton sobre, professionnel.
   CSS handcrafté, sans framework ni dépendance externe (page légère + privée :
   aucune requête vers un CDN ou un service tiers, aucun tracker).
   ========================================================================== */

:root {
  --violet: #5a2bd6;
  --violet-deep: #3a1d9e;
  --violet-soft: #ede9fb;
  --indigo-ink: #191334;       /* texte titres */
  --ink: #2a2745;              /* texte courant */
  --muted: #5d5a73;            /* texte secondaire */
  --silver: #aeb4c6;
  --silver-line: #e4e6f0;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-band: #f3f1fb;
  --white: #ffffff;
  --ok: #1f8a5b;
  --err: #b4233a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(25, 19, 52, .06), 0 2px 8px rgba(25, 19, 52, .05);
  --shadow-md: 0 8px 30px rgba(58, 29, 158, .12);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--indigo-ink); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
a { color: var(--violet-deep); }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--violet); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--silver-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 72px; height: 72px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.18rem; color: var(--indigo-ink); letter-spacing: -.02em; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff; box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--violet-deep); border-color: var(--silver-line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 50% -160px, var(--violet-soft) 0%, rgba(237,233,251,0) 70%),
    var(--bg);
  padding: 24px 0 64px;
  text-align: center;
}
.hero .atom {
  width: 200px; height: 200px; margin: 0 auto 8px;
  filter: drop-shadow(0 10px 24px rgba(58,29,158,.22));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 16ch; margin: 0 auto; }
.hero .lede {
  margin: 22px auto 0; max-width: 60ch; font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink); font-weight: 500;
}
.hero .promise { margin: 16px auto 0; max-width: 62ch; color: var(--muted); font-size: 1.02rem; }
.hero-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: .92rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.section-intro { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 40px; }

/* ---------- Bénéfices ---------- */
.benefits { background: var(--bg-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--silver-line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet-deep); margin-bottom: 16px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Focus évaluation HAS (sobre, mis en avant) ---------- */
.focus { background: var(--bg); }
.focus-card {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--violet-soft) 0%, #fff 100%);
  border: 1px solid var(--silver-line); border-radius: var(--radius);
  padding: 44px 36px; box-shadow: var(--shadow-sm);
}
.focus-kicker {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--violet-deep);
  background: #fff; border: 1px solid var(--silver-line); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px;
}
.focus-card h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 12px; }
.focus-card p { max-width: 60ch; margin: 0 auto; color: var(--muted); font-size: 1.02rem; }

/* ---------- Bandeau de confiance ---------- */
.trust { background: var(--bg-band); padding: 30px 0; }
.trust-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px;
}
.trust-list li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--silver-line); border-radius: 999px;
  padding: 9px 16px; font-size: .92rem; font-weight: 600; color: var(--indigo-ink);
  box-shadow: var(--shadow-sm);
}
.trust-list svg { width: 17px; height: 17px; color: var(--violet-deep); }

/* ---------- Formulaires ---------- */
.form-section.alt { background: var(--bg-soft); }
.form-card {
  max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid var(--silver-line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--indigo-ink); margin-bottom: 7px; font-size: .96rem; }
.field .opt { color: var(--muted); font-weight: 500; font-size: .85rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--silver); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(90,43,214,.16);
}
.field textarea { min-height: 110px; resize: vertical; }

/* Honeypot anti-spam — masqué aux humains, ignoré des lecteurs d'écran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--violet); }
.consent label { font-size: .9rem; color: var(--muted); font-weight: 500; line-height: 1.5; }

.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e8f6ef; color: var(--ok); border: 1px solid #bfe6d2; }
.form-msg.err { background: #fceef0; color: var(--err); border: 1px solid #f3ccd3; }
.finalite { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--indigo-ink); color: #cfcbe6; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; }
.footer-meta { font-size: .86rem; color: #9c97c0; }
.footer-brand { font-weight: 700; color: #fff; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal a.back { display: inline-block; margin-top: 36px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-inner .btn { padding: 10px 16px; font-size: .92rem; }
  .brand-sub { display: none; }
  section { padding: 48px 0; }
  .hero { padding: 28px 0 48px; }
  .form-card { padding: 26px 20px; }
}
