/* --- Styles généraux NutriChefette --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 13px;
    color: #64748b;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary {
    background-color: #0f766e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0d9488;
}

.hidden {
    display: none !important;
}

.import-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.tab-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: #0f766e;
    color: #ffffff;
}

.import-form-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.import-form-panel input[type="url"],
.import-form-panel textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.recipe-name {
    font-size: 22px;
    font-weight: 700;
    color: #0f766e;
    margin-top: 0;
    margin-bottom: 8px;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #475569;
}

.bold {
    font-weight: 700;
    color: #1e293b;
}

.nutrition-summary .macros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.macro-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.macro-box.calories {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.macro-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f766e;
}

.macro-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-tag.matched {
    background: #e0f2fe;
    color: #0369a1;
}

.instructions-text {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

/* Style et dimensionnement du logo chef.png dans le header */
.app-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(39%) sepia(29%) saturate(1310%) hue-rotate(127deg) brightness(94%) contrast(93%);
}