/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #d4a843;
    --primary-dark: #b8922e;
    --accent: #c0392b;
    --brown: #3c2415;
    --brown-dark: #2a1810;
    --brown-light: #4a2d1a;
    --gold: #d4a843;
    --gold-light: #e8c36a;
    --bg: #faf8f5;
    --text: #2c2015;
    --text-light: #7a6b5d;
    --border: #e0d6ca;
    --card-bg: #fff;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(44,32,21,0.08);
    --header-bg: #fff;
    --nav-bg: #f5f0ea;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* Header */
.site-header {
    background: linear-gradient(135deg, #2a1810 0%, #3c2415 40%, #4a2d1a 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border-bottom: 2px solid #d4a843;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top { display: flex; align-items: center; gap: 1.5rem; padding: 0; }
.logo { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; padding: 8px 0; text-decoration: none; }
.logo img { height: 65px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.logo:hover { text-decoration: none; opacity: 0.92; }
.logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.7rem;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.logo-af { color: #d4a843; font-weight: 700; }
.logo-cuisine {
    display: block;
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #d4a843;
    font-weight: 400;
    margin-top: 2px;
    text-align: center;
}

/* Header actions (login + lang) */
.header-actions { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.header-action-link {
    color: rgba(255,255,255,0.7); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.header-action-link:hover { color: var(--gold); text-decoration: none; }

/* Search in header */
.header-search { flex: 1; max-width: 500px; margin: 0 1.5rem; position: relative; }
.search-autocomplete { position: relative; }
.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1001;
    max-height: 450px;
    overflow-y: auto;
}
.search-type-label {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    background: #faf6f0;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f0ea;
    text-decoration: none;
    transition: background 0.15s;
}
.search-result-item:hover { background: #faf6f0; text-decoration: none; }
.search-result-title { flex: 1; }
.search-result-meta { color: var(--text-light); font-size: 0.8rem; }
.search-no-result { padding: 1rem; text-align: center; color: var(--text-light); font-size: 0.9rem; }
.search-see-all {
    display: block;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold);
    background: #faf6f0;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
}
.search-see-all:hover { background: #f5efe5; text-decoration: none; }

/* Nav bar (sous le header, sticky) */
.site-nav {
    background: var(--brown);
    border-bottom: 1px solid rgba(212,168,67,0.2);
    z-index: 998;
}
.site-nav.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.nav-inner { display: flex; align-items: center; }
.navbar-toggle { display: none; background: none; border: 1px solid rgba(212,168,67,0.4); padding: 6px 10px; border-radius: var(--radius); cursor: pointer; color: #d4a843; font-size: 14px; }
.navbar-menu { display: flex; gap: 0; align-items: center; width: 100%; }
.navbar-menu a {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding: 12px 14px;
    display: block;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 500;
}
.navbar-menu a:hover {
    color: var(--gold);
    text-decoration: none;
    background: rgba(212,168,67,0.08);
    border-bottom-color: var(--gold);
}
.navbar-menu a.nav-cookbook { color: var(--gold); }
.navbar-menu a.nav-member { color: var(--gold); font-weight: 600; }
.navbar-menu a.nav-admin { color: #e67e22; font-weight: 600; }
.nav-lang {
    background: rgba(212,168,67,0.15);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--gold);
    border: 1px solid rgba(212,168,67,0.3);
}
.nav-lang:hover { background: rgba(212,168,67,0.3); color: #fff; text-decoration: none; }

/* Hero */
.hero {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown), var(--brown-light));
    color: #fff;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gold);
}
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 300; color: var(--gold); }
.hero p { font-size: 1rem; margin-bottom: 1.5rem; opacity: 0.9; }

/* Mosaic homepage */
.mosaic-section { margin-bottom: 2rem; padding-top: 1.5rem; }
.mosaic {
    column-count: 6;
    column-gap: 6px;
}
.mosaic-item {
    display: block;
    position: relative;
    margin-bottom: 8px;
    break-inside: avoid;
    border-radius: var(--radius);
    overflow: hidden;
    border: 7px solid #fff;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.mosaic-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
    border-radius: 3px;
}
.mosaic-item:hover img { transform: scale(1.03); }
.mosaic-overlay {
    position: absolute;
    inset: -7px;
    background: rgba(42, 24, 16, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}
.mosaic-item:hover .mosaic-overlay { opacity: 1; }
.mosaic-title {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    font-family: Georgia, 'Times New Roman', serif;
}
.mosaic-author {
    color: rgba(255,255,255,0.7);
    font-size: 0.6rem;
    font-style: italic;
    margin-bottom: 0.3rem;
}
.mosaic-rating .star { font-size: 0.6rem; color: #555; }
.mosaic-rating .star.active { color: var(--gold); }
.mosaic-btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--gold);
    border-radius: 20px;
    color: var(--gold);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mosaic-item:hover .mosaic-btn { background: var(--gold); color: var(--brown); }
@media (max-width: 1024px) { .mosaic { column-count: 4; } }
@media (max-width: 768px) { .mosaic { column-count: 2; } }

/* Carousel */
.carousel-wrap {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
    flex: 0 0 calc(25% - 0.75rem);
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
}
.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44,32,21,0.12);
    text-decoration: none;
}
.carousel-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.carousel-card-body { padding: 0.6rem 0.8rem; }
.carousel-card-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.carousel-card-author { display: block; font-size: 0.75rem; color: var(--text-light); font-style: italic; margin-bottom: 0.2rem; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--brown);
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s;
}
.carousel-btn:hover { background: var(--gold); color: var(--brown); }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
@media (max-width: 768px) {
    .carousel-card { flex: 0 0 calc(50% - 0.5rem); }
}

/* Search */
.search-form { display: flex; gap: 0.5rem; justify-content: center; max-width: 500px; margin: 0 auto; }
.search-correction { background: #fff8e1; border-left: 3px solid var(--primary); padding: 0.75rem 1rem; margin-bottom: 1rem; border-radius: 4px; font-size: 0.95rem; }
.search-correction a { color: var(--primary-dark); text-decoration: underline; }
.search-correction .search-original { color: #666; font-size: 0.85rem; }
.search-correction-hint { padding: 0.4rem 0.75rem; font-size: 0.8rem; color: #888; border-bottom: 1px solid #eee; }
.search-correction-hint strong { color: var(--primary-dark); }
.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
}
.btn-primary { background: var(--brown); color: #fff; border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold); color: var(--brown); text-decoration: none; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    color: var(--text);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); text-decoration: none; color: var(--text); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card h3 { padding: 0.8rem 1rem 0.4rem; font-size: 1rem; }
.card-body { padding: 0 1rem 1rem; }
.card-meta { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.3rem; }
.card-time { font-size: 0.8rem; color: var(--text-light); }
.card-placeholder { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--nav-bg); color: var(--gold); }

/* Badge */
.badge {
    display: inline-block;
    background: var(--brown);
    color: var(--gold);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}
.badge-lg { padding: 0.4rem 1rem; font-size: 0.9rem; margin: 0.2rem; }

/* Breadcrumb */
.breadcrumb { padding: 1rem 0; font-size: 0.9rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }

/* Section */
.section { margin-bottom: 2.5rem; }
.section h2 { margin-bottom: 1rem; font-size: 1.5rem; }

/* Subcategories */
.subcategories { margin-bottom: 1.5rem; }
.subcategory-list { list-style: none; padding: 0.5rem 1rem 1rem; }
.subcategory-list li { padding: 0.2rem 0; }

/* Article layout : image + texte cote a cote */
.article-detail { padding: 1rem 0 3rem; max-width: 960px; display: block; }
.article-content-with-image { margin-bottom: 2rem; overflow: hidden; }
.article-content-with-image .article-image { float: left; width: 440px; margin: 0 1.5rem 1rem 0; }
.article-content-with-image.reverse .article-image { float: right; margin: 0 0 1rem 1.5rem; }
.article-image img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-image figcaption { font-size: 0.8rem; color: var(--text-light); font-style: italic; margin-top: 0.3rem; }
.article-text { line-height: 1.8; overflow: hidden; }
.article-intro { font-size: 1.05rem; font-weight: 500; }
.article-meta { display: flex; gap: 1rem; align-items: center; color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; }
.article-body { line-height: 1.8; margin-bottom: 1.5rem; }
.article-body p { margin-bottom: 1rem; }

.recipe-intro-photo {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.recipe-intro {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 1.2rem;
}
.recipe-main-photo {
    flex-shrink: 0;
    width: 380px;
}
.recipe-main-photo img {
    width: 100%;
    border-radius: var(--radius);
}
.recipe-main-photo figcaption {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.3rem;
}
@media (max-width: 768px) {
    .recipe-intro-photo { flex-direction: column-reverse; }
    .recipe-main-photo { width: 100%; }
}
.recipe-gallery { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.recipe-thumb { width: 64px; cursor: pointer; opacity: 0.5; transition: opacity 0.2s, box-shadow 0.2s; }
.recipe-thumb:hover, .recipe-thumb-active { opacity: 1; }
.recipe-thumb-active { box-shadow: 0 0 0 2px var(--gold); border-radius: var(--radius); }
.recipe-thumb img { border-radius: var(--radius); width: 100%; height: 48px; object-fit: cover; display: block; }

/* Spinner cuisine */
.recipe-photo-loading { position: relative; }
.recipe-photo-loading::after {
    content: ''; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.7); border-radius: var(--radius); z-index: 2;
}
.recipe-photo-loading::before {
    content: '🍳'; position: absolute; top: 50%; left: 50%; z-index: 3;
    font-size: 2.5rem; margin: -1.25rem 0 0 -1.25rem;
    animation: cook-spin 1s ease-in-out infinite;
}
@keyframes cook-spin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(15deg) scale(1.15); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-15deg) scale(1.15); }
    100% { transform: rotate(0deg) scale(1); }
}
.admin-photo-main { outline: 3px solid var(--gold); border-radius: var(--radius); }

@media (max-width: 768px) {
    .article-content-with-image .article-image,
    .article-content-with-image.reverse .article-image { float: none; width: 100%; margin: 0 0 1rem 0; }
}

/* Recipe detail */
.recipe-detail { padding: 1rem 0 3rem; max-width: 960px; margin: 0 auto; }
.recipe-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold);
}
.recipe-header h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--brown);
}
.recipe-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; align-items: center; }
.recipe-cat-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--brown);
    color: var(--gold);
    border-radius: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.recipe-cat-badge:hover { background: var(--gold); color: var(--brown); text-decoration: none; }
.recipe-times { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.time-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.8rem;
    text-align: center;
    min-width: 90px;
}
.time-block strong { display: block; font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.03em; }
.time-block span { font-size: 1rem; font-weight: 600; color: var(--brown); }
.time-total { border-color: var(--primary); }
.time-total strong { color: var(--primary); }

.recipe-photos { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.recipe-photos figure { flex: 1; min-width: 250px; max-width: 500px; }
.recipe-photos img { border-radius: var(--radius); }
.recipe-photos figcaption { font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem; font-style: italic; }

.recipe-section { margin-bottom: 2.5rem; }
.recipe-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
    color: var(--brown);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
}
.recipe-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}
.recipe-ingredients {
    background: linear-gradient(135deg, #fdfcfb 0%, #faf6f0 100%);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 2px 8px rgba(44,32,21,0.06);
}
.recipe-ingredients strong {
    display: block;
    margin: 1.2rem 0 0.4rem;
    font-size: 0.95rem;
    color: var(--brown);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.recipe-ingredients strong:first-child { margin-top: 0; }
.recipe-ingredients ul, .recipe-ingredients ol {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.5rem;
}
.recipe-ingredients li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    border-bottom: 1px dotted rgba(0,0,0,0.08);
}
.recipe-ingredients li:last-child { border-bottom: none; }
.recipe-ingredients li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.8;
}
.recipe-preparation {
    line-height: 1.9;
    counter-reset: step-counter;
}
.recipe-preparation p {
    margin-bottom: 0;
    padding: 1rem 1.2rem 1rem 1.2rem;
    border-left: 3px solid transparent;
    transition: border-color 0.2s;
    position: relative;
}
.recipe-preparation p:hover {
    border-left-color: var(--gold);
    background: rgba(212,168,67,0.03);
}
.recipe-preparation p + p {
    border-top: 1px dotted var(--border);
}
.recipe-preparation p strong:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--brown);
    color: var(--gold);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.8rem;
    flex-shrink: 0;
    vertical-align: middle;
}
.recipe-preparation p a { color: var(--gold); }
.recipe-preparation p a:hover { color: var(--brown); }

.chef-comment {
    background: linear-gradient(135deg, #faf6f0, #f5efe5);
    border-left: 4px solid var(--gold);
    padding: 1.2rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 2px 8px rgba(44,32,21,0.06);
}
.chef-comment-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.chef-comment-header h2 { border-bottom-color: var(--gold); margin-bottom: 0; }
.chef-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }

.recipe-tags { margin: 1rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Producers */
.producer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.producer-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.producer-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.producer-info { display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.producer-link { font-size: 0.85rem; display: inline-block; margin-top: 0.3rem; }
.producer-register { margin-top: 2rem; }
.producer-toggle { display: block; width: 100%; padding: 0.8rem 1.2rem; background: #f9f9f9; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 0.95rem; font-weight: 500; text-align: left; color: var(--primary); }
.producer-toggle:hover { background: #f0f0f0; }
.producer-toggle-arrow { float: right; transition: transform 0.2s; font-size: 0.8rem; }
.producer-toggle.open .producer-toggle-arrow { transform: rotate(180deg); }
.producer-form-wrap { padding: 1.5rem; background: #f9f9f9; border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.producer-form-wrap.hidden { display: none; }

/* Rating */
.rating-section { padding-top: 1rem; border-top: 1px solid var(--border); }
.rating-form { display: flex; align-items: center; gap: 1rem; }
.stars { display: flex; gap: 0.2rem; }
.stars label { cursor: pointer; }
.stars input { display: none; }
.star { font-size: 1.8rem; color: #ddd; transition: color 0.15s; }
.star.active { color: var(--gold); }
.star.hover { color: var(--gold-light); }
.rating { color: var(--gold); font-weight: 600; }
.stars-input { display: flex; gap: 0.2rem; }
.stars-input label { cursor: pointer; }
.stars-input input { display: none; }
.comment-stars { display: inline-flex; gap: 0.1rem; margin-left: 0.5rem; }
.comment-stars .star { font-size: 1rem; color: #ddd; }
.comment-stars .star.active { color: var(--gold); }
.recipe-stars { display: inline-flex; gap: 0.1rem; margin-right: 0.3rem; }
.recipe-stars .star { font-size: 1.2rem; }
.card-stars { display: inline-flex; align-items: center; gap: 0.1rem; }
.card-stars .star { font-size: 0.85rem; color: #ddd; }
.card-stars .star.active { color: var(--gold); }
.card-stars small { color: var(--text-light); font-size: 0.75rem; margin-left: 0.2rem; }

/* Auth form */
.auth-form { max-width: 460px; margin: 2rem auto; background: var(--card-bg); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-form h1 { text-align: center; margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; font-size: 0.95rem; }
.form-group label small { font-weight: 400; color: var(--text-light); }
.form-control { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.15); }
.form-control::placeholder { color: #bbb; }
.form-help { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--text-light); }
.form-row { display: flex; gap: 1rem; }
.form-half { flex: 1; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; }
.forgot-link { font-size: 0.85rem; }
.checkbox-label { font-weight: 400; cursor: pointer; }
.checkbox-label input { margin-right: 0.4rem; }
.form-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.form-fieldset legend { font-weight: 500; font-size: 0.9rem; padding: 0 0.5rem; color: var(--text-light); }
.btn-block { width: 100%; text-align: center; padding: 0.75rem; font-size: 1rem; }
.auth-separator { text-align: center; margin: 1.2rem 0; position: relative; }
.auth-separator::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-separator span { background: var(--card-bg); padding: 0 1rem; position: relative; color: var(--text-light); font-size: 0.85rem; }
.auth-link { text-align: center; margin-top: 0.5rem; font-size: 0.9rem; }

/* Flash messages */
.flash { padding: 0.8rem 1rem; margin: 1rem auto; max-width: 1200px; border-radius: var(--radius); font-size: 0.95rem; }
.flash-success { background: #d5f5e3; color: #1e8449; }
.flash-error { background: #fadbd8; color: #c0392b; }

/* Comments */
.comments-section { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.comments-header h2 { margin-bottom: 0; border-bottom: none; }
.lang-switch { display: flex; gap: 0.3rem; }
.lang-switch a { padding: 0.3rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; color: var(--text-light); }
.lang-switch a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-switch a:hover { text-decoration: none; }

.comment { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.8rem; }
.comment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-avatar {
    width: 40px; height: 40px;
    border-radius: 12px 12px 12px 0;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.comment-avatar-initials {
    width: 40px; height: 40px;
    border-radius: 12px 12px 12px 0;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
}
.comment-avatar-chef {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212,168,67,0.3);
}
.comment-date { font-size: 0.85rem; color: var(--text-light); margin-left: auto; }
.member-avatar-preview { margin-bottom: 0.8rem; }
.member-avatar-preview img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.comment-content { line-height: 1.6; }
.comment-replies-link { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; }
.see-all-comments { margin: 1rem 0; }
/* Favori a cote du titre */
.fav-title {
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: #ccc;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.fav-title:hover { color: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.fav-title.active { color: var(--gold); border-color: var(--gold); background: #faf6f0; }
.recipe-title-row { display: flex; align-items: center; gap: 0.5rem; }

/* Suggestions recettes */
.suggestions-section { border-top: 2px solid var(--gold); padding-top: 2rem; }
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.suggestion-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
}
.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44,32,21,0.12);
    text-decoration: none;
}
.suggestion-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/2;
}
.suggestion-placeholder {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--nav-bg);
    color: var(--gold);
}
.suggestion-info {
    padding: 0.6rem 0.8rem;
}
.suggestion-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.suggestion-rating .star { font-size: 0.7rem; }
@media (max-width: 768px) {
    .suggestions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Formulaire commentaire attractif */
.comment-cta-section { margin-bottom: 2rem; }
.comment-cta {
    background: linear-gradient(135deg, #faf6f0, #f5efe5);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(44,32,21,0.08);
}
.comment-cta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.comment-cta-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}
.comment-cta-header h2 {
    font-size: 1.2rem;
    color: var(--brown);
    margin: 0;
    border: none;
    padding: 0;
    display: block;
}
.comment-cta-header h2::before { display: none; }
.comment-cta-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}
.comment-form { max-width: 100%; }
.comment-form-row { display: flex; gap: 1rem; }
.comment-form-row .form-group { flex: 1; }
.comment-form textarea { resize: vertical; font-family: inherit; }
.form-group-rating { flex-shrink: 0; }
.form-group-rating label { font-size: 0.9rem; }
.btn-publish {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 8px;
}
.no-comments-yet {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 1.5rem;
}
@media (max-width: 768px) {
    .comment-cta { padding: 1.2rem; }
    .comment-cta-header { flex-direction: column; text-align: center; }
    .comment-form-row { flex-direction: column; gap: 0; }
}

/* Forum */
.forum-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.forum-actions { display: flex; gap: 0.5rem; }
.forum-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); table-layout: fixed; }
.forum-table th { background: var(--brown); color: var(--gold); padding: 0.7rem 1rem; text-align: left; font-size: 0.85rem; text-transform: uppercase; border-bottom: 2px solid var(--gold); overflow: hidden; }
.forum-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; word-break: break-word; }
.forum-table tr:last-child td { border-bottom: none; }
.forum-table tr:hover td { background: #faf6f0; }
.topic-title { font-weight: 500; }
.text-center { text-align: center; }
.text-small { font-size: 0.85rem; color: var(--text-light); }
.badge-small { font-size: 0.7rem; padding: 0.1rem 0.4rem; vertical-align: middle; }

.forum-post { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.forum-post-root { border-left: 4px solid var(--primary); }
.post-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.post-date { font-size: 0.85rem; color: var(--text-light); }
.post-content { line-height: 1.7; }

.reply-form-section { margin-top: 2rem; }
.reply-form { max-width: 600px; }
.reply-form textarea { resize: vertical; font-family: inherit; }
.topic-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
.topic-top-bar .topic-recipe-link { margin-bottom: 0; flex: 1; }

.topic-recipe-link {
    position: sticky;
    top: 75px;
    z-index: 997;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: var(--brown);
    color: rgba(255,255,255,0.9);
    border-radius: var(--radius);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.topic-recipe-link a { color: var(--gold); font-weight: 600; }
.topic-recipe-link a:hover { color: #fff; text-decoration: none; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 0.3rem; margin: 2rem 0; flex-wrap: wrap; }
.pagination-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 0.5rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 0.9rem; font-weight: 500;
    background: var(--card-bg); transition: all 0.2s;
}
.pagination-link:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; background: #faf6f0; }
.pagination-current { background: var(--brown); color: var(--gold); border-color: var(--brown); }
.pagination-edge { font-weight: 700; font-size: 1rem; }
.pagination-prev, .pagination-next { font-size: 1.1rem; }

/* ══════════════════ Admin ══════════════════ */
.navbar-admin { background: rgba(255,255,255,0.2); padding: 0.2rem 0.6rem; border-radius: var(--radius); }

/* Dashboard cards grid */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.8rem; margin-bottom: 2.5rem; }
.admin-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--card-bg); border: 2px solid var(--border); border-radius: var(--radius);
    padding: 1.2rem 0.8rem; text-align: center; color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    min-height: 100px; overflow: hidden;
}
.admin-card:hover { text-decoration: none; border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.admin-card-count {
    font-size: 1.8rem; font-weight: 700; color: var(--brown);
    line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.admin-card-label {
    font-size: 0.8rem; color: var(--text-light); margin-top: 0.3rem;
    line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Cartes avec elements en attente */
.admin-card-alert { border-color: #e67e22; background: #fef9f0; }
.admin-card-alert .admin-card-count { color: #e67e22; }
.admin-card-alert:hover { border-color: #d35400; }

/* Cartes super admin : fond sombre */
.admin-card-super {
    background: var(--brown); border-color: var(--brown-light); color: rgba(255,255,255,0.9);
}
.admin-card-super .admin-card-count { color: var(--gold); }
.admin-card-super .admin-card-label { color: rgba(255,255,255,0.7); }
.admin-card-super:hover { border-color: var(--gold); background: var(--brown-light); }

.admin-edit-link { font-size: 0.6em; color: #e67e22; opacity: 0.5; margin-left: 0.3rem; vertical-align: middle; display: none; }
.admin-edit-link:hover { opacity: 1; text-decoration: none; }

/* Sections */
.admin-section { margin-bottom: 2.5rem; }
.admin-section h2 {
    margin-bottom: 1rem; font-size: 1.15rem; color: var(--brown);
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); display: inline-block;
}

/* Items (messages, recettes, etc.) */
.admin-item {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.2rem; margin-bottom: 0.8rem; overflow: hidden;
    transition: box-shadow 0.2s;
}
.admin-item:hover { box-shadow: var(--shadow); }
.admin-item-header { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.3rem; font-size: 0.9rem; }
.admin-item-title { font-weight: 600; margin-bottom: 0.3rem; word-break: break-word; color: var(--brown); }
.admin-item-content {
    color: var(--text); line-height: 1.6; margin-bottom: 0.8rem;
    padding: 0.6rem 0.8rem; background: #faf8f5; border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; word-break: break-word; max-height: 200px; overflow-y: auto; font-size: 0.9rem;
}
.admin-item-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Boutons */
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.82rem; border-radius: var(--radius); }
.btn-success { background: #27ae60; color: #fff; border-color: #27ae60; }
.btn-success:hover { background: #219a52; color: #fff; text-decoration: none; }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #a93226; color: #fff; text-decoration: none; }

/* Photo grid */
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.admin-photo-item {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow 0.2s;
}
.admin-photo-item:hover { box-shadow: var(--shadow); }
.admin-photo-item img { width: 100%; height: 160px; object-fit: cover; }
.admin-photo-info { padding: 0.5rem 0.8rem; overflow: hidden; }
.admin-photo-info small { display: block; color: var(--text-light); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-photo-item .admin-item-actions { padding: 0.5rem 0.8rem; }

/* About page */
.about-page { padding: 1rem 0 3rem; max-width: 900px; }
.about-page h1 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--brown); }
.about-section { margin-bottom: 2.5rem; }
.about-section h2 {
    font-size: 1.3rem; color: var(--brown); margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.about-section p { line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }
.about-intro { font-size: 1.05rem; }
.about-chef-detail h3 { font-size: 1.1rem; color: var(--brown); margin: 1.5rem 0 0.5rem; }
.about-awards { list-style: none; padding: 0; margin: 1rem 0; }
.about-awards li {
    padding: 0.6rem 0 0.6rem 2rem; position: relative;
    border-bottom: 1px dotted var(--border); font-size: 0.95rem;
}
.about-awards li:last-child { border-bottom: none; }
.about-awards li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 10px; height: 10px;
    background: var(--gold); border-radius: 50%;
}
.about-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.about-team-member {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    border-top: 3px solid var(--gold);
}
.about-team-member h3 { font-size: 1.1rem; color: var(--brown); margin-bottom: 0.2rem; }
.about-role { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; }
.about-stats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem; margin-top: 1.5rem;
}
.about-stat {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
    color: #fff; border-radius: var(--radius); padding: 1.5rem;
    text-align: center;
}
.about-stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); margin-bottom: 0.3rem; }
.about-stat-label { font-size: 0.85rem; opacity: 0.9; }
.about-mission { background: linear-gradient(135deg, #faf6f0, #f5efe5); padding: 2rem; border-radius: var(--radius); border-left: 4px solid var(--gold); }
.about-mission h2 { border-bottom: none; }
.about-chef-intro { overflow: hidden; }
.about-photo-inline {
    float: left;
    margin: 0.3rem 1.5rem 1rem 0;
    max-width: 250px;
}
.about-photo-inline img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 3px solid var(--gold);
}
.about-photo-inline figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.4rem;
}
@media (max-width: 768px) {
    .about-photo-inline { float: none; max-width: 100%; margin: 0 0 1rem 0; }
}

/* Category show hero */
.cat-hero {
    overflow: hidden;
    margin-bottom: 2.5rem;
}
.cat-hero-img {
    float: left;
    width: 380px;
    height: auto;
    margin: 0 2rem 1rem 0;
    object-fit: cover;
    border-radius: var(--radius);
}
.cat-hero-content {
    padding: 0;
}
.cat-hero-content h1 {
    font-size: 2rem;
    color: var(--brown);
    margin-bottom: 1rem;
    font-family: Georgia, 'Times New Roman', serif;
}
.cat-hero-desc { font-size: 0.95rem; line-height: 1.8; color: var(--text); }
.cat-hero-desc p { margin-bottom: 0.8rem; }
.cat-subs-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-sub-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s;
}
.cat-sub-chip:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.cat-sub-count {
    background: var(--brown);
    color: var(--gold);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
}
@media (max-width: 768px) {
    .cat-hero-img { float: none; width: 100%; margin: 0 0 1rem 0; }
    .cat-hero-content { padding: 0; }
}

/* Category index */
.cat-index-header { text-align: center; margin-bottom: 2.5rem; }
.cat-index-header h1 { font-size: 2rem; color: var(--brown); margin-bottom: 0.8rem; }
.cat-index-intro { color: var(--text-light); font-size: 1rem; max-width: 650px; margin: 0 auto; }
.cat-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.cat-index-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cat-index-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(44,32,21,0.12); }
.cat-index-photo {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.cat-index-photo img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s; }
.cat-index-card:hover .cat-index-photo img { transform: scale(1.05); }
.cat-index-placeholder { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--nav-bg); color: var(--gold); }
.cat-index-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    background: linear-gradient(transparent, rgba(42,24,16,0.85));
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
}
.cat-index-subs {
    padding: 0.8rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.cat-index-sub {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: all 0.2s;
}
.cat-index-sub:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* Error pages */
.error-page { max-width: 960px; margin: 0 auto; padding: 2rem 0 3rem; text-align: center; }
.error-hero { margin-bottom: 2.5rem; }
.error-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.error-page h1 { font-size: 2rem; color: var(--brown); font-family: Georgia, 'Times New Roman', serif; margin-bottom: 0.8rem; }
.error-subtitle { color: var(--text-light); font-size: 1.1rem; max-width: 550px; margin: 0 auto; line-height: 1.6; }
.error-search { margin-bottom: 2.5rem; }
.error-question { font-size: 1.2rem; color: var(--brown); font-weight: 600; margin-bottom: 1rem; }
.error-search-form { display: flex; gap: 0.5rem; max-width: 500px; margin: 0 auto; }
.error-search-form .form-control { flex: 1; }
.error-links { margin-bottom: 2.5rem; }
.error-links p { color: var(--text-light); margin-bottom: 0.8rem; }
.error-links-grid { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.error-trending { text-align: left; border-top: 2px solid var(--gold); padding-top: 2rem; }
.error-trending h2 { text-align: center; color: var(--brown); margin-bottom: 1.5rem; }

/* Product page */
.product-content { line-height: 1.9; font-size: 1rem; overflow: hidden; }
.product-content p { margin-bottom: 1rem; }
.product-photo-float {
    float: right;
    margin: 0 0 1rem 2rem;
    max-width: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(44,32,21,0.1);
}
.product-photo-float img { width: 100%; display: block; }
.product-photo-float figcaption { font-size: 0.8rem; color: var(--text-light); font-style: italic; padding: 0.4rem 0.6rem; background: #faf6f0; }
@media (max-width: 768px) {
    .product-photo-float { float: none; max-width: 100%; margin: 0 0 1rem 0; }
}

/* Subcategory header */
.subcat-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.subcat-photo {
    flex-shrink: 0;
    width: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(44,32,21,0.1);
}
.subcat-photo img { width: 100%; display: block; }
.subcat-intro { flex: 1; }
.subcat-intro h1 {
    font-size: 1.8rem;
    color: var(--brown);
    margin-bottom: 1rem;
}
.subcat-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}
.subcat-description p { margin-bottom: 0.8rem; }
@media (max-width: 768px) {
    .subcat-header { flex-direction: column; }
    .subcat-photo { width: 100%; }
}

/* Recipe submit notice */
.recipe-submit-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #faf6f0, #f5efe5);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}
.recipe-submit-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.recipe-submit-notice p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

.vigneron-notice {
    background: #faf6f0;
    border-left: 4px solid var(--gold);
    padding: 1rem 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
.vigneron-notice code {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Wine selector (admin) */
.wine-selector-actions { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; align-items: center; }
.wine-regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.wine-region-block { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem; }
.wine-region-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brown); margin-bottom: 0.5rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); }
.wine-checkboxes { display: flex; flex-direction: column; gap: 1px; }
.wine-check {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.25rem 0.4rem; border-radius: 3px; cursor: pointer;
    font-size: 0.85rem; transition: background 0.15s;
}
.wine-check:hover { background: #faf6f0; }
.wine-check.checked { background: rgba(212,168,67,0.1); }
.wine-check input { margin: 0; accent-color: var(--gold); }
.wine-check-name { flex: 1; }
.wine-check-count { color: var(--text-light); font-size: 0.75rem; }

/* Flash info */
.flash-info { background: #d6eaf8; color: #2471a3; }

/* Member area */
.member-layout { display: flex; gap: 2rem; padding: 1.5rem 0; min-height: 60vh; }
.member-sidebar { width: 220px; flex-shrink: 0; }
.member-sidebar h3 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--primary); }
.member-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.member-nav a { display: block; padding: 0.5rem 0.8rem; border-radius: var(--radius); color: var(--text); font-size: 0.95rem; }
.member-nav a:hover { background: var(--nav-bg); text-decoration: none; }
.member-nav a.active { background: var(--primary); color: #fff; }
.member-content { flex: 1; min-width: 0; }
.member-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.member-header h1 { margin-bottom: 0; }
.member-form { max-width: 700px; }

.profile-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.profile-row { display: flex; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.profile-row:last-child { border-bottom: none; }
.profile-label { width: 180px; font-weight: 500; color: var(--text-light); flex-shrink: 0; }
.profile-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

.badge-success { background: #27ae60; }
.badge-warning { background: #e67e22; }
.badge-gold { background: var(--gold); color: #fff; }

.danger-zone { margin-top: 2rem; padding: 1.5rem; border: 2px solid #e74c3c; border-radius: var(--radius); background: #fdf2f2; }
.danger-zone h3 { color: #c0392b; margin-bottom: 0.5rem; }

/* Recipe form */
.recipe-form { max-width: 800px; }
.form-quarter { flex: 1; }
.form-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

/* Blog */
.blog-layout { display: flex; gap: 2rem; padding: 1rem 0; }
.blog-main { flex: 1; min-width: 0; }
.blog-sidebar { width: 220px; flex-shrink: 0; }
.blog-sidebar h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.blog-cat-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.blog-cat-nav a { display: block; padding: 0.4rem 0.8rem; border-radius: var(--radius); color: var(--text); font-size: 0.95rem; }
.blog-cat-nav a:hover { background: #f5f5f5; text-decoration: none; }
.blog-cat-nav a.active { background: var(--primary); color: #fff; }

.blog-card { display: flex; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.5rem; }
.blog-card-img { width: 280px; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.blog-card-body { padding: 1.2rem; flex: 1; }
.blog-card-body h2 { font-size: 1.2rem; margin: 0.3rem 0 0.5rem; }
.blog-card-body h2 a { color: var(--text); }
.blog-card-body h2 a:hover { color: var(--primary); text-decoration: none; }
.blog-card-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.blog-card-intro { font-size: 0.95rem; color: var(--text); line-height: 1.5; margin-bottom: 0.5rem; }
.blog-read-more { font-size: 0.9rem; font-weight: 500; }

/* Blog index redesign */
.blog-cats-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
.blog-cat-active { background: var(--brown) !important; color: var(--gold) !important; border-color: var(--brown) !important; }

.blog-hero-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(44,32,21,0.12);
    text-decoration: none;
    color: #fff;
}
.blog-hero-card img { width: 100%; height: 400px; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-hero-card:hover img { transform: scale(1.03); }
.blog-hero-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(42,24,16,0.9));
}
.blog-hero-card-content h2 {
    font-size: 1.6rem;
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0.5rem 0;
    color: #fff;
}
.blog-hero-card:hover { text-decoration: none; }
.blog-hero-meta { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.blog-grid-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-grid-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(44,32,21,0.12); text-decoration: none; }
.blog-grid-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-grid-card-body { padding: 1rem; }
.blog-grid-card-body h3 { font-size: 1rem; margin: 0.3rem 0 0.5rem; line-height: 1.3; color: var(--text); }
.blog-grid-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    font-weight: 600;
}
.blog-grid-meta { font-size: 0.8rem; color: var(--text-light); }

@media (max-width: 768px) {
    .blog-hero-card img { height: 250px; }
    .blog-hero-card-content h2 { font-size: 1.2rem; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* Blog article detail */
.blog-article { max-width: 900px; margin: 0 auto; padding-bottom: 2rem; }
.blog-hero {
    margin: 0 0 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(44,32,21,0.12);
    max-width: 500px;
    float: right;
    margin-left: 2rem;
}
.blog-hero img { width: 100%; display: block; }
.blog-hero figcaption {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    background: rgba(0,0,0,0.03);
}
.blog-article-content { }
.blog-article-header { margin-bottom: 2rem; text-align: center; }
.blog-article-cat {
    display: inline-block;
    background: var(--brown);
    color: var(--gold);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.blog-article-cat:hover { background: var(--gold); color: var(--brown); text-decoration: none; }
.blog-article-header h1 {
    font-size: 2rem;
    color: var(--brown);
    line-height: 1.3;
    margin-bottom: 0.8rem;
    font-family: Georgia, 'Times New Roman', serif;
}
.blog-article-byline {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.blog-article-byline strong { color: var(--brown); }
.blog-article-date { position: relative; padding-left: 1.5rem; }
.blog-article-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}
.blog-article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 2rem;
}
.blog-article-body p { margin-bottom: 1.2rem; }
.blog-article-body strong { color: var(--brown); }
.blog-article-body a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.blog-article-body a:hover { text-decoration: none; color: var(--brown); }
.blog-article-figure {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(44,32,21,0.1);
    max-width: 500px;
}
.blog-article-figure img { width: 100%; display: block; }
.blog-article-figure figcaption {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    background: #faf6f0;
    border-top: 1px solid var(--border);
}
.blog-comments {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    border-top: 2px solid var(--gold);
}
.blog-comments h2 {
    font-size: 1.2rem;
    color: var(--brown);
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .blog-hero { float: none; max-width: 100%; margin: 0 0 1.5rem; border-radius: 8px; }
    .blog-article-header h1 { font-size: 1.5rem; }
    .blog-article-byline { flex-direction: column; gap: 0.3rem; }
}

.blog-article { max-width: 800px; padding: 1rem 0 3rem; }
.blog-article-header { margin-bottom: 1.5rem; }
.blog-article-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.blog-article-meta { display: flex; gap: 1rem; align-items: center; color: var(--text-light); font-size: 0.95rem; }
.blog-intro { font-size: 1.1rem; line-height: 1.7; font-weight: 500; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.blog-body { line-height: 1.8; margin-bottom: 1.5rem; }
.blog-body p { margin-bottom: 1rem; }
.blog-photo { margin: 1.5rem 0; }
.blog-photo img { border-radius: var(--radius); max-width: 100%; }
.blog-photo figcaption { font-size: 0.8rem; color: var(--text-light); font-style: italic; margin-top: 0.3rem; }

/* Terroir */
.terroir-nav { display: flex; gap: 1rem; margin-bottom: 2rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.product-detail { padding: 1rem 0 3rem; }
.product-meta { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }

.admin-recipe-details { margin: 0.5rem 0; }
.admin-recipe-details details { margin-bottom: 0.3rem; }
.admin-recipe-details summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--brown); }
.admin-recipe-details summary:hover { color: var(--gold); }
.admin-recipe-meta { margin: 0.5rem 0; font-size: 0.88rem; color: var(--text-light); }

/* Wine */
.wine-region-icon { font-size: 3rem; background: #f9ebea; }
.wine-list { max-width: 700px; }
.wine-item { padding: 1rem; border-bottom: 1px solid var(--border); }
.wine-item h3 { margin-bottom: 0.3rem; }
.wine-excerpt { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0.3rem; }
.wine-detail { padding: 1rem 0 3rem; max-width: 960px; margin: 0 auto; }
.wine-hero {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-light));
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
}
.wine-hero-icon { font-size: 3.5rem; flex-shrink: 0; }
.wine-hero h1 {
    font-size: 1.8rem;
    margin: 0 0 0.3rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: #fff;
}
.wine-hero-region {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(212,168,67,0.2);
    border: 1px solid rgba(212,168,67,0.4);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--gold);
}
.wine-hero-region:hover { background: var(--gold); color: var(--brown); text-decoration: none; }
.wine-badge { background: var(--brown); }
.wine-region-hero {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-light));
}
.wine-description {
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1rem;
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
}
.wine-description p { margin-bottom: 0.8rem; }

.wine-pairing-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (max-width: 768px) { .wine-pairing-list { grid-template-columns: 1fr; } .wine-hero { flex-direction: column; text-align: center; padding: 1.5rem; } }
.wine-pairing-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.2s;
}
.wine-pairing-item:hover { border-color: var(--gold); text-decoration: none; box-shadow: var(--shadow); }
.wine-icon { font-size: 1.3rem; }
.wine-name { font-weight: 500; flex: 1; }
.wine-region-tag { font-size: 0.8rem; color: #8e44ad; }

/* Admin wine */
.admin-wine-recipes { margin: 0.5rem 0; }
.admin-wine-recipe-item { display: inline-flex; align-items: center; gap: 0.3rem; background: #faf8f5; border: 1px solid var(--border); padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.85rem; margin: 0.2rem; }
.admin-wine-recipe-item form { display: inline; }
.admin-wine-recipe-item button { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 1rem; padding: 0; }

/* Autocomplete */
.autocomplete-manager { max-width: 600px; }
.ac-items { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.8rem; }
.ac-item { display: inline-flex; align-items: center; gap: 0.4rem; background: #eef; padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.9rem; }
.ac-item small { color: var(--text-light); }
.ac-remove { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 1.1rem; padding: 0 0.2rem; line-height: 1; }
.ac-remove:hover { color: #e74c3c; }
.ac-search-wrap { position: relative; }
.ac-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 50; max-height: 300px; overflow-y: auto; }
.ac-result-item { padding: 0.6rem 0.8rem; cursor: pointer; font-size: 0.95rem; border-bottom: 1px solid #f5f5f5; }
.ac-result-item:hover { background: #f0f0ff; }
.ac-result-name { font-weight: 500; }
.ac-result-sub { color: var(--text-light); }
.ac-no-result { padding: 0.6rem 0.8rem; color: var(--text-light); font-size: 0.9rem; }
.ac-create-new { background: #f0fff0; border-top: 2px solid #27ae60; }
.ac-create-new:hover { background: #d5f5e3; }

/* Legal pages */
.legal-page section { margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--primary); }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page p { line-height: 1.8; }

/* Favorites */
.card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-link { display: block; color: var(--text); }
.card-link:hover { text-decoration: none; }
.fav-heart { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.85); border: none; color: #ccc; font-size: 1.3rem; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; line-height: 1; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.fav-heart:hover { background: #fff; color: var(--gold); transform: scale(1.15); }
.fav-heart.active { color: var(--gold); background: #fff; }
.fav-heart-lg { position: static; font-size: 0.6em; vertical-align: middle; width: auto; height: auto; background: none; color: #ddd; border-radius: 0; }
.fav-heart-lg:hover { background: none; color: var(--gold); }
.fav-heart-lg.active { background: none; color: var(--gold); }

.fav-popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.fav-popup-content { background: #fff; padding: 2rem; border-radius: var(--radius); text-align: center; max-width: 400px; position: relative; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.fav-popup-content p { margin-bottom: 1.5rem; font-size: 1rem; }
.fav-popup-content .btn { margin: 0 0.3rem; }
.fav-popup-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); }

/* Fav button on recipe page */
.recipe-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.recipe-title-row h1 { flex: 1; }
.fav-btn { display: flex; align-items: center; gap: 0.4rem; background: none; border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; color: var(--text-light); font-size: 0.9rem; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; margin-top: 0.3rem; }
.fav-btn:hover { border-color: var(--gold); color: var(--gold); }
.fav-btn.active { border-color: var(--gold); color: var(--gold); background: #faf6f0; }
.fav-btn-icon { font-size: 1.2rem; }
.fav-btn.active .fav-btn-text::after { content: ''; }

/* Cookbook nav link */
.nav-cookbook { color: var(--gold) !important; }
.nav-cookbook:hover { color: #fff !important; }

/* Lexique */
.lexique-item { display: inline-block; padding: 0.3rem 0.8rem; margin: 0.2rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; font-size: 0.9rem; color: var(--text); }
.lexique-item:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.lexique-detail { max-width: 700px; padding: 1rem 0 3rem; }
.lexique-detail h1 { margin-bottom: 1rem; }
.lexique-definition { line-height: 1.8; font-size: 1.05rem; margin-bottom: 2rem; }

/* Tag pages */
.tag-intro { color: var(--text-light); font-size: 1rem; margin-bottom: 2rem; max-width: 700px; }
.tag-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.tag-index-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.tag-index-title { font-size: 1rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.tag-index-title a { color: var(--brown); }
.tag-index-title a:hover { color: var(--gold); text-decoration: none; }
.tag-index-children { list-style: none; padding: 0; }
.tag-index-children li { padding: 0.2rem 0; font-size: 0.85rem; }
.tag-index-children li a { color: var(--text-light); }
.tag-index-children li a:hover { color: var(--gold); }
.tag-index-children small { color: var(--text-light); }
.tag-more a { color: var(--gold); font-style: italic; font-size: 0.8rem; }
.tag-count { background: var(--brown); color: var(--gold); font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 10px; }
.tag-description { line-height: 1.8; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.tag-page { padding: 1rem 0; }
.tag-children-section { margin-bottom: 2rem; }
.tag-children-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-child-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 0.4rem 0.8rem; border-radius: 20px;
    color: var(--text); font-size: 0.9rem;
}
.tag-child-link:hover { border-color: var(--gold); text-decoration: none; color: var(--gold); }
.tag-related-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tag-related-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Explorer page */
.explorer-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; justify-content: center; padding: 1rem 0; }
.explorer-cloud-tag { display: inline-block; padding: 0.2rem 0.6rem; color: var(--brown); transition: all 0.2s; font-weight: 500; }
.explorer-cloud-tag:hover { color: var(--gold); text-decoration: none; transform: scale(1.05); }
.explorer-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.explorer-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 1rem; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 25px; color: var(--text); font-size: 0.9rem; transition: all 0.2s;
}
.explorer-chip:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; box-shadow: var(--shadow); }
.explorer-chip-count { background: var(--brown); color: var(--gold); font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 10px; font-weight: 700; }
.explorer-themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.explorer-theme-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; transition: box-shadow 0.2s; }
.explorer-theme-card:hover { box-shadow: 0 4px 16px rgba(44,32,21,0.08); }
.explorer-theme-title { font-size: 1rem; margin-bottom: 0.6rem; display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); }
.explorer-theme-title a { color: var(--brown); }
.explorer-theme-title a:hover { color: var(--gold); text-decoration: none; }
.explorer-theme-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.explorer-theme-tags a { font-size: 0.8rem; color: var(--text-light); padding: 0.15rem 0.5rem; border-radius: 3px; transition: all 0.15s; }
.explorer-theme-tags a:hover { background: #faf6f0; color: var(--gold); text-decoration: none; }
.explorer-theme-more { color: var(--gold) !important; font-style: italic; }

@media (max-width: 768px) {
    .tag-list { columns: 1; }
    .blog-layout { flex-direction: column; }
    .blog-sidebar { width: 100%; }
    .blog-cat-nav { flex-direction: row; flex-wrap: wrap; }
    .blog-card { flex-direction: column; }
    .blog-card-img { width: 100%; height: 200px; }
    .member-layout { flex-direction: column; }
    .member-sidebar { width: 100%; }
    .member-nav { flex-direction: row; flex-wrap: wrap; gap: 0.3rem; }
    .profile-row { flex-direction: column; }
    .profile-label { width: auto; margin-bottom: 0.2rem; }
    .forum-table { table-layout: auto; }
    .forum-table th, .forum-table td { padding: 0.5rem; font-size: 0.8rem; }
    .admin-stats { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }
    .admin-card { padding: 0.8rem 0.5rem; min-height: 80px; }
    .admin-card-count { font-size: 1.3rem; }
    .admin-card-label { font-size: 0.72rem; }
    .admin-item-header { font-size: 0.82rem; }
}

/* Footer */
.footer { margin-top: auto; }
.footer-main { background: linear-gradient(135deg, var(--brown-dark), var(--brown)); color: rgba(255,255,255,0.8); padding: 2rem 0; }
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none;
}
.footer-logo img { height: 40px; opacity: 0.9; }
.footer-logo:hover { text-decoration: none; opacity: 1; }
.footer-logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem; color: #fff;
}
.footer-logo-text .logo-af { color: var(--gold); font-weight: 700; }
.footer-cuisine {
    display: block; font-size: 0.6em; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--gold); text-align: center;
}
.footer-tagline {
    font-size: 0.8rem; color: rgba(255,255,255,0.5);
    font-style: italic; margin: 0; margin-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.15); padding-left: 1rem;
}
.footer-columns {
    display: flex; gap: 2.5rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.footer-col a {
    color: rgba(255,255,255,0.6); font-size: 0.82rem; text-decoration: none;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    background: var(--brown-dark); color: rgba(255,255,255,0.4);
    text-align: center; padding: 0.8rem 0; font-size: 0.75rem;
    border-top: 1px solid rgba(212,168,67,0.15);
}
@media (max-width: 768px) {
    .footer-top { flex-direction: column; text-align: center; }
    .footer-brand { flex-direction: column; }
    .footer-tagline { border-left: none; margin-left: 0; padding-left: 0; }
    .footer-columns { flex-direction: column; gap: 1.5rem; align-items: center; }
}

/* Navigation categories soeurs */
.sibling-nav { margin-top: 2.5rem; padding: 1.5rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.sibling-nav h3 { color: var(--brown); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.8rem; border-bottom: 2px solid var(--gold); padding-bottom: 0.4rem; display: inline-block; }
.sibling-nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sibling-nav-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 25px; color: var(--text); text-decoration: none; font-size: 0.9rem;
    transition: all 0.2s ease;
}
.sibling-nav-link:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .header-top { flex-wrap: wrap; padding: 0 0.5rem; }
    .logo { flex: 1; }
    .logo img { height: 42px; }
    .logo-text { font-size: 1.1rem; }
    .logo-cuisine { letter-spacing: 0.15em; }
    .header-search { max-width: none; margin: 0.5rem 0; order: 3; width: 100%; }
    .header-actions { order: 2; }
    .header-action-link { font-size: 0.75rem; }

    .navbar-toggle {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(212,168,67,0.1);
        border: 1px solid rgba(212,168,67,0.3);
        padding: 8px 14px;
        border-radius: 6px;
        cursor: pointer;
        color: #d4a843;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.05em;
    }
    .navbar-toggle:hover { background: rgba(212,168,67,0.2); }

    .nav-inner { position: relative; }
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--brown-dark);
        border-top: 2px solid var(--gold);
        padding: 0.5rem 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        z-index: 1000;
    }
    .nav-inner.open .navbar-menu { display: flex; }

    .navbar-menu a {
        padding: 12px 18px;
        border-bottom: none;
        border-left: 3px solid transparent;
        font-size: 13px;
        text-transform: none;
        letter-spacing: 0;
    }
    .navbar-menu a:hover,
    .navbar-menu a:active {
        border-left-color: var(--gold);
        background: rgba(212,168,67,0.08);
        border-bottom: none;
    }

    .hero h1 { font-size: 1.6rem; }
    .recipe-header h1 { font-size: 1.5rem; }
    .recipe-times { gap: 0.8rem; }
    .time-block { min-width: 80px; padding: 0.4rem 0.6rem; }
}