/* Axeddam — fondations partagées (tokens, reset, atomes) */

:root {
  /* Couleurs de marque */
  --ink: #0E0F12;
  --paper: #F4F3F6;
  --surface: #16181D;
  --violet: #6C3BFF;
  --pink: #FF3D8B;
  --orange: #FF7A1A;
  --teal: #00D3C0;

  /* Déclinaisons claires, lisibles sur fond sombre */
  --violet-soft: #A88CFF;
  --pink-soft: #FF8FBB;
  --teal-soft: #5FE8DC;

  /* Encres sur fond sombre */
  --on-dark-1: rgba(244, 243, 246, 0.82);
  --on-dark-2: rgba(244, 243, 246, 0.62);
  --on-dark-3: rgba(244, 243, 246, 0.45);
  --on-dark-4: rgba(244, 243, 246, 0.22);

  /* Encres sur fond clair */
  --on-light-1: rgba(14, 15, 18, 0.66);
  --on-light-2: rgba(14, 15, 18, 0.55);

  /* Traits */
  --line: rgba(244, 243, 246, 0.08);
  --line-strong: rgba(244, 243, 246, 0.09);
  --line-light: rgba(14, 15, 18, 0.16);
  --fill: rgba(244, 243, 246, 0.04);
  --fill-hover: rgba(108, 59, 255, 0.16);

  /* Dégradés */
  --brand: linear-gradient(100deg, #6C3BFF 0%, #FF3D8B 48%, #FF7A1A 100%);
  --brand-cta: linear-gradient(100deg, #6C3BFF, #FF3D8B);
  --brand-mark: linear-gradient(135deg, #6C3BFF 0%, #FF3D8B 55%, #FF7A1A 100%);

  /* Typographie */
  --sans: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rayons */
  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 14px;

  --ease: 0.18s ease;
}

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

/* L'attribut `hidden` doit l'emporter : sa règle navigateur (`display: none`)
   est battue par la moindre classe qui pose un `display`. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), filter var(--ease);
}

a:hover {
  color: var(--pink);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
}

/* --- Enveloppe de page ------------------------------------------------- */

.shell {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  padding: 14px;
}

/* --- Marque ------------------------------------------------------------ */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  font-size: 44px;
  font-weight: 700;
  line-height: 0.8;
  background: var(--brand-mark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo__tag {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

/* --- Pastilles --------------------------------------------------------- */

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
}

.pill--sm {
  font-size: 10px;
  padding: 5px 11px;
}

.pill--paper { background: var(--paper); color: var(--ink); }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--ink-veil { background: rgba(14, 15, 18, 0.85); color: var(--paper); }
.pill--violet { background: var(--violet); color: var(--paper); }
.pill--pink { background: var(--pink); color: var(--ink); }
.pill--orange { background: var(--orange); color: var(--ink); }
.pill--teal { background: var(--teal); color: var(--ink); }

/* Teintes de statut : fond translucide + texte lisible */
.tone {
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tone--violet { background: rgba(108, 59, 255, 0.20); color: var(--violet-soft); }
.tone--pink { background: rgba(255, 61, 139, 0.18); color: var(--pink-soft); }
.tone--teal { background: rgba(0, 211, 192, 0.16); color: var(--teal-soft); }
.tone--orange { background: rgba(255, 122, 26, 0.18); color: var(--orange); }
/* Variante « payée » : même fond, encre turquoise pleine */
.tone--mint { background: rgba(0, 211, 192, 0.16); color: var(--teal); }

/* --- Boutons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), filter var(--ease);
}

.btn--brand {
  background: var(--brand-cta);
  color: var(--paper);
}

.btn--brand:hover {
  filter: brightness(1.12);
  color: var(--paper);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--violet);
  color: var(--paper);
}

/* Lien souligné façon terminal */
.link-underline {
  font-family: var(--mono);
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
}

.panel__title {
  margin: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.panel__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-dark-3);
}

.panel__body {
  margin-top: 20px;
}

.panel__title--spaced {
  margin-bottom: 18px;
}

/* Deux colonnes de panneaux, la seconde empilant plusieurs blocs */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.split__col {
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.mono {
  font-family: var(--mono);
}

/* `minmax(0, 1fr)` et non `1fr` : sans le minimum à zéro, la piste implicite
   se dimensionne sur le contenu le plus large (une adresse e-mail, une
   référence longue) et déborde du conteneur au lieu de le remplir. */
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.min0 {
  min-width: 0;
}

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