/*
Theme Name: Cuisine Maison
Theme URI: https://example.com/cuisinemaison
Author: Cuisine Maison
Author URI: https://example.com
Description: Thème WordPress boisé et familial pour un blog culinaire personnel. Ambiance chaleureuse, textures naturelles et typographie élégante.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cuisinemaison
Tags: food, blog, recipes, one-column, custom-menu, featured-images
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
    /* Palette boisée / familiale */
    --cm-bark:        #3B2314;
    --cm-walnut:      #5C3D2E;
    --cm-cinnamon:    #8B5E3C;
    --cm-honey:       #C8913A;
    --cm-butter:      #E8C872;
    --cm-cream:       #FFF8EE;
    --cm-linen:       #FAF3E8;
    --cm-parchment:   #F0E6D4;
    --cm-sage:        #7A8B6F;
    --cm-olive:       #5B6B4A;
    --cm-rosemary:    #4A5940;
    --cm-tomato:      #C0392B;
    --cm-paprika:     #D4603A;

    /* Typographie */
    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Source Sans 3', 'Segoe UI', sans-serif;
    --font-accent:    'Caveat', cursive;

    /* Espacements */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-2xl: 5rem;

    /* Ombres */
    --shadow-soft:    0 2px 15px rgba(59,35,20,0.08);
    --shadow-medium:  0 4px 25px rgba(59,35,20,0.12);
    --shadow-strong:  0 8px 40px rgba(59,35,20,0.18);

    /* Bordures */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--cm-bark);
    background-color: var(--cm-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Texture de fond subtile (grain de bois) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(139,94,60,0.015) 50px,
            rgba(139,94,60,0.015) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(139,94,60,0.01) 100px,
            rgba(139,94,60,0.01) 101px
        );
    pointer-events: none;
    z-index: -1;
}

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

a {
    color: var(--cm-cinnamon);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

a:hover {
    color: var(--cm-honey);
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cm-walnut);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.accent-text {
    font-family: var(--font-accent);
    color: var(--cm-cinnamon);
}

/* ========================================
   LAYOUT
   ======================================== */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: linear-gradient(180deg, var(--cm-walnut) 0%, var(--cm-bark) 100%);
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

/* Motif décoratif en haut */
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--cm-honey) 0px,
        var(--cm-honey) 20px,
        var(--cm-butter) 20px,
        var(--cm-butter) 40px,
        var(--cm-cinnamon) 40px,
        var(--cm-cinnamon) 60px
    );
}

/* Texture bois sur le header */
.site-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(
            87deg,
            transparent,
            transparent 30px,
            rgba(255,248,238,0.02) 30px,
            rgba(255,248,238,0.02) 31px
        );
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.site-logo {
    width: 60px;
    height: 60px;
    background: var(--cm-honey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--cm-cream);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-title a {
    color: inherit;
}

.site-title a:hover {
    color: var(--cm-honey);
}

.site-description {
    font-family: var(--font-accent);
    color: var(--cm-butter);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.main-navigation a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--cm-parchment);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--cm-honey);
    transition: width 0.3s var(--ease-out);
    border-radius: 1px;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 60%;
}

.main-navigation a:hover {
    color: var(--cm-honey);
    background: rgba(255,248,238,0.08);
}

/* Menu hamburger mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--cm-cream);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

/* ========================================
   BARRE DE RECHERCHE HEADER
   ======================================== */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: var(--space-sm);
}

.header-search__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,248,238,0.1);
    border: 1px solid rgba(255,248,238,0.15);
    border-radius: 50%;
    color: var(--cm-parchment);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    padding: 0;
}

.header-search__toggle:hover {
    background: rgba(255,248,238,0.2);
    color: var(--cm-honey);
}

.header-search__form {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    z-index: 200;
    min-width: 320px;
    animation: searchSlideDown 0.25s var(--ease-out);
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-search.open .header-search__form {
    display: flex;
}

.header-search.open .header-search__toggle {
    background: var(--cm-honey);
    color: var(--cm-bark);
    border-color: var(--cm-honey);
}

.header-search__input {
    flex: 1;
    border: none !important;
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    background: white !important;
    color: var(--cm-bark) !important;
    outline: none;
    min-width: 0;
    box-shadow: none !important;
}

.header-search__input::placeholder {
    color: var(--cm-cinnamon);
    opacity: 0.6;
}

.header-search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: var(--cm-honey) !important;
    border: none !important;
    color: var(--cm-bark) !important;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.header-search__submit:hover {
    background: var(--cm-butter) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   HERO / BANNIÈRE
   ======================================== */
.hero-banner {
    background: linear-gradient(135deg, var(--cm-walnut) 0%, var(--cm-cinnamon) 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,145,58,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(122,139,111,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--cm-cream);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--cm-butter);
    margin-bottom: var(--space-lg);
}

.hero-cta {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    background: var(--cm-honey);
    color: var(--cm-bark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 15px rgba(200,145,58,0.3);
}

.hero-cta:hover {
    background: var(--cm-butter);
    color: var(--cm-bark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,145,58,0.4);
}

/* Séparateur décoratif */
.section-divider {
    text-align: center;
    padding: var(--space-lg) 0;
    position: relative;
}

.section-divider::before {
    content: '✦ ✦ ✦';
    font-size: 0.8rem;
    color: var(--cm-honey);
    letter-spacing: 8px;
}

/* ========================================
   CARTES DE RECETTES
   ======================================== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
}

.recipe-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.recipe-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.recipe-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.recipe-card:hover .recipe-card__image img {
    transform: scale(1.05);
}

.recipe-card__category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--cm-honey);
    color: var(--cm-bark);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recipe-card__time {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(59,35,20,0.75);
    color: var(--cm-cream);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.recipe-card__body {
    padding: var(--space-md) var(--space-lg);
}

.recipe-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cm-walnut);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.recipe-card__title a {
    color: inherit;
}

.recipe-card__title a:hover {
    color: var(--cm-cinnamon);
}

.recipe-card__excerpt {
    font-size: 0.95rem;
    color: #6b5b4f;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.recipe-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--cm-parchment);
    font-size: 0.85rem;
    color: var(--cm-cinnamon);
}

.recipe-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   ARTICLE / SINGLE RECETTE
   ======================================== */
.single-recipe {
    max-width: 800px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-lg);
}

.recipe-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.recipe-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    color: var(--cm-walnut);
}

.recipe-header__tagline {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--cm-cinnamon);
}

.recipe-info-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-xl);
}

.recipe-info-item {
    text-align: center;
    min-width: 100px;
}

.recipe-info-item__icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.recipe-info-item__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cm-cinnamon);
    font-weight: 600;
}

.recipe-info-item__value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cm-walnut);
    font-weight: 700;
}

/* Portions ajustables */
.portions-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--cm-linen);
    border-radius: var(--radius-md);
    border: 2px dashed var(--cm-parchment);
}

.portions-control__label {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cm-walnut);
}

.portions-control__btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--cm-cinnamon);
    background: white;
    color: var(--cm-cinnamon);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-out);
}

.portions-control__btn:hover {
    background: var(--cm-cinnamon);
    color: white;
}

.portions-control__count {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cm-honey);
    min-width: 40px;
    text-align: center;
}

/* Ingrédients */
.recipe-ingredients {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-xl);
    position: relative;
}

.recipe-ingredients::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--cm-honey), var(--cm-cinnamon));
    border-radius: 5px 0 0 5px;
}

.recipe-ingredients h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--cm-parchment);
}

.recipe-ingredients ul {
    list-style: none;
}

.recipe-ingredients li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(240,230,212,0.5);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.05rem;
}

.recipe-ingredients li::before {
    content: '•';
    color: var(--cm-honey);
    font-size: 1.4rem;
    font-weight: bold;
}

.recipe-ingredients li:last-child {
    border-bottom: none;
}

.ingredient-qty {
    font-weight: 700;
    color: var(--cm-walnut);
}

/* Étapes */
.recipe-steps {
    margin-bottom: var(--space-xl);
}

.recipe-steps h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.recipe-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s var(--ease-out);
}

.recipe-step:hover {
    box-shadow: var(--shadow-medium);
}

.recipe-step__number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cm-honey), var(--cm-cinnamon));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(200,145,58,0.3);
}

.recipe-step__content {
    flex: 1;
}

.recipe-step__content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    padding: var(--space-lg) 0;
}

.widget {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--space-lg);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cm-walnut);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--cm-honey);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: linear-gradient(180deg, var(--cm-bark) 0%, #2A1A0E 100%);
    color: var(--cm-parchment);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--cm-sage),
        var(--cm-honey),
        var(--cm-cinnamon),
        var(--cm-honey),
        var(--cm-sage)
    );
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-section h3 {
    font-family: var(--font-display);
    color: var(--cm-honey);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    color: var(--cm-parchment);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--cm-honey);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
    padding: var(--space-md) var(--space-lg) 0;
    border-top: 1px solid rgba(255,248,238,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(240,230,212,0.5);
}

.footer-bottom .accent-text {
    color: var(--cm-honey);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
}

.pagination a {
    background: white;
    color: var(--cm-walnut);
    box-shadow: var(--shadow-soft);
}

.pagination a:hover {
    background: var(--cm-honey);
    color: white;
}

.pagination .current {
    background: var(--cm-cinnamon);
    color: white;
}

/* ========================================
   FORMULAIRES
   ======================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--cm-parchment);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    color: var(--cm-bark);
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cm-honey);
    box-shadow: 0 0 0 3px rgba(200,145,58,0.15);
}

button,
.btn,
input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background: var(--cm-cinnamon);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
    background: var(--cm-walnut);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn--honey {
    background: var(--cm-honey);
    color: var(--cm-bark);
}

.btn--honey:hover {
    background: var(--cm-butter);
}

/* ========================================
   PAGE DE CONNEXION CACHÉE
   ======================================== */
.hidden-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cm-bark) 0%, var(--cm-walnut) 100%);
}

.hidden-login__box {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.hidden-login__box h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
}

.hidden-login__box .login-field {
    margin-bottom: var(--space-md);
    text-align: left;
}

.hidden-login__box label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--cm-walnut);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        flex-wrap: wrap;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cm-bark);
        padding: var(--space-md);
        box-shadow: var(--shadow-strong);
        z-index: 100;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .header-search__form {
        min-width: 260px;
        right: -10px;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .recipe-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .recipe-info-bar {
        gap: var(--space-md);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.2rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipe-card {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.recipe-card:nth-child(2) { animation-delay: 0.1s; }
.recipe-card:nth-child(3) { animation-delay: 0.2s; }
.recipe-card:nth-child(4) { animation-delay: 0.3s; }
.recipe-card:nth-child(5) { animation-delay: 0.4s; }
.recipe-card:nth-child(6) { animation-delay: 0.5s; }

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--cm-linen);
}
::-webkit-scrollbar-thumb {
    background: var(--cm-cinnamon);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cm-walnut);
}

/* ========================================
   UTILITAIRES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
