:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #171513;
  --muted: #61584f;
  --line: rgba(23, 21, 19, 0.12);
  --brand: #8e2438;
  --brand-strong: #641626;
  --accent: #0f6270;
  --accent-soft: #dbeceb;
  --accent-warm: #f1dcc3;
  --warm: #c98f57;
  --shadow: 0 24px 72px rgba(39, 27, 18, 0.12);
  --shadow-soft: 0 10px 26px rgba(39, 27, 18, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1180px;
  --gap: clamp(16px, 2vw, 28px);
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(142, 36, 56, 0.11), transparent 26%),
    radial-gradient(circle at top right, rgba(15, 98, 112, 0.12), transparent 28%),
    linear-gradient(180deg, #faf7f1 0%, #f6f1e8 56%, #f2ebdf 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(20px);
}

body::before {
  top: -120px;
  right: -140px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(142, 36, 56, 0.14), transparent 65%);
}

body::after {
  bottom: -180px;
  left: -180px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(15, 98, 112, 0.12), transparent 65%);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(141, 90, 45, 0.28);
  outline-offset: 3px;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

p,
ul,
ol {
  margin: 0;
}

ul {
  padding-left: 1.2rem;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(48px, 6vw, 88px) 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 21, 19, 0.08), transparent);
}

.section--tight {
  padding-block: 12px 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow--inverted {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow--inverted::before {
  background: rgba(255, 255, 255, 0.82);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading--compact {
  margin-bottom: 20px;
}

.section-heading h2,
.section-heading h1,
.page-hero h1,
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  line-height: 0.96;
}

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pill,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.surface {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(40, 29, 20, 0.08);
  box-shadow: var(--shadow-soft);
}

.visually-muted {
  color: var(--muted);
}

.flow > * + * {
  margin-top: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card__media {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius-md) - 1px);
  background:
    linear-gradient(135deg, rgba(142, 36, 56, 0.22), rgba(15, 98, 112, 0.16)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18) 0 10px,
      rgba(255, 255, 255, 0.08) 10px 20px
    );
}

.card__media::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 16px 16px auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.card__media--image::after {
  display: none;
}

.card__media-img,
.media-frame__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.media-frame {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 320px;
  border: 1px dashed rgba(40, 29, 20, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25)),
    radial-gradient(circle at top left, rgba(142, 36, 56, 0.18), transparent 42%);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.media-frame--hero,
.media-frame--article {
  padding: 0;
  overflow: hidden;
}

.media-frame--hero {
  min-height: 420px;
}

.media-frame--article {
  min-height: 460px;
}

.media-frame__label {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 700;
}

.media-frame__hint {
  max-width: 28ch;
  font-size: 0.94rem;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(40, 29, 20, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.ad-slot::before {
  content: "Espace publicitaire";
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 560px;
  background: #151210;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-banner__image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #151210;
}

.feature-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 13, 12, 0.86) 0%, rgba(15, 13, 12, 0.62) 46%, rgba(15, 13, 12, 0.14) 100%),
    linear-gradient(0deg, rgba(15, 13, 12, 0.46) 0%, rgba(15, 13, 12, 0.08) 64%);
}

.feature-banner__content {
  position: absolute;
  inset: auto auto 0 0;
  max-width: 780px;
  padding: clamp(24px, 5vw, 56px);
  color: #fff;
  display: grid;
  gap: 18px;
}

.feature-banner__content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.92;
  text-wrap: balance;
}

.feature-banner--article {
  min-height: 520px;
}

.feature-banner--article .feature-banner__content {
  max-width: 760px;
}

.hero__lead--inverted,
.article-hero__lead--inverted {
  color: rgba(255, 255, 255, 0.84);
}

.hero__signals--inverted {
  color: rgba(255, 255, 255, 0.86);
}

.hero__signals--inverted li::before {
  color: #fff;
}

.note-box,
.footnotes {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 29, 23, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.note-box {
  padding: 20px;
}

.note-box__label {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footnotes {
  padding: 22px;
}

.footnotes h2 {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.footnotes ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2rem;
}

.footnotes li {
  color: var(--muted);
}

.footnote-ref a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 800;
}

.legal-page {
  padding-top: 34px;
}

.legal-page__hero {
  display: grid;
  gap: 14px;
  padding: 34px 0 18px;
}

.legal-page__hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-page__content {
  display: grid;
  gap: 18px;
  padding-bottom: 42px;
}

.legal-card {
  border: 1px solid rgba(36, 29, 23, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(23, 21, 19, 0.12);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 20px 42px rgba(28, 22, 16, 0.18);
  backdrop-filter: blur(18px);
}

.cookie-banner__copy {
  display: grid;
  gap: 8px;
  max-width: 72ch;
}

.cookie-banner__eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-banner__copy p:last-child {
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ad-slot--leaderboard {
  min-height: 90px;
}

.ad-slot--rectangle {
  min-height: 250px;
}
