/* ===========================
   UNIVSTAND — Global Styles
   Charte graphique 2026
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --violet: #4C27FD;
  --violet-dark: #3A1CE0;
  --violet-light: #6B4FFE;
  --violet-pale: #EEE9FF;
  --black: #0D0D0D;
  --dark: #1A1A1A;
  --mid: #2C2C2C;
  --gray: #6B6B6B;
  --light-gray: #F2F2F2;
  --border: #E0E0E0;
  --white: #FFFFFF;
  --success: #22C55E;
  --warning: #F59E0B;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Inter', sans-serif; /* fallback - And Then It Ends */

  --nav-h: 72px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(76,39,253,0.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVIGATION ---- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
  width: 38px; height: 38px;
}
.nav-logo-text {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px;
  color: var(--black);
}
.nav-logo-text span { color: var(--violet); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--dark);
  font-size: 0.875rem; font-weight: 400;
  padding: 0.4rem 0.85rem; border-radius: var(--radius);
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--light-gray); color: var(--violet); }
.nav-links a.active { color: var(--violet); font-weight: 500; }
.nav-cta {
  background: var(--violet); color: var(--white) !important;
  border-radius: var(--radius); font-weight: 500 !important;
  padding: 0.5rem 1.25rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--violet-dark) !important; color: white !important; }
.nav-mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.4rem; color: var(--dark);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.btn-violet { background: var(--violet); color: white; }
.btn-violet:hover { background: var(--violet-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--mid); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--dark); }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }
.btn-white { background: white; color: var(--violet); }
.btn-white:hover { background: var(--violet-pale); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* ---- LAYOUT ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.pt-nav { padding-top: var(--nav-h); }

/* ---- TYPOGRAPHY ---- */
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--violet-pale); color: var(--violet);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border-radius: 20px; margin-bottom: 1rem;
}
h1.display { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -1px; }
h2.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; color: var(--gray); max-width: 560px; line-height: 1.7; }
.text-violet { color: var(--violet); }
.text-gray { color: var(--gray); }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ---- CARDS ---- */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: all 0.25s;
}
.card:hover { border-color: var(--violet); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; background: var(--violet-pale);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.2rem; font-size: 1.4rem;
}

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ---- FOOTER ---- */
#footer {
  background: var(--black); color: white;
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 0.8rem; }
.footer-col h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--violet-light); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.admin-trigger { font-size: 0.72rem; color: rgba(255,255,255,0.2); cursor: pointer; background: none; border: none; font-family: inherit; transition: color 0.2s; }
.admin-trigger:hover { color: rgba(255,255,255,0.5); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--gray); padding: 0.8rem 0;
}
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb span { color: var(--border); }

/* ---- HERO VARIANTS ---- */
.hero-page {
  background: var(--black); padding: 5rem 0 4rem;
  margin-top: var(--nav-h);
}
.hero-page h1 { color: white; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.5px; }
.hero-page p { color: rgba(255,255,255,0.6); max-width: 560px; font-size: 1rem; margin-top: 0.8rem; }

/* ---- FORM ---- */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--dark); margin-bottom: 0.35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.65rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--dark);
  background: white; outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(76,39,253,0.1); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-required { color: var(--violet); }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--dark); color: white; padding: 0.9rem 1.5rem;
  border-radius: var(--radius); font-size: 0.85rem;
  transform: translateY(100px); opacity: 0; transition: all 0.3s;
  max-width: 340px; box-shadow: var(--shadow);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid #EF4444; }

/* ---- SCHEMA / STRUCTURED DATA badge ---- */
.seo-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--light-gray); border-radius: 4px;
  padding: 0.2rem 0.5rem; font-size: 0.7rem; color: var(--gray);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
