/* ============================================
   SIGN'ALLO — CSS Compilé (remplace Tailwind)
   Toutes les classes utilisées dans le projet
   ============================================ */

/* === UX Coach : accessibilité globale === */
:root {
  /* ID:121 — Zone de tap minimale obligatoire (seniors) */
  --min-tap-target: 48px;
  /* ID:122 — Taille de texte de base ajustable dynamiquement */
  --base-font-size: 100%;
}
/* Classe utilitaire pour garantir une cible tactile suffisante */
.tap-target {
  min-height: var(--min-tap-target);
  min-width: var(--min-tap-target);
  box-sizing: border-box;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: #020617; /* slate-950 */
  color: #f8fafc; /* slate-50 */
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
  font-size: var(--base-font-size); /* ID:122 — pilotable via window.setGlobalFontSize() */
}

/* === LAYOUT === */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-96 { width: 24rem; }
.h-16 { height: 4rem; }
.h-96 { height: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === DISPLAY & FLEX === */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* === GRID === */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* === SPACING === */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-8 { padding-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-32 { margin-top: 8rem; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* === POSITIONING === */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-1\/4 { top: 25%; }
.top-1\/2 { top: 50%; }
.bottom-1\/4 { bottom: 25%; }
.left-1\/4 { left: 25%; }
.left-1\/2 { left: 50%; }
.right-1\/4 { right: 25%; }
.z-10 { z-index: 10; }

/* === OVERFLOW === */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* === TYPOGRAPHY === */
.font-outfit { font-family: 'Outfit', sans-serif; }
.font-crimson { font-family: 'Crimson Pro', serif; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }

/* === COLORS === */
.text-white { color: #ffffff; }
.text-slate-50 { color: #f8fafc; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-red-400 { color: #f87171; }
.text-purple-400 { color: #a78bfa; }
.text-emerald-400 { color: #34d399; }
.text-amber-400 { color: #fbbf24; }
.text-transparent { color: transparent; }

/* === BACKGROUNDS === */
.bg-slate-950 { background-color: #020617; }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/\[0\.03\] { background-color: rgba(255,255,255,0.03); }
.bg-white\/\[0\.06\] { background-color: rgba(255,255,255,0.06); }
.bg-purple-500\/20 { background-color: rgba(168,85,247,0.2); }
.bg-pink-500\/20 { background-color: rgba(236,72,153,0.2); }
.bg-teal-500\/20 { background-color: rgba(20,184,166,0.2); }
.bg-red-500\/10 { background-color: rgba(239,68,68,0.1); }
.bg-emerald-500\/20 { background-color: rgba(16,185,129,0.2); }
.bg-amber-500\/20 { background-color: rgba(245,158,11,0.2); }

/* Gradient backgrounds */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-via, transparent), var(--tw-gradient-to));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-via, transparent), var(--tw-gradient-to));
}
.from-slate-900 { --tw-gradient-from: #0f172a; --tw-gradient-to: transparent; }
.via-purple-900 { --tw-gradient-via: #581c87; }
.to-slate-900 { --tw-gradient-to: #0f172a; }
.from-purple-400 { --tw-gradient-from: #a78bfa; --tw-gradient-to: transparent; }
.to-pink-400 { --tw-gradient-to: #f472b6; }
.from-purple-500 { --tw-gradient-from: #a855f7; --tw-gradient-to: transparent; }
.to-pink-500 { --tw-gradient-to: #ec4899; }
.from-emerald-500 { --tw-gradient-from: #10b981; --tw-gradient-to: transparent; }
.to-emerald-600 { --tw-gradient-to: #059669; }
.from-red-500 { --tw-gradient-from: #ef4444; --tw-gradient-to: transparent; }
.to-red-600 { --tw-gradient-to: #dc2626; }
.from-primary { --tw-gradient-from: #6366f1; --tw-gradient-to: transparent; }
.to-primary-dark { --tw-gradient-to: #4f46e5; }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

/* === BORDERS === */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-red-500\/50 { border-color: rgba(239,68,68,0.5); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* === EFFECTS === */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.backdrop-blur-xl { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

/* === TRANSITIONS === */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.transform { transform: translateZ(0); }
.cursor-pointer { cursor: pointer; }

/* === HOVER STATES === */
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,0.2); }
.hover\:from-purple-600:hover { --tw-gradient-from: #9333ea; }
.hover\:to-pink-600:hover { --tw-gradient-to: #db2777; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-purple-300:hover { color: #c4b5fd; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }

/* === FORM ELEMENTS === */
a { color: inherit; text-decoration: none; }

/* === CUSTOM COMPONENTS === */

/* Glass effects */
.glass {
  background-color: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.glass-card {
  background-color: rgba(255,255,255,0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 300ms;
}
.glass-card:hover {
  background-color: rgba(255,255,255,0.06);
  transform: translateY(-0.125rem);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.btn-primary {
  background-image: linear-gradient(to right, #6366f1, #4f46e5);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}
.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 10px 15px -3px rgba(99,102,241,0.4);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: rgba(255,255,255,0.05);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms;
  font-family: inherit;
  font-size: 0.875rem;
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

.btn-success {
  background-image: linear-gradient(to right, #10b981, #059669);
  color: white;
}

.btn-danger {
  background-image: linear-gradient(to right, #ef4444, #dc2626);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Form inputs */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: #f8fafc;
  transition: all 300ms;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #6366f1;
  background-color: rgba(255,255,255,0.05);
}
.form-input::placeholder { color: #64748b; }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Date + time inputs — thème sombre ───────────────────────────────────── */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}
input[type="date"].form-input,
input[type="time"].form-input {
  color: #f8fafc;
}
input[type="date"].form-input::-webkit-calendar-picker-indicator,
input[type="time"].form-input::-webkit-calendar-picker-indicator {
  filter: invert(0.65) hue-rotate(200deg) brightness(1.4);
  cursor: pointer;
  opacity: .75;
}
input[type="date"].form-input::-webkit-calendar-picker-indicator:hover,
input[type="time"].form-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-success { background-color: rgba(16,185,129,0.2); color: #34d399; }
.badge-warning { background-color: rgba(245,158,11,0.2); color: #fbbf24; }
.badge-danger { background-color: rgba(239,68,68,0.2); color: #f87171; }
.badge-primary { background-color: rgba(99,102,241,0.2); color: #6366f1; }

/* === ANIMATIONS === */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}
.animate-float { animation: float 20s ease-in-out infinite; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.5s ease-out; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 0.5rem; height: 0.5rem; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 0.25rem; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* === RESPONSIVE — Mobile-first ========================================= */

/* ── 640px : petits mobiles → tablettes portrait ─────────────────────── */
@media (min-width: 640px) {
  .sm\:flex-row  { flex-direction: row; }
  .sm\:px-6      { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── 768px : tablettes ───────────────────────────────────────────────── */
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:p-8         { padding: 2rem; }
  .md\:px-8        { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-32       { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:text-2xl    { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-7xl    { font-size: 4.5rem; line-height: 1; }
}

/* ── 1024px : desktop ────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ── Max 768px : mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Typographie */
  .text-5xl { font-size: 2.4rem; }
  .text-4xl { font-size: 1.9rem; }
  .text-3xl { font-size: 1.5rem; }

  /* Layout */
  .grid-cols-2 { grid-template-columns: 1fr; }
  .max-w-3xl   { max-width: 100%; }
  .max-w-md    { max-width: 100%; }
  .w-96        { width: 100%; }

  /* Espacements */
  .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
  .p-12  { padding: 1.5rem; }
  .p-8   { padding: 1.25rem; }
  .mt-32 { margin-top: 4rem; }
  .gap-8 { gap: 1.25rem; }

  /* Glass cards — pleine largeur sur mobile */
  .glass      { border-radius: 1rem; }
  .glass-card { border-radius: .75rem; }

  /* Boutons — pleine largeur dans les formulaires */
  .btn-primary { padding: .85rem 1.25rem; font-size: .95rem; }

  /* Flex → colonne */
  .sm\:flex-row { flex-direction: column; }
  .justify-between { justify-content: flex-start; }
}

/* ── Max 480px : très petits mobiles ─────────────────────────────────── */
@media (max-width: 480px) {
  .text-5xl { font-size: 2rem; }
  .text-4xl { font-size: 1.65rem; }
  .p-6  { padding: 1rem; }
  .px-6 { padding-left: 1rem; padding-right: 1rem; }
  .gap-4 { gap: .75rem; }

  /* Badges — retour à la ligne */
  .badge { font-size: .68rem; padding: .25rem .6rem; }
}

/* === ERROR ALERT === */
.alert-error {
  background-color: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.5);
  color: #f87171;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}
