/* ==========================================================================
   Quittalo, styles partagés du site vitrine
   Tokens alignés sur le design system de l'application mobile (src/lib/theme.ts).
   Aucune couleur ne doit être codée en dur dans une page : utiliser var(--…).
   ========================================================================== */

:root {
  /* Couleurs */
  --background: #f6f7f9;
  --surface: #ffffff;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --neutral-bg: #f1f5f9;
  --on-primary: #ffffff;

  /* Espacements : multiples de 4 */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 20px;
  --sp-2xl: 24px;
  --sp-3xl: 32px;
  --sp-4xl: 40px;
  --sp-5xl: 56px;
  --sp-6xl: 72px;

  /* Rayons */
  --r-sm: 8px;
  --r-icon: 10px;
  --r-md: 12px;
  --r-button: 14px;
  --r-card: 16px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Ombres très légères, les cartes se distinguent par le fond */
  --shadow-card: 0 1px 6px rgba(15, 23, 42, 0.05);
  --shadow-raised: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 24px 48px rgba(15, 23, 42, 0.12);

  /* Gabarits */
  --content-width: 1080px;
  --reading-width: 720px;
  --header-height: 64px;
}

/* --------------------------------------------------------------------------
   Reset minimal
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--sp-lg));
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: var(--sp-2xl);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   Gabarit
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.section {
  padding: var(--sp-5xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--sp-6xl) 0;
  }
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--sp-3xl);
  text-align: center;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 700;
}

.section-head p {
  margin-top: var(--sp-md);
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .section-head h2 {
    font-size: 32px;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-md);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--r-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(246, 247, 249, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.logo:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
}

.nav-links {
  display: none;
  gap: var(--sp-2xl);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Boutons et badge App Store
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  height: 52px;
  padding: 0 var(--sp-2xl);
  border-radius: var(--r-button);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-secondary);
}

.btn--sm {
  height: 40px;
  padding: 0 var(--sp-lg);
  font-size: 14px;
  border-radius: var(--r-md);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badge App Store dessiné en CSS, pas d'image externe */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 10px var(--sp-xl);
  border-radius: var(--r-button);
  background: var(--text);
  color: #ffffff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.appstore-badge:hover {
  text-decoration: none;
  opacity: 0.9;
}

.appstore-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.appstore-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.appstore-badge .badge-small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

.appstore-badge .badge-large {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.appstore-badge--sm {
  padding: 6px var(--sp-lg);
}

.appstore-badge--sm svg {
  width: 20px;
  height: 20px;
}

.appstore-badge--sm .badge-small {
  font-size: 9px;
}

.appstore-badge--sm .badge-large {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-card);
}

.grid {
  display: grid;
  gap: var(--sp-lg);
}

@media (min-width: 720px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-lg);
  border-radius: var(--r-icon);
  background: var(--primary-light);
  font-size: 24px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Rangée secondaire de fonctionnalités */
.feature-row {
  display: grid;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

@media (min-width: 720px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-mini {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature-mini .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: var(--r-pill);
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-mini span:last-child {
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-mini strong {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--sp-4xl) 0 var(--sp-5xl);
}

.hero-inner {
  display: grid;
  gap: var(--sp-4xl);
  align-items: center;
}

@media (min-width: 940px) {
  .hero {
    padding: var(--sp-6xl) 0;
  }

  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: var(--sp-5xl);
  }
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (min-width: 720px) {
  .hero h1 {
    font-size: 52px;
  }
}

.hero-sub {
  margin-top: var(--sp-xl);
  max-width: 520px;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-lg);
  margin-top: var(--sp-3xl);
}

.hero-note {
  margin-top: var(--sp-lg);
  font-size: 14px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Mockup iPhone : 100 % CSS, aucune image
   -------------------------------------------------------------------------- */

.phone {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  box-shadow: var(--shadow-float);
}

.phone-screen {
  position: relative;
  border-radius: 38px;
  background: var(--background);
  overflow: hidden;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-lg);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #0f172a;
}

.phone-greeting {
  margin-top: var(--sp-lg);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-month {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-lg);
}

.phone-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.phone-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
}

.phone-stat .pastille {
  width: 26px;
  height: 26px;
  border-radius: var(--r-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: var(--sp-sm);
}

.pastille--success {
  background: var(--success-bg);
  color: var(--success);
}

.pastille--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.phone-stat .value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-stat .label {
  font-size: 11px;
  color: var(--text-secondary);
}

.phone-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
}

.phone-section-title strong {
  font-size: 14px;
  font-weight: 600;
}

.phone-section-title span {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.phone-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px var(--sp-md);
  border-bottom: 1px solid var(--border);
}

.phone-row:last-child {
  border-bottom: none;
}

.avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-row .who {
  flex: 1;
  min-width: 0;
}

.phone-row .who b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-row .who small {
  font-size: 11px;
  color: var(--text-secondary);
}

.phone-row .amount {
  text-align: right;
}

.phone-row .amount b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.badge--paid {
  background: var(--success-bg);
  color: var(--success);
}

.badge--pending {
  background: var(--warning-bg);
  color: var(--warning);
}

/* --------------------------------------------------------------------------
   Section « conçu pour les bailleurs »
   -------------------------------------------------------------------------- */

.pitch {
  max-width: var(--reading-width);
  margin: 0 auto;
  text-align: center;
}

.pitch h2 {
  font-size: 26px;
  font-weight: 700;
}

.pitch p {
  margin-top: var(--sp-lg);
  color: var(--text-secondary);
  font-size: 17px;
}

@media (min-width: 768px) {
  .pitch h2 {
    font-size: 32px;
  }
}

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */

/* Bandeau d'essai, commun aux deux formules */
.pricing-banner {
  max-width: 640px;
  margin: 0 auto var(--sp-2xl);
  padding: var(--sp-md) var(--sp-xl);
  border-radius: var(--r-pill);
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  font-size: 15px;
  text-align: center;
}

.pricing-banner strong {
  font-weight: 700;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  padding: var(--sp-3xl) var(--sp-2xl);
}

.pricing-card--highlight {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-raised);
  /* Empilées, les cartes sont séparées de 16 px : on écarte un peu plus
     pour que la pastille « Recommandé » ne touche pas la carte du dessus. */
  margin-top: var(--sp-md);
}

@media (min-width: 720px) {
  .pricing-card--highlight {
    margin-top: 0;
  }
}

.pricing-badge {
  position: absolute;
  top: calc(-1 * var(--sp-md));
  left: var(--sp-2xl);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.pricing-price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-price .per {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: normal;
}

.pricing-price small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: normal;
  margin-top: var(--sp-xs);
}

.pricing-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}

.pricing-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-note {
  max-width: 640px;
  margin: var(--sp-2xl) auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: var(--reading-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-xl);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212"; /* signe moins, de même largeur que le « + » fermé */
}

.faq details p {
  margin-top: var(--sp-md);
  color: var(--text-secondary);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-4xl) 0 var(--sp-3xl);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2xl);
  justify-content: space-between;
  align-items: flex-start;
}

.footer-tagline {
  max-width: 320px;
  margin-top: var(--sp-sm);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg) var(--sp-2xl);
  font-size: 14px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.no-cookies {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--r-pill);
  background: var(--success-bg);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pages de lecture (légal) : largeur max 720px
   -------------------------------------------------------------------------- */

.legal {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: var(--sp-4xl) var(--sp-xl) var(--sp-5xl);
}

.legal .back-link {
  display: inline-block;
  margin-bottom: var(--sp-2xl);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.legal h1 {
  font-size: 30px;
  font-weight: 700;
}

@media (min-width: 720px) {
  .legal h1 {
    font-size: 36px;
  }
}

.legal .updated {
  margin-top: var(--sp-sm);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.legal-body {
  margin-top: var(--sp-3xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-card);
}

@media (min-width: 720px) {
  .legal-body {
    padding: var(--sp-4xl);
  }
}

.legal-body h2 {
  margin-top: var(--sp-3xl);
  font-size: 20px;
  font-weight: 600;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin-top: var(--sp-2xl);
  font-size: 16px;
  font-weight: 600;
}

.legal-body p,
.legal-body ul {
  margin-top: var(--sp-md);
  color: var(--text-secondary);
  font-size: 16px;
}

.legal-body li {
  margin-top: var(--sp-sm);
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body hr {
  margin: var(--sp-3xl) 0 0;
  border: none;
  border-top: 1px solid var(--border);
}

.legal-body .footnote {
  font-size: 14px;
}

/* Placeholder à compléter dans les mentions légales */
.placeholder {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-sm);
  background: var(--warning-bg);
  border: 1px dashed var(--warning);
  color: var(--warning);
  font-size: 14px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.notice {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg);
  border-radius: var(--r-md);
  background: var(--warning-bg);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: var(--warning);
  font-size: 14px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Pages centrées : auth/, 404
   -------------------------------------------------------------------------- */

.centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3xl) var(--sp-xl);
  text-align: center;
}

.centered .logo {
  margin-bottom: var(--sp-3xl);
  font-size: 30px;
}

.panel {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3xl) var(--sp-2xl);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.panel h1 {
  font-size: 24px;
  font-weight: 700;
}

.panel p {
  margin-top: var(--sp-md);
  color: var(--text-secondary);
  font-size: 15px;
}

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-xl);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
}

.status-icon--success {
  background: var(--success-bg);
  color: var(--success);
}

.status-icon--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-icon--neutral {
  background: var(--primary-light);
  color: var(--primary);
}

.panel-actions {
  margin-top: var(--sp-2xl);
}

.panel-footer {
  margin-top: var(--sp-2xl);
  font-size: 13px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Formulaire (réinitialisation du mot de passe)
   -------------------------------------------------------------------------- */

.form {
  margin-top: var(--sp-2xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.field label {
  display: block;
  margin-bottom: var(--sp-sm);
  font-size: 14px;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 var(--sp-lg);
  border: 1px solid var(--border);
  border-radius: var(--r-button);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.field .hint {
  margin-top: var(--sp-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.message {
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.message--error {
  background: var(--danger-bg);
  color: var(--danger);
}

.message--info {
  background: var(--primary-light);
  color: var(--primary);
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Utilitaires
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
