/* Lecture commune et présentation de Julien. Les couleurs de la marque restent le repère. */
:root {
  --reading-paper: #fcfaf6;
  --reading-panel: #f4f1e9;
  --reading-line: #dedbd3;
  --reading-space: 1.5rem;
}

:root:not([data-theme="dark"]) {
  --color-canvas: var(--reading-paper);
  --color-muted: #526073;
  --td-muted: #526073;
  --td-slate-50: #f9f7f1;
}

:root[data-theme="dark"] {
  --reading-paper: #0b1020;
  --reading-panel: #172036;
  --reading-line: #34405a;
}

::selection {
  background: #e9d9ae;
  color: #14213f;
}

input,
textarea {
  caret-color: var(--color-gold);
}

html {
  scrollbar-color: var(--color-gold) var(--color-canvas);
  scrollbar-width: thin;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.brand .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand {
  padding: 0;
  background: transparent;
}

:root[data-theme="dark"] .brand img:not(.brand-logo-light) {
  display: none;
}

:root[data-theme="dark"] .brand .brand-logo-light {
  display: block;
}

:root[data-theme="dark"] .site-header {
  border-color: var(--reading-line);
  box-shadow: none;
}

.content-hero {
  padding-block: clamp(2rem, 4vw, 3.5rem) 2rem;
}

.content-hero h1 {
  max-width: 26ch;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.15;
}

.content-hero .breadcrumbs {
  margin-bottom: 1.75rem;
}

.content-lead {
  max-width: 68ch;
  line-height: 1.75;
}

.content-body .prose-section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top-color: var(--reading-line);
}

.content-body h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1.24;
}

.prose-section > p,
.prose-copy > p,
.about-biography > p {
  max-width: 72ch;
  font-size: 1.075rem;
  line-height: 1.8;
}

.prose-section > h2,
.split-section h2,
.section-intro-row h2 {
  max-width: 30ch;
  margin-bottom: var(--reading-space);
}

.prose-copy p + p,
.about-biography p + p {
  margin-top: var(--reading-space);
}

.split-section,
.section-intro-row {
  column-gap: clamp(2rem, 5vw, 4rem);
}

.profile-grid article {
  min-height: auto;
}

.profile-grid h3 {
  margin-top: 1.25rem;
}

.td-section {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.td-section-heading h2 {
  max-width: 30ch;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.td-section-heading > p {
  line-height: 1.75;
}

.td-about-portrait img {
  aspect-ratio: 1 / 1;
  object-position: center 45%;
}

.td-feature-number {
  display: none;
}

.td-feature-card h3 {
  margin-top: 1rem;
}

.td-feature-card p,
.td-situation-grid p {
  line-height: 1.65;
}

.td-feature-card {
  border-color: var(--reading-line);
}

.product-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.product-card-visual--preview {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
}

.product-card-visual--preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.about-page .content-hero {
  padding-bottom: 2.5rem;
}

.about-page .content-body {
  padding-bottom: 3rem;
}

.about-introduction {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: 3.5rem;
}

.about-portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--reading-panel);
  box-shadow: 0 16px 36px rgb(26 40 81 / 10%);
}

.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
}

.about-portrait figcaption {
  position: absolute;
  inset: auto 1rem 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.4;
}

.about-portrait figcaption span {
  display: block;
  color: var(--td-body);
  font-size: 0.85rem;
  font-weight: 400;
}

.about-biography h2 {
  max-width: 26ch;
  margin-bottom: var(--reading-space);
}

.about-biography strong {
  color: var(--color-navy);
}

.about-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

.about-section-heading h2,
.about-section-heading p {
  margin: 0;
}

.about-section-heading p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-method-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--reading-line);
}

.about-method-list li:first-child {
  padding-top: 0;
}

.about-method-list li:last-child {
  border-bottom: 0;
}

.about-method-emoji {
  font-size: 1.85rem;
  line-height: 1.4;
}

.about-method-list h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.4;
}

.about-method-list p {
  margin: 0;
  line-height: 1.75;
}

.about-example {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--reading-line);
  border-radius: 0.75rem;
  background: var(--reading-panel);
}

.about-example-label {
  margin-bottom: 1rem;
  color: var(--color-gold-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.about-example h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.4;
}

.about-example p:not(.about-example-label) {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-text-method {
  margin: 2rem 0 0;
}

.about-text-method a {
  display: inline-block;
  margin-top: 0.5rem;
}

.about-review-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.about-review-row .text-link {
  margin-left: auto;
}

.about-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.about-resource-image {
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
}

.about-resource-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-resource > div {
  padding-top: var(--reading-space);
}

.about-resource h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.35;
}

.about-resource h3 span {
  margin-right: 0.35rem;
}

.about-resource p {
  max-width: 55ch;
  line-height: 1.75;
}

.about-preview-link {
  display: block;
  width: fit-content;
  margin-top: 0.75rem;
  padding-block: 0.25rem;
  color: var(--td-body);
  font-size: 0.9rem;
}

.about-free-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--reading-space);
  margin-top: 2.5rem;
}

.about-course-note {
  margin: 2rem 0 0;
}

@media (max-width: 760px) {
  .about-introduction,
  .about-method-grid,
  .about-section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-introduction {
    gap: 2rem;
    padding-bottom: 2.5rem;
  }

  .about-portrait {
    width: min(100%, 28rem);
  }

  .about-portrait img {
    aspect-ratio: 5 / 4;
    object-position: center 40%;
  }

  .about-section-heading {
    margin-bottom: 2rem;
  }

  .about-review-row .text-link {
    margin-left: 0;
  }

  .about-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose-section > p,
  .prose-copy > p,
  .about-biography > p {
    font-size: 1rem;
  }
}
