/* ═══════════════════════════════════════════════════════════
   recettes.css — Page rubriques recettes Ramadan — Dzirielle
═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --rouge:      #f53d5f;
  --rouge-pale: rgba(245, 61, 95, 0.05);
  --noir:       #111;
  --gris:       #555;
  --gris-clair: #f0f0f0;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       system-ui, sans-serif;
  --radius:     0px;
}
/* ── Bloc nutrition complet — fond vert élégant ── */
.rp-nutrition-full {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  scroll-margin-top: 80px;
  background: #f2f7f4;
  border: 1px solid #d4e6db;
}

.rp-nutrition-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #d4e6db;
  background: #e6f0ea;
}
.rp-nutrition-icon {
  font-size: 16px;
  color: #3a7a57;
  flex-shrink: 0;
}
.rp-nutrition-title {
  font-family: 'Bodoni Moda', serif;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: #1e3d2e;
  letter-spacing: .02em;
}
.rp-nutrition-portion {
  display: inline-block;
  font-size: 11px;
  color: #6a9478;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-left: .5rem;
}

/* ── Grille ── */
.rp-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #d4e6db;
}
@media (min-width: 640px) {
  .rp-nutrition-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Cellule ── */
.rp-nut-full-cell {
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: #f2f7f4;
}
.rp-nut-full-cell:hover {
  background: #eaf3ee;
  transition: background .15s;
}

.rp-nut-full-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
}

.rp-nut-full-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6a9478;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.rp-nut-full-val {
  font-size: 15px;
  font-family: 'Bodoni Moda', serif;
  font-weight: 500;
  color: #1e3d2e;
  white-space: nowrap;
}

.rp-nut-full-note {
  font-size: 11px;
  color: #5a8068;
  margin: 0;
  line-height: 1.45;
  font-style: italic;
  font-family: 'Source Serif 4', serif;
}

/* ── Footer ── */
.rp-nutrition-disclaimer,
.rp-nutrition-source {
  font-size: 10px;
  color: #7aaa8a;
  padding: .6rem 1.5rem;
  margin: 0;
  border-top: 1px solid #d4e6db;
  font-style: italic;
  background: #e6f0ea;
}
/* ── Hero texte ─────────────────────────────────────────────── */
.rr-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  text-align: center;
}

.rr-hero__title {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.2;
  color: var(--noir);
  font-weight: 700;
  margin-bottom: 28px;
}

.rr-hero__img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eee;
  margin-bottom: 24px;
}

.rr-hero__desc {
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gris);
  margin-bottom: 0;
}

/* ── Navigation sous-rubriques ──────────────────────────────── */
.rr-nav {
  background: #fff;
  border-bottom: 1px solid var(--gris-clair);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.rr-nav__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rr-nav__inner::-webkit-scrollbar {
  display: none;
}

.rr-nav__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gris);
  text-decoration: none;
  border-radius: 30px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.rr-nav__link:hover {
  color: var(--rouge);
  background: var(--rouge-pale);
}

.rr-nav__link.active {
  background: var(--rouge);
  color: #fff;
  border-color: var(--rouge);
  box-shadow: 0 4px 10px rgba(245, 61, 95, 0.3);
}

/* ── Grille recettes ────────────────────────────────────────── */
.rr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 5px;
}

@media (min-width: 768px) {
  .rr-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
  }
}

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

/* ── Carte recette ──────────────────────────────────────────── */
.rr-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  border-radius: var(--radius);
  background: #f5f5f5;
}

.rr-card:hover .rr-card__img {
  transform: scale(1.05);
}

.rr-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Badge vidéo */
.rr-card__video-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
}

/* Overlay titre */
.rr-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
}

.rr-card__title {
  color: #fff;
  font-family: var(--serif);
  font-size: 11px;
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: capitalize;
}

@media (min-width: 768px) {
  .rr-card__title {
    font-size: 15px;
    -webkit-line-clamp: 3;
  }
}

/* ── État vide ──────────────────────────────────────────────── */
.rr-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gris);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

/* ── Espacement section ─────────────────────────────────────── */
.rr-section {
  padding: 32px 0 60px;
}
