:root {
  --color-yellow: #eced42;
  --color-ink: #181818;
  --color-white: #fff;
  --color-focus: #2857d6;
  --font-body: Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --page-max: 1280px;
  --card-radius: 30px;
  --gutter: clamp(1.25rem, 7.8125vw, 6.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--color-ink);
  background: #f2f2f2;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6667;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.editorial-link {
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}
h1,
h2,
p,
figure {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.0417;
}
h1,
h2 {
  font-size: clamp(1.8rem, 3.25vw, 2.2rem);
}
p {
  margin-bottom: 1.5rem;
}
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.site-shell {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  overflow: hidden;
  background: var(--color-white);
}
.site-header {
  height: 110px;
  display: grid;
  place-items: center;
  padding: 15px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 80%;
  height: auto;
  object-fit: contain;
}
.brand--header {
  width: 166px;
}

.hero {
  height: clamp(16rem, 56.4844vw, 45.1875rem);
}
.hero img,
.category-section > img,
.founders-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero img {
  object-position: 52% center;
}
.content-section {
  display: grid;
  place-items: center;
  padding: 50px;
  text-align: center;
}
.text-block {
  width: min(100%, 67.5rem);
}
.intro {
  margin-top: 0px;
}
.intro h1 span {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.3rem;
  line-height: 1.4;
}
.intro p,
.founders-section p,
.library-section p {
  max-width: 67.5rem;
  margin-inline: auto;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 0;
  color: var(--color-white);
  background: var(--color-ink);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  box-shadow: 0 0 0 rgb(0 0 0 / 0%);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
.button:hover {
  color: var(--color-white);
  background: #303030;
  box-shadow: 0 8px 18px rgb(0 0 0 / 18%);
  transform: translateY(-2px);
}
.button:active {
  box-shadow: 0 3px 8px rgb(0 0 0 / 14%);
  transform: translateY(0);
}
.brand--intro {
  display: flex;
  width: min(100%, 340px);
  margin-inline: auto;
  margin-top: 4.0625rem;
}

.category-section {
  position: relative;
  display: grid;
  align-items: center;
  padding: 5rem;
  isolation: isolate;
}

.category-section + .category-section {
  margin-top: 10px;
}

.category-section > img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.category-card {
  width: min(100%, 34.375rem);
  margin-inline: auto;
  padding: 3.125rem;
  border-radius: var(--card-radius);
  background: rgb(255 255 255 / 90%);
  text-align: center;
}
.category-card h2 {
  margin-bottom: 0.625rem;
}
.category-lead,
.section-lead {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.25;
}
.category-lead {
  margin-bottom: 1.25rem;
}
.category-card p:last-child {
  margin-bottom: 0;
}
.category-section:nth-child(1) {
  --section-height: 750px;
}
.category-section:nth-child(2) {
  --section-height: 650px;
}
.category-section:nth-child(3),
.category-section:nth-child(4) {
  --section-height: 600px;
}
.category-section:nth-child(1) > img {
  object-position: 47% center;
}
.category-section:nth-child(2) > img {
  object-position: 54% center;
}
.category-section:nth-child(3) > img {
  object-position: 51% center;
}
.category-section:nth-child(4) > img {
  object-position: 48% center;
}

.library-section,
.site-footer {
  background: var(--color-yellow);
}
.button-note {
  margin-top: 1.875rem;
  margin-bottom: 0;
}
.founders-photo {
  --founders-photo-x: 81%;
  --founders-photo-y: 10%;
  height: 500px;
  margin: 0;
}
.founders-photo img {
  object-position: var(--founders-photo-x) var(--founders-photo-y);
}

.site-footer {
  padding: 3rem var(--gutter) 1.25rem;
  text-align: center;
}
.brand--footer {
  width: min(100%, 389px);
  margin-inline: auto;
  margin-bottom: 1.875rem;
}
.footer-title {
  margin-bottom: 1.875rem;
  font-size: 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 1.875rem 6.25rem;
  justify-content: center;
}
.footer-grid p {
  margin-bottom: 0.625rem;
  font-size: 1rem;
}
.footer-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-icon__dot {
  fill: currentColor;
  stroke: none;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}
.footer-nav a {
  text-underline-offset: 0.2em;
}
.footer-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}
.site-footer a {
  text-decoration: none;
}
.association-logo {
  width: 193px;
  height: 138px;
  margin: 1.875rem auto 0;
  object-fit: contain;
}
.footer-note {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
}

/* Mentions légales */
.legal-shell {
  overflow: visible;
}
.legal-main {
  width: min(100% - 2.5rem, 900px);
  margin-inline: auto;
}
.legal-main h1 {
  margin: 0.75rem 0;
}
.legal-main h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}
.legal-back {
  display: inline-block;
  margin: 3rem 0;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.2em;
}
.legal-updated {
  margin-bottom: 2.5rem;
  color: #555;
  font-size: 0.95rem;
}
.legal-notice {
  margin-bottom: 3.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--color-ink);
  background: var(--color-yellow);
}
.legal-notice p:last-child {
  margin-bottom: 0;
}
.legal-section {
  padding-block: 2.5rem;
  border-top: 1px solid #d6d6d6;
}
.legal-section address {
  font-style: normal;
}
.legal-details {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1.2fr;
  margin: 0;
}
.legal-details dt,
.legal-details dd {
  padding-block: 0.85rem;
  border-bottom: 1px solid #e5e5e5;
}
.legal-details dt {
  padding-right: 1rem;
  font-weight: 600;
}
.legal-details dd {
  margin: 0;
}
.legal-details dt:last-of-type,
.legal-details dd:last-of-type {
  border-bottom: 0;
}
.legal-details small {
  display: block;
  color: #555;
}
.legal-footer {
  padding: 3rem 1.25rem 2rem;
  background: var(--color-yellow);
  text-align: center;
}
.legal-footer__logo {
  width: min(80%, 320px);
  height: auto;
  margin: 0 auto 2rem;
}
.legal-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Catalogue des tisanes */
.catalog-shell {
  overflow: visible;
}
.catalog-banner {
  height: clamp(18rem, 42vw, 34rem);
  margin: 0;
}
.catalog-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.catalog-hero {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 4vw, 3.5rem);
  background: var(--color-white);
}
.breadcrumb-bar {
  padding: 1.25rem var(--gutter);
  background: var(--color-white);
}
.breadcrumb {
  width: min(100%, 1080px);
  margin: 0 auto;
  font-size: 0.95rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  speak: never;
}
.breadcrumb a {
  text-underline-offset: 0.2em;
}
.breadcrumb [aria-current="page"] {
  font-weight: 600;
}
.catalog-hero__content {
  width: min(100%, 850px);
  margin-inline: auto;
  text-align: center;
}
.catalog-hero h1 {
  margin-bottom: 2rem;
}
.catalog-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.catalog-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--color-white);
}
.catalog-section {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4rem) var(--gutter);
}
.catalog-section::before {
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  /*background: #d9d9d9;*/
  background: #ffffff;
  content: "";
}
.catalog-section > h2 {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.catalog-grid--single {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 600px);
  margin-inline: auto;
}
.tea-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid #d9d9d9;
  border-radius: var(--card-radius);
  background: rgb(255 255 255 / 92%);
}
.tea-card h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.65rem, 2.7vw, 2.1rem);
  font-weight: 300;
  line-height: 1.15;
}
.tea-card p {
  margin-bottom: 1rem;
}
.tea-use {
  font-size: 1.1rem;
  font-weight: 500;
}
.tea-meta {
  width: fit-content;
  padding: 0.25rem 0.65rem;
  background: rgb(243, 242, 242);
  font-weight: 700;
}
.tea-warning,
.tea-suitable {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #d9d9d9;
  font-size: 0.95rem;
  font-weight: 600;
}
.tea-warning::before {
  content: "⚠ ";
}
.tea-suitable::before {
  content: "Information · ";
}
.catalog-disclaimer {
  width: min(100%, 850px);
  margin: 7rem auto 0;
  padding: 1.5rem;
  border-left: 5px solid var(--color-ink);
  background: #f3f3f3;
}
.catalog-disclaimer p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .category-section {
    /*grid-template-columns: repeat(12, 1fr);*/
    padding-inline: var(--gutter);
  }
  .category-card {
    margin: 0;
  }
  .category-section--right .category-card {
    grid-column: 7 / 13;
    justify-self: end;
  }
  .category-section--left .category-card {
    grid-column: 1 / 7;
    justify-self: start;
  }
  .footer-grid {
    grid-template-columns: 302px 317px;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .intro {
    margin-top: 0px;
  }
  .content-section {
    padding-inline: 20px;
  }
  .category-section {
    padding-inline: 20px;
  }
  .category-section:nth-child(1) {
    --section-height: 1102px;
  }
  .category-section:nth-child(n + 2) {
    --section-height: 816px;
  }
  .category-card {
    padding: 50px 30px;
  }
  .library-section {
    min-height: auto;
  }
  .founders-section {
    min-height: auto;
  }
  .site-footer {
    padding: 70px 20px 20px;
  }
  .footer-grid {
    text-align: left;
  }
  .legal-details {
    grid-template-columns: 1fr;
  }
  .legal-details dt {
    padding-bottom: 0.1rem;
    border-bottom: 0;
  }
  .legal-details dd {
    padding-top: 0.1rem;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-order {
    flex-direction: column;
  }
  .intro h1 span {
    font-size: 1.2rem;
  }
  .category-lead,
  .section-lead {
    font-size: 1.2rem;
  }
}

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