/* ==========================================================================
   MA BIBLIOTHÈQUE DE RECETTES — STYLES PRINCIPAUX V35
   Fondations, composants, structure des pages et états applicatifs.
   Les adaptations responsive sont définies dans responsive.css, chargé après
   cette feuille. L’ordre des règles de cette feuille est conservé.
   ========================================================================== */

/* Les règles restent dans leur ordre historique de cascade.
   Les repères numérotés ci-dessous sont des jalons de lecture, pas des couches indépendantes.
   Ne pas déplacer de règles entre ces zones sans comparer la cascade des deux pages. */

:root {
    --ivory: #f6f0e5;
    --paper: #fffdf8;
    --sage: #78836a;
    --sage-dark: #58634d;
    --terracotta: #b86f50;
    --ink: #40382f;
    --muted: #82786c;
    --line: #e9dfd0;
    --shadow: 0 14px 40px rgba(64,56,47,.08);
}

button,input {
    font: inherit;
}

button {
    cursor: pointer;
}

.nav a:hover {
    color: var(--sage-dark);
}

.menu-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 01 — COMPOSANTS INITIAUX
   -------------------------------------------------------------------------- */

.hero {
    padding: 34px 0 30px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    border-radius: 28px;
    background: #6b6251;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.68);
}

.hero-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(39,34,27,.78),rgba(39,34,27,.35) 55%,rgba(39,34,27,.04));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 48px 58px;
    max-width: 610px;
}

.eyebrow,.section-kicker {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #e6d9c4;
}

.hero h1 {
    font: 600 clamp(34px,4.4vw,54px)/1.12 "Playfair Display",serif;
    margin: 14px 0;
}

.hero p {
    font-size: 14px;
    line-height: 1.8;
    color: #f4ede3;
    max-width: 430px;
}

.primary-btn {
    border: 0;
    border-radius: 999px;
    background: var(--ivory);
    color: var(--ink);
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 700;
}

.daily-dish {
    display: grid;
    grid-template-columns: minmax(0,1.05fr) minmax(260px,.95fr);
    overflow: hidden;
    margin: 0 0 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.daily-dish-copy {
    padding: 27px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.daily-dish-kicker {
    font-size: 10px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 700;
}

.daily-dish-title {
    font: 600 clamp(25px,3vw,34px)/1.15 "Playfair Display",serif;
    margin: 9px 0 10px;
}

.daily-dish-description {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 17px;
}

.daily-dish-meta {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 0 19px;
}

.daily-dish-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1eadf;
    color: #766d62;
    font-size: 10px;
    font-weight: 600;
}

.daily-dish-button {
    border: 0;
    border-radius: 999px;
    background: var(--sage);
    color: white;
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 700;
}

.daily-dish-button:hover {
    background: var(--sage-dark);
}

.daily-dish-photo-wrap {
    min-height: 255px;
    background: #e7ddce;
}

.daily-dish-photo {
    width: 100%;
    height: 100%;
    min-height: 255px;
    object-fit: cover;
    display: block;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}

.section-kicker {
    color: var(--sage);
}

.section-title {
    font: 600 29px "Playfair Display",serif;
    margin: 5px 0 0;
}

.text-link {
    border: 0;
    background: none;
    color: var(--sage-dark);
    font-size: 12px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 02 — COMPOSANTS DE CONTENU
   -------------------------------------------------------------------------- */

.search-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box {
    height: 48px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex: 1;
}

.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 13px;
    color: var(--ink);
}

.filter-btn {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.chip {
    border: 1px solid var(--line);
    background: rgba(255,253,248,.55);
    color: #766d62;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
}

.chip.selected {
    background: var(--sage);
    border-color: var(--sage);
    color: white;
}

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 03 — LISTE ET CARTES
   -------------------------------------------------------------------------- */

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.recipe-card {
    background: var(--paper);
    border: 1px solid rgba(229,216,196,.75);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(64,56,47,.035);
    transition: .2s;
    cursor: pointer;
}

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

.recipe-image-wrap {
    position: relative;
    aspect-ratio: 1.38;
    overflow: hidden;
    background: #e7ddce;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favorite {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,253,248,.94);
    color: #8e8173;
}

.recipe-delete-button {
    right: 58px;
    color: #b42318;
}

.favorite[aria-pressed=true] {
    color: var(--terracotta);
}

.recipe-info {
    padding: 14px 15px;
}

.category {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 700;
}

.recipe-info h3 {
    font: 600 18px "Playfair Display",serif;
    margin: 6px 0 12px;
}

.meta {
    display: flex;
    gap: 13px;
    color: var(--muted);
    font-size: 10px;
}

.sidebar {
    padding-top: 2px;
}

.side-card {
    background: rgba(255,253,248,.72);
    border: 1px solid var(--line);
    border-radius: 19px;
    padding: 20px;
    margin-bottom: 16px;
}

.side-title {
    font: 600 19px "Playfair Display",serif;
    margin: 0 0 14px;
}

.quick-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    text-align: left;
    color: var(--ink);
}

.quick-action:last-child {
    border: 0;
}

.quick-icon {
    width: 35px;
    height: 35px;
    border-radius: 12px;
    background: #e9ecdf;
    color: var(--sage-dark);
    display: grid;
    place-items: center;
}

.quick-action strong {
    display: block;
    font-size: 12px;
}

.quick-action small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 45px 20px;
    background: var(--paper);
    border-radius: 18px;
    color: var(--muted);
    font-size: 13px;
}

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translate(-50%,20px);
    opacity: 0;
    background: var(--ink);
    color: white;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 12px;
    pointer-events: none;
    transition: .25s;
    z-index: 50;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%,0);
}

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 04 — SIDEBAR ET DÉTAILS
   -------------------------------------------------------------------------- */

.detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40,34,27,.48);
    z-index: 1200;
    display: none;
    overflow: auto;
    padding: 28px 16px;
}

.detail-overlay.open {
    display: block;
}

.detail-panel {
    max-width: 900px;
    margin: auto;
    background: var(--ivory);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.22);
}

.detail-top {
    padding: 18px 26px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.back-btn {
    border: 0;
    background: none;
    color: var(--sage-dark);
    font-weight: 700;
    font-size: 12px;
}

/* Actions de la fiche recette : style commun */
#detailOverlay .detail-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid var(--sage-dark);
    border-radius: 12px;
    background: var(--sage-dark);
    color: #fffdf8;
    font: 600 13px/1.3 'DM Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 3px 9px rgba(64,56,47,.10);
}

#detailOverlay .detail-action-btn:hover {
    background: #46513e;
    border-color: #46513e;
    box-shadow: 0 5px 13px rgba(64,56,47,.16);
    transform: translateY(-1px);
}

#detailOverlay .detail-action-btn:focus-visible {
    outline: 3px solid rgba(120,131,106,.38);
    outline-offset: 3px;
}

#detailOverlay #editRecipeCategories {
    text-decoration: none;
    font-size: 13px;
}

#detailOverlay #editRecipeCategories::before {
    content: "✎";
    font-size: 16px;
}

#detailOverlay #detailPrint::before {
    content: "▤";
    font-size: 17px;
}

#detailOverlay #detailFavorite {
    min-width: 175px;
}

#detailOverlay #detailPrint {
    min-width: 175px;
}

/* Fermeture de la fiche */
#detailOverlay .detail-top > button#closeDetail.icon-btn {
    appearance: none;
    box-sizing: border-box;
    width: 46px !important;
    min-width: 46px;
    height: 46px !important;
    min-height: 46px;
    flex: 0 0 46px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--sand) !important;
    border-radius: 50% !important;
    background: var(--paper) !important;
    color: var(--sage-dark) !important;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(64,56,47,.10);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

#detailOverlay .detail-top > button#closeDetail.icon-btn:hover {
    background: var(--ivory) !important;
    box-shadow: 0 4px 10px rgba(64,56,47,.15);
    transform: rotate(90deg);
}

#detailOverlay .detail-top > button#closeDetail.icon-btn:focus-visible {
    outline: 3px solid rgba(120,131,106,.38);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    #detailOverlay .detail-top {
        padding: 12px 14px;
        align-items: center;
        gap: 10px;
    }

    #detailOverlay .detail-action-btn {
        min-height: 46px;
        padding: 11px 13px;
        font-size: 12px;
    }

    #detailOverlay #backToLibrary {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    #detailOverlay #closeDetail {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    #detailOverlay .detail-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #detailOverlay #detailFavorite,
    #detailOverlay #detailPrint {
        width: 100%;
        min-width: 0;
    }

    #detailOverlay #editRecipeCategories {
        flex: 0 0 auto;
    }
}

.detail-body {
    padding: 28px 34px 38px;
}

.detail-image {
    width: 100%;
    max-height: 340px;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: 18px;
}

.detail-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-category-edit {
    border: 0;
    background: transparent;
    color: var(--sage-dark);
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-category-editor {
    margin-top: 12px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.detail-category-editor[hidden] {
    display: none;
}

.detail-category-help {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.detail-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
}

.detail-category-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 12px;
}

.detail-category-options input {
    accent-color: var(--sage);
}

.detail-category-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 14px;
}

.detail-category-status {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.detail-title {
    font: 600 clamp(30px,4vw,42px)/1.15 "Playfair Display",serif;
    margin: 14px 0 8px;
}

.detail-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.detail-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 25px;
}

.detail-meta span {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 11px;
    color: var(--muted);
}

.detail-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-section {
    margin-top: 25px;
}

.detail-section h3 {
    font: 600 25px "Playfair Display",serif;
    margin: 0 0 14px;
}

.portion-control {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.portion-control button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 50%;
}

.ingredient-list,.step-list {
    display: grid;
    gap: 11px;
}

.ingredient-row,.step-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 13px;
}

.ingredient-row input,.step-row input {
    accent-color: var(--sage);
    width: 17px;
    height: 17px;
    flex: none;
}

.step-number {
    font: 600 24px "Playfair Display",serif;
    color: var(--terracotta);
    min-width: 30px;
}

.step-row strong {
    display: block;
    font: 600 16px "Playfair Display",serif;
    margin-bottom: 5px;
}

.step-row p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.secondary-btn {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 05 — STRUCTURE ET PAGES
   -------------------------------------------------------------------------- */

.page-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 285px;
    gap: 34px;
    align-items: start;
    padding-top: 22px;
}

.page-content {
    min-width: 0;
}

.page-view[hidden] {
    display: none;
}

.page-heading {
    margin: 4px 0 22px;
}

.recipes-page-intro--contrast {
    color: #fffdf5 !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

.recipes-collection-kicker--contrast {
    color: #fffdf5 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px #34402c55 !important;
}

.recipes-all-link--hidden {
    display: none !important;
}

.page-intro {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

#recipesPage #recettes {
    min-width: 0;
}

#recipesPage .section-head {
    margin-top: 18px;
}

.nav a[aria-current="page"] {
    color: var(--sage-dark);
    text-decoration: underline;
    text-underline-offset: 7px;
}

/* Verrouillage du défilement pendant l’ouverture d’une fenêtre modale. */

html body.modal-open {
    overflow: hidden;
}

html,body {
    min-height: 100%;
    width: 100%;
}

body[data-page="home"] #recipesPage {
    display: none;
}

body[data-page="recipes"] #homePage {
    display: none;
}

#appMain .page-content {
    min-width: 0;
}

body[data-page="home"] #homePage .hero {
    padding: 0;
    flex: 1 1 0;
    min-height: 260px;
    display: flex;
}

body[data-page="home"] .page-layout:has(#homePage:not([hidden])) .sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

body[data-page="home"] .page-layout:has(#homePage:not([hidden])) .sidebar .side-card {
    margin: 0;
}

body[data-page="recipes"] #appMain .page-layout {
    align-items: start;
}

body[data-page="recipes"] #recipesPage {
    display: block;
}

.shell {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
}

.brand-sub {
    display: block;
    font-size: 10px;
    letter-spacing: 2.3px;
    color: var(--sage);
    font-weight: 700;
    margin-top: 4px;
}

.nav {
    display: flex;
    gap: 34px;
    margin-left: auto;
    margin-right: auto;
}

.nav a {
    font-size: 14px;
    text-decoration: none;
    color: #71675c;
    font-weight: 600;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 50%;
    color: var(--ink);
    flex: 0 0 46px;
}

#appMain .page-layout {
    flex: 1 0 auto;
    min-height: 0;
    padding-top: 22px;
    gap: 28px;
    grid-template-columns: minmax(0,1fr) 300px;
    padding: 16px 28px 0;
    align-items: start;
}

#homePage {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 0;
}

#homePage .hero {
    padding: 0;
    min-height: 0;
    flex: 0 0 auto;
}

#homePage .hero-card {
    min-height: 250px;
    height: 250px;
    width: 100%;
}

#homePage .hero-content {
    padding: 28px 34px;
    max-width: 620px;
}

#homePage .hero h1 {
    font-size: clamp(34px,3.1vw,46px);
    line-height: 1.08;
    margin: 9px 0;
}

#homePage .hero p {
    font-size: 14px;
    line-height: 1.55;
    margin: 8px 0 14px;
}

#homePage .daily-dish {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: minmax(0,1.7fr) minmax(260px,.9fr);
    min-height: 245px;
    height: 245px;
    margin: 0;
    overflow: hidden;
}

#homePage .daily-dish-copy {
    min-width: 0;
    min-height: 0;
    padding: 18px 26px;
    justify-content: center;
    overflow: hidden;
}

#homePage .daily-dish-kicker {
    font-size: 10px;
    line-height: 1.35;
    margin: 0 0 4px;
}

#homePage .daily-dish-title {
    font-size: clamp(22px,2.1vw,29px);
    line-height: 1.13;
    margin: 5px 0 8px;
    overflow-wrap: anywhere;
}

#homePage .daily-dish-description {
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 10px;
}

#homePage .daily-dish-meta {
    gap: 7px;
    margin: 0 0 10px;
}

#homePage .daily-dish-meta span {
    padding: 6px 9px;
    font-size: 10px;
}

#homePage .daily-dish-button {
    padding: 10px 16px;
    font-size: 11px;
    flex: 0 0 auto;
}

#homePage .daily-dish-photo-wrap {
    height: 245px;
    min-height: 0;
    overflow: hidden;
}

#homePage .daily-dish-photo {
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

body[data-page="home"] #appMain .page-layout:has(#homePage:not([hidden])) .sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

body[data-page="home"] #appMain .page-layout:has(#homePage:not([hidden])) .sidebar .side-card {
    margin: 0;
    padding: 20px;
}

* {
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    flex: 0 0 auto;
    min-width: 0;
    flex-shrink: 0;
}

.brand-name {
    font: 600 21px "Playfair Display",serif;
    font-size: 26px;
    line-height: 1.12;
}

body[data-page="home"] #appMain .page-layout {
    align-items: stretch;
    padding-top: 20px;
    padding-bottom: 0;
}

body[data-page="home"] #homePage {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
}

body[data-page="home"] #homePage .hero,
body[data-page="home"] #homePage .hero-card {
    height: auto;
    min-height: 250px;
}

body[data-page="home"] #homePage .hero-card {
    width: 100%;
    height: 100%;
    min-height: 260px;
    overflow: hidden;
}

body[data-page="home"] #homePage .hero-content {
    padding: 28px 36px;
    max-width: 680px;
}

body[data-page="home"] #homePage .hero h1 {
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.12;
}

body[data-page="home"] #homePage .daily-dish {
    flex: 1 1 0;
    min-height: 270px;
    margin: 0;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .9fr);
    height: auto;
    overflow: hidden;
}

body[data-page="home"] #homePage .daily-dish-copy {
    min-height: 270px;
    height: auto;
    overflow: visible;
    justify-content: center;
    padding: 24px 30px;
}

body[data-page="home"] #homePage .daily-dish-title {
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.18;
    margin: 7px 0 10px;
    overflow-wrap: break-word;
}

body[data-page="home"] #homePage .daily-dish-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

body[data-page="home"] #homePage .daily-dish-meta {
    margin-bottom: 12px;
}

body[data-page="home"] #homePage .daily-dish-button {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2px;
    white-space: nowrap;
}

body[data-page="home"] #homePage .daily-dish-photo-wrap {
    height: auto;
    min-height: 270px;
    overflow: hidden;
}

body[data-page="home"] #homePage .daily-dish-photo {
    height: 100%;
    min-height: 270px;
    width: 100%;
    object-fit: cover;
}

.brand-mark {
    width: 76px;
    height: 76px;
    border-radius: 0;
    background: transparent;
    display: block;
    place-items: center;
    color: white;
    font: 24px "Playfair Display",serif;
    flex: 0 0 76px;
    max-width: none;
    object-fit: contain;
    box-shadow: none;
}

.sidebar .side-card:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    height: 174px;
    box-sizing: border-box;
}

.sidebar .side-card:first-child .side-title {
    margin-bottom: 14px;
}

#appMain {
    width: 100%;
    max-width: 1600px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 86px);
    margin-top: 86px;
}

.nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 22px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    z-index: 1001;
    flex-wrap: wrap;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 06 — ÉTATS ET NAVIGATION
   -------------------------------------------------------------------------- */

.daily-dish-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.daily-dish-actions button {
    cursor: pointer;
}

.daily-dish-actions button:disabled {
    opacity: .65;
    cursor: wait;
}

.daily-dish-import-button {
    border: 1px solid var(--sage);
    border-radius: 999px;
    background: transparent;
    color: var(--sage-dark, var(--sage));
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 700;
}

.daily-dish-import-button:hover {
    background: #edf0e8;
}

.daily-dish-status {
    margin: 12px 0 0;
    color: var(--sage-dark, #526747);
    font-size: 12px;
    line-height: 1.5;
}

.daily-dish-status[hidden] {
    display: none;
}

.recipe-confirm-overlay[hidden] {
    display: none;
}

.recipe-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(48, 42, 34, .38);
    backdrop-filter: blur(2px);
    animation: recipeConfirmFade .18s ease-out;
}

.recipe-confirm-panel {
    width: min(380px, 100%);
    padding: 23px 24px 20px;
    border: 1px solid #e7dccb;
    border-radius: 19px;
    background: #fffcf6;
    box-shadow: 0 16px 48px rgba(48, 42, 34, .17);
    text-align: center;
    animation: recipeConfirmAppear .2s ease-out;
}

.recipe-confirm-kicker {
    margin: 0 0 7px;
    color: #7c876d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.recipe-confirm-panel h2 {
    margin: 0 0 8px;
    color: #493f33;
    font: 600 22px/1.25 "Playfair Display", serif;
}

.recipe-confirm-name {
    margin: 0 0 12px;
    color: #756956;
    font-size: 13px;
    font-weight: 600;
}

.recipe-confirm-description {
    margin: 0 auto 19px;
    max-width: 310px;
    color: #837969;
    font-size: 11px;
    line-height: 1.6;
}

.recipe-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.recipe-confirm-actions button {
    min-width: 112px;
    padding: 10px 16px;
    border-radius: 999px;
    font: 600 11px "DM Sans", sans-serif;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.recipe-confirm-actions button:hover {
    transform: translateY(-1px);
}

.recipe-confirm-cancel {
    border: 1px solid #e5ddcf;
    background: #f3efe6;
    color: #5f594e;
}

.recipe-confirm-accept {
    border: 1px solid #78866b;
    background: #78866b;
    color: #fff;
}

.recipe-confirm-accept:hover {
    background: #65765a;
}

@keyframes recipeConfirmFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes recipeConfirmAppear {
    from {
        opacity: 0;
        transform: translateY(5px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.recipe-confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: transparent;
    color: #68785d;
    font-size: 19px;
    padding: 2px;
}

.recipe-confirm-icon img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.topbar .brand-name {
    color: #fffdf5;
}

.topbar .nav a {
    color: #f5f3e9;
}

.topbar button {
    color: #40382f;
}

.recipe-card,
.side-card,
.daily-dish,
.detail-panel {
    background-color: #fffdf8;
}

html,
body {
    margin-top: 0;
    background-color: #f6f0e5;
    background: #fffdf8;
}

.topbar .brand-name,
.topbar .nav a {
    color: #fffdf5;
}

.topbar .brand-sub {
    color: #e8ebdf;
}

.topbar .nav a:hover,
.topbar .nav a[aria-current="page"] {
    color: #ffffff;
}

.topbar .icon-btn {
    background: #fffdf5;
    color: #58684e;
    border-color: #e5dfd0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.welcome-message {
    color: #fffdf5;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.auth-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #e5dfd0;
    border-radius: 8px;
    background: #fffdf5;
    color: #58684e;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.topbar-actions [hidden] {
    display: none;
}

.topbar {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(10px);
    width: 100%;
    min-height: 100px;
    flex: 0 0 100px;
    gap: 28px;
    max-width: 1600px;
    padding-left: clamp(24px, 3.2vw, 52px);
    padding-right: clamp(24px, 3.2vw, 52px);
    overflow: visible;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    box-shadow: none;
    outline: 0;
}

.topbar::before,
.topbar::after {
    display: none;
    content: none;
}

.section-kicker,
.eyebrow {
    color: #34452f;
    opacity: 1;
    font-weight: 800;
    text-shadow: none;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
    background: #eee7d8;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: "DM Sans",sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(
    to bottom,
    #58684e 0%,
    #607052 12%,
    #69795b 25%,
    #758467 38%,
    #879477 52%,
    #9eaa8d 66%,
    #b8bea5 80%,
    #d3d1bd 92%,
    #eee7d8 100%
  );
    background-attachment: scroll;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #eee7d8;
    background-position: top center;
}

#appMain,
#appMain > .page-layout,
#appMain .page-content,
.page-view,
#homePage,
#recipesPage {
    background: transparent;
}

.recipe-card,
.side-card,
.search-box,
.filter-btn,
.empty {
    background-color: #fffdf8;
}

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 07 — ACTIONS ET COMPOSANTS DYNAMIQUES
   -------------------------------------------------------------------------- */

.recipe-sites-card {
    text-align: left;
}

.recipe-sites-card .recipe-sites-intro {
    margin: 0 0 10px;
    color: #455b4b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    text-shadow: none;
}

.recipe-sites-card .recipe-sites-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-content: stretch;
    gap: 9px 12px;
    font-size: 12px;
    line-height: 1.4;
}

.recipe-sites-card .recipe-sites-links a.laurent-mariotte-link {
    transform: translateX(-6px);
}

.recipe-sites-card .recipe-sites-links a {
    min-width: 0;
    color: #355b43;
    font-weight: 600;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: none;
    transition: color .15s ease;
}

.recipe-sites-card .recipe-sites-links a:hover,
.recipe-sites-card .recipe-sites-links a:focus-visible {
    color: #1e3928;
    text-decoration: underline;
}

body[data-page="recipes"] #appMain .sidebar > .recipe-sites-card {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 20px;
    overflow: visible;
    box-sizing: border-box;
}

#chips .recipe-count-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #cbd5c0;
    border-radius: 999px;
    background: #e8eddf;
    color: #355b43;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

#chips .recipe-count-chip strong {
    color: #294b35;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

#chips .recipe-count-icon {
    font-size: 13px;
    line-height: 1;
    color: #52735a;
}

body[data-page="recipes"] #appMain .sidebar > .quick-access-card {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 258px;
    min-height: 258px;
    max-height: none;
    padding: 20px;
    overflow: visible;
}

body[data-page="recipes"] #appMain .sidebar > .quick-access-card .side-title {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.3;
}

body[data-page="recipes"] #appMain .sidebar > .quick-access-card .quick-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 7px 0;
    margin: 0;
    gap: 12px;
    flex: 0 0 57px;
    overflow: visible;
}

body[data-page="recipes"] #appMain .sidebar > .quick-access-card .quick-icon {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    height: 35px;
    min-height: 35px;
    flex: 0 0 35px;
    margin: 0;
    line-height: 1;
}

body[data-page="recipes"] #appMain .sidebar > .quick-access-card .quick-action > span:last-child {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.35;
}

body[data-page="recipes"] #appMain .sidebar > .quick-access-card .quick-action strong {
    display: block;
    line-height: 1.35;
}

body[data-page="recipes"] #appMain .sidebar > .quick-access-card .quick-action small {
    display: block;
    line-height: 1.35;
    margin-top: 3px;
}

body[data-page="home"] #appMain .sidebar > .recipe-sites-card {
    display: block;
}

body[data-page="home"] #appMain .sidebar > .side-card:nth-child(1) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 258px;
    min-height: 258px;
    max-height: none;
    padding: 20px;
    overflow: visible;
}

body[data-page="home"] #appMain .sidebar > .quick-access-card .side-title {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.3;
}

body[data-page="home"] #appMain .sidebar > .quick-access-card .quick-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    height: 57px;
    min-height: 57px;
    padding: 7px 0;
    margin: 0;
    gap: 12px;
    flex: 0 0 57px;
    overflow: visible;
}

body[data-page="home"] #appMain .sidebar > .quick-access-card .quick-icon {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    height: 35px;
    min-height: 35px;
    flex: 0 0 35px;
    margin: 0;
    line-height: 1;
}

body[data-page="home"] #appMain .sidebar > .quick-access-card .quick-action > span:last-child {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.35;
}

body[data-page="home"] #appMain .sidebar > .quick-access-card .quick-action strong {
    display: block;
    line-height: 1.35;
}

body[data-page="home"] #appMain .sidebar > .quick-access-card .quick-action small {
    display: block;
    line-height: 1.35;
    margin-top: 3px;
}

.manual-import-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #241d16a8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: auto;
}

.manual-import-overlay[hidden] {
    display: none;
}

.manual-import-panel {
    width: min(900px,100%);
    max-height: min(92vh,900px);
    overflow: auto;
    background: #fffdf8;
    border: 1px solid #e6dccb;
    border-radius: 22px;
    padding: clamp(20px,4vw,34px);
    box-shadow: 0 22px 70px #0003;
    color: #3d352b;
}

.manual-import-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.manual-import-kicker {
    margin: 0 0 6px;
    color: #8a765c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
}

.manual-import-header h2 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: clamp(25px,4vw,34px);
}

.manual-import-close {
    border: 0;
    background: transparent;
    color: #6e6254;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.manual-import-intro {
    color: #766b5e;
    line-height: 1.55;
}

.manual-import-form {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.manual-import-form label {
    font-weight: 700;
}

.manual-import-form input {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8cebf;
    border-radius: 10px;
    font: inherit;
    background: white;
}

.manual-import-category {
    display: grid;
    gap: 8px;
    margin: 16px 0 4px;
    padding: 16px;
    background: #f8f4ec;
    border: 1px solid #e9e0d3;
    border-radius: 12px;
}

.manual-import-category label {
    font-weight: 700;
}

.manual-import-category label span {
    color: #a33;
}

.manual-import-category select {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8cebf;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.manual-import-category p {
    margin: 0;
    color: #807361;
    font-size: 13px;
}

.manual-import-primary,.manual-import-secondary {
    border: 0;
    border-radius: 10px;
    padding: 12px 17px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.manual-import-primary {
    background: #526747;
    color: white;
}

.manual-import-secondary {
    background: #eee8de;
    color: #4e463c;
}

.manual-import-primary:disabled {
    background: #b8b8b8;
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
}

.manual-import-secondary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.manual-import-status {
    min-height: 1.4em;
    margin: 12px 0;
    color: #6d604f;
    line-height: 1.45;
}

.manual-import-status--duplicate {
    text-align: center;
    color: #963f35;
    font-weight: 700;
    background-color: #fff0ed;
    border: 1px solid #e8c0b8;
    border-radius: 10px;
    padding: 15px 18px;
    margin-top: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.manual-import-preview {
    border-top: 1px solid #e9e0d3;
    padding-top: 18px;
}

.manual-import-preview-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.manual-import-preview-heading h3 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: 25px;
}

.manual-import-preview-heading span,.manual-import-meta {
    color: #807361;
    font-size: 13px;
}

.manual-import-image {
    display: block;
    width: 100%;
    max-height: 270px;
    object-fit: cover;
    border-radius: 13px;
    margin: 15px 0;
}

.manual-import-description {
    color: #6d6256;
    line-height: 1.5;
}

.manual-import-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}

.manual-import-columns {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
    gap: 22px;
}

.manual-import-columns h4 {
    margin: 0 0 9px;
    font-family: "Playfair Display",serif;
    font-size: 19px;
}

.manual-import-group-heading {
    list-style: none;
    font-weight: 700;
    margin-top: 12px;
    margin-left: -22px;
}

.manual-import-columns ul,.manual-import-columns ol {
    padding-left: 22px;
    margin: 0;
    line-height: 1.55;
}

.manual-import-columns li {
    margin: 0 0 7px;
    overflow-wrap: anywhere;
}

.manual-import-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}


/* Importation Word : choix de méthode et aperçu éditable */
.import-choice-panel { width: min(560px,100%); }
.import-choice-options { display: grid; gap: 12px; margin-top: 20px; }
.import-choice-option {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 18px;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 17px;
    border: 1px solid #e6dccb;
    border-radius: 14px;
    background: #fff;
    color: #3d352b;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.import-choice-option:hover { border-color: #9a805d; background: #fbf8f1; transform: translateY(-1px); }
.import-choice-option > span:nth-child(2) { display: grid; gap: 4px; }
.import-choice-option strong { font-size: 15px; }
.import-choice-option small { color: #766b5e; font-size: 13px; }
.import-choice-icon { font-size: 25px; text-align: center; }
.import-choice-arrow { color: #8a765c; font-size: 27px; }
.word-import-preview { display: grid; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #e9e0d3; }
.word-import-preview h3 { margin: 0 0 10px; font: 600 20px "Playfair Display",serif; }
.word-import-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.word-import-fields label { display: grid; gap: 6px; color: #5f5345; font-size: 13px; font-weight: 700; }
.word-import-fields input,.word-import-edit-row input,.word-import-step textarea {
    box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 11px;
    border: 1px solid #d8cebf; border-radius: 9px; background: #fff; color: #3d352b; font: inherit;
}
.word-import-edit-list { display: grid; gap: 9px; }
.word-import-edit-row { display: grid; grid-template-columns: minmax(110px,.7fr) minmax(75px,.35fr) minmax(90px,.45fr) minmax(150px,1fr) auto; align-items: center; gap: 8px; }
.word-import-warning { color: #98602a; font-weight: 700; white-space: nowrap; }
.word-import-optional { display: inline-flex; align-items: center; gap: 5px; color: #766b5e; font-size: 12px; white-space: nowrap; }
.word-import-optional input { width: auto; }
.word-import-step { display: grid; gap: 6px; color: #766b5e; font-size: 13px; font-weight: 700; }
.word-import-step textarea { resize: vertical; min-height: 72px; }
.word-import-images { display: flex; flex-wrap: wrap; gap: 12px; }
.word-import-image-choice { display: grid; grid-template-columns: auto 100px; align-items: center; gap: 7px; color: #5f5345; font-size: 13px; }
.word-import-image-choice img { width: 100px; height: 76px; object-fit: cover; border-radius: 9px; grid-column: 2; }
.word-import-image-choice input { grid-row: 1 / span 2; }
.word-import-review-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fbf4e7; color: #765a2d; line-height: 1.45; }
@media (max-width: 620px) {
    .word-import-fields { grid-template-columns: 1fr; }
    .word-import-edit-row { grid-template-columns: minmax(0,1fr); }
    .word-import-warning { white-space: normal; }
}

.sidebar .quick-access-card > .side-title,
.sidebar .recipe-sites-card > .side-title {
    text-align: left;
}

.sidebar .recipe-sites-card > .recipe-sites-intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    white-space: normal;
    letter-spacing: -0.02em;
    line-height: 1.45;
}

.sidebar .recipe-sites-card .recipe-sites-intro-lead,
.sidebar .recipe-sites-card .recipe-sites-intro-brand {
    display: block;
}

.sidebar .recipe-sites-card .recipe-sites-intro-brand {
    color: var(--terracotta);
    font-weight: 700;
}

/* ==========================================================================
   AUTHENTIFICATION — écran de connexion et formulaire
   Centralisé ici au lieu d’être injecté par JavaScript dans chaque page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 08 — COLLECTIONS ET LIENS
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   REPÈRE DE CASCADE 09 — AUTHENTIFICATION
   -------------------------------------------------------------------------- */

#authGate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f5f0e7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: inherit;
}

#authGate[hidden] {
    display: none !important;
}

.auth-card {
    width: min(440px, 100%);
    background: #fffdf8;
    border: 1px solid #e6dccb;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 18px 60px #382a1718;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 27px;
}

.auth-card p {
    color: #746b5d;
    line-height: 1.5;
}

.auth-card label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

.auth-card input {
    box-sizing: border-box;
    width: 100%;
    padding: 13px;
    border: 1px solid #d8cebf;
    border-radius: 10px;
    font: inherit;
}

.auth-card button {
    width: 100%;
    padding: 13px;
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    background: #526747;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.auth-actions button {
    background: transparent;
    color: #526747;
    width: auto;
    padding: 4px;
}

#authError {
    color: #a22;
    min-height: 1.3em;
}


/* Footer commun : un seul contenu, centré sur toutes les pages et largeurs. */

#appMain > footer.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 56px);
    min-width: 0;
    margin: auto auto 0;
    padding: 12px 0 18px;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    text-align: center;
}

#appMain > footer.footer > .footer-copyright {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #43513b;
    -webkit-text-fill-color: #43513b;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}
