/**
 * utilities.css — EPP
 * Classes utilitaires : typo, couleurs, espacements, layout
 * WP0/WP1 v1.0 — 2026-06-08
 * UI conforme à la charte du dispositif EPP — voir WP0.
 */

/* ── Conteneur de slide ───────────────────────────────────────────────────── */
.slide-inner {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
}

.slide-inner.centered {
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* ── Typographie — tailles ────────────────────────────────────────────────── */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md   { font-size: var(--text-md); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-hero { font-size: var(--text-hero); }

/* ── Typographie — poids ──────────────────────────────────────────────────── */
.fw-light    { font-weight: var(--fw-light); }
.fw-regular  { font-weight: var(--fw-regular); }
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }

/* ── Typographie — interlignage ───────────────────────────────────────────── */
.leading-tight  { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-loose  { line-height: var(--leading-loose); }

/* ── Alignement ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ── Couleurs texte ───────────────────────────────────────────────────────── */
.color-brun           { color: var(--color-brun); }
.color-terracotta     { color: var(--color-terracotta); }
.color-amber          { color: var(--color-amber); }
.color-ivoire         { color: var(--color-ivoire); }
.color-sable          { color: var(--color-sable); }
.color-text-secondary { color: var(--color-text-secondary); }
.color-text-muted     { color: var(--color-text-muted); }
.color-success        { color: var(--color-success); }
.color-error          { color: var(--color-error); }

/* ── Flex utilitaires ─────────────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Marges ───────────────────────────────────────────────────────────────── */
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* ── WP1 — Boutons de choix profil ───────────────────────────────────────── */
.choix-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.btn-choix {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1.5px solid var(--color-sable);
  border-radius: var(--bento-radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  width: 100%;
}

.btn-choix:hover {
  border-color: var(--color-terracotta);
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.btn-choix[aria-pressed="true"] {
  border-color: var(--color-terracotta);
  background: var(--glass-bg-strong);
}

.choix-label {
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  color: var(--color-brun);
}

.choix-icon {
  color: var(--color-terracotta);
  flex-shrink: 0;
}
