@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&family=Montserrat+Alternates:wght@700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   VARIABLES CSS
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Couleurs principales */
  --primary:          #E8541A;
  --primary-dark:     #C4410F;
  --primary-light:    #FFF4EE;
  --primary-rgb:      232, 84, 26;

  /* Accent nutrition */
  --accent:           #2D9B6F;
  --accent-light:     #E8F7F1;

  /* Texte */
  --text:             #1A1A2E;
  --text-muted:       #6B7280;
  --text-light:       #9CA3AF;

  /* Fonds */
  --bg:               #FFFFFF;
  --bg-light:         #F8F9FA;
  --bg-card:          #FFFFFF;

  /* Bordures */
  --border:           #E5E7EB;
  --border-hover:     #D1D5DB;

  /* Couleurs catégories */
  --cat-boissons:         #2a94a6;
  --cat-collations:       #c97b2b;
  --cat-desserts:         #b34c7d;
  --cat-petits-dejeuners: #d6a541;
  --cat-repas:            #651616;

  /* Typographie */
  --font-body:        'Nunito', sans-serif;
  --font-title:       'Montserrat Alternates', sans-serif;

  /* Espacements */
  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-xl:        24px;
  --radius-full:      9999px;

  /* Ombres */
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:        0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-hover:     0 12px 32px rgba(232,84,26,0.12), 0 4px 12px rgba(0,0,0,0.06);

  /* Transitions */
  --transition:       all 0.2s ease;
  --transition-slow:  all 0.35s ease;

  /* Layout */
  --container:        1200px;
  --container-narrow: 860px;
  --sidebar-width:    320px;
  --header-height:    72px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; }
h4 { font-size: clamp(16px, 1.8vw, 20px); font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

/* Layout 2 colonnes : contenu + sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 40px;
  align-items: start;
}

/* Section générique */
.section {
  padding: 60px 0;
}

.section--alt {
  background: var(--bg-light);
}

.section--tone-light {
  background: #f4f6f8;
}

.section--tone-mid {
  background: #eceff3;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 32px;
}

.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo img {
  height: 44px;
  width: auto;
  max-width: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.site-nav__link:hover,
.site-nav__link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown menu */
.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  list-style: none;
}

.site-nav__item:hover .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.site-nav__dropdown-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.site-nav__dropdown-link .cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bouton recette au hasard */
.btn-random {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-random:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-random svg {
  width: 16px;
  height: 16px;
}

/* Bouton hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Recherche header ─────────────────────────────────────── */
.header-search {
    position: relative;
}

.header-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.header-search__btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-search__form {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 200;
}

.header-search__form[hidden] {
    display: none;
}

.header-search__form form {
    display: flex;
    flex: 1;
    gap: 6px;
}

.header-search__form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: var(--transition);
}

.header-search__form input[type="search"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search__form button[type="submit"] {
    padding: 10px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-search__form button[type="submit"]:hover {
    background: var(--primary-dark);
}

.header-search__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.header-search__close:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .header-search__form {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Menu mobile (slide depuis la droite) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100svh;
  height: 100vh;
  background: var(--bg-card);
  z-index: 200;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu__overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════ */

.breadcrumb {
  padding: 12px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  font-size: 14px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.breadcrumb__item a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb__item a:hover {
  color: var(--primary);
}

.breadcrumb__item:last-child {
  color: var(--text);
  font-weight: 600;
}

.breadcrumb__sep {
  width: 14px;
  height: 14px;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Ripple effect au clic */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.15s;
}

.btn:active::after {
  opacity: 1;
}

.btn--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary-light);
}

.btn--wrap {
  white-space: normal;
  word-break: break-word;
  height: auto;
  line-height: 1.3;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg-light);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn--full {
  width: 100%;
}

/* Lien "Lire la suite" avec flèche */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.btn-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS RECETTES
   ═══════════════════════════════════════════════════════════════════ */

.card-recette {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.card-recette:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-recette__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-recette__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-recette:hover .card-recette__image-wrap img {
  transform: scale(1.05);
}

.card-recette__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-recette__rating {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.card-recette__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-recette__cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
}

.card-recette__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.card-recette__title a {
  color: inherit;
}

.card-recette__title a:hover {
  color: var(--primary);
}

.card-recette__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

.card-recette__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-recette__meta-item svg {
  width: 14px;
  height: 14px;
}

/* Card hero (grande) - overlay style */
.card-recette--hero {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
}

.card-recette--hero .card-recette__image-wrap {
  aspect-ratio: unset;
  height: 100%;
}

.card-recette--hero .card-recette__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 65%, transparent 100%);
  gap: 6px;
}

.card-recette--hero .card-recette__cat {
  display: none;
}

.card-recette--hero .card-recette__title {
  font-size: 22px;
  color: #fff;
}

.card-recette--hero .card-recette__title a {
  color: #fff;
}

.card-recette--hero .card-recette__title a:hover {
  color: rgba(255,255,255,0.85);
}

.card-recette--hero .card-recette__meta {
  color: rgba(255,255,255,0.85);
  margin-top: 0;
}

.card-recette--hero .card-recette__rating {
  display: none;
}

/* Card horizontale (sidebar) */
.card-recette--horizontal {
  flex-direction: row;
  height: 90px;
}

.card-recette--horizontal .card-recette__image-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  aspect-ratio: unset;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.card-recette--horizontal .card-recette__body {
  padding: 12px;
  gap: 4px;
}

.card-recette--horizontal .card-recette__title {
  font-size: 13px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   GRILLES RECETTES
   ═══════════════════════════════════════════════════════════════════ */

/* Grille standard 4 colonnes */
.grid-recettes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Grille hero (1 grande + 4 petites) */
.grid-recettes--hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 20px;
}

.grid-recettes--hero .card-recette:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* ═══════════════════════════════════════════════════════════════════
   QUICK RECETTES (bande 3 recettes sous le h1)
   ═══════════════════════════════════════════════════════════════════ */

.quick-recettes {
  padding: 36px 0 12px;
  text-align: center;
}

.quick-recettes__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  display: inline-block;
  position: relative;
}

.quick-recettes__title::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 6px;
}

.quick-recettes__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.quick-recette {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  max-width: 260px;
  text-align: left;
  transition: var(--transition);
}

.quick-recette img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.quick-recette:hover span {
  color: var(--primary);
}

/* Grille 3 colonnes */
.grid-recettes--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Grille 2 colonnes */
.grid-recettes--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS BLOG
   ═══════════════════════════════════════════════════════════════════ */

.card-article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}

.card-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-article__image-wrap {
  position: relative;
  overflow: hidden;
}

.card-article__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-article:hover .card-article__image-wrap img {
  transform: scale(1.04);
}

.card-article__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-article__cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.card-article__title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.card-article__title a {
  color: var(--text);
}

.card-article__title a:hover {
  color: var(--primary);
}

.card-article__excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-article__date {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE HEADER (catégories)
   ═══════════════════════════════════════════════════════════════════ */

.page-header {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
  background: var(--bg-light);
}

.page-header--with-bg {
  background-size: cover;
  background-position: center;
  color: white;
  min-height: clamp(330px, 44vh, 480px);
  display: flex;
  align-items: center;
}

.page-header--with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 100%
  );
}

.page-header--readable::before {
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.76) 0%,
    rgba(0,0,0,0.52) 100%
  );
}

.page-header--readable .page-header__title {
  text-shadow: 0 3px 10px rgba(0,0,0,0.42);
}

.page-header--readable .page-header__desc {
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.page-header__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header--with-bg .page-header__title {
  color: white;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-header--with-bg .page-header__desc {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  max-width: min(810px, 92vw);
  margin: 0 auto;
}

.page-header__stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.breadcrumb--hero {
  display: block;
  margin: 34px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.breadcrumb--hero .breadcrumb__list {
  font-size: 13px;
  justify-content: center;
}

.breadcrumb--hero .breadcrumb__item {
  color: rgba(255,255,255,0.86);
}

.breadcrumb--hero .breadcrumb__item a {
  color: rgba(255,255,255,0.9);
}

.breadcrumb--hero .breadcrumb__item a:hover {
  color: white;
}

.breadcrumb--hero .breadcrumb__item:last-child {
  color: white;
}

.breadcrumb--hero .breadcrumb__sep {
  color: rgba(255,255,255,0.72);
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.widget__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-title);
}

.widget__body {
  padding: 16px 20px;
}

/* Widget catégories */
.widget-cats__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.widget-cats__item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.widget-cats__item a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.widget-cats__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Widget recettes populaires */
.widget-popular__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-popular__item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.widget-popular__img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.widget-popular__info {
  flex: 1;
  min-width: 0;
}

.widget-popular__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.widget-popular__title:hover {
  color: var(--primary);
}

.widget-popular__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Widget newsletter sidebar */
.widget-newsletter {
  background: var(--primary);
  color: white;
  border: none;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget-newsletter h3 {
  color: white;
  font-size: 17px;
}

.widget-newsletter p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin: 0;
}

.widget-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-newsletter__input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
}

.widget-newsletter__input::placeholder {
  color: var(--text-muted);
}

.widget-newsletter__btn {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.widget-newsletter__btn:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION CATÉGORIES (accueil)
   ═══════════════════════════════════════════════════════════════════ */

.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-card__thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: var(--transition-slow);
}

.cat-card__thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cat-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card__thumb:hover img {
  transform: scale(1.08);
}

.cat-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  color: white;
  text-align: center;
  line-height: 1.35;
  text-decoration: none;
  transition: var(--transition);
}

.cat-card__action:hover {
  color: white;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE RECETTE
   ═══════════════════════════════════════════════════════════════════ */

/* Banner recette */
.recipe-banner {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.recipe-banner__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.recipe-banner__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recipe-banner__title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.recipe-banner__desc {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.recipe-banner__quickinfo {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.recipe-quickinfo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 80px;
  text-align: center;
}

.recipe-quickinfo-item__value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
  white-space: normal;
  line-height: 1.2;
}

.recipe-quickinfo-item__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.recipe-quickinfo-item--protein {
  border-color: var(--accent);
  color: var(--accent);
}

.recipe-quickinfo-item--protein .recipe-quickinfo-item__value {
  color: var(--accent);
}

.recipe-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.recipe-banner__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.recipe-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fiche recette (ingrédients + instructions) */
.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 40px 0;
}

.recipe-card__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}

.recipe-card__thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.recipe-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.recipe-card__meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recipe-meta-item {
  padding: 14px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  text-align: center;
}

.recipe-meta-item__icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.recipe-meta-item__value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.recipe-meta-item__label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Ingrédients */
.recipe-ingredients {
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.recipe-ingredients__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.recipe-ingredients__title {
  font-size: 20px;
  font-weight: 800;
}

/* Sélecteur de portions */
.portions-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.portions-selector__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.portions-selector__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portions-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: 700;
}

.portions-btn:hover {
  background: var(--primary);
  color: white;
}

.portions-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  min-width: 28px;
  text-align: center;
}

/* Liste ingrédients avec checkbox */
.ingredient-group__title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 20px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.ingredient-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
}

.ingredient-item:hover {
  background: var(--bg-light);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-sm);
}

.ingredient-item input[type="checkbox"] {
  display: none;
}

.ingredient-item__check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 2px;
}

.ingredient-item.checked .ingredient-item__check {
  background: var(--accent);
  border-color: var(--accent);
}

.ingredient-item.checked .ingredient-item__check::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.ingredient-item__text {
  font-size: 16px;
  line-height: 1.5;
  transition: var(--transition);
}

.ingredient-item.checked .ingredient-item__text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.ingredient-item__qty {
  font-weight: 800;
  color: var(--primary);
}

/* Instructions */
.recipe-instructions {
  padding: 32px;
}

.instruction-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 20px;
  row-gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.instruction-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.instruction-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instruction-step__title {
  font-size: 18px;
  font-weight: 700;
  align-self: center;
}

.instruction-step__body {
  grid-column: 2;
}

.instruction-step__content {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.instruction-step__tip {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--primary-dark);
}

.instruction-step__image {
  margin: 16px auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 480px;
}

.instruction-step__image img {
  width: 100%;
  display: block;
}

/* Tableau nutrition */
.nutrition-table {
  background: var(--bg-light);
  border: 2px solid var(--text);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 380px;
}

.nutrition-table__header {
  padding: 14px 16px;
  background: var(--text);
  color: white;
}

.nutrition-table__title {
  font-size: 20px;
  font-weight: 800;
  color: white;
}

.nutrition-table__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.nutrition-table__calories {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 8px solid var(--text);
}

.nutrition-table__cal-label {
  font-size: 15px;
  font-weight: 700;
}

.nutrition-table__cal-value {
  font-size: 30px;
  font-weight: 800;
  margin-left: auto;
}

.nutrition-table__row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.nutrition-table__row:nth-child(even) {
  background: rgba(0,0,0,0.02);
}

.nutrition-table__row--sub {
  padding-left: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.nutrition-table__row-name {
  font-weight: 600;
  flex: 1;
}

.nutrition-table__row-value {
  font-weight: 700;
  color: var(--primary);
}

/* Auteur card (bas de recette) */
.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin: 40px 0;
}

.author-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--primary);
}

.author-card__info {
  flex: 1;
}

.author-card__name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.author-card__name a {
  color: var(--text);
}

.author-card__name a:hover {
  color: var(--primary);
}

.author-card__titre {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.author-card__bio {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* FAQ accordéon */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  transition: var(--transition);
}

.faq-item__question:hover {
  background: var(--bg-light);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
  padding: 0 20px;
}

.faq-item.open .faq-item__answer {
  max-height: 1000px;
  padding: 0 20px 20px;
}

.faq-item__answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Navigation prev/next recette */
.recipe-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.recipe-nav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
}

.recipe-nav__item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.recipe-nav__item--next {
  flex-direction: row-reverse;
  text-align: right;
}

.recipe-nav__img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.recipe-nav__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
}

.recipe-nav__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Commentaires */
.comments-section {
  margin-top: 48px;
}

.comment-card {
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.comment-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-card__author {
  font-weight: 700;
  font-size: 15px;
}

.comment-card__date {
  font-size: 13px;
  color: var(--text-muted);
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 18px;
  height: 18px;
  color: #FFC107;
}

.star--empty {
  color: var(--border);
}

/* Formulaire commentaire */
.comment-form {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 32px;
}

.comment-form__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--full {
  grid-column: span 2;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.form-label span {
  color: var(--primary);
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-card);
  transition: var(--transition);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Rating stars (formulaire) */
.rating-input {
  display: flex;
  gap: 4px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.rating-input input {
  display: none;
}

.rating-input label {
  cursor: pointer;
  font-size: 28px;
  color: var(--border);
  transition: color 0.15s ease;
  line-height: 1;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: #FFC107;
}

/* Message succès/erreur formulaire */
.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-message--success {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.form-message--error {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #DC2626;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION NEWSLETTER (accueil)
   ═══════════════════════════════════════════════════════════════════ */

.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.newsletter-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-section__title {
  color: white;
  font-size: clamp(24px, 2.5vw, 32px);
  margin-bottom: 12px;
}

.newsletter-section__text {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form__input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition);
}

.newsletter-form__input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form__input:focus {
  outline: none;
  border-color: white;
  background: rgba(255,255,255,0.2);
}

.newsletter-form__btn {
  padding: 14px 24px;
  background: white;
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.newsletter-form__btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer__brand img {
  width: min(480px, 100%);
  height: auto;
  max-width: 100%;
  margin-bottom: 16px;
  filter: none;
}

.site-footer__desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.site-footer__col-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 16px;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: var(--transition);
}

.site-footer__links a:hover {
  color: var(--primary);
}

.site-footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.site-footer__bottom a {
  color: rgba(255,255,255,0.4);
}

.site-footer__bottom a:hover {
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════════════════════════════
   BACKOFFICE
   ═══════════════════════════════════════════════════════════════════ */

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--text);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar__logo {
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
  color: white;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.admin-sidebar__link:hover,
.admin-sidebar__link.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-main {
  padding: 32px;
  background: var(--bg-light);
}

.admin-header {
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.stat-card__value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-title);
}

.stat-card__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.admin-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.badge--warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge--success {
  background: var(--accent-light);
  color: var(--accent);
}

.badge--danger {
  background: #FEE2E2;
  color: #DC2626;
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.admin-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

.admin-btn--approve { background: var(--accent-light); color: var(--accent); }
.admin-btn--approve:hover { background: var(--accent); color: white; }
.admin-btn--reject  { background: #FEE2E2; color: #DC2626; }
.admin-btn--reject:hover  { background: #DC2626; color: white; }
.admin-btn--delete  { background: var(--bg-light); color: var(--text-muted); }
.admin-btn--delete:hover  { background: #DC2626; color: white; }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

/* Fade in au scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais pour animer les grilles en cascade */
.fade-in-up:nth-child(1) { transition-delay: 0s; }
.fade-in-up:nth-child(2) { transition-delay: 0.08s; }
.fade-in-up:nth-child(3) { transition-delay: 0.16s; }
.fade-in-up:nth-child(4) { transition-delay: 0.24s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--border) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .recipe-banner__inner {
    grid-template-columns: 1fr;
  }

  .recipe-banner__image {
    order: -1;
    max-height: 320px;
  }

  .grid-recettes {
    grid-template-columns: repeat(2, 1fr);
  }

  .cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .newsletter-section__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .site-header__inner {
    gap: 8px;
  }

  .site-header__logo {
    max-width: 200px;
  }

  .site-header__logo img {
    width: 100%;
    height: auto;
  }

  .site-header__nav {
    display: none;
  }

  .header-search {
    margin-left: auto;
    flex-shrink: 0;
  }

  .hamburger {
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-recettes {
    grid-template-columns: 1fr;
  }

  .grid-recettes--hero .card-recette:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-article {
    grid-template-columns: 1fr;
  }

  .card-article__image-wrap {
    height: 200px;
  }

  .recipe-card__header {
    grid-template-columns: 1fr;
  }

  .recipe-card__meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group--full {
    grid-column: span 1;
  }

  .recipe-nav {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipe-banner__quickinfo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .recipe-quickinfo-item {
    min-width: 0;
    width: 100%;
    padding: 10px 8px;
  }

  .recipe-quickinfo-item__value {
    font-size: 15px;
  }

  .recipe-ingredients__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .instruction-step {
    gap: 8px 12px;
  }

  .instruction-step__body {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITAIRES
   ═══════════════════════════════════════════════════════════════════ */

.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Contenu article (typographie riche) */
.article-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  color: var(--text);
}

.article-content h3 {
  font-size: clamp(17px, 2vw, 21px);
  margin: 28px 0 12px;
  color: var(--text);
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  margin: 16px 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--primary-dark);
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  width: 100%;
  height: auto;
}

.article-content strong {
  font-weight: 800;
  color: var(--text);
}

.article-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.article-content th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

.article-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content tr:nth-child(even) td {
  background: var(--bg-light);
}

/* Skip link accessibilite */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Responsivité table nutrition */
@media (max-width: 600px) {
  .nutrition-table [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .nutrition-table [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .back-to-top,
  .hamburger,
  .mobile-menu,
  .mobile-menu__overlay,
  .breadcrumb,
  .recipe-nav,
  .comments-section,
  .newsletter-section,
  .faq-list,
  .btn-print {
    display: none !important;
  }

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .recipe-banner__inner {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 14px;
  }

  a[href]::after {
    content: none;
  }

  .recipe-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ── reCAPTCHA : badge masqué (mention présente dans les mentions légales) ── */
.grecaptcha-badge { visibility: hidden !important; }

/* ═══════════════════════════════════════════════════════════════════
   BLOC SEO CATÉGORIE  (.cat-seo)
   ═══════════════════════════════════════════════════════════════════ */

.cat-seo {
  padding: 72px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* Couleur d'accentuation par catégorie */
.cat-seo--boissons         { --cat-color: var(--cat-boissons); }
.cat-seo--collations       { --cat-color: var(--cat-collations); }
.cat-seo--desserts         { --cat-color: var(--cat-desserts); }
.cat-seo--petits-dejeuners { --cat-color: var(--cat-petits-dejeuners); }
.cat-seo--repas            { --cat-color: var(--cat-repas); }

.cat-seo__intro {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 56px;
  max-width: var(--container-narrow);
  border-left: 4px solid var(--cat-color, var(--primary));
  padding-left: 20px;
}

/* Section interne */
.cat-seo__section {
  margin-bottom: 60px;
}

.cat-seo__section:last-child {
  margin-bottom: 0;
}

.cat-seo__section--alt {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-left: -40px;
  margin-right: -40px;
}

/* H2 */
.cat-seo__h2 {
  font-family: var(--font-title);
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.35;
  padding-left: 18px;
  border-left: 4px solid var(--cat-color, var(--primary));
}

.cat-seo__faq-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

/* Corps de texte */
.cat-seo__body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 16px;
}

.cat-seo__body p:last-child {
  margin-bottom: 0;
}

/* Mise en page deux colonnes (texte + image) */
.cat-seo__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.cat-seo__two-col--reverse {
  direction: rtl;
}

.cat-seo__two-col--reverse > * {
  direction: ltr;
}

/* Image */
.cat-seo__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0;
}

/* Image pleine largeur centrée (standalone, pas en 2-col) */
.cat-seo__img-wrap--solo {
  max-width: 800px;
  margin: 0 auto 48px;
}

.cat-seo__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-seo__img-wrap:hover .cat-seo__img {
  transform: scale(1.03);
}

.cat-seo__figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 14px;
  background: var(--bg-light);
  font-style: italic;
}

/* Liste à puces */
/* Lien de maillage interne */
.cat-seo__link {
  color: var(--cat-color, var(--primary));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.cat-seo__link:hover {
  opacity: 0.75;
}

/* Liste à puces */
.cat-seo__list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-seo__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.cat-seo__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--cat-color, var(--primary));
}

/* Tableau comparatif */
.cat-seo__table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cat-seo__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cat-seo__table-caption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 16px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-style: italic;
}

.cat-seo__table th {
  background: var(--bg-light);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.cat-seo__table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.55;
  vertical-align: top;
}

.cat-seo__table tr:last-child td {
  border-bottom: none;
}

.cat-seo__table tr:nth-child(even) td {
  background: var(--bg-light);
}

.cat-seo__table tbody tr:hover td {
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 6%, transparent);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cat-seo__two-col,
  .cat-seo__two-col--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .cat-seo__section--alt {
    margin-left: 0;
    margin-right: 0;
    padding: 28px 20px;
  }
}

@media (max-width: 600px) {
  .cat-seo {
    padding: 48px 0;
  }

  .cat-seo__h2 {
    font-size: 19px;
  }

  .cat-seo__intro {
    font-size: 15px;
    margin-bottom: 36px;
  }

  .cat-seo__table th,
  .cat-seo__table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════════
   COOKIE CONSENT BANNER
═══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--text);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 auto;
}

.cookie-banner__link {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  font-family: var(--font-body);
}

.cookie-banner__btn--accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cookie-banner__btn--accept:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.cookie-banner__btn--refuse {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.cookie-banner__btn--refuse:hover {
  border-color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner__actions {
    justify-content: center;
  }
}
