:root {
  --amr-brown: #351b12;
  --amr-brown-2: #4b2618;
  --amr-orange: #d67a0d;
  --amr-orange-2: #bf5e18;
  --amr-cream: #fffaf2;
  --amr-cream-2: #f8f0e5;
  --amr-line: #ead8c4;
  --amr-text: #392b24;
  --amr-muted: #75665e;
  --amr-shadow: 0 15px 42px rgba(53, 27, 18, .10);
}

.amr-recipes-index, .amr-recipe-detail,
.amr-recipes-index *, .amr-recipes-index *::before, .amr-recipes-index *::after,
.amr-recipe-detail *, .amr-recipe-detail *::before, .amr-recipe-detail *::after { box-sizing: border-box; }
.amr-recipes-index img, .amr-recipe-detail img { max-width: 100%; display: block; }
.amr-recipes-index a, .amr-recipe-detail a { text-decoration: none; }

/* ===== INDEX / LISTE DES RECETTES ===== */
.amr-recipes-index { background: var(--amr-cream); color: var(--amr-text); overflow: hidden; }
.amr-index-hero {
  position: relative;
  padding: 32px 20px 30px;
  text-align: center;
  border-bottom: 1px solid var(--amr-line);
  background:
    radial-gradient(circle at 0 50%, rgba(214,122,13,.06) 0 85px, transparent 86px),
    radial-gradient(circle at 100% 50%, rgba(214,122,13,.06) 0 85px, transparent 86px),
    linear-gradient(180deg, #fffdf9, #fff9ef);
}
.amr-index-hero-inner { width: min(1120px, 100%); margin: 0 auto; }
.amr-kicker { margin: 0 0 8px; color: var(--amr-orange); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.amr-index-hero h1 { margin: 0; color: var(--amr-brown); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4.3vw, 60px); line-height: 1.05; }
.amr-index-hero p:last-child { margin: 8px auto 0; max-width: 760px; color: #6b5d54; font-size: 15px; }
.amr-title-rule { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 8px; color: var(--amr-orange); }
.amr-title-rule span { width: 36px; height: 2px; background: var(--amr-orange); }
.amr-title-rule b { font-size: 9px; }

.amr-index-content { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 58px; }
.amr-recipes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.amr-recipe-card { overflow: hidden; border: 1px solid #ead9c7; border-radius: 13px; background: #fffdf9; box-shadow: 0 9px 26px rgba(53,27,18,.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.amr-recipe-card-live:hover { transform: translateY(-5px); box-shadow: 0 17px 42px rgba(53,27,18,.14); border-color: #ddb27c; }
.amr-card-link { display: block; color: inherit; }
.amr-card-media { position: relative; aspect-ratio: 1.74 / 1; overflow: hidden; background: #ead9c7; }
.amr-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.amr-recipe-card-live:hover .amr-card-media img { transform: scale(1.045); }
.amr-card-type { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 9px; border-radius: 4px; color: #fff; background: rgba(53,27,18,.88); font-size: 11px; font-weight: 700; }
.amr-card-corner { position: absolute; top: 0; right: 12px; width: 34px; height: 43px; display: grid; place-items: center; background: var(--amr-orange); color: #fff; font-size: 17px; border-radius: 0 0 5px 5px; box-shadow: 0 5px 14px rgba(0,0,0,.16); }
.amr-card-coming-badge { position: absolute; top: 12px; right: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--amr-brown); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.amr-card-body { padding: 13px 16px 16px; text-align: center; }
.amr-card-body h2 { min-height: 48px; display: flex; align-items: center; justify-content: center; margin: 0 0 10px; color: var(--amr-brown); font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.2; }
.amr-card-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; color: #695a51; font-size: 11px; }
.amr-card-meta span { white-space: nowrap; }
.amr-card-meta i { width: 1px; height: 13px; background: #d8c1a8; }
.amr-card-meta b { font-weight: 700; }
.amr-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; color: var(--amr-orange-2); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.amr-card-soon { display: inline-block; margin-top: 13px; color: #a28f83; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.amr-recipe-card-coming { opacity: .93; }
.amr-recipe-card-coming .amr-card-media img { filter: saturate(.9); }

.amr-index-note { display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: center; margin-top: 38px; padding: 25px 28px; border: 1px solid #e9d3b8; border-radius: 17px; background: linear-gradient(120deg, #fff4e4, #fffaf2); }
.amr-note-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--amr-orange); border: 1px solid #e5c59d; font-size: 23px; }
.amr-index-note h2 { margin: 0 0 4px; color: var(--amr-brown); font-family: Georgia, serif; font-size: 24px; }
.amr-index-note p:last-child { margin: 0; color: var(--amr-muted); font-size: 14px; }

/* ===== PAGE DETAIL ===== */
.amr-recipe-detail { background: var(--amr-cream); color: var(--amr-text); overflow: hidden; }
.amr-detail-hero { position: relative; min-height: 510px; display: grid; align-items: end; background: var(--amr-brown); }
.amr-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.amr-detail-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,14,8,.04) 20%, rgba(30,14,8,.20) 55%, rgba(30,14,8,.84) 100%); }
.amr-detail-hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 170px 0 48px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.30); }
.amr-kicker-light { color: #ffd7ad; }
.amr-detail-hero h1 { max-width: 950px; margin: 0; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 5vw, 70px); line-height: 1.02; letter-spacing: -.025em; }
.amr-detail-hero h1 span { color: #ffd7ad; }
.amr-detail-subtitle { margin: 16px 0 0; font-size: clamp(17px, 2vw, 22px); font-style: italic; }
.amr-detail-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 45px 0 64px; }
.amr-detail-intro { max-width: 920px; margin: 0 auto 30px; text-align: center; font-size: 19px; line-height: 1.7; }
.amr-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 52px; }
.amr-meta { display: flex; gap: 13px; align-items: center; min-height: 76px; padding: 13px 17px; border: 1px solid var(--amr-line); border-radius: 13px; background: rgba(255,255,255,.78); box-shadow: 0 8px 24px rgba(53,27,18,.05); }
.amr-meta > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f8e5d2; color: var(--amr-orange-2); font-size: 18px; flex: 0 0 auto; }
.amr-meta small { display: block; color: #7c6d65; font-size: 11px; }
.amr-meta strong { display: block; margin-top: 2px; color: var(--amr-brown); font-size: 16px; }
.amr-section-heading { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 0 0 25px; }
.amr-section-heading span { height: 1px; background: linear-gradient(90deg, transparent, var(--amr-orange)); }
.amr-section-heading span:last-child { background: linear-gradient(90deg, var(--amr-orange), transparent); }
.amr-section-heading h2 { margin: 0; color: var(--amr-brown); font-family: Georgia, serif; font-size: clamp(27px, 3vw, 37px); white-space: nowrap; }
.amr-process { margin-bottom: 56px; }
.amr-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.amr-step-card { margin: 0; overflow: hidden; border: 1px solid var(--amr-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(53,27,18,.07); }
.amr-step-image { position: relative; aspect-ratio: 1.2 / 1; overflow: hidden; }
.amr-step-image img { width: 100%; height: 100%; object-fit: cover; }
.amr-step-image b { position: absolute; top: 11px; left: 11px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--amr-brown); color: #fff; border: 2px solid rgba(255,255,255,.9); font-size: 14px; }
.amr-step-card figcaption { display: grid; gap: 4px; padding: 15px 15px 17px; }
.amr-step-card figcaption strong { color: var(--amr-brown); font-size: 17px; }
.amr-step-card figcaption span { color: var(--amr-muted); font-size: 13px; line-height: 1.45; }
.amr-detail-grid { display: grid; grid-template-columns: minmax(290px,.78fr) minmax(0,1.45fr); gap: 38px; align-items: start; margin-bottom: 42px; }
.amr-ingredients { position: sticky; top: 25px; padding: 30px; border: 1px solid #e8d1b6; border-radius: 20px; background: linear-gradient(145deg, #fff7eb, #f8ead8); box-shadow: var(--amr-shadow); }
.amr-ingredients h2, .amr-method h2, .amr-tip h2, .amr-why h2 { margin: 0 0 20px; color: var(--amr-brown); font-family: Georgia, serif; font-size: 33px; line-height: 1.12; }
.amr-ingredients ul { list-style: none; padding: 0; margin: 0; }
.amr-ingredients li { position: relative; padding: 8px 0 8px 21px; border-bottom: 1px dashed rgba(104,69,49,.18); line-height: 1.45; }
.amr-ingredients li:last-child { border-bottom: 0; }
.amr-ingredients li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--amr-orange-2); }
.amr-ingredients em { color: #7b6b61; font-size: .92em; }
.amr-method { padding: 8px 0; }
.amr-method ol { counter-reset: amrstep; list-style: none; margin: 0; padding: 0; }
.amr-method li { counter-increment: amrstep; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--amr-line); }
.amr-method li::before { content: counter(amrstep); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--amr-orange-2); color: #fff; font-weight: 800; box-shadow: 0 7px 18px rgba(191,94,24,.20); }
.amr-method li strong { display: block; margin: 2px 0 6px; color: var(--amr-brown); font-size: 19px; }
.amr-method li p { margin: 0; font-size: 16px; line-height: 1.7; }
.amr-tip { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; margin-bottom: 45px; padding: 27px 30px; border: 1px solid #e4c39b; border-radius: 18px; background: #fff0dc; }
.amr-tip-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--amr-orange-2); font-size: 26px; border: 1px solid #e4c19c; }
.amr-tip h2 { margin-bottom: 7px; font-size: 27px; }
.amr-tip p:last-child { margin: 0; font-size: 15px; line-height: 1.65; }
.amr-why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; margin-bottom: 54px; padding: 34px 0; border-top: 1px solid var(--amr-line); border-bottom: 1px solid var(--amr-line); }
.amr-why h2 { margin-bottom: 0; font-size: 31px; }
.amr-why > p { margin: 0; font-size: 17px; line-height: 1.75; }
.amr-products { margin-bottom: 52px; }
.amr-products-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px; }
.amr-product-card { display: grid; grid-template-columns: 165px 1fr; min-height: 215px; overflow: hidden; border: 1px solid var(--amr-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(53,27,18,.07); }
.amr-product-image { min-height: 215px; display: grid; place-items: center; background: #f7f3ec; overflow: hidden; }
.amr-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.amr-product-placeholder { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: #f3e1cf; color: var(--amr-orange-2); font-size: 32px; }
.amr-product-body { padding: 22px; align-self: center; }
.amr-product-body h3 { margin: 0 0 7px; color: var(--amr-brown); font-family: Georgia, serif; font-size: 23px; line-height: 1.15; }
.amr-product-body p:not(.amr-kicker) { margin: 0 0 11px; color: var(--amr-muted); font-size: 13px; line-height: 1.45; }
.amr-product-price { margin: 0 0 11px; color: var(--amr-brown); font-weight: 800; }
.amr-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 21px; border-radius: 999px; background: var(--amr-brown); color: #fff !important; font-weight: 800; transition: transform .2s ease, opacity .2s ease; }
.amr-button:hover { transform: translateY(-1px); opacity: .94; }
.amr-button-small { min-height: 39px; padding: 9px 15px; font-size: 13px; }
.amr-detail-cta { display: flex; justify-content: space-between; gap: 28px; align-items: center; padding: 32px 36px; border-radius: 22px; background: linear-gradient(120deg, var(--amr-brown), #64331f); color: #fff; box-shadow: var(--amr-shadow); }
.amr-detail-cta h2 { margin: 0 0 7px; color: #fff; font-family: Georgia, serif; font-size: 34px; }
.amr-detail-cta p:not(.amr-kicker) { margin: 0; color: rgba(255,255,255,.83); }
.amr-button-light { flex: 0 0 auto; background: #fff; color: var(--amr-brown) !important; }

@media (max-width: 980px) {
  .amr-recipes-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .amr-meta-grid { grid-template-columns: repeat(2,1fr); }
  .amr-process-grid { grid-template-columns: repeat(2,1fr); }
  .amr-detail-grid { grid-template-columns: 1fr; }
  .amr-ingredients { position: static; }
  .amr-products-grid { grid-template-columns: 1fr; }
  .amr-why { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .amr-index-hero { padding: 25px 16px 24px; }
  .amr-index-content { width: min(100% - 24px,1120px); padding: 28px 0 42px; }
  .amr-recipes-grid { grid-template-columns: 1fr; gap: 17px; }
  .amr-card-body h2 { min-height: auto; font-size: 20px; }
  .amr-index-note { grid-template-columns: 1fr; padding: 22px; }
  .amr-detail-hero { min-height: 490px; }
  .amr-detail-hero-content { width: min(100% - 28px,1180px); padding-bottom: 32px; }
  .amr-detail-hero h1 { font-size: 37px; }
  .amr-detail-wrap { width: min(100% - 28px,1180px); padding-top: 32px; }
  .amr-detail-intro { text-align: left; font-size: 16px; }
  .amr-meta-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 40px; }
  .amr-meta { padding: 11px; min-height: 68px; }
  .amr-meta > span { width: 33px; height: 33px; font-size: 15px; }
  .amr-section-heading { gap: 9px; }
  .amr-section-heading h2 { font-size: 26px; white-space: normal; text-align: center; }
  .amr-process-grid { grid-template-columns: 1fr; }
  .amr-step-image { aspect-ratio: 1.45 / 1; }
  .amr-ingredients { padding: 22px 19px; }
  .amr-method li { grid-template-columns: 38px 1fr; gap: 11px; }
  .amr-method li::before { width: 34px; height: 34px; }
  .amr-tip { grid-template-columns: 1fr; padding: 22px 19px; }
  .amr-tip-icon { width: 52px; height: 52px; }
  .amr-product-card { grid-template-columns: 110px 1fr; }
  .amr-product-image { min-height: 175px; }
  .amr-product-body { padding: 17px 15px; }
  .amr-product-body h3 { font-size: 19px; }
  .amr-detail-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
}

/* ===== V3.2 : PAGE RECETTE PLUS COMPACTE ===== */
.amr-recipe-detail .amr-detail-hero { min-height: 405px; }
.amr-recipe-detail .amr-detail-hero-content { width: min(1080px, calc(100% - 40px)); padding: 115px 0 32px; }
.amr-recipe-detail .amr-detail-hero h1 { max-width: 820px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.03; }
.amr-recipe-detail .amr-detail-subtitle { margin-top: 10px; font-size: clamp(15px, 1.5vw, 18px); }
.amr-recipe-detail .amr-detail-wrap { width: min(1080px, calc(100% - 40px)); padding: 34px 0 50px; }
.amr-recipe-detail .amr-detail-intro { max-width: 820px; margin-bottom: 23px; font-size: 16px; line-height: 1.55; }
.amr-recipe-detail .amr-meta-grid { gap: 11px; margin-bottom: 37px; }
.amr-recipe-detail .amr-meta { min-height: 62px; padding: 10px 13px; border-radius: 11px; }
.amr-recipe-detail .amr-meta > span { width: 34px; height: 34px; font-size: 15px; }
.amr-recipe-detail .amr-meta small { font-size: 10px; }
.amr-recipe-detail .amr-meta strong { font-size: 14px; }
.amr-recipe-detail .amr-section-heading { margin-bottom: 18px; }
.amr-recipe-detail .amr-section-heading h2 { font-size: clamp(24px, 2.5vw, 31px); }
.amr-recipe-detail .amr-process { margin-bottom: 40px; }
.amr-recipe-detail .amr-process-grid { gap: 13px; }
.amr-recipe-detail .amr-step-card { border-radius: 12px; }
.amr-recipe-detail .amr-step-image { aspect-ratio: 1.28 / 1; }
.amr-recipe-detail .amr-step-image b { display: none !important; }
.amr-recipe-detail .amr-step-card figcaption { gap: 3px; padding: 11px 12px 13px; }
.amr-recipe-detail .amr-step-card figcaption strong { font-size: 14px; }
.amr-recipe-detail .amr-step-card figcaption span { font-size: 11.5px; line-height: 1.35; }
.amr-recipe-detail .amr-detail-grid { grid-template-columns: minmax(270px,.72fr) minmax(0,1.5fr); gap: 30px; margin-bottom: 32px; }
.amr-recipe-detail .amr-ingredients { padding: 23px; border-radius: 16px; }
.amr-recipe-detail .amr-ingredients h2,
.amr-recipe-detail .amr-method h2,
.amr-recipe-detail .amr-tip h2,
.amr-recipe-detail .amr-why h2 { margin-bottom: 14px; font-size: 27px; }
.amr-recipe-detail .amr-ingredients li { padding: 6px 0 6px 18px; font-size: 13px; line-height: 1.35; }
.amr-recipe-detail .amr-ingredients li::before { top: 12px; width: 6px; height: 6px; }
.amr-recipe-detail .amr-method { padding-top: 4px; }
.amr-recipe-detail .amr-method li { grid-template-columns: 38px 1fr; gap: 12px; padding-bottom: 15px; margin-bottom: 15px; }
.amr-recipe-detail .amr-method li::before { width: 32px; height: 32px; font-size: 13px; }
.amr-recipe-detail .amr-method li strong { margin: 1px 0 4px; font-size: 15px; }
.amr-recipe-detail .amr-method li p { font-size: 13px; line-height: 1.52; }
.amr-recipe-detail .amr-tip { grid-template-columns: 56px 1fr; gap: 16px; margin-bottom: 33px; padding: 20px 23px; border-radius: 15px; }
.amr-recipe-detail .amr-tip-icon { width: 49px; height: 49px; font-size: 20px; }
.amr-recipe-detail .amr-tip h2 { margin-bottom: 5px; font-size: 22px; }
.amr-recipe-detail .amr-tip p:last-child { font-size: 13px; line-height: 1.5; }
.amr-recipe-detail .amr-why { gap: 28px; margin-bottom: 39px; padding: 26px 0; }
.amr-recipe-detail .amr-why h2 { font-size: 25px; }
.amr-recipe-detail .amr-why > p { font-size: 14px; line-height: 1.6; }
.amr-recipe-detail .amr-products { margin-bottom: 38px; }
.amr-recipe-detail .amr-products-grid { gap: 17px; }
.amr-recipe-detail .amr-product-card { grid-template-columns: 135px 1fr; min-height: 176px; border-radius: 14px; }
.amr-recipe-detail .amr-product-image { min-height: 176px; }
.amr-recipe-detail .amr-product-body { padding: 17px; }
.amr-recipe-detail .amr-product-body h3 { font-size: 19px; }
.amr-recipe-detail .amr-product-body p:not(.amr-kicker) { font-size: 12px; }
.amr-recipe-detail .amr-product-placeholder { width: 60px; height: 60px; font-size: 25px; }
.amr-recipe-detail .amr-button-small { min-height: 34px; padding: 7px 13px; font-size: 11px; }
.amr-recipe-detail .amr-detail-cta { padding: 23px 27px; border-radius: 17px; }
.amr-recipe-detail .amr-detail-cta h2 { font-size: 27px; }
.amr-recipe-detail .amr-detail-cta p:not(.amr-kicker) { font-size: 13px; }

@media (max-width: 980px) {
  .amr-recipe-detail .amr-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .amr-recipe-detail .amr-detail-hero { min-height: 390px; }
  .amr-recipe-detail .amr-detail-hero h1 { font-size: 34px; }
  .amr-recipe-detail .amr-detail-wrap { width: min(100% - 26px,1080px); padding-top: 28px; }
  .amr-recipe-detail .amr-detail-intro { font-size: 14px; }
  .amr-recipe-detail .amr-step-card figcaption strong { font-size: 14px; }
  .amr-recipe-detail .amr-method li p { font-size: 13px; }
}
