* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #f7f7f5;
  color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 78px;
  padding: 0 84px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d8d8d8;
}

.centered-header {
  justify-content: center;
}

.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  letter-spacing: -1px;
}

.nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav a {
  position: relative;
  color: #111;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  height: 3px;
  background: #111;
}

.hero {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #eee;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-content h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-content p {
  font-size: 22px;
  color: #111;
}

.recipes-section {
  padding: 44px 96px 28px;
}

.recipes-grid {
  max-width: 1700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 16px;
}

.recipe-card {
  background: #ffffff;
  border: 1px solid #dedede;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 13px;
  min-height: 225px;
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 28px;
  align-items: center;
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.recipe-content {
  min-width: 0;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
}

.recipe-content p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 16px;
}

.recipe-button,
.myrce-button,
.back-button {
  border-radius: 2px;
  background: linear-gradient(#333, #202020);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.recipe-button {
  width: 200px;
  height: 34px;
  flex-shrink: 0;
}

.myrce-button {
  min-width: 230px;
  height: 38px;
  padding: 0 22px;
}

.more-section {
  margin-top: 0;
  padding: 28px 20px 34px;
  background: #f1f1ef;
  text-align: center;
  border-top: 1px solid #e1e1df;
}

.more-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.more-section p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* Page recette */

.recipe-page {
  background: #f7f7f5;
}

.recipe-hero-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 90px 50px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 70px;
  align-items: center;
}

.recipe-kicker {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #777;
}

.recipe-hero-text h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.recipe-hero-text p {
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
}

.recipe-hero-page img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 1px solid #ddd;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.recipe-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recipe-meta span {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 14px;
  font-size: 14px;
}

.recipe-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recipe-action-button,
.recipe-share-button {
  border: 1px solid #222;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.recipe-action-button:hover,
.recipe-share-button:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  transform: translateY(-1px);
}

.recipe-action-button {
  min-height: 38px;
  padding: 0 16px;
  gap: 8px;
}

.recipe-share-button {
  width: 38px;
  height: 38px;
  padding: 0;
}

.recipe-action-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.share-feedback {
  min-height: 18px;
  font-size: 13px;
  color: #555;
}

.recipe-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 90px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}

.recipe-column {
  background: #fff;
  border: 1px solid #ddd;
  padding: 38px;
}

.recipe-column h2,
.recipe-result h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  margin-bottom: 24px;
}

.ingredient-group {
  margin-bottom: 30px;
}

.ingredient-group h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  margin-bottom: 14px;
}

.ingredient-group ul {
  padding-left: 20px;
}

.ingredient-group li {
  margin-bottom: 10px;
  line-height: 1.5;
}

#steps {
  padding-left: 22px;
}

#steps li {
  margin-bottom: 18px;
  line-height: 1.75;
}

.recipe-result {
  max-width: 1220px;
  margin: 0 auto 70px;
  padding: 42px;
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
}

.recipe-result p {
  max-width: 780px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.7;
}

.back-button {
  min-width: 210px;
  height: 38px;
}

/* Responsive */

@media (max-width: 1200px) {
  .site-header {
    padding: 0 36px;
  }

  .recipes-section {
    padding: 36px 36px 24px;
  }

  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .recipe-hero-page {
    padding: 42px 24px 28px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .recipe-body {
    padding: 28px 24px;
    grid-template-columns: 1fr;
  }

  .recipe-hero-page img {
    height: 320px;
  }

  .recipe-column {
    padding: 28px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 72px;
    padding: 0 24px;
  }

  .logo {
    font-size: 29px;
  }

  .hero {
    height: 260px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .recipes-section {
    padding: 28px 18px 20px;
  }

  .recipes-grid {
    grid-template-columns: 1fr;
  }

  .recipe-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .recipe-card img {
    height: 230px;
  }

  .recipe-content {
    height: auto;
    align-items: flex-start;
  }

  .recipe-button {
    width: 100%;
  }

  .myrce-button {
    width: 100%;
    max-width: 320px;
  }

  .recipe-action-button {
    flex: 1;
  }
}

.spotlight-section {
  max-width: 1700px;
  margin: 0 auto;
  padding: 38px 96px 8px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.quote-card,
.weekly-card {
  background: #ffffff;
  border: 1px solid #dedede;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.quote-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #777;
  margin-bottom: 12px;
}

#quote-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.weekly-card {
  padding: 13px;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 28px;
  align-items: center;
}

.weekly-image-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.weekly-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.weekly-content p {
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .spotlight-section {
    padding: 28px 24px 8px;
    grid-template-columns: 1fr;
  }

  .weekly-card {
    grid-template-columns: 1fr;
  }

  .weekly-image-wrap img {
    height: 260px;
  }
}

@media (max-width: 760px) {
  .spotlight-section {
    padding: 24px 18px 8px;
  }

  #quote-text {
    font-size: 26px;
  }

  .weekly-content h2 {
    font-size: 30px;
  }
}

/* Fiche imprimable / PDF */
@media print {
  @page {
    size: A4;
    margin: 16mm;
  }

  * {
    box-shadow: none !important;
  }

  body {
    background: #ffffff;
    color: #111111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .recipe-actions,
  .back-button {
    display: none !important;
  }

  .recipe-page {
    background: #ffffff;
  }

  .recipe-page::before {
    content: "cooky:core";
    display: block;
    margin-bottom: 10mm;
    padding-bottom: 5mm;
    border-bottom: 1px solid #d8d1c6;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26pt;
    font-weight: 700;
    letter-spacing: -1px;
  }

  .recipe-hero-page {
    max-width: none;
    margin: 0;
    padding: 0 0 10mm;
    display: grid;
    grid-template-columns: 1fr 58mm;
    gap: 10mm;
    align-items: start;
    border-bottom: 1px solid #d8d1c6;
  }

  .recipe-kicker {
    margin-bottom: 4mm;
    color: #777777;
    font-size: 9pt;
    letter-spacing: 1.5px;
  }

  .recipe-hero-text h1 {
    margin-bottom: 5mm;
    font-size: 31pt;
    line-height: 0.98;
    letter-spacing: -1px;
  }

  .recipe-hero-text p:not(.recipe-kicker) {
    max-width: none;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .recipe-hero-page img {
    height: 58mm;
    border: 1px solid #d8d1c6;
    object-fit: cover;
  }

  .recipe-meta {
    margin-top: 6mm;
    gap: 3mm;
  }

  .recipe-meta span {
    background: #f7f2ea;
    border: 1px solid #ddd0c2;
    padding: 2.5mm 3.5mm;
    font-size: 8.5pt;
  }

  .recipe-body {
    max-width: none;
    margin: 0;
    padding: 8mm 0;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 9mm;
    align-items: start;
  }

  .recipe-column {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .recipe-column h2,
  .recipe-result h2 {
    margin-bottom: 4mm;
    padding-bottom: 2mm;
    border-bottom: 1px solid #d8d1c6;
    font-size: 19pt;
  }

  .ingredient-group {
    margin-bottom: 5mm;
    break-inside: avoid;
  }

  .ingredient-group h3 {
    margin-bottom: 2.5mm;
    font-size: 13.5pt;
  }

  .ingredient-group ul,
  #steps {
    padding-left: 5mm;
  }

  .ingredient-group li,
  #steps li {
    margin-bottom: 2.5mm;
    font-size: 9.5pt;
    line-height: 1.45;
  }

  #steps li {
    margin-bottom: 3.5mm;
  }

  .recipe-result {
    max-width: none;
    margin: 0;
    padding: 6mm;
    background: #fbf8f2;
    border: 1px solid #ddd0c2;
    text-align: left;
    break-inside: avoid;
  }

  .recipe-result p {
    max-width: none;
    margin: 0;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  a[href]::after {
    content: "";
  }
}
