@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-main: #0a090c;
    --bg-card: #141218;
    --bg-card-hover: #1e1b24;
    --border-color: rgba(249, 87, 56, 0.15);
    --border-color-hover: rgba(249, 87, 56, 0.4);
    
    --color-primary: #f95738; /* Fiery Orange-Red */
    --color-secondary: #f4d35e; /* Golden Warmth */
    --color-accent: #ee964b; /* Soft Ember */
    --color-text-bright: #faf0ca; /* Warm Ivory */
    --color-text-main: #e2dfd5; /* Soft Muted Ivory */
    --color-text-muted: #a09ba9; /* Smoky Grey */
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-fire: 0 0 25px rgba(249, 87, 56, 0.25);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', Inter, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere Glow */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(249, 87, 56, 0.08) 0%, rgba(244, 211, 94, 0.02) 50%, transparent 100%);
    z-index: -2;
    pointer-events: none;
    filter: blur(80px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(238, 150, 75, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #2a2533;
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    background: rgba(10, 9, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(249, 87, 56, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(10, 9, 12, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(249, 87, 56, 0.25);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-fire {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flicker 3s infinite alternate;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-bright);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--color-primary);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

nav a:hover, nav a.active {
    color: var(--color-primary);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.search-nav-container {
    position: relative;
    width: 250px;
}

.search-nav-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--color-text-bright);
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.search-nav-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(249, 87, 56, 0.15);
}

.search-nav-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--color-text-bright);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-text-bright);
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-primary) 20%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    border-radius: 30px;
    box-shadow: var(--shadow-lg), var(--shadow-fire);
}

.hero-search input {
    width: 100%;
    padding: 1.25rem 2rem 1.25rem 3.5rem;
    background: rgba(20, 18, 24, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--color-text-bright);
    font-size: 1.1rem;
    font-family: var(--font-sans);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.hero-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(30, 27, 36, 0.95);
}

.hero-search i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--color-primary);
}

/* Category Filter Bar */
.categories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(249, 87, 56, 0.3);
}

/* Recipe/Article Card Grid */
.grid-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-bright);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.grid-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(249, 87, 56, 0.2);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(249, 87, 56, 0.3) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg), 0 5px 20px rgba(249, 87, 56, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #18151f;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    font-size: 2.5rem;
    background: linear-gradient(180deg, #1c1824 0%, #110e17 100%);
}

.card-image-placeholder span {
    font-size: 0.85rem;
    font-family: var(--font-sans);
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 9, 12, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(249, 87, 56, 0.3);
    color: var(--color-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--color-text-bright);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-main);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.card-btn {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card:hover .card-btn {
    color: var(--color-secondary);
    transform: translateX(3px);
}

/* Detail Page Elements */
.detail-header {
    padding: 4rem 0 2rem;
}

.detail-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.detail-nav-back:hover {
    color: var(--color-secondary);
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
    margin-bottom: 5rem;
}

.recipe-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.recipe-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.recipe-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-text-bright);
    line-height: 1.2;
}

.recipe-meta-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.meta-badge i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.meta-badge-text {
    display: flex;
    flex-direction: column;
}

.meta-badge-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.meta-badge-value {
    font-weight: 600;
    color: var(--color-text-bright);
    font-size: 0.95rem;
}

/* Ingredients panel */
.ingredients-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.ingredients-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-text-bright);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.servings-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 0.35rem 0.75rem;
}

.servings-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
}

.servings-btn:hover {
    color: var(--color-secondary);
}

.servings-num {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-text-bright);
    font-size: 0.95rem;
    min-width: 15px;
    text-align: center;
}

.ingredients-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ingredient-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.75rem;
    cursor: pointer;
}

.ingredient-item:last-child {
    border: none;
    padding: 0;
}

.ingredient-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    transition: var(--transition-smooth);
    color: transparent;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.ingredient-item.checked .ingredient-checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.ingredient-item.checked .ingredient-details {
    text-decoration: line-through;
    opacity: 0.5;
}

.ingredient-amount {
    font-weight: 600;
    color: var(--color-secondary);
}

/* Instructions */
.instructions-section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-text-bright);
    margin-bottom: 1.5rem;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.instruction-step {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.instruction-step:hover {
    border-color: rgba(249, 87, 56, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.instruction-step.checked {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.02);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(249, 87, 56, 0.1);
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-serif);
    flex-shrink: 0;
}

.instruction-step.checked .step-number {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-muted);
}

.step-text {
    font-size: 1.05rem;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Timer styles in steps */
.timer-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(244, 211, 94, 0.12);
    border: 1px dashed var(--color-secondary);
    color: var(--color-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin: 0.2rem 0;
    width: fit-content;
}

.timer-trigger:hover {
    background: var(--color-secondary);
    color: var(--bg-main);
}

/* Blog Content Details */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.article-content h2, .article-content h3 {
    font-family: var(--font-serif);
    color: var(--color-text-bright);
    margin: 2rem 0 1rem;
}

.article-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(249, 87, 56, 0.1);
    padding-bottom: 0.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Internal Linking (Maillage) Section */
.maillage-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(249, 87, 56, 0.1);
}

.maillage-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-text-bright);
    margin-bottom: 1.5rem;
}

.maillage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.maillage-link-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.maillage-link-card:hover {
    background: rgba(249, 87, 56, 0.04);
    border-color: rgba(249, 87, 56, 0.25);
    transform: translateY(-3px);
}

.maillage-link-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-text-bright);
    margin-bottom: 0.5rem;
}

.maillage-link-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.maillage-link-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Floating active timer */
.floating-timer-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(20, 18, 24, 0.95);
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg), var(--shadow-fire);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease-out;
}

.timer-circle {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-bright);
}

.timer-info {
    display: flex;
    flex-direction: column;
}

.timer-info-title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.timer-info-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
}

.timer-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-bright);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.timer-control-btn:hover {
    background: var(--color-primary);
    border-color: transparent;
}

/* Print/Cooking mode actions */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-bright);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background: rgba(249, 87, 56, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Cooking Mode Overlay */
.cooking-mode-overlay {
    position: fixed;
    inset: 0;
    background: #060507;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.cooking-mode-header {
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.cooking-mode-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.cooking-mode-body {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.cooking-mode-step {
    margin-bottom: 4rem;
}

.cooking-mode-step-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.cooking-mode-step-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text-bright);
}

.cooking-mode-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0c0a0e;
}

.cooking-mode-progress {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Mentions Légales */
.legal-container {
    padding: 4rem 0 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-text-bright);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
}

.legal-section p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.7;
}

/* Footer styling */
footer {
    background: #060507;
    border-top: 1px solid rgba(249, 87, 56, 0.08);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-bright);
}

.footer-logo-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-col h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes flicker {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(249, 87, 56, 0.6)); }
    50% { filter: drop-shadow(0 0 6px rgba(249, 87, 56, 0.9)) drop-shadow(0 0 12px rgba(244, 211, 94, 0.4)); }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Grid and Menu */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .ingredients-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    nav {
        display: none; /* In production, you'd toggle a mobile menu */
    }
    .search-nav-container {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Gallery of Recipe Images */
.recipe-images-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--border-color);
}

.main-image-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.sub-images-wrapper {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 100%;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    cursor: zoom-in;
}

.gallery-img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .recipe-images-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    .sub-images-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px;
        height: 150px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 500px;
    background: rgba(20, 18, 24, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-fire);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hidden {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.cookie-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 5px rgba(249, 87, 56, 0.4));
    flex-shrink: 0;
    animation: flicker 4s infinite alternate;
}

.cookie-text h4 {
    font-family: var(--font-serif);
    color: var(--color-text-bright);
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.cookie-text p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.cookie-btn.accept {
    background: var(--color-primary);
    color: #fff;
}

.cookie-btn.accept:hover {
    background: var(--color-secondary);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(244, 211, 94, 0.4);
}

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Magazine Homepage Layout */
.magazine-container {
    padding: 2rem 0;
}

.featured-recipe-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 480px;
    display: flex;
    align-items: flex-end;
    padding: 3.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(180deg, rgba(10, 9, 12, 0.1) 0%, rgba(10, 9, 12, 0.95) 100%), url('images/193-photographie-culinaire-professionnelle-de-poutine-quebecoise-authentique-lumier.jpg') center/cover no-repeat;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), var(--shadow-fire);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.featured-recipe-banner:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg), 0 5px 30px rgba(249, 87, 56, 0.25);
}

.featured-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-fire);
}

.featured-content {
    max-width: 680px;
    z-index: 2;
}

.featured-content h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--color-text-bright);
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.featured-content p {
    color: var(--color-text-main);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.magazine-section {
    margin-bottom: 4.5rem;
}

.magazine-section-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(249, 87, 56, 0.15);
    padding-bottom: 0.75rem;
}

.magazine-section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-text-bright);
    font-weight: 600;
}

.magazine-section-title span {
    color: var(--color-primary);
}

.magazine-section-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.magazine-section-link:hover {
    color: var(--color-secondary);
    transform: translateX(3px);
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .featured-recipe-banner {
        height: 380px;
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    .featured-content h2 {
        font-size: 1.8rem;
    }
    .featured-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    .featured-badge {
        top: 1.25rem;
        left: 1.25rem;
        font-size: 0.75rem;
    }
    .magazine-section {
        margin-bottom: 3rem;
    }
    .magazine-section-title {
        font-size: 1.4rem;
    }
    .magazine-section-header {
        margin-bottom: 1.5rem;
    }
}

