:root {
  --bg-page: #08080b;
  --bg-elev: #141418;
  --bg-elev-2: #1c1c22;
  --border: #2a2a31;
  --border-soft: #23232a;

  --text-strong: #f4f4f6;
  --text-body: #c7c7cf;
  --text-muted: #86868f;

  /* Accent bleu sobre (survols, éléments actifs) */
  --accent: #5b8cff;

  /* Dégradés par section (repris de l'esthétique WriteMate) */
  --grad-in: linear-gradient(140deg, #ff6a1f 0%, #ff9d47 48%, #ffd0a6 100%);
  --grad-out: linear-gradient(140deg, #2f6bff 0%, #6d5cf0 50%, #d59bd0 100%);
  --grad-history: linear-gradient(140deg, #ff3f93 0%, #d96ae0 52%, #ffb3d1 100%);

  --radius: 16px;
  --radius-sm: 11px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Work Sans', sans-serif;
  color: var(--text-strong);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Halo dégradé animé selon la section active */

/* Texture de grain (points fins) façon fond « hero » */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 12px 12px;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(ellipse 78% 55% at 50% -8%, rgba(96, 145, 225, 0.22), transparent 62%);
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 160px;
}

/* Header */

.app-header {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  color: #d3d3d8;
}

.brand-mark svg {
  width: 56px;
  height: 56px;
}

.brand h1 {
  font-size: 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  padding-left: 0.26em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #d3d3d8;
  line-height: 1;
}

/* Main / panels */

.app-main {
  /* Espace bas suffisant pour que la liste ne passe pas sous la barre d'onglets
     + les liens légaux qui sont désormais fixés en bas avec elle. */
  padding: 20px 0 200px;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.panel-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 26px;
}

.panel-lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Barre recherche + tri */

.list-controls {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 20px;
}

.search-input,
.sort-select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color-scheme: dark;
}

.search-input {
  flex: 1;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.sort-select {
  flex: none;
  cursor: pointer;
}

.search-input:focus,
.sort-select:focus {
  outline: none;
  border-color: #3a3a44;
}

/* Barre d'ajout façon champ de saisie */

.add-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  padding: 10px 10px 10px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.add-bar:hover {
  border-color: #3a3a44;
  background: #17171c;
}

.add-bar-text {
  color: var(--text-muted);
  font-size: 15.5px;
}

.add-bar-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: #f4f4f6;
  color: #0a0a0d;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.add-bar:hover .add-bar-send {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.add-bar-send svg {
  width: 20px;
  height: 20px;
}

/* Buttons */

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #f4f4f6;
  color: #0a0a0d;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-body);
}

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

.btn-small {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-danger {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.4);
  color: #ff8a8a;
}
.btn-danger:hover {
  background: rgba(255, 90, 90, 0.2);
}

/* Corbeille */
.trash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.trash-auto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
}
.trash-auto select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
}
.trash-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 60ch;
}
.trash-when {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.trash-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: inline-flex;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: #3a1f1f;
  color: #ff6b6b;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn[data-tip] {
  position: relative;
}

.icon-btn[data-tip]:hover::after,
.icon-btn[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elev-2);
  color: var(--text-strong);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 25;
}

.btn-refresh[hidden] {
  display: none;
}

.btn-refresh.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.btn-refresh.is-loading::first-letter {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-refresh.is-loading::first-letter {
    animation: none;
  }
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.parcel-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parcel-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.parcel-card-btns {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.parcel-article {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  /* Le titre prend la place dispo et se coupe/retourne à la ligne au lieu de
     pousser les boutons modifier/supprimer (qui restent ancrés à droite). */
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.parcel-counterparty {
  margin: 0;
  font-size: 14px;
  color: var(--text-body);
  font-weight: 500;
}

.parcel-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Card footer */

.parcel-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.parcel-date {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.parcel-date.is-late {
  color: #ff7a7a;
}

.parcel-date.is-today {
  color: #ffb968;
}

.parcel-date.is-soon {
  color: #6ee7a0;
}

.parcel-relay {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Étiquette « Indiqué comme livré » (colis à recevoir, en attente de confirmation) */
.parcel-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffb968;
  background: rgba(255, 185, 104, 0.12);
  border: 1px solid rgba(255, 185, 104, 0.35);
  border-radius: 999px;
  padding: 4px 11px;
}
.delivered-confirm {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* La case « Livré » a un display: inline-flex, donc l'attribut hidden ne suffit
   pas à la masquer (voir gotcha CLAUDE.md). */
.delivered-toggle[hidden] {
  display: none;
}

.delivered-toggle,
.money-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.delivered-toggle input,
.money-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #34c759;
}

.money-toggle[hidden] {
  display: none;
}

.parcel-amount {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #6ee7a0;
}

/* Empty state */

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 48px 0;
}

/* History : filtre Reçus / Envoyés */

.history-controls {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hist-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hist-tab:hover {
  color: var(--text-strong);
}

.hist-tab.is-active {
  background: var(--bg-elev-2);
  color: var(--text-strong);
}

.hist-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.hist-tab.is-active .hist-count {
  color: var(--text-strong);
}

.history-table--in .col-pay {
  display: none;
}

/* History table */

.history-table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  padding: 12px 16px;
  font-weight: 600;
}

.history-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-body);
  vertical-align: middle;
}

.history-actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.history-date-input {
  font-family: inherit;
  font-size: 13px;
  color: var(--text-body);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 6px;
  color-scheme: dark;
}

.history-date-input:hover,
.history-date-input:focus {
  border-color: var(--border);
  background: var(--bg-elev-2);
}

.direction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.direction-badge.in {
  background: rgba(52, 199, 89, 0.16);
  color: #6ee7a0;
}

.direction-badge.out {
  background: rgba(109, 92, 240, 0.2);
  color: #b3a6ff;
}

.pay-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.16);
  color: #6ee7a0;
  white-space: nowrap;
}

.pay-badge.pending {
  background: rgba(255, 159, 67, 0.16);
  color: #ffb968;
}

.pay-amount {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}

/* Sous-pages vides (Pricing / About us / Contact) */
.subpage {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 80px 24px;
}

.subpage h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d3d3d8;
  font-size: 1.6rem;
}

.subpage p {
  margin: 0;
  color: var(--text-muted);
}

/* Page « Mon compte » */
.account-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 26px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: min(340px, 90vw);
}
/* La règle display ci-dessus l'emporte sur l'attribut [hidden] : on le rétablit. */
.account-box[hidden] { display: none; }
.account-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.account-email {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  word-break: break-all;
}
.account-logout {
  margin-top: 8px;
}
.account-back {
  margin-top: 18px;
}
.account-back a {
  color: var(--accent);
  font-weight: 600;
}
.account-back a:hover { text-decoration: underline; }

.account-address {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
  text-align: center;
}
.account-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 42ch;
}
.account-fwd-code {
  font-size: 14px;
  color: var(--text);
  text-align: center;
}
.account-fwd-code strong {
  color: var(--text-strong);
  letter-spacing: 0.04em;
}

/* Assistant de transfert multi-fournisseurs (page « Mon compte »). */
.wizard-box {
  align-items: stretch;
  min-width: min(600px, 92vw);
}
.wizard-box > .account-label,
.wizard-box > .account-hint {
  text-align: center;
  align-self: center;
}
.wiz-providers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.wiz-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.wiz-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.wiz-chip.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text-strong);
}
.wiz-chip-emoji { font-size: 16px; line-height: 1; }
.wiz-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  text-align: left;
}
.wiz-steps[hidden] { display: none; }
.wiz-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.wiz-address-label {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--text-muted);
}
.wiz-address-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--accent);
  word-break: break-all;
}
.wiz-copy { flex-shrink: 0; padding: 6px 12px; font-size: 13px; }
.wiz-open { align-self: flex-start; }
.wiz-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.wiz-list li { padding-left: 4px; }
.wiz-note {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(245, 179, 66, 0.10);
  border: 1px solid rgba(245, 179, 66, 0.35);
  border-radius: 12px;
}
.wiz-note strong { color: var(--text-strong); }

/* Variante « document légal » (RGPD, mentions, CGU) : lisible, aligné à gauche. */
.subpage.legal-doc {
  min-height: auto;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
  gap: 0;
  padding: 56px 24px 96px;
}
.legal-doc h2 {
  font-size: 1.35rem;
  letter-spacing: 0.14em;
}
.legal-doc .legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 10px 0 8px;
}
.legal-doc h3 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 30px 0 6px;
}
.legal-doc p,
.legal-doc li {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.62;
  margin: 8px 0;
}
.legal-doc ul {
  margin: 8px 0;
  padding-left: 22px;
}
.legal-doc a {
  color: var(--accent);
}
.legal-doc .legal-note {
  margin-top: 40px;
  padding: 14px 16px;
  border: 1px solid rgba(91, 140, 255, 0.28);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.06);
  color: var(--text-body);
  font-size: 0.9rem;
}
/* Marqueur des infos à compléter par l'exploitant du site. */
.legal-doc .fill,
.contact-email .fill {
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
}
.contact-email {
  margin: 4px 0;
  font-size: 18px;
}

/* Décalage « push » de l'écran d'accueil quand le menu latéral est ouvert */
.app,
.dock {
  transition: transform 0.3s ease;
}

body.menu-open .app {
  transform: translateX(150px);
}

body.menu-open .dock {
  transform: translateX(calc(-50% + 150px));
}

/* Sélecteur de langue en haut à droite */
.lang-switch {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 80;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

/* Sélecteur de langue à drapeau (appli), en haut à gauche près du menu kebab */
.lang-picker {
  position: fixed;
  top: 20px;
  left: 56px;
  z-index: 80;
}
.lang-picker .nav-flag {
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.15s ease;
}
.lang-picker .nav-flag:hover { border-color: #3a3a44; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 81;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--text-body);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--bg-elev-2); color: var(--text-strong); }
.lang-menu button.is-active { color: var(--accent); font-weight: 600; }

/* Bouton kebab (3 points) en haut à gauche */
.menu-toggle {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover span,
.menu-toggle.is-active span {
  background: var(--accent);
}

/* Panneau latéral pleine hauteur (de haut en bas de l'écran) */
.side-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 240px;
  max-width: 78vw;
  padding: 96px 28px 32px;
  background: rgba(14, 14, 18, 0.94);
  border-right: 1px solid var(--border);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.side-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Menu vertical : flèche + texte qui glissent au survol */
.menu-vertical {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 22px;
}

.mv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-strong);
  overflow: hidden;
}

.mv-arrow {
  z-index: 0;
  display: flex;
  color: inherit;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out, color 0.3s ease-out;
}

.mv-arrow svg {
  width: 20px;
  height: 20px;
}

/* Texte façon logo TrackPacks : Space Grotesk, majuscules, interlettrage, gris */
.mv-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #d3d3d8;
  text-decoration: none;
  transform: translateX(-28px);
  transition: transform 0.3s ease-out, color 0.3s ease-out;
}

.mv-item:hover .mv-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.mv-item:hover .mv-link {
  transform: translateX(0);
  color: var(--accent);
}

.mv-item:hover .mv-link {
  transform: translateX(0);
  color: var(--accent);
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden;
}

/* Abonnement : bandeau lecture seule + fenêtre d'offre */
.sub-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-body);
  background: rgba(91, 140, 255, 0.12);
  border-bottom: 1px solid rgba(91, 140, 255, 0.35);
  text-align: center;
}
.sub-banner-cta {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.sub-banner-cta:hover { text-decoration: underline; }
.paywall-card { text-align: center; }
.paywall-text { margin: 12px 0 4px; color: var(--text-body); font-size: 14.5px; line-height: 1.5; }
.paywall-card .modal-actions { justify-content: center; margin-top: 20px; }

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  /* Ne jamais dépasser l'écran : le corps défile à l'intérieur pour que le bas
     du formulaire (date, boutons) reste toujours atteignable, même en « Envoyé »
     où un champ de plus s'ajoute. 100dvh = tient compte des barres du mobile. */
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
}

/* Zone défilante : tout le formulaire, en gardant l'en-tête (titre + croix) fixe. */
#parcel-form {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  /* évite que l'ombre du focus soit coupée sur les bords de la zone qui défile */
  margin: 0 -4px;
  padding: 0 4px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 14px;
}
.field[hidden] {
  display: none;
}

.field input,
.field select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-strong);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color-scheme: dark;
}

.field input::placeholder {
  color: var(--text-muted);
}

/* Sélecteur d'emoji */

.emoji-toggle {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 7px 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.emoji-toggle:hover {
  border-color: #3a3a44;
  color: var(--text-body);
}
.emoji-toggle-label {
  font-size: 15px;
  line-height: 1;
}
.emoji-toggle-caret {
  font-size: 11px;
  transition: transform 0.18s ease;
}
.emoji-toggle[aria-expanded="true"] .emoji-toggle-caret {
  transform: rotate(180deg);
}

.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.emoji-grid[hidden] {
  display: none;
}

.emoji-choice {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.emoji-choice:hover {
  border-color: #3a3a44;
}

.emoji-choice.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.4);
}

.emoji-clear {
  color: var(--text-muted);
  font-size: 16px;
}

.field input:focus,
.field select:focus {
  outline: 2px solid #6d5cf0;
  outline-offset: 1px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  /* Toujours visibles en bas de la zone qui défile : on peut enregistrer sans
     avoir à faire défiler jusqu'en bas. */
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  padding-bottom: 2px;
  background: var(--bg-elev);
}

/* Globe terrestre (bas de page) */

.earth-section {
  margin: 90px auto 30px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.earth-section.is-visible {
  opacity: 1;
  transform: none;
}

.earth-wrap {
  position: relative;
  max-width: 100%;
}

#earth-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  touch-action: pan-y;
  cursor: grab;
}

#earth-canvas:active {
  cursor: grabbing;
}

.earth-hint {
  position: absolute;
  bottom: 14px;
  left: 14px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(20, 20, 24, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .earth-section {
    transition: opacity 0.3s ease;
    transform: none;
  }
}

/* Pied de page : liens légaux (RGPD) + crédit */

.site-footer {
  margin: 40px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  max-width: 640px;
}

.legal-links a {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.legal-links a:hover {
  color: var(--accent);
}

.site-credit {
  font-family: 'Space Grotesk', 'Work Sans', sans-serif;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0;
}

/* Notification (toast) */

.toast-container {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2f8f4e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 100%;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast--delete {
  background: #b23b3b;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity 0.25s ease;
    transform: none;
  }
}

/* Dock (navigation façon Mac) */

.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 24px);
}

/* Liens légaux placés SOUS la barre d'onglets (dock), pas au-dessus. */
.dock .site-footer {
  margin: 0;
  gap: 8px;
}

.dock-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(18, 18, 20, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.85);
}

.dock-divider {
  width: 1px;
  height: 24px;
  flex: none;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
}

.dock-item {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom, rgba(40, 40, 44, 0.6), rgba(18, 18, 22, 0.7));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dock-item::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 30px -10px rgba(0, 0, 0, 0.8);
}

.dock-item:hover {
  transform: translateY(-6px) scale(1.05);
}

.dock-item:hover::after {
  opacity: 1;
}

.dock-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f4f4f6;
  color: #0a0a0d;
  font-size: 11px;
  font-weight: 600;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(16, 16, 20, 0.95);
  z-index: 3;
}

.dock-badge[hidden] {
  display: none;
}

.dock-item.is-active {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(to bottom, rgba(58, 58, 64, 0.7), rgba(28, 28, 34, 0.8));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 26px -8px rgba(0, 0, 0, 0.75);
}

.dock-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease;
}

.dock-item:hover .dock-icon {
  transform: scale(1.1);
}

.dock-item.is-active .dock-icon {
  color: #fff;
}

.dock-icon svg {
  width: 100%;
  height: 100%;
}

.dock-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dock-item {
    transition: opacity 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  }
}

@media (max-width: 640px) {
  .app-header {
    height: auto;
    padding-top: 20px;
  }
  .add-bar {
    max-width: 100%;
  }
  /* Les liens légaux s'empilent sous la barre d'onglets : plus d'espace bas
     pour que le dernier colis d'une longue liste ne passe pas dessous. */
  .app-main {
    padding-bottom: 300px;
  }
}

/* ------------------------------ Connexion ------------------------------ */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse 80% 55% at 50% -8%, rgba(96, 145, 225, 0.22), transparent 62%), #08080b;
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px;
  background: rgba(18, 18, 22, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.auth-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #d3d3d8;
  text-align: center;
}

.auth-tagline {
  margin: 0 0 4px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-title {
  margin: 4px 0 0;
  font-size: 20px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form .field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}

.auth-form input {
  font-family: inherit;
  font-size: 15px;
  color: var(--text-strong);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color-scheme: dark;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
}

.auth-error {
  margin: 0;
  font-size: 13px;
  color: #ff7a7a;
}

.auth-error[hidden] {
  display: none;
}

/* Séparateur « ou » + bouton Google sur l'écran de connexion */
.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-sep::before,
.auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-sep[hidden] { display: none; }

.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-oauth {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
}
.btn-oauth[hidden] { display: none; }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { filter: brightness(0.97); }
.btn-microsoft { background: #fff; color: #1f1f1f; }
.btn-microsoft:hover { filter: brightness(0.97); }
.btn-github { background: #1f2328; color: #fff; border-color: #333; }
.btn-github:hover { filter: brightness(1.15); }

.auth-toggle {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-link {
  border: none;
  background: none;
  padding: 0 0 0 4px;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Bloc compte dans le menu latéral */
.menu-account {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-account[hidden] {
  display: none;
}

.menu-account-email {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

.menu-account-btn {
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-body);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.menu-account-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-logout:hover {
  border-color: #ff7a7a;
  color: #ff7a7a;
}

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

/* Fond animé WebGL, en couche de fond fixe (voir pricing.js). */
#pricing-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: var(--bg-page);
}

/* Le contenu passe au-dessus du canvas. */
.pricing-page {
  position: relative;
  z-index: 1;
}

.pricing-main {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 20px 100px;
}

.pricing-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(34px, 5vw, 60px);
}

.pricing-hero h2 {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.06;
  background: linear-gradient(96deg, #f4f4f6 0%, #a9c2ff 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-hero p {
  margin: 14px auto 0;
  color: var(--text-body);
  font-size: clamp(15px, 2.3vw, 19px);
  max-width: 34ch;
}

.pricing-hero .pricing-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
}

.price-card {
  position: relative;
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.price-card.popular {
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.28), 0 26px 60px -26px rgba(91, 140, 255, 0.6);
  transform: scale(1.04);
}

.price-card.popular:hover {
  transform: scale(1.04) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--accent);
  color: #08080b;
  box-shadow: 0 8px 20px -8px rgba(91, 140, 255, 0.8);
}

/* Offre gratuite (bêta) : accent vert pour la distinguer des offres payantes. */
.price-card.free {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.24), 0 26px 60px -30px rgba(52, 211, 153, 0.55);
}

.free-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: #34d399;
  color: #08080b;
  box-shadow: 0 8px 20px -8px rgba(52, 211, 153, 0.8);
}

.price-card-head .plan-name {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.price-card-head .plan-desc {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 24px 0;
}

.plan-price .plan-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.plan-price .plan-period {
  font-size: 14px;
  color: var(--text-muted);
}

.price-card .card-divider {
  height: 1px;
  width: 100%;
  margin-bottom: 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22) 50%, transparent);
}

.plan-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}

.plan-features .chk {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.pricing-btn {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.pricing-btn:active {
  transform: scale(0.98);
}

.pricing-btn-primary {
  background: var(--accent);
  color: #08080b;
  border: 1px solid var(--accent);
}

.pricing-btn-primary:hover {
  background: #7aa2ff;
}

.pricing-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pricing-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Onde au clic (effet ripple, injectée par pricing.js). */
.pricing-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  animation: pricing-ripple 0.6s ease-out;
}

.pricing-btn-primary .ripple {
  background: rgba(8, 8, 11, 0.35);
}

@keyframes pricing-ripple {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .price-card,
  .price-card.popular {
    transform: none;
    max-width: 360px;
    width: 100%;
  }
  .price-card.popular:hover,
  .price-card:hover {
    transform: translateY(-4px);
  }
}
