/* ============================================
   TREZYA SOLUTIONS — CSS GLOBAL
   Palette A : Teal dominant + Or accent
   ============================================ */

/* ── VARIABLES ─────────────────────────────── */
:root {
  /* Couleurs principales */
  --color-primary:        #1D9E75;
  --color-primary-dark:   #0F6E56;
  --color-primary-light:  #e8f7f2;

  --color-accent:         #C9A84C;
  --color-accent-dark:    #8a6a1a;
  --color-accent-light:   #fdf6e8;

  /* Fond & surfaces */
  --color-bg:             #f5f5f0;
  --color-surface:        #ffffff;
  --color-surface-alt:    #f0f0eb;

  /* Texte */
  --color-text:           #1a1a1a;
  --color-text-muted:     #666666;
  --color-text-light:     #999999;

  /* Bordures */
  --color-border:         #e5e5e5;
  --color-border-dark:    #cccccc;

  /* Typographie */
  --font-serif:           'Georgia', serif;
  --font-sans:            'Inter', 'Arial', sans-serif;

  /* Espacements */
  --radius-sm:            6px;
  --radius-md:            8px;
  --radius-lg:            12px;
  --radius-xl:            16px;

  /* Ombres */
  --shadow-sm:            0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:            0 4px 12px rgba(0,0,0,0.08);
}


/* ── RESET DE BASE ──────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* ── TYPOGRAPHIE ────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.text-accent   { color: var(--color-primary); }
.text-gold     { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }


/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-surface);
  border-bottom: 0.5px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.navbar-logo span {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 1rem;
  margin-left: 4px;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--color-primary);
}


/* ── BOUTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Primaire teal */
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
}

/* Secondaire contour */
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-dark);
}
.btn-secondary:hover {
  background: var(--color-surface-alt);
}

/* Accent or */
.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-accent:hover {
  background: var(--color-accent-dark);
}

/* Ghost teal */
.btn-ghost {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: #ffffff;
}


/* ── BADGE / PILL ───────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-teal {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-gold {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}


/* ── CARDS ───────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}

.card-hover {
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Icone dans card */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: none;
}
.card-link:hover {
  text-decoration: underline;
}


/* ── GRILLES ─────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}


/* ── SECTIONS ────────────────────────────────── */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-bg-alt {
  background: var(--color-surface-alt);
}


/* ── STEPPER ─────────────────────────────────── */
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.step-connector {
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  border-top: 1.5px dashed var(--color-border-dark);
  z-index: 1;
}

.step:last-child .step-connector { display: none; }


/* ── FORMULAIRES ─────────────────────────────── */
input, textarea, select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}


/* ── LIENS ───────────────────────────────────── */
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-dark);
}


/* ── UTILITAIRES ─────────────────────────────── */
.text-center  { text-align: center; }
.mx-auto      { margin-left: auto; margin-right: auto; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.flex  { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.self-start { align-self: flex-start; }
.w-full { width: 100%; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ── HELPERS SPECIFIQUES TREZYA ──────────────── */
.nav-auth-row      { display: flex; gap: 8px; align-items: center; }
.mob-user-col      { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.subtitle-hero     { margin: 0 auto 44px; }
.icon-play         { font-size: 12px; }
.marquee-gap       { margin-bottom: 12px; }
.btn-full          { width: 100%; justify-content: center; }
.btn-full-mt       { width: 100%; justify-content: center; margin-top: 8px; }
.subtitle-center   { margin: 0 auto; }
.subtitle-offset   { margin: 12px auto 0; }
.form-panel        { border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 32px; margin-top: 8px; }
.success-panel     { display: none; text-align: center; padding: 48px 32px; }
.success-icon      { font-size: 48px; margin-bottom: 16px; }
.success-title     { font-size: 22px; font-weight: 500; color: var(--color-text); margin-bottom: 12px; }
.success-desc      { color: var(--color-text-muted); font-size: 14px; max-width: 420px; margin: 0 auto 24px; line-height: 1.7; }
.success-info      { background: #e8f7f2; border: 1px solid var(--color-primary); border-radius: var(--radius-lg); padding: 16px 24px; max-width: 360px; margin: 0 auto; font-size: 13px; color: var(--color-primary-dark); }
.btn-new-process   { max-width: 220px; margin: 24px auto 0; display: block; }
.dash-actions      { display: flex; gap: 10px; flex-wrap: wrap; }
