:root {
  --color-lait: #f7f1e7;
  --color-lavande-brume: #dcdde8;
  --color-lavande-pale: #eae8f0;
  --color-olive-profond: #354335;
  --color-olive-doux: #596453;
  --color-rose-poudre: #d89ea3;
  --color-rose-poudre-clair: #f0d3d1;
  --color-terre-douce: #b89d83;
  --color-blanc-lin: #fffdf8;

  --color-text: var(--color-olive-profond);
  --color-text-muted: var(--color-olive-doux);
  --color-background: var(--color-lait);
  --color-surface: var(--color-blanc-lin);
  --color-surface-muted: var(--color-lavande-brume);
  --color-border: rgb(184 157 131 / 55%);
  --color-border-subtle: rgb(53 67 53 / 14%);
  --color-focus: #b97880;
  --color-button-hover: #c8878d;
  --color-disabled-text: #a8a99f;
  --color-disabled-background: #eee9df;
  --color-error-background: var(--color-rose-poudre-clair);

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.875rem, 3vw, 2.125rem);
  --text-display: clamp(2.375rem, 5vw, 3.25rem);

  --leading-tight: 1.02;
  --leading-heading: 1.1;
  --leading-card: 1.2;
  --leading-body: 1.65;
  --leading-meta: 1.5;
  --leading-caption: 1.4;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;
  --space-10: 7.5rem;

  --container-max: 73.75rem;
  --gutter: 2rem;
  --section-space: clamp(5.5rem, 9vw, 7.5rem);

  --radius-control: 0.25rem;
  --radius-card: 0.625rem;
  --radius-panel: 1.125rem;
  --radius-decorative: 2rem;

  --shadow-soft: 0 8px 24px rgb(53 67 53 / 8%);
  --transition-fast: 180ms ease;
  --transition-gentle: 360ms ease;
}

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

html {
  min-width: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
form,
fieldset,
figure,
blockquote,
table {
  min-width: 0;
}

img,
picture,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
video,
canvas {
  height: auto;
}

img {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

button,
[type="button"],
[type="submit"],
[type="reset"] {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-card);
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  background: var(--color-disabled-background);
  color: var(--color-disabled-text);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-blanc-lin);
  padding: 0.625rem 0.75rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

select {
  cursor: pointer;
}

label {
  display: inline-block;
  margin-block-end: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-meta);
}

legend {
  padding-inline: var(--space-2);
  color: var(--color-text);
  font-weight: 600;
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

::placeholder {
  color: var(--color-olive-doux);
  opacity: 0.8;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--color-lait);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 var(--space-4);
  color: var(--color-olive-profond);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
}

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

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

h4,
h5,
h6 {
  font-size: var(--text-lg);
  line-height: var(--leading-heading);
}

p {
  margin-block: 0 var(--space-4);
}

ul,
ol {
  margin-block: 0 var(--space-4);
  padding-inline-start: 1.25rem;
}

li::marker {
  color: var(--color-terre-douce);
}

blockquote {
  margin: 0 0 var(--space-5);
  border-inline-start: 2px solid var(--color-terre-douce);
  padding-inline-start: var(--space-4);
  color: var(--color-olive-doux);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.45;
}

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

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

hr {
  height: 1px;
  margin-block: var(--space-6);
  border: 0;
  background: var(--color-border);
}

small {
  font-size: var(--text-xs);
  line-height: var(--leading-caption);
}

strong {
  font-weight: 650;
}

em {
  font-family: var(--font-heading);
}

table {
  width: 100%;
  margin-block-end: var(--space-5);
  border-collapse: collapse;
}

caption {
  margin-block-end: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: start;
}

th,
td {
  border-block-end: 1px solid var(--color-border-subtle);
  padding: var(--space-3);
  text-align: start;
  vertical-align: top;
}

th {
  color: var(--color-olive-profond);
  font-weight: 650;
}

address {
  margin-block-end: var(--space-4);
  font-style: normal;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.surface-card,
.surface-note,
.surface-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.surface-card {
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.surface-note {
  border-radius: var(--radius-panel);
  background: var(--color-surface-muted);
  padding: var(--space-6);
}

.surface-panel {
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
}

.surface-card > :last-child,
.surface-note > :last-child,
.surface-panel > :last-child,
.content-group > :last-child {
  margin-block-end: 0;
}

.content-group > :last-child:is(ul, ol, figure, blockquote, table, address) {
  margin-block-end: 0;
}

.button,
.button-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 0.625rem 1rem;
  background: var(--color-rose-poudre);
  color: var(--color-olive-profond);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.button:hover,
.button-link:hover {
  border-color: rgb(53 67 53 / 22%);
  background: var(--color-button-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.button:disabled,
.button-link[aria-disabled="true"] {
  border-color: transparent;
  background: var(--color-disabled-background);
  color: var(--color-disabled-text);
  pointer-events: none;
  transform: none;
}

.button--secondary,
.button-link--secondary {
  border-color: var(--color-border);
  background: var(--color-blanc-lin);
}

.button--secondary:hover,
.button-link--secondary:hover {
  background: var(--color-rose-poudre-clair);
}

.button--full,
.button-link--full {
  width: 100%;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-width: 0;
}

.action-group > * {
  min-width: 0;
}

.text-link {
  color: var(--color-olive-profond);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: var(--color-terre-douce);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

.meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-meta);
}

.caption {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-caption);
}

.form-help {
  display: block;
  margin-block-start: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-meta);
}

.form-error {
  margin-block-end: var(--space-4);
  border: 1px solid rgb(185 120 128 / 35%);
  border-radius: var(--radius-control);
  background: var(--color-error-background);
  color: var(--color-olive-profond);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  line-height: var(--leading-meta);
}

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

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

.list-content {
  display: grid;
  gap: var(--space-2);
}

.list-content,
.list-content ul,
.list-content ol {
  padding-inline-start: 1.25rem;
}

.list-content > li {
  min-width: 0;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-200%);
  border-radius: var(--radius-control);
  background: var(--color-olive-profond);
  color: var(--color-lait);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 56.25rem) {
  :root {
    --gutter: 1.25rem;
    --section-space: clamp(3.5rem, 11vw, 4.5rem);
  }

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

  .surface-note,
  .surface-panel {
    padding: var(--space-5);
  }

  .action-group {
    align-items: stretch;
  }
}

@media (max-width: 30rem) {
  .action-group {
    flex-direction: column;
  }

  .action-group > .button,
  .action-group > .button-link {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}