/* =====================================================================
 *  app.css — Styles complémentaires (équivalent de `src/app/globals.css`)
 *
 *  Tailwind est chargé via le Play CDN dans header.php avec la même
 *  config que `tailwind.config.ts`. Ce fichier ne contient que :
 *    1. Les variables racine et les overrides de base
 *    2. Les classes "components" (btn-primary, card, input-base…)
 *
 *  Astuce : Tailwind Play CDN supporte @apply via le mode JIT, donc on
 *  peut écrire les classes utilitaires Tailwind directement ici.
 * ===================================================================== */

:root {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-fg: #0b1a3a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Composants (mêmes définitions que globals.css) ----- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: #059669; /* brand-green-600 */
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.6); /* shadow-cta */
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover:not(:disabled) {
  background-color: #047857; /* brand-green-700 */
  transform: translateY(-2px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.4);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(11, 26, 58, 0.1);
  background-color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0b1a3a;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-secondary:hover:not(:disabled) {
  border-color: rgba(11, 26, 58, 0.3);
  background-color: #eef2f7;
}
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.3);
}
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.input-base {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #0b1a3a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-base::placeholder {
  color: #94a3b8;
}
.input-base:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.label-base {
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0b1a3a;
}

.card {
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 4px 20px -4px rgba(11, 26, 58, 0.12);
  --ring-shadow: 0 0 0 1px #f1f5f9;
  box-shadow: var(--ring-shadow), 0 4px 20px -4px rgba(11, 26, 58, 0.12);
}
