/* ==========================================================
   Lomaya — styles communs
   ========================================================== */
:root {
  --brand-1: #2ac0ff;
  --brand-2: #2458ff;
  --brand: #2563ff;
  --brand-dark: #1747d1;
  --grad: linear-gradient(262deg, var(--brand-1), var(--brand-2));
  --grad-hover: linear-gradient(262deg, #1fb2f2, #1a48e6);

  --gold: #f5b748;
  --like: #1fd99a;
  --super: #1ec8f0;
  --boost: #a93cff;

  --text: #21262e;
  --text-2: #505965;
  --text-3: #7c8591;
  --border: #d4d8de;
  --border-2: #e9ebee;
  --bg: #ffffff;
  --bg-2: #f0f2f4;
  --bg-3: #f8f9fa;

  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.16);
  --shadow-3: 0 12px 48px rgba(0, 0, 0, 0.28);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 255, 0.55);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Marque ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}
.brand .brand-mark {
  width: 1.15em;
  height: 1.15em;
  display: inline-flex;
}
.brand .brand-mark svg {
  width: 100%;
  height: 100%;
}
.beta-tag {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.beta-tag.light {
  background: rgba(37, 99, 255, 0.1);
  color: var(--brand);
}
.brand-text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: var(--bg-2) !important;
  color: var(--text-3) !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.btn-grad {
  background: var(--grad);
  color: #fff;
}
.btn-grad:hover {
  background: var(--grad-hover);
}

.btn-white {
  background: #fff;
  color: var(--text);
}
.btn-white:hover {
  background: #f1f3f5;
}

.btn-outline {
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-2);
}
.btn-outline:hover {
  border-color: var(--text-3);
  color: var(--text);
}

.btn-ghost {
  color: var(--text-2);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-2);
}

.btn-block {
  width: 100%;
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Modale ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}
.modal.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: auto;
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-3);
  animation: popIn 0.28s var(--ease);
  color: var(--text);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover {
  background: var(--bg-2);
  color: var(--text);
}
.modal-close .icon {
  width: 22px;
  height: 22px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #21262e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
}
.toast.out {
  animation: toastOut 0.25s ease forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Champs ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
  transition: border-color 0.15s;
}
.input::placeholder {
  color: #a5adb7;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
}
textarea.input {
  height: auto;
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.45;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pill:hover {
  border-color: var(--text-3);
}
.pill.active {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(37, 99, 255, 0.05);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: #fff;
  transition: all 0.15s;
}
.chip.active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

/* ---------- Interrupteur ---------- */
.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #cfd4da;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}
.switch:checked {
  background: var(--brand);
}
.switch:checked::after {
  transform: translateX(20px);
}
.switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Modale cookies ---------- */
.cookie-modal-box {
  max-width: 480px;
  text-align: left;
}
.cookie-modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cookie-modal-intro {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 15px;
}
.cookie-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-2);
  cursor: pointer;
}
.cookie-row span {
  flex: 1;
}
.cookie-row strong {
  display: block;
  font-size: 16px;
}
.cookie-row small {
  display: block;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.45;
}
.cookie-modal-box .btn {
  margin-top: 22px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
