@charset "UTF-8";
/* ==========================================================================
   cover / tools
   ========================================================================== */
/* ==========================================================================
   cover / typo
   ========================================================================== */
/* ==========================================================================
   COLORS / SETTINGS
   ========================================================================== */
:root {
  --color-white: #fff;
  --color-black: #000;
  --color-primary: #5c7048;
  --color-primary-dark: #43542f;
  --color-primary-light: #8ba173;
  --color-text: #2b2b2b;
  --color-text-muted: #6f6f6a;
  --color-bg-primary: #fffefb;
  --color-bg-cream: #f7f4ee;
  --color-bg-beige: #ece7dc;
  --color-border: #e3ded3;
  --color-heart: #d6483b;
}

/* ==========================================================================
   easing / settings
   ========================================================================== */
/* ==========================================================================
   FONTS / SETTINGS
   ========================================================================== */
:root {
  --font-primary: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-secondary: "Playfair Display", Georgia, serif;
  --font-size-content: clamp(0.94rem, 0.21vw + 0.88rem, 1.06rem);
  --font-size-small: clamp(0.81rem, 0.1vw + 0.78rem, 0.88rem);
  --font-size-h1: clamp(2.13rem, 2.71vw + 1.31rem, 3.75rem);
  --font-size-h2: clamp(1.5rem, 1.25vw + 1.13rem, 2.25rem);
  --font-size-h3: clamp(1.19rem, 0.52vw + 1.03rem, 1.5rem);
  --font-size-h4: clamp(1.06rem, 0.31vw + 0.97rem, 1.25rem);
  --font-size-h5: clamp(0.94rem, 0.21vw + 0.88rem, 1.06rem);
  --font-size-h6: clamp(0.88rem, 0.1vw + 0.84rem, 0.94rem);
}

/* ==========================================================================
   DIMENSIONS / SETTINGS
   ========================================================================== */
:root {
  --spacing-xs: 5px;
  --spacing-sm: 15px;
  --spacing-md: 30px;
  --spacing-lg: 50px;
  --spacing-xl: 100px;
  --spacing-xxl: 220px;
  --header-height: 76px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* ==========================================================================
   RESET / GENERIC
   ========================================================================== */
html {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
}

.tt {
  align-items: center;
  color: var(--color-black);
  display: flex;
  height: 100vh;
  font:
    800 75px/1.5 helvetica,
    sans-serif;
  justify-content: center;
  position: fixed;
  left: 0;
  margin: 0;
  top: 0;
  width: 100vw;
}

/* ==========================================================================
   BODY / ELEMENT
   Le body permet d'initialiser les propriétés générales de la page.
   Les éléments de la page vont hérités des propriétés inscrite dans body
   ========================================================================== */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-content);
  color: var(--color-black);
  line-height: 1.6;
}

/* ==========================================================================
   HEADINGS / ELEMENT
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  line-height: 1.1;
  font-weight: bold;
  margin: 0;
}

h1 {
  font-size: var(--font-size-h1);
  line-height: 1;
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

em {
  font-style: italic;
}

/* ==========================================================================
   LINKS / ELEMENTS
   Style de base de tous les liens et bouton du site
   ========================================================================== */
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   WRAPPER / ELEMENT
   ========================================================================== */
.wrapper {
  max-width: 1180px;
  width: calc(100% - var(--spacing-md) * 2);
  margin: 0 auto;
}

.wrapper--narrow {
  max-width: 860px;
}

/* ==========================================================================
   HELPERS / ELEMENTS
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
}

/* ==========================================================================
   GRID / OBJECT
   Grille de base du projet. Aucune grille externe n'est utilisée.
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid--2 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid--sidebar {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid--sidebar {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--spacing-lg);
  }
}

/* ==========================================================================
   icons / component
   ========================================================================== */
.icon {
  fill: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 1em;
  vertical-align: middle;
  width: 1em;
  stroke: transparent;
}

.icon--stroke {
  fill: transparent;
  stroke: currentColor;
}

.icon--xs {
  height: 0.75em;
  width: 0.75em;
}

.icon--sm {
  height: 0.8em;
  width: 0.8em;
}

.icon--md {
  height: 1.25em;
  width: 1.25em;
}

.icon--lg {
  height: 1.75em;
  width: 1.75em;
}

.icon--xl {
  height: 6em;
  width: 6em;
}

/* ==========================================================================
   button / component
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.button:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.button--ghost {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.button--ghost:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   badge / component
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-cream);
  font-size: clamp(0.69rem, 0.1vw + 0.66rem, 0.75rem);
  line-height: 1.4;
  color: var(--color-text-muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   section / component
   ========================================================================== */
.section {
  padding: var(--spacing-lg) 0;
}

.section--cream {
  background-color: var(--color-bg-cream);
}

.section__title {
  margin-bottom: var(--spacing-md);
}

.section__foot {
  margin-top: var(--spacing-md);
  text-align: center;
}

/* ==========================================================================
   header / component
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
}
.header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  min-height: var(--header-height);
}
.header .header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: clamp(1.19rem, 0.42vw + 1.06rem, 1.44rem);
  font-weight: 700;
  color: var(--color-text);
}
.header .header__logo:hover {
  color: var(--color-primary);
}
.header .header__logo .icon {
  color: var(--color-primary);
}
.header .header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-text);
  cursor: pointer;
}
@media (min-width: 768px) {
  .header .header__toggle {
    display: none;
  }
}
.header .header__toggle .header__toggle-close {
  display: none;
}
.header .header__nav {
  display: none;
}
@media (min-width: 768px) {
  .header .header__nav {
    display: block;
  }
}
.header .nav__menu {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .header .nav__menu {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
  }
}
.header .nav__link {
  display: block;
  font-size: var(--font-size-small);
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header .nav__link:hover,
.header .nav__link.is-active {
  color: var(--color-primary);
}
.header .header__search {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}
@media (min-width: 768px) {
  .header .header__search {
    display: inline-flex;
  }
}
.header .header__search:hover {
  color: var(--color-primary);
}

/* --- État ouvert (mobile) ------------------------------------------------ */
.header.is-open .header__nav {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
}
.header.is-open .header__toggle-open {
  display: none;
}
.header.is-open .header__toggle-close {
  display: block;
}

/* ==========================================================================
   page-header / component
   ========================================================================== */
.page-header {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-bg-beige);
  text-align: center;
}

.page-header__title {
  margin-bottom: var(--spacing-xs);
}

.page-header__text {
  color: var(--color-text-muted);
}

/* ==========================================================================
   footer / component
   ========================================================================== */
.footer {
  padding: var(--spacing-md) 0;
  background-color: var(--color-bg-cream);
  border-top: 1px solid var(--color-border);
}
.footer .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}
@media (min-width: 768px) {
  .footer .wrapper {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer .footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: clamp(1.06rem, 0.31vw + 0.97rem, 1.25rem);
  font-weight: 700;
}
.footer .footer__logo .icon {
  color: var(--color-primary);
}
.footer .footer__legal {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}
.footer .footer__socials {
  display: flex;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer .footer__social {
  display: inline-flex;
  color: var(--color-text);
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer .footer__social:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   hero / component
   Section intro de la page d'accueil : image de fond pleine largeur,
   contenu par-dessus dans la colonne de gauche.
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-beige);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 75% center;
  object-position: 75% center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    100deg,
    rgba(236, 231, 220, 0.96) 0%,
    rgba(236, 231, 220, 0.9) 30%,
    rgba(236, 231, 220, 0.4) 55%,
    rgba(236, 231, 220, 0) 75%
  );
}
@media (max-width: 767px) {
  .hero::after {
    background: rgba(236, 231, 220, 0.88);
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 40vw, 520px);
  padding: var(--spacing-lg) 0;
}

.hero__content {
  max-width: 30rem;
}

.hero__title {
  margin-bottom: var(--spacing-sm);
}

.hero__text {
  max-width: 34ch;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-muted);
}

/* ==========================================================================
   card / component
   Carte de recette (accueil + page liste)
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.08);
}

.card__media {
  position: relative;
  aspect-ratio: 4/3;
}

.card__image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.card__favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-heart);
}
.card__favorite-btn .icon {
  width: 0.9em;
  height: 0.9em;
}
.card__favorite-btn .icon-favorite__hole {
  fill: var(--color-white);
}
.card__favorite-btn.is-active .icon {
  animation: favorite-pop 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card__favorite-btn.is-active .icon-favorite__hole {
  fill: currentColor;
}

@keyframes favorite-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--spacing-sm);
}

.card__title {
  font-size: var(--font-size-h4);
}

.card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.card__text {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.card__link {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}

/* ==========================================================================
   filters / component
   Recherche et filtres de la page liste des recettes
   ========================================================================== */
.filters {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.filters__input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  color: var(--color-text);
}

.filters__submit {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  transform: translateY(-50%);
  cursor: pointer;
}
.filters__submit:hover {
  color: var(--color-primary);
}

.filters__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filters__button {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.filters__button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filters__button.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.is-hidden {
  display: none;
}

/* ==========================================================================
   values / component
   Bande verte « Des ingrédients simples / Pour tous les goûts / ... »
   ========================================================================== */
.values {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.values__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.values__icon {
  color: var(--color-white);
}

.values__title {
  font-size: var(--font-size-h4);
}

.values__text {
  max-width: 30ch;
  font-size: var(--font-size-small);
  opacity: 0.85;
}

/* ==========================================================================
   breadcrumb / component
   ========================================================================== */
.breadcrumb {
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb__item:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
}

/* ==========================================================================
   recipe / component
   Page détail d'une recette
   ========================================================================== */
.recipe {
  padding-bottom: var(--spacing-lg);
}

.recipe__head {
  margin-top: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.recipe__favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-heart);
}
.recipe__favorite .icon-favorite__hole {
  fill: var(--color-bg-primary);
}
.recipe__favorite.is-active .icon {
  animation: favorite-pop 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.recipe__favorite.is-active .icon-favorite__hole {
  fill: currentColor;
}

.recipe__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: 0 0 var(--spacing-sm);
  padding: 0;
  list-style: none;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.recipe__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recipe__intro {
  max-width: 70ch;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-muted);
}

.recipe__block-title {
  margin-bottom: var(--spacing-sm);
}

.recipe__ingredients {
  margin: 0;
  padding: var(--spacing-md);
  background-color: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  list-style: none;
}

.recipe__ingredient {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: var(--font-size-small);
}
.recipe__ingredient::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.recipe__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.recipe__step {
  display: flex;
  gap: var(--spacing-sm);
  padding: 10px 0;
  font-size: var(--font-size-small);
  counter-increment: step;
}
.recipe__step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  line-height: 1;
}

.recipe__tip {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-left: 3px solid var(--color-primary);
  background-color: var(--color-bg-cream);
  font-size: var(--font-size-small);
}

/* ==========================================================================
   carousel / component
   Carrousel pleine largeur de la section médias
   ========================================================================== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
}

.carousel__image {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 420px);
  -o-object-fit: cover;
  object-fit: cover;
}

.carousel__caption {
  position: absolute;
  right: var(--spacing-sm);
  bottom: var(--spacing-sm);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.92);
  font-size: var(--font-size-small);
}

.carousel__control {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel__control:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.carousel__control--prev {
  left: var(--spacing-sm);
}

.carousel__control--next {
  right: var(--spacing-sm);
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: var(--spacing-sm);
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.carousel__dot.is-active {
  background-color: var(--color-white);
}

/* ==========================================================================
   gallery / component
   Bande de vignettes de la section médias
   ========================================================================== */
.gallery {
  margin-top: var(--spacing-lg);
}

.gallery__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .gallery__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__figure {
  margin: 0;
}

.gallery__image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.gallery__caption {
  margin-top: 6px;
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

/* ==========================================================================
   form / component
   Styles du formulaire de contact (Gravity Forms en production)
   ========================================================================== */
.form__field {
  margin-bottom: var(--spacing-sm);
}

.form__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-size-small);
  font-weight: 600;
}

.form__required {
  color: var(--color-heart);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  color: var(--color-text);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 1px;
}

.form__textarea {
  min-height: 130px;
  resize: vertical;
}

.form__aside {
  padding: var(--spacing-md);
  background-color: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.form__aside-title {
  margin-bottom: var(--spacing-sm);
}

.form__aside-text {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

/* ==========================================================================
   error / component
   Page 404
   ========================================================================== */
.error {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.error__icon {
  color: var(--color-primary);
}

.error__code {
  font-family: var(--font-secondary);
  font-size: clamp(4.38rem, 6.25vw + 2.5rem, 8.13rem);
  line-height: 1;
  color: var(--color-primary);
}

.error__title {
  margin-bottom: var(--spacing-xs);
}

.error__text {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-muted);
}
