html {
  scroll-behavior: smooth;
  font-size: 100%;
}

/* colors: blanc: #F3EFE8 marron: #322F2E ocre rouge: #AF6530 vert: #525B3A doré: #C69E60 */

@font-face {
  font-family: 'Padauk';
  src: url('../font/Padauk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


body {
  font-family: 'Lexend Exa', sans-serif;
  font-size: 1.2rem;
}



.recettes-page .recettes-main header {
  background: none !important;
  height: auto !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.recettes-page .wrapper {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
  display: block;
}

body.recettes-page {
  background: #f3efe8;
  font-family: "Lexend Exa", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.6;
}
.recettes-page header.recettes-header{
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  min-height: clamp(200px, 26vh, 300px);
  padding-top: clamp(56px, 14vh, 112px);
  margin-bottom: clamp(24px, 4.8vh, 72px);
  background: transparent;
  isolation: isolate;
}

.recettes-header-bg{
  position: absolute;
  inset: 0;
  background: url('../img/headerrecettes1.jpg') center 15% / cover no-repeat;
  opacity: .8;
  z-index: -1;
}
.recettes-page .recettes-header-bg::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:18vh;
  background: linear-gradient(to bottom, rgba(243,239,232,0) 0%, #f3efe8 100%);
}


.recettes-page .recettes-header {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 28vh, 320px);
  padding-top: clamp(20px, 5vh, 60px);
  background: transparent;
  isolation: isolate;
}


.recettes-page .recettes-header-content {
position: relative;
  z-index: 1;
  width: clamp(320px, 60vw, 1200px);
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 24px);
  display: grid;
  gap: clamp(8px, 1.5vw, 16px);
  text-align: center;
  background: rgba(243,239,232,.9);
  border: 1px solid #525B3A;
  border-radius: clamp(16px, 2vw, 50px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.recettes-header-content h1.gradient-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.5rem); 
  line-height: 1.2;
  margin: 0;
  text-align: center;
  color: #322F2E;
  white-space: normal;
}

.recettes-page .recettes-header-content p{
  margin: 0 auto;
  max-width: 80ch;
  line-height: 1.6;
}

@supports (-webkit-background-clip: text) or (background-clip: text){
  .gradient-title{
    background: linear-gradient(90deg, #322F2E, #b68a44, #525B3A);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
  }
}


.toggle-btn {
  margin-top: 1rem;
  background: #525B3A;
  color: #F3EFE8;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-btn:hover {
  background: #AF6530;
}

/* article */

.article-content {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.article-content.is-visible {
  display: block;
  opacity: 1;
}


.recettes-article {
  display: block;
  width: 98%;
  max-width: 1300px;
  height: auto;
  margin: 5rem auto 5rem auto;
  padding: 2rem;
  background: rgba(243, 239, 232, .9);
  border: 1px solid #525B3A;
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  position: relative;
  z-index: 11;
}

.recettes-article h2 {
  font-family: 'Source Sans 3', serif;
  font-size: clamp(2rem, 1.6rem + 1vw, 2.1rem);
  color: #322F2E;
  text-align: center;
  margin-bottom: 1.5rem;
}

.recettes-article h3 {
  font-size: clamp(2rem, 1.6rem + 1vw, 3rem);
  color: #525B3A;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.recettes-article p {
  font-size: 2rem;
  line-height: 1.6;
  color: #322F2E;
  margin-bottom: 1.5rem;
}

.recettes-article .toggle-btn {
  margin: 1.5rem auto;
  display: block;
  background: #525B3A;
  color: #F3EFE8;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.recettes-article .toggle-btn:hover {
  background: #AF6530;
}

#article-btn-slot-bottom .toggle-btn {
  margin: 1.5rem auto 0;
}

.article-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 10;
}

.article-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: clamp(300px, 50vh, 800px);
  margin-bottom: 1.2rem;
  width: 100%;
  background-image: url("../img/articleheader.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.hero-inner {
  margin-top: 6rem;

}

.article-hero .hero-inner {
  position: absolute;
  bottom: 0;
  width: 80%;
  padding: 1.5rem 2rem;
  text-align: center;
  background: rgba(82, 91, 58, 0.85);
  color: #F3EFE8;
  font-family: 'Lexend Exa', sans-serif;
  z-index: 1;
}


.article-hero h2 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 1.5rem + 1vw, 2.8rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #F3EFE8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.article-hero .hero-inner,
.article-hero .hero-inner h2,
.article-hero .hero-inner p {
  color: #F3EFE8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.article-hero .lead-hero {
  color: #F3EFE8;
  opacity: .95;
  line-height: 1.5;
  font-size: clamp(1.4rem, 1.1rem + .4vw, 1.7rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  max-width: 70ch;
  margin: 0 auto;
}

.plantes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #F3EFE8;
  color: #322F2E;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  line-height: 1.6;
  border: 1px solid rgba(82, 91, 58, .35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.plantes-table th,
.plantes-table td {
  padding: clamp(.8rem, 1.2vw, 1.2rem);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(82, 91, 58, .18);
}

.plantes-table thead th {
  background: rgba(82, 91, 58, .12);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.plantes-table tbody tr:nth-child(even) {
  background: rgba(243, 239, 232, .6);
}

.plantes-table tbody tr:hover {
  background: rgba(163, 6, 182, .08);
  transition: background-color .2s ease-in-out;
}

.plantes-table caption {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.6rem);
  text-align: center;
  margin-bottom: 1rem;
  color: #4B5A3C;
}

@media (max-width:720px) {
  .plantes-table {
    font-size: clamp(.95rem, 3.5vw, 1rem);
  }

  .plantes-table th,
  .plantes-table td {
    padding: .75rem .9rem;
  }
}

@media (max-width: 600px) {
  .article-hero {
    padding: 2rem 1.4rem;
    min-height: 260px;
  }

  .article-hero .hero-inner {
    max-width: 48ch;
  }
}


.recettes-page .recettes-main {
  padding: 0 1rem 0;
  position: relative;
  z-index: 2;
  color: #322F2E;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.7;
}

.recettes-page .cards-grid {
  display: grid;
  gap: 48px;
  justify-content: center;
  align-items: start;
}

@media (min-width:1190px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(350px, 550px));   
  }
  .card.is-active{
    max-width: 700px;     /* не больше 700px */
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
  }
  .card.is-active .card-img{ height: 340px; }
  .card.is-active .card-title{ font-size: 1.4rem; }
  .card.is-active h3{ font-size: 1.3rem; }
}

@media (min-width:890px) and (max-width:1189px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(280px, 350px));
  }
  .card.is-active {
    max-width: 500px;
    font-size: 1.1rem;
    padding: 1.1rem 1.3rem;
  }
  .card.is-active .card-img{ height: 260px; }
  .card.is-active .card-title{ font-size: 1.3rem; }
  .card.is-active h3{ font-size: 1.2rem; }
}

@media (max-width:889px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card.is-active {
    grid-column: 1 / -1;
  order: -1;
  z-index: 3;
  display: block;
  max-width: 300px;
  margin: 0 auto;
  transform: none;
  box-shadow: 0 24px 48px rgba(0,0,0,.18);
  border-color: rgba(50,47,46,.6);
  font-size: 1rem;        
  line-height: 1.6;
  padding: 1rem 1.1rem;
}
.card.is-active .card-img{ height: 180px; }
.card.is-active .card-title{ font-size: 1.15rem; }
.card.is-active h3{ font-size: 1.1rem; }
 
}

/* ===== Carte ===== */
.recettes-page .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 550px;
  min-width: 300px;
  justify-self: center;
  gap: 18px;
  padding: 18px 20px;
  background: #f3efe8;
  border: 1px solid rgba(50, 47, 46, .5);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  color: #322F2E;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.5rem);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  will-change: transform;
  order: 0;
}

.card:hover {
  transform: translateY(-5px) scale(1.12, 1.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  border-color: rgba(50, 47, 46, .9);
}

.card:active {
  transform: translateY(-2px) scale(0.99);
}


.recettes-page.recettes-main p,
.recettes-main .card-body {
  max-width: 80ch;
}

.card-head {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  margin-bottom: 4px;
  margin-top: 0;
}

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

.card-title {
  position: absolute;
  bottom: 0;
  margin: 0;
  width: 100%;
  padding: .4rem .9rem;
  font-size: clamp(1.5rem, 1rem + .4vw, 1.6rem);
  line-height: 1.2;
  color: #F3EFE8;
  font-weight: 600;
  background: rgba(82, 91, 58, 0.85);
  z-index: 1;
  text-align: center;
}

.card-body {
  display: grid;
  gap: 10px;
  color: #3a2c1a;
}

.card-body h3 {
  margin: .75rem 0 .5rem;
  font-size: clamp(1.2rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 700;
  text-align: center;
  color: #525B3A;
}

.card-list {
  list-style: disc outside;
  padding-left: 1.25em;
  margin: 0 0 .75rem;

}

.card-list-ol {
  list-style: decimal outside;
  padding-left: 1.25em;
  margin: 0 0 .75rem;
}

.card-body p {
  font-style: italic;
  font-size: 1.4rem;
  color: #525B3A;
  margin: 0 auto 1rem;
  text-align: left;
  line-height: 1.6;
}

.card>.card-foot {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  height: auto;
  background: transparent;
  text-align: left;
  box-shadow: none;
  border: none;
}

.card.is-active {
  grid-column: 1 / -1;
  order: -1;
  z-index: 3;
  display: block;
  max-width: 700px;
  margin-inline: auto;
  margin: 0;
  transform: none;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .18);
  border-color: rgba(50, 47, 46, .6);
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 1.1rem;
}

.card.is-active .card-img {
  height: 450px;
}

.card.is-active .card-title {
  font-size: 1.5rem;
}

.card.is-active h3 {
  font-size: 1.8;
}

.card.is-active .card-body {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #3a2c1a;
}



.card.is-active:hover {
  transform: none;
}

.card-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #525B3A;
  color: #f3efe8;
  font-size: 20px;
  line-height: 36px;
  cursor: pointer;
  opacity: 0.9;
  z-index: 10;
}

.card.is-active>.card-head .card-close {
  display: block;
}

.card-close:hover {
  opacity: 1;
  background: #AF6530;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 3;
}

.card.is-active {
  position: relative;
  z-index: 4;
}

.copy-btn {
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid #525B3A;
  background: #f3efe8;
  color: #525B3A;
  font-size: .95rem;
  cursor: pointer;
  margin: 0;
  align-self: last baseline;
}

.copy-btn.copied {
  background: #AF6530;
  color: #f3efe8;
}


/* ===== Bouton-tag ===== */
.btn.btn-tag {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #525B3A;
  color: #f3efe8;
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: capitalize;
  border: none;
  border-radius: 999px;
  cursor: default;
  transition: background-color 0.3s ease;
}

.btn.btn-tag:hover {
  background: #AF6530;
  transform: none;
}

/* ===== Séparateur entre main et note ===== */
.recettes-page .section-sep {
  max-width: 1200px;
  margin: 28px auto 0;
  border: none;
  border-top: 2px solid #C69E60;
}

.note {
  max-width: 900px;
  margin: 4rem auto 6rem;
  padding: 2rem 2.5rem;
  background: rgba(82, 91, 58, 0.08);
  border-left: 6px solid #AF6530;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  color: #322F2E;
}

.note h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #525B3A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.note p {
  margin-bottom: 1.2rem;
  font-size: 1.6rem;

}

.note p:last-child {
  margin-bottom: 0;
}

.recettes-page .site-footer {
  background-color: white;
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  gap: 50px;
  height: 180px;
  align-items: center;
}

/* ===== Footer de ===== */
footer a {
  text-decoration: none;
  color: var(--secondary-color);
}

.flag {
  font-size: 30px;
  border: none;
  background: none;
  cursor: pointer;
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #3a2c1a;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}