:root {
  --encre-nuit: #0E0B14;
  --velours: #1A1424;
  --brume: #241C31;
  --ivoire: #F6F1EA;
  --cendre: #B9AFC4;
  --rose-ceremonie: #F27C9B;
  --or-champagne: #E8C27A;
  --vert-sauge: #7FC8A9;
  --bordeaux-alerte: #E06A6A;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;

  --leading-xs: 1.4;
  --leading-sm: 1.5;
  --leading-md: 1.6;
  --leading-lg: 1.55;
  --leading-xl: 1.35;
  --leading-2xl: 1.25;
  --leading-3xl: 1.15;
  --leading-4xl: 1.05;
  --leading-5xl: 1.0;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --container-reading: 680px;
  --container-wide: 1120px;
  --gutter-mobile: 20px;
  --gutter-tablet: 32px;
  --gutter-desktop: 48px;
  --gutter-grid-desktop: 24px;
  --gutter-grid-mobile: 16px;

  --border-subtle: 1px solid rgba(246, 241, 234, 0.10);
  --border-focus: 2px solid var(--rose-ceremonie);
  --separator-accent: 1px solid rgba(242, 124, 155, 0.35);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.35);
  --transition-fast: 120ms ease;
  --transition-base: 150ms ease;
  --transition-slow: 200ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--encre-nuit);
  color: var(--ivoire);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--leading-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

a {
  color: var(--rose-ceremonie);
  text-decoration: none;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

a:hover {
  color: var(--rose-ceremonie);
  text-decoration: underline;
  text-decoration-color: var(--rose-ceremonie);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: var(--border-focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ivoire);
  line-height: var(--leading-2xl);
  margin-block-end: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-4xl);
  margin-block-end: var(--space-5);
}

h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-3xl);
  margin-block-end: var(--space-5);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
  margin-block-end: var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  margin-block-end: var(--space-3);
}

h5 {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  margin-block-end: var(--space-3);
}

h6 {
  font-size: var(--text-md);
  line-height: var(--leading-md);
  margin-block-end: var(--space-2);
}

p {
  margin-block-end: var(--space-4);
  line-height: var(--leading-md);
}

ul,
ol {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-block-end: 0;
}

blockquote {
  margin-block-end: var(--space-5);
  padding: var(--space-5);
  background-color: var(--brume);
  border-inline-start: 3px solid var(--rose-ceremonie);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  color: var(--ivoire);
}

blockquote p {
  margin-block-end: 0;
}

figure {
  margin-block-end: var(--space-5);
}

figcaption {
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--cendre);
  margin-block-start: var(--space-2);
}

hr {
  border: none;
  border-block-start: var(--separator-accent);
  margin-block: var(--space-7);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-5);
  background-color: var(--brume);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  border-block-end: var(--border-subtle);
}

th {
  font-weight: 500;
  color: var(--ivoire);
  background-color: var(--velours);
}

td {
  color: var(--cendre);
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ivoire);
  margin-block-end: var(--space-2);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--velours);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ivoire);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

input::placeholder,
textarea::placeholder {
  color: var(--cendre);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rose-ceremonie);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B9AFC4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-inline-end: var(--space-7);
}

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}

.container--reading {
  max-width: var(--container-reading);
}

.surface {
  background-color: var(--velours);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
}

.surface--soft {
  background-color: var(--brume);
}

.surface--interactive {
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.surface--interactive:hover {
  border-color: rgba(246, 241, 234, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
}

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

.btn--primary {
  background-color: var(--rose-ceremonie);
  color: var(--encre-nuit);
}

.btn--primary:hover {
  background-color: #d96a87;
  color: var(--encre-nuit);
  text-decoration: none;
}

.btn--secondary {
  background-color: transparent;
  border: 1px solid rgba(246, 241, 234, 0.20);
  color: var(--ivoire);
}

.btn--secondary:hover {
  border-color: rgba(246, 241, 234, 0.35);
  color: var(--ivoire);
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  background-color: var(--or-champagne);
  color: var(--encre-nuit);
}

.badge--small {
  min-width: 24px;
  min-height: 24px;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  border-radius: var(--radius-xs);
}

.badge--accent {
  background-color: var(--rose-ceremonie);
  color: var(--encre-nuit);
}

.badge--positive {
  background-color: var(--vert-sauge);
  color: var(--encre-nuit);
}

.badge--alert {
  background-color: var(--bordeaux-alerte);
  color: var(--ivoire);
}

.card {
  background-color: var(--velours);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.card:hover {
  border-color: rgba(246, 241, 234, 0.22);
}

.card__body {
  padding: var(--space-5);
}

.card__body > :last-child {
  margin-block-end: 0;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--brume);
}

.card__image--portrait {
  aspect-ratio: 9 / 16;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack--tight {
  gap: var(--space-2);
}

.stack--loose {
  gap: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.cluster > * {
  min-width: 0;
}

.cluster--tight {
  gap: var(--space-2);
}

.cluster--loose {
  gap: var(--space-5);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background-color: var(--rose-ceremonie);
  color: var(--encre-nuit);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--gutter-tablet);
  }

  h1 {
    font-size: var(--text-5xl);
    line-height: var(--leading-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
    line-height: var(--leading-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
    line-height: var(--leading-3xl);
  }
}

@media (min-width: 1120px) {
  .container {
    padding-inline: var(--gutter-desktop);
  }

  h1 {
    font-size: var(--text-5xl);
    line-height: var(--leading-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
    line-height: var(--leading-4xl);
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: var(--text-3xl);
    line-height: var(--leading-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
  }

  h3 {
    font-size: var(--text-xl);
    line-height: var(--leading-xl);
  }

  blockquote {
    font-size: var(--text-lg);
    line-height: var(--leading-lg);
    padding: var(--space-4);
  }

  .card__body {
    padding: var(--space-4);
  }
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}
